licode icon indicating copy to clipboard operation
licode copied to clipboard

licode_config.js in https server

Open prospdragon opened this issue 10 years ago • 1 comments

Below is my licode_config.js. (missed settings are not modified)


var config = {}

/********************************************************* ERIZO CONTROLLER CONFIGURATION **********************************************************/ config.erizoController = {};

//Use undefined to run clients without Stun config.erizoController.stunServerUrl = 'stun:stun.l.google.com:19302'; // default value: 'stun:stun.l.google.com:19302'

// Default and max video bandwidth parameters to be used by clients config.erizoController.defaultVideoBW = 300; //default value: 300 config.erizoController.maxVideoBW = 300; //default value: 300

// Public erizoController IP for websockets (useful when behind NATs) // Use '' to automatically get IP from the interface config.erizoController.publicIP = ''; //default value: ''

// This configuration is used by the clients to reach erizoController // Use '' to use the public IP address instead of a hostname config.erizoController.hostname = 'mydomain.com'; //default value: '' config.erizoController.port = 443; //default value: 8080 // Use true if clients communicate with erizoController over SSL config.erizoController.ssl = true; //default value: false

// This configuration is used by erizoController server to listen for connections // Use true if erizoController listens in HTTPS. SSL certificates located in /cert config.erizoController.listen_ssl = true; //default value: false config.erizoController.listen_port = 443; //default value: 8080

// Use the name of the inferface you want to bind to for websockets // config.erizoController.networkInterface = 'eth1' // default value: undefined

//Use undefined to run clients without Turn config.erizoController.turnServer = {}; // default value: undefined config.erizoController.turnServer.url = ''; // default value: null config.erizoController.turnServer.username = ''; // default value: null config.erizoController.turnServer.password = ''; // default value: null

config.erizoController.warning_n_rooms = 15; // default value: 15 config.erizoController.limit_n_rooms = 20; // default value: 20 config.erizoController.interval_time_keepAlive = 1000; // default value: 1000

// Roles to be used by services config.erizoController.roles = {"presenter": {"publish": true, "subscribe": true, "record": true}, "viewer": {"subscribe": true}, "viewerWithData": {"subscribe": true, "publish": {"audio": false, "video": false, "screen": false, "data": true}}}; // default value: {"presenter":{"publish": true, "subscribe":true, "record":true}, "viewer":{"subscribe":true}, "viewerWithData":{"subscribe":true, "publish":{"audio":false,"video":false,"screen":false,"data":true}}}

// If true, erizoController sends report to rabbitMQ queue "report_handler" config.erizoController.report = { session_events: false, // Session level events -- default value: false connection_events: false, // Connection (ICE) level events -- default value: false rtcp_stats: false // RTCP stats -- default value: false };

// If undefined, the path will be /tmp/ config.erizoController.recording_path = undefined; // default value: undefined

// Erizo Controller Cloud Handler policies are in erizo_controller/erizoController/ch_policies/ folder config.erizoController.cloudHandlerPolicy = 'default_policy.js'; // default value: 'default_policy.js'

/********************************************************* ERIZO AGENT CONFIGURATION **********************************************************/ config.erizoAgent = {};

// Max processes that ErizoAgent can run config.erizoAgent.maxProcesses = 1; // default value: 1 // Number of precesses that ErizoAgent runs when it starts. Always lower than or equals to maxProcesses. config.erizoAgent.prerunProcesses = 1; // default value: 1

// Public erizoAgent IP for ICE candidates (useful when behind NATs) // Use '' to automatically get IP from the interface config.erizoAgent.publicIP = 'mydomain.com'; //default value: '' // Use the name of the inferface you want to bind for ICE candidates // config.erizoAgent.networkInterface = 'eth1' // default value: undefined


Then I run ./licode/scripts/initBasicExample.sh for test it. But I have failed to connect ICE in browser. Below is console log of chrome.


Sending message Object {type: "candidate", candidate: Object} erizo.js:163 INFO: ICE Connection Failed erizo.js:163 DEBUG: Event: stream-failed script.js:111 STREAM FAILED, DISCONNECTION erizo.js:163 DEBUG: Event: room-disconnected erizo.js:163 INFO: Socket disconnected erizo.js:163


I think I have set the config wrongly. My server is Amazon EC2.

prospdragon avatar Dec 17 '15 15:12 prospdragon

I have fixed this issue. I was tried to install turn server on same server with licode.

prospdragon avatar Dec 18 '15 16:12 prospdragon