This demo shows the suggestions feature. Wait until the video is complete (or jump directly to the end using the next button) and you will see a set of other videos to choose.
The configuration looks like this. Notice the new variable suggestedClipsInfoUrl that is used to load the information for the related clips. The player requests that URL and the server should receive a JSON object that is essentially the same as the playList array plus a baseURL value.
{ playList: [
{ url: 'http://mysite/splash.jpg', overlayId: 'play' },
{ url: http://mysite/video.flv', suggestedClipsInfoUrl:
'http://community.flowplayer.org/video/suggestions.php?clip=4' }
],
autoPlay: false initialScale: 'scale'
}
When the player encounters this clip (a clip with a suggestedClipsInfoUrl) it shows the suggetions relating to it. The request for the suggestion info is made and the thumbnails are loaded while the main video is playing so there is no delay between the end of the main video and the display of the suggestions.
When the user clicks a suggestion the player replaces the main video clip with the clip corresponding the suggestion. This suggestion clip was taken from the suggestion object previously requested using suggestedClipsInfoUrl.
Furthermore the suggestions can contain further suggestions and so on. Every video can relate to some other videos and the user can entertain himself by clicking the suggestions forever.
This is a new features released with version 1.20. Please comment - your feedback will affect how this is improved in the next releases!
Comments
Awesome feature
This is an excellent feature and is a big incentive to upgrade.