[Live-devel] DeviceSource question
Ishwar.Jasuja at jci.com
Ishwar.Jasuja at jci.com
Tue May 27 13:13:03 PDT 2008
Ross,
I made changes as per your recommendation below. But I dont see any data
being streamed out by MultiFramedRTPSink() class .
Here is what I have done,
To make things simpler, I am reading data from a file (that has few
seconds of elementary video stream data stored in it)
in doGetNextFrame() method of DeviceSource class.
I read the requested number of bytes(fMaxSize) from this file and store it
in global buffer, set the watch variable to TRUE.
doEventLoop() checks for this global watch variable (just before calling
SingleStep() method) and invokes DeviceSource::deliverFrame() method which
in turn invokes FramedSource::afterGetting() method if the watch wariable
is found to be TRUE.
Please help,
Thanks
Ishwar
Ross Finlayson <finlayson at live555.com>
Sent by: live-devel-bounces at ns.live555.com
05/23/2008 02:20 PM
Please respond to
LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
To
LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
cc
Subject
Re: [Live-devel] DeviceSource question
You can't call "LIVE555 Streaming Media" library code from within
your separate encoder thread. However, what you can do is have your
encoder thread use a global variable to signal an event that gets
handled by the LIVE555 code's event loop (running in its own thread).
One easy way to do this is to use "doEventLoop()"s 'watchVariable'
feature; see
<http://lists.live555.com/pipermail/live-devel/2005-September/003276.html
>.
(Note, however, that if you use the 'watchVariable' feature, you
should also note this point:
<http://lists.live555.com/pipermail/live-devel/2006-March/004192.html>)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080527/6ac3593a/attachment.html>
More information about the live-devel
mailing list