Versions in this module Expand all Collapse all v1 v1.2.1 May 25, 2022 Changes in this version + var Layers = map[pb.Subscription_Layer]string + func TrackSame(t1 *pb.Subscription, t2 *webrtc.TrackRemote) bool + type RTC struct + func NewRTC(peer UpPeerLocal, signaller rtc.RTC_SignalClient) *RTC + func (r *RTC) GetSubStats() webrtc.StatsReport + func (r *RTC) Run(remoteSid, localSid string) error + func (r *RTC) SendAnswer(sdp webrtc.SessionDescription) error + func (r *RTC) SendJoin(sid string, uid string) error + func (r *RTC) SendTrickle(candidate *webrtc.ICECandidate, target Target) error + func (r *RTC) SendTrickleInit(candidate webrtc.ICECandidateInit, target Target) error + func (r *RTC) Subscribe(trackInfos []*Subscription) error + func (r *RTC) Update(tracks []*pb.Subscription) error + type Subscription struct + Layer string + Mute bool + Subscribe bool + TrackId string + type Target int32 + const Target_PUBLISHER + const Target_SUBSCRIBER + type UpPeerLocal struct + func NewUpPeerLocal(peer *ion_sfu.PeerLocal) UpPeerLocal + func (p *UpPeerLocal) AddICECandidate(candidate webrtc.ICECandidateInit) error + func (p *UpPeerLocal) Answer(desc webrtc.SessionDescription) (*webrtc.SessionDescription, error) + func (p *UpPeerLocal) Close() error + func (p *UpPeerLocal) GetStats() webrtc.StatsReport + func (p *UpPeerLocal) Join(sid string) error + func (p *UpPeerLocal) OnICECandidate(f func(c *webrtc.ICECandidateInit))