75 questions
0
votes
0
answers
228
views
react-native-track-player on Android: Compact player not appearing
Been through about a million tutorials, StackOverflow questions etc already, but for the life of me I can't find what I'm doing wrong.
I'm implementing a react-native app with Expo and react-native-...
0
votes
0
answers
44
views
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException
i am using react-native-track-player version 3.2.0 in my project and i am getting the below error in my crashlytics
Fatal Exception: android.app.RemoteServiceException$...
0
votes
0
answers
67
views
React Active Track Player - Is PlaybackActiveTrackChanged buggy? lastIndex does not seem to work
I noticed that PlaybackActiveTrackChanged event of RNTP 4.1.1 provides in lastIndex (same for lastTrack), the index of the track that is before the new active track in the queue but not as it is ...
3
votes
4
answers
3k
views
React Native Track Player-Error: Unable to parse @ReactMethod annotation from native module method: TrackPlayerModule.add().(kotlinx.coroutines.Job)
Problem Statement:
I am trying to develop a React Native app that can play music. I ejected the project from Expo and implemented React Native Track Player. However, when I try running the app on an ...
3
votes
2
answers
914
views
React Native Track Player ios Troubleshooting building 100%
I'm developing a React Native app using react-native-track-player for audio playback. The app works perfectly fine on Android, but I'm facing issues on iOS. Specifically, when building and running the ...
1
vote
0
answers
666
views
cannot read property of "'CABAILITY_PLAY'" of null React Native
I am Integrated the Audio functionality with in the App using react-native-track-player the issue I was facing that App is not running When i Add this line in my (index.js) TrackPlayer....
1
vote
0
answers
77
views
Can't add more than 1 tract in react native track player
I am developing a music player app with React Native Expo & to play music using the library react-native-track-player
I am having issues with adding more than 1 track
if I add just a single track ...
1
vote
0
answers
169
views
Increase volume from Google's Text-to-Speech (WAV Audio processing, React Native)
I am using Google's Text to Speech API on my backend. I want to play the resulting audio in my Expo application, but I have a low volume problem on physical devices (but not on simulators).
Right now, ...
0
votes
1
answer
233
views
This comparison appears to be unintentional because the types 'PlaybackState | { state: undefined; }' and 'State' have no overlap
import React, { useState } from 'react'
import { View, StyleSheet, Pressable} from 'react-native'
import TrackPlayer, { State , usePlaybackState } from 'react-native-track-player';
import Icon from '...
2
votes
0
answers
320
views
react-native-track-player throws {"error": {"code": "android-io-network-connection-failed", "message": "Source error"}, "state": "error"}
Check Network Connection in the emulator by checking the browser for random stuff.
Check Permissions for android and included in AndroidManifest.xml file.
checked link to my mp3 player.It is https.
...
1
vote
1
answer
1k
views
React Native Track Player - Missing Native Module on IOS
The native module which is accessed inside trackPlayer.ts in the RNTP package seems to be undefined, which causes the error: new NativeEventEmitter() requires a non-null argument.
const { ...
1
vote
2
answers
6k
views
How to resolve Invariant Violation: `new NativeEventEmitter()` requires a non-null argument. when using react-native-track player with expo workflow?
I am trying to build a track player in react native. I am using an expo managed workflow. I installed react-native-track player dependency using npx expo install react-native-track-player.
Further, I ...
1
vote
0
answers
370
views
React native trackplayer not on background
I want react-native-trackplayer NOT to work in background mode. So when i close the app i want react-native-trackplayer to STOP.
I have already configured this for android
android: {
...
1
vote
1
answer
1k
views
react-native-track-player notification view disabling or removal
await TrackPlayer.updateOptions({
android: {
appKilledPlaybackBehavior:
AppKilledPlaybackBehavior.StopPlaybackAndRemoveNotification,
},
// This flag is now deprecated. Please use the above to ...
0
votes
1
answer
111
views
The Audio playback notification is still visible when the playback stops
I'm using [email protected]. When I closed the application, The audio stopped but the playback notification was still visible.
Here is my track player setup code in index.js file.
const ...
0
votes
1
answer
284
views
TrackPlayer.registerPlaybackService without file index.js
enter image description here
My react native project does not have an index.js file to be able to register registerPlaybackService, I only have an App.js file
I searched a lot and found a way to add ...
1
vote
0
answers
993
views
react-native-track-player TrackPlayer.play() doesn't throw an error if the audio url doesn't work
EDIT: I'm using react-native-track-player": "^3.2.0"
I have an issue with "react-native-track-player".
The audio files in my app are played via this function:
async function ...
0
votes
2
answers
3k
views
when I use react-native-track-player, can't play audio
import React, {useEffect, useState} from 'react';
import TrackPlayer, {usePlaybackState} from 'react-native-track-player';
import IconButton from './IconButton';
function Player({url}) {
const [...
2
votes
0
answers
189
views
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 ...
0
votes
1
answer
411
views
Obtaining music information such as (title, album name, artist name, etc.) in React Native
I am making a music player in React Native using the React-Native-Track-Player library that plays music from the phone's internal storage, so far everything is going well, but when I want music ...
1
vote
1
answer
341
views
Trackplayer reset functionality bug
I'm using track player in react-native for ios. I also added background mode functionality from xcode now play functionality works properly and the remote also works but when I pause the music and ...
4
votes
4
answers
5k
views
react-native-track-player error the player has already been initialized via setupPlayer
I have a react-navigation modal with react-native-track-player, closing one and opening it back throws the error The player has already been initialized via setupPlayer. How to make sure it runs only ...
0
votes
1
answer
564
views
TrackPlayer Play function is not working for website url instead of local path
I am using React Native Track Player version 3.2. Everything is working properly in Android when I am using local media path instead of the website media url. I am also not getting any error in the ...
1
vote
1
answer
491
views
Save state on react navigation modal close with react native track player
I have a react-navigation screen set as a modal with a react-native-track player in it. Initially, it loads with no issue, but when I close the modal and open it back - the audio plays but the artwork ...
3
votes
1
answer
583
views
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 ...
0
votes
0
answers
319
views
Updating the URL in TrackPlayer
How to update the url in react-native-track-player?
The urls I have expire after 3 hours and I would like to be able to update them in case we would like to use the app in the morning and continue the ...
1
vote
1
answer
495
views
Occasional error "{AppName} keeps stopping", on closing an app with react-native-track-player in the foreground
I am creating an app which uses react-native-track-player in the foreground. Occasionally on closing the app I get an android message App Name keeps stopping.
The error feedback on the device ...
1
vote
0
answers
239
views
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 ...
1
vote
1
answer
1k
views
Why isn't my fetched blob audio file getting played? I'm using React Native Track Player
I'm currently using the React Native Track Player for playing audio, and it plays local audio tracks fine. When I fetch it through my private api it correctly gets the audio object in blob form - here ...
3
votes
1
answer
3k
views
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 ...
2
votes
1
answer
2k
views
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, ...
0
votes
1
answer
1k
views
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 ...
2
votes
2
answers
2k
views
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 ...
1
vote
2
answers
2k
views
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
...
0
votes
1
answer
2k
views
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 ...
1
vote
0
answers
255
views
expo-av and react-native-track-player use incompatibile versione of exoplayer
I use expo for my app, all work fine in sdk 44 except a few bugs, to resolve that bugs I need to upgrade to sdk 45, now the problem is that in sdk 45 expo-av use an exoplayer versione incompatible ...
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
1k
views
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 ...
1
vote
4
answers
5k
views
WARN No task registered for key TrackPlayer
I am using the react-native-track-player (2.1.3) to implement an audio player in a react-native application. When I initialize the track player in my project I get the following warning message.
WARN ...
0
votes
1
answer
3k
views
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 ...
2
votes
1
answer
523
views
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 ...
3
votes
2
answers
5k
views
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 ...
3
votes
0
answers
1k
views
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 ...
0
votes
1
answer
2k
views
TrackPlayer.add method is not Working in React-native-track-player
useEffect(() => {
try {
const voiceover = parseOrGet(item.scenes[selectedIndex].voiceover);
voiceover["title"]="test"
voiceover["artist"]="...
1
vote
0
answers
114
views
React-native-track-player NPM install bug with [email protected]
I tried installing this module with npm, but recieved a bug which I cannot understand.
I have tried to install multiple versions of the package, including the dev-version and none has yielded any good ...
5
votes
2
answers
2k
views
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 ...
0
votes
0
answers
218
views
Problem when build relase version for ios "Swift.String.lowercased() -> Swift.String"
I have started build relase version for ios below is error which I received:
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library '...
1
vote
2
answers
1k
views
Android 12 crash latest react-native-track-player version
After updating app in android 12 and try to run app in android 12 device and simulator facing issue for crashing.
Here is issue.
androidx.media.session.MediaButtonReceiver: Targeting S+ (version 31 ...
1
vote
1
answer
3k
views
React-Native: cant't build app with react-native-track-player
Problem:
I can build the React Native App npx react-native run-android
but when I install react-native-track-player yarn add react-native-track-player
it fails to build.
What I have tried:
npm i react-...