Difference between revisions of "Live Demo Test"
(→Testbed) |
(→Testbed) |
||
| Line 6: | Line 6: | ||
http://65.23.154.147:8080/uVMS/ViewHTML5WebRTC.aspx?IP=65.23.154.147&Alias=uVMS_79ae8666665aa4c3af58&Name=Dahua-HDBW4231F-E2-M | http://65.23.154.147:8080/uVMS/ViewHTML5WebRTC.aspx?IP=65.23.154.147&Alias=uVMS_79ae8666665aa4c3af58&Name=Dahua-HDBW4231F-E2-M | ||
| − | + | <html> | |
| + | <!DOCTYPE html> | ||
| + | |||
| + | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| + | <head><title> | ||
| + | HTML5 WebRTC Player | ||
| + | </title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | ||
| + | <script type="text/javascript" src="https://webrtc.github.io/adapter/adapter-latest.js"></script> | ||
| + | <script type="text/javascript" src="HTML5Player/unrealwebrtcplayer.js"></script> | ||
| + | |||
| + | <script type="text/javascript"> | ||
| + | var webrtcPlayer = null; | ||
| + | |||
| + | function OnMetadata() | ||
| + | { | ||
| + | var remoteVideo = document.getElementById("remoteVideo"); | ||
| + | remoteVideo.width = Math.max(remoteVideo.videoWidth, 500); | ||
| + | remoteVideo.height = Math.max(remoteVideo.videoHeight, 300); | ||
| + | |||
| + | window.resizeTo(remoteVideo.width + 50, remoteVideo.height + 200); | ||
| + | } | ||
| + | </script> | ||
| + | </head> | ||
| + | |||
| + | <body> | ||
| + | |||
| + | <div align="center"><span id="LabelCam">Dahua-HDBW4231F-E2-M</span></div><br> | ||
| + | |||
| + | <div id="container"> | ||
| + | |||
| + | <video style="background-color:black" id="remoteVideo" width="800" height="600" autoplay playsinline controls onloadedmetadata="OnMetadata()"></video> | ||
| + | |||
| + | <script type="text/javascript"> | ||
| + | |||
| + | webrtcPlayer = new UnrealWebRTCPlayer("remoteVideo", "uVMS_79ae8666665aa4c3af58", "", "65.23.154.147", "80", 0, true, "tcp"); | ||
| + | webrtcPlayer.Play(); | ||
| + | |||
| + | </script> | ||
| + | |||
| + | </div> | ||
| + | |||
| + | </body> | ||
| + | </html> | ||
Revision as of 17:02, 27 September 2018
Live Demo Test
URL
http://70.168.153.130/cgi-bin/mjpg/video.cgi?[channel=1]&subtype=1
Testbed
Dahua-HDBW4231F-E2-M