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:
parent
6a8663f9ed
commit
ea54f91f29
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user