EzvizPlayerConfig constructor
const
EzvizPlayerConfig({
- required String appKey,
- String? baseUrl,
- EzvizRegion? region,
- required String? accessToken,
- String? account,
- String? password,
- bool autoPlay = true,
- bool enableAudio = true,
- bool showControls = true,
- bool enableEncryptionDialog = true,
- bool allowFullscreen = true,
- bool hideControlsOnTap = true,
- bool compactControls = false,
- bool autoRotate = true,
- bool enableDoubleTapSeek = true,
- bool enableSwipeSeek = true,
- bool showDeviceInfo = false,
- Widget? loadingWidget,
- Widget? errorWidget,
- TextStyle? loadingTextStyle,
- Color? controlsBackgroundColor,
- Color? controlsIconColor,
- 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),
});