mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156472 - Part 12 - Allow to pipe the AudioCaptureStream into an AudioContext. r=mt,roc
This commit is contained in:
parent
55c4927214
commit
cd583333bd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user