Giter Site home page Giter Site logo

lovegaoshi / react-native-track-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doublesymmetry/react-native-track-player

2.0 2.0 10.0 40.42 MB

A fully fledged audio module created for music apps. Provides audio playback, external media controls, chromecast support, background mode and more!

Home Page: https://react-native-track-player.js.org/

License: Apache License 2.0

JavaScript 1.62% Ruby 0.92% C++ 15.48% C 0.17% Objective-C 2.91% Java 2.29% Kotlin 26.89% TypeScript 31.19% Objective-C++ 0.35% Swift 17.84% Shell 0.22% HTML 0.13%

react-native-track-player's Introduction

Hi there ๐Ÿ‘‹

I'm a self-proclaimed react native expert on android, but I also build desktop app stuff. Check out my apps! Let's connect!

๐Ÿ”ญ Iโ€™m currently working on ...

  • AzusaPlayerMobile: The YTMusic of Bilibili in the style of AIMP with VTuber sprinkles. Works like wonders.
  • NoxPlayer: The YTMusic of Bilibili but in the form of a chrome extension. A forked project of azusa-player with feature enhancements.
  • Inaseg: A python script wrapping yt-dlp, ffmpeg, InaSpeechSegmenter, shazamapi and biliup-rs that achieved fully autonomous music segmentation, recognization and upload of any music streams. In particular, VTuber singer livestreams. Works like wonders, would highly recommend.

react-native-track-player's People

Contributors

0xlethe avatar alangumer avatar alpha0010 avatar anderslemke avatar austinried avatar biomancer avatar brad-sf avatar curiousdustin avatar dcvz avatar dependabot[bot] avatar fivecar avatar formula1 avatar guichaguri avatar jason-cooke avatar jspizziri avatar kaioduarte avatar kirillzyusko avatar lovegaoshi avatar mitchdowney avatar moduval avatar mpivchev avatar nagyszili avatar puckey avatar rapsssito avatar rkbhochalya avatar rtmalone avatar spice-z avatar sreten-bild avatar thessler27 avatar timmywil avatar

Stargazers

 avatar  avatar

react-native-track-player's Issues

[Android Auto] Event.RemoteBrowse behaves weired

Screencast_TrackPlayer_AndroidAuto_RemoteBrowse.webm

Describe the Bug
The RemoteBrowse event doesn't fire for the first two elements (tabs in the example project, but also applies to list items) after an audio has played.

Steps To Reproduce

  1. Open the example Project on Android Auto.
  2. Start an audio
  3. Switch between tabs. The first two don't trigger Event.RemoteBrowse

Replicable on Example App?
Yes

[bug] MediaSession gets created on enabling bluetooth

this happens to my pixel 7 + android 14, weirdly not to be S21 + android 13 yet. ccing @schoetty
on enalbing bluetooth, BrrowsedPlayerWrapper calls every media browser like so?

2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.google.android.apps.youtube.music
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.google.android.bluetooth
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.google.android.googlequicksearchbox
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.google.android.googlequicksearchbox
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.google.android.youtube
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser app.rvx.android.youtube
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.aimp.player
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.noxplay.noxplayer
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.podverse
2023-10-23 06:42:44.995 26069-26069 BrowsedPlayerWrapper    pid-26069                            I  Wrapping Media Browser com.vanced.android.apps.youtube.music
2023-10-23 06:42:45.065 26069-26069 BluetoothMcpService     pid-26069                            D  create()
2023-10-23 06:42:45.067 26069-26069 BluetoothMcpService     pid-26069                            D  start()
2023-10-23 06:42:45.067 26069-26069 MediaControlProfile     pid-26069                            V  Creating Generic Media Control Service
2023-10-23 06:42:45.067 26069-26069 MediaPlayerList         pid-26069                            V  Creating MediaPlayerList
2023-10-23 06:42:45.070  1668-6243  MediaSessionService     system_server                        D  The MediaKeyEventSessionChangedListener (android.os.BinderProxy@bf75b70) is added by com.google.android.bluetooth
2023-10-23 06:42:45.082 26069-26138 ActivityThread          pid-26069                            D  Loading provider com.android.bluetooth.opp: com.android.bluetooth.opp.BluetoothOppProvider
2023-10-23 06:42:45.083 26069-26069 BtOppService            pid-26069                            D  setBluetoothOppService(): set to: com.android.bluetooth.opp.BluetoothOppService@d22708f
2023-10-23 06:42:45.083 26069-26069 ActivityAt...ionService pid-26069                            D  notifyActivityAttributionInfo UID=1002 packageName=com.google.android.bluetooth deviceAddress=no_active_device_address
2023-10-23 06:42:45.083 26069-26069 bt_btif                 pid-26069                            I  packages/modules/Bluetooth/system/btif/src/bluetooth.cc:829 get_profile_interface: get_profile_interface: id = activity_attribution
2023-10-23 06:42:45.085 26069-26137 ObexServerSockets       pid-26069                            D  create(rfcomm = -2, l2capPsm = -2)
2023-10-23 06:42:45.086 26069-26069 BluetoothPanServiceJni  pid-26069                            D  initializeNative(L113): pan
2023-10-23 06:42:45.086 26069-26069 bt_btif                 pid-26069                            I  packages/modules/Bluetooth/system/btif/src/bluetooth.cc:829 get_profile_interface: get_profile_interface: id = pan
2023-10-23 06:42:45.086 26069-26098 bt_l2cap                pid-26069                            I  packages/modules/Bluetooth/system/stack/l2cap/l2c_api.cc:172 L2CA_Register: L2CAP Registered service classic PSM: 0x000f
2023-10-23 06:42:45.086 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x1116 into extended inquiry response
2023-10-23 06:42:45.086 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.086 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x1115 into extended inquiry response
2023-10-23 06:42:45.087 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.087 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x1116 into extended inquiry response
2023-10-23 06:42:45.087 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.087 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x1115 into extended inquiry response
2023-10-23 06:42:45.087 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.087 26069-26109 BluetoothPanServiceJni  pid-26069                            D  control_state_callback(L60): state:0, local_role:3, ifname:bt-pan
2023-10-23 06:42:45.088 26069-26139 BtOppService            pid-26069                            D  insertShare parsed URI: content://media/external/downloads/1000000575
2023-10-23 06:42:45.088 26069-26069 TetheringManager        pid-26069                            I  registerTetheringEventCallback:com.google.android.bluetooth
2023-10-23 06:42:45.088 26069-26069 TetheringManager        pid-26069                            I  registerTetheringEventCallback caller:com.google.android.bluetooth
2023-10-23 06:42:45.089 26069-26137 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.089 26069-26137 bt_btif_sock_rfcomm     pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_rfc.cc:320 btsock_rfc_listen: Adding listening socket service_name: (null) - channel: -2
2023-10-23 06:42:45.089 26069-26098 bt_stack                pid-26069                            I  [INFO:port_api.cc(220)] RFCOMM_CreateConnectionWithSecurity: bd_addr=ff:ff:ff:ff:ff:ff, scn=4, is_server=1, mtu=990, uuid=000000, dlci=8, signal_state=0x0b, p_port=0x6dd31a2a50
2023-10-23 06:42:45.089 26069-26098 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.092 26069-26137 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.092 26069-26137 bluetooth               pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:332 btsock_l2cap_alloc_l: Allocated l2cap socket structure socket_id:1
2023-10-23 06:42:45.092 26069-26098 bt_l2cap                pid-26069                            I  packages/modules/Bluetooth/system/stack/l2cap/l2c_api.cc:172 L2CA_Register: L2CAP Registered service classic PSM: 0x1001
2023-10-23 06:42:45.092 26069-26098 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.092 26069-26098 bluetooth               pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:357 send_app_psm_or_chan_l: Sending l2cap socket socket_id:1 channel:4097
2023-10-23 06:42:45.092 26069-26137 BluetoothAdapter        pid-26069                            D  listenUsingL2capOn: set assigned channel to 4097
2023-10-23 06:42:45.092 26069-26137 ObexServerSockets       pid-26069                            D  Succeed to create listening sockets 
2023-10-23 06:42:45.092 26069-26137 ObexServerSockets0      pid-26069                            D  startAccept()
2023-10-23 06:42:45.093 26069-26137 BluetoothSdpJni         pid-26069                            D  sdpCreateMapMasRecordNative
2023-10-23 06:42:45.093 26069-26140 ObexServerSockets0      pid-26069                            D  Accepting socket connection...
2023-10-23 06:42:45.093 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x1132 into extended inquiry response
2023-10-23 06:42:45.093 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.093 26069-26140 BluetoothSocket         pid-26069                            D  accept(), timeout (ms):-1
2023-10-23 06:42:45.093 26069-26098 bt_btif_storage         pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_storage.cc:653 btif_storage_get_adapter_property: btif_storage_get_adapter_property service_mask:0x62100048
2023-10-23 06:42:45.093 26069-26141 ObexServerSockets0      pid-26069                            D  Accepting socket connection...
2023-10-23 06:42:45.093 26069-26141 BluetoothSocket         pid-26069                            D  accept(), timeout (ms):-1
2023-10-23 06:42:45.093 26069-26137 BluetoothSdpJni         pid-26069                            D  SDP Create record success - handle: 0
2023-10-23 06:42:45.094 26069-26069 BluetoothPbapService    pid-26069                            I  setCurrentUser(0)
2023-10-23 06:42:45.094 26069-26069 BluetoothPbapService    pid-26069                            I  setUserUnlocked(0)
2023-10-23 06:42:45.094 26069-26069 BluetoothPbapService    pid-26069                            I  setUserUnlocked(0)
2023-10-23 06:42:45.100 26069-26069 BluetoothPbapService    pid-26069                            D  setBluetoothPbapService(): set to: com.android.bluetooth.pbap.BluetoothPbapService@1488411
2023-10-23 06:42:45.100 26069-26069 bt_btif                 pid-26069                            W  packages/modules/Bluetooth/system/btif/src/bluetooth.cc:824 pbap_pse_dynamic_version_upgrade_is_enabled: PBAP PSE dynamic version upgrade is not enabled
2023-10-23 06:42:45.100 26069-26069 BluetoothPbapService    pid-26069                            D  sIsPseDynamicVersionUpgradeEnabled: false
2023-10-23 06:42:45.102 26069-26069 SapService              pid-26069                            V  SapBinder()
2023-10-23 06:42:45.102 26069-26142 ObexServerSockets       pid-26069                            D  create(rfcomm = -2, l2capPsm = -2)
2023-10-23 06:42:45.104 26069-26069 SapService              pid-26069                            V  start()
2023-10-23 06:42:45.105 26069-26142 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.105 26069-26142 bt_btif_sock_rfcomm     pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_rfc.cc:320 btsock_rfc_listen: Adding listening socket service_name: (null) - channel: -2
2023-10-23 06:42:45.105 26069-26098 bt_stack                pid-26069                            I  [INFO:port_api.cc(220)] RFCOMM_CreateConnectionWithSecurity: bd_addr=ff:ff:ff:ff:ff:ff, scn=5, is_server=1, mtu=990, uuid=000000, dlci=10, signal_state=0x0b, p_port=0x6dd31a2b08
2023-10-23 06:42:45.105 26069-26098 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.106 26069-26142 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.106 26069-26142 bluetooth               pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:332 btsock_l2cap_alloc_l: Allocated l2cap socket structure socket_id:2
2023-10-23 06:42:45.106 26069-26098 bt_l2cap                pid-26069                            I  packages/modules/Bluetooth/system/stack/l2cap/l2c_api.cc:172 L2CA_Register: L2CAP Registered service classic PSM: 0x1003
2023-10-23 06:42:45.106 26069-26098 bt_btif_sock            pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock.cc:161 btif_sock_connection_logger: address=00:00:00:00:00:00, role=1, state=1
2023-10-23 06:42:45.106 26069-26098 bluetooth               pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:357 send_app_psm_or_chan_l: Sending l2cap socket socket_id:2 channel:4099
2023-10-23 06:42:45.106  1668-6118  ActivityManager         system_server                        D  sync unfroze 4292 android.process.acore for 7
2023-10-23 06:42:45.106 26069-26142 BluetoothAdapter        pid-26069                            D  listenUsingL2capOn: set assigned channel to 4099
2023-10-23 06:42:45.106 26069-26142 ObexServerSockets       pid-26069                            D  Succeed to create listening sockets 
2023-10-23 06:42:45.106 26069-26142 ObexServerSockets1      pid-26069                            D  startAccept()
2023-10-23 06:42:45.106 26069-26142 BluetoothSdpJni         pid-26069                            D  sdpCreatePbapPseRecordNative
2023-10-23 06:42:45.106 26069-26142 BluetoothSdpJni         pid-26069                            D  SDP Create record success - handle: 1
2023-10-23 06:42:45.106 26069-26142 BluetoothPbapService    pid-26069                            D  created Sdp record, mSdpHandle=1
2023-10-23 06:42:45.106 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3454 bta_dm_eir_update_uuid: EIR Adding UUID=0x112F into extended inquiry response
2023-10-23 06:42:45.106 26069-26098 bt_bta_dm               pid-26069                            I  packages/modules/Bluetooth/system/bta/dm/bta_dm_act.cc:3153 bta_dm_set_eir: Generating extended inquiry response packet EIR
2023-10-23 06:42:45.106 26069-26146 ObexServerSockets1      pid-26069                            D  Accepting socket connection...
2023-10-23 06:42:45.106 26069-26146 BluetoothSocket         pid-26069                            D  accept(), timeout (ms):-1
2023-10-23 06:42:45.107 26069-26098 bt_btif_storage         pid-26069                            I  packages/modules/Bluetooth/system/btif/src/btif_storage.cc:653 btif_storage_get_adapter_property: btif_storage_get_adapter_property service_mask:0x62500048
2023-10-23 06:42:45.107 26069-26144 ObexServerSockets1      pid-26069                            D  Accepting socket connection...
2023-10-23 06:42:45.107 26069-26144 BluetoothSocket         pid-26069                            D  accept(), timeout (ms):-1
2023-10-23 06:42:45.109  4292-4292  ContactsDatabaseHelper  android.process.acore                I  updateUseStrictPhoneNumberComparison: US
2023-10-23 06:42:45.111 26069-26069 bt_stack                pid-26069                            I  [INFO:com_android_bluetooth_vc.cpp(223)] classInitNative: succeeds
2023-10-23 06:42:45.113 26069-26069 bt_btif                 pid-26069                            I  packages/modules/Bluetooth/system/btif/src/bluetooth.cc:829 get_profile_interface: get_profile_interface: id = volume_control
2023-10-23 06:42:45.113 26069-26098 bluetooth               pid-26069                            I  packages/modules/Bluetooth/system/stack/gatt/gatt_api.cc:1257 GATT_Register: Allocated name:GattClient uuid:c1e917ce-06d0-44a8-9e2b-e71d5a3ce802 gatt_if:10 eatt_support:1
2023-10-23 06:42:45.113 26069-26069 AvrcpVolumeManager      pid-26069                            D  onAudioDevicesAdded: Not expecting device changed
2023-10-23 06:42:45.116  1668-6118  ActivityManager         system_server                        D  sync unfroze 4318 com.google.android.apps.youtube.music for 6
2023-10-23 06:42:45.117  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 261072174; UID 1002; state: ENABLED
2023-10-23 06:42:45.124  1229-4071  libexynosv4l2           [email protected]  E  failed to ioctl: VIDIOC_QBUF (22 - Invalid argument)
2023-10-23 06:42:45.124  1229-4071  ExynosVideoDecoder      [email protected]  E  MFC_Decoder_Enqueue_Inbuf: Failed to enqueue input buffer
2023-10-23 06:42:45.124  1229-4071  ExynosVide...ec-H264Dec [email protected]  E  [srcEnqueue] inbuf : ExtensionEnqueue() is failed / fd:22, ptr:0xb400006f6a3673c0, size:58321
2023-10-23 06:42:45.124  1229-4071  ExynosVide...ec-H264Dec [email protected]  E  [doInputEnqueue] srcEnqueue() is failed
2023-10-23 06:42:45.124  1229-4055  ExynosC2H2...cComponent [email protected]  W  [onUpdateC2Work] input is corrupted
2023-10-23 06:42:45.137  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135634846; UID 10190; state: DISABLED
2023-10-23 06:42:45.137  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 177438394; UID 10190; state: DISABLED
2023-10-23 06:42:45.137  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135772972; UID 10190; state: DISABLED
2023-10-23 06:42:45.137  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135754954; UID 10190; state: ENABLED
2023-10-23 06:42:45.138  1668-1949  Compatibil...geReporter system_server                        D  Compat change id reported: 143937733; UID 10190; state: ENABLED
2023-10-23 06:42:45.139  3797-3797  fbvx                    com....android.googlequicksearchbox  I  Creating Amp configuration from performer module
2023-10-23 06:42:45.141  1668-6118  ActivityManager         system_server                        D  sync unfroze 4413 app.rvx.android.youtube for 6
2023-10-23 06:42:45.146  3797-3797  evva                    com....android.googlequicksearchbox  I  (REDACTED) Media session with identifier: %s, MediaSession: %s
2023-10-23 06:42:45.146  3797-3797  fbsi                    com....android.googlequicksearchbox  I  onCreate()
2023-10-23 06:42:45.146  3797-3797  fbsi                    com....android.googlequicksearchbox  I  News media session token retrieved
2023-10-23 06:42:45.151  1181-1181  Zygote                  pid-1181                             D  Forked child process 26150
2023-10-23 06:42:45.151  1668-3638  ActivityManager         system_server                        D  sync unfroze 4431 com.aimp.player for 6
2023-10-23 06:42:45.153  1668-1949  ActivityManager         system_server                        I  Start proc 26150:com.google.android.youtube/u0a190 for service {com.google.android.youtube/com.google.android.apps.youtube.app.extensions.mediabrowser.impl.MainAppMediaBrowserService}
2023-10-23 06:42:45.156  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135634846; UID 10294; state: DISABLED
2023-10-23 06:42:45.156  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 177438394; UID 10294; state: DISABLED
2023-10-23 06:42:45.156  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135772972; UID 10294; state: DISABLED
2023-10-23 06:42:45.157  1668-6118  Compatibil...geReporter system_server                        D  Compat change id reported: 135754954; UID 10294; state: ENABLED
2023-10-23 06:42:45.157  1668-1949  Compatibil...geReporter system_server                        D  Compat change id reported: 143937733; UID 10294; state: ENABLED
2023-10-23 06:42:45.158 26150-26150 android.youtube         pid-26150                            I  Using CollectorTypeCC GC.
2023-10-23 06:42:45.159  1668-3864  MediaSessionStack       system_server                        I  addSession to bottom of stack | record: com.aimp.player/AIMP (userId=0)
2023-10-23 06:42:45.161 26150-26150 android.youtube         pid-26150                            E  Not starting debugger since process cannot load the jdwp agent.
2023-10-23 06:42:45.163  1668-6243  Compatibil...geReporter system_server                        D  Compat change id reported: 135634846; UID 10297; state: DISABLED
2023-10-23 06:42:45.163  1668-6243  Compatibil...geReporter system_server                        D  Compat change id reported: 177438394; UID 10297; state: DISABLED
2023-10-23 06:42:45.163  1668-6243  Compatibil...geReporter system_server                        D  Compat change id reported: 135772972; UID 10297; state: DISABLED
2023-10-23 06:42:45.163  1668-6243  Compatibil...geReporter system_server                        D  Compat change id reported: 135754954; UID 10297; state: ENABLED
2023-10-23 06:42:45.168  1668-3864  ActivityManager         system_server                        D  sync unfroze 4493 com.vanced.android.apps.youtube.music for 6
2023-10-23 06:42:45.171  1181-1181  Zygote                  pid-1181                             D  Forked child process 26163
2023-10-23 06:42:45.171  1668-1949  ActivityManager         system_server                        I  Start proc 26163:com.noxplay.noxplayer/u0a294 for service {com.noxplay.noxplayer/com.doublesymmetry.trackplayer.service.MusicService}
2023-10-23 06:42:45.171  1668-1949  Compatibil...geReporter system_server                        D  Compat change id reported: 143937733; UID 10297; state: ENABLED
2023-10-23 06:42:45.171 26069-26069 HeadsetPhoneState       pid-26069                            D  sendDeviceStateChanged. mService=0 mSignal=0 mRoam=0 mBatteryCharge=5

