W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > January 2017

Re: [mediacapture-main] Revive createObjectURL?

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 Jan 2017 09:38:28 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-275625065-1485509907-sysbot+gh@w3.org>
I'm not sure if that's related but it would be nice if we could also 
assign directly a `MediaSource` to `srcObject`. As I'm not familiar 
with the Media spec yet, I was wondering if you could tell me where I 
should file this proposal.

 var audio = document.createElement('audio');
 var mediaSource = new MediaSource();
- audio.src = window.URL.createObjectURL(mediaSource);
+ audio.srcObject = mediaSource;

For now, here's the error I get: 
`Uncaught TypeError: Failed to set the 'srcObject' property on 
'HTMLMediaElement': The provided value is not of type 'MediaStream'.`

GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at 
 using your GitHub account
Received on Friday, 27 January 2017 09:38:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:31 UTC