Repository navigation
Conversation
👋 Hi Rene, still cooking? 🍳I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code. 📝 This PR is a draft, so I'll keep my hands off for now. Mark it Ready for review and a ✅ box to start my review shows up right here. Can't wait? Comment |
`LivestreamPlayer` gains `enableHlsPlayback`, which it passes to its join, and `hlsVideoBuilder`, which `LivestreamContent` also takes. On HLS, `LivestreamContent` shows `LivestreamHlsContent` instead of the hosts, so an HLS join no longer reports the host as missing. stream_video_flutter does not depend on stream_video_hls: apps pass a builder returning `StreamHlsVideoRenderer`. `LivestreamHlsContent` shows the video with a spinner while it loads or buffers, a play icon while paused, tap to pause and resume at the live edge, a message when playback failed, and on web a tap-to-play button while the browser's autoplay policy blocks it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The HLS video builder takes `LivestreamHlsVideoProperties` with the call and the video fit, so the player's `videoFit` and `fullscreenVideoFit` reach the HLS video; `StreamHlsVideoRenderer` takes a `VideoFit` and resolves `adaptive` with `resolveVideoFit`, which is now public. - `LivestreamPlayer` listens for a double tap only while it allows the diagnostics, so tap to pause is not held back for the double-tap timeout. - `LivestreamPlayer` asserts an HLS video builder with `enableHlsPlayback`, and the HLS content logs when it has none. - The tap-to-play card explains why it asks for a tap, the play icon is drawn light over the video, and the audio controller is read only when the button is tapped. Adds tests for the join flag, the switch between HLS and WebRTC, the connection states, tap to play and right to left, and a golden of the HLS states. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
renefloor
force-pushed
the
feat/hls-ui
branch
from
December 6, 2026 10:58
3db4844 to
00b781f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Goal
Step 7 of HLS_PLAN.md (FLU-1266): the livestream UI shows a call the backend sent to HLS instead of reporting "the host's video is not available". Stacked on #1794.
🛠 Implementation details
LivestreamPlayerparameters:enableHlsPlaybackis passed to its own join. It asserts that anhlsVideoBuilderis set.hlsVideoBuilderbuilds the HLS video.LivestreamContenttakes the same builder.stream_video_flutterdoes not depend onstream_video_hls. An app passes:LivestreamHlsVideoProperties(call,videoFit), sovideoFitandfullscreenVideoFitapply to HLS.StreamHlsVideoRenderertakes aVideoFitand resolvesadaptivewithresolveVideoFit, which is now public.LivestreamContentchecksplaybackTypebefore looking for hosts. On HLS it shows the newLivestreamHlsContentwhile connected:resumeWebAudioPlayback()while the browser blocks autoplay.LivestreamPlayernow listens for a double tap only whenallowDiagnosticsis on, so single taps are no longer delayed by the double-tap timeout.🎨 UI Changes
New golden
livestream_hls_contentcovers the playing, paused, failed and blocked states, in light and dark. The CI PNGs come from theupdate_goldensrun on this branch.🧪 Testing
flutter test test/src/livestream test/src/renderer --exclude-tags goldenpasses. It covers:lobby_controller_test"disposes the device controller with itself" fails locally on Flutter 3.50.1. Nothing in this stack touches that code.🤖 Generated with Claude Code