rtsp-streaming-server
rtsp-streaming-server copied to clipboard
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
const server = new RtspServer({
serverPort: 5554,
clientPort: 6554,
rtpPortStart: 10000,
rtpPortCount: 10000,
clientServerHooks: function clientClose () {
console.log(A client has disconnected
);
}
})