MCPcopy Create free account
hub / github.com/Monibuca/engine / CreateVideoTrack

Method CreateVideoTrack

publisher.go:74–84  ·  view source on GitHub ↗
(codecID codec.VideoCodecID, stuff ...any)

Source from the content-addressed store, hash-verified

72}
73
74func (p *Publisher) CreateVideoTrack(codecID codec.VideoCodecID, stuff ...any) common.VideoTrack {
75 switch codecID {
76 case codec.CodecID_H264:
77 p.VideoTrack = track.NewH264(p, stuff...)
78 case codec.CodecID_H265:
79 p.VideoTrack = track.NewH265(p, stuff...)
80 case codec.CodecID_AV1:
81 p.VideoTrack = track.NewAV1(p, stuff...)
82 }
83 return p.VideoTrack
84}
85
86func (p *Publisher) WriteAVCCVideo(ts uint32, frame *util.BLL, pool util.BytesPool) {
87 if frame.ByteLength < 6 {

Callers 1

WriteAVCCVideoMethod · 0.95

Calls 3

NewH264Function · 0.92
NewH265Function · 0.92
NewAV1Function · 0.92

Tested by

no test coverage detected