RTSPtoWEBPlayer
external video player for projects:
there is no GUI in this project, you can add your own GUI
Install
git clone https://github.com/vdalex25/RTSPtoWEBPlayer.git
cd RTSPtoWEBPlayer
npm install
npm run build
it's created compiled file dist/RTSPtoWEBPlayer.js
Usage
Add script to your page
<script src="dist/RTSPtoWEBPlayer.js"></script>
Create new player
const options={
parentElement: document.getElementById('player')
};
const player=new RTSPtoWEBPlayer(options);
player.load('ws://localhost:8083/stream/517fe9dbf4b244aaa0330cf582de9932/channel/0/mse?uuid=517fe9dbf4b244aaa0330cf582de9932&channel=0');