Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-video play Vimeo and YouTube

I wonder if it is at all possible to play Vimeo and YouTube via the React Native component react-native-video. My research so far points to this being virtually impossible, because react-native-video needs a direct reference to a file (or a stream?) and these references are hard/difficult to obtain for YouTube and Vimeo?

Is there any way to get react-native-video working with Vimeo & YouTube?

like image 718
Hendrik Avatar asked Sep 01 '16 10:09

Hendrik


People also ask

Can we play youtube video in react-native video?

To achieve playing Youtube videos in React Native, we will be making use of the npm dependency named react-native-youtube-iframe. We will work through using this library by fully integrating it into an app.

How do I play vimeo in react-native?

Installation. Go through the instructions for installing the React Native Webview library: https://github.com/react-native-webview/react-native-webview. Run npm install react-native-vimeo-iframe or yarn add react-native-vimeo-iframe within your project. Compile and build to make sure everything is set up properly.

Does react-native video support HLS?

Video filter is currently not supported on HLS playlists.


1 Answers

react-native-video will work with Vimeo, if you subscribe to Vimeo Pro.

Vimeo Pro offers the ability to use your video own third party player, which lets you get the url for your video in 360p, 540p, 720p, or 1080p specifically or as an HTTP Live Streaming url which can choose the correct resolution/bitrate for the user's connection. react-native-video work with any of these formats!

like image 143
greg5green Avatar answered Nov 05 '22 15:11

greg5green