-
Notifications
You must be signed in to change notification settings - Fork 15
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 quality selector for progressive download videos #1143
Conversation
Things I tested:
But try to come up with test conditions for yourself, I likely forgot something here! I tested:
|
I did some testing as well with Firefox, Chrome, Safari and my ageing android phone.
Other than that, my testing suggests that this seems to work as intended. |
I can. Dang, I saw this before but assumed this was already the case before. Will investigate next week. |
Okay, this is not caused by my changes to the quality logic, but by another unrelated change, that landed between 1.46.6 and 1.47.1. And since this PR updates Once that is merged and released, I will update this PR. |
I did test this on my MacBook Pro with Safari, Chrome, Firefox and Opera. The testcases @LukasKalbertodt mentioned did all work well. But I do have one small issue with the video https://pr1143.tobira.opencast.org/v/AYrn0crKqY1. If I switch the quality in Firefox, for a short moment the first video frame (or is it the preview image?) is shown. This happens only for this video and only in Firefox on my MacBook. If I open this video on my iPhone 12 Mini in Firefox, it is working as expected. On my iPhone 12 Mini the tests were also successful both with Safari and Firefox. |
This has been a journey, but now this lives in an external plugin that can be used in place of the standard mp4 video format plugin.
These manual z-index changes are terrible of course. But I don't see a better solution.
@snoesberger Thanks for the tests. I can reproduce the Firefox issue. I started working on a fix and I think I have an interesting approach (for devs: creating a new video element via |
That is fine for me, we can leave it like that for the moment. |
5b6dc56
to
2872a93
Compare
With 1.48.1, the problem that @owi92 found seems to be resolved. If you can confirm that Ole, I think this is ready to be merged. |
Can confirm. |
Late to the game and moving on thin ice: In the old ETH video portal, we don't offer quality selection in "embed mode", because the space available for the video has less pixels available than the higher resolution one might chose. And we don't expect anyone to chose lower resolutions in a scenario like https://video.test.tobira.ethz.ch/!v/AUGZS5hMGIy. So maybe it makes sense to restrict the quality selector for fullscreen scenarios? |
I assume by "embed mode" here you just mean "not fullscreen mode"? I don't quite yet understand the reasoning for hiding the quality selector there, but in any case: in Tobira, the player is much larger in "non-fullscreen mode", so is much closer to fullscreen and thus I think that a quality selector certainly makes sense there too.
Are you referring to the unusual resolutions? |
The reasoning was/is that we provide more pixels (here: 1920x1080) than the regular monitor will allow you to use in that space. But maybe that's me staring at my laptop monitor all the time. And yes, 576 seems an odd resolution. |
Ah I see. But as I said: I think it's quite different in Tobira, as the non-fullscreen player is already larger. I think conditionally hiding the quality selection will only cause more confusion.
This is actually one of the standard vertical-resolution of DVDs! https://en.wikipedia.org/wiki/DVD-Video |
After much discussion, some relevant changes have been merged into
paella-core
and the other part is published as this package. So we can use this modified video format plugin to get back mp4 quality selection.I have tested it a bunch and so far everything works fine. But please everyone: test this a bunch on different devices and different browsers and report any problems or weird behaviors here. Ideally test a number of different videos (single & dual stream). Note: The "The best open cat videos" do not have different qualities, so you can ignore those.
There are two known shortcomings still:
paella-core
are necessary. These might be added in the future.This pull request also changes the logic for selecting the initial quality. Before, the maximum quality was always chosen, which is really not ideal most of the time. You can find some additional information in this commit description. Please also test this change and let me know if you encounter a situation where the initial quality was a bad choice. Also note: the new logic still errs on the side of "high quality". I'm sure for many institutions it might be useful to lower the initial quality even more.