PlayerControls constructor
PlayerControls({
- required String videoUrl,
- String? videoTitle,
- String? videoThumbnail,
- bool looping = false,
- Color color = Colors.white,
- IconData playIcon = Icons.play_arrow,
- IconData pauseIcon = Icons.pause,
- IconData fullScreeIcon = Icons.fullscreen,
- IconData replayIcon = Icons.replay,
- IconData muteIcon = Icons.volume_up,
- IconData unMuteIcon = Icons.volume_off,
- PlayerStyle playerStyle = PlayerStyle.basicStyle,
- double functionKeyVisibleMillTime = 3000,
- double quickFastMillisecond = 1000,
- Duration? startingPosition = const Duration(),
- double aspectRatio = 16 / 9,
- TextStyle? textStyle,
- bool mute = false,
- 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,
});