mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +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(
|
_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;
|
||||||
|
Loading…
Reference in New Issue
Block a user