Open raivil opened 11 months ago
Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:
@video-archivist-bot save ZA57mj
@video-archivist-bot save rEmPRA
👋 Thanks for opening your first issue here! 👋
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
I'm not sure if this would be the correct way but I'm doing something similar using
player.tech().vhs.playlists.master.playlists
With this I update the uris/resolvedUri so on the next manifest get it will make a request with the new updated params
Description
Videojs is configured to serve m3u8 playlists that have expiration time configured and need a token (query param) to work.
Ex:
https://example.com/index.m3u8?token=abc123ef789
During video playback, the url might expire and I'd like to refresh it, so the user can keep watching.
After an extensive research, I've found about reloadSourceOnError.
From my experiments, if the video url is invalid before the player starts downloading the playlist and chunks, the code will trigger errors and reloadSourceOnError will be called. Example error:
If the url expires while the user is watching and the player tries to get new chunks, the reload source doesn't seem to work. The event triggered are
vhs-rendition-excluded
andvhs-rendition-change-exclude
. The errors are:What is a proper way to refresh the video source and keep the video playing and maintaining a good user experience?
Sources
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
Expeted to be able to get a new valid url and update the video player so the user experience is still good.
Error output
see issue description
Additional Information
Please include any additional information necessary here. Including the following:
videojs-http-streaming version
what version of videojs-http-streaming does this occur with?
videojs version
what version of videojs does this occur with?
Browsers
what browsers are affected? please include browser and version for each
Platforms
what platforms are affected? please include operating system and version or device and version for each *mac
Other Plugins
are any other videojs plugins being used on the page? If so, please list them with version below.
Other JavaScript
are you using any other javascript libraries or frameworks on the page? if so please list them below. *