YoutubePlayerFlags class
Defines player flags for YoutubePlayer.
Constructors
- YoutubePlayerFlags({bool hideControls = false, bool controlsVisibleAtStart = false, bool autoPlay = true, bool mute = false, bool isLive = false, bool hideThumbnail = false, bool disableDragSeek = false, bool enableCaption = true, bool loop = false, bool forceHD = false, int startAt = 0, int? endAt, bool useHybridComposition = true, bool showLiveFullscreenButton = true})
-
Creates YoutubePlayerFlags.
const
Properties
- autoPlay → bool
-
Define whether to auto play the video after initialization or not.
final
-
Specifies the default language that the player will use to display captions. Set the parameter's value to an ISO 639-1 two-letter language code.
final
- controlsVisibleAtStart → bool
-
Is set to true, controls will be visible at start.
final
- disableDragSeek → bool
-
Disables seeking video position when dragging horizontally.
final
- enableCaption → bool
-
Enabling causes closed captions to be shown by default.
final
- endAt → int?
-
Specifies the default end point of the video in seconds
final
- forceHD → bool
-
Forces High Definition video quality when possible
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideControls → bool
-
If set to true, hides the controls.
final
- hideThumbnail → bool
-
Hides thumbnail if true.
final
- isLive → bool
-
if true, Live Playback controls will be shown instead of default one.
final
- loop → bool
-
Enabling this causes the player to play the video again and again.
final
- mute → bool
-
Mutes the player initially
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLiveFullscreenButton → bool
-
Defines whether to show or hide the fullscreen button in the live player.
final
- startAt → int
-
Specifies the default starting point of the video in seconds
final
- useHybridComposition → bool
-
Set to
true
to enable Flutter's new Hybrid Composition. The default value istrue
. Hybrid Composition is supported starting with Flutter v1.20+.final
Methods
-
copyWith(
{bool? hideControls, bool? autoPlay, bool? mute, bool? showVideoProgressIndicator, bool? isLive, bool? hideThumbnail, bool? disableDragSeek, bool? loop, bool? enableCaption, bool? forceHD, int? startAt, int? endAt, bool? controlsVisibleAtStart, bool? useHybridComposition, bool? showLiveFullscreenButton}) → YoutubePlayerFlags - Copies new values assigned to the YoutubePlayerFlags.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited