YoutubePlayerParams constructor

const YoutubePlayerParams({
  1. bool autoPlay = true,
  2. bool mute = false,
  3. String captionLanguage = 'en',
  4. bool enableCaption = true,
  5. String color = 'white',
  6. bool showControls = true,
  7. bool enableKeyboard = kIsWeb,
  8. bool enableJavaScript = true,
  9. Duration? endAt,
  10. bool showFullscreenButton = false,
  11. String interfaceLanguage = 'en',
  12. bool showVideoAnnotations = true,
  13. bool loop = false,
  14. String origin = 'https://www.youtube.com',
  15. List<String> playlist = const [],
  16. bool playsInline = true,
  17. bool strictRelatedVideos = false,
  18. Duration startAt = Duration.zero,
  19. bool desktopMode = false,
  20. bool privacyEnhanced = false,
  21. 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,
});