Update Video.tsx

This commit is contained in:
xmflsct 2023-02-13 22:02:48 +01:00
parent 6a8663f9ed
commit ea54f91f29
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ const AttachmentVideo: React.FC<Props> = ({
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)