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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ngybi123
New Cone
New Cone
Posts: 9
Joined: 12 Jul 2005 10:09

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

Postby ngybi123 » 13 Jul 2005 08:43

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>

ngybi123
New Cone
New Cone
Posts: 9
Joined: 12 Jul 2005 10:09

Anyone have an answer?

Postby ngybi123 » 15 Jul 2005 08:39

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests