mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
fix #168
This commit is contained in:
parent
a57a8051ef
commit
a175435190
1 changed files with 5 additions and 1 deletions
|
|
@ -68,7 +68,11 @@ class _InChatMediaViewerState extends State<InChatMediaViewer> {
|
|||
if (content is MediaMessageContent) {
|
||||
mirrorVideo = content.mirrorVideo;
|
||||
}
|
||||
videoController = VideoPlayerController.file(videoPath);
|
||||
videoController = VideoPlayerController.file(
|
||||
videoPath,
|
||||
videoPlayerOptions:
|
||||
VideoPlayerOptions(mixWithOthers: !widget.isInFullscreen),
|
||||
);
|
||||
videoController?.initialize().then((_) {
|
||||
if (!widget.isInFullscreen) {
|
||||
videoController!.setVolume(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue