Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3756

Youtube embedded video problem (video unavailable)

$
0
0

I've a got a problem when I'd like to embed a YouTube video on my expo application, when I click on the play button, I sometimes get this message :

unavaible_message_from_youtube

For example, when I posted this video on reddit, it played perfectly through their youtube embedded player.

I use this sample of code:

<WebView                useWebKit={true}                ref={(ref) => { this.videoPlayer = ref;}}                source={{uri: 'https://www.youtube.com/embed/bo_efYhYU2A?rel=0&autoplay=0&showinfo=0&controls=0'}}                scrollEnabled={false}                domStorageEnabled={true}                javaScriptEnabled={true}              />

I know for a fact that the video is allowed to be embedded because when it's not the case, I get a different error message which allows me to open the video on youtube :screenshot_disable_embedded

Here is a link to test it : https://snack.expo.io/@maxgfr/youtube-embedded

Any help would be greatly appreciated

Maxime

Edit : example of url which doesn't work https://www.youtube.com/embed/8GaWM2a3FAc


Viewing all articles
Browse latest Browse all 3756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>