зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156472 - Part 12 - Allow to pipe the AudioCaptureStream into an AudioContext. r=mt,roc
This commit is contained in:
Родитель
7872410708
Коммит
67ca74db0b
|
@ -797,6 +797,9 @@ public:
|
|||
if (mAudioSource &&
|
||||
mAudioSource->GetMediaSource() == dom::MediaSourceEnum::AudioCapture) {
|
||||
domStream = DOMLocalMediaStream::CreateAudioCaptureStream(window);
|
||||
// It should be possible to pipe the capture stream to anything. CORS is
|
||||
// not a problem here, we got explicit user content.
|
||||
domStream->SetPrincipal(window->GetExtantDoc()->NodePrincipal());
|
||||
msg->RegisterCaptureStreamForWindow(
|
||||
mWindowID, domStream->GetStream()->AsProcessedStream());
|
||||
window->SetAudioCapture(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче