AIMP Forum
AIMP for Android => Вопросы / Questions => Topic started by: egeorgiev on November 03, 2020, 05:32:09
-
Здравствуйте.
Простите за плохой русский язык.
Раньше я использовал Google Play Music в машине (bluethoot). Теперь я использую aimp v3.01 build 981 (android). Отличный плеер, но плейлист не работает (list of songs is empty). В телефоне используется avrcp 1.4.
Есть ли способ просмотреть список песни с помощью aimp через bluethoot?
Спасибо.
-
Приветствую.
Попробуйте бета-версию плеера (v3.10): https://www.aimp.ru/?do=download&os=android
В ней это уже должно работать
-
Привет.
Лист нет. Версия 3.10 beta 4, build 1021.
Что делать? Какой-то debug снять?
Спасибо.
-
На телефоне какой Android? Если на него поставить Android Auto - в этом приложении лист от AIMP будет показываться?
-
Привет,
Andoird Auto недоступен в моей стране и поэтому не установлен на телефоне. В infotainment системе автомобиля он не активирован, так как лицензия оплачена. Тем не менее Google Play Music смог отправить список треков. Я думаю, может infotainment удалось просмотреть список через AVRCP?
В любом случае я установил Android Auto APK, но все равно без изменений.
Кстати протестовал много плееров и по настоящем ни один не поддерживают это через AVRCP 1.4, что кажется странным.
Я не вижу ничего в debug.log по этой теме, когда нажимаю кнопку List в информационно-развлекательной системе. Я попытаюсь собрать журнал HCI, чтобы увидеть что отправляет infotainment система, но это займет время.
Вопрос в том, поддерживает ли AIMP media browsing через AVRCP 1.4?
Спасибо.
-
Вопрос в том, поддерживает ли AIMP media browsing через AVRCP 1.4?
AIMP поддерживает Media Browser API и Media Session API. Ничего специального для блютуса я не делаю (я считаю, что за такие вещи должна отвечать ОС).
-
Привет,
Собрать журнал HCI.
Google Play Music
9832 2020-11-13 10:00:18.965814 AlpsElec_99:10:9d (VW BT 0610) SamsungE_65:21:b3 (Galaxy J5) AVRCP 29 Rcvd Browsing: Command - GetFolderItems - Scope: MediaPlayerList, StartItem: 0x0000, EndItem: 0x0000
0000 02 0b 20 18 00 14 00 49 00 00 00 00 11 0e 71 00 .. ....I......q.
0010 0a 00 00 00 00 00 00 00 00 00 00 c4 02 .............
9834 2020-11-13 10:00:18.968589 SamsungE_65:21:b3 (Galaxy J5) AlpsElec_99:10:9d (VW BT 0610) AVRCP 72 Sent Browsing: OK - GetFolderItems - UidCounter: 0x0000, NumberOfItems: 1
0000 02 0b 20 43 00 3f 00 4a 00 00 01 02 11 0e 71 00 .. C.?.J......q.
0010 35 04 00 00 00 01 01 00 2d 00 03 01 00 00 00 01 5.......-....... //0x1A = 03 = Player ID 3
0020 00 00 00 00 00 00 b7 01 0c 02 00 00 00 00 00 00 ................ //0x28 = 0c = .... 1... = Browsing: 0x1
0030 00 00 6a 00 11 47 6f 6f 67 6c 65 20 50 6c 61 79 ..j..Google Play
0040 20 4d 75 73 69 63 aa ca Music..
..........
9844 2020-11-13 10:00:19.105955 AlpsElec_99:10:9d (VW BT 0610) SamsungE_65:21:b3 (Galaxy J5) AVRCP 21 Rcvd Browsing: Command - SetBrowsedPlayer - Player ID: 3
0000 02 0b 20 10 00 0c 00 49 00 02 01 10 11 0e 70 00 .. ....I......p.
0010 02 00 03 1c 5c ....\
9846 2020-11-13 10:00:19.107594 SamsungE_65:21:b3 (Galaxy J5) AlpsElec_99:10:9d (VW BT 0610) AVRCP 29 Sent Browsing: OK - SetBrowsedPlayerCurrent Path: /
0000 02 0b 20 18 00 14 00 4a 00 02 02 12 11 0e 70 00 .. ....J......p.
0010 0a 04 00 00 00 00 00 04 00 6a 00 60 80 .........j.`.
..........
9988 2020-11-13 10:00:20.855880 AlpsElec_99:10:9d (VW BT 0610) SamsungE_65:21:b3 (Galaxy J5) AVRCP 29 Rcvd Browsing: Command - GetFolderItems[Malformed Packet]
0000 02 0b 20 18 00 14 00 49 00 04 02 20 11 0e 71 00 .. ....I... ..q.
0010 0a 01 00 00 00 00 00 00 00 63 ff 04 fe .........c...
9990 2020-11-13 10:00:20.859217 SamsungE_65:21:b3 (Galaxy J5) AlpsElec_99:10:9d (VW BT 0610) AVRCP 123 Sent Browsing: OK - GetFolderItems - UidCounter: 0x0000, NumberOfItems: 4
0000 02 0b 20 76 00 72 00 4a 00 04 03 22 11 0e 71 00 .. v.r.J..."..q.
0010 68 04 00 00 00 04 02 00 14 00 00 00 00 00 00 00 h...............
0020 01 02 00 00 6a 00 06 41 6c 62 75 6d 73 02 00 15 ....j..Albums...
0030 00 00 00 00 00 00 00 02 03 00 00 6a 00 07 41 72 ...........j..Ar
0040 74 69 73 74 73 02 00 17 00 00 00 00 00 00 00 03 tists...........
0050 05 00 00 6a 00 09 50 6c 61 79 6c 69 73 74 73 02 ...j..Playlists.
0060 00 17 00 00 00 00 00 00 00 04 01 00 00 6a 00 09 .............j..
0070 41 6c 6c 20 53 6f 6e 67 73 88 31 All Songs.1
и так далее...
AIMP
28560 2020-11-13 10:54:15.431223 AlpsElec_99:10:9d (VW BT 0610) SamsungE_65:21:b3 (Galaxy J5) AVRCP 29 Rcvd Browsing: Command - GetFolderItems - Scope: MediaPlayerList, StartItem: 0x0000, EndItem: 0x0000
0000 02 0b 20 18 00 14 00 4e 00 00 00 00 11 0e 71 00 .. ....N......q.
0010 0a 00 00 00 00 00 00 00 00 00 00 71 b5 ...........q.
28562 2020-11-13 10:54:15.432244 SamsungE_65:21:b3 (Galaxy J5) AlpsElec_99:10:9d (VW BT 0610) AVRCP 67 Sent Browsing: OK - GetFolderItems - UidCounter: 0x0000, NumberOfItems: 1
0000 02 0b 20 3e 00 3a 00 5a 00 00 01 02 11 0e 71 00 .. >.:.Z......q.
0010 30 04 00 00 00 01 01 00 28 00 0a 01 00 00 00 01 0.......(....... //0x1A = 0a = Player ID 10
0020 02 00 00 00 00 00 b7 01 04 00 00 00 00 00 00 00 ................ //0x28 = 04 = .... 0... = Browsing: 0x0
0030 00 00 6a 00 0c 4d 65 64 69 61 20 50 6c 61 79 65 ..j..Media Playe
0040 72 45 a4 rE.
Kажется плеер нет browsing capability.
Можна стоит добавить MediaBrowserService?
https://source.android.com/devices/automotive/ivi_connectivity
Audio/Video Remote Control Profile
The Bluetooth Audio/Video Remote Control Profile (AVRCP) allows the vehicle to control and browse media players on a connected remote device. Since the IVI plays the role of an AVRCP controller, any triggered controls that affect audio playback rely on an A2DP connection to the target device.
For a specific media player on an Android phone to be browsable by the IVI via AVRCP, the media application on the phone must provide a MediaBrowserService and allow com.android.bluetooth access to that service. Building a media browser service explains how to do this in detail.
https://developer.android.com/guide/topics/media-apps/audio-app/building-a-mediabrowserservice
Спасибо.
-
Говорю же это апи уже давно поддерживается, и Android Auto с ним работает. в v3.10 запретов / фильтрации на подключения к сервису так же нет.
-
Черт какой-то Google-ний...