W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2012

Blob URLs for MediaStreams

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 9 Oct 2012 18:26:15 +1300
Message-ID: <CAOp6jLZk91awSqPG_E=+e42+CR2Zfn1pRoh-oNc04d+RrzhVGw@mail.gmail.com>
To: public-media-capture@w3.org
http://dev.w3.org/2011/webrtc/editor/getusermedia.html#methods-1
The current draft says that createObjectURL mints a Blob URL for a
MediaStream. I don't think that is a good idea, since Blobs are static
objects (an immutable array of bytes), and MediaStreams are a
constantly-changing stream of media data. So a URL constructed for a
MediaStream cannot be used everywhere a Blob could be used, for example it
can't be loaded via XmlHttpRequest.

So I suggest that a new URL scheme analogous to Blob URLs be defined for
MediaStreams, say scheme "mediastream". The rest of their behavior, such as
revocation, can be shared with Blob URLs.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Tuesday, 9 October 2012 05:26:43 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:02 GMT