MCPcopy
hub / github.com/pion/webrtc / Write

Method Write

interceptor.go:318–325  ·  view source on GitHub ↗

Write writes a raw RTP packet using the underlying interceptor.RTPWriter.

(b []byte)

Source from the content-addressed store, hash-verified

316
317// Write writes a raw RTP packet using the underlying interceptor.RTPWriter.
318func (i *interceptorToTrackLocalWriter) Write(b []byte) (int, error) {
319 packet := &rtp.Packet{}
320 if err := packet.Unmarshal(b); err != nil {
321 return 0, err
322 }
323
324 return i.WriteRTP(&packet.Header, packet.Payload)
325}
326
327//nolint:unparam
328func createStreamInfo(

Callers

nothing calls this directly

Calls 2

UnmarshalMethod · 0.95
WriteRTPMethod · 0.95

Tested by

no test coverage detected