Bug 1177259 - Improve the names of the methods of nsIAudioChannelAgent, r=alwu

This commit is contained in:
Andrea Marchesini
2015-07-11 08:24:26 +01:00
parent 02bb7c0e4a
commit 887d50d82f
7 changed files with 26 additions and 25 deletions

View File

@@ -4538,10 +4538,10 @@ HTMLMediaElement::NotifyAudioChannelAgent(bool aPlaying)
if (aPlaying) {
float volume = 0.0;
bool muted = true;
mAudioChannelAgent->StartPlaying(&volume, &muted);
mAudioChannelAgent->NotifyStartedPlaying(&volume, &muted);
WindowVolumeChanged(volume, muted);
} else {
mAudioChannelAgent->StopPlaying();
mAudioChannelAgent->NotifyStoppedPlaying();
mAudioChannelAgent = nullptr;
}
}