The THEOplayer Android Media3 pipeline is an integration for the THEOplayer Android SDK that serves as a new and rebuilt base layer for playback of video and audio files. It is based on Jetpack Media3 components, and it provides more stable playback covering a broader range of use cases, all while being lighter in size and more performant.
For more information, refer to the Getting started with media3 on Android section in our Android SDK documentation.
The media3 pipeline is available as of react-native-theoplayer
v8.9.0.
Except for THEOads sources, where media3 is enabled by default, the "legacy" pipeline remains the default for now.
To enable the new media3 extension, set the THEOplayer_extensionMedia3
in the app's gradle configuration,
such as the gradle.properties
file:
THEOplayer_extensionMedia3=true
Additionally, pass the useMedia3
flag in the player configuration as shown below:
const playerConfig: PlayerConfiguration = {
// ...
useMedia3: true
};