mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 834146 - [Audio] When initilizing AudioChannelAgent, we should set visibility correctly in that time. r=kinetik, a=tef+
This commit is contained in:
parent
3bfadd7497
commit
577d544684
@ -3612,6 +3612,13 @@ void nsHTMLMediaElement::UpdateAudioChannelPlayingState()
|
||||
return;
|
||||
}
|
||||
mAudioChannelAgent->Init(mAudioChannelType, this);
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> domDoc = do_QueryInterface(OwnerDoc());
|
||||
if (domDoc) {
|
||||
bool hidden = false;
|
||||
domDoc->GetHidden(&hidden);
|
||||
mAudioChannelAgent->SetVisibilityState(!hidden);
|
||||
}
|
||||
}
|
||||
|
||||
if (mPlayingThroughTheAudioChannel) {
|
||||
|
Loading…
Reference in New Issue
Block a user