fixes seek bar not updating and video loading for infinite time when keyboard controls are used#3267
fixes seek bar not updating and video loading for infinite time when keyboard controls are used#3267TheModMaker merged 8 commits intoshaka-project:masterfrom surajkumar-sk:seekbar
Conversation
updating
updating my repo
|
Please revert the changes to the end time and file a new bug with reproduction steps using the latest nightly site. The other changes LGTM but changing the end time doesn't seem like the correct fix. |
|
@TheModMaker removed the changes for max value, the bug of video not loading happens because the video element gets a value beyond or equal to its max time when arrow keys are used that stalls the loading of video and audio. I cannot see a way around without reducing the max time. I know you are busy with lot of work, but any initial clue on how you would approach it would help a lot. It doesn't feel good leaving the bug unsolved. |
|
@TheModMaker I feel there isn't a better solution than reducing the max value. reducing by 0.125 looks a bit glitchy but if the value is reduced by 0.025 it will be completely unnoticeable and the bug will be fixed. I say this is better because, . the video doesn't load and gets stuck at loading because the video's current time gets set to max, which somehow doesn't exist and the video keeps loading. I don't think there is anything we could do to prevent the bug without reducing the max value or complicating the code. I browsed Youtube to get a clue on how they handled this error, I realized even they did something similar to reducing max value. The below video show youtube handling this bug. screen-capture.mp4Reducing by 0.125 looks a bit glitchy but if the value is reduced by 0.025 it will be completely unnoticeable and the bug will be fixed. |
|
All tests passed! |
|
Thanks for the contribution. We should have things to shift the time backwards if you seek near the end. I think it is better to handle it in the library instead of the UI. |
|
@TheModMaker ok , I'll create a new issue showing the bug. |
fix(ui): Fix holding keyboard controls (shaka-project#3267)
Backported to v2.5.x Change-Id: Ib195e95e7703f4f9a5c5ef1d0ff22be46b4d27b3
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
changeto() function in range_element.js file this.isChanging_ was set to true but never set to false which caused updateTimeAndseekRange() in controls.js to fail. this fixes the bug
the second bug was caused because the video.currenttime was set to this.bar.max. I don't know why but the video doesn't get loaded at its max time and after starting to buffer at its max time it never stops buffering. I don't know why it doesn't buffer at its max time but instead of setting video.currenttime to the max value, we could set it to (max-0.125) this wouldn't make any difference because the time difference is very small but it does prevent that bug and video being stuck at buffer state.
Fixes # (issue)
#3234
Screenshots (optional)
Type of change
Checklist: