W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2012

Re: Blobs and MediaStreams (Re: getUserMedia API: How to use the LocalMediaStream object ?)

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 7 Mar 2012 23:54:56 +0000
Message-ID: <CAOp6jLbJYAYysKZwzEeCsGW7vOTZ0zTdrMPrHGqTBpb6zZk2EQ@mail.gmail.com>
To: Adam Bergkvist <adam.bergkvist@ericsson.com>
Cc: Randell Jesup <randell-ietf@jesup.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>, "Robert O'Callahan" <roc@ocallahan.org>
On Wed, Mar 7, 2012 at 4:52 PM, Adam Bergkvist
<adam.bergkvist@ericsson.com>wrote:

> It just felt like a bit strange to involve a media player in the
> conversion from a Blob to MediaStream. A bit like an old cassette deck
> player. Do I have to press play to start the conversion;


Yes.

can I use high speed dubbing? :)


Yes, if you mean "set .playbackRate to play back the blob content at a
different rate".

Nothing prevents supporting Blob-to-MediaStream playback via media elements
*and* some other more convenient and possibly more performant API. Rather
than introducing a new MediaStream constructor, I think a method on Blob
would make more sense, say Blob.createMediaStream(). That could be defined
to behave as "create a new video element; set source to blob; play();
return captureStreamUntilEnded();"

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 Wednesday, 7 March 2012 23:55:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 March 2012 23:55:25 GMT