Re: can we generate a stream from local file

On 07/30/2012 07:06 PM, Travis Leithead wrote:
>> -----Original Message----- From: Stefan Hakansson LK
>> [mailto:stefan.lk.hakansson@ericsson.com] On 07/30/2012 11:08 AM,
>> Sunyang (Eric) wrote:
>>> Can we generate a stream from a file, and then use addStream() to
>>> send it to peer?
>>
>> That is the intention.
>
> We should simply extend MediaStreamTrackList:add for this scenario
> (see below). However, I'm skeptical that you'd want to be able to
> "stream" arbitrary files as a media stream track. For example, what
> would happen if you tried to send a PDF or HTML document as a stream?
> It just doesn't make sense. If that's your goal, what you want is
> simply a Blob-based file transfer mechanism (peer-to-peer). I doubt
> that real-time media transfer is the transfer mechanism you would
> want for that.

It certainly would be applicable for certain types of files only.

Received on Monday, 30 July 2012 19:38:13 UTC