@javascriptcommon/react-native-track-player 4.1.26 → 4.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -234,6 +234,10 @@ abstract class AudioPlayer internal constructor(
234
234
  .setContentType(options.audioContentType)
235
235
  .build()
236
236
  mPlayer.setAudioAttributes(audioAttributes, options.handleAudioFocus)
237
+ // Prevent ExoPlayer from auto-advancing to the next queue item when a track ends.
238
+ // All track transitions are handled by the JS side via playNext() -> load().
239
+ // This avoids ExoPlayer trying to load queue items that don't have a URL yet.
240
+ mPlayer.pauseAtEndOfMediaItems = true
237
241
  nameHolder[0] = mPlayer.toString()
238
242
  // https://github.com/androidx/media/issues/2319
239
243
  mPlayer.addAnalyticsListener(AudioFxInitListener())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@javascriptcommon/react-native-track-player",
3
- "version": "4.1.26",
3
+ "version": "4.1.27",
4
4
  "description": "A fully fledged audio module created for music apps",
5
5
  "main": "lib/src/index.js",
6
6
  "types": "lib/src/index.d.ts",