we need to somehow detect BrowsedPlayerWrapper in onCreate/onStartCommand (onStartCommand doesnt catch anything though?) and catch it in an if to stop activity wake being called. too bad RN has to deal with this:(

RemotePlayId does not get fired on React native side

Describe the Bug
I am trying to click on a browsable item on the list and after that it is stuck with "getting your selection" and nothing plays.

Steps To Reproduce
I set browsable podcasts on tab 1 and then click on an album which loads episodes for that. After I click on an episode which is a playable item it is supposed to call the below event, but it does not fire this event. I checked the Kotlin code logs and it tries to emit the event but it seems it does not reach at react native layer.

TrackPlayer.addEventListener(Event.RemotePlayId, async (event) => {
console.log('Event.RemotePlayId', event);
});

Code To Reproduce
Please provide a simple code example that allows others to replicate the bug.

Replicable on Example App?
There is no browsable items list in example app.

Environment Info:
Desktop head unit simulator with Android real device

How I can Help
Could you please debug this and help.

[feat] Android Auto

=======

the app did not appear in the auto screen or lens picker when we attempted to test functionality. (???)
for example, your app does not contain an intent filter for action 'android.media.action.MEDIA_PLAY_FROM_SERACH'.

https://stackoverflow.com/questions/53883825/cant-get-voice-commands-on-android-auto-media-app-work


   @Override
    public void onCreate() {
        super.onCreate();
        audioManager = (AudioManager) getApplicationContext().getSystemService(Context.AUDIO_SERVICE);
        mSession = new MediaSessionCompat(this, "RService");
        mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS
                | MediaSessionCompat.FLAG_HANDLES_QUEUE_COMMANDS);
        mSession.setCallback(mCallback);
        mSessionConnector = new MediaSessionConnector(mSession);
        setSessionToken(mSession.getSessionToken());
        setMediaBrowser();
        initializeReceiver();
        C_F_App.createNotificationChannelPlayer(getApplicationContext());
        rNController = new RadioNotificationController(this, mSession, getApplicationContext());
    }

