This example shows how to set a playlist in OvenPlayer.
Source
It is the smallest unit for playing video from OvenPlayer. It is generally a single content.
example
let player = OvenPlayer.create("player", {
type : "mp4",
file : "https://path.to/your_video",
framerate : 30,
label : "360P"
});
Sources
If you have multiple protocols or multiple resolutions for a single content, you can register them at once using sources.
OvenPlayer will play a video in the order of the protocol or resolution you entered in sources, and will automatically play the next source if playback fails.
playlist has multiple sources mentioned above. You can explore between playlists, and it automatically plays the next content. Also, you can assign ads and captions for each playlist.
For more information, please refer to the Playlist API chapter.