react-native-nitro-player 1.2.1 → 1.2.2

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.
@@ -107,7 +107,7 @@ object MediaSessionCallbackFactory {
107
107
  if (voiceMatch != null) {
108
108
  val (playlistId, items, trackIndex) = voiceMatch
109
109
  service.trackPlayerCore?.let { core ->
110
- scope.launch { core.loadPlaylist(playlistId) }
110
+ scope.launch { core.loadPlaylist(playlistId, trackIndex) }
111
111
  }
112
112
  return Futures.immediateFuture(
113
113
  MediaSession.MediaItemsWithStartPosition(items, trackIndex, startPositionMs),
@@ -130,7 +130,7 @@ object MediaSessionCallbackFactory {
130
130
  val trackIndex = playlist.tracks.indexOfFirst { it.id == trackId }
131
131
  if (trackIndex >= 0) {
132
132
  service.trackPlayerCore?.let { core ->
133
- scope.launch { core.loadPlaylist(playlistId) }
133
+ scope.launch { core.loadPlaylist(playlistId, trackIndex) }
134
134
  }
135
135
  val playlistMediaItems =
136
136
  playlist.tracks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-player",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A powerful audio player library for React Native with playlist management, playback controls, and support for Android Auto and CarPlay",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",