mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
33 lines
827 B
Go
33 lines
827 B
Go
package camera
|
|
|
|
const TypeSelectedStreamConfiguration = "117"
|
|
|
|
type SelectedStreamConfiguration struct {
|
|
Control SessionControl `tlv8:"1"`
|
|
VideoCodec VideoCodecConfiguration `tlv8:"2"`
|
|
AudioCodec AudioCodecConfiguration `tlv8:"3"`
|
|
}
|
|
|
|
//goland:noinspection ALL
|
|
const (
|
|
SessionCommandEnd = 0
|
|
SessionCommandStart = 1
|
|
SessionCommandSuspend = 2
|
|
SessionCommandResume = 3
|
|
SessionCommandReconfigure = 4
|
|
)
|
|
|
|
type SessionControl struct {
|
|
SessionID string `tlv8:"1"`
|
|
Command byte `tlv8:"2"`
|
|
}
|
|
|
|
type RTPParams struct {
|
|
PayloadType uint8 `tlv8:"1"`
|
|
SSRC uint32 `tlv8:"2"`
|
|
MaxBitrate uint16 `tlv8:"3"`
|
|
RTCPInterval float32 `tlv8:"4"`
|
|
MaxMTU []uint16 `tlv8:"5"`
|
|
ComfortNoisePayloadType []uint8 `tlv8:"6"`
|
|
}
|