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
This commit is contained in:
Alastor Wu
2017-05-10 23:43:11 +08:00
parent fe26979a12
commit 341c403406

View File

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