Postby riadoufr » 17 Nov 2010 12:56
Thanks for answering me.
Yes this work(creating two) but my problem is a little bit more complicated.
The main goal of my program is to allow people to make their own TV channel,and to broadcast a live show(a show include many cameras that the program user can switch between them).
I will try to more 0explain
I have tow video that I want to display both of them,and stream out only one of them.
And I need to make a button that allow me to switch the streaming source.(If the first video is being streaming to rtp address rtp://@239.255.1.42:1234,when this button is pressed,the program have to stop streaming it,and start streaming the second video to the same rtp address).
If I make tow instances of libVLC for playing locally,and tow other instances for streaming(or only one,I think it is enough),the displaying locally will be OK,but I will have problem in the streaming video because the program have to reload the new file and that takes a lot of time.And the goal of my program is to make your own TV channel by selecting lively the video that will be playing and even the time is a few seconds,that will not be good for the TV channel viewers(If I want to broadcast a live show with many cameras,I need to change the camera many times in the minutes)
So please help me!