This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21606 - Add direct assignment of MediaStream to media element
Summary: Add direct assignment of MediaStream to media element
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23091
  Show dependency treegraph
 
Reported: 2013-04-07 05:53 UTC by Stefan Hakansson LK
Modified: 2013-08-29 13:07 UTC (History)
5 users (show)

See Also:


Attachments

Description Stefan Hakansson LK 2013-04-07 05:53:56 UTC
Direct assignment using srcObject should be added.
Comment 1 Harald Alvestrand 2013-05-28 08:58:09 UTC
Verifying consensus:

- The Media Capture and Streams spec should add a new component to the HTML media element interface:

partial interface HTMLMediaElement {
  attribute MediaStream? srcObject;
}

- We keep the ObjectURL method for backwards compatibility

Someone (Mozilla, who's implemented this?) should state what the effect on src is when srcObject is set, and vice versa.
Comment 2 Dominique Hazael-Massieux 2013-06-03 10:25:42 UTC
I'm not sure we need to keep createObjectURL if it's only for backwards compatibility — the legacy doesn't seem to that big to make it worthwhile.

If the two approaches are complementary, why not having the two, but otherwise, it seems confusing.
Comment 3 Robert O'Callahan (Mozilla) 2013-06-03 13:00:15 UTC
srcObject takes precedence over other sources ('src' and <source>).

There are use-cases for making srcObject take a Blob and a MediaSource too.
Comment 4 Dominique Hazael-Massieux 2013-07-08 15:47:57 UTC
Direct assignment has been added to the spec:
http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-mediastreamtrack-clone

But with a buggy name for it:
http://lists.w3.org/Archives/Public/public-media-capture/2013Jul/0002.html
on a buggy interface (acknowledged by Adam http://lists.w3.org/Archives/Public/public-media-capture/2013Jul/0004.html )
Comment 5 Dominique Hazael-Massieux 2013-08-28 15:38:13 UTC
Fixed in the latest editors draft