Skip to content

Question: Can Shaka player ignore the retry parameters on 401/403 status codes. #620

Closed
@londonshliach

Description

@londonshliach

Is there a way for me to tell Shaka player to ignore the retry parameters, and throw and Error, if it receives a 401 / 403 status code?

I host my videos on Amazon CloudFront and the files are private. My manifest URL is an API endpoint that generates temporary signed URLs for all the video segments.

The signed URLs expire after an hour and once that happens I will have to reload the manifest and get new signed URLs.

Some of my users will not have very good internet connections so I want to set the retry parameters so that Shaka player will retry a few times if there is a problem with the internet connection.
However, I don't want Shaka player to retry the download if it receives a response with a 401 / 403 status code (as retrying those requests will certainly fail). In that case, I want Shaka player to reload the manifest and get new URLs for the video segments.

So is there a way to tell Shaka player to retry the download if there is a network problem, but to restart (or just throw an error,) if it receives a 401 / 403 response?
Is there a way for me to pass a function to Shaka player that will get the response and decide whether to retry or not?

Thanks for the help.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions