...
Supported platforms and browsers
Chrome | Firefox | Safari 11 | Edge | |
---|---|---|---|---|
Windows | + | - | - | |
Mac OS | + | - | + | |
Android | + | - | ||
iOS | - | - | + |
Using external TURN server
...
Internal TURN server should be set up using the following parameters in Settings file flashphoner.properties file:
Parameter | Default value | Description |
---|---|---|
turn_ip | - | Internal TURN server IP address, should be the same as ip_local |
turn_port | 3478 | Internal TURN server TCP port |
turn_password | coM77EMrV7Cwhyan | Internal TURN server password (username is flashphoner ) |
turn_media_port_from | 36001 | Beginning of media UDP ports range for WebRTC connection between TURN and WCS |
turn_media_port_to | 37000 | End of media UDP ports range |
turn_media_ports_auditor_interval | 5000 | Audit interval for busy and free ports, in milliseconds |
turn_media_ports_auditor_max_attempts | 3 | Number of audits to make sure freed port is not bound |
turn.server_channel_receive_buffer_size | 1048576 | Receive buffer size in bytes |
turn.server_channel_send_buffer_size | 1048576 | Send buffer size in bytes |
Connection using internal TURN server
...
Code Block | ||||
---|---|---|---|---|
| ||||
Flashphoner.createSession({urlServer: url, mediaOptions: {"iceServers": [ { 'url': 'turn:test.flashphoner.com:3478?transport=tcp', 'credential': 'coM77EMrV7Cwhyan', 'username': 'flashphoner' } ]}}) |
If UDP ports are not blocked by firewall, browser may establish WebRTC connection through UDP. In this case, "iceTransportPolicy": "relay"
parameter should be set in mediaOptions
...