openrov-mjpeg-video-webcomponent
openrov-mjpeg-video-webcomponent copied to clipboard
Add a MJPEG video tag for HTML5 browsers. Add the HTML5 video support for MJPEG that was missing in modern browsers without resorting to plugins.
MJPEG-Video_Webcomponent
This project provides a robust video player component for modern browsers that plays MJPEG video streams. No plugin's required.
The < video> tag in HTML5 is nice and all, but they totally left out MJPEG. This fixes that.
Features:
- Automatic resume from loss of connectivity
- Loss of video stream detection
- Fullscreen mode
- 500%+ performance improvement over native browser < IMG> tag solution
- Easy support for overlaying other html elements on top of the video
Built on:
Installation
bower install mjpeg-video-webcomponents
Usage
<mjpeg-video src='<url of mjpeg stream>' style='width: 1280px; height:720px'></mjpeg-video>
To insert text on the upper right of the video:
<mjpeg-video src='<url of mjpeg stream>' style='width: 1280px; height:720px'>
<p style="position:absolute; top:0px; left:0px; z-index:2">Overlay Text!</p>
</mjpeg-video>
Refer to the example/index.html file for detailes.
Contributing
The most obvious things this project needs support with:
- Testing on multiple browsers
- Submitting pull requests for improvements
- Unit tests
To setup a development environment:
please note: The bower install of the subcomponent will install one folder below so that the dependencies are at the same folder level of this project so that the relative paths to those dependencies work.
clone https://github.com/BrianAdams/openrov-mjpeg-video-webcomponent
cd openrov-mjpeg-video-webcomponent/example
bower install
go ahead and modify the index.html file to have the address of your video stream and load the page. As you need to make changes, you can simply run bower install again to pull in your updates in to the example project for testing.
Attribution
FullScreenImage By http://www.iconarchive.com/artist/dakirby309.html (IconArchive) [CC-BY-3.0 (http://creativecommons.org/licenses/by/3.0) or FAL], via Wikimedia Commons