How to select program ID of video to play in plugin?
Posted: 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>
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>