send downtrack binding reports

fixed tests
This commit is contained in:
David Zhao
2021-01-10 22:36:24 -08:00
parent 456df0fb91
commit 6464ae3cd6
6 changed files with 238 additions and 47 deletions
+5 -1
View File
@@ -159,6 +159,10 @@ func (p *ParticipantImpl) IsReady() bool {
return p.state == livekit.ParticipantInfo_JOINED || p.state == livekit.ParticipantInfo_ACTIVE
}
func (p *ParticipantImpl) RTCPChan() chan<- []rtcp.Packet {
return p.rtcpCh
}
func (p *ParticipantImpl) ToProto() *livekit.ParticipantInfo {
info := &livekit.ParticipantInfo{
Sid: p.id,
@@ -407,7 +411,7 @@ func (p *ParticipantImpl) AddDownTrack(streamId string, dt *sfu.DownTrack) {
p.subscribedTracks[streamId] = append(p.subscribedTracks[streamId], dt)
p.lock.Unlock()
//dt.OnBind(func() {
// go p.scheduleDownTrackBindingReports(streamId)
// go p.sendDownTrackBindingReports(streamId)
//})
}