YoutubePlayerParams constructor

const YoutubePlayerParams({
  1. bool mute = false,
  2. String captionLanguage = 'en',
  3. bool enableCaption = true,
  4. PointerEvents pointerEvents = PointerEvents.initial,
  5. String color = 'white',
  6. bool showControls = true,
  7. bool enableKeyboard = kIsWeb,
  8. bool enableJavaScript = true,
  9. bool showFullscreenButton = false,
  10. String interfaceLanguage = 'en',
  11. bool showVideoAnnotations = true,
  12. bool loop = false,
  13. String? origin = 'https://www.youtube.com',
  14. bool playsInline = true,
  15. bool strictRelatedVideos = false,
  16. 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,
});