Play program from MPTS file containing 4 programs in C#

This forum is about all development around libVLC.
alwayslearner
New Cone
New Cone
Posts: 1
Joined: 28 Oct 2014 05:54

Play program from MPTS file containing 4 programs in C#

Postby alwayslearner » 28 Oct 2014 06:13

Hi

I have embedded vlc plugin in C# windows form application.
Objective is to selectively play programs from Multi Program TS file.


var uri1 = new Uri(@"C:\sample\football.ts");
var curi = uri1.AbsoluteUri;
axVLCPlugin21.playlist.add(curi, null, ":sout=#es{access=file,dst=display,select=program=4}");
axVLCPlugin21.playlist.play();

The colored aspect shows that i want to plat program 4 from the ts file.Irrespective of what program i mention it always plays first program only.
what am i missing? :( :?:

if i try from command line of vlc ,it plays the selected program
C:\Program Files (x86)\VideoLAN\VLC> vlc --program 4 football.ts

Any suggestion towards answer is greatly appreciated.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Play program from MPTS file containing 4 programs in C#

Postby Jean-Baptiste Kempf » 10 Dec 2014 15:11

:program=4
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 33 guests