[Live-devel] stream from data pointer, not file
Ross Finlayson
finlayson at live555.com
Mon Jun 20 18:13:01 PDT 2011
>Thank you Ross for your response. I didn't explain myself earlier as
>I should. I have already read the FAQ of course before posting.
Well, I'm not sure that you read
http://www.live555.com/liveMedia/faq.html#liveInput
and
http://www.live555.com/liveMedia/faq.html#liveInput-unicast
which address your question.
>I have understood that I have to create my own createNewStreamSource
>in a new myH264VideoFileServerMediaSubsession. My questions is,
>which is the simplest way to change the input and instead of reading
>from file, just give as input a data buffer uint8_t *.
Define your own subclass of "FramedSource" (perhaps based on the
"DeviceSource" model), and create an instance of this subclass to
encapsulate your data buffer.
> I guess I will have to change ByteStreamFileSource:createNew , right?
WRONG! You do not need to change the supplied code! (The
"ByteStreamFileSource" code works perfectly well, as is. However,
you won't be using that class.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110620/66fbacd2/attachment.html>
More information about the live-devel
mailing list