Skip to content

Commit

Permalink
.github: allow specifying HLS for webrtc load test playback (right lo…
Browse files Browse the repository at this point in the history
…l) (#345)

* .github: allow specifying HLS for playback

* .github/wrlt: Set right playback URL for single-node HLS

* .github/wrlt: Fix manifest URL override
  • Loading branch information
victorges authored Nov 21, 2023
1 parent 87de52a commit 2c729b1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/webrtc-load-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ on:
required: true
default: '{"us-central1":20,"europe-west2":20,"asia-southeast1":20}'
streamer-input-file:
description: File to stream on the load test
description: File to ingest
type: string
required: true
default: 'https://storage.googleapis.com/lp_testharness_assets/countdown_720p_30fps_2sGOP_noBframes_5min.mp4'
playback-protocol:
description: Playback protocol
required: true
type: choice
options: [ "WebRTC", "HLS" ]
default: "WebRTC"
region:
description: "(Optional) Single-node test: Region of node to be tested (also needs pod index below). e.g.: mdw"
type: string
Expand Down Expand Up @@ -117,9 +123,17 @@ jobs:
if [ "${{ inputs.environment }}" = "production" ]; then
STREAMER_BASE_URL="rtmp://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/live"
PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/webrtc/video+%s"
if [ "${{ inputs.playback-protocol }}" = "HLS" ]; then
PLAYBACK_BASE_URL="${PLAYBACK_BASE_URL}?lowLatency=false"
PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/hls/video+%s/index.m3u8"
fi
else
STREAMER_BASE_URL="rtmp://${{ inputs.region }}-staging-staging-catalyst-${{ inputs.pod-index }}.livepeer.monster/live"
PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-staging-staging-catalyst-${{ inputs.pod-index }}.livepeer.monster/webrtc/video+%s"
if [ "${{ inputs.playback-protocol }}" = "HLS" ]; then
PLAYBACK_BASE_URL="${PLAYBACK_BASE_URL}?lowLatency=false"
PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.livepeer.monster/hls/video+%s/index.m3u8"
fi
fi
fi
Expand Down

0 comments on commit 2c729b1

Please sign in to comment.