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

Bump videojs to 7.12.1 #3011

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Bump videojs to 7.12.1 #3011

merged 1 commit into from
Apr 22, 2022

Conversation

unixfox
Copy link
Member

@unixfox unixfox commented Apr 8, 2022

Related to #2848

Help with the issue in #2850

Fixes #2941
Fixes #2385
Fixes #2065
Fixes #2942


Nice to have

  • Have a better retry in case of errors, don't try indefinitely every 10 seconds. Stop after X retries then continue later.

@unixfox unixfox requested a review from a team as a code owner April 8, 2022 16:46
@unixfox unixfox requested review from SamantazFox and removed request for a team April 8, 2022 16:46
@unixfox
Copy link
Member Author

unixfox commented Apr 8, 2022

Ideally, I would like to still offer by default webm in the manifest API but not offering webm to video.js when it requests the dash manifest.

@unixfox unixfox marked this pull request as draft April 8, 2022 17:38
@unixfox unixfox added the blocked require something else first label Apr 8, 2022
@unixfox
Copy link
Member Author

unixfox commented Apr 8, 2022

Bugs remaining:

  • When 1080p is forced in the preferences then changing the quality from the quality icon to 720p or another quality then the lowest quality will be chosen.
  • When auto is set and then changing quality from the quality icon to 1080p then the player will throw an error. This only happen if done at the start of the video, when it is hasn't loaded enough buffer. Example video that does that: http://127.0.0.1:3000/watch?v=OYyVmTdFjJA

@unixfox unixfox changed the title Bump videojs to 7.18.1 Bump videojs to 12.1 Apr 8, 2022
@unixfox unixfox changed the title Bump videojs to 12.1 Bump videojs to 7.12.1 Apr 8, 2022
@unixfox
Copy link
Member Author

unixfox commented Apr 8, 2022

Okay, videojs 7.12.1 doesn't seem to break videojs-http-source-selector. There is no repeatable video append of errors when switching to 1080p in the quality selector when auto is set in the preferences.

@unixfox unixfox marked this pull request as ready for review April 8, 2022 19:59
unixfox added a commit to iv-org/videojs-quality-selector that referenced this pull request Apr 13, 2022
@unixfox
Copy link
Member Author

unixfox commented Apr 13, 2022

I've added more code! One major part is that videojs will now try to proxy the video if it encounters an error at the start of the playback of the video.
This should greatly reduce the amount of "the media could not be loaded" errors.

I've updated the original description for reflecting this change.

@unixfox
Copy link
Member Author

unixfox commented Apr 17, 2022

In testing on https://yewtu.be since 3 days ago.

@unixfox unixfox removed the blocked require something else first label Apr 17, 2022
@unixfox
Copy link
Member Author

unixfox commented Apr 17, 2022

Seems to work fine on my end and good to merge.

The "nice to have" list is probably good for another pull request once I've more free time again to work on that.

@davidcollini
Copy link

#2942 seems to be fixed aswell :)

Copy link
Member

@TheFrenchGhosty TheFrenchGhosty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, please replace assets/js/silvermine-videojs-quality-selector.min.js with a non-minified version of it.

@unixfox
Copy link
Member Author

unixfox commented Apr 18, 2022

If possible, please replace assets/js/silvermine-videojs-quality-selector.min.js with a non-minified version of it.

Why? It's the point of https://github.com/iv-org/videojs-quality-selector

And it's always been like this, and it's much faster for the browser to load a minified file. If we want to provide the source code then we can do it through a source map: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap

@TheFrenchGhosty

This comment was marked as off-topic.

@unixfox

This comment was marked as off-topic.

@TheFrenchGhosty

This comment was marked as off-topic.

@unixfox

This comment was marked as off-topic.

@TheFrenchGhosty

This comment was marked as off-topic.

@unixfox
Copy link
Member Author

unixfox commented Apr 20, 2022

@SamantazFox How do we move forward with this PR? Anything else needed to test before merging?

@SamantazFox
Copy link
Member

@unixfox Sorry for the late reply: you've deployed it on your instance, right? If yes, I'm confident that we can merge it without further testing, as I haven't seen any issues related to that.

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