We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useTrackPlayerEvents([Event.PlaybackActiveTrackChanged], async (event) => { switch (event.type) { case Event.PlaybackActiveTrackChanged: const playingTrack = await TrackPlayer.getTrack(event.nextTrack); setTrack(playingTrack); break; } });
Environment Info: System: OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa) CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Memory: 458.32 MB / 7.65 GB Shell: version: 5.0.17 path: /bin/bash Binaries: Node: version: 19.6.0 path: ~/.nvm/versions/node/v19.6.0/bin/node Yarn: Not Found npm: version: 9.7.2 path: ~/.nvm/versions/node/v19.6.0/bin/npm Watchman: Not Found SDKs: Android SDK: API Levels: - "33" - "34" Build Tools: - 33.0.1 - 34.0.0 - 35.0.0 System Images: - android-33 | Google APIs Intel x86_64 Atom Android NDK: Not Found IDEs: Android Studio: Not Found Languages: Java: version: 17.0.10 path: /usr/bin/javac Ruby: version: 2.7.0 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.5 wanted: 0.73.5 npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: false
"react-native-track-player": "^4.0.1",
The text was updated successfully, but these errors were encountered:
if u come across the docs ud notice, nextTrack indeed doesnt exist on Event.PlaybackActiveTrackChanged. https://rntp.dev/docs/api/events#playbackactivetrackchanged
Sorry, something went wrong.
Yes. what can be done to get next track ?
No branches or pull requests
useTrackPlayerEvents([Event.PlaybackActiveTrackChanged], async (event) => {
switch (event.type) {
case Event.PlaybackActiveTrackChanged:
const playingTrack = await TrackPlayer.getTrack(event.nextTrack);
setTrack(playingTrack);
break;
}
});
Environment Info:
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Memory: 458.32 MB / 7.65 GB
Shell:
version: 5.0.17
path: /bin/bash
Binaries:
Node:
version: 19.6.0
path: ~/.nvm/versions/node/v19.6.0/bin/node
Yarn: Not Found
npm:
version: 9.7.2
path: ~/.nvm/versions/node/v19.6.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "33"
- "34"
Build Tools:
- 33.0.1
- 34.0.0
- 35.0.0
System Images:
- android-33 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.7.0
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.5
wanted: 0.73.5
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: false
The text was updated successfully, but these errors were encountered: