Remote Camera Streaming
Overview
When you want your app to display a stream remotely from mios, you can do a special data request to have mios attempt to set up a hole through the user's NAT.
Example:
For user skyvera and password myvera123, if you wanted to get the url to remotely stream video for device 45 you would do:
https://fwd2.mios.com/skyvera/myvera123/10266/data_request?id=lu_camera_port&DeviceNum=45
and get a response like
{"status":"warning","url":"http://dceadmin:dcepass@76.45.122.30:3482/nphMotionJpeg?Resolution=640x480&Quality=Clarity"}
"status" can be one of warning, upnp, natpmp or forwarded. If status is warning, it means that upnp and natpmp both don't work, and that the last time we checked, port 3482 wasn't forwarded to MiOS. In such a case, you should display a message reminding your users to forward port 3482 to mios.