Isn't this the use case for the "playlist preview" command?
Michael
Am 12.01.16 um 09:06 schrieb christiantf:
>
> Hello!
>
> I'm currently implementing some nice stuff via the CLI in PHP to
> integrate to the home automation (things like doorbell, background sound
> for TTS).
>
> Before I start, I backup the current playlist, where "backup" is the
> playlist name to save:
>
> Code:
> --------------------
> $playermac playlist save backup silent:1
> --------------------
>
>
> Then I call my output by playlist play <something>.
>
> After that, I resume the playlist by
>
> Code:
> --------------------
> $playermac playlist resume backup wipePlaylist:1
> --------------------
>
>
> Because the wipePlaylist:1 does not work, I am not sure how the format
> of <taggedParameters> is. <taggedParameters> is used several times in
> the CLI documentation, but I am not sure, if the format wipePlaylist:1
> is correct in this case (same with silent:1).
>
> Can you help me? Thanks!
> Christian
>
>
> FROM DOCUMENTATION:
> <playerid> playlist resume <playlist> <taggedParameters>
>
> Replace the current playlist with the playlist specified by p2, starting
> at the song that was playing when the file was saved. (Resuming works
> only with M3U files saved with the "playlist save" command below.)
> Shortcut: use a bare playlist name (without leading directories or
> trailing .m3u suffix) to load a playlist in the saved playlists folder.
>
> Optional tagged parameters are noplay, which when non-zero will not
> auto-start the track, and wipePlaylist, which will destroy the saved
> playlist from both the filesystem and from the DB (these tagged params
> are typically used for resuming a temporarily cached playlist, e.g.
> after exiting alarm sound preview on squeezeplay devices).
>
>
> ------------------------------------------------------------------------
> christiantf's Profile: http://forums.slimdevices.com/member.php?userid=63330
> View this thread: http://forums.slimdevices.com/showthread.php?t=104999
>
>
Michael
Am 12.01.16 um 09:06 schrieb christiantf:
>
> Hello!
>
> I'm currently implementing some nice stuff via the CLI in PHP to
> integrate to the home automation (things like doorbell, background sound
> for TTS).
>
> Before I start, I backup the current playlist, where "backup" is the
> playlist name to save:
>
> Code:
> --------------------
> $playermac playlist save backup silent:1
> --------------------
>
>
> Then I call my output by playlist play <something>.
>
> After that, I resume the playlist by
>
> Code:
> --------------------
> $playermac playlist resume backup wipePlaylist:1
> --------------------
>
>
> Because the wipePlaylist:1 does not work, I am not sure how the format
> of <taggedParameters> is. <taggedParameters> is used several times in
> the CLI documentation, but I am not sure, if the format wipePlaylist:1
> is correct in this case (same with silent:1).
>
> Can you help me? Thanks!
> Christian
>
>
> FROM DOCUMENTATION:
> <playerid> playlist resume <playlist> <taggedParameters>
>
> Replace the current playlist with the playlist specified by p2, starting
> at the song that was playing when the file was saved. (Resuming works
> only with M3U files saved with the "playlist save" command below.)
> Shortcut: use a bare playlist name (without leading directories or
> trailing .m3u suffix) to load a playlist in the saved playlists folder.
>
> Optional tagged parameters are noplay, which when non-zero will not
> auto-start the track, and wipePlaylist, which will destroy the saved
> playlist from both the filesystem and from the DB (these tagged params
> are typically used for resuming a temporarily cached playlist, e.g.
> after exiting alarm sound preview on squeezeplay devices).
>
>
> ------------------------------------------------------------------------
> christiantf's Profile: http://forums.slimdevices.com/member.php?userid=63330
> View this thread: http://forums.slimdevices.com/showthread.php?t=104999
>
>