Forum Discussion
Live streaming is not working with Android based hot spot(Smartphone)
Lakshman_DSP thanks for sharing the details. When you switch between networks which results in a change of IP there can be issues in live streaming. Can you try the below workaround and let us know if it works.
How do I update the WebStreamModule IP address if the IP address of my camera changes?
To change the WebStreamModule IP address:
-
In Azure Portal, go to IoT Hub > Iot Edge > select your IoT device > Set Modules > Configure (next to WebStreamModule)
-
Change the environment variable RTSP_IP field to match the current IP address of the camera device.
I have checked WebStreamModule IP address and observed its different from current camera IP.
I tried to update WebStreamModule IP address by modifying with latest camera IP but not worked, and observed IP getting restored to old IP later.
I have removed existing IoT edge device from IoT account and added as new IoT edge device with current camera IP. Video live started working in web browser with these changes.
(Both camera and Laptop connected same network i.e. intranet/sub net)
Please confirm below.
- Is it required to add new IoT edge device to IoT hub account every time when we connected new hotspot ? (Updating WebStreamModule IP address not worked in my case).
- Observed web live streaming working from single client at a time (Laptop/mobile, Not working multiple web live streaming). Is it known limitation of AI camera or any additional settings required for multiple web live streaming.
- Observed more latency in web live streaming compared with VLC/HDMI live streaming. Is there any options or settings to improve web live streaming latency. (I know there are many impact factors for latency but I would like to know is there any options from Camera or Azure end).
- Is there any option/possibility to disable existing vision module which is running on camera by default (AIVisionDevKitGetStartedModule)
- Is it internet (Data connection) is mandatory for web live streaming over intranet/subnet. (Assume docker images downloaded already).
Now I also tried to web live streaming over internet i.e. external network, but not working.
(Both camera and Laptop connected different hotspots)
- Steps/settings for web live streaming from internet i.e. external network.
- Steps/procedure for live streaming to popular web services like youtube.
- Mahesh_YadavOct 15, 2019Former Employee
- Is it required to add new IoT edge device to IoT hub account every time when we connected new hotspot ? (Updating WebStreamModule IP address not worked in my case).
no on every reboot we bind to the Ip address , so if the ip is changed then till the time you are connected to ip is same sub domain you can access the live streaming without any changes on a reboot of camera.
- Observed web live streaming working from single client at a time (Laptop/mobile, Not working multiple web live streaming). Is it known limitation of AI camera or any additional settings required for multiple web live streaming.
It should work with multiple clients by design if not working file an issue in github ..
- Observed more latency in web live streaming compared with VLC/HDMI live streaming. Is there any options or settings to improve web live streaming latency. (I know there are many impact factors for latency but I would like to know is there any options from Camera or Azure end).
Nothing specific here as we are using ffmpeg in module webstream module to convert RTSP to mp4 and replaying over http there are many buffers in play causing a delay , please check the code and see if you can improve latency , from setting side there is nothing 😞
- Is there any option/possibility to disable existing vision module which is running on camera by default (AIVisionDevKitGetStartedModule)
you can follow GitHub and build your own module that gives u full control as what you want to run and not run , if you are looking for quick fix just change the deployment of module on iot hub ->iot edge ->deployment on portal.azure.com
- Is it internet (Data connection) is mandatory for web live streaming over intranet/subnet. (Assume docker images downloaded already).
Yes you must be able to ping the camera ip from the device that you wish to stream on ,,,(hence connectivity is required)
Now I also tried to web live streaming over internet i.e. external network, but not working.
(Both camera and Laptop connected different hotspots)
- Steps/settings for web live streaming from internet i.e. external network.
- Steps/procedure for live streaming to popular web services like youtube.
thsi is not supported due to security concerns by default but can be definitely can be done , you can find a way to take RTSP or http stream from camera and route to internet for public access.