Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-29-2006, 06:51 PM   #1 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 265
Send a message via AIM to Biggie578
Default XSPF Web Music Player in php

I have a php blog setup and i wanted to put in the xspf player on top, but i dont know how to put it in my index.php. Help would be appreciated. I removed the blog so i had an empty directory(except for the player files)/domain and i made an index.html with notepad and it loaded, but it wasnt the slim player that i had uploaded and it would load a default playlist from another server and not one that i had uploaded.

Here is the playlist.xspf taht i made in notepad. (what type of encoding should i use when saving it?)

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.hsascommunity.com/kon/med...A-RI-SU-MA.mp3</location>
<annotation>ORANGE RANGE - KA-RI-SU-MA</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/med...Locolotion.mp3</location>
<annotation>ORANGE RANGE - Locolotion</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/media/music/Love & Peace! Hero ga Yattekita.mp3</location>
<annotation>Morning Musume - Love & Peace! Hero ga Yattekita</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/media/music/Matsuri Danshaku.mp3</location>
<annotation>ORANGE RANGE - Matsuri Danshaku</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/media/music/Oh! Yeah.mp3</location>
<annotation>ORNAGE RANGE.mp3</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/med...ic/Ryuusei.mp3</location>
<annotation>TiA - Ryuusei</annotation>
</track>
<track>
<location>http://www.hsascommunity.com/kon/med...Shabondama.mp3</location>
<annotation>Morning Musume - Shabondama</annotation>
</track>
</trackList>
</playlist>

here is an example of it in use in a php page. www.jpop.com/overclock

Links:
http://musicplayer.sourceforge.net/
http://www.xspf.org/
Biggie578 is offline   Reply With Quote
Old 08-01-2006, 01:05 PM   #2 (permalink)
Monster Techie
 
Join Date: Apr 2005
Posts: 1,905
Send a message via AIM to jcortes
Default

would you mind sending the code that you put to embed the player that would help solve the problem.
__________________

AIM = jcortestechhelp
jcortes is offline   Reply With Quote
Old 08-02-2006, 06:32 AM   #3 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 265
Send a message via AIM to Biggie578
Default

well, the only code i have is for html which was on the sourceforge link

Code:
<object type="application/x-shockwave-flash" width="400" height="170"
data="http://musicplayer.sourceforge.net/xspf_player.swf?playlist_url=http://yourdomain.com/yourplaylistlist.xspf">
<param name="movie" 
value="http://musicplayer.sourceforge.net/xspf_player.swf?playlist_url=http://yourdomain.com/yourplaylistlist.xspf" />
</object>

Biggie578 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:23 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0