chriswiggins / rtsp-streaming-server

Lightweight RTSP/RTP streaming media server written in Javascript
GNU General Public License v3.0
106 stars 21 forks source link

Hi , I am trying to implement a live streaming app using webRTC and this library , but I need to log events when the rtsp streaming starts . Can you give an example how to use clientServerHooks ? I tried with the example but its not working #20

Open debajit-brigosha opened 4 years ago

debajit-brigosha commented 4 years ago

const server = new RtspServer({ serverPort: 5554, clientPort: 6554, rtpPortStart: 10000, rtpPortCount: 10000, clientServerHooks: function clientClose () { console.log(A client has disconnected); } })