Closed jaikantshikray closed 9 months ago
Yes same issue , I also facing
@jaikantshikray @Ritikchhipa5 are you both on v3.2? Are you about to try the V4 RC's?
Yes, I try but the same issue is happening. But the thing is why is not working in the real device and when run why it will take a lot of memory?
it does not work with the latest version on real device works fine on simulator although
I met this problem on my iOS simulator. I used this version.
"react-native-track-player": "^4.0.0-rc09",
same version I use its works in iOS simulator but not in real device .
I cannot seem to experience this using the latest RC and on physical device in release mode. Could one of you perhaps share one of the tracks you're seeing issues with? Would also be helpful if you could tell me the iOS device you're testing with.
I met this problem on my iOS simulator. I used this version.
"react-native-track-player": "^4.0.0-rc09",
When I used a physical device, the repeat mode worked. My physical device is an iPhone X
@jaikantshikray as suggestion, check in xCode CPU and memory readings, when you put app into background. If they are increasing, then it could be you have a memory leak which can cause BOOMs
Ok, looks like we have seen it works on device. I will go ahead and close this now.
We recently added RepeatMode.Queue handling to Podverse, and I am running into this issue intermittently on my actual iPhone XR when listening to a short track, when it is the only track in the queue. It does not seem to happen when multiple tracks are in the queue. Also, I am unable to reproduce the issue with iOS Simulator.
I don't know if it's an RNTP issue for sure. I'm inserting and removing items from the queue after the current player item is loaded, so there is funkiness in our setup, and maybe the queue doesn't like that. Oddly though this issue seems to only happen when a single track is in the queue, and I shouldn't be doing funky add/remove to queue stuff for that.
OOF. I am still on 4.0.0-rc04. It looks like a RepeatMode fix for iOS was added in #2070. Maybe we just need to upgrade.
The Track does not repeat on real device IOS and it struck between the states of pause and play and keeps showing pause and play state.
Steps To Reproduce
Downloaded the sound from server and saved in document directory and starts playing the sound when the sound completes it does not restart even with Repeat Mode.
Code To Reproduce
RNFetchBlob .config({ // response data will be saved to this path if it has access right. path: dirs.DocumentDir + '/' + item.name + '.mp3', fileCache: true, }) .fetch('GET', url, { //some headers .. }) .then(async (res) => { console.log("resds", res) // the path should be dirs.DocumentDir + 'path-to-file.anything' console.log('The file saved to ', res.path()) var track1 = { url: res.path(), // Load media from the network title: item.name, artist: '', album: '', genre: '****', date: '2014-05-20T07:00:00+00:00', // RFC 3339 artwork: '', // Load artwork from the network duration: item.duration // Duration in seconds }; await TrackPlayer.add([track1]); await TrackPlayer.setRepeatMode(RepeatMode.Track); TrackPlayer.play().then(() => { console.log("play started") }).catch(er => { console.log("err is ", er); }); }).catch(err => { console.log("err", err); });
Replicable on Example App?
copied the exact callbacks from example app
Environment Info: react-native: 0.73.9 react-native-track-player: 3.2.0 Real device IOS