[whatwg] Proposal for a MediaSource API that allows sending media data to a HTMLMediaElement
Robert O'Callahan
robert at ocallahan.org
Tue Jul 12 15:28:45 PDT 2011
On Wed, Jul 13, 2011 at 8:45 AM, Aaron Colwell <acolwell at google.com> wrote:
> I thought about adding an attribute to HTMLMediaElement that provided a URL
> for signalling MediaSource usage. That mechanism would allow you to create a
> URL that only works with that element. When this URL is specified, a
> MediaSource attribute would be updated on the media element during loading
> and JavaScript could use that to pass data to the tag. I couldn't find a
> similar pattern in other APIs so I didn't take that path. If people think
> that is a better route then I'm all for it.
>
I was thinking more of putting the MediaSource functionality
(open/append/close) on the media element itself.
Do you need to support seeking in with this API? That's hard. It would be
simpler if we didn't have to support seeking. Instead of seeking you could
just open a new stream and pour data in for the new offset.
Rob
--
"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
More information about the whatwg
mailing list