YoutubePlayerParams constructor
const
YoutubePlayerParams({
- bool autoPlay = true,
- bool mute = false,
- String captionLanguage = 'en',
- bool enableCaption = true,
- String color = 'white',
- bool showControls = true,
- bool enableKeyboard = kIsWeb,
- bool enableJavaScript = true,
- Duration? endAt,
- bool showFullscreenButton = false,
- String interfaceLanguage = 'en',
- bool showVideoAnnotations = true,
- bool loop = false,
- String origin = 'https://www.youtube.com',
- List<
String> playlist = const [], - bool playsInline = true,
- bool strictRelatedVideos = false,
- Duration startAt = Duration.zero,
- bool desktopMode = false,
- bool privacyEnhanced = false,
- bool useHybridComposition = true,
Defines player parameters for YoutubePlayer
.
Implementation
const YoutubePlayerParams({
this.autoPlay = true,
this.mute = false,
this.captionLanguage = 'en',
this.enableCaption = true,
this.color = 'white',
this.showControls = true,
this.enableKeyboard = kIsWeb,
this.enableJavaScript = true,
this.endAt,
this.showFullscreenButton = false,
this.interfaceLanguage = 'en',
this.showVideoAnnotations = true,
this.loop = false,
this.origin = 'https://www.youtube.com',
this.playlist = const [],
this.playsInline = true,
this.strictRelatedVideos = false,
this.startAt = Duration.zero,
this.desktopMode = false,
this.privacyEnhanced = false,
this.useHybridComposition = true,
});