How Select specifiec PID(Program) on from C#

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

How Select specifiec PID(Program) on from C#

Postby mhheydarchi » 15 Aug 2015 17:03

Hi
This is my Code i want to select specific program when play a file.
This code play file but i want to select program number = 203 from file to play.
is there any incorrect argument.
please help me.

var argument = new string[] { "--program=203"};
IMediaPlayerFactory factory = new MediaPlayerFactory();
IMediaFromFile media = factory.CreateMedia<IMediaFromFile>("C:\\Test.ts", argument);
player = factory.CreatePlayer<IVideoPlayer>();
player.WindowHandle = tabControlPanelTV2.Handle;
player.Open(media);
media.Parse(true);
player.Play();

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

Re: How Select specifiec PID(Program) on from C#

Postby mhheydarchi » 17 Aug 2015 10:04

Hi
This is my Code i want to select specific program when play a file.
This code play file but i want to select program number = 203 from file to play.
is there any incorrect argument.
please help me.

var argument = new string[] { "--program=203"};
IMediaPlayerFactory factory = new MediaPlayerFactory();
IMediaFromFile media = factory.CreateMedia<IMediaFromFile>("C:\\Test.ts", argument);
player = factory.CreatePlayer<IVideoPlayer>();
player.WindowHandle = tabControlPanelTV2.Handle;
player.Open(media);
media.Parse(true);
player.Play();
I solved it.
i correct option to this : var argument = new string[] { "program=203"};


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests