Bug 1309162 - part5 : only set the audible state when stream starts playing. r=baku
If input is a media stream, we would always regard it as audible when it's playing. We won't need to set it as non-audible. MozReview-Commit-ID: 8mzTsAkt6lG
This commit is contained in:
@@ -4638,6 +4638,9 @@ void HTMLMediaElement::UpdateSrcMediaStreamPlaying(uint32_t aFlags)
|
||||
}
|
||||
|
||||
SetCapturedOutputStreamsEnabled(true); // Unmute
|
||||
// If the input is a media stream, we don't check its data and always regard
|
||||
// it as audible when it's playing.
|
||||
SetAudibleState(true);
|
||||
} else {
|
||||
if (stream) {
|
||||
mSrcStreamPausedCurrentTime = CurrentTime();
|
||||
@@ -4661,10 +4664,6 @@ void HTMLMediaElement::UpdateSrcMediaStreamPlaying(uint32_t aFlags)
|
||||
mMediaStreamListener->Forget();
|
||||
mMediaStreamListener = nullptr;
|
||||
}
|
||||
|
||||
// If the input is a media stream, we don't check its data and always regard
|
||||
// it as audible when it's playing.
|
||||
SetAudibleState(shouldPlay);
|
||||
}
|
||||
|
||||
void HTMLMediaElement::SetupSrcMediaStreamPlayback(DOMMediaStream* aStream)
|
||||
|
||||
Reference in New Issue
Block a user