mirror of
https://github.com/tooot-app/app
synced 2025-04-24 15:08:51 +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 () => {
|
const playOnPress = async () => {
|
||||||
setVideoLoading(true)
|
setVideoLoading(true)
|
||||||
if (!videoLoaded) {
|
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)
|
setVideoLoading(false)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user