Bug 1182444: Show audio as enabled when an audio track is present in stream. r=jesup
This commit is contained in:
@@ -3569,6 +3569,12 @@ HTMLMediaElement::UpdateReadyStateInternal()
|
||||
// We are playing a stream that has video and a video frame is now set.
|
||||
// This means we have all metadata needed to change ready state.
|
||||
MediaInfo mediaInfo = mMediaInfo;
|
||||
if (hasAudio) {
|
||||
mediaInfo.EnableAudio();
|
||||
}
|
||||
if (hasVideo) {
|
||||
mediaInfo.EnableVideo();
|
||||
}
|
||||
MetadataLoaded(&mediaInfo, nsAutoPtr<const MetadataTags>(nullptr));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user