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

Stream Tokens Time Out During Playback #6076

Open
2 tasks
joncameron opened this issue Oct 9, 2024 · 1 comment
Open
2 tasks

Stream Tokens Time Out During Playback #6076

joncameron opened this issue Oct 9, 2024 · 1 comment

Comments

@joncameron
Copy link
Contributor

joncameron commented Oct 9, 2024

Description

Stream tokens can expire and cause media playback to stop partway through a stream. This leads to situations where users coming back to a page after a period of inactivity are required to do a full reload to continue streaming media. This can also happen during normal playback for very long items which have a duration greater than the life the of token. Stream tokens should be refreshed automatically during an active session to prevent this scenario from occurring.

Previous Implementation

https://github.com/avalonmediasystem/avalon/blob/v7.6/app/assets/javascripts/refresh_token.js.coffee

Done Looks Like

  • When the current stream token is expired, the application automatically requests and begins using a new and valid token
  • Investigation into ideal way to do this between Ramp and Avalon; new issues created afterward
@joncameron
Copy link
Contributor Author

joncameron commented Oct 11, 2024

Previous implementation had JS on the page to fetch fresh tokens. How should we handle this in the interplay between Ramp and Avalon? If Ramp can catch the Video.js message about being denied a stream, having auth code to handle that case could be something.

We could also handle this outside of Ramp—Avalon refreshing the stream tokens and then passing it to Ramp.

To implement in Ramp, auth information would need to be written into the manifest.

Could be a good topic for team Swarm time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant