05-12-2020, 12:20 PM | #46 |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I just added my first shot at bookmark support. Hopefully this will work as designed.
Dave |
05-12-2020, 01:49 PM | #47 |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Trying out version 2:
What works great: 1) Playback and resume work great when there's only one mp3 file in /mnt/music (see below. Potential issues I discovered: 1) Script works flawlessly when there is only one mp3 file in /mnt/music/ ; the moment > 1 mp3 exists, playback never seems to start. Here's my wish list: 1) Allow for a separate config file to load whichever internet radio stations without having to configure it in the menu and potentially break things. 2) Allow for a 'skip' or next track functionality so if I don't like what I'm listening to I can listen to the next track. 3) (distant far off hope some day) update bookmark via some kind of open source way so that if I'm listening to an audio book on my android phone / iphone it could remember position across devices. this might be a tall order. Still trying to figure out the best use of local playback, I think it would be for relaxing background sounds like brown noise, rain, ocean waves to listen to while reading. Music with lyrics is distracting to me. Again many thanks for what you've done so far. Being able to read without the temptation of my phone and the ability have background music to help me focus better is invaluable. Last edited by arooni; 05-12-2020 at 01:55 PM. |
Advert | |
|
05-12-2020, 02:42 PM | #48 |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Regarding playback problems, I have seen a problem on occasion as well. When it happens do you see the icon on the top line near the bluetooth icon showing audio is connected? When I have the problem there is usually a problem with the bluetooth audio connection. I can usually fix it by turning bluetooth off and back on and reconnecting the audio.
I have had no problems with multiple audio files here, only the bluetooth connection problem. I would have to check and see if there is some way to have sox skip within a playlist, if so it might be possible. Will think further on other issues. Dave |
05-12-2020, 03:10 PM | #49 | |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Quote:
When I add the second file to the music directory via ssh/quit and restart KUAL and go back into your application, I see no change in the bluetooth icon. To make sure it's working prior I open an audible download to make sure audio is playing correctly on my earbuds. |
|
05-12-2020, 05:10 PM | #50 | |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
I am not sure of what causes the problem I am seeing, and it might not be the same problem as yours. In my case I am using a bluetooth headset that is also connected to my phone. Another question, are all your mp3 files the same rate, depth and channels? The imited support in the gstreamer available on the kt4 and pw4 does not support adapting in mid-stream. I don't know what to expect if you try to do so. Dave |
|
Advert | |
|
05-12-2020, 06:30 PM | #51 |
Member
Posts: 15
Karma: 10
Join Date: Dec 2010
Location: Gainesville, FL
Device: Nook 1st Gen, KT4, PW4, PW5-SE
|
A little tip for those who might use a simple speaker instead of headphones with volume control. If you open an Audible book (Samuel Jackson reading 'Go the F**k to Sleep' is small and free) you can use that to adjust the volume of what is playing.
Also suggesting volume control, but the work around is working just fine for me. I find the radio station play back much more useful than trying to listen to an audio book. |
05-12-2020, 08:02 PM | #52 | |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Glad you find the extension useful. Dave |
|
05-13-2020, 01:06 AM | #53 | |
Member
Posts: 15
Karma: 10
Join Date: Dec 2010
Location: Gainesville, FL
Device: Nook 1st Gen, KT4, PW4, PW5-SE
|
Quote:
As for the Sky, I actually misread your first entry, KSKYAM as WSKYFM and assumed you might have been a local. Seems in reality I was pretty close haha. I've been a listener for years. As another user said, I'm a bit too distracted by lyrics and talk while reading, so classical has been a good choice for me. And yeah, I looked at your menu.json and it's very easy to add streams to. I found a bunch of streams on the Icecast server directory ( http://dir.xiph.org/ ). They're tagged if they're using mp3 (or even Vorbis, since you said ogg works). I assume you just write ogg instead of mp3 in the params line. |
|
05-13-2020, 03:25 AM | #54 |
Member
Posts: 15
Karma: 10
Join Date: Dec 2010
Location: Gainesville, FL
Device: Nook 1st Gen, KT4, PW4, PW5-SE
|
***Sorry for the doublepost. I don't even see an edit option, and when I forced an edit (editpost.php) it says I have a 5 minute time frame to edit my post, which is longer than it takes for an admin to approve my post. So sorry for this, but Ill forget to post tomorrow. ***
Anyways, found a bug. Streams will actually overlay on top of each other. I added WSKY, and it was kind of fun to hear Coast to Coast AM with classical music playing in the background. Because of this, I added Code:
killall sox rm /var/tmp/bookmark rm /var/tmp/progress I added the rm bookmark and progress lines as well because it looks from your code that it will still be counting since the bookmarks code is based on the time between started and when the bookmark is saved. So if the user hits the bookmarks button later, it would still add on the time they were listening to internet stream and not the (assumed) audio book. Figured its better to listen to a part of the book again, instead of skipping past whole sections of the audio book. |
05-13-2020, 06:22 AM | #55 | ||
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Quote:
[EDIT] You can also preset the volume in settings / voice view / volume: Last edited by PoP; 05-13-2020 at 07:20 AM. Reason: voice view trick |
||
05-13-2020, 08:58 AM | #56 | |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
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 |
|
05-13-2020, 09:10 AM | #57 | |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
05-13-2020, 09:19 AM | #58 | |
Member
Posts: 15
Karma: 10
Join Date: Dec 2010
Location: Gainesville, FL
Device: Nook 1st Gen, KT4, PW4, PW5-SE
|
Quote:
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. |
|
05-13-2020, 09:53 AM | #59 | |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Dave |
|
05-13-2020, 04:06 PM | #60 |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Wow! koreader support so I can toggle music directly from my normal reading experience! That's so nifty.
How does it handle making a new connection to bluetooth from within koreader? PS: Would love to see a 'shuffle' feature. I don't mind making a playlist file to play back multiple mp3s if that's necessary. PPS: Which are the best classical music stations with minimal commercials / talking that you folks are using? |
Tags |
kt4, mp3, pw3, pw4, sox |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PW [KUAL] Yet another clock extension | MrTick | Kindle Developer's Corner | 3 | 10-21-2019 03:06 PM |
xmahjongg for Kindle as Kual extension | Hanspeter | Kindle Developer's Corner | 86 | 12-02-2016 07:06 PM |
kual extension to open a book | shoelesshunter | Kindle Developer's Corner | 14 | 08-16-2016 12:30 PM |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 10:11 AM |