play multiple channel from TS Stream on C#

This forum is about all development around libVLC.
mhheydarchi
Blank Cone
Blank Cone
Posts: 10
Joined: 23 Jun 2015 17:30

play multiple channel from TS Stream on C#

Postby mhheydarchi » 16 Aug 2015 22:13

I am using LibVlcWrapper to play video on c#. I have a TS Stream with some services on it. i want to select a channel( service ) from it t play. i pass an argument and select it and it work correctly.
But i want to play 2,3 or more channel from TS Stream on seprate window.
how i can do it.
this is a sample of my code for one channel :

IMediaPlayerFactory m_factory;
IVideoPlayer m_player;
IMedia m_media;
m_factory = new MediaPlayerFactory()
m_media = m_factory.CreateMedia<IMedia>("192.168.1.100", new string[]{ "program=206" });//,new string[]{"program=206"});
m_player.WindowHandle = tabControlPanelTV2.Handle;
m_player.Open(m_media);
m_media.Parse(true);

m_player.Play();

mhheydarchi
Blank Cone
Blank Cone
Posts: 10
Joined: 23 Jun 2015 17:30

Re: play multiple channel from TS Stream on C#

Postby mhheydarchi » 17 Aug 2015 10:26

In Windows by Command line i can play some services from a TS Stream.
for that, i run some vlc on a TS Stream as below :
> vlc udp://@:1001 --program 204
> vlc udp://@:1001 --program 205
> vlc udp://@:1001 --program 208

As a result 3 instance of vlc run and each one play a service.
But when i create a player on c# for each service and pass the service ID to it, i see just one of the players play video and others play none.
I think when i run vlc on windows on one TS Stream, one of player has role of server and others use resources of it for receiving stream then play an appropriate service from it.
Is it correct? if it incorrect, based on the things which i told you about, vlc can run some services from TS stream simultaneity, how i can do it on C#.

mjalil
New Cone
New Cone
Posts: 2
Joined: 15 Aug 2015 18:45

Re: play multiple channel from TS Stream on C#

Postby mjalil » 22 Aug 2015 08:48

Dear mhheydarchi,
I think when i run vlc on windows on one TS Stream, one of player has role of server
If you think one of theme has server role, test it. open three instances, then kill the first one that you think is server, the two others should show blank, otherwise the first one did not play a server role.
I think it may be a cause of a static field in LibVlcWrapper, not something like "Server Role"


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests