Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3 #441

Merged
merged 7 commits into from May 20, 2020
Merged

Version 3 #441

merged 7 commits into from May 20, 2020

Conversation

Addvilz
Copy link
Contributor

@Addvilz Addvilz commented Apr 29, 2020

Fluid Player version 3.0.0

This version is a major rewrite of Fluid Player. All major features are now split from the main player
logic.

Following has changed

  • NPM package with with ready to use module, ready to be used with dynamic pages and SPAs.
  • Webpack used for CDN distribution.
  • All external dependencies have been removed from repository, NPM versions are used instead.
  • External dependencies are loaded on first time use.
  • Countless number of small bug fixes and improvements.
  • Only documented public API is now exposed to end users.
  • Player instance can be initialized using either player element id or HTMLVideoElement node reference.
  • Controls are hidden by default and becomes visible if so configured in settings or defaults (no button flash).

Breaking changes

  • Fluid Player no longer exposes private APIs and player internals not documented to be used from outside the player object itself. Users who rely on these APIs should open an issue requesting a public API to such currently internalized features and APIs.
  • CDN no longer publishes CSS as a separate file. CSS is now bundled with JavaScript distribution of the player.

Closes #251
Closes #277
Closes #373
Closes #424
Closes #436
Closes #431
Closes #225
Closes #411
Closes #416
Closes #271
Closes #423
Closes #314
Closes #351

@Addvilz Addvilz added this to the v3.0.0 milestone Apr 29, 2020
@Addvilz Addvilz self-assigned this Apr 29, 2020
- devserver
- E2E cases
- Tons of bug fixes
@Addvilz Addvilz requested a review from golikov May 13, 2020 13:15
@Addvilz Addvilz marked this pull request as ready for review May 13, 2020 13:15
@Addvilz Addvilz merged commit 9e03e1f into master May 20, 2020
@Addvilz Addvilz deleted the v3 branch May 20, 2020 09:00
Copy link

@Herzog81 Herzog81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script>

<script> var myFP = fluidPlayer( 'video-id', { "layoutControls": { "controlBar": { "autoHideTimeout": 3, "animated": true, "autoHide": true }, "htmlOnPauseBlock": { "html": null, "height": null, "width": null }, "autoPlay": true, "mute": true, "allowTheatre": true, "playPauseAnimation": true, "playbackRateEnabled": true, "allowDownload": true, "playButtonShowing": true, "fillToContainer": false, "posterImage": "" }, "vastOptions": { "adList": [], "adCTAText": false, "adCTATextPosition": "" } } </script>

@fluid-player fluid-player deleted a comment from joker534 Nov 16, 2020
@diaqad
Copy link

diaqad commented Nov 3, 2021

Hello
Is it possible to get code of the latest version for playing m3u8 link on blogger?
thank you in advance!

like this code:


<link href = "https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css" rel = "stylesheet" type = "text / css"> </link>
<script src = "https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js"> </script>

<video id = "hls-video">
    <source src = "https://yourlink.m3u8" type = "application / x-mpegURL"> </source>
  
  
</video>

<script>
    var myFP = fluidPlayer (
        'hls-video',
        {
            layoutControls: {
  fillToContainer: true,
  primaryColor: "# 00AACC",
  posterImage: 'https://yourimage.jpg',
  autoPlay: true,
  playButtonShowing: true,
  playPauseAnimation: true,
  mute: false,
  logo: {
   imageUrl: '',
    position: 'top left',
   clickUrl: '',
   opacity: 1,
   mouseOverImageUrl: null,
   imageMargin: '2px',
   hideWithControls: false,
   showOverAds: true,
      keyboardControl: true,
  },
  htmlOnPauseBlock: {
   html: '',
   height: 90,
   width: 728
  },
  allowDownload: false,
  allowTheatre: true,
  playbackRateEnabled: false,
  controlBar: {
   autoHide: true,
   autoHideTimeout: 3,
   animated: true
  },
            },
            vastOptions: {
              vastTimeout: 1000,
              
        }
      }
    );
  
  
</script>
<script type = "text / javascript">
         fluidPlayer ('hls-video');
  fluidPlayer (idVideoPlayer [, options]);
      </script>

Copy link

@nigae nigae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

player = fluidPlayer(target [, options]);

Copy link

@nigae nigae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script> <script> // fluidPlayer method is global when CDN distribution is used. var player = fluidPlayer('example-player'); </script>

Copy link

@nigae nigae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[fluid-player-3.0.0.tar.gz](https://github.com/fluid-player/fluid-player/files/8403770/fluid-player-3.0.0.tar.gz)

@PandaSuits
Copy link

player = fluidPlayer(target [, options]);

Copy link

@Spacekowboy69tx69 Spacekowboy69tx69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready

@Jong026440
Copy link

Good

@Jong026440
Copy link

@Jong026440
Copy link

](url)

@Jong026440
Copy link

Amazing
Screenshot_20240318_040632_com android chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants