Bug 1191667 - Part 3. Call NotifyStartedPlaying to show audio indicator. r=eitan

This commit is contained in:
Makoto Kato 2015-09-01 17:50:59 +09:00
Родитель 35dfdeec78
Коммит 3369990f9c
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -667,6 +667,10 @@ nsSpeechTask::CreateAudioChannelAgent()
mAudioChannelAgent->InitWithWeakCallback(mUtterance->GetOwner(),
static_cast<int32_t>(AudioChannelService::GetDefaultAudioChannel()),
this);
float volume = 0.0f;
bool muted = true;
mAudioChannelAgent->NotifyStartedPlaying(nsIAudioChannelAgent::AUDIO_AGENT_NOTIFY, &volume, &muted);
WindowVolumeChanged(volume, muted);
}
void