INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: Shalmaneser on October 12, 2020, 12:17:43 pm

Title: Pause after playing
Post by: Shalmaneser on October 12, 2020, 12:17:43 pm
Is it just me or should this be a mode instead of a one-off? I like to set something going and fall asleep. The monitor shuts down on idle time and all is quiet. Sometimes I'm not fully asleep and kick it to next on the play list. This in turn clears the 'stop after play'. Waking up enough to reset the 'stop after play" often further prolongs my falling asleep. Yeah, it's a nitpick, but isn't that what programming's all about? Picking the nits?
Title: Re: Pause after playing
Post by: RoderickGI on October 12, 2020, 05:29:10 pm
I was wondering what this "Pause after playing" you mention was, but then I saw you meant the "Stop after playing" function.

This is what I would try, given the existing functionality in MC.

1. Set up a Smartlist that selects random "going to sleep" music, and limits the selection to a certain number of tracks, or a time limit.
2. Set up a command in the Resource.xml file to send the MC Core Command 30007 (https://wiki.jriver.com/index.php/Media_Center_Core_Commands) "Play Playlist" to play the Smartlist.
2. Set up a button on a programmable remote control to send the command set up in step two.

Then if I was still awake when the music stopped playing, I would just press the remote button, the Smartlist contents should refresh, and another set of tracks would be played.

I haven't tested the above, and it depends on you having a programmable remote, but it should all work.
You could also use some scripting language to set the MC "Stop after playing" function and start playback.
Or maybe even use a voice control solution.
The best approach depends on how you interact with MC when in bed, and basically asleep.