Benefits of a commercial React Native video player vs DIY with open source
by Bart Van Oosterhout on December 21, 2022
Why is React Native important?
React Native is often used for mobile applications, but leading media and entertainment companies also use it for smart TV’s and gaming console apps. The big advantage of this approach is that it brings substantial time savings, in terms of initial investment and also for ongoing maintenance, and that it accelerates your time-to-market.
THEOplayer React Native video player vs DIY open source React Native video player
When it comes to adding video streaming capabilities to a React Native app, you have the option to use a commercial React Native video player or go the do-it-yourself route with an open source React Native player. In this article, we’ll compare the two approaches: the open source react-native-video versus the THEOplayer React Native video player.
- React-native-video is the most common open source React Native video package. It’s available under an MIT open source license, and uses Exoplayer and AVplayer underneath for video playback.
- THEOplayer React Native video player consists of open source bridges for THEOplayer. The React Native “wrapper” is available for the THEOplayer HTML5/Tizen/webOS SDK, Android/Fire TV SDK and iOS/tvOS SDK. The bridges are built and maintained by THEO but, as the bridges are open source, customers can also contribute.
Figure 1: THEOplayer React Native video player is an NPM package that exposes the THEOplayerView component.
We have compared both approaches in terms of 1) device coverage, 2) features, 3) third-party integrations, 4) support, 5) cost, and 6) time-to-market.
1. Device coverage
One of the main benefits of a React Native video player is its ability to be distributed across multiple platforms. Both react-native-video and THEOplayer offer support for Android and iOS platforms, including tvOS, AndroidTV and FireTV. Both approaches also support the Universal Windows Platform (UWP)* for Windows apps, including XBOX. However, only THEOplayer supports web-based platforms, such as Samsung Tizen and LG WebOS smart TVs.
* Note that THEOplayer and react-native-video take a different approach. React-native-video can deliver native Windows support for UWP apps, whereas THEOplayer includes a WebView that loads the Web variant of the THEOplayer React Native video SDK.
Figure 2: THEOplayer React Native video running on XBOX
The features that you need depend on your specific use case, but it's important to ensure that they are available through the React Native bridges. If they are not, you'll need to build the bridges yourself, which requires extra effort and in-house knowledge.
React-native-video provides features like audio only, background audio, audio track selection, and Airplay. THEOplayer has an even more extensive feature set, also offering, for example, preview thumbnails, casting, Android media sessions, multi-audio, background playback, offline playback, content protection, picture-in-picture and subtitles. In addition, THEOplayer is constantly working on developing new features for their React Native video SDK.
Figure 3: Different THEOplayer React Native video preview thumbnail modes
3. Third-party integrations
There is a notable difference between open source react-native-video and THEOplayer React Native video player in terms of third-party integrations. React-native-video does not offer out-of-the-box integrations with third-party DRM providers, nor does it have integrations for ad insertion or analytics. While it is possible to use DRM with react-native-video, you will need to build and maintain the necessary connectors yourself.
THEOplayer React Native video player, on the other hand, has made significant investments in this area. It offers a variety of out-of-the-box integrations with third-party DRM providers, including CastLabs, EZDRM, Irdeto Control, BuyDRM KeyOS, Nagra DRM, and Verimatrix MultiDRM. It also has third-party SSAI/CSAI integrations for Google IMA and Google DAI, and is working on developing bridges for out-of-the-box analytics integrations with services like Conviva.
Figure 4: THEOplayer React Native video player has an extensive set of out-of-the box third-party integrations
What happens if certain features are not working properly on newer or older operating system versions? Or if the bridges require fixing? Suppose you need additional features or third-party integrations, which are not available yet? When it comes to support, a commercial React Native video player like THEOplayer typically offers more options compared to an open source video player such as react-native-video.
React-native-video relies on its open source community for support, with the option to submit issues and pull requests on GitHub.
THEOplayer offers various levels of support, each with access to a team of video experts, who actively develop new features and third-party integrations, follow-up on product evolutions, and maintain the React Native bridges. They can even act as an extension of your team, and help you build bridges to the THEOplayer SDKs for specific features or third-party integrations, if these would not be available yet.
When comparing cost for both approaches it’s important to consider licensing fees, initial development effort and the ongoing maintenance requirements.
- Licensing fees: Open source react-native video comes for free whereas THEOplayer brings a licensing fee. The THEOplayer licensing model is impression-based, although alternative pricing options are available for premium packages. All of the THEOplayer packages include support from video experts.
- Initial development effort: Depending on your use case the initial development effort will vary. In general, THEOplayer reduces the initial development effort through its premium features & integrations, and support for web-based platforms.
- Ongoing maintenance: It’s important to not only consider initial costs, but also the ongoing maintenance costs. THEOplayer outperforms react-native-video on this aspect, as they actively maintain the bridges, and proactively make available new features and integrations.
In order to determine the overall cost for your React Native video player, you’ll have to add up the licensing fees, initial development effort and ongoing maintenance. If your use case is straightforward, react-native-video could be the most cost-effective approach. For many cases though, the initial react-native video development effort and maintenance cost surpass the THEOplayer licensing fee, resulting in a higher total cost of ownership.
Figure 5: THEOplayer reduces your total cost of ownership (TCO)
How quickly you can get your app to market with each option will depend on your use case, and is highly aligned with the initial development effort required. If you want to fast-track your time-to-market then THEOplayer is typically the best choice, definitely if you’re looking for premium features, third-party integrations and support for web-based platforms. Leverage the THEOplayer video experts to further fast track your launch time.
Both react-native-video and THEOplayer offer benefits as a React Native video player option. While react-native-video is a good choice for developers looking for a free, open source solution with a solid feature set, THEOplayer offers a more extensive feature set and additional support for web-based platforms, as well as third-party integrations and various levels of support. Ultimately the best choice will depend on your specific needs and priorities. Open source react native video might be a great fit for your use case. If you’re looking for a more comprehensive solution that will save you time and effort in the long run, and accelerates your-time-to-market, THEOplayer react native advanced video player might be the better choice.