PlayerVars class abstract

Allowed suggested player video qualities. Default video quality chosen by YouTube. Player height is 240px, and player dimensions are at least 320px by 240px for 4:3 aspect ratio. Player height is 360px, and player dimensions are 640px by 360px (for 16:9 aspect ratio) or 480px by 360px (for 4:3 aspect ratio). Player height is 480px, and player dimensions are 853px by 480px (for 16:9 aspect ratio) or 640px by 480px (for 4:3 aspect ratio). Player height is 720px, and player dimensions are 1280px by 720px (for 16:9 aspect ratio) or 960px by 720px (for 4:3 aspect ratio). Player height is 1080px, and player dimensions are 1920px by 1080px (for 16:9 aspect ratio) or 1440px by 1080px (for 4:3 aspect ratio). Player height is greater than 1080px, which means that the player's aspect ratio is greater than 1920px by 1080px. Player parameters.

Annotations
  • @anonymous
  • @JS()

Constructors

PlayerVars({num autohide, num autoplay, num cc_load_policy, String color, num controls, num disablekb, num enablejsapi, num end, num fs, String hl, num iv_load_policy, String list, String listType, num loop, num modestbranding, String origin, String playlist, num playsinline, num rel, num showinfo, num start})
factory

Properties

autohide num
Whether to autohide video controls (by default, HideProgressBar).
getter/setter pair
autoplay num
Whether to autoplay the video (by default, NoAutoPlay).
getter/setter pair
cc_load_policy num
Whether to use user-preferred or forced caption loading (by default, UserDefault).
getter/setter pair
color String
Player progress bar color
getter/setter pair
controls num
How video controls are shown (by default, ShowLoadPlayer).
getter/setter pair
disablekb num
Whether to allow keyboard controls (by default, Enable).
getter/setter pair
enablejsapi num
Whether the JavaScript API should be enabled (by default, Disable).
getter/setter pair
end num
Time, in seconds from the beginning of the video, when to stop playing.
getter/setter pair
fs num
Whether to display the full-screen button (by default, Show).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hl String
Player language as an ISO 639-1 two-letter language code or fully-specified locale.
getter/setter pair
iv_load_policy num
Whether to show video annotations (by default, Show).
getter/setter pair
list String
Identifies content that will load. If listType is search, this is the search query. If listType is user_uploads, this is the YouTube user. If listType is playlist, this is the playlist ID, prepended by 'PL'.
getter/setter pair
listType String
Which type of content loads in the player.
getter/setter pair
loop num
Whether a single video should be looped (by default, SinglePlay).
getter/setter pair
modestbranding num
Whether to hide some YouTube branding (by default, Full).
getter/setter pair
origin String
Origin domain for additional security if using the JavaScript API.
getter/setter pair
playlist String
Comma separated list of video IDs to play after the URL path's video.
getter/setter pair
playsinline num
Whether videos play inline or fullscreen in an HTML5 player on iOS. (currently by default, Fullscreen).
getter/setter pair
rel num
Whether to show related videos after the video finishes (by default, Show).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showinfo num
Whether to show video information before playing (by default, Show).
getter/setter pair
start num
Time, in seconds from the beginning of the video, when to start playing.
getter/setter pair

Methods

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