Skip to content

Latest commit

 

History

History
executable file
·
42 lines (29 loc) · 2.34 KB

README.md

File metadata and controls

executable file
·
42 lines (29 loc) · 2.34 KB

THEOplayer React Native Reference App

THEO Technologies does not provide THEOplayer React Native components. These apps describes how our current THEOplayer iOS and Android SDKs can be wrapped in React Native Bridges. The sample React Native bridge code is provided AS-IS without any explicit nor implicit guarantees. The React Native bridge sample code only provides mapping for a number of commonly used THEOplayer APIs, it is the customer’s responsibility to further expand the mapping and subsequently maintain the code and ensure compatibility with future versions of THEOplayer SDKs.

This is the demo application in React native with theoplayer. This app decribes on how to setup DRM streams in THEOplayer and React Native on Android and iOS.

Getting Started on Android:

Usage

Run project:
  • install app libs yarn,
  • run project yarn run start.
Run emulator:
  • open project folder <path to project>/android,
  • add emulator device configuration(AVD Manager).
Add THEOplayer SDK library:
  • Please copy received THEOplayer license file theoplayer-android-[name]-[version]-minapiXX-release.aar into theoplayer folder and rename it to theoplayer.aar.
  • Sync Project with gradle files again

Note: Please use minapi16-THEOplayer SDK for Android devices starting from 4.1 and above, while minapi21-THEOplayer SDK can be used for Android 5.0 and above.

Getting Started on iOS:

Import THEOplayer SDK:

Install libs/depandencies:
  • install app libs yarn,
  • install pods pod install.
Run project and emulator:
  • Open TheoPlayerReactNative.xcworkspace from the ios folder or open xcode, add new project -> select workspace file in ios folder generated after pod install,
  • click run project, project will start automatically -> terminal & emulator will start

Streams/Content Rights:

The streams are provided by our Partner -EZ DRM and hold all the rights for the content. These streams are DRM protected and cannot be used for any other purposes.

License

This project is licensed under the BSD 3 Clause License - see the LICENSE file for details