My question in github: https://github.com/webrtc/apprtc/issues/615 I can't config apprtc for signal server, just call video ok via wifi but via mobile network has no luck. Please view my config, I can't find any example for constands.py in anywhere. Here is my config:
ICE_SERVER_OVERRIDE = [
{
"urls": [
"stun:stun.l.google.com:19302"
]
},
{
"urls": [
"turn:my_ip_address:3478?transport=udp"
],
"username": "my_account",
"credential": "password"
},
{
"urls": [
"turn:my_ip_address:3479?transport=udp"
],
"username": "my_account",
"credential": "password"
}
]
TURN_SERVER_OVERRIDE = [
{
"urls": "turn:my_ip_address:3478",
"username": "my_account",
"credential": "password"
},
{
"urls": "stun:stun.l.google.com:19302"
}
]
TURN_BASE_URL = 'http://my_url.com'
TURN_URL_TEMPLATE = '%s/turn?username=%s&key=%s'
CEOD_KEY = ''
ICE_SERVER_BASE_URL = 'http://my_url.com'
ICE_SERVER_URL_TEMPLATE = '%s/v1alpha/iceconfig?key=%s'
ICE_SERVER_API_KEY = os.environ.get('ICE_SERVER_API_KEY')
Dictionary keys in the collider instance info constant.
WSS_INSTANCE_HOST_KEY = 'my_ip_address:8443'
WSS_INSTANCE_NAME_KEY = 'wsserver-std'
WSS_INSTANCE_ZONE_KEY = 'us-central1-a'
WSS_INSTANCES = [{
WSS_INSTANCE_HOST_KEY: 'my_ip_address:8443',
WSS_INSTANCE_NAME_KEY: 'wsserver-std',
WSS_INSTANCE_ZONE_KEY: 'us-central1-a'
}, {
WSS_INSTANCE_HOST_KEY: 'apprtc-ws-2.webrtc.org:443',
WSS_INSTANCE_NAME_KEY: 'wsserver-std-2',
WSS_INSTANCE_ZONE_KEY: 'us-central1-f'
}]
WSS_HOST_PORT_PAIRS = [ins[WSS_INSTANCE_HOST_KEY]
When I run it, my apprtc return error:
WebSocket open error: WebSocket error.
So, I don't understand what keys mean:
WSS_INSTANCE_HOST_KEY: 'my_ip_address:8443',
WSS_INSTANCE_NAME_KEY: 'wsserver-std',
WSS_INSTANCE_ZONE_KEY: 'us-central1-a'
When I change to default in original code, it work but ONLY via Wifi, No mobile network working, I also run turnserver in port 3478 and collinder in 8443 with pem files. So any one can tell me how to test collinder and turnserver config successfully for mobile connecting?