tizonia-openmax-il icon indicating copy to clipboard operation
tizonia-openmax-il copied to clipboard

Soundcloud: Resume last played or specify start record

Open ZaxonXP opened this issue 4 years ago • 4 comments

I see that currently there is no way to resume playback if the same search was done (it will always play from the start of the list). It would be nice to have such option to resume from the last played, so there would be no need to skip the tracks which were already listened.

Another idea would be to specify from the command line from which track to start on the search result list.

Can you implement at least the first "auto resume" feature?

Kind regards, Piotr

ZaxonXP avatar Apr 24 '20 08:04 ZaxonXP

Hi @ZaxonXP

Thanks for suggesting new features, that is always welcome.

You are right, there is no resume option in Tizonia and it would definitely be a useful feature.

The second idea is definitely easier to implement and has the added advantage of being really generic. It could work OK across services. The first idea is much more difficult as Tizonia does not currently have the means to locally persist the progress of the playlists between sessions. The playlists are always retrieved from the cloud services. There is another difficulty there, and that is the fact that different services would not return the same playlist twice in a row given the same search criteria, the songs/tracs/radios returned can vary from one run to another, which would confuse the user if we attempted to keep an internal history somehow.

I find the second option to be a good compromise (easy implementation, generic across services). @ZaxonXP would you be willing to work on it? I would more than happy to accept PRs that contribute towards this feature.

tizonia avatar Apr 25 '20 11:04 tizonia

@tizonia: Thanks for the offer, but I am not sure if I would qualify to produce some decent code (beside some chronic lack of free time).

However I would like to add some small details to the second idea. It would be nice to have a list displayed first and interactive user selection when the "--select" option will be used. That way user can decide where to start in case the returned list has a different content/order/

ZaxonXP avatar Apr 25 '20 19:04 ZaxonXP

Thanks,

list displayed first and interactive user selection when the "--select" option will be used

Tizonia does not make use of command-line tool kits like the 'ncurses' widget library, so unfortunately this kind of interactivity is not possible right now with Tizonia in its current form.

One thing that the future RPC mechanism will allow is the creation of alternate user intefaces, so third party developers will be able to implement other ways to interact with Tizonia's core features.

tizonia avatar Apr 28 '20 16:04 tizonia

Hi @ZaxonXP

Thanks for suggesting new features, that is always welcome.

You are right, there is no resume option in Tizonia and it would definitely be a useful feature.

The second idea is definitely easier to implement and has the added advantage of being really generic. It could work OK across services. The first idea is much more difficult as Tizonia does not currently have the means to locally persist the progress of the playlists between sessions. The playlists are always retrieved from the cloud services. There is another difficulty there, and that is the fact that different services would not return the same playlist twice in a row given the same search criteria, the songs/tracs/radios returned can vary from one run to another, which would confuse the user if we attempted to keep an internal history somehow.

I find the second option to be a good compromise (easy implementation, generic across services). @ZaxonXP would you be willing to work on it? I would more than happy to accept PRs that contribute towards this feature.

Hi I am new to open source contribution and have a good handle on C and python. If this issue isn't taken up by anyone yet could I take it and maybe try to resolve it?

Raghav-99 avatar Sep 07 '21 18:09 Raghav-99