chore: Remove player options

This commit is contained in:
Christian Pauly 2021-12-27 15:30:17 +01:00
parent 46590b5a8d
commit 359c8db1ac

View File

@ -53,14 +53,12 @@ class _EventVideoPlayerState extends State<EventVideoPlayer> {
_chewieManager ??= ChewieController( _chewieManager ??= ChewieController(
videoPlayerController: VideoPlayerController.network(networkUri), videoPlayerController: VideoPlayerController.network(networkUri),
autoPlay: true, autoPlay: true,
additionalOptions: _additionalOptions,
autoInitialize: true, autoInitialize: true,
); );
} else if (!kIsWeb && tmpFile != null && _chewieManager == null) { } else if (!kIsWeb && tmpFile != null && _chewieManager == null) {
_chewieManager ??= ChewieController( _chewieManager ??= ChewieController(
videoPlayerController: VideoPlayerController.file(tmpFile), videoPlayerController: VideoPlayerController.file(tmpFile),
autoPlay: true, autoPlay: true,
additionalOptions: _additionalOptions,
autoInitialize: true, autoInitialize: true,
); );
} }
@ -88,14 +86,6 @@ class _EventVideoPlayerState extends State<EventVideoPlayer> {
static const String fallbackBlurHash = 'L5H2EC=PM+yV0g-mq.wG9c010J}I'; static const String fallbackBlurHash = 'L5H2EC=PM+yV0g-mq.wG9c010J}I';
List<OptionItem> _additionalOptions(BuildContext context) => [
OptionItem(
onTap: () {},
iconData: Icons.download_outlined,
title: L10n.of(context)!.downloadFile,
),
];
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final hasThumbnail = widget.event.hasThumbnail; final hasThumbnail = widget.event.hasThumbnail;