Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: announce #1152

Open
sabline1 opened this issue Aug 28, 2024 · 4 comments
Open

Wishlist: announce #1152

sabline1 opened this issue Aug 28, 2024 · 4 comments

Comments

@sabline1
Copy link

sabline1 commented Aug 28, 2024

This is a suggestion for a new functionality that could be very useful for home automation.
The current playlist is suspended during a announce, then resumes at same point.

It would be great to be able to request playing a (usually short) track as an announce: the current status is saved, the track is played, and the player retrieves previous context (same status stopped/paused/playing, same playlist, same track, same place in the track...).
If the sound currently playing is a stream (e.g. a radio), the player continues with live stream position after the announce (no buffering/delay of the stream). If the sound currently playing is a track (e.g. from a collection), the track is paused during the announce and continues after the announce.
The announce behaviour shall apply to a player or group of synced players.
An announce may or may not return to a previous announce that has been interrupted (let's start with the easiest, probably not stacking contexts). A relatively simple behaviour could roughly be:

When a request for playing an announce is received:
  If an announce is currently playing:
    The new announce begins playing immediately
  Else (no currently playing announce):
    The context is saved
    The announce is played
When the announce is finished playing:
  Restore context
@michaelherger
Copy link
Member

Isn't this covered by the playlist preview command (https://lyrion.org/reference/cli/playlist/#playlist-preview)?

@sabline1
Copy link
Author

sabline1 commented Aug 28, 2024

Isn't this covered by the playlist preview command?

I understand that playlist preview replaces current playlist (which is saved in a temporary file), but doesn't automatically resumes playing the previous (saved) one after the preview, is it right?
And anyway, it would only resume at the beginning of the track, not at the suspension point, wouldn't it?

@michaelherger
Copy link
Member

Give it a try. I'm pretty sure you can resume playback. If in doubt I suggest you join forums.slimdevices.com where there are more people who might have experience with the command. But IIRC it really was implemented for the very purpose of playing something in between and resuming playback afterwards.

@michaelherger
Copy link
Member

Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants