Questions tagged [react-native-track-player]

71 questions
5
votes
2 answers

react-native-track-player crashing due to exo player version conflict in track-player and react-native-video

So I am using react-native-video and react-native-track-player parallelly, Normally both are working fine, but to use some extra functionalities of video player like buffering I have to use Exo player , but using exo player manually is making…
4
votes
3 answers

Audio background mode not working with react-native-track-player

I'm currently use react-native-track-player version 1.1.8 to stream audio from Internet. It works fine (react-native version 0.61.4) I would like now to use it in background mode, to be able to continue to listen to radio if my app is in background…
Eric
  • 592
  • 10
  • 26
3
votes
1 answer

react-native-track-player: Foreground service doesn't stop and audio keeps playing after app kill on android

For a better explanation check this issue. The issue has been closed with this fix, but the fix creates another issue which is still open. react-native-track-player uses foreground service in android to display a notification on with buttons to…
3
votes
2 answers

How to customize React native track player notification bar

I am using react-native-track-player to create a music app. Can I customize the notification area, and lock screen player? What I need to do is changing the background color and add custom theming to the notification area and lock screen play…
Samantha H
  • 33
  • 1
  • 5
3
votes
0 answers

On react-native-track-player background mode not working on IOS version 13 & above

I am using react-native-track-player version 2.0.3 Issue : Sometimes when i minimize the app, the song is playing on background after completing one song next song is not playing automatically on physical device.Xcode background mode…
Jaya mani
  • 31
  • 2
3
votes
1 answer

React-native-track-player can not play local files which is fetched by rn-fetch-blob

After using rn-fetch-blob to get .mp3 file, i typed console.log(filePathIos) and got the path like this: "/var/mobile/Containers/Data/Application/80D7496B-862A-44D6-9D3A-F0EF31B565CF/Documents/xxx.mp3" My code for playing track: let filePathIos =…
3
votes
0 answers

Play .m4a by remote url in iOS with react-native-track-player

I'm trying to use react-native-track-player library in my project for both ios and android and I faced a problem. All my files(remote URLs) are .m4a and they're playing just fine on android but the library raises an error on ios: {“error”: “Cannot…
qwerty qwerty
  • 673
  • 5
  • 17
2
votes
0 answers

Can React Native Track Player be used alongside React Native Video for displaying music notifications and controls?

i am using react-native-music-control for displaying music notification but because of "no longer maintained" some functionality are not working like seek bar not working etc., if anyone have code sample or any example for displaying music…
2
votes
0 answers

Is it possible to use react-native-track-player together with react-native-video to show title and thumbnail on lockscreen?

We use react-native-video for a video application, the problem is when you lock screen during watching video, you get empty grey areas, we want to see video title and thumbnail there, I have tried using react-native-track-player for title and…
2
votes
1 answer

play one song at the time react native track player

I'm working on a music app using react native track player for playing a song, my current code works with multiple songs, and I would like to know how can we implement one song playing. for example, on a screen, we have a list of all the songs when…
2
votes
1 answer

React Native application start throwing errors after using react-native-track-player both build and start

React Native application build was working recently, But now one critical package that I'm using as a part of the essential feature is started throwing errors on IOS build. Following are the build error details, and after some search added a swift…
Jijo Alexander
  • 1,230
  • 8
  • 17
2
votes
2 answers

TypeError: null is not an object (evaluating 'TrackPlayer.RATING_HEART') && Module AppRegistry is not a registered callable module

For the past 1.5 days or so, I tried to get react-native-track-player working and I just can't make it happen. No matter what I try I always end up running into the same error block: ERROR TypeError: null is not an object (evaluating…
2
votes
1 answer

React Native Track Player - Seek to precise position doesn't work

I'm developing a music streaming app that uses React Native Track Player to handle music in app and in the background. I'm fetching music from a server through Socket.IO and I get all the song as expected. In this application, the admin can choose…
2
votes
0 answers

react-native-track-player Android Remote Control Options

When a react-native application using react-native-track-player runs on Android, the notification center (Notification Center and Control Center in Xiaomi devices on MIUI 12) becomes laggy. It appears to me that the player tries to open something in…
2
votes
3 answers

How to install react-native-track-player

I tried to install the react-native-track-player in a bare (just react-native init) App. After yarn add react-native-track-player yarn add react-native-swift cd ios pod instal I got the message: [!] CocoaPods could not find compatible versions for…
pim
  • 21
  • 1
  • 3
1
2 3 4 5