ZegoUIKitMediaPlayer constructor
const
ZegoUIKitMediaPlayer({
- Key? key,
- required Size size,
- bool canControl = true,
- bool showSurface = true,
- bool autoStart = true,
- bool isMovable = true,
- bool autoHideSurface = true,
- int hideSurfaceSecond = 3,
- bool enableRepeat = false,
- bool isPlayButtonCentral = true,
- String? filePathOrURL,
- List<
String> ? allowedExtensions, - Offset? initPosition,
- Widget? closeIcon,
- Widget? moreIcon,
- Widget? playIcon,
- Widget? pauseIcon,
- Widget? volumeIcon,
- Widget? volumeMuteIcon,
- TextStyle? durationTextStyle,
- void onPlayStateChanged()?,
Implementation
const ZegoUIKitMediaPlayer({
Key? key,
required this.size,
this.canControl = true,
this.showSurface = true,
this.autoStart = true,
this.isMovable = true,
this.autoHideSurface = true,
this.hideSurfaceSecond = 3,
this.enableRepeat = false,
this.isPlayButtonCentral = true,
this.filePathOrURL,
this.allowedExtensions,
this.initPosition,
this.closeIcon,
this.moreIcon,
this.playIcon,
this.pauseIcon,
this.volumeIcon,
this.volumeMuteIcon,
this.durationTextStyle,
this.onPlayStateChanged,
}) : super(key: key);