itsnubix / react-native-video-controls

A React Native video component with controls
MIT License
639 stars 527 forks source link

video not work in ios #200

Open mohamedanwer123 opened 3 years ago

mohamedanwer123 commented 3 years ago

video not work in ios but work fine in android

and git this error : video unavailable

react native : 63.5

my code :

<VideoPlayer source={{ uri: 'https://vjs.zencdn.net/v/oceans.mp4' }} tapAnywhereToPause repeat />

ram4git commented 3 years ago

Any solution? It just started showing all of a sudden

GuleriaAshish commented 3 years ago

Yes, am i also facing the same issue, It was working fine fews days back and all of sudden it started showing me video unavailable error. Did you guys find any solution for this ?

here is the error that i receive in onError method: {"error": {"code": -11829, "domain": "AVFoundationErrorDomain", "localizedDescription": "Cannot Open", "localizedFailureReason": "This media may be damaged.", "localizedRecoverySuggestion": ""}, "target": 9499}

but that is not the reason , as i have checked by hitting my video url at web browser and it shows me the video without any error.

sushilbansal commented 2 years ago

Hi Guys @GuleriaAshish @ram4git @mohamedanwer123 did you find any solution

Great-hijack commented 2 years ago

I wasted 3 days for this issue, please help me.

dhairyasenjaliya commented 2 years ago

any solution ?

achall9 commented 2 years ago

Hey any word on this? I am stuck also.

jhjdev commented 2 years ago

Setting:

source={{ type: 'mp4', uri: 'https://vjs.zencdn.net/v/oceans.mp4' }}

Seems to work. But I'm using React Native 0.68.0. Which might have something to do with it.

cihanbas commented 2 years ago

if you are using the encrypt or drm you need to activated the apple fairplay

imyuvsinha commented 1 year ago

have resolved this issue by adding NSAppTransportSecurity to true in info.plist.

image