News for hackers. Stuff that matters.
Re:Show HN: Built a Hacker News radio web app I can listen to by ekurutepe on Tuesday January 22, 2013 @07:01AM (#5096670)
Is the audio streamed over cellular? It would be cool to preload clips over WiFi before hitting the road.
Re:Show HN: Built a Hacker News radio web app I can listen to by longzheng on Tuesday January 22, 2013 @07:02AM (#5096673)
Yeah unfortunately there isn't a lot of control over HTML5 audio AFAIK. There is a preload option but it's specific to the individual <audio> element.

Maybe as a hack I could change it so each article has a hidden <audio> somewhere that preloads it in the background, then when you actually play back it should use cache.

I don't know if that's wise over a cell connection though, downloading all the MP3s.

Re:Show HN: Built a Hacker News radio web app I can listen to by jpalacios on Tuesday January 22, 2013 @10:46AM (#5097607)
Perhaps a better approach would be to add a "preload" button, and then use the hidden element as you suggested so we aren't loading audio we aren't interested in.

Another idea would be to add a personal user queue to do the same thing. Awesome site btw.