2
  1. Check Network Connection in the emulator by checking the browser for random stuff.
  2. Check Permissions for android and included in AndroidManifest.xml file.
  3. checked link to my mp3 player.It is https.
  4. Also checked in the actual device. 5.Problem occurs only on Android.IOS device works fine.

using react native 0.72 and react native track player version ^4.0.1

Event.PlaybackState {"state": "stopped"}
 LOG  Event.PlaybackState {"state": "stopped"}
 LOG  Event.PlaybackPlayWhenReadyChanged {"playWhenReady": false}
 LOG  Event.PlaybackPlayWhenReadyChanged {"playWhenReady": false}
 LOG  Event.PlaybackActiveTrackChanged {"index": 0, "lastIndex": 0, "lastPosition": 0, "lastTrack": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"}, "track": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"}}
 LOG  Event.PlaybackActiveTrackChanged {"index": 0, "lastIndex": 0, "lastPosition": 0, "lastTrack": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"},, "track": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"},}
 LOG  Event.PlaybackActiveTrackChanged {"index": 0, "lastIndex": 0, "lastPosition": 0, "lastTrack": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"},, "track": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"},}
 LOG  Event.PlaybackActiveTrackChanged {"index": 0, "lastIndex": 0, "lastPosition": 0, "lastTrack": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"}, "track": {"artist": "artist", "artwork": "local image", "duration": "217574", "id": "CD-NEW13-6", "title": "title", "url": "https link to the mp3 player"},}
 LOG  Event.PlaybackState {"state": "loading"}
 LOG  Event.PlaybackState {"state": "loading"}
 LOG  Event.PlaybackPlayWhenReadyChanged {"playWhenReady": true}
 LOG  Event.PlaybackPlayWhenReadyChanged {"playWhenReady": true}
 LOG  Event.PlaybackState {"state": "buffering"}
 LOG  Event.PlaybackState {"state": "buffering"}
 LOG  Event.PlaybackState {"error": {"code": "android-io-network-connection-failed", "message": "Source error"}, "state": "error"}
1
  • Hey, did you figure out how to get this to work? I'm running into this issue now as well. Only for Android as well... Unlike this issue, I'm experiencing the problem when initially trying to play the track when the app is in the foreground. Commented Sep 9, 2024 at 5:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.