Play button should not stop working unless media source is fully detached
Categories
(Toolkit :: Video/Audio Controls, defect, P3)
Tracking
()
People
(Reporter: ralin, Unassigned)
References
Details
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Reporter | ||
Comment 8•9 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 9•1 year ago
|
||
To address the issue where the play button stops working when a network error occurs but the media source is not fully detached, you can modify the media controls play button handler to ensure it only returns early if the error code is MEDIA_ERR_SRC_NOT_SUPPORTED. For all other errors, the play button should remain functional.
Here is a potential solution:
Locate the media controls play button handler in the videocontrols.xml file.
Update the handler to check for MEDIA_ERR_SRC_NOT_SUPPORTED specifically before deciding whether the play button should become non-functional.
Code
<handler>
...
if (this.error) {
if (this.error.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
return;
}
// Allow play button to function for other errors
}
...
</handler>
For testing purposes, you can use the following URL to download a YouTube thumbnail, which may help in setting up test scenarios for video playback: https://youtubethumbnaildownloaderonline.com/?id=yhB3BgJyGl8
Comment 10•11 months ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit BugBot documentation.
Description
•