YoutubePlayerValue class

A snapshot of the player's current state, updated by YoutubePlayerController.

Constructors

YoutubePlayerValue({FullScreenOption fullScreenOption = const FullScreenOption(enabled: false), PlayerState playerState = .unknown, double playbackRate = PlaybackRate.normal, String? playbackQuality, YoutubeError error = .none, YoutubeMetaData metaData = const YoutubeMetaData()})
Creates a YoutubePlayerValue.

Properties

error → YoutubeError
Reports the error code as described here.
final
fullScreenOption → FullScreenOption
Current fullscreen state.
final
hasError → bool
Returns true if the player has an error.
no setter
hashCode → int
The hash code for this object.
no setteroverride
metaData → YoutubeMetaData
Metadata for the currently loaded or cued video.
final
playbackQuality → String?
Current playback quality (e.g. "hd1080", "medium"). Null until a video is playing.
final
playbackRate → double
Current playback speed.
final
playerState → PlayerState
Current playback state.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({FullScreenOption? fullScreenOption, PlayerState? playerState, double? playbackRate, String? playbackQuality, YoutubeError? error, YoutubeMetaData? metaData}) → YoutubePlayerValue
Returns a copy of this value with the given fields replaced.
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.
override