зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322505 - part1 : rename audio channel wrapper's function. r=baku
Rename function and modify the comment. MozReview-Commit-ID: F5JTmPvH7GC --HG-- extra : rebase_source : 0195f5b52cc6b101eb8b6551f65128cd6d70252f
This commit is contained in:
Родитель
0bfbd8a186
Коммит
13dcc2d20e
|
@ -655,12 +655,13 @@ public:
|
|||
}
|
||||
|
||||
void
|
||||
NotifyPlayStarted()
|
||||
NotifyPlayStateChanged()
|
||||
{
|
||||
MOZ_ASSERT(!mIsShutDown);
|
||||
// Reset the suspend type because the media element might be paused by
|
||||
// audio channel before calling play(). eg. paused by Fennec media control,
|
||||
// but resumed it from page.
|
||||
// When owner's play state changed, we should reset the suspend type. If
|
||||
// owner is playing, the suspend type should be 'NONE_SUSPENDED', and if
|
||||
// owner paused, the suspend type also needs to be reset because the agent
|
||||
// maybe need to be unregistered.
|
||||
SetSuspended(nsISuspendedTypes::NONE_SUSPENDED);
|
||||
UpdateAudioChannelPlayingState();
|
||||
}
|
||||
|
@ -7132,7 +7133,7 @@ HTMLMediaElement::UpdateCustomPolicyAfterPlayed()
|
|||
{
|
||||
OpenUnsupportedMediaWithExternalAppIfNeeded();
|
||||
if (mAudioChannelWrapper) {
|
||||
mAudioChannelWrapper->NotifyPlayStarted();
|
||||
mAudioChannelWrapper->NotifyPlayStateChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче