The error "Mixdown has no packages available" occurred because we were
calling jamClient.JamTrackGetMixdowns() which returns a different data
structure without the packages array. The packages are only available
in the mixdowns returned from the REST API endpoint /api/jamtracks/{id}.
Root cause:
- jamClient.JamTrackGetMixdowns() returns simplified mixdown metadata
- Full mixdown data with packages comes from REST API via getJamTrack()
- The jamTrack object passed to downloadJamTrack already has mixdowns
with their packages array
Changes to mediaSlice.js downloadJamTrack:
- Use jamTrack.mixdowns directly instead of calling jamClient API
- Add comment explaining the difference in data sources
- Improve error messages with mixdown names for debugging
Changes to JKSessionJamTrackPlayer.js:
- Use jamTrack.mixdowns directly in initialization
- Update comment to clarify data source
This ensures the pickMyPackage logic has access to the packages array
needed to select the correct package variant (ogg, jkz, sample rate).
Fixes "Mixdown has no packages available" error during JamTrack playback.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>