Implement a better feature in music player to change track. #39
Labels
bug
Something isn't working
critical
something critical. this tag will always be with another tag
documentation
Improvements or additions to documentation
enhancement
New feature or request
feature-implementation
Implement a new feature
feature-pending
Feature implementation is pending for much time
feature-update
Updating an existing feature.
feature-urgent
Urgently needed feature implementation
tweak
Simple and small code change. similar to good-first-issue
Updated feature
Currently, we are scrolling to the next index of the flat list to trigger the "playback-track-changed" event of react-native-track-player and then change the song according to that. Instead of this approach we could directly play a song after detecting which song index was ended lastly and according to that play the next song and find the song index in the flat list variable and scroll to that particular index.
This approach will help us to play the track/song in some cases where the device is locked or the application is running in the background and not in front of the user on the screen itself.
The text was updated successfully, but these errors were encountered: