doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.31k stars 1.02k forks source link

TrackPlayer.reset() giving Error occurred: The operation couldn’t be completed. (OSStatus error -50.) in Xcode Terminal #2330

Closed MTPL0005-AbhishekDube closed 5 months ago

MTPL0005-AbhishekDube commented 5 months ago

Describe the Bug I'm developing a feature where I have a content mix of video and audio. when my content changes from audio to video I try to reset the track player to remove the player notification, but it gives the error on the Xcode console as Error occurred: The operation couldn’t be completed. (OSStatus error -50.). I have done the installation process again, but it is giving the same error.

Steps To Reproduce Giving Error for TrackPlayer.reset()

Code To Reproduce Please provide a simple code example that allows others to replicate the bug.

Replicable on Example App? I can't share the code everything is working except TrackPlayer.reset() method.

Environment Info: System: OS: macOS 14.5 CPU: (8) arm64 Apple M2 Memory: 97.31 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.6.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.8.1 - /opt/homebrew/bin/npm Watchman: 2023.09.04.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: Not Found IDEs: Android Studio: 2023.3 AI-233.14808.21.2331.11709847 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 20.0.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.14 => 0.71.14 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

react-native-track-player version : 4.1.1 & 4.1.0 Real device? Or simulator: both What OS are you running? : iOS