GreenVideo constructor

GreenVideo({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. double? aspectRatio,
  5. required String licenseKey,
  6. required String embedId,
  7. String? mixId,
  8. String? contentId,
  9. String? adTagUrl,
  10. String? consentString,
  11. bool? adsDisallowed,
  12. String? environment,
  13. bool? debug,
  14. GreenVideoController? controller,
})

Implementation

GreenVideo({
  super.key,

  // video size
  this.width,
  this.height,
  this.aspectRatio,

  // mandatory fields
  required this.licenseKey,
  required this.embedId,

  // optional
  this.mixId,
  this.contentId,
  this.adTagUrl,
  this.consentString,
  this.adsDisallowed,
  this.environment,
  this.debug,
  this.controller,
}) {
  playerId = const Uuid().v4();
}