Questions tagged [react-native-track-player]
71 questions
0
votes
0 answers
Uncaught error: Cannot read property 'RATING-HEART' of null
so I was just following the react-native-track-player installation on an Expo app but when I imported the Track Player with import TrackPlayer from "react-native-track-player", it returned this error
The error only appeared whenever I imported the…

Nguyên Nguyễn
- 21
- 3
0
votes
0 answers
react-native-track-player Clicking On The Notification Does Not Redirect To The App - Android
I have a player in my app. The sounds we play on this player are also displayed in the notification bar. When you click on this notification, it should redirect to the application. It plays a sound and redirects after clicking. But sometimes after…

yavuzceliker
- 31
- 2
0
votes
0 answers
React-Native-TrackPlayer does not update new song
I am creating a player app which has list of multiple tracks. I am showing multiple audio cards in a list and user can play any of those by pressing play button but when I click any of track it plays only first one and time and slider works for…

deepanshi gupta
- 121
- 9
0
votes
0 answers
Problem with building the test app with detox on android
I ran cd android ; ./gradlew assembleLocalDebug assembleAndroidTest -DtestBuildType=debug ; cd - and it failed because of Duplicate class androidx.appcompat.content.res.AppCompatResources found in modules appcompat-1.0.2-runtime…

Alireza Hadjar
- 450
- 4
- 10
0
votes
0 answers
Pitching (Higher/Lower) sound with react native track player
I'm trying to get the value of the Pitching sound (Higher/Lower). My goal is to make the sound higher or lower (pitch it). I didn't find anything useful on the internet. Can anyone point me in the right direction?

parveen kumar
- 1
- 1
0
votes
0 answers
I want to change the current playlist with new playlist which user choose it
I have many playlists, I want to change the current playlist with new playlist which user choose it. i tried using Trackplayer.reset() but the application stopped.
const setupPlayer = async () => {
TrackPlayer.setupPlayer({waitForBuffer:…

Hitul Nayakpara
- 13
- 2
0
votes
1 answer
React Native Track Player - Resetting Streamed Audio
I am developing an app for a radio station using react-native-track-player. I have this working fine. When I press Pause, the player pauses as expected, but when I press Play again the audio continues where it left off on the stream. I would like to…

Steve W
- 97
- 7
0
votes
1 answer
Error when using react-native-track-player with expo dev-client
I have an react-native expo managed (SDK 44) project and am attempting to add react-native-track-player.I am going through the installation steps and keep encountering the same error that is crashing the app:
TypeError: null is not an object…

igotbeatebydre
- 81
- 8
0
votes
2 answers
TrackPlayer.destroy is not a function
I got TrackPlayer.destroy is not a function. (In 'TrackPlayer.destroy()', 'TrackPlayer.destroy' is undefined error when I called TrackPlayer destroy method in my expo react native app
this is my code
the service.ts
import TrackPlayer, {Event} from…

Paulos Ab
- 319
- 4
- 16
0
votes
1 answer
How to use react native track player to stream live audio
Hello I have a streaming service, (it is an online radio) that I need to stream in my app, the url it is the following
https://cast.uncuartocomunicacion.com:8020/live
I have been using react native sound player to stream it but I had issues with…

Alexc957
- 61
- 7
0
votes
1 answer
Using react-native-track-player, audio sounds like under water when playing slow speed
I'm using react-native-track-player for my audio app. When I use TrackPlayer.setRate to set the rate to a slower speed (0.5), the audio sounds like it's coming from underwater. When I play the same audio file locally using the QuickTime Player, it…

Eric Cheon
- 33
- 1
- 6
0
votes
0 answers
Get duration with mp3 url in react native?
react-native-track-player doesn't return the duration of the music, so I need some other way to get it.
I tried to use react-native-get-mp3-duration, mp3-duration, but what I want is the duration of the online file, not the local file, so I am…

thisofox
- 13
- 3
0
votes
1 answer
Event 'PlaybackQueueEnded' is not fired in React Native Track Player
I am using react-native-track-player package to play music files in my React Native mobile application.
There due to some issue, I need to stop the track-player once the queue of audio tracks reaches the end. For that, I use the event…

Pawara Siriwardhane
- 1,873
- 10
- 26
- 38
0
votes
1 answer
Error thrown after ending the audio track / array of tracks in React Native Track Player
I'm using React Native Track Player in a React Native project and playing an array of music tracks.
After ending the audio tracks, I'm getting the following error in the emulator:
(This error is thrown not only when I send an array but also even…

Pawara Siriwardhane
- 1,873
- 10
- 26
- 38
0
votes
1 answer
react-native-track-player Play one song and stop / await user input implementation
I am trying to use react-native-track-player in my app. The functionality of my app requires that one audio track is played, and then it needs to await user input.
I have tried the following code however it leads to laggy and unpredictable…

psquizzle
- 175
- 3
- 15