question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restore state of currently playing song when audioList changes.

See original GitHub issue

Description

Currently, if the audioList updates, then the play state of the currently playing song is lost even if the song is present in the new audioList (possibly due to this?), which makes the tracks start from the beginning.

On using playIndex I can get to the song but I still can’t play it from the time it was paused (the song starts from 0:00). Is it possible to not clear the pause and time state of the song if it is in the updated audioList? I want to start it from where it was paused.

A possible fix could be to add a parameter to changeAudioLists that would use something like checkCurrentPlayingAudioIsInUpdatedAudioLists to get the current playing song index in the new audioList and set its currentTime to that of the previous state (before updating of the audioList)?

Or is there some other method already present to carry this out?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
sigmakeycommented, Nov 20, 2021

Hello, I just want to say that this bug breaks what I personally see as a very important feature for any music player, namely adding songs to the queue. Specifically, it’s breaking the “Play Next” functionality in the Navidrome web UI, which is otherwise excellent. I’m not a developer, so I just hope that someone can find the time to take a look at this. Thanks.

0reactions
SteveDinncommented, Feb 2, 2022

This issue should be re-opened. It is very annoying behaviour.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the Playing Next queue in Music on Mac - Apple Support
In Music on Mac, see what songs will play next (and make changes) or view which songs you've recently played.
Read more >
A Step by Step Guide to Building an Android Audio Player App
All these methods do is save and restore the state of the serviceBound variable and unbind the Service when a user closes the...
Read more >
ReactJS - Buttons not Re-Rendering on State Change?
I was able to implement this solution to solve my own challenge of needing to have multiple audio sources with one audio player...
Read more >
Find out what music is playing near you - Pixel Phone Help
Find out how you can use Google Pixel phone's "Now Playing" music recognition features to automatically identify the music you hear around you....
Read more >
​I Still Haven't Found What I'm Looking For | Song ... - YouTube
We are proud to share our new Song Around The World, “I Still ... What I'm Looking For | Song Around The World...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found