better_player_mat library
Classes
- BetterPlayer
- Widget which uses provided controller to render video player.
- BetterPlayerAsmsAudioTrack
- Representation of HLS / DASH audio track
- BetterPlayerAsmsDataHolder
- BetterPlayerAsmsSubtitle
- Representation of HLS / DASH subtitle element.
- BetterPlayerAsmsSubtitleSegment
- Class which represents one segment of subtitles. It consists of start time and end time which are relative from start of the video and real url of the video (with domain and all paths).
- BetterPlayerAsmsTrack
- Represents HLS / DASH track which can be played within player
- BetterPlayerAsmsUtils
- Base helper class for ASMS parsing.
- BetterPlayerBufferingConfiguration
- Configuration class used to setup better buffering experience or setup custom load settings. Currently used only in Android.
- 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.
- BetterPlayerClearKeyUtils
- ClearKey helper class to generate the key
- 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.
-
BetterPlayerControlsState<
T extends StatefulWidget> - Base class for both material and cupertino controls
- 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.
- BetterPlayerMultipleGestureDetector
- Helper class for GestureDetector used within Better Player. Used to pass gestures to upper GestureDetectors.
- 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 fairplay -> suppoted only for iOS clearKey -> 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.