Browse Source

apidocs: add missing recording settings to PathConf (#2705)

pull/2706/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
3277765851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 36
      apidocs/openapi.yaml
  2. 12
      internal/conf/conf.go
  3. 8
      mediamtx.yml

36
apidocs/openapi.yaml

@ -62,7 +62,7 @@ components:
runOnDisconnect: runOnDisconnect:
type: string type: string
# RTSP # RTSP server
rtsp: rtsp:
type: boolean type: boolean
protocols: protocols:
@ -94,7 +94,7 @@ components:
items: items:
type: string type: string
# RTMP # RTMP server
rtmp: rtmp:
type: boolean type: boolean
rtmpAddress: rtmpAddress:
@ -108,7 +108,7 @@ components:
rtmpServerCert: rtmpServerCert:
type: string type: string
# HLS # HLS server
hls: hls:
type: boolean type: boolean
hlsAddress: hlsAddress:
@ -140,7 +140,7 @@ components:
hlsDirectory: hlsDirectory:
type: string type: string
# WebRTC # WebRTC server
webrtc: webrtc:
type: boolean type: boolean
webrtcAddress: webrtcAddress:
@ -183,26 +183,12 @@ components:
password: password:
type: string type: string
# SRT # SRT server
srt: srt:
type: boolean type: boolean
srtAddress: srtAddress:
type: string type: string
# Record
record:
type: boolean
recordPath:
type: string
recordFormat:
type: string
recordPartDuration:
type: string
recordSegmentDuration:
type: string
recordDeleteAfter:
type: string
PathConf: PathConf:
type: object type: object
properties: properties:
@ -224,8 +210,20 @@ components:
type: integer type: integer
srtReadPassphrase: srtReadPassphrase:
type: string type: string
# Record
record: record:
type: boolean type: boolean
recordPath:
type: string
recordFormat:
type: string
recordPartDuration:
type: string
recordSegmentDuration:
type: string
recordDeleteAfter:
type: string
# Authentication # Authentication
publishUser: publishUser:

12
internal/conf/conf.go

@ -100,7 +100,7 @@ type Conf struct {
RunOnConnectRestart bool `json:"runOnConnectRestart"` RunOnConnectRestart bool `json:"runOnConnectRestart"`
RunOnDisconnect string `json:"runOnDisconnect"` RunOnDisconnect string `json:"runOnDisconnect"`
// RTSP // RTSP server
RTSP bool `json:"rtsp"` RTSP bool `json:"rtsp"`
RTSPDisable *bool `json:"rtspDisable,omitempty"` // deprecated RTSPDisable *bool `json:"rtspDisable,omitempty"` // deprecated
Protocols Protocols `json:"protocols"` Protocols Protocols `json:"protocols"`
@ -116,7 +116,7 @@ type Conf struct {
ServerCert string `json:"serverCert"` ServerCert string `json:"serverCert"`
AuthMethods AuthMethods `json:"authMethods"` AuthMethods AuthMethods `json:"authMethods"`
// RTMP // RTMP server
RTMP bool `json:"rtmp"` RTMP bool `json:"rtmp"`
RTMPDisable *bool `json:"rtmpDisable,omitempty"` // deprecated RTMPDisable *bool `json:"rtmpDisable,omitempty"` // deprecated
RTMPAddress string `json:"rtmpAddress"` RTMPAddress string `json:"rtmpAddress"`
@ -125,7 +125,7 @@ type Conf struct {
RTMPServerKey string `json:"rtmpServerKey"` RTMPServerKey string `json:"rtmpServerKey"`
RTMPServerCert string `json:"rtmpServerCert"` RTMPServerCert string `json:"rtmpServerCert"`
// HLS // HLS server
HLS bool `json:"hls"` HLS bool `json:"hls"`
HLSDisable *bool `json:"hlsDisable,omitempty"` // depreacted HLSDisable *bool `json:"hlsDisable,omitempty"` // depreacted
HLSAddress string `json:"hlsAddress"` HLSAddress string `json:"hlsAddress"`
@ -142,7 +142,7 @@ type Conf struct {
HLSTrustedProxies IPsOrCIDRs `json:"hlsTrustedProxies"` HLSTrustedProxies IPsOrCIDRs `json:"hlsTrustedProxies"`
HLSDirectory string `json:"hlsDirectory"` HLSDirectory string `json:"hlsDirectory"`
// WebRTC // WebRTC server
WebRTC bool `json:"webrtc"` WebRTC bool `json:"webrtc"`
WebRTCDisable *bool `json:"webrtcDisable,omitempty"` // deprecated WebRTCDisable *bool `json:"webrtcDisable,omitempty"` // deprecated
WebRTCAddress string `json:"webrtcAddress"` WebRTCAddress string `json:"webrtcAddress"`
@ -162,11 +162,11 @@ type Conf struct {
WebRTCICEHostNAT1To1IPs *[]string `json:"webrtcICEHostNAT1To1IPs,omitempty"` // deprecated WebRTCICEHostNAT1To1IPs *[]string `json:"webrtcICEHostNAT1To1IPs,omitempty"` // deprecated
WebRTCICEServers *[]string `json:"webrtcICEServers,omitempty"` // deprecated WebRTCICEServers *[]string `json:"webrtcICEServers,omitempty"` // deprecated
// SRT // SRT server
SRT bool `json:"srt"` SRT bool `json:"srt"`
SRTAddress string `json:"srtAddress"` SRTAddress string `json:"srtAddress"`
// Record // Record (deprecated)
Record *bool `json:"record,omitempty"` // deprecated Record *bool `json:"record,omitempty"` // deprecated
RecordPath *string `json:"recordPath,omitempty"` // deprecated RecordPath *string `json:"recordPath,omitempty"` // deprecated
RecordFormat *RecordFormat `json:"recordFormat,omitempty"` // deprecated RecordFormat *RecordFormat `json:"recordFormat,omitempty"` // deprecated

8
mediamtx.yml

@ -70,7 +70,7 @@ runOnConnectRestart: no
runOnDisconnect: runOnDisconnect:
############################################### ###############################################
# Global settings -> RTSP # Global settings -> RTSP server
# Allow publishing and reading streams with the RTSP protocol. # Allow publishing and reading streams with the RTSP protocol.
rtsp: yes rtsp: yes
@ -110,7 +110,7 @@ serverCert: server.crt
authMethods: [basic] authMethods: [basic]
############################################### ###############################################
# Global settings -> RTMP # Global settings -> RTMP server
# Allow publishing and reading streams with the RTMP protocol. # Allow publishing and reading streams with the RTMP protocol.
rtmp: yes rtmp: yes
@ -130,7 +130,7 @@ rtmpServerKey: server.key
rtmpServerCert: server.crt rtmpServerCert: server.crt
############################################### ###############################################
# Global settings -> HLS # Global settings -> HLS server
# Allow reading streams with the HLS protocol. # Allow reading streams with the HLS protocol.
hls: yes hls: yes
@ -186,7 +186,7 @@ hlsTrustedProxies: []
hlsDirectory: '' hlsDirectory: ''
############################################### ###############################################
# Global settings -> WebRTC # Global settings -> WebRTC server
# Allow publishing and reading streams with the WebRTC protocol. # Allow publishing and reading streams with the WebRTC protocol.
webrtc: yes webrtc: yes

Loading…
Cancel
Save