mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-29 18:21:53 +08:00
fix documentation (#4110)
This commit is contained in:
@@ -30,7 +30,7 @@ func (m *VideoExCodedFrames) unmarshal(raw *rawmessage.Message) error {
|
||||
switch m.FourCC {
|
||||
case FourCCAVC, FourCCHEVC:
|
||||
if len(raw.Body) < 8 {
|
||||
return fmt.Errorf("bnot enough bytes")
|
||||
return fmt.Errorf("not enough bytes")
|
||||
}
|
||||
m.PTSDelta = time.Duration(uint32(raw.Body[5])<<16|uint32(raw.Body[6])<<8|uint32(raw.Body[7])) * time.Millisecond
|
||||
m.Payload = raw.Body[8:]
|
||||
|
||||
10
mediamtx.yml
10
mediamtx.yml
@@ -235,15 +235,15 @@ rtspEncryption: "no"
|
||||
rtspAddress: :8554
|
||||
# Address of the TCP/TLS/RTSPS listener. This is needed only when encryption is "strict" or "optional".
|
||||
rtspsAddress: :8322
|
||||
# Address of the UDP/RTP listener. This is needed only when "udp" is in protocols.
|
||||
# Address of the UDP/RTP listener. This is needed only when "udp" is in rtspTransports.
|
||||
rtpAddress: :8000
|
||||
# Address of the UDP/RTCP listener. This is needed only when "udp" is in protocols.
|
||||
# Address of the UDP/RTCP listener. This is needed only when "udp" is in rtspTransports.
|
||||
rtcpAddress: :8001
|
||||
# IP range of all UDP-multicast listeners. This is needed only when "multicast" is in protocols.
|
||||
# IP range of all UDP-multicast listeners. This is needed only when "multicast" is in rtspTransports.
|
||||
multicastIPRange: 224.1.0.0/16
|
||||
# Port of all UDP-multicast/RTP listeners. This is needed only when "multicast" is in protocols.
|
||||
# Port of all UDP-multicast/RTP listeners. This is needed only when "multicast" is in rtspTransports.
|
||||
multicastRTPPort: 8002
|
||||
# Port of all UDP-multicast/RTCP listeners. This is needed only when "multicast" is in protocols.
|
||||
# Port of all UDP-multicast/RTCP listeners. This is needed only when "multicast" is in rtspTransports.
|
||||
multicastRTCPPort: 8003
|
||||
# Path to the server key. This is needed only when encryption is "strict" or "optional".
|
||||
# This can be generated with:
|
||||
|
||||
Reference in New Issue
Block a user