ISBX / apprtc-node-server

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

turn server error in apprtc.debug.js #25

Open chenwandong opened 2 years ago

chenwandong commented 2 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 ?

why apprtc.debug.js test turn server with xmlhttprequest ?

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.