|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
embedded flash player - implementedI just got into edna yesterday. I had been using MyTunes RSS for my
music stream/downloading, but with a nearly 8 MB download on top of the JVM with embedded tomcat, and a required up-to-date iTunes library file, i was yearning for something small, fast, and... well, pythonic. I saw the posts in the group from last month asking about embedding a flash player, and I thought, 'hey, that sounds like fun!" while it's not really feature-complete, I mucked around in the source and templates a bit and integrated the BSD-licensed Flash XSPF Web Music Player ( http://musicplayer.sourceforge.net/ ) into pages that have music files. Thought I'd get a little feedback from y'all before i put any more effort into this (it's good enough for what I need it for, but if others among you want this too, I'll fix it up a bit). Also, not sure if there are license issues bundling an swf file in with edna (even a BSD-licensed one), so just wanted to check on that. It clocks in at only 57KB, which is pretty small for an mp3 player - but big enough to double the size of an edna distribution :) Anyways, you can see a screenshot at http://ysamlan.googlepages.com/edna-xspf.png and you can grab the zip of edna with the right stuff at http://ysamlan.googlepages.com/edna_xspf.zip -- just unzip it somewhere, dump in your existing edna.conf, and give it a whir. Basically I added a few lines of code to generate and serve playlists in the XSPF XML format, and to allow edna to serve the flash player and playlist, as well as to handle the URL request string for the new playlist. All fine and good, if a bit too hackish for my tastes (I wouldn't commit this to CVS quite yet). the .patch file (not including the swf file for the music player) is at http://ysamlan.googlepages.com/edna.patch for the more cvs-inclined of y'all. Thoughts? I've never tried making changes I made to an opensource project public before, so go easy on me :) Also, if anyone has thoughts on flash-based players besides the one i chose (there are a few at http://www.xspf.org/applications/ which look nice), please contribute. It shouldn't be too hard to swap out a different player or even provide snap-in alternatives for people who want them. _______________________________________________ edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
|
|
|
Re: embedded flash player - implementedHm - what OS, browser and flash version are you using? I'm using
Firefox 2 on XP with Flash 9; haven't had a chance to test it on other configs (my linux install's networking is fried at the moment, as is IE, for some reason). First off, make sure it's not just the music player itself: do the examples at http://musicplayer.sourceforge.net/ load and play correctly? Otherwise, what happens in the edna logs when you click play? Also, check the playlist it loads up - it's the current directory with "all.xspf" added on. Open that file in a text editor and make sure the URLs listed in the "location" tag for each mp3 are correct and that you can download them. If something's wonky with the playlists it generates, I may have to start debugging that. Oh and one other thing, i've only tested it with directories of MP3s so far - it probably won't cooperate with other formats. Since it's a small embedded flash player, i believe it uses the Flash 7+ runtime's built in audio codec support, which isn't all that spectacular. Actually, I should code in a switch to only turn the player on for folders with at least one mp3 file, now that i think about it, just to avoid confusing people. If anyone else has had bad/good results with the player, let me know. -yoni On 3/24/07, Morten Nielsen <morten@...> wrote: > I just tried this, but I can't get it to play anything - it shows up as > expected and it loads the playlist just fine, but pressing the play button > doesn't do anything... > > Morten > > > > ----- Original Message ----- > Subject: [edna] embedded flash player - implemented > Date: Sat, March 24, 2007 7:55 > From: "Yoni Samlan" <yoni@...> > > > I just got into edna yesterday. I had been using MyTunes RSS for my > > music stream/downloading, but with a nearly 8 MB download on top of > > the JVM with embedded tomcat, and a required up-to-date iTunes library > > file, i was yearning for something small, fast, and... well, pythonic. > > I saw the posts in the group from last month asking about embedding a > > flash player, and I thought, 'hey, that sounds like fun!" > > > > while it's not really feature-complete, I mucked around in the source > > and templates a bit and integrated the BSD-licensed Flash XSPF Web > > Music Player ( http://musicplayer.sourceforge.net/ ) into pages that > > have music files. Thought I'd get a little feedback from y'all before > > i put any more effort into this (it's good enough for what I need it > > for, but if others among you want this too, I'll fix it up a bit). > > Also, not sure if there are license issues bundling an swf file in > > with edna (even a BSD-licensed one), so just wanted to check on that. > > It clocks in at only 57KB, which is pretty small for an mp3 player - > > but big enough to double the size of an edna distribution :) > > > > Anyways, you can see a screenshot at > > http://ysamlan.googlepages.com/edna-xspf.png > > > > and you can grab the zip of edna with the right stuff at > > http://ysamlan.googlepages.com/edna_xspf.zip > > -- just unzip it somewhere, dump in your existing edna.conf, and give > > it a whir. > > > > Basically I added a few lines of code to generate and serve playlists > > in the XSPF XML format, and to allow edna to serve the flash player > > and playlist, as well as to handle the URL request string for the new > > playlist. All fine and good, if a bit too hackish for my tastes (I > > wouldn't commit this to CVS quite yet). > > > > the .patch file (not including the swf file for the music player) is > > at http://ysamlan.googlepages.com/edna.patch for the more cvs-inclined > > of y'all. > > > > Thoughts? I've never tried making changes I made to an opensource > > project public before, so go easy on me :) > > > > Also, if anyone has thoughts on flash-based players besides the one i > > chose (there are a few at http://www.xspf.org/applications/ which look > > nice), please contribute. It shouldn't be too hard to swap out a > > different player or even provide snap-in alternatives for people who > > want them. > > _______________________________________________ > > edna mailing list > > edna@... > > http://mailman.lyra.org/mailman/listinfo/edna > > > > > edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
|
|
|
RE: embedded flash player - implementedMaybe this will help....this is what I tried this morning:
ie7 with flash 9: doesn't work (same as morton) firefox with flash 7: works then I upgraded to firefox with flash 9: doesn't work (same as morton) The demo at the player page works with 9. Maybe all that means something to somebody. -----Original Message----- From: edna-bounces@... [mailto:edna-bounces@...] On Behalf Of Morten Nielsen Sent: March 24, 2007 10:20 AM To: Yoni Samlan; edna@... Subject: Re: [edna] embedded flash player - implemented I'm using Firfox 2 with Flash 9 as well. Other examples on other sites work fine. Edna doesn't log anything when I press play. The playlist shows up fine inside the flash based player (if that's what your asking). The all.xspf file looks fine - here is an exmample location: http://REMOVED:8089/My%20Music%20%28Flac%20converted%20to%20MP3%29/Aerosmith /%5B1998%5D%20A%20Little%20South%20Of%20Sanity/01%20Eat%20the%20Rich.mp3 Maybe the player is not capable of handling some of the characters in the URL... And yes I can download the track using that url. Yes I'm testing with mp3s. Right, so that isn't going to help you much in terms of debugging, but I'm not really sure what other info I can give.... Morten ----- Original Message ----- Subject: Re: [edna] embedded flash player - implemented Date: Sat, March 24, 2007 18:43 From: "Yoni Samlan" <yoni@...> > Hm - what OS, browser and flash version are you using? I'm using > Firefox 2 on XP with Flash 9; haven't had a chance to test it on other > configs (my linux install's networking is fried at the moment, as is > IE, for some reason). First off, make sure it's not just the music > player itself: do the examples at http://musicplayer.sourceforge.net/ > load and play correctly? > > Otherwise, what happens in the edna logs when you click play? Also, > check the playlist it loads up - it's the current directory with > "all.xspf" added on. Open that file in a text editor and make sure the > URLs listed in the "location" tag for each mp3 are correct and that > you can download them. If something's wonky with the playlists it > generates, I may have to start debugging that. > > Oh and one other thing, i've only tested it with directories of MP3s > so far - it probably won't cooperate with other formats. Since it's a > small embedded flash player, i believe it uses the Flash 7+ runtime's > built in audio codec support, which isn't all that spectacular. > Actually, I should code in a switch to only turn the player on for > folders with at least one mp3 file, now that i think about it, just to > avoid confusing people. > > If anyone else has had bad/good results with the player, let me know. > > -yoni > > On 3/24/07, Morten Nielsen <morten@...> wrote: > > I just tried this, but I can't get it to play anything - it shows up as > > expected and it loads the playlist just fine, but pressing the play > > doesn't do anything... > > > > Morten > > > > > > > > ----- Original Message ----- > > Subject: [edna] embedded flash player - implemented > > Date: Sat, March 24, 2007 7:55 > > From: "Yoni Samlan" <yoni@...> > > > > > I just got into edna yesterday. I had been using MyTunes RSS for my > > > music stream/downloading, but with a nearly 8 MB download on top of > > > the JVM with embedded tomcat, and a required up-to-date iTunes library > > > file, i was yearning for something small, fast, and... well, pythonic. > > > I saw the posts in the group from last month asking about embedding a > > > flash player, and I thought, 'hey, that sounds like fun!" > > > > > > while it's not really feature-complete, I mucked around in the source > > > and templates a bit and integrated the BSD-licensed Flash XSPF Web > > > Music Player ( http://musicplayer.sourceforge.net/ ) into pages that > > > have music files. Thought I'd get a little feedback from y'all before > > > i put any more effort into this (it's good enough for what I need it > > > for, but if others among you want this too, I'll fix it up a bit). > > > Also, not sure if there are license issues bundling an swf file in > > > with edna (even a BSD-licensed one), so just wanted to check on that. > > > It clocks in at only 57KB, which is pretty small for an mp3 player - > > > but big enough to double the size of an edna distribution :) > > > > > > Anyways, you can see a screenshot at > > > http://ysamlan.googlepages.com/edna-xspf.png > > > > > > and you can grab the zip of edna with the right stuff at > > > http://ysamlan.googlepages.com/edna_xspf.zip > > > -- just unzip it somewhere, dump in your existing edna.conf, and give > > > it a whir. > > > > > > Basically I added a few lines of code to generate and serve playlists > > > in the XSPF XML format, and to allow edna to serve the flash player > > > and playlist, as well as to handle the URL request string for the new > > > playlist. All fine and good, if a bit too hackish for my tastes (I > > > wouldn't commit this to CVS quite yet). > > > > > > the .patch file (not including the swf file for the music player) is > > > at http://ysamlan.googlepages.com/edna.patch for the more cvs-inclined > > > of y'all. > > > > > > Thoughts? I've never tried making changes I made to an opensource > > > project public before, so go easy on me :) > > > > > > Also, if anyone has thoughts on flash-based players besides the one i > > > chose (there are a few at http://www.xspf.org/applications/ which look > > > nice), please contribute. It shouldn't be too hard to swap out a > > > different player or even provide snap-in alternatives for people who > > > want them. > > > _______________________________________________ > > > edna mailing list > > > edna@... > > > http://mailman.lyra.org/mailman/listinfo/edna > > > > > > > > > > edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna _______________________________________________ edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
Re: embedded flash player - implementedOn Sat, 24 Mar 2007 00:55:13 -0500
"Yoni Samlan" <yoni@...> wrote: > and you can grab the zip of edna with the right stuff at > http://ysamlan.googlepages.com/edna_xspf.zip > -- just unzip it somewhere, dump in your existing edna.conf, and give > it a whir. Did that. Fails to start at all. Debian Etch. michael@serafina:~/tmp/edna_xspf$ ./edna.py Running in debug mode Traceback (most recent call last): File "./edna.py", line 1340, in ? run_server(fname) File "./edna.py", line 1248, in run_server svr = Server(fname) File "./edna.py", line 256, in __init__ refresh_offset = config.getint('filename_cache', 'refresh_offset') File "/usr/lib/python2.4/ConfigParser.py", line 321, in getint return self._get(section, int, option) File "/usr/lib/python2.4/ConfigParser.py", line 318, in _get return conv(self.get(section, option)) File "/usr/lib/python2.4/ConfigParser.py", line 511, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'filename_cache' michael@serafina:~/tmp/edna_xspf$ _______________________________________________ edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
Re: embedded flash player - implementedMichael:
Since i'm working off the CVS version of the code, you need all the fields in your config file that the CVS code requires. Be sure you have a section like this underneath the directory definitions for sharing: [filename_cache] refresh_offset = 10800 refresh_interval = 86400 See the version at http://edna.cvs.sourceforge.net/edna/edna/edna.conf?revision=1.19&view=markup I'm checking out the other issues with IE and Flash now on my other PC. -Yoni On 3/24/07, Michael Ross <michael.ross@...> wrote: > On Sat, 24 Mar 2007 00:55:13 -0500 > "Yoni Samlan" <yoni@...> wrote: > > > and you can grab the zip of edna with the right stuff at > > http://ysamlan.googlepages.com/edna_xspf.zip > > -- just unzip it somewhere, dump in your existing edna.conf, and give > > it a whir. > > Did that. Fails to start at all. Debian Etch. > > michael@serafina:~/tmp/edna_xspf$ ./edna.py > Running in debug mode > Traceback (most recent call last): > File "./edna.py", line 1340, in ? > run_server(fname) > File "./edna.py", line 1248, in run_server > svr = Server(fname) > File "./edna.py", line 256, in __init__ > refresh_offset = config.getint('filename_cache', 'refresh_offset') > File "/usr/lib/python2.4/ConfigParser.py", line 321, in getint > return self._get(section, int, option) > File "/usr/lib/python2.4/ConfigParser.py", line 318, in _get > return conv(self.get(section, option)) > File "/usr/lib/python2.4/ConfigParser.py", line 511, in get > raise NoSectionError(section) > ConfigParser.NoSectionError: No section: 'filename_cache' > michael@serafina:~/tmp/edna_xspf$ > _______________________________________________ > edna mailing list > edna@... > http://mailman.lyra.org/mailman/listinfo/edna > edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
Re: embedded flash player - implementedI believe I fixed the problem you were having. It looks like flash 9
parses the xspf file differently than flash 7 and 8 - they ignored an extra linebreak that flash 9 tries to interpret for the URL of the mp3 files. Cleaned out the linebreak in the list generation code and all is well. It also turns out i was testing on my other machine with flash 8, not flash 9. This new code seems to work fine in IE6 and FF2 in XP with Flash 9. Anyways, I've learned not to depend on consistent actionscript XML parsing in the future. grab the updated code at http://ysamlan.googlepages.com/edna_xspf.zip and give it a shot. -yoni On 3/24/07, matt bailey <matt@...> wrote: > Maybe this will help....this is what I tried this morning: > > ie7 with flash 9: doesn't work (same as morton) > firefox with flash 7: works > then I upgraded to firefox with flash 9: doesn't work (same as morton) > > The demo at the player page works with 9. > > Maybe all that means something to somebody. > > > -----Original Message----- > From: edna-bounces@... [mailto:edna-bounces@...] On Behalf Of > Morten Nielsen > Sent: March 24, 2007 10:20 AM > To: Yoni Samlan; edna@... > Subject: Re: [edna] embedded flash player - implemented > > I'm using Firfox 2 with Flash 9 as well. > > Other examples on other sites work fine. > > Edna doesn't log anything when I press play. > > The playlist shows up fine inside the flash based player (if that's what > your asking). > > The all.xspf file looks fine - here is an exmample location: > http://REMOVED:8089/My%20Music%20%28Flac%20converted%20to%20MP3%29/Aerosmith > /%5B1998%5D%20A%20Little%20South%20Of%20Sanity/01%20Eat%20the%20Rich.mp3 > > Maybe the player is not capable of handling some of the characters in the > URL... > > And yes I can download the track using that url. > > Yes I'm testing with mp3s. > > Right, so that isn't going to help you much in terms of debugging, but I'm > not really sure what other info I can give.... > > Morten > > ----- Original Message ----- > Subject: Re: [edna] embedded flash player - implemented > Date: Sat, March 24, 2007 18:43 > From: "Yoni Samlan" <yoni@...> > > > Hm - what OS, browser and flash version are you using? I'm using > > Firefox 2 on XP with Flash 9; haven't had a chance to test it on other > > configs (my linux install's networking is fried at the moment, as is > > IE, for some reason). First off, make sure it's not just the music > > player itself: do the examples at http://musicplayer.sourceforge.net/ > > load and play correctly? > > > > Otherwise, what happens in the edna logs when you click play? Also, > > check the playlist it loads up - it's the current directory with > > "all.xspf" added on. Open that file in a text editor and make sure the > > URLs listed in the "location" tag for each mp3 are correct and that > > you can download them. If something's wonky with the playlists it > > generates, I may have to start debugging that. > > > > Oh and one other thing, i've only tested it with directories of MP3s > > so far - it probably won't cooperate with other formats. Since it's a > > small embedded flash player, i believe it uses the Flash 7+ runtime's > > built in audio codec support, which isn't all that spectacular. > > Actually, I should code in a switch to only turn the player on for > > folders with at least one mp3 file, now that i think about it, just to > > avoid confusing people. > > > > If anyone else has had bad/good results with the player, let me know. > > > > -yoni > > > > On 3/24/07, Morten Nielsen <morten@...> wrote: > > > I just tried this, but I can't get it to play anything - it shows up as > > > expected and it loads the playlist just fine, but pressing the play > button > > > doesn't do anything... > > > > > > Morten > > > > > > > > > > > > ----- Original Message ----- > > > Subject: [edna] embedded flash player - implemented > > > Date: Sat, March 24, 2007 7:55 > > > From: "Yoni Samlan" <yoni@...> > > > > > > > I just got into edna yesterday. I had been using MyTunes RSS for my > > > > music stream/downloading, but with a nearly 8 MB download on top of > > > > the JVM with embedded tomcat, and a required up-to-date iTunes library > > > > file, i was yearning for something small, fast, and... well, pythonic. > > > > I saw the posts in the group from last month asking about embedding a > > > > flash player, and I thought, 'hey, that sounds like fun!" > > > > > > > > while it's not really feature-complete, I mucked around in the source > > > > and templates a bit and integrated the BSD-licensed Flash XSPF Web > > > > Music Player ( http://musicplayer.sourceforge.net/ ) into pages that > > > > have music files. Thought I'd get a little feedback from y'all before > > > > i put any more effort into this (it's good enough for what I need it > > > > for, but if others among you want this too, I'll fix it up a bit). > > > > Also, not sure if there are license issues bundling an swf file in > > > > with edna (even a BSD-licensed one), so just wanted to check on that. > > > > It clocks in at only 57KB, which is pretty small for an mp3 player - > > > > but big enough to double the size of an edna distribution :) > > > > > > > > Anyways, you can see a screenshot at > > > > http://ysamlan.googlepages.com/edna-xspf.png > > > > > > > > and you can grab the zip of edna with the right stuff at > > > > http://ysamlan.googlepages.com/edna_xspf.zip > > > > -- just unzip it somewhere, dump in your existing edna.conf, and give > > > > it a whir. > > > > > > > > Basically I added a few lines of code to generate and serve playlists > > > > in the XSPF XML format, and to allow edna to serve the flash player > > > > and playlist, as well as to handle the URL request string for the new > > > > playlist. All fine and good, if a bit too hackish for my tastes (I > > > > wouldn't commit this to CVS quite yet). > > > > > > > > the .patch file (not including the swf file for the music player) is > > > > at http://ysamlan.googlepages.com/edna.patch for the more cvs-inclined > > > > of y'all. > > > > > > > > Thoughts? I've never tried making changes I made to an opensource > > > > project public before, so go easy on me :) > > > > > > > > Also, if anyone has thoughts on flash-based players besides the one i > > > > chose (there are a few at http://www.xspf.org/applications/ which look > > > > nice), please contribute. It shouldn't be too hard to swap out a > > > > different player or even provide snap-in alternatives for people who > > > > want them. > > > > _______________________________________________ > > > > edna mailing list > > > > edna@... > > > > http://mailman.lyra.org/mailman/listinfo/edna > > > > > > > > > > > > > > > > _______________________________________________ > edna mailing list > edna@... > http://mailman.lyra.org/mailman/listinfo/edna > > _______________________________________________ > edna mailing list > edna@... > http://mailman.lyra.org/mailman/listinfo/edna > edna mailing list edna@... http://mailman.lyra.org/mailman/listinfo/edna |
|
|
|
|
|
Re: embedded flash player - implementedWell done Yoni, your zip file also had search included! I haven't had
time to look/change my edna in ..well years! I'll I need to do now is incorporate my templates, you did the hard work for me :) The player is great, I just wish it worked when we hit the play button.. one day i'll have the time to play with it.. I still like the http://planet.lugradio.org/hashlugradio/ player used here, but this is great too, as it's smart enough to go to the next song automagically :) ...now if we could only be able to queue up songs :) PS: what happened to hte info section? I went to the sourceforge site you snagged the code from, there they had it have info on the track..etc.. Great work once again, much appreciated that your shared. .\\ax On 3/25/07, Yoni Samlan <yoni@...> wrote: > I believe I fixed the problem you were having. It looks like flash 9 > parses the xspf file differently than flash 7 and 8 - they ignored an > extra linebreak that flash 9 tries to interpret for the URL of the mp3 > files. Cleaned out the linebreak in the list generation code and all > is well. It also turns out i was testing on my other machine with > flash 8, not flash 9. This new code seems to work fine in IE6 and FF2 > in XP with Flash 9. > Anyways, I've learned not to depend on consistent actionscript XML > parsing in the future. > > grab the updated code at http://ysamlan.googlepages.com/edna_xspf.zip > and give it a shot. > > -yoni > > On 3/24/07, matt bailey <matt@...> wrote: > > Maybe this will help....this is what I tried this morning: > > > > ie7 with flash 9: doesn't work (same as morton) > > firefox with flash 7: works > > then I upgraded to firefox with flash 9: doesn't work (same as morton) > > > > The demo at the player page works with 9. > > > > Maybe all that means something to somebody. > > > > > > -----Original Message----- > > From: edna-bounces@... [mailto:edna-bounces@...] On Behalf Of > > Morten Nielsen > > Sent: March 24, 2007 10:20 AM > > To: Yoni Samlan; edna@... > > Subject: Re: [edna] embedded flash player - implemented > > > > I'm using Firfox 2 with Flash 9 as well. > > > > Other examples on other sites work fine. > > > > Edna doesn't log anything when I press play. > > > > The playlist shows up fine inside the flash based player (if that's what > > your asking). > > > > The all.xspf file looks fine - here is an exmample location: > > http://REMOVED:8089/My%20Music%20%28Flac%20converted%20to%20MP3%29/Aerosmith > > /%5B1998%5D%20A%20Little%20South%20Of%20Sanity/01%20Eat%20the%20Rich.mp3 > > > > Maybe the player is not capable of handling some of the characters in the > > URL... > > > > And yes I can download the track using that url. > > > > Yes I'm testing with mp3s. > > > > Right, so that isn't going to help you much in terms of debugging, but I'm > > not really sure what other info I can give.... > > > > Morten > > > > ----- Original Message ----- > > Subject: Re: [edna] embedded flash player - implemented > > Date: Sat, March 24, 2007 18:43 > > From: "Yoni Samlan" <yoni@...> > > > > > Hm - what OS, browser and flash version are you using? I'm using > > > Firefox 2 on XP with Flash 9; haven't had a chance to test it on other > > > configs (my linux install's networking is fried at the moment, as is > > > IE, for some reason). First off, make sure it's not just the music > > > player itself: do the examples at http://musicplayer.sourceforge.net/ > > > load and play correctly? > > > > > > Otherwise, what happens in the edna logs when you click play? Also, > > > check the playlist it loads up - it's the current directory with > > > "all.xspf" added on. Open that file in a text editor and make sure the > > > URLs listed in the "location" tag for each mp3 are correct and that > > > you can download them. If something's wonky with the playlists it > > > generates, I may have to start debugging that. > > > > > > Oh and one other thing, i've only tested it with directories of MP3s > > > so far - it probably won't cooperate with other formats. Since it's a > > > small embedded flash player, i believe it uses the Flash 7+ runtime's > > > built in audio codec support, which isn't all that spectacular. > > > Actually, I should code in a switch to only turn the player on for > > > folders with at least one mp3 file, now that i think about it, just to > > > avoid confusing people. > > > > > > If anyone else has had bad/good results with the player, let me know. > > > > > > -yoni > > > > > > On 3/24/07, Morten Nielsen <morten@...> wrote: > > > > I just tried this, but I can't get it to play anything - it shows up as > > > > expected and it loads the playlist just fine, but pressing the play > > button > > > > doesn't do anything... > > > > > > > > Morten > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > Subject: [edna] embedded flash player - implemented > > > > Date: Sat, March 24, 2007 7:55 > > > > From: "Yoni Samlan" <yoni@...> > > > > > > > > > I just got into edna yesterday. I had been using MyTunes RSS for my > > > > > music stream/downloading, but with a nearly 8 MB download on top of > > > > > the JVM with embedded tomcat, and a required up-to-date iTunes library > > > > > file, i was yearning for something small, fast, and... well, pythonic. > > > > > I saw the posts in the group from last month asking about embedding a > > > > > flash player, and I thought, 'hey, that sounds like fun!" > > > > > > > > > > while it's not really feature-complete, I mucked around in the source > > > > > and templates a bit and integrated the BSD-licensed Flash XSPF Web > > > > > Music Player ( http://musicplayer.sourceforge.net/ ) into pages that > > > > > have music files. Thought I'd get a little feedback from y'all before > > > > > i put any more effort into this (it's good enough for what I need it > > > > > for, but if others among you want this too, I'll fix it up a bit). > > > > > Also, not sure if there are license issues bundling an swf file in > > > > > with edna (even a BSD-licensed one), so just wanted to check on that. > > > > > It clocks in at only 57KB, which is pretty small for an mp3 player - > > > > > but big enough to double the size of an edna distribution :) > > > > > > > > > > Anyways, you can see a screenshot at > > > > > http://ysamlan.googlepages.com/edna-xspf.png > > > > > > > > > > and you can grab the zip of edna with the right stuff at > > > > > http://ysamlan.googlepages.com/edna_xspf.zip > > > > > -- just unzip it somewhere, dump in your existing edna.conf, and give > > > > > it a whir. > > > > > > > > > > Basically I added a few lines of code to generate and serve playlists > > > > > in the XSPF XML format, and to allow edna to serve the flash player > > > > > and playlist, as well as to handle the URL request string for the new > > > > > playlist. All fine and good, if a bit too hackish for my tastes (I > > > > > wouldn't commit this to CVS quite yet). > > > > > > > > > > the .patch file (not including the swf file for the music player) is > > > > > at http://ysamlan.googlepages.com/edna.patch for the more cvs-inclined > > > > > of y'all. > > > > > > > > > > Thoughts? I've never tried making changes I made to an opensource > > > > > project public before, so go easy on me :) > > > > > > > > > > Also, if anyone has thoughts on flash-based players besides the one i > > > > > chose (there are a few at http://www.xspf.org/applications/ which look > > > > > nice), please contribute. It shouldn't be too hard to swap out a > > > > > different player or even provide snap-in alternatives for people who > > > > > want them. > > > > > _______________________________________________ > > > > > edna mailing list > > > > > edna@... > > > > > http://mailman.lyra.o |