Improve video quality selection by using publisher feedback (#238)

This commit is contained in:
David Zhao
2021-12-06 12:12:08 -08:00
committed by GitHub
parent ff390820e1
commit 318bee4f1e
14 changed files with 380 additions and 242 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ var (
type ntpTime uint64
const (
quarterResolution = "q"
halfResolution = "h"
fullResolution = "f"
QuarterResolution = "q"
HalfResolution = "h"
FullResolution = "f"
)
// Do a fuzzy find for a codec in the list of codecs
+2 -2
View File
@@ -177,9 +177,9 @@ func (w *WebRTCReceiver) AddUpTrack(track *webrtc.TrackRemote, buff *buffer.Buff
var layer int32
switch track.RID() {
case fullResolution:
case FullResolution:
layer = 2
case halfResolution:
case HalfResolution:
layer = 1
default:
layer = 0