Steps To Reproduce
This error to me happens if I've a track url on the player and then I delete the file on the server, the player try to use that url, which of course is now empty as it was deleted. However typescript say that the PlaybackError should provide an error object with code and message as string, instead they're both undefined. Idk if it is expected (the type is wrong), or if it's a bug.
PlayackService.ts
TrackPlayer.addEventListener(Event.PlaybackError, err => { console.log(err.code, err.message, 'on PlaybackError'); });
log: undefined undefined on PlaybackError
Steps To Reproduce This error to me happens if I've a track url on the player and then I delete the file on the server, the player try to use that url, which of course is now empty as it was deleted. However typescript say that the PlaybackError should provide an error object with code and message as string, instead they're both undefined. Idk if it is expected (the type is wrong), or if it's a bug.
Code To Reproduce I've explained it up here
Replicable on Example App? Not tested
Environment Info: System: OS: macOS 14.3 CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz Memory: 15.93 MB / 8.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 21.6.1 path: /usr/local/bin/node Yarn: version: 1.22.19 path: ~/.yarn/bin/yarn npm: version: 10.2.4 path: /usr/local/bin/npm Watchman: version: 2024.01.22.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.15.0 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:
watchOS 10.2 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: version: 15.1/15C65 path: /usr/bin/xcodebuild Languages: Java: version: 11.0.22 path: /usr/bin/javac Ruby: version: 2.7.6 path: /Users/simo97/.rbenv/shims/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.2 wanted: ^0.73.2 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false
"react-native-track-player": "^4.0.1", Real device? Or simulator? Both What OS are you running? ios
How I can Help I've not investigated the app as I'm not able to use Swift code, I hope someone will take a look at that