UNPKG

react-native-theoplayer

Version:

A THEOplayer video component for react-native.

54 lines (43 loc) 1.75 kB
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <!-- In order to play online streams or ads it is needed to add permissions below. Protection level: normal. --> <uses-permission android:name="android.permission.INTERNET" /> <!-- Allows a regular application to use Service.startForeground. Protection level: normal --> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <!-- Allows an app to post notifications. Protection level: dangerous --> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <!-- Allows a regular application to use Service.startForeground with the type "mediaPlayback". Protection level: normal|instant Apps that target Android 14 and use a foreground service must declare a specific permission, based on the foreground service type that Android 14 introduces. --> <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /> <application> <!-- Allow background audio playback by registering this service. --> <service android:name="com.theoplayer.media.MediaPlaybackService" android:description="@string/background_playback_service_description" android:exported="false" android:enabled="true" android:foregroundServiceType="mediaPlayback"> <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </service> <receiver android:name=".media.ConditionalMediaButtonReceiver" android:exported="false"> <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter> </receiver> </application> </manifest>