rtsp-video-player-sdk
v1.0.3
Published
Using npm:
Downloads
197
Readme
Installing
Using npm:
$ npm install rtsp-video-player-sdk
Using yarn:
$ yarn add rtsp-video-player-sdk
Example
<video autoplay id="video"></video>
const player = require('rtsp-video-player-sdk');
// Or
import player from 'rtsp-video-player-sdk';
// Set the parameters
player.setWsHost("websocket url");
player.setRtspUrl("rtsp url");
player.setVideo("video dom");
// start
player.init()
// stop
player.stop()