зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1191667 - Part 3. Call NotifyStartedPlaying to show audio indicator. r=eitan
This commit is contained in:
Родитель
35dfdeec78
Коммит
3369990f9c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче