@cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
With omxplayer stream switching is almost OK if it wasn’t that it doesn’t select the wanted stream.
I can’t replicate this issue. Directly sending notifications: of the form notification: "RTSP-PLAY", payload: "streamX"
works as expected and switches to the correct stream when using autoStart: false, rotateStreams: true, rotateStreamTimeout: 0
.
How many streams do you have again? Is it less than 10?
@cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
With vlc it’s a mess as multiple streams ALWAYS start at the same time after a voice command.
I think this is related to the fact that VLC doesn’t close the streams automatically when switching, it puts the window in the background until it times out, then it closes. Try adding a shutdownDelay: 0
to your module config to make the VLC stream close immediately on hiding. Same thing with omxplayer though, switching appears to work as expected on my end.
Please also make sure you have the latest version of PM2: sudo npm install -g pm2