How do I force a video (or playlist) to start playing?
How do I force a video (or playlist) to start playing?
Add query strings to the video archive player publishing code to specify that specific movie and/or playlist should be loaded.
Syntax:
Select specific playlist: playlist_id=xxx
Choose a specific video: video_id=xxx
By default, a published video archive player displays the top movie in the top playlist. Similarly, it is the movie selection from the top playlist (if you have several) that is displayed.
This standard can be bypassed by adding to the publishing link of a video archive a parameter (query string) that specifies that a specific movie and/or playlist should be started/displayed.
The examples are based on a video archive player with three different playlists. The player can be viewed on Streamio’s support.
Original link for publishing to websites:
It is in the value of src, that is, the URL (https…), that the parameter is added. (This url is the same as in publishing with “Direct Link”.)
The easiest way to get the desired publishing link is to view the published video archive player and right-click on a playlist or movie and select “Copy link address”.
SELECT SPECIFIC PLAYLIST
Syntax: playlist_id=xxx
1. Open the video archive player, here the support player.
2. Right-click on the playlist and select Copy link address (or equivalent for your browser, here Chrome).
Right-click the “Publish a movie” playlist to get the correct link (here in Chrome)
3. Replace the entire src link in the original publishing link with the copied link.
The final publishing link with extensions (bold) will then be:
SELECT SPECIFIC MOVIE
Syntax: video_id=xxx
1. Open the video archive player, here the support player.
2. Right-click on the movie and select Copy link address (or equivalent for your browser, here Chrome).
Right-click on the movie “Upload movie” to get the correct link (here in Chrome)
3. Replace the entire src link in the original publishing link with the copied link.
The final publishing link with extensions (bold) will then be:
It is possible to combine the two parameters, separated by “&”
If the specified playlist is not in the player, the player’s first playlist is displayed.
If the specified video is not in the current playlist, the playlist’s first movie will be shown.
Thus, video_id can be used without playlist_id, provided that the video appears in the first playlist in the player.