Skip to content

Commit

Permalink
wrtc-lt/player: Allow testing non-webrtc playback
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Nov 21, 2023
1 parent a412ddb commit 87de52a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/webrtc-load-tester/roles/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ func buildPlayerUrl(baseURL, playbackID, playbackURL string) (string, error) {
} else {
query.Set("v", playbackID)
}
// force player to only use WebRTC playback
query.Set("lowLatency", "force")
// Force player to only use WebRTC playback by default, but allow base URL to override it
if !query.Has("lowLatency") {
query.Set("lowLatency", "force")
}
url.RawQuery = query.Encode()

return url.String(), nil
Expand Down

0 comments on commit 87de52a

Please sign in to comment.