Flowplayer playlist API
Flowplayer 3.1.1 added
addClip method to the
recognize those changes and it will dynamically add new entries to the visible
playlist as well. The same goes to
play methods which both
alter the current playlist.
The fourth button Add in-stream clip adds an in-stream clip to the second playlist entry. After this button has been pressed you'll see a little 3 second "ad" on the second clip on third second. In-stream clip additions will not modify the playlist entries.
This feature has been possible before with
manually configured playlists
but since playlist version 3.0.6 this is possible with internal playlists as well.
The key difference is that, in manual playlists, you are using DOM manipulation
methods to add new entries to the playlist. In internal playlist configurations you
are simply using the API method
addClip to add new entries and the playlist
plugin takes care of the rest. You can have a look at the
playlist documentation to understand the
difference between internal and manual playlists.
We define a playlist and a player container. Inside playlist we define some HTML that is used as "template" for the playlist entries.
Here we can see configurations for the common clip and playlist. These playlist entries will be written inside the playlist container using the HTML template.
property so that after a clip is finished the player automatically advances to the