ISBX / apprtc-node-server

The web based video chat app based on WebRTC written in NodeJS
70 stars 56 forks source link

Failed to load Turn Server #21

Open ProveSound opened 7 years ago

ProveSound commented 7 years ago

(apprtc.debug.js:1960) Failed to load turn:22.45.15.162:3478/turn?username=475795&key=itisgood: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

I am using those settings, is there any problem in my configuration file ?

var constants = { LOOPBACK_CLIENT_ID: 'LOOPBACK_CLIENT_ID', TURN_BASE_URL: 'turn:22.45.15.162:3478', TURN_URL_TEMPLATE: '%s/turn?username=%s&key=%s', CEOD_KEY: 'itisgood', WSS_HOST_ACTIVE_HOST_KEY: 'wss_host_active_host', //memcache key for the active collider host. WSS_HOST_PORT_PAIRS: ['apprtc-ws.webrtc.org:443', 'apprtc-ws-2.webrtc.org:443'], RESPONSE_ERROR: 'ERROR', RESPONSE_UNKNOWN_ROOM: 'UNKNOWN_ROOM', RESPONSE_UNKNOWN_CLIENT: 'UNKNOWN_CLIENT', RESPONSE_ROOM_FULL: 'FULL', RESPONSE_DUPLICATE_CLIENT: 'DUPLICATE_CLIENT', RESPONSE_SUCCESS: 'SUCCESS', RESPONSE_INVALID_REQUEST: 'INVALID_REQUEST' };

Thanks in advance, i will appreciate any help.. i am tired of this issue now.

chenwandong commented 2 years ago

I also find this error; why use xhr visit turn server?

chenwandong commented 2 years ago

you can modify js code ,and give a right turn address ,that is ok