MCPcopy
hub / github.com/livekit/livekit / SubscribedTracks

Method SubscribedTracks

test/client/client.go:749–756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747}
748
749func (c *RTCClient) SubscribedTracks() map[livekit.ParticipantID][]*webrtc.TrackRemote {
750 // create a copy of this
751 c.lock.Lock()
752 defer c.lock.Unlock()
753 tracks := make(map[livekit.ParticipantID][]*webrtc.TrackRemote, len(c.subscribedTracks))
754 maps.Copy(tracks, c.subscribedTracks)
755 return tracks
756}
757
758func (c *RTCClient) SubscribedDataTracks() map[livekit.ParticipantID]map[uint16]*DataTrackRemote {
759 // create a copy of this

Calls

no outgoing calls