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

Struct TrackLocalStaticRTP

track_local_static.go:29–37  ·  view source on GitHub ↗

TrackLocalStaticRTP is a TrackLocal that has a pre-set codec and accepts RTP Packets. If you wish to send a media.Sample use TrackLocalStaticSample.

Source from the content-addressed store, hash-verified

27// TrackLocalStaticRTP is a TrackLocal that has a pre-set codec and accepts RTP Packets.
28// If you wish to send a media.Sample use TrackLocalStaticSample.
29type TrackLocalStaticRTP struct {
30 mu sync.RWMutex
31 bindings []trackBinding
32 codec RTPCodecCapability
33 payloader func(RTPCodecCapability) (rtp.Payloader, error)
34 id, rid, streamID string
35 initalTimestamp *uint32
36 initialSeqNumber *uint16
37}
38
39// NewTrackLocalStaticRTP returns a TrackLocalStaticRTP.
40func NewTrackLocalStaticRTP(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected