()
| 747 | } |
| 748 | |
| 749 | func (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 | |
| 758 | func (c *RTCClient) SubscribedDataTracks() map[livekit.ParticipantID]map[uint16]*DataTrackRemote { |
| 759 | // create a copy of this |
no outgoing calls