Jump to content
  • 0

Static URL for the live streamed video and recorded video


Reeti Garg
 Share

Question

Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
Hi Reeti,

If you inspect the guide below, it says that using the link here lets you play the recording of the stream afterward.

http://<SERVER_NAME>:5080/LiveApp/play.html?name=<STREAM_ID>


And if you are using the enterprise edition, in that case, the link will have the bitrate at the end like this:
http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4

Please check the guide and let me know if this solves your problem.

https://github.com/ant-media/Ant-Media-Server/wiki/Play-Live-and-VoD-Streams-and-Previews

Best,
Asim

On Wednesday, May 6, 2020 at 9:21:46 AM UTC+3, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • 0
Hi, the link http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4 will only be valid if the publishing has finished and the VoD streams are formed but what about during publishing i.e. the live-stream is taking place?

On Wednesday, May 6, 2020 at 7:20:05 PM UTC+5:30, mahmut asım Onat wrote:
Hi Reeti,

If you inspect the guide below, it says that using the link here lets you play the recording of the stream afterward.

http://<SERVER_NAME>:5080/LiveApp/play.html?name=<STREAM_ID>


And if you are using the enterprise edition, in that case, the link will have the bitrate at the end like this:
http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4

Please check the guide and let me know if this solves your problem.

https://github.com/ant-media/Ant-Media-Server/wiki/Play-Live-and-VoD-Streams-and-Previews

Best,
Asim

On Wednesday, May 6, 2020 at 9:21:46 AM UTC+3, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • 0
What do I need to do if I want to switch resolution during live streaming (like in youtube)? Do I have to load manifest files for different resolutions?

On Wednesday, May 6, 2020 at 7:20:05 PM UTC+5:30, mahmut asım Onat wrote:
Hi Reeti,

If you inspect the guide below, it says that using the link here lets you play the recording of the stream afterward.

http://<SERVER_NAME>:5080/LiveApp/play.html?name=<STREAM_ID>


And if you are using the enterprise edition, in that case, the link will have the bitrate at the end like this:
http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4

Please check the guide and let me know if this solves your problem.

https://github.com/ant-media/Ant-Media-Server/wiki/Play-Live-and-VoD-Streams-and-Previews

Best,
Asim

On Wednesday, May 6, 2020 at 9:21:46 AM UTC+3, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • 0
Hi,

For switching bitrates, you can use the links with the resolutions like this: stream1_480p.m3u8. For your previous problem, we don't have a custom solution for that. You need to check if broadcast exists
by sending a get request to 
/LiveApp/rest/v2/broadcasts/{streamId}

Best,
Asim


On Wednesday, May 6, 2020 at 7:49:11 PM UTC+3, Reeti Garg wrote:
What do I need to do if I want to switch resolution during live streaming (like in youtube)? Do I have to load manifest files for different resolutions?

On Wednesday, May 6, 2020 at 7:20:05 PM UTC+5:30, mahmut asım Onat wrote:
Hi Reeti,

If you inspect the guide below, it says that using the link here lets you play the recording of the stream afterward.

http://<SERVER_NAME>:5080/LiveApp/play.html?name=<STREAM_ID>


And if you are using the enterprise edition, in that case, the link will have the bitrate at the end like this:
http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4

Please check the guide and let me know if this solves your problem.

https://github.com/ant-media/Ant-Media-Server/wiki/Play-Live-and-VoD-Streams-and-Previews

Best,
Asim

On Wednesday, May 6, 2020 at 9:21:46 AM UTC+3, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • 0
Hi, what will the VoD link in case of recorded video. How will I form one?  
For instance, in the streams folder of my AMS server, I get a recorded mp4 stream '249877558331292383582750-2020-05-07_05-50_480p.mp4'. It's streamId+current date in yy-mm-dd format..but what after that? 480p is the bitrate. If the URL can't be formed or can change, what can I do to fetch all the recorded bitatres for a streamId?

On Wednesday, May 6, 2020 at 11:45:13 PM UTC+5:30, mahmut asım Onat wrote:
Hi,

For switching bitrates, you can use the links with the resolutions like this: stream1_480p.m3u8. For your previous problem, we don't have a custom solution for that. You need to check if broadcast exists
by sending a get request to 
/LiveApp/rest/v2/broadcasts/{streamId}

Best,
Asim


On Wednesday, May 6, 2020 at 7:49:11 PM UTC+3, Reeti Garg wrote:
What do I need to do if I want to switch resolution during live streaming (like in youtube)? Do I have to load manifest files for different resolutions?

On Wednesday, May 6, 2020 at 7:20:05 PM UTC+5:30, mahmut asım Onat wrote:
Hi Reeti,

If you inspect the guide below, it says that using the link here lets you play the recording of the stream afterward.

http://<SERVER_NAME>:5080/LiveApp/play.html?name=<STREAM_ID>


And if you are using the enterprise edition, in that case, the link will have the bitrate at the end like this:
http://<SERVER_NAME>:5080/LiveApp/streams/<STREAM_ID>_480p.mp4

Please check the guide and let me know if this solves your problem.

https://github.com/ant-media/Ant-Media-Server/wiki/Play-Live-and-VoD-Streams-and-Previews

Best,
Asim

On Wednesday, May 6, 2020 at 9:21:46 AM UTC+3, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

  • 0
Hi, where are the webrtc streams stored? How can I embed the webrtc streams in my player?

On Wednesday, May 6, 2020 at 11:51:46 AM UTC+5:30, Reeti Garg wrote:
Hi,
When a live stream's embedded URL is copied, it plays on the embedded player but when the live stream is stopped, the same URL doesn't work, it says that video will be played automatically when it's live streamed. Console gives error and the same stream isn't available anymore. Can we have a static URL for a live stream as well as the same video that is recorded after live stream has stopped? 
I want a case where I can embed a URL to a video player, and if the video is being live streamed, the live streamed video is fetched and it has finished being live streamed, It can play the recorded video and not say 'The video will automatically play when it's live', something like youtube.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...