handle peer subscription

This commit is contained in:
David Zhao
2020-11-01 00:07:15 -07:00
parent 9a36a41800
commit d350a7a132
3 changed files with 59 additions and 4 deletions
+3 -2
View File
@@ -35,13 +35,14 @@ func NewPeerTrack(peerId string, track *webrtc.Track, receiver *Receiver) *PeerT
// subscribes peer to current track
// creates and add necessary forwarders and starts them
func (t *PeerTrack) AddSubscriber(peer *WebRTCPeer) error {
return nil
}
// removes peer from subscription
// stop all forwarders to the peer
func (t *PeerTrack) RemoveSubscriber(peerId string) error {
return nil
func (t *PeerTrack) RemoveSubscriber(peerId string) {
}
// forwardWorker reads from the receiver and writes to each sender