From 87de52a28cde22c805f77d0b6826d51530cd1db7 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Tue, 21 Nov 2023 14:03:01 -0300 Subject: [PATCH] wrtc-lt/player: Allow testing non-webrtc playback --- cmd/webrtc-load-tester/roles/player.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/webrtc-load-tester/roles/player.go b/cmd/webrtc-load-tester/roles/player.go index fa20da7b..95424c1e 100644 --- a/cmd/webrtc-load-tester/roles/player.go +++ b/cmd/webrtc-load-tester/roles/player.go @@ -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