mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
chore: Remove player options
This commit is contained in:
parent
46590b5a8d
commit
359c8db1ac
@ -53,14 +53,12 @@ class _EventVideoPlayerState extends State<EventVideoPlayer> {
|
||||
_chewieManager ??= ChewieController(
|
||||
videoPlayerController: VideoPlayerController.network(networkUri),
|
||||
autoPlay: true,
|
||||
additionalOptions: _additionalOptions,
|
||||
autoInitialize: true,
|
||||
);
|
||||
} else if (!kIsWeb && tmpFile != null && _chewieManager == null) {
|
||||
_chewieManager ??= ChewieController(
|
||||
videoPlayerController: VideoPlayerController.file(tmpFile),
|
||||
autoPlay: true,
|
||||
additionalOptions: _additionalOptions,
|
||||
autoInitialize: true,
|
||||
);
|
||||
}
|
||||
@ -88,14 +86,6 @@ class _EventVideoPlayerState extends State<EventVideoPlayer> {
|
||||
|
||||
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
|
||||
Widget build(BuildContext context) {
|
||||
final hasThumbnail = widget.event.hasThumbnail;
|
||||
|
Loading…
Reference in New Issue
Block a user