Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
How to Make .xml Playlist for other Flash MP3 Players
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/06/06 19:58 
=Moved from Jamroom Theme Design=

Other Flash MP3 players will work with Jamroom (such as the Jeroen mp3 player).

To create an .xml playlist (to be read by other flash players) do the following:
In theme.cfg do:


Code
# XML playlist
song_mp3player_head.tpl  |  mp3player.xml
song_mp3player.cfg | mp3player.xml
song_mp3player_footer.tpl  | mp3player.xml
 


Make sure everything starts with song_ or nothing will parse correctly.

In song_mp3player_head.tpl do:


Code
<?xml version="1.0" encoding="UTF-8"?><player showDisplay="yes" showPlaylist="yes" autoStart="no">


In song_mp3player.cfg just have:


Code
song_mp3player.tpl


and have as song_mp3player.tpl :


Code
<song path="{$JAMROOM_URL}/stream.php?mode=song_hifi&band_id={$BAND_ID}&song_id={$SONG_ID}&ext=.mp3" title="{$SONG_NAME}" />


and song_mp3player_footer.tpl do:


Code
</player>


and the whole shootin' match will be parsed as an xml file to be used with any xml player, and, yes, it does show all plays on the charts and ranking subs for jamroom.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php

Last edited by SunLizzard on 03/07/06 08:44; edited 1 time in total
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 03/06/06 20:10 
The only thing you will want to note, is that I believe this will effectively allow deeplinking...

If an artist finds the XML playlist, they "could" use it to source a flash player located on there own site.

I haven't tried it, but the theory makes sense to me as jamroom won't see it as deeplinking when the stream is launched from a local script even though the player parsing it is on a remote system (the player always is when its flash).

Just a thought. One thing you might be able to do is write the XML as a PHP file and make sure that only local referrers can open it.

Maybe bigguy could comment on that aspect... It would probably be better if there was XSPF variable so that you don't need to create the extra XML in the bands folder. You would just use {XSPF_PLAY} in the src option to give the player what it needs...not sure...

Other then that, thanks for posting this for others!!


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/07/06 09:29 
I set up some test sites on geocities and angelfire, embedding the Jeroen flashplayer and pointing it to the .xml file on kinglizzard.com .

The players could not load the playlists. Smile

When I directly tried to access the xml file from a browser I got this message:


Code
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
 


When I link to the xml from my own site it plays fine. I think it might be secure against deep linking.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
fleagle66



Joined: 12 Feb 2006
Posts: 66
Location: San Francisco

Posted: 03/08/06 13:53 
I was wondering about this because I downloaded Wimpyplayer and wanted to know if I could load jamroom playlists into it.

Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/08/06 15:25 
I downloaded Wimpy and was able to modify the xml code (different from above) which eventually allowed the Jamroom playlist to load.

But there are several issue with Wimpy which, I'm sure given enough time, energy, coffee and cursing I can figure out, prohibit Wimpy from playing Jamroom playlists like the Jeroen player and the xspf player.

Problem one: You have to cirumvent the stream.php file, which probably means that the chart/ranking figures aren't being recorded.

Problem 2: when you click on the song from the list a password popup popsup...it seems like you can only play if you authorized to have access to the site admin.

The skins and functions of Wimpy are everything that I'm looking for, but I'm not having any luck so far. But again, I haven't had enough coffee or cussed enough...


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
rgnelson



Joined: 28 Feb 2005
Posts: 726

Posted: 03/08/06 16:22 
SunLizzard

Problem one:
You can use the stream url, you have to url encode it.
Brian has set up this tool to help:
http://www.jamroom.net/urlencode.php

Problem two:
The reason your are getting the password popup is because you have selected "yes" to the protect songs directory option in your JamRoom config. With that selected, JamRoom creates a .htaccess file in your songs directory to prevent people from digging through your songs at will. If you wanted to, you could remove the .htaccess file then you can make a direct call to the song. But I wouldn't suggest doing that.

Once you get problem one licked, you don't have to worry about problem two. Wink

Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/09/06 10:11 
Thanks for the info, rg, I'll play around with it for a bit. You seem to be the resident Wimpy expert, I trust if I have any questions I can discuss them with you.

Thanks again Very Happy


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
clenard



Joined: 09 Feb 2005
Posts: 13

