mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Declare demo service as MediaLibraryService
The `PlaybackService` of the demo app is declared as `androidx.media3.session.MediaSessionService` instead of `androidx.media3.session.MediaLibraryService`. While this technically works, its confusing to do that in the demo app. Generally, apps that declare the legacy `android.media.browse.MediaBrowserService` should also declare `androidx.media3.session.MediaLibraryService` and the demo app should reflect this common case. Issue: androidx/media#672 PiperOrigin-RevId: 595320994
This commit is contained in:
parent
258ffa68b5
commit
b11c0c19b0
@ -59,7 +59,7 @@
|
|||||||
android:foregroundServiceType="mediaPlayback"
|
android:foregroundServiceType="mediaPlayback"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="androidx.media3.session.MediaSessionService"/>
|
<action android:name="androidx.media3.session.MediaLibraryService"/>
|
||||||
<action android:name="android.media.browse.MediaBrowserService"/>
|
<action android:name="android.media.browse.MediaBrowserService"/>
|
||||||
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/>
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user