Issues with CORS and time-shifted playback

0

Hello!

I've been working on getting MediaPackage and CloudFront working for HLS distribution and so far it's been great! After a slight change (having our encoder count from 0 instead of current time) I recently started to notice that I get cors errors whenever I add the "?start=1" argument onto my distribution URL for Time Shifted Playback. Has anyone else run into this issue, or perhaps is there an AWS Team Member that might have some insight? Is there a better way to add DVR functionality to a live stream than this configuration?

posta 5 anni fa316 visualizzazioni
4 Risposte
0

The CORS error is likely not the issue. I have seen some clients report a CORS error on a 404. The request is returning a 404 error because the start time is invalid. The value of the parameter needs to be the actual start time in epoch, or ISO 8601 format. Please read through the documentation for the start/end time formats:

https://docs.aws.amazon.com/mediapackage/latest/ug/time-shifted.html

Requesting "?start=1" means you're requesting content from back in 1970, which will not work. If you use a valid start time, and you have enabled time-shifted playback on the endpoint, that should take care of this.

AWS
con risposta 5 anni fa
0

Thank you for the quick reply Saurav!

Interesting, we tried to setting Timecode Configuration in MediaLive to zerobased which we assumed would allow for "?start=1" as the first frame in the stream starts at 00:00:00. So going forward we should assume that when we want DVR functionality the URL is going to have to be appended with the time the stream started regardless of the timecode?

con risposta 5 anni fa
0

Hi jerryfleury,

jerryfleury wrote:
So going forward we should assume that when we want DVR functionality the URL is going to have to be appended with the time the stream started regardless of the timecode?

That is correct, the only way to address a section of content in your catchup window a proper timestamp in either epoch or ISO 8601 is required for the start (and optionally end) time.

AWS
ThijsB
con risposta 5 anni fa
0

Thank you for the help everyone!

con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande