webrtc client cannot view on some networks

Config:

RTSP CAM -> WCS ->WebRTC ->ios safari,

On some network the same ios device can view the webrtc video, but some not.
USE LTE cannot view, use some wifi can, some cannot.

If i use the failed network to test on the demo page's Player, it show Failed by ICE timeout.

What setting do i need to do on the WCS? Thanks
 
Last edited:

Max

Administrator
Staff member
Good day.
On some network the same ios device can view the webrtc video, but some not.
USE LTE cannot view, use some wifi can, some cannot.

If i use the failed network to test on the demo page's Player, it show Failed by ICE timeout.
Seems like either network is too bad or some media ports from range you use on server (31001-32000 UDP and TCP by default) are blocked
In the first case, increasing ice_keep_alive_timeout may help:
Code:
ice_keep_alive_timeout=30
But, in the second case, only the ports unlocking by network provider will help. You can also change media ports range, for example
Code:
media_port_from        =10001
media_port_to          =20000
but this range may also be locked.
You can also use HLS to play the stream in iOS Safari, it requires only one port (8082 for HTTP and 8445 for HTTPS by default), and this port can be easily changed if locked.
 
Top