final MediaSessionCompat.Callback mCallback =
            new MediaSessionCompat.Callback() {
                @Override
                public void onPlayFromMediaId(String mediaId, Bundle extras) {
                    playForAuto(mediaId);
                }

                @Override
                public void onPlayFromSearch(String query, Bundle extras) {
                    super.onPlayFromSearch(query, extras);
                    Log.d("Test", "Test");
                }

                @Override
                public void onStop() {
                    playPause();
                }

                @Override
                public void onPlay() {
                    playPause();
                }

                @Override
                public void onPause() {
                    playPause();
                }
            };

public void setMediaBrowser() {
    mediaBrowser = new MediaBrowserCompat(getApplicationContext(),
            new ComponentName(getApplicationContext(), this.getClass()),
            new MediaBrowserCompat.ConnectionCallback() {
                @Override
                public void onConnected() {
                    super.onConnected();
                }

                @Override
                public void onConnectionSuspended() {
                    super.onConnectionSuspended();
                }

                @Override
                public void onConnectionFailed() {
                    super.onConnectionFailed();
                }
            }, null);

    mediaBrowser.connect();
}

@Override
public long getSupportedPrepareActions() {
    return PlaybackStateCompat.ACTION_PREPARE_FROM_MEDIA_ID |
            PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID |
            PlaybackStateCompat.ACTION_PREPARE_FROM_SEARCH |
            PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH;
}

=======

onLoadChilren: try with

        val mediaItems = listOf<MediaBrowserCompat.MediaItem>(MediaItem(
            MediaDescriptionCompat.Builder().setMediaId("myMediaId").setTitle("MyMedia").setSubtitle("MyMediaSubTitle").build(), MediaItem.FLAG_PLAYABLE
        ))

the mediaID is handled by onPlayFromMediaId see above. For AzusaPlayerMobile maybe set this to playlist-id-cid?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.