(codecID codec.VideoCodecID, stuff ...any)
| 72 | } |
| 73 | |
| 74 | func (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 | |
| 86 | func (p *Publisher) WriteAVCCVideo(ts uint32, frame *util.BLL, pool util.BytesPool) { |
| 87 | if frame.ByteLength < 6 { |
no test coverage detected