Metras / jamendoradio

Automatically exported from code.google.com/p/jamendoradio
0 stars 0 forks source link

Speedup channel start to first song playing #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start Chrome
2. Click JamendoRadio toolbar icon
3. Click a station

* Sometimes you get a "Please wait while I fetch some songs".
One possible way to avoid this would be to (secretly) store one song per 
station together with the station definition. This song could play 
immediately when you click a station. To not hear the same song always, or 
the same song twice, each time a station song list is downloaded, pick song 
#2 from the list and save as the station start-song.

Original issue reported on code.google.com by simon.bo...@gmail.com on 27 Mar 2010 at 8:53

GoogleCodeExporter commented 8 years ago
The delay usually only occurs when requesting songs from a JamRadio.

But I guess we could do a kind of "pre-buffering" cheat.
When JR receives a list of songs, we could store the last playlist entry and 
associate that with the channel. The next time the station loads, we can start 
the 
stored song before fetching more from Jamendo.

By always adding the last file, we can ensure that it will not start with the 
same 
song when reloaded, as JR will fetch new songs when the last song is being 
played, 
thus replacing the stored song.

Original comment by fredrik.schiller on 30 Mar 2010 at 1:43

GoogleCodeExporter commented 8 years ago
Jamendo seems to have sped up the process when fetching songs from a JamRadio. 
This makes my previous suggestion overkill in my eyes. I will therefore mark 
this as WontFix...

Original comment by fredrik.schiller on 10 Dec 2010 at 8:30