mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 02:43:07 +00:00
Bug 1069109 - Do not occupy Audio channel if DOMMediaStream does not have audio r=cajbir
This commit is contained in:
parent
fdedfa5efd
commit
64a9d9ae61
@ -3942,7 +3942,9 @@ void HTMLMediaElement::UpdateAudioChannelPlayingState()
|
||||
(!mPaused &&
|
||||
(HasAttr(kNameSpaceID_None, nsGkAtoms::loop) ||
|
||||
(mReadyState >= nsIDOMHTMLMediaElement::HAVE_CURRENT_DATA &&
|
||||
!IsPlaybackEnded()) ||
|
||||
!IsPlaybackEnded() &&
|
||||
!(mSrcStream && !(mSrcStream->GetTrackTypesAvailable() &
|
||||
DOMMediaStream::HINT_CONTENTS_AUDIO))) ||
|
||||
mPlayingThroughTheAudioChannelBeforeSeek));
|
||||
if (playingThroughTheAudioChannel != mPlayingThroughTheAudioChannel) {
|
||||
mPlayingThroughTheAudioChannel = playingThroughTheAudioChannel;
|
||||
|
@ -171,6 +171,8 @@ public:
|
||||
TrackTypeHints GetHintContents() const { return mHintContents; }
|
||||
void SetHintContents(TrackTypeHints aHintContents) { mHintContents = aHintContents; }
|
||||
|
||||
TrackTypeHints GetTrackTypesAvailable() const { return mTrackTypesAvailable; }
|
||||
|
||||
/**
|
||||
* Create an nsDOMMediaStream whose underlying stream is a SourceMediaStream.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user