YoutubePlayerValue class
Constructors
- YoutubePlayerValue({bool isReady = false, bool isControlsVisible = false, bool hasPlayed = false, Duration position = const Duration(), double buffered = 0.0, bool isPlaying = false, bool isFullScreen = false, int volume = 100, PlayerState playerState = PlayerState.unknown, double playbackRate = PlaybackRate.normal, String? playbackQuality, int errorCode = 0, InAppWebViewController? webViewController, bool isDragging = false, YoutubeMetaData metaData = const YoutubeMetaData()})
- The duration, current position, buffering state, error state and settings of a YoutubePlayerController.
Properties
- buffered → double
-
The position up to which the video is buffered.i
final
- errorCode → int
-
Reports the error code as described here.
final
- hasError → bool
-
Returns true is player has errors.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPlayed → bool
-
Returns true once the video start playing for the first time.
final
- isControlsVisible → bool
-
Defines whether or not the controls are visible.
final
- isDragging → bool
-
Returns true if ProgressBar is being dragged.
final
- isFullScreen → bool
-
Reports true if video is fullscreen.
final
- isPlaying → bool
-
Reports true if video is playing.
final
- isReady → bool
-
Returns true when the player is ready to play videos.
final
- metaData → YoutubeMetaData
-
Returns meta data of the currently loaded/cued video.
final
- playbackQuality → String?
-
Reports the current playback quality.
final
- playbackRate → double
-
The current video playback rate defined as PlaybackRate.
final
- playerState → PlayerState
-
The current state of the player defined as PlayerState.
final
- position → Duration
-
The current position of the video.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- volume → int
-
The current volume assigned for the player.
final
- webViewController → InAppWebViewController?
-
Reports the
WebViewController
.final
Methods
-
copyWith(
{bool? isReady, bool? isControlsVisible, bool? isLoaded, bool? hasPlayed, Duration? position, double? buffered, bool? isPlaying, bool? isFullScreen, int? volume, PlayerState? playerState, double? playbackRate, String? playbackQuality, int? errorCode, InAppWebViewController? webViewController, bool? isDragging, YoutubeMetaData? metaData}) → YoutubePlayerValue - Creates new YoutubePlayerValue with assigned parameters and overrides the old one.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited