forgejs icon indicating copy to clipboard operation
forgejs copied to clipboard

Alps 904 - Video quality change

Open aberthet-gpsw opened this issue 7 years ago • 5 comments

When requesting quickly a change in the quality of a video, the HTMLVideoElement wasn't always ready and thus null. We tried to remove some EventListener of something null, so it crashed. It is not the case anymore, as a check on the HTMLVideoElement (either null or undefined) is done.

aberthet-gpsw avatar May 16 '17 08:05 aberthet-gpsw

Not related, but I can take a look at it and push it inside this PR. Note that there are also problems with the VideoControls plugin.

aberthet-gpsw avatar May 16 '17 09:05 aberthet-gpsw

You're right @aberthet-gpsw I can reproduce the black screen issue on my mac/chrome with the master branch. I don't remember that happened on my Unbuntu desktop I will have to test again on Ubuntu to have a clear view of the bug. Have to test Firefox too !

rroux-gpsw avatar May 16 '17 11:05 rroux-gpsw

@aberthet-gpsw Please if you want to have a look on this issue, come see me if you can't reproduce. :grin:

rroux-gpsw avatar May 16 '17 12:05 rroux-gpsw

CLA assistant check
All committers have signed the CLA.

sw-team-release-gpsw avatar May 29 '17 13:05 sw-team-release-gpsw

So I'm stopping here my changes, as I can't go further. The blocking element here is the loadstart event of the HTMLVideoElement which is fired not fast enough. If we change the quality of the video really quickly, before this event is fired, we get the bug we know, and I can't find a solution to fix that.

I propose to let it as it is, given that this bug shouldn't be reproduced by the vast majority of users. And as we plan to change in the future the inner workings of playable object (Video, Sound etc...), we may fix it at this moment.

aberthet-gpsw avatar May 31 '17 07:05 aberthet-gpsw