Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SetPackertizer method to TrackLocalStaticSample #2689

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions track_local_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@
return s.rtpTrack.Codec()
}

func (s *TrackLocalStaticSample) SetPacketizer(p rtp.Packetizer) {
s.rtpTrack.mu.RLock()
defer s.rtpTrack.mu.RUnlock()

s.packetizer = p

Check warning on line 236 in track_local_static.go

View check run for this annotation

Codecov / codecov/patch

track_local_static.go#L232-L236

Added lines #L232 - L236 were not covered by tests
}

// Bind is called by the PeerConnection after negotiation is complete
// This asserts that the code requested is supported by the remote peer.
// If so it setups all the state (SSRC and PayloadType) to have a call
Expand Down
Loading