UNPKG

media_player_wrapper

Version:
37 lines (31 loc) 1.21 kB
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.extremesolution.medialibrary" > <application android:allowBackup="true" android:label="@string/app_name" android:supportsRtl="true" > <!--MediaLibrary setup--> <service android:name=".MyMediaBrowserService" android:exported="true"> <intent-filter> <action android:name="android.media.browser.MediaBrowserService"/> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </service> <!-- MediaSession, prior to API 21, uses a broadcast receiver to communicate with a media session. It does not have to be this broadcast receiver, but it must handle the action "android.intent.action.MEDIA_BUTTON". Additionally, this is used to resume the service from an inactive state upon receiving a media button event (such as "play"). --> <receiver android:name="android.support.v4.media.session.MediaButtonReceiver"> <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </receiver> </application> </manifest>