Open jerome-whatson opened 2 months ago
I am facing the same issue on web:
Importing the player before setupPlayer
method fixes the issue
const shaka = require("shaka-player/dist/shaka-player.ui");
@jspizziri perhaps you have an idea on this
@YajanaRao were you able to confirm that my fix here resolves your issue? https://github.com/doublesymmetry/react-native-track-player/pull/2299
I suspect that your issue is related, buts o far, I haven't gotten anyone (other than myself) to confirm that it results I've gotten. If you could send me a minimal repro of your issue I could do the confirmation for you.
@jerome-whatson same goes for you.
Describe the Bug Can't setup on web
Steps To Reproduce When i call
await TrackPlayer.setupPlayer();
Code To Reproduce
await TrackPlayer.setupPlayer();
on webReplicable on Example App? Can you replicate this bug in the React Native Track Player Example App?
Environment Info: System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 1.01 GB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.10.0 path: ~/.nvm/versions/node/v20.10.0/bin/node Yarn: version: 1.22.22 path: ~/.nvm/versions/node/v20.10.0/bin/yarn npm: version: 10.2.3 path: ~/.nvm/versions/node/v20.10.0/bin/npm Watchman: version: 2023.12.04.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /Users/jeromelebleu/.rvm/gems/ruby-3.2.2/bin/pod SDKs: iOS SDK: Platforms:
Paste the exact
react-native-track-player
version you are using : 4.1.1-nightly-9ff32f0f5a7b4f96900bf422810d587f5d2e3789Real device? Or simulator? Web
What OS are you running? MacOS 14