-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Caption zoom bug in min js #8425
Comments
👋 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. |
That's strange. I can replicate what you're seeing. |
I also see this behavior on minified version of videojs 7.21.5 with videojs-vtt 0.15.5 on Chrome on Win 10. |
The difference is here. In the minified version the constructor name is not video.js/src/js/tracks/text-track.js Lines 394 to 406 in 38b165d
|
@mister-ben can we close this issue now that the bug has been fixed? |
Is releasing a fixed version part of this process? :) |
Ah, I saw only "Releases Latest v8.5.2" on the front page. |
@j77h the release process of video.js is described here videojs-releases Version |
Video JS versions tested
8.5.2
8.5.3
7.14.3 from the wordpress plugin
Faulty behaviour happens only with minified js of version 8.
Browser versions tested
Recent Chromium and Firefox, on Manjaro Linux.
(updated within the last two weeks)
Steps to reproduce
Put video, html, vtt files in one folder, with video.min.js and (video-js.css or video-js.min.css).
This is my video element, but I think most of the settings are not relevant,
as I first observed the behaviour before I added most of them.
The behaviour is the same with remote web server or local,
so for testing just use
python -m http.server
locally,and in a browser open
http://localhost:8000/test.html
Play the video, pause while a caption is visible,
and go into the caption settings dialog.
Select a font size that's not 100%, observe the change in caption size.
No need to press Reset or Done button.
Select another font size and observe the change in caption size.
Observed behaviour
Selected 150%, and caption size increased as expected;
then selected 125%, and caption size increased a further 125% (to nearly 200%).
Pressed 'Done' and played the video; the caption size remained near 200%.
At the end of the video, pressed 'Replay'; the caption size got another large increase.
Reloaded the page, played the video: caption size was at 125%, as intended.
What seems to be happening is that
any change of caption zoom is relative to the current size;
if you alternate selecting 50% and 75%, the captions become progressively smaller.
If you edit the minified js file and make the default size 150%,
then in the caption settings click 'Reset' repeatedly,
the caption size increases by 150% on each click.
Expected behaviour
The minified js file should produce the same behaviour as the readable js file, which is that
changes to the caption zoom level are always relative to the pre-determined 100% size.
The text was updated successfully, but these errors were encountered: