golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
549 B
26 lines
549 B
package message |
|
|
|
import ( |
|
"fmt" |
|
|
|
"github.com/bluenviron/mediamtx/internal/rtmp/rawmessage" |
|
) |
|
|
|
// ExtendedSequenceStart is a sequence start extended message. |
|
type ExtendedSequenceStart struct { |
|
FourCC [4]byte |
|
Config []byte |
|
} |
|
|
|
// Unmarshal implements Message. |
|
func (m *ExtendedSequenceStart) Unmarshal(raw *rawmessage.Message) error { |
|
copy(m.FourCC[:], raw.Body[1:5]) |
|
m.Config = raw.Body[5:] |
|
|
|
return nil |
|
} |
|
|
|
// Marshal implements Message. |
|
func (m ExtendedSequenceStart) Marshal() (*rawmessage.Message, error) { |
|
return nil, fmt.Errorf("TODO") |
|
}
|
|
|