server back to working, tho only works when client joins first

This commit is contained in:
David Zhao
2020-12-12 23:05:53 -08:00
parent 4c9623bb49
commit af0c9dfdf0
6 changed files with 30 additions and 25 deletions
+5
View File
@@ -26,6 +26,7 @@ type Forwarder interface {
Start()
Close()
CreatedAt() time.Time
Track() *sfu.DownTrack
OnClose(func(Forwarder))
}
@@ -129,6 +130,10 @@ func (f *SimpleForwarder) CreatedAt() time.Time {
return f.createdAt
}
func (f *SimpleForwarder) Track() *sfu.DownTrack {
return f.track
}
// rtcpWorker receives RTCP packets from the destination peer
// this include packet loss packets
func (f *SimpleForwarder) rtcpWorker() {