mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762933 - No-audio icon switches to audio available icon when video is in fullscreen. r=jaws
This commit is contained in:
parent
8f7cca3838
commit
5e092ac445
@ -411,11 +411,19 @@
|
|||||||
this.maxCurrentTimeSeen = currentTime;
|
this.maxCurrentTimeSeen = currentTime;
|
||||||
this.showPosition(currentTime, duration);
|
this.showPosition(currentTime, duration);
|
||||||
|
|
||||||
// If we have metadata, check if this is a <video> without video data.
|
// If we have metadata, check if this is a <video> without
|
||||||
|
// video data, or a video with no audio track.
|
||||||
if (this.video.readyState >= this.video.HAVE_METADATA) {
|
if (this.video.readyState >= this.video.HAVE_METADATA) {
|
||||||
if (this.video instanceof HTMLVideoElement &&
|
if (this.video instanceof HTMLVideoElement &&
|
||||||
(this.video.videoWidth == 0 || this.videoHeight == 0))
|
(this.video.videoWidth == 0 || this.videoHeight == 0))
|
||||||
this.isAudioOnly = true;
|
this.isAudioOnly = true;
|
||||||
|
|
||||||
|
// We have to check again if the media has audio here,
|
||||||
|
// because of bug 718107: switching to fullscreen may
|
||||||
|
// cause the bindings to detach and reattach, hence
|
||||||
|
// unsetting the attribute.
|
||||||
|
if (!this.isAudioOnly && !this.video.mozHasAudio)
|
||||||
|
this.muteButton.setAttribute("noAudio", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isAudioOnly)
|
if (this.isAudioOnly)
|
||||||
|
Loading…
Reference in New Issue
Block a user