RE: How to direct audio/video streams from HTML5 media element to PeerConnection?

OK, that makes sense.  By the way, though, what is the origin of media obtained from gUM?  Is it considered to be the same as the origin of the page, or is it some unique identifier of the user's local system?  The later, I would think, but I don't see it specified in the gUM spec.

- Jim

-----Original Message-----
From: Martin Thomson [mailto:martin.thomson@gmail.com] 
Sent: Friday, March 22, 2013 4:32 PM
To: Jim Barnett
Cc: LiLi (Z); public-media-capture@w3.org
Subject: Re: How to direct audio/video streams from HTML5 media element to PeerConnection?

Consent wont be necessary here.  The content is either readable by the page origin (because it came from that origin) or it is not.  Tags that are displaying tainted content (cross-domain, peer-bound, or otherwise inaccessible) can't be captured*.  No point in going any further than that.

I prefer 2.3.  Given that a display tag (<video>, <audio>) can be paused, resumed, etc..., we have to assume that there is some display-tag-specific processing going on to produce the captured track(s).  A method is the best way to approach this, it lets the browser surface exceptions and provide appropriate grouping semantics, like composing audio and video into a stream.

* Let's not go into the case where the content origin is the target of the RTCPeerConnection, which is extreme and crazy.

On 22 March 2013 13:22, Jim Barnett <Jim.Barnett@genesyslab.com> wrote:
> Don’t we have to consider user consent here?  I wouldn’t want an app 
> grabbing the contents of a video element and sending it off to a 
> remote site without asking my permission.
>
>
>
> Am I right that tainting the stream will solve IP issues?  If I have 
> paid to watch a streamed movie, I can’t necessarily share it with a remote friend.
> However if the video stream is tainted, the UA should not allow the JS 
> code to access it.  Or am I missing something?
>
>
>
> That said, I like proposal 2.1.  It’s straightforward and I don’t 
> think it’s too clunky.
>
>
>
> Jim
>
>
>
> From: LiLi (Z) [mailto:Li.NJ.Li@huawei.com]
> Sent: Friday, March 22, 2013 4:05 PM
> To: public-media-capture@w3.org
> Subject: Re: How to direct audio/video streams from HTML5 media 
> element to PeerConnection?
>
>
>
> Attached please find a contribution to address this problem based on 
> discussions on the list.
>
> Suggestions and comments are welcome.
>
> Thanks.
>
>
>
> Li
>
>

Received on Friday, 22 March 2013 20:48:19 UTC