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:
parent
d9ee3fbec6
commit
cfcbf944ff
1 changed files with 5 additions and 1 deletions
|
|
@ -41,8 +41,12 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
|
||||||
VideoPlayerController? _videoPlayerController;
|
VideoPlayerController? _videoPlayerController;
|
||||||
bool _isDownloading = false;
|
bool _isDownloading = false;
|
||||||
|
|
||||||
|
// The video_player package only doesn't support Windows and Linux.
|
||||||
|
final _supportsVideoPlayer =
|
||||||
|
!PlatformInfos.isWindows && !PlatformInfos.isLinux;
|
||||||
|
|
||||||
void _downloadAction() async {
|
void _downloadAction() async {
|
||||||
if (PlatformInfos.isDesktop) {
|
if (!_supportsVideoPlayer) {
|
||||||
widget.event.saveFile(context);
|
widget.event.saveFile(context);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue