components/u_video_player library

Classes

UFloatingMiniPlayer
Small draggable floating player (keeps playing while browsing).
UMediaTrackSheet
Bottom sheet to pick a video quality, audio track or subtitle.
USubtitleStyleConfig
Subtitle look: size, color, outline, background, fonts (separate RTL font), padding, max lines.
USubtitleView
Draws the current subtitle cue of a controller.
UVideo
Complete video player for a UMediaController: gestures, controls, subtitles, markers, notes. UVideo(controller: UMedia.video()..open(UMedia.network(url)))
UVideoColorMatrix
Color matrices for video brightness/contrast/saturation/hue filters.
UVideoControls
Full control layer: play/pause, seek bar, speed, quality, subtitles, PiP, lock, fullscreen, queue, notes.
UVideoFilterLayer
Applies UVideoSettings color filters to a child.
UVideoFullscreen
Opens a controller full screen (landscape, hides system bars).
UVideoGestureConfig
Which player gestures are on: tap, double-tap seek, horizontal scrub, vertical volume/brightness, long-press 2×, pinch zoom, swipe-down close.
UVideoGestures
Gesture layer over a video (see UVideoGestureConfig).
UVideoMarker
A labelled range on the seek bar (chapter, intro to skip).
UVideoPlayer
Drop-in player from a URL/file/asset/base64 with every feature; all 6 platforms (Linux needs GStreamer). UVideoPlayer(url: "https://x.com/v.m3u8", resumeKey: "movie-1")
UVideoSeekBar
Seek bar with buffer, markers and scrub preview.
UVideoSettings
Per-player view settings: fit, zoom, rotation, mirror, color filters, subtitle style/delay, A-B repeat, sleep timer.
UVideoSettingsSheet
The player settings sheet (fit, filters, subtitles, A-B repeat, sleep timer).
UVideoSheet
Opens a player full-width inside a bottom sheet. Accepts the same sources as UVideoPlayer.
UVideoStatsOverlay
Technical stats over the video (resolution, bitrate, buffer, dropped frames).
UVideoView
The video surface of a UMediaController (fit, zoom, pan, rotation). UVideoView(controller: c)
UVideoWithNotes
Video with a side panel of time-stamped notes and drawing.

Constants

uSpeedPresets → const List<double>
Playback speeds offered in the speed menu.

Functions

uFormatDuration(Duration value) → String
Duration → "1:02:03" / "02:03". uFormatDuration(95.seconds) → "01:35"