THEOplayer/react-native-theoplayer
소개
A React Native THEOplayerView component
웹 및 앱 개발What you can do
- Streaming - MPEG-DASH (fmp4, CMAF), HLS (TS, CMAF), Progressive MP4, MP3, M4A - HLS (TS, CMAF), Progressive MP4, MP3, M4A
- Content Protection - Widevine - Widevine, PlayReady, Fairplay - Fairplay
- DRM Connectors - BuyDRM, EZDRM, Anvato, Titanium, Axinom, Irdeto, VuDRM, Comcast, Verimatrix, Azure, …
- Analytics Connectors - Adobe, Agama, Comscore, Conviva, Mux, Nielsen, Youbora
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact Native THEOplayer



License
This projects falls under the license as defined in https://github.com/THEOplayer/license-and-disclaimer.
Table of Contents
- Overview
- Prerequisites
- How to use these guides
- Features
- Available connectors
- Creating your first app
- Knowledge Base
- API Reference
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)
- HTML5, Tizen & webOS (web, mobile web, smart TVs, set-top boxes and gaming consoles).
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/tvOS, or Swift Package Manager support on iOS as described below
- 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 sign up for a THEOplayer SDK license through our portal.
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.
iOS Swift Package Manager Support
SPM support is available for iOS apps using standard React Native, with standard package manifests and traits.
tvOS is not yet supported through SPM because react-native-tvos does not yet provide working React Native SPM tooling;
keep using CocoaPods for tvOS apps. See the known limitation.
If your React Native SPM tooling does not expose trait selection through autolinking, use the
manual package setup:
disable autolinking for react-native-theoplayer, add its installed package to the app target in Xcode,
and select integrations through the package's Traits dropdown.
This works without React Native autolinking support for traits and does not require a feature JSON file or THEOplayer-specific generator.
See the iOS/tvOS setup guide and open the SPM section
for prerequisites, package setup, traits, and Chromecast configuration.
For an existing CocoaPods app, follow the CocoaPods to SPM migration guide.
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.
Features
Depending on the platform on which the application is deployed, a different set of features is available.
If a feature missing, additional help is needed, or you need to extend the package, please reach out to us for support.
| Feature | Android, Android TV, Fire TV | Web | iOS, tvOS |
|---|---|---|---|
| Streaming | MPEG-DASH (fmp4, CMAF), HLS (TS, CMAF), Progressive MP4, MP3, M4A | HLS (TS, CMAF), Progressive MP4, MP3, M4A | |
| Content Protection | Widevine | Widevine, PlayReady, Fairplay | Fairplay |
| DRM Connectors | BuyDRM, EZDRM, Anvato, Titanium, Axinom, Irdeto, VuDRM, Comcast, Verimatrix, Azure, … | ||
| Analytics Connectors | Adobe, Agama, Comscore, Conviva, Mux, Nielsen, Youbora | ||
| Other Connectors | Yospace SSAI | ||
| Subtitles & Closed Captions | CEA-608/708, SRT, TTML, WebVTT | ||
| Metadata | Event stream, emsg, ID3, EXT-X-DATERANGE, EXT-X-PROGRAM-DATE-TIME | ||
| Advertising Integration | Google IMA, Google DAI, THEOads | ||
| Cast Integration | Chromecast | Chromecast, Airplay | |
| Presentation Mode | Inline, Picture-in-Picture, Fullscreen | ||
| Audio Control Management | Audio focus & Audio-Becoming-Noisy mgmt | (Audio control management by platform) | |
| Advanced APIs | Background playback, Media Session, Media Cache (offline playback) |
Background playback, NowPlaying, Media Cache (iOS only) |
|
User Interface@theoplayer/react-native-ui |
Basic playback, media & text track selection, progress bar, live & vod, preview thumbnails, customisable & extensible |
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:
| Connector | npm package | Source |
|---|---|---|
| Adobe Heartbeat analytics using the Media Collections API | Adobe |
|
| Adobe Media Edge analytics | Adobe Edge |
|
| Agama analytics | Agama |
|
| Bitmovin analytics | Bitmovin |
|
| Comscore analytics | Comscore |
|
| Conviva analytics | Conviva |
|
| Engage | Engage |
|
| Gemius | Gemius |
|
| Mux analytics | Mux |
|
| Nielsen analytics | Nielsen |
|
| Nielsen AdScript analytics | AdScript |
|
| Youbora analytics | Youbora |
|
| Yospace SSAI | Yospace |
|
| Content protection (DRM) | DRM |
|
| React Native Open UI | Open UI |
|
A template forreact-native-theoplayer connectors. |
Connector template |
Creating your first app
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.
Knowledge Base
This section gives an overview of features, limitations and known issues:
- Adaptive Bitrate (ABR)
- Advertisements
- Android Media3 Pipeline
- Audio Control Management
- Background playback and notifications
- Casting with Chromecast and Airplay
- Common Media Client Data (CMCD)
- Content matching on tvOS
- Digital Rights Management (DRM)
- Expo
- Fullscreen presentation
- Media Control
- Media Caching
- Metrics
- Migrating from CocoaPods to SPM
- Migrating to THEOplayer 9.x
- Migrating to THEOplayer 10.x🔥
- Millicast
- Picture-in-Picture (PiP)
- Subtitles, Closed Captions and Metadata tracks
- Limitations and known issues
API Reference
See the API Reference for detailed documentation about all available components and functions.
관련 프로젝트 살펴보기
불러오는 중…