I could pass stream via janus and coturn on my EC2 server but I have questions about the state of demo page of streaming.
Does it use turn server?
I run coturn because ICE shake hand fails without that on my environment.
However, if the demo runs without turn server, I want to run my own server without that.
No, our online demos don’t use a TURN server. It’s easy to add a TURN server to the demo pages you’ll deploy yourself, though (just check the commented code in the demos).
I see.
Can I see configuration of janus online demo?
I want to refer that to run janus without TRUN server.
The following error occurs and cannot publish streaming by my janus on server that has public IP.
(I could run on local.)
[WARN] [5356358957979488] Error resolving mDNS address (5b2f5202-e61c-4558-8c75-f257d41ac29d.local): Error resolving “5b2f5202-e61c-4558-8c75-f257d41ac29d.local”: Name or service not known
[WARN] [5356358957979488] ICE failed for component 1 in stream 1, but let's give it some time... (trickle received, answer received, alert not set)
[ERR] [ice.c:janus_ice_check_failed:2089] [5356358957979488] ICE failed for component 1 in stream 1...
[janus.plugin.streaming-0x78dd3800a590] No WebRTC media anymore
The janus.cfg I tried.
nat: {
nice_debug = true
nat_1_1_mapping = "public ip of my server"
}
It’s easy to add a TURN server to the demo pages you’ll deploy yourself,
I have already done it.
though (just check the commented code in the demos).
Which information do you mention?
Can you show some url of that?
I could run my janus instance without turn server.
I miss took on configuration file so the setting was ignored.
janus.jcfg
nat: {
nat_1_1_mapping = "11.22.33.44" # ip address of my server
}
janus runs even if the configuration file has trouble so I need check log carefully at waking up the instance.
[ERR] [config.c:janus_config_parse:205] Error parsing config file at line 81: syntax error
Failed to load /opt/janus/etc/janus/janus.jcfg, trying the INI instead...
[ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.cfg'... error 2 (No such file or directory)
Error reading/parsing the configuration file in /opt/janus/etc/janus, going on with the defaults and the command line arguments