From ea54f91f296901da252df0a6ee7907f7e46079f3 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Mon, 13 Feb 2023 22:02:48 +0100 Subject: [PATCH] Update Video.tsx --- src/components/Timeline/Shared/Attachment/Video.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Timeline/Shared/Attachment/Video.tsx b/src/components/Timeline/Shared/Attachment/Video.tsx index be9055cc..49480a96 100644 --- a/src/components/Timeline/Shared/Attachment/Video.tsx +++ b/src/components/Timeline/Shared/Attachment/Video.tsx @@ -39,7 +39,11 @@ const AttachmentVideo: React.FC = ({ const playOnPress = async () => { setVideoLoading(true) if (!videoLoaded) { - await videoPlayer.current?.loadAsync(connectMedia({ uri: video.url }) as { uri: string }) + await videoPlayer.current?.loadAsync( + connectMedia({ + uri: video.url.includes('/media_proxy/') ? video.remote_url : video.url + }) as any + ) } setVideoLoading(false)