[Live-devel] Query regarding multithreading

Ritun Palit Ritun.Palit at hcl.com
Mon Mar 7 01:21:54 PST 2011


Hi All,
I have read the faq, and got to know that multithreading is a tricky thing to do in Live555 but in my requirement it is needed to do multithreading of Live 555. So,
I'm trying to implement multithreading in one of the test programs named "testMPEG4VideoStreamer". I have done the following code changes
Main()
{
Starting rtsp server;
Calling a custom Startplay method();//input parameters are stream name,filename,rtspserver
}
Startplay()
{
   Starting thread t1
T1->play();
}
In the thread Play Method
{
                Creating new objects of UsageEnvironment,taskscheduler, Groupsock, VideoSink and executing
       videoSink->startPlaying(*videoSource, afterPlaying, videoSink);
       env ->taskScheduler().doEventLoop();

}

After that  compiling and running it. It is generating a url and when I'm trying to run it from vlc media player it is showing nothing!
Though in the console of the program it is showing..
"Streaming,
Reading..
Done reading from the file.."

I'm really not getting where the problem is!Please let me know where I'm going wrong!

Thanks & Regards,
Ritun


________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110307/98bf4fa7/attachment-0001.html>


More information about the live-devel mailing list