Skip to content

Thuisbioscoop/react-native-theoplayer

 
 

Repository files navigation

React Native THEOplayer

License

This projects falls under the license as defined in https://github.com/THEOplayer/license-and-disclaimer.

Table of Contents

  1. Overview
  2. How to use these guides
  3. Prerequisites
  4. Getting Started

Overview

The react-native-theoplayer package provides a THEOplayerView component supporting video playback on the following platforms:

  • Android, Android TV & FireTV
  • iOS & tvOS (Apple TV)
  • Web (currently only HTML5 browsers are tested)

This document covers the creation of a minimal app including a THEOplayerView component, and an overview of the accompanying example app with a user interface provided by the @theoplayer/react-native-ui package.

It also gives a description of the properties of the THEOplayerView component, and a list of features and known limitations.

Prerequisites

For each platform, a dependency to the corresponding THEOplayer SDK is included through a dependency manager:

  • Gradle & Maven for Android
  • Cocoapods for iOS
  • npm for Web

In order to use one of these THEOplayer SDKs, it is necessary to obtain a valid THEOplayer license for that specific platform, i.e. HTML5, Android, and/or iOS. You can use your existing THEOplayer SDK license or request a free trial account.

If you have no previous experience in React Native, we encourage you to first explore the React Native Documentation, as it gives you a good start on one of the most popular app development frameworks.

How to use these guides

These are guides on how to use the THEOplayer React Native SDK in your React Native project(s) and can be used linearly or by searching the specific section. It is recommended that you have a basic understanding of how React Native works to speed up the way of working with THEOplayer React Native SDK.

Available connectors

The react-native-theoplayer package can be combined with any number of connectors to provide extra functionality. Currently, the following connectors are available:

Package name Purpose Registry
@theoplayer/react-native-analytics-adobe Adobe analytics connector npm
@theoplayer/react-native-analytics-comscore Comscore analytics connector npm
@theoplayer/react-native-analytics-conviva Conviva analytics connector npm
@theoplayer/react-native-analytics-nielsen Nielsen analytics connector npm
@theoplayer/react-native-drm Content protection (DRM) connectors npm
@theoplayer/react-native-ui React Native user interface npm
@theoplayer/react-native-connector-template A template for react-native-theoplayer connectors. npm

Getting Started

This section starts with creating a minimal demo app that integrates the react-native-theoplayer package, followed by an overview of the available properties and functionality of the THEOplayerView component. An example application including a basic user interface and demo sources is included in the git repository, and discussed in the next section. Finally, an overview of features, limitations and known issues is listed.

About

A React Native THEOplayerView component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 29.2%
  • Swift 27.8%
  • Kotlin 20.1%
  • CSS 19.0%
  • Objective-C 1.6%
  • Java 0.9%
  • Other 1.4%