codifyiq_video_viewer library

A video player with play, scrub and mute controls, as an inline widget or a full-screen route, plus a thumbnail tile for lists and chat bubbles.

Classes

VideoAssetSource
A VideoSource backed by a bundled asset.
VideoFileSource
A VideoSource backed by a local file path.
VideoSource
The source from which a video is loaded.
VideoThumbnailTile
A tappable video thumbnail with a play badge and an optional duration.
VideoUriSource
A VideoSource backed by a network Uri.
VideoViewerAction
A consumer-defined entry in the overflow menu of a VideoViewerScreen.
VideoViewerScreen
A full-screen video player with a close button, a title, and Share and Download actions.
VideoViewerWidget
A video player with play/pause, a scrubber, elapsed and total time, a mute button and a full-screen button.

Functions

formatVideoDuration(Duration duration) → String
Formats duration as m:ss, or h:mm:ss from an hour up.

Typedefs

VideoViewerShareCallback = void Function(Rect? sharePositionOrigin)
Callback signature for the Share action of a VideoViewerScreen.