Questions tagged [react-native-track-player]
71 questions
0
votes
1 answer
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"]="test"
voiceover["id"]="2"
…

Prateek Pareek
- 150
- 15
0
votes
0 answers
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 'swiftQuartzCore'
ld: warning: Could not find or…
0
votes
0 answers
react native track player remote next function
I have a problem changing track to the next with react-native-track-player.
I need to change the track while music playing in background and I am on iOS locked screen with controls.
According to react-native-track-player documentation…

Csutkas
- 159
- 9
0
votes
0 answers
I want to open navigation page from App.js file (React Native)
I need to open audio single page on click notification bar
componentDidMount() {
Linking.getInitialURL().then((url) => this.handleUrl({ url: url }));
Linking.addEventListener('url', this.handleUrl);
}
componentWillUnmount() {
…

Pirta Matharu
- 267
- 1
- 5
- 22
0
votes
1 answer
Play audio from list of images and audio, when audio component is in focus
I have a list of image and audio as:-
postArray: [
{ "id": 1, "media_type": "image", "media_url": "https://homepages.cae.wisc.edu/~ece533/images/airplane.png", "title": "image1" },
{ "id": 2, "media_type": "audio", "media_url":…

Shahanshah Alam
- 565
- 7
- 22
0
votes
1 answer
Want to play remote url from react-native-track-payer in iOS
I am using react-native-track-player for creating a music player. I am using Youtube API for audio streaming. Its give URL…

varun
- 89
- 6
0
votes
0 answers
How to fix "Attempted import error"? / What audio player should I use for a Hybrid React-Native app?
I tried using react-native-track-player and it runs fine on android, but on the web, I get the following error:
./node_modules/react-native-track-player/lib/hooks.js
Attempted import error: 'STATE_BUFFERING' is not exported from './index' (imported…

Velislav
- 27
- 1
- 1
- 6
0
votes
0 answers
How can I fetch metadata for all audio files from a specific folder on my SD Card using React Native?
I am working on an audio playing app using React Native, but I'm having trouble fetching files using a file/folder picker. Basically, I have audio files saved in a certain folder on my device (not in the project directory). I want to fetch files…

Nicolas Kudeba
- 11
- 2
0
votes
2 answers
react-native-track-player not playing song requested from Express server
I made an expressjs server which has a 'songs' route, that provides .mp3 files.
Songs Route code:
import express from "express"
const path = require("path")
const router = express.Router()
...
router.get("/download/:filename", (req, res, next) =>…

Tavin
- 76
- 9
0
votes
1 answer
How to pause track at certain duration using react-native-track-player
File : DataList.json
[
{
"id": "abcd-001",
"title": "Push Ups",
"image": "imageOne",
"description": "There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by…

Sayed Imran
- 1
- 2
0
votes
1 answer
Music is not playing on release apk .using library react-native-track player
React naive app Music is not playing on release apk .using library react-native-track player.
It works fine with local host both in emulator and real device while debug mode.
Is der any specified place to keep mp3 files ?
I'm trying to load from…

deva11
- 881
- 10
- 25