<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] stream from data pointer, not
file</title></head><body>
<blockquote type="cite" cite><font face="Verdana">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. </font></blockquote>
<div><br></div>
<div>Well, I'm not sure that you read</div>
<div><x-tab>       
</x-tab>http://www.live555.com/liveMedia/faq.html#liveInput</div>
<div>and</div>
<div><x-tab>       
</x-tab>http://www.live555.com/liveMedia/faq.html#liveInput-unicast</div
>
<div>which address your question.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Verdana">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 *.</font></blockquote>
<div><br></div>
<div>Define your own subclass of "FramedSource" (perhaps
based on the "DeviceSource" model), and create an instance
of this subclass to encapsulate your data buffer.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Verdana"> I guess I will
have to change ByteStreamFileSource:createNew ,
right?</font></blockquote>
<div><br></div>
<div>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.)</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>