forked from rctoris/mjpegcanvasjs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Techming/develop
Added unmount method and update documentation
- Loading branch information
Showing
6 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
# web-video-canvas [](https://github.com/Techming/web-video-canvas/actions) [](https://www.npmjs.com/package/@techming/web-video-canvas)  | ||
# web-video-canvas [](https://github.com/Techming/web-video-canvas/actions) [](https://www.npmjs.com/package/@techming/web-video-canvas)  | ||
|
||
**Display a Video Stream from the ROS web_video_server Inside of a HTML5 Canvas** | ||
|
||
This repo is a fork from and developed based on [mjpegcanvas](https://github.com/rctoris/mjpegcanvasjs) by [Russell Toris](https://github.com/rctoris) ([email protected]). Thanks for all the previous effort. | ||
|
||
JSDoc can be found in [here](https://techming.github.io/web-video-canvas). | ||
|
||
For full documentation, see [the ROS wiki](https://wiki.ros.org/web_video_canvas). | ||
For full documentation, see [the ROS wiki](https://wiki.ros.org/web_video_canvas). JSDoc can be found [here](https://techming.github.io/web-video-canvas/). | ||
|
||
## Usage | ||
|
||
|
@@ -35,6 +34,10 @@ const viewer = new Viewer({ | |
}); | ||
``` | ||
|
||
- To close HTTP connection and clear any timer used internally before unmount the viewer object, you can call `viewer.unmount()` method. | ||
- `canvas` parameter in the construtor can be used to pass a canvas element to draw the video feed on. | ||
- For other parameters usage, please refer to the [JSDoc](https://techming.github.io/web-video-canvas/). | ||
|
||
### Static Import | ||
|
||
Pre-built files can be found in [webvideocanvas.js](build/webvideocanvas.js) and [webvideocanvas.min.js](build/webvideocanvas.min.js) | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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