如何编辑 /etc/jitsi/jibri/jibri.conf 以在 jibri 上录制 jitsi,因为 /etc/jitsi/jibri/config.json 不再存在
Posted
技术标签:
【中文标题】如何编辑 /etc/jitsi/jibri/jibri.conf 以在 jibri 上录制 jitsi,因为 /etc/jitsi/jibri/config.json 不再存在【英文标题】:How to edit the /etc/jitsi/jibri/jibri.conf for jitsi recording on jibri since /etc/jitsi/jibri/config.json doesn't exist anymore 【发布时间】:2021-07-13 23:04:45 【问题描述】:我正在 ec2 aws 实例上开发自托管 jitsi,安装已成功完成,现在我想记录,在配置 jibri 时我注意到 /etc/jitsi/jibri/config.json 丢失,对文档进行了更多研究,发现 jibri 进行了一些更改,现在要编辑的文件是 /etc/jitsi/jibri/jibri.conf ,但对于我来说 jibri.conf 是空的,尝试复制/粘贴一些找到的代码在这里 https://docs.easyjitsi.com/docs/confignewjibri/ ,但它仍然无法记录。 所以问题是,我的 jibri.conf 是空的还是应该是这样的,以及如何编辑它以便 jitsi 找到它? 提前谢谢你
【问题讨论】:
【参考方案1】:jibri.conf
jibri
// A unique identifier for this Jibri
// TODO: eventually this will be required with no default
id = ""
// Whether or not Jibri should return to idle state after handling
// (successfully or unsuccessfully) a request. A value of 'true'
// here means that a Jibri will NOT return back to the IDLE state
// and will need to be restarted in order to be used again.
single-use-mode = false
api
http
external-api-port = 2222
internal-api-port = 3333
xmpp
// See example_xmpp_envs.conf for an example of what is expected here
environments = [
name = "prod environment"
xmpp-server-hosts = ["your.domain.com"]
xmpp-domain = "your.domain.com"
control-muc
domain = "internal.auth.your.domain.com"
room-name = "JibriBrewery"
nickname = "jibri-nickname"
control-login
domain = "auth.your.domain.com"
username = "jibri"
password = "JPwd"
call-login
domain = "recorder.your.domain.com"
username = "recorder"
password = "RPwd"
strip-from-room-domain = "conference."
usage-timeout = 0
trust-all-xmpp-certs = true
]
recording
recordings-directory = "/srv/recordings"
# TODO: make this an optional param and remove the default
finalize-script = "/path/to/finalize_recording.sh"
streaming
// A list of regex patterns for allowed RTMP URLs. The RTMP URL used
// when starting a stream must match at least one of the patterns in
// this list.
rtmp-allow-list = [
// By default, all services are allowed
".*"
]
chrome
// The flags which will be passed to chromium when launching
flags = [
"--use-fake-ui-for-media-stream",
"--start-maximized",
"--kiosk",
"--enabled",
"--disable-infobars",
"--autoplay-policy=no-user-gesture-required"
]
stats
enable-stats-d = true
webhook
// A list of subscribers interested in receiving webhook events
subscribers = []
jwt-info
// The path to a .pem file which will be used to sign JWT tokens used in webhook
// requests. If not set, no JWT will be added to webhook requests.
# signing-key-path = "/path/to/key.pem"
// The kid to use as part of the JWT
# kid = "key-id"
// The issuer of the JWT
# issuer = "issuer"
// The audience of the JWT
# audience = "audience"
// The TTL of each generated JWT. Can't be less than 10 minutes.
# ttl = 1 hour
call-status-checks
// If all clients have their audio and video muted and if Jibri does not
// detect any data stream (audio or video) comming in, it will stop
// recording after NO_MEDIA_TIMEOUT expires.
no-media-timeout = 30 seconds
// If all clients have their audio and video muted, Jibri consideres this
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
all-muted-timeout = 10 minutes
// When detecting if a call is empty, Jibri takes into consideration for how
// long the call has been empty already. If it has been empty for more than
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
default-call-empty-timeout = 30 seconds
【讨论】:
这似乎是从another source 部分或全部复制的,没有提供信用或提供链接。您是否有权在未经许可的情况下重新分发此代码? 请在您的回答中提供更多详细信息。正如目前所写的那样,很难理解您的解决方案。以上是关于如何编辑 /etc/jitsi/jibri/jibri.conf 以在 jibri 上录制 jitsi,因为 /etc/jitsi/jibri/config.json 不再存在的主要内容,如果未能解决你的问题,请参考以下文章