Janus Detailed profiles

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/tanningzhong/article/details/89394192

General

基本配置,配置和插件的路径,日志输出方式,运行方式等配置.

variable Explanation Examples
configs_folder Profile directory path configs_folder=/opt/janus/etc/janus
plugins_folder Plug-in directory path plugins_folder=/opt/janus/lib/janus/plugins
transports_folder Transfer Protocol directory path, the general terms of third-party transport rely on dynamic libraries, the default can be transports_folder=/opt/janus/lib/janus/transports
events_folder Event handler directory path, is generally dependent on third-party event aspects of dynamic libraries, the default can be events_folder=/opt/janus/lib/janus/events
log_to_stdout Log is output to the standard output, the default is true log_to_stdout = false
log_to_file Log File Path log_to_file = /path/to/janus.log
daemonize Whether running in the background, by default run in the foreground daemonize = true
pid_file pid file path, pid file is created in the janus run, deleted when you close pid_file = /path/to/janus.pid
interface The interface used (used in the SDP) and the currently unused interface = 1.2.3.4
debug_level Logging levels, is available 0-7 debug_level = 4
debug_timestamps Whether each line of log shows the timestamp debug_timestamps = yes
debug_colors Log if disabled color debug_colors = no
debug_locks Lock debugging is enabled (very detailed) debug_locks = yes
api_secret All janus request must contain the string, acceptance or verified by janus core, if all requests to pretend this is useful in your server, do not want other applications chaos api_secret = janusrocks
token_auth The mechanism to force users to provide a valid token for all requests in the token-based authentication, are going to be very useful to authenticate requests from web token_auth = yes
token_auth_secret And token_auth used together, using HMAC-SHA1 signature token, note that this option does not manage api have to add and delete tokens operation token_auth_secret = janus
admin_secret All managed by the received character string request janus monitoring or verification or must contain only the management api can only needed at all available transmission manipulation admin_secret = janusoverlord
server_name The public name janus instance, will appear in the info request server_name = MyJanusInstance
session_timeout Session timeout, default 60s session_timeout = 60
reclaim_session_timeout Session recovery time, default 0s reclaim_session_timeout = 0
candidates_ti meout Application timeout, set the attention will be 0 for invalid values ​​are ignored candidates_timeout = 45
recordings_tmp_ext Temporary log file name recordings_tmp_ext = tmp
event_loops Start number of threads event_loops = 8

Certificates

DTLS使用的证书和秘钥(和所需密码)生成

variable Explanation Examples
cert_pem certificate cert_pem=/opt/janus/share/janus/certs/mycert.pem
cert_key Key cert_key=/opt/janus/share/janus/certs/mycert.key
cert_pwd password cert_pwd = secretpassphrase

Media

与媒体相关的配置

变量 说明 示例
ipv6 是否支持 ipv6 ipv6 = true
max_nack_queue 重新传输的 NACK 队列最大值单位毫秒,默认 500 max_nack_queue=500
rfc_4588 是否支持协商 rfc_4588 = yes
rtp_port_range 用于 RTP 和 RTCP 的端口的范围,默认不考虑范围 rtp_port_range=20000-40000
dtls_mtu 启动 DTLS 的 MTU(默认为 1200,它自动适应) dtls_mtu = 1200
no_media_timer 没有 media 数据多长时间 janus 通知,单位为秒默认 1 no_media_timer=1
dtls_timeout 定制重传的频率,注意较低的 值(例如 100ms)通常会使连接 速度更快时间,但如果用户的 RTT 很高,则可能无法工作 合理的权衡(通常是 2*最大期 望 RTT) dtls_timeout = 500

NAT

与NAT相关的内容,如果网关位于NAT之后,可以配置STUN/TURN用于收集候选对象的服务器

变量 说明 示例
stun_server STUN 服务器地址 stun_server = stun.voip.eutelia.it
stun_port STUN 服务器端口 stun_port = 3478
nice_debug NAT debug开关 nice_debug = false
full_trickle 默认 half-trickle full_trickle = false
ice_lite ICE-Lite 模块, 默认false ice_lite = true
ice_tcp 支持 ICE-Lite ice_tcp = true
nat_1_1_mapping 内外网地址映射 nat_1_1_mapping = 1.2.3.4
turn_server Turn 服务器地址 turn_server = myturnserver.com
turn_port Turn 服务器端口 turn_port = 3478
turn_type Turn IP server type turn_type = udp
turn_user username turn_user = myuser
turn_pwd password turn_pwd = mypassword
turn_rest_api TURN REST API address turn_rest_api = http://yourbackend.com/path/to/api
turn_rest_api_key Key turn_rest_api_key=anyapikeyyoumayhaveset
turn_rest_api_method method turn_rest_api_method = GET
ice_enforce_list And transmitting the IP address provided or a comma-separated list of interfaces, gateway selection ice_enforce_list = eth0/ ice_enforce_list = eth0,192.168.0.1
ice_ignore_list Ignore Gateway ice_ignore_list = vmnet8,192.168.0.1,10.0.0.1

Plugins

选择应该使用哪个插件

parameter Explanation Examples
disable Disabling plug-in, will be separated by commas disable = libjanus_rabbitmq.so

Events

允许您接收来自 Janus happens 的实时事件的事件处理程序

parameter Explanation Examples
broadcast All available event handlers are enabled broadcast = yes
disable Disabled event disable=libjanus_sampleevh.so
stats_period Statistical transmission time of each event handler stats_period = 5

Guess you like

Origin blog.csdn.net/tanningzhong/article/details/89394192