diff --git a/lib/pages/chat/events/message_content_style.dart b/lib/pages/chat/events/message_content_style.dart index a1496821e1..51a35b7a5f 100644 --- a/lib/pages/chat/events/message_content_style.dart +++ b/lib/pages/chat/events/message_content_style.dart @@ -66,7 +66,5 @@ class MessageContentStyle { static const BorderRadiusGeometry borderRadiusBubble = BorderRadius.all(Radius.circular(12.0)); - static const backgroundColorVideo = Colors.black; - static const backIconColor = Colors.white; } diff --git a/lib/presentation/mixins/play_video_action_mixin.dart b/lib/presentation/mixins/play_video_action_mixin.dart index 4cf415de79..a1f941b3b9 100644 --- a/lib/presentation/mixins/play_video_action_mixin.dart +++ b/lib/presentation/mixins/play_video_action_mixin.dart @@ -16,7 +16,10 @@ mixin PlayVideoActionMixin { builder: (context) { return InteractiveViewerGallery( itemBuilder: PlatformInfos.isMobile - ? VideoViewerMobileTheme(path: uriOrFilePath) + ? VideoViewerMobileTheme( + path: uriOrFilePath, + eventId: eventId, + ) : VideoViewerDesktopTheme(path: uriOrFilePath), ); }, diff --git a/lib/widgets/video_player.dart b/lib/widgets/video_player.dart index d1d484e9e6..2689bca7fb 100644 --- a/lib/widgets/video_player.dart +++ b/lib/widgets/video_player.dart @@ -1,4 +1,3 @@ -import 'package:fluffychat/pages/chat/events/message_content_style.dart'; import 'package:flutter/material.dart'; import 'package:media_kit/media_kit.dart'; import 'package:media_kit_video/media_kit_video.dart'; @@ -17,7 +16,6 @@ class VideoPlayer extends StatefulWidget { class _VideoPlayerState extends State { final VideoController videoController = VideoController(Player()); - bool isFullScreen = false; @override void initState() { @@ -33,15 +31,11 @@ class _VideoPlayerState extends State { @override Widget build(BuildContext context) { - return Container( - decoration: const BoxDecoration( - color: MessageContentStyle.backgroundColorVideo, - ), - child: Video( - pauseUponEnteringBackgroundMode: true, - resumeUponEnteringForegroundMode: true, - controller: videoController, - ), + return Video( + fill: Colors.transparent, + pauseUponEnteringBackgroundMode: true, + resumeUponEnteringForegroundMode: true, + controller: videoController, ); } }