Bug 1357633 - part1 : request audio focus again when resume media from page. r=baku

Should also update audio playing changed after resumed from page.

MozReview-Commit-ID: 66vuJJFeWN3

--HG--
extra : rebase_source : 06802b2e49f5e712a1d9fd34d4ae017995faaa75
This commit is contained in:
Alastor Wu 2017-05-10 23:43:11 +08:00
parent 0c6fcd0d50
commit acab9ac022

View File

@ -682,6 +682,8 @@ public:
MOZ_ASSERT(!mIsShutDown);
if (ShouldResetSuspend()) {
SetSuspended(nsISuspendedTypes::NONE_SUSPENDED);
NotifyAudioPlaybackChanged(
AudioChannelService::AudibleChangedReasons::ePauseStateChanged);
}
UpdateAudioChannelPlayingState();
}