EzvizPlayerConfig constructor

const EzvizPlayerConfig({
  1. required String appKey,
  2. String? baseUrl,
  3. EzvizRegion? region,
  4. required String? accessToken,
  5. String? account,
  6. String? password,
  7. bool autoPlay = true,
  8. bool enableAudio = true,
  9. bool showControls = true,
  10. bool enableEncryptionDialog = true,
  11. bool allowFullscreen = true,
  12. bool hideControlsOnTap = true,
  13. bool compactControls = false,
  14. bool autoRotate = true,
  15. bool enableDoubleTapSeek = true,
  16. bool enableSwipeSeek = true,
  17. bool showDeviceInfo = false,
  18. Widget? loadingWidget,
  19. Widget? errorWidget,
  20. TextStyle? loadingTextStyle,
  21. Color? controlsBackgroundColor,
  22. Color? controlsIconColor,
  23. Duration controlsHideTimeout = const Duration(seconds: 3),
})

Implementation

const EzvizPlayerConfig({
  required this.appKey,
  this.baseUrl,
  this.region,
  required this.accessToken,
  this.account,
  this.password,
  this.autoPlay = true,
  this.enableAudio = true,
  this.showControls = true,
  this.enableEncryptionDialog = true,
  this.allowFullscreen = true,
  this.hideControlsOnTap = true,
  this.compactControls = false,
  this.autoRotate = true,
  this.enableDoubleTapSeek = true,
  this.enableSwipeSeek = true,
  this.showDeviceInfo = false,
  this.loadingWidget,
  this.errorWidget,
  this.loadingTextStyle,
  this.controlsBackgroundColor,
  this.controlsIconColor,
  this.controlsHideTimeout = const Duration(seconds: 3),
});