The code is now available via the github link above. This was written live on my weekly show Live Code Fridays…
This just takes whatever stream URL you want, creates a child device from child smartapp and passes it into the device for streaming.
Will add more features to this over time, but its a simple way to add streaming video feeds to SmartThings.
Android works far better than iOS, since iOS doesn’t support as many protocols, etc. Might take some tinkering to find the right settings / resolution, etc. to optimize.
How to Install:
Github integration works for smartapps and devicetypes, just add the repo and copy down the files
or
Install from Code for each smartapp and the devicetype
Publish the connect app and devicetype (don’t publish the child smartapp)
Go to Marketplace, smartapps, my apps, find the connect app. Click Done to install the smartapp.
Go to smartapps in fly out, side menu find the Generic Video Camera Connect smartapp.
(If it isn’t there, its a platform bug, need to go into IDE, locations, smartaps, find the smartapp, click on it and uncheck the child check box)
Add a camera.
Make sure the url is all lowercase for rtsp or http: etc, as Android and iOS can tend to capitalize the first letter, which can then fail.
Add as many cameras as you want.
They will show up in your things list.
For assistance, you must provide the following information to get support:
SmartThings Mobile version Number
Mobile Device, Android, iOS, Windows
Camera Make and Model
Streaming URL you are trying to use
Proof that some how you don’t have access to google or other search engines to find the correct url
Known Issues:
iOS streaming is limited, nothing I can do about this, it appears it is an iOS limitation, try a low res stream.
Sometimes streaming will stop or lag out, this might be an ST app issue, restart app and should be fine.
Resuming from sleep on android with stream open may result in black window or missing video tile, wait a bit or force quit and restart app.
DO NOT ASK SmartThings FOR SUPPORT!!!
This is completely unsupported and taking advantage of undocumented / unreleased features which can and probably will break in the next mobile app release, firmware upgrade, platform release, phase of moon change or at the flap of a butterfly’s wing.
Feel free to fork, extract and or use this code how you see fit, I provide no warranty. It could melt your phone for all I know. If you do use the code or any part of it, all I ask is you provide a credit back to “pstuart” and a link to the original github code in a comment.
NOTE: Do not port forward your cameras. This will only work when you are on your home network or using a VPN back to your home network. I repeat, DO NOT PORT FORWORD your cameras.