Page 1 of 1

HTML embed (RTSP live video stream)

Posted: 13 Nov 2015 15:53
by nomisre
Hello,

I have a Foscam FI9831W IP-camera. My goal is to get around the login page. Unfortunately it is not possible to disable login credentials, so I have to put them in an HTML file.

This HTML should work for Internet Explorer:

Code: Select all

<!DOCTYPE html> <html> <body> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> </head> <object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" id="vlc" name="vlc" class="vlcPlayer" events="True"> <param name="Src" value="rtsp://xxxxx:8080/Media/Live/Normal?camera=C_4&streamindex=1" /> <!-- ie --> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="True" /> <param name="AutoPlay" value="True" /> <!-- win chrome and firefox--> <embed id="vlcEmb" type="application/x-google-vlc-plugin" version="VideoLAN.VLCPlugin.2" autoplay="yes" loop="no" width="640" height="480" target="rtsp://xxxx:8080/Media/Live/Normal?camera=C_4&streamindex=1" ></embed> </object> </body> </html>
I also replaced

Code: Select all

rtsp://xxxxx:8080/Media/Live/Normal?camera=C_4&streamindex=1
for

Code: Select all

rtsp://username:password@camera_ip_address:80/videoMain
but still no result.

Internet Explorer keeps showing a blank player screen. Java and Flash are both updated to the latest version. I am working on a Windows machine btw.

Am I missing some code maybe?

I have also tested this code in Ubuntu and it works:

Code: Select all

<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="yes" loop="yes" width="400" height="300" target="rtsp://username:password@camera_ip_address:80/videoMain" /> <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>