better_player library Null safety

Classes

BetterPlayer
Widget which uses provided controller to render video player.
BetterPlayerCacheConfiguration
Cache configuration for Better Player. To enable cache on Android, useCache must be true and maxCacheSize > 0 and maxCacheFileSize > 0. On iOS maxCacheSize and maxCacheFileSize take no effect, so useCache is used only.
BetterPlayerConfiguration
Configuration of Better Player. Allows to setup general behavior of player. Master configuration which contains children that configure specific part of player.
BetterPlayerController
Class used to control overall Better Player behavior. Main class to change state of Better Player.
BetterPlayerControllerProvider
Widget which is used to inherit BetterPlayerController through widget tree.
BetterPlayerControlsConfiguration
UI configuration of Better Player. Allows to change colors/icons/behavior of controls. Used in BetterPlayerConfiguration. Configuration applies only for player displayed in app, not in notification or PiP mode.
BetterPlayerDataSource
Representation of data source which will be played in Better Player. Allows to setup all necessary configuration connected to video source.
BetterPlayerDrmConfiguration
Configuration of DRM used to protect data source
BetterPlayerEvent
Event that happens in player. It can be used to determine current player state on higher layer.
BetterPlayerListVideoPlayer
Special version of Better Player which is used to play video in list view.
BetterPlayerListVideoPlayerController
Controller of Better Player List Video Player.
BetterPlayerNotificationConfiguration
Configuration of notification which is displayed once user moves app to background.
BetterPlayerOverflowMenuItem
Menu item data used in overflow menu (3 dots).
BetterPlayerPlaylist
Special version of Better Player used to play videos in playlist.
BetterPlayerPlaylistConfiguration
Additional configuration used in Better Player Playlist player.
BetterPlayerPlaylistController
Controller used to manage playlist player.
BetterPlayerPlaylistState
State of BetterPlayerPlaylist, used to access BetterPlayerPlaylistController.
BetterPlayerProgressColors
Representation of colors used in progress bar.
BetterPlayerSubtitlesConfiguration
Configuration of subtitles - colors/padding/font. Used in BetterPlayerConfiguration.
BetterPlayerSubtitlesSource
Representation of subtitles source. Used to define subtitles in Better Player.
BetterPlayerTranslations
Class used to hold translations for all features within Better Player
VideoPlayerValue
The duration, current position, buffering state, error state and settings of a VideoPlayerController.

Enums

BetterPlayerDataSourceType
Source types of video. Network type is used for videos that are hosted on the web service. File type is used for videos that will be read from mobile device.
BetterPlayerDrmType
Types of available DRM's token -> supported for both iOS/Android widevine -> supported only for Android
BetterPlayerEventType
Supported event types
BetterPlayerSubtitlesSourceType
Representation of possible source types of subtitles.
BetterPlayerTheme
Representation of possible UI themes in Better Player. For Android, default theme is material, for iOS cupertino. To use customized theme, set custom value.
BetterPlayerVideoFormat
Representation of possible video formats in Better Player.

Typedefs

BetterPlayerRoutePageBuilder = Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, BetterPlayerControllerProvider controllerProvider)
Page route builder used in fullscreen mode.