react-native-nitro-player 0.3.0-alpha.16 → 0.3.0-alpha.17
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.
|
@@ -12,6 +12,7 @@ import org.json.JSONArray
|
|
|
12
12
|
import org.json.JSONObject
|
|
13
13
|
import java.util.UUID
|
|
14
14
|
import java.util.concurrent.CopyOnWriteArrayList
|
|
15
|
+
|
|
15
16
|
import com.margelo.nitro.core.AnyMap
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -384,7 +385,7 @@ class PlaylistManager private constructor(
|
|
|
384
385
|
track.artwork?.let { put("artwork", it) }
|
|
385
386
|
// Serialize extraPayload to JSON for persistence
|
|
386
387
|
track.extraPayload?.let { payload ->
|
|
387
|
-
val extraPayloadMap = payload.
|
|
388
|
+
val extraPayloadMap = payload.toHashMap()
|
|
388
389
|
val extraPayloadJson = JSONObject(extraPayloadMap)
|
|
389
390
|
put("extraPayload", extraPayloadJson)
|
|
390
391
|
}
|