BSVideoPlayer constructor
const
BSVideoPlayer({
- Key? key,
- required String videoURl,
- required bool hasPlayBackSpeed,
- required Function? onFinishedVideo,
- double playbackTextFontSize = 20.0,
- double playbackIconSize = 100.0,
- Color iconContainerColor = Colors.black26,
- Color iconColor = Colors.white,
- double playbackPadding = 20.0,
- Color playbackTextFontColor = Colors.white,
- Color playbackMenuItemFontColor = Colors.black,
- double playbackMenuItemFontSize = 20.0,
- double playbackTextVerticalPadding = 20.0,
- double playbackTextHorizontalPadding = 16.0,
- Color containerBackgroundColor = const Color(0xFF22222B),
- Color bufferedColor = const Color(0xFFF5F5F5),
- Color progressColor = const Color(0xFF253861),
- Color circleProgressIndicatorColor = const Color(0xFF253861),
- List<
double> playbackSpeeds = const <double>[0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0],
Implementation
const BSVideoPlayer({
super.key,
required this.videoURl,
required this.hasPlayBackSpeed,
required this.onFinishedVideo,
this.playbackTextFontSize = 20.0,
this.playbackIconSize = 100.0,
this.iconContainerColor = Colors.black26,
this.iconColor = Colors.white,
this.playbackPadding = 20.0,
this.playbackTextFontColor = Colors.white,
this.playbackMenuItemFontColor = Colors.black,
this.playbackMenuItemFontSize = 20.0,
this.playbackTextVerticalPadding = 20.0,
this.playbackTextHorizontalPadding = 16.0,
this.containerBackgroundColor = const Color(0xFF22222B),
this.bufferedColor = const Color(0xFFF5F5F5),
this.progressColor = const Color(0xFF253861),
this.circleProgressIndicatorColor = const Color(0xFF253861),
this.playbackSpeeds = const <double>[
0.25,
0.5,
0.75,
1.0,
1.25,
1.5,
1.75,
2.0
],
});