ZegoUIKitMediaPlayer constructor

const ZegoUIKitMediaPlayer({
  1. Key? key,
  2. required Size size,
  3. bool canControl = true,
  4. bool showSurface = true,
  5. bool autoStart = true,
  6. bool isMovable = true,
  7. bool autoHideSurface = true,
  8. int hideSurfaceSecond = 3,
  9. bool enableRepeat = false,
  10. bool isPlayButtonCentral = true,
  11. String? filePathOrURL,
  12. List<String>? allowedExtensions,
  13. Offset? initPosition,
  14. Widget? closeIcon,
  15. Widget? moreIcon,
  16. Widget? playIcon,
  17. Widget? pauseIcon,
  18. Widget? volumeIcon,
  19. Widget? volumeMuteIcon,
  20. TextStyle? durationTextStyle,
  21. void onPlayStateChanged(
    1. ZegoUIKitMediaPlayState
    )?,
})

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);