Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Viewing IP camera via embedded VLC
- http://192.168.1.99:99/videostream.cgi?user=UNhere&pwd=PWhere&resolution32=&rate=0
- <html>
- <head><title>Demo of VLC</title></head>
- <h1>Demo of VLC mozilla plugin - Example 1</h1>
- <script type="text/javascript">
- function mute()
- {
- vlc.audio.toggleMute();
- }
- function play()
- {
- vlc.playlist.play();
- }
- function stop()
- {
- vlc.playlist.stop();
- }
- function pause()
- {
- vlc.playlist.togglePause();
- }
- <body >
- <!--[if IE]>
- <object type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
- version="VideoLAN.VLCPlugin.2" id="vlc" width="720px"
- height="540px" events="True" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" >
- <param name="MRL" value="http://192.168.1.99:99/videostream.cgi?user=UNhere&pwd=PWhere&resolution32=&rate=0" />
- <param name="volume" value="50" />
- <param name="autoplay" value="false" />
- <param name="loop" value="false" />
- <param name="fullscreen" value="false" />
- </object>
- <![endif]-->
- <!--[if !IE]><!-->
- <object type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
- version="VideoLAN.VLCPlugin.2" id="vlc" width="720px" height="540px" events="True" >
- <param name="MRL" value="http://192.168.1.99:99/videostream.cgi?user=UNhere&pwd=PWhere&resolution32=&rate=0" />
- <param name="volume" value="50" />
- <param name="autoplay" value="false" />
- <param name="loop" value="false" />
- <param name="fullscreen" value="false" />
- </object>
- <!--<![endif]-->
- </div>
- <br />
- </div>
- <iframe name="action_zone" style="display:none"></iframe>
- <div id="controls">
- <input type="button" onclick="play()" value="Play" />
- <input type="button" onclick="pause()" value="Pause" />
- <input type="button" onclick="stop()" value="Stop" />
- <input type="button" onclick="mute()" value="Mute" />
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement