Elemental MediaPackage MPD or HLS playback from middle

0

I have a requirement to play video from a position from where i left (store the position where I left) and continue to play from last position where i left. I tried multiple ways but non of them worked. Please someone guide me. I am having HLS and MPD url and using using elemental MediaPackage with CloudFront to stream the video.

1 回答
0

Hi there,

You can use the time-shifted viewing feature within MediaPackage to allow clients to join live streams that are already in progress or watch events that have completed. You enable this by defining a startover window on your endpoint, which can be up to 14 days old. The client then makes a request for the manifest that includes the start and end parameters in order to define the timeframe of the content. For your use case, you can save the time when the client stops playback, and include this as the start time in the next manifest request. The formatting of the parameters will depend on the type of content that you're requesting. For more information on time-shifted viewing and how to format the parameters based on your content, please see https://docs.aws.amazon.com/mediapackage/latest/ug/time-shifted.html

If you are using query parameters alongside CloudFront, you will also need to ensure that CloudFront is forwarding the necessary parameters to MediaPackage in order for time-shifted viewing to work properly.

支持工程师
已回答 2 年前
  • Thanks @Michael_L, for response. Actually i have recorded shows not live streams, so will this work for video on demand shows also, I try the things suggested by you and it worked for live streaming but not for VOD. If you can suggest some ways around.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则