View Single Post
Old 05-13-2020, 09:19 AM   #58
hartleyshc
Member
hartleyshc began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Dec 2010
Location: Gainesville, FL
Device: Nook 1st Gen, KT4, PW4, PW5-SE
Quote:
Originally Posted by dhdurgee View Post
Had you used the "Stop playing media" to stop the currently playing stream before selecting a new one? I guess I was expecting users to do so as opposed to simply killing any running sox process.

The bookmark and progress files are ignored by the internetradio script as there is no way to bookmark a live stream. In fact your modification will erase the bookmark for the last played local media.

I will consider adding the killall sox to the start of the two scripts to address the case where the user attempts to start a playback when one is already running.

Dave
Yeah I think just adding it to the play streams file is enough, especially with the way the you have it written I out now. Since it creates a pls file of all of the mp3s, no one is going to click on play all mp3s again. And even if they do, and you put killsox and the rm strings, it's just going to start back over where their last bookmark was. Maybe put the code you used to write to 'starting' if they happen to click on play all files it will just automatically bookmark it for them.

I did spend a bit last night writing a koreader plugin that uses your bash files. I was able to start and stop a predefined radio stream from the tools/plugins menu. The goal there is that you'll eventually be able use the built in file manager on koreader to select mp3s from a directory. The bad part is that it'll need to be updated every single koreader release as their plugin system is kind of set in stone and you have modify the menus to get the plugin to show up, instead of just dumping some files in the plugins directory.
hartleyshc is offline   Reply With Quote