Posted: 03/11/06 15:32 
SunLizzad, have you figured out a way to use Wimpy yet? Did that solution work? I remember trying to figure out how to integrate it much like Soundclick had theirs (wimpy) setup and I never figured it out... It'd be nice to see someone using Jamroom with Wimpy. Laughing

Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/11/06 21:16 
Not yet, but I'm stubborn. If I work it out I'll post how.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/12/06 10:34 
I'm still running into the some of same problems that I did before. I got the permissions thing straightened around by changing over the "protect song directory" in the Quota to no (which I'm not comfortable with).
The only problem is that the playlist will only run if the xml file is pointing directly to the .mp3 in the song directory.


Code
   <item>
     <filename>http://www.yousite.com/jamroom/songs/1/[SONG_ID}_hifi.mp3</filename>
     <title>{SONG_NAME}</title>
   </item>


Which will not record the plays.



Doing the urlencode yielded the code being literally parsed into the xml file and not readable by the player.


Code

http%3A%2F%2Fwww.yoursite.com%2Fstream.php%3Fmode%3Dsong_hifi%26band_id%3D%7BBAND_ID%7D%26song_id%3D%7BSONG_ID%7D%26ext%3D.mp3%5C%22


yields an xml code of:


Code
<filename>http%3A%2F%2Fwww.yoursite.com%2Fstream.php%3Fmode%3Dsong_hifi%26band_id%3D%7BBAND_ID%7D%26song_id%3D%7BSONG_ID%7D%26ext%3D.mp3%5C%22</filename>
<title>Song name appears normal</title>


Pointing it to "play.php?" or "stream.php?" in the .tpl


Code

<filename>{JAMROOM_URL}/stream.php?mode=song_hifi&band_id={BAND_ID}&song_id={SONG_ID}&ext=.mp3"</filename><title>{SONG_NAME}</title>


results in


Code
<filename>http://www.yoursite.com/jamroom/stream.php?mode=song_hifi&band=1&song_id=1&ext=.mp3</filename>
<title>Correct song names</title>


with titles being loaded but not the songs.

If rgnelson has made Wimpy work and would like to share it with us that would be great. Otherwise, I'm putting this on the wayyy back burner for the time being and using the xspf and Jeroen players.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
rgnelson



Joined: 28 Feb 2005
Posts: 726

Posted: 03/12/06 12:16 
This works for me: Wink

Code

<filename>{JAMROOM_URL}/stream.php%3Fmode=song_hifi%26band_id={BAND_ID}%26song_id={SONG_ID}%26ext=.mp3</filename>


Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/12/06 18:47 
Very Happy Bing-o-rama, we have a winner folks!
Thanks much, rgnelson!

Other folks interested in using the WIMPYPLAYER::

In song_mp3player_header.tpl:


Code
<?xml version="1.0" encoding="UTF-8"?>
<playlist>



song_mp3player.tpl:

Code

   <item>
     <filename><filename>{JAMROOM_URL}/stream.php%3Fmode=song_hifi%26band_id={BAND_ID}%26song_id={SONG_ID}%26ext=.mp3</filename></filename>
     <title>{SONG_NAME}</title>
   </item>


In song_mp3player_footer.tpl:

Code
</playlist>


In Theme.cfg:

Code
# XML playlist
   song_mp3player_header.tpl  |  mp3player.xml
               song_mp3player.cfg | mp3player.xml
     song_mp3player_footer.tpl  | mp3player.xml


In song_mp3player.cfg:

Code
song_mp3player.tpl



And last, point your WimpyPlayer to: http://www.yoursite.com/jamroom/bands/[band_number]/mp3player.xml.


So, boys and girls we now know how to reskin the XSPF player, how to set up the playlist to work with the Jeroen MP3Player and set up the playlist to work with the Wimpy mp3 player.

Click Here for more info about Wimpy Player

Thanks again rgnelson.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php

Last edited by SunLizzard on 03/12/06 19:30; edited 1 time in total
Back to top
rgnelson



Joined: 28 Feb 2005
Posts: 726

Posted: 03/12/06 18:58 

Quote:

Remember, Wimpy MP3player you must have protect song directory set to no, so use at your own risk!


The above is not a true statement.

Back to top
SunLizzard



Joined: 10 Apr 2004
Posts: 64
Location: Las Vegas

Posted: 03/12/06 19:30 
Stricken from the record.


_________________
Yes, that really IS me...
------------------------------------
King Lizzard Las Vegas
http://www.kinglizzard.com
Music Vault at http://www.kinglizzard.com/multimedia/members/1/index.php
Back to top
rgnelson



Joined: 28 Feb 2005
Posts: 726

Posted: 03/12/06 19:38 
SunLizzard -
Your site looks great!
Nice Flash player!

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

1234Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.