video_player library

Classes

AudioTrack
A representation of a audio track.
Caption
A representation of a single caption.
Captions
A representation of the caption which includes text or picture.
ClosedCaption
Widget for displaying closed captions on top of a video.
ClosedCaptionFile
A structured representation of a parsed closed caption file.
DrmConfigs
Configurations for playing DRM content.
PictureCaption
A representation of a picture-based caption.
SubRipCaptionFile
Represents a ClosedCaptionFile, parsed from the SubRip file format. See: https://en.wikipedia.org/wiki/SubRip
SubtitleAttribute
A representation of a single attribute.
TextCaption
A representation of a text-based caption.
TextOriginAndExtent
This attribute defines the upper-left corner of a rectangular region using originX and originY coordinate values and the width and height of the rectangular region using extentWidth and extentHeight, which are typically specified as percentages of the video's width and height.
TextTrack
A representation of a text track.
Track
A representation of a single track.
VideoPlayer
Widget that displays the video controlled by controller.
VideoPlayerController
Controls a platform video player, and provides updates when the state is changing.
VideoPlayerValue
The duration, current position, buffering state, error state and settings of a VideoPlayerController.
VideoProgressColors
Used to configure the VideoProgressIndicator widget's colors for how it describes the video's status.
VideoProgressIndicator
Displays the play/buffering status of the video controlled by controller.
VideoTrack
A representation of a video track.
WebVTTCaptionFile
Represents a ClosedCaptionFile, parsed from the WebVTT file format. See: https://en.wikipedia.org/wiki/WebVTT

Enums

DrmType
The DRM scheme for the video.
SubtitleAttrType
The different types of subtitle attributes that can be set on the player.
SubtitleAttrValueType
The different types of subtitle attribute values that can be set on the player.
TextTrackSubtitleType
Type of the track subtitle type for TrackType.text.
TrackType
Type of the track.

Typedefs

LicenseCallback = Future<Uint8List> Function(Uint8List challenge)
Callback that returns a DRM license from the given challenge data.
RestoreDataSourceCallback = DataSource Function()
This will be used to set the RecreateMessage when player restore.
RestoreTimeCallback = int Function()
This will be used to set the ResumeTime when player restore.