I want remote control phone music playback from WearOS watch just for play/pause/next/previous as system app does.
I have google a lot, building a media browser client in WearOS app looks right to implement this.
val comp = ComponentName("com.android.bluetooth",
"com.android.bluetooth.avrcpcontroller.BluetoothMediaBrowserService")
mMediaBrowser = MediaBrowserCompat(context,comp,mConnectionCallbacks,null)
mMediaBrowser?.connect()
but connection always failed
Unable to start service Intent { act=android.media.browse.MediaBrowserService cmp=com.android.bluetooth/.a2dpsink.mbs.A2dpMediaBrowserService } U=0: not found
I also tried avrcpcontroller.BluetoothMediaBrowserService
Unable to start service Intent { act=android.media.browse.MediaBrowserService cmp=com.android.bluetooth/.avrcpcontroller.BluetoothMediaBrowserService } U=0: not found
It seems there is no way to connect the mediabrowser from WearOS watch.