mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-23 03:49:49 -08:00
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
26 lines
697 B
Go
26 lines
697 B
Go
package message
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/bluenviron/mediamtx/internal/protocols/rtmp/rawmessage"
|
|
)
|
|
|
|
// ExtendedMPEG2TSSequenceStart is a MPEG2-TS sequence start extended message.
|
|
type ExtendedMPEG2TSSequenceStart struct {
|
|
FourCC FourCC
|
|
}
|
|
|
|
func (m *ExtendedMPEG2TSSequenceStart) unmarshal(raw *rawmessage.Message) error {
|
|
if len(raw.Body) < 5 {
|
|
return fmt.Errorf("invalid body size")
|
|
}
|
|
|
|
m.FourCC = FourCC(raw.Body[1])<<24 | FourCC(raw.Body[2])<<16 | FourCC(raw.Body[3])<<8 | FourCC(raw.Body[4])
|
|
|
|
return fmt.Errorf("ExtendedMPEG2TSSequenceStart is not implemented yet")
|
|
}
|
|
|
|
func (m ExtendedMPEG2TSSequenceStart) marshal() (*rawmessage.Message, error) {
|
|
return nil, fmt.Errorf("TODO")
|
|
}
|