Page 1 of 1

How to select program ID of video to play in plugin?

Posted: 13 Jul 2005 08:43
by ngybi123
Hi,

I am currently using the VLC Media Player to play video/audio of a MPTS (Multiple Program Transport stream) which is streamed over UDP. In the VLC Media Player, we can select the program ID to watch either from the menu, or specifying the "--program" option on the command line.

Since in an MPTS there are multiple programs, I need to specify the program ID of the video to play in the embedded video plugin HTML code. I only have the 2 examples below, which does not indicate how this can be done. Anybody has any idea how I can specify the program ID in the HTML code? Thanks

Example 1

<html>
<head><title>Demo of VLC mozilla plugin</title></head>
<body>
<h1>Demo of VLC mozilla plugin - Example 1</h1>
<embed type="application/x-vlc-plugin"
name="video1"
autoplay="no" loop="yes" width="400" height="300"
target="http://server.example.org/video1.vob" />
<br />
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>
</body>
</html>

Example 2

<html>
<head><title>Demo of VLC mozilla plugin</title></head>
<body>
<h1>Demo of VLC mozilla plugin - Example 2</h1>
<embed type="application/x-vlc-plugin"
name="video2"
autoplay="no" loop="no" hidden="yes"
target="udp:@239.255.12.42" />
<br />
<a href="javascript:;" onclick='document.video2.play()'>Play video2</a>
<a href="javascript:;" onclick='document.video2.stop()'>Stop video2</a>
<a href="javascript:;" onclick='document.video2.fullscreen()'>Fullscreen</a>
</body>
</html>

Anyone have an answer?

Posted: 15 Jul 2005 08:39
by ngybi123
Can the program ID be specified in the embedded HTML plugin code to indicate which program to watch?
YES or NO? Anyone knows?
If NO, I would like to make this as an enhancement request.
Thanks