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.
- install app libs
yarn
, - run project
yarn run start
.
- open project folder
<path to project>/android
, - add emulator device configuration(AVD Manager).
- 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.
- Drag and drop THEOplayer iOS SDK Framework file in ios folder
- Add THEOplayer iOS SDK Framework to the project as stated in our documentation: https://docs.portal.theoplayer.com/docs/docs/getting-started/ios/
- install app libs
yarn
, - install pods
pod install
.
- 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
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.
This project is licensed under the BSD 3 Clause License - see the LICENSE file for details