I’m trying to cast my Foscam “Mjpeg” stream to Chromecast, but seems that chromecast doesn’t support that stream. So I settled for just casting a snapshot image, when my camera detects motion. So far I’ve been able to send the Snapshot via FTP to Openhab/raspberry. When I try to cast the local stored snapshot, I get an error: could not open media. I can cast png and jpeg images from http without any problems. So It seems that chromecast binding doesn’t support casting from local folders? Are there any solutions for this?
Could one option be to upload snapshots to openhab webserver, and then chromecast the http url?
I’ve been able to get my RTSP stream from Foscam camera converted with openRTSP to mp4, and then sent to chromecast through a Openhab rule
I triggered a openrtsp.py script with motion feedback from Synology Surveillance Station event handler. Python script containing just the command line command for openrtsp, which results in a mp4 file of 10sec uploaded to etc/openhab2/html/. Then I trigger an action to cast http://IP_SERVER/8080/static/filename.mp4
I haven’t figured out how to live stream yet. You’ll have to wait untill the file is created. So I have managed that by only capturing 10sec before sending the converted snippet to chromecast.