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

Method WritePMTPacket

memory-ts.go:20–23  ·  view source on GitHub ↗
(audio codec.AudioCodecID, video codec.VideoCodecID)

Source from the content-addressed store, hash-verified

18}
19
20func (ts *MemoryTs) WritePMTPacket(audio codec.AudioCodecID, video codec.VideoCodecID) {
21 ts.PMT.Reset()
22 mpegts.WritePMTPacket(&ts.PMT, video, audio)
23}
24
25func (ts *MemoryTs) WriteTo(w io.Writer) (int64, error) {
26 w.Write(mpegts.DefaultPATPacket)

Callers

nothing calls this directly

Calls 2

WritePMTPacketFunction · 0.92
ResetMethod · 0.65

Tested by

no test coverage detected