1
0
mirror of https://github.com/tooot-app/app synced 2025-04-24 07:07:24 +02:00

Update Video.tsx

This commit is contained in:
xmflsct 2023-02-13 22:02:48 +01:00
parent 6a8663f9ed
commit ea54f91f29

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)