Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Unavailable (only on IOS) #314

Closed
jdadojr opened this issue Sep 10, 2018 · 2 comments
Closed

Video Unavailable (only on IOS) #314

jdadojr opened this issue Sep 10, 2018 · 2 comments

Comments

@jdadojr
Copy link

jdadojr commented Sep 10, 2018

Hi,

Using the videoId T-fSsXqH-Qk
I am able to play it on Android without a problem.
However, on IOS, the video will just flash in half a
second (or less) then will show Video Unavailable.

What could be causing this?

Thanks

@jdadojr
Copy link
Author

jdadojr commented Sep 11, 2018

adding this
origin="http://www.youtube.com"
solved the issue

@jdadojr jdadojr closed this as completed Sep 11, 2018
@lavarajallu
Copy link

{Platform.OS === "android" ? (
<WebView
style={{ alignSelf: "stretch", height: 248 }}
source={{ uri: "https://www.youtube.com/embed/" + getFinalId }}
/>
) : (
<YouTube
videoId={getFinalId}
fullscreen={true}
onReady={e => this.setState({ isReady: true })}
onChangeState={e => this.setState({ status: e.state })}
onChangeQuality={e => this.setState({ quality: e.quality })}
onError={e => this.setState({ error: e.error })}
style={{ alignSelf: "stretch", height: 248 }}
/>
)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants