Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updateContentUrls API #1182

Merged
merged 2 commits into from
Dec 21, 2022
Merged

Add updateContentUrls API #1182

merged 2 commits into from
Dec 21, 2022

Conversation

peaBerberian
Copy link
Collaborator

This commit adds the updateContentUrls API allowing to update at any time and during playback, the URL through which a content's Manifest is reached.

This may be used anytime an application prefer a new Manifest URLs to be used, whether it is because the previous URL will soon expire, because the new URL is seen as more qualitative or to rebalance load.

The first argument given to updateContentUrls is actually an array of strings, listing new URLs from the most prioritized to the least prioritized. This is not used for now, but should soon be used to define fallback URLs when former one fail to fetch the resource.

updateContentUrls can be given a second argument named refreshNow which can be used to ask the RxPlayer to refresh immediately the Manifest behind the given URL.

For now, this API will throw for directfile contents, I'm not sure whether it is pertinent to enable it also in this case.

This commit adds the `updateContentUrls` API allowing to update at any
time and during playback, the URL through which a content's Manifest is
reached.

This may be used anytime an application prefer a new Manifest URLs to be
used, whether it is because the previous URL will soon expire, because
the new URL is seen as more qualitative or to rebalance load.

The first argument given to `updateContentUrls` is actually an array of
strings, listing new URLs from the most prioritized to the least
prioritized. This is not used for now, but should soon be used to define
fallback URLs when former one fail to fetch the resource.

`updateContentUrls` can be given a second argument named `refreshNow`
which can be used to ask the RxPlayer to refresh immediately the
Manifest behind the given URL.

For now, this API will throw for directfile contents, I'm not sure
whether it is pertinent to enable it also in this case.
@peaBerberian peaBerberian merged commit a91f71f into next Dec 21, 2022
peaBerberian added a commit that referenced this pull request Dec 21, 2022
peaBerberian added a commit that referenced this pull request Jan 31, 2023
peaBerberian added a commit that referenced this pull request Feb 8, 2023
peaBerberian added a commit that referenced this pull request Feb 9, 2023
@peaBerberian peaBerberian mentioned this pull request Feb 21, 2023
@peaBerberian peaBerberian mentioned this pull request Jun 13, 2023
@peaBerberian peaBerberian deleted the feat/updatecontenturls branch July 6, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant