PlayerControls constructor

PlayerControls({
  1. required String videoUrl,
  2. String? videoTitle,
  3. String? videoThumbnail,
  4. bool looping = false,
  5. Color color = Colors.white,
  6. IconData playIcon = Icons.play_arrow,
  7. IconData pauseIcon = Icons.pause,
  8. IconData fullScreeIcon = Icons.fullscreen,
  9. IconData replayIcon = Icons.replay,
  10. IconData muteIcon = Icons.volume_up,
  11. IconData unMuteIcon = Icons.volume_off,
  12. PlayerStyle playerStyle = PlayerStyle.basicStyle,
  13. double functionKeyVisibleMillTime = 3000,
  14. double quickFastMillisecond = 1000,
  15. Duration? startingPosition = const Duration(),
  16. double aspectRatio = 16 / 9,
  17. TextStyle? textStyle,
  18. bool mute = false,
  19. AppBar? appBar,
})

Implementation

PlayerControls({
  required this.videoUrl,
  this.videoTitle,
  this.videoThumbnail,
  this.looping = false,
  this.color = Colors.white,
  this.playIcon = Icons.play_arrow,
  this.pauseIcon = Icons.pause,
  this.fullScreeIcon = Icons.fullscreen,
  this.replayIcon = Icons.replay,
  this.muteIcon = Icons.volume_up,
  this.unMuteIcon = Icons.volume_off,
  this.playerStyle = PlayerStyle.basicStyle,
  this.functionKeyVisibleMillTime = 3000,
  this.quickFastMillisecond = 1000,
  this.startingPosition = const Duration(),
  this.aspectRatio = 16 / 9,
  this.textStyle,
  this.mute = false,
  this.appBar,
});