feat: support inline video playback on macOS

It turns out that video_player supports macOS, so we can simply enable it.
This commit is contained in:
Rafał Hirsch 2025-04-02 21:04:01 +02:00
parent d9ee3fbec6
commit cfcbf944ff
No known key found for this signature in database

View file

@ -41,8 +41,12 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
VideoPlayerController? _videoPlayerController;
bool _isDownloading = false;
// The video_player package only doesn't support Windows and Linux.
final _supportsVideoPlayer =
!PlatformInfos.isWindows && !PlatformInfos.isLinux;
void _downloadAction() async {
if (PlatformInfos.isDesktop) {
if (!_supportsVideoPlayer) {
widget.event.saveFile(context);
return;
}