Switching from Live to VOD or VOD to Live #6698
Unanswered
yashtandon113
asked this question in
Q&A
Replies: 1 comment 4 replies
-
hi,
Note: the vod file should be a maximum of 15s /at your discretion of course/, it works in a loop /check loop/. Note: before 'live' appears the server will finish the vod file. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We will use two applications to switch from VOD to Live or Live to VOD. Let's go step by step.
Step-1:
In this example, we will use the
LiveApp
app for live streaming and thelive
app for VOD. These two applications are installed by default on the Ant Media Server. You have the option of creating your own applications.Step-2:
First, go to the
LiveApp
application and create one live stream with streamIdtest
for example.Step-3:
Now go to the
LiveApp
application's Settings --> Advanced settings and set the below property:After making the changes, save the settings.
Step-4:
Switch to the
live
application's VOD section and upload the VOD that you want to use. Check out this document for VOD upload.Step-5:
After uploading the VOD, switch to live application Settings --> Advanced settings and make the below changes to the properties:
After making the changes, save the settings.
Step-6:
Open the Live Streams section of the
live
app and create a playlist with the streamIdplaylist
, for example.Step-7:
After creating the playlist stream, edit the playlist stream and first add the VOD that was uploaded.
NOTE: The URL should be correct and reachable; otherwise, it will not be added.
NOTE: The URL should be correct and reachable; otherwise, it will not be added.
Step-8:
Now, start the playlist and play with the below sample URL
https://domain:5443/live/play.html?name=playlist&playOrder=hls
When the playlist will be running, it will show the index that is currently running.
Suppose the
Playing Index
is 0, which means the VOD is running and once the VOD time is over, if the actual live stream is live in theLiveApp
application, then the playlist will switch to the live. In case the actual stream is not live, then the VOD will keep playing on loop.Please feel free to comment if any points are unclear. We will do our best to include the demonstration video as soon as possible.
Beta Was this translation helpful? Give feedback.
All reactions