From 0e9ef0ec40caef22d9404b9d47c29e455b75bb47 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Fri, 25 Nov 2022 22:31:49 +0800 Subject: [PATCH 01/40] Play audio in silent mode on iOS --- src/startup/audio.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/startup/audio.ts b/src/startup/audio.ts index 2f3c2b51..4b5aa9b6 100644 --- a/src/startup/audio.ts +++ b/src/startup/audio.ts @@ -6,6 +6,7 @@ const audio = () => { Audio.setAudioModeAsync({ interruptionModeIOS: InterruptionModeIOS.MixWithOthers, interruptionModeAndroid: InterruptionModeAndroid.DuckOthers, + playsInSilentModeIOS: true, staysActiveInBackground: false }) } From 0a5fea119464ef35979de2d4471592fb9b02d222 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Mon, 28 Nov 2022 20:36:39 +0800 Subject: [PATCH 02/40] Always play video in fullscreen from beginning --- src/components/Timeline/Shared/Attachment/Video.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/Timeline/Shared/Attachment/Video.tsx b/src/components/Timeline/Shared/Attachment/Video.tsx index 730c3248..e183eaab 100644 --- a/src/components/Timeline/Shared/Attachment/Video.tsx +++ b/src/components/Timeline/Shared/Attachment/Video.tsx @@ -27,7 +27,6 @@ const AttachmentVideo: React.FC = ({ const videoPlayer = useRef