mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
34 lines
421 B
Go
34 lines
421 B
Go
package rtp
|
|
|
|
import . "m7s.live/m7s/v5/pkg"
|
|
|
|
type (
|
|
RTPH264Ctx struct {
|
|
RTPCtx
|
|
SPS [][]byte
|
|
PPS [][]byte
|
|
}
|
|
RTPH265Ctx struct {
|
|
RTPH264Ctx
|
|
VPS [][]byte
|
|
}
|
|
RTPAV1Ctx struct {
|
|
RTPCtx
|
|
}
|
|
RTPVP9Ctx struct {
|
|
RTPCtx
|
|
}
|
|
)
|
|
|
|
type RTPVideo struct {
|
|
RTPData
|
|
}
|
|
|
|
func (r *RTPVideo) FromRaw(*AVTrack, any) error {
|
|
panic("unimplemented")
|
|
}
|
|
|
|
func (r *RTPVideo) ToRaw(*AVTrack) (any, error) {
|
|
return r.Payload, nil
|
|
}
|