MCPcopy Create free account
hub / github.com/livekit/livekit / RemovePublishedTrack

Method RemovePublishedTrack

pkg/rtc/uptrackmanager.go:285–291  ·  view source on GitHub ↗
(track types.MediaTrack, isExpectedToResume bool)

Source from the content-addressed store, hash-verified

283}
284
285func (u *UpTrackManager) RemovePublishedTrack(track types.MediaTrack, isExpectedToResume bool) {
286 track.Close(isExpectedToResume)
287
288 u.lock.Lock()
289 delete(u.publishedTracks, track.ID())
290 u.lock.Unlock()
291}
292
293func (u *UpTrackManager) getPublishedTrackLocked(trackID livekit.TrackID) types.MediaTrack {
294 return u.publishedTracks[trackID]

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected