- 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
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.
```diff
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
https://github.com/w3c/mediacapture-main/issues/404#issuecomment-275625065
using your GitHub account
Received on Friday, 27 January 2017 09:38:34 UTC