Pages/StreamPage/stream_page library

Classes

GStreamerPipelineBuilder
Builds GStreamer pipeline strings for different video sources and platforms.
StreamPage
A page that displays video streams from various sources.
StreamPageState
State for StreamPage managing native texture and playback.

Constants

kDefaultFramerate → const int
Default framerate for non-Android platforms (frames per second).
kErrorPadding → const double
Padding for error message containers.
kOverlayAlpha → const double
Alpha value for error/warning background overlays.
kPixelFormat → const String
Pixel format used for video conversion (RGBA for cross-platform compatibility).
kSourceCandidates → const Map<dynamic, List<String>>
The ordered video sources to try on each platform, best first.
kVideoBorderWidth → const double
Border width for video containers.
kWebRTCBorderRadius → const double
Border radius for WebRTC view container.
kWebRTCMaxHeight → const double
Maximum height constraint for WebRTC view container.
kWebRTCMaxWidth → const double
Maximum width constraint for WebRTC view container.

Functions

nextSourceAfter(String failed, List<String> candidates) String?
The next source to try after failed, or null when the chain is exhausted.
sourceCandidatesFor(dynamic platform) List<String>
The fallback chain for platform, or a hardware-free default.