YoutubePlayerParams constructor
const
YoutubePlayerParams({
- bool mute = false,
- String captionLanguage = 'en',
- bool enableCaption = true,
- PointerEvents pointerEvents = PointerEvents.initial,
- String color = 'white',
- bool showControls = true,
- bool enableKeyboard = kIsWeb,
- bool enableJavaScript = true,
- bool showFullscreenButton = false,
- String interfaceLanguage = 'en',
- bool showVideoAnnotations = true,
- bool loop = false,
- String? origin = 'https://www.youtube.com',
- bool playsInline = true,
- bool strictRelatedVideos = false,
- String? userAgent,
Defines player parameters for the youtube player.
Implementation
const YoutubePlayerParams({
this.mute = false,
this.captionLanguage = 'en',
this.enableCaption = true,
this.pointerEvents = PointerEvents.initial,
this.color = 'white',
this.showControls = true,
this.enableKeyboard = kIsWeb,
this.enableJavaScript = true,
this.showFullscreenButton = false,
this.interfaceLanguage = 'en',
this.showVideoAnnotations = true,
this.loop = false,
this.origin = 'https://www.youtube.com',
this.playsInline = true,
this.strictRelatedVideos = false,
this.userAgent,
});