Re: [mediacapture-output] Controlling 3rd party iframe audio output on a page?

Having thought about this some more...
the only not-completely-bogus thing I've been able to think of is that we could add an attribute to the Iframe object (https://html.spec.whatwg.org/#the-iframe-element) called "defaultAudioOutput", which would be the place where default audio output is sent.

The advantage of an attribute over a setter is that you can read it, and that it should be easy to say "on creation, it is copied from its parent context".

We could also place it on the objects referenced by the iframe's "contentWindow" or "contentDocument" elements - these are even more generic classes, so would have even more things to sort out (and perhaps other use cases).

I don't want to monkey-patch HTML (more than we already do), but that seems to be required both for a setSinkId() function and a "defaultAudioOutput" attribute on these objects.
@foolip @domenic do you have thoughts about how to best extend HTML objects for this type of control (or why we shouldn't do it)?


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/63#issuecomment-288873763 using your GitHub account

Received on Thursday, 23 March 2017 22:00:01 UTC