wolfplus 1 year ago
parent
commit
2edd4c5e7e
  1. 9
      local_plugins/music_service/android/src/main/AndroidManifest.xml

9
local_plugins/music_service/android/src/main/AndroidManifest.xml

@ -7,14 +7,13 @@
<application>
<service
android:name=".MusicService"
android:exported="true">
android:exported="true"
android:foregroundServiceType="mediaPlayback"
>
<!-- 让系统知道这是媒体浏览服务 -->
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
<!-- 让系统知道这里能处理媒体按键 -->
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>

Loading…
Cancel
Save