Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(ci): capture browser video previews after load

Gabe Kangas53a8f725c95f
diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml
index 71435f370f..217d2401b2 100644
--- a/.github/workflows/browser-testing.yml
+++ b/.github/workflows/browser-testing.yml
@@ -247,7 +247,8 @@ jobs:
aws s3 cp "$f" "s3://$S3_BUCKET/$key" --endpoint-url "$S3_ENDPOINT" \
--acl public-read --content-type video/mp4 --no-progress >&2
poster_url=""
- if [ -n "$FFMPEG" ] && "$FFMPEG" -v error -ss 3 -i "$f" -frames:v 1 "${f%.mp4}.png"; then
+ # Capture near the end, after Cypress assertions have waited for the page to load.
+ if [ -n "$FFMPEG" ] && "$FFMPEG" -v error -sseof -1 -i "$f" -frames:v 1 "${f%.mp4}.png"; then
poster="${f%.mp4}.png"
poster_url="$S3_ENDPOINT/$S3_BUCKET/${key%.mp4}.png"
aws s3 cp "$poster" "s3://$S3_BUCKET/${key%.mp4}.png" --endpoint-url "$S3_ENDPOINT" \