Server-driven connection quality detection (#167)

This commit is contained in:
David Zhao
2021-11-03 21:05:20 -07:00
committed by GitHub
parent 862a212b93
commit aa9534b7fb
14 changed files with 818 additions and 81 deletions
+5
View File
@@ -44,6 +44,11 @@ func UnpackDataTrackLabel(packed string) (peerId string, trackId string, label s
return
}
// converts a fixed point number to the number part of %
func FixedPointToPercent(frac uint8) uint32 {
return (uint32(frac) * 100) >> 8
}
func ToProtoParticipants(participants []types.Participant) []*livekit.ParticipantInfo {
infos := make([]*livekit.ParticipantInfo, 0, len(participants))
for _, op := range participants {