Method
RemovePublishedTrack
(track types.MediaTrack, isExpectedToResume bool)
Source from the content-addressed store, hash-verified
| 283 | } |
| 284 | |
| 285 | func (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 | |
| 293 | func (u *UpTrackManager) getPublishedTrackLocked(trackID livekit.TrackID) types.MediaTrack { |
| 294 | return u.publishedTracks[trackID] |
Callers
nothing calls this directly
Tested by
no test coverage detected