aora icon indicating copy to clipboard operation
aora copied to clipboard

Video not playing on device (IOS)

Open mbacarro opened this issue 7 months ago • 5 comments

Got to the video portion at around the 3 hour mark and fonud that the videos weren't loading. I added the onError property to the <Video /> tag from expo-av and got this error back:

The server is not correctly configured. - The AVPlayerItem instance has failed with the error code -11850 and domain "AVFoundationErrorDomain"

Here's the code I have related to this error

import { ResizeMode, Video } from "expo-av";
.
.
.
                <Video
                    source={{ uri: item.video}}
                    className="w-52 h-72 rounded-[33px] mt-3 bg-white/10"
                    resizeMode={ResizeMode.CONTAIN}
                    useNativeControls
                    shouldPlay
                    onPlaybackStatusUpdate={(status) => {
                    if (status.didJustFinish) {
                        setPlay(false);
                    }
                    }}
                    onError={(error) => {
                        console.error("Video error: ", error); // Log the error
                    }}
                />

I think it's my device but not sure how to fix it

mbacarro avatar Jul 10 '24 05:07 mbacarro