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

Method WriteRTP

publisher-rtpdump.go:97–108  ·  view source on GitHub ↗
(raw []byte)

Source from the content-addressed store, hash-verified

95 }
96}
97func (t *RTPDumpPublisher) WriteRTP(raw []byte) {
98 var frame common.RTPFrame
99 frame.Unmarshal(raw)
100 switch frame.PayloadType {
101 case t.VPayloadType:
102 t.VideoTrack.WriteRTP(&util.ListItem[common.RTPFrame]{Value: frame})
103 case t.APayloadType:
104 t.AudioTrack.WriteRTP(&util.ListItem[common.RTPFrame]{Value: frame})
105 default:
106 t.Stream.Warn("RTPDumpPublisher unknown payload type", zap.Uint8("payloadType", frame.PayloadType))
107 }
108}

Callers 1

FeedMethod · 0.95

Calls 3

UnmarshalMethod · 0.95
WriteRTPMethod · 0.65
WarnMethod · 0.65

Tested by

no test coverage detected