agsh / rtsp-ffmpeg

Node.js FFMpeg wrapper for streaming RTSP into MotionJPEG
MIT License
249 stars 84 forks source link

How do I switch RTSP streams? #16

Closed Caraws closed 6 years ago

Caraws commented 6 years ago

I want to switch the camera screen with the button on the client side. So i did this.

code

consle

but the client didn't change. am i did wrong? please tell me the right way.

agsh commented 6 years ago

Try restart() method after changing input property.

Caraws commented 6 years ago

cool! it's work, thx a lot!!