Last active
August 5, 2016 01:57
-
-
Save chenkaie/f18d92b603c2c91b12e95d4561b4b9d0 to your computer and use it in GitHub Desktop.
UVC RTMP Player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<!-- | |
Enable RTMP feature by | |
Step 1. ssh into camera | |
Step 2. paste below command into terminal | |
echo createService ip=0.0.0.0 port=1935 protocol=inboundRtmp | nc 127.0.0.1 1112 -w 1 -i 1 | |
Then replace it with corresponding IP address of your UVC | |
<source src="rtmp://192.168.1.20:1935/live/s0" type='rtmp/mp4'> | |
--> | |
<link href="http://vjs.zencdn.net/5.10.7/video-js.css" rel="stylesheet"> | |
<!-- If you'd like to support IE8 --> | |
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> | |
</head> | |
<body> | |
<video autoplay id="my-video" class="video-js" controls preload="auto" width="640" height="360" | |
poster="https://ubcdn.co/static/images/enterprise/overview/unifi-video-overview-2x.png" data-setup="{}"> | |
<source src="rtmp://192.168.1.20:1935/live/s0" type='rtmp/mp4'> | |
<p class="vjs-no-js"> | |
To view this video please enable JavaScript, and consider upgrading to a web browser that | |
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> | |
</p> | |
</video> | |
<script src="http://vjs.zencdn.net/5.10.7/video.js"></script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment