Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Audio Player for the Website
Old 12-17-2008, 10:59 AM Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Hello,

I have seen some free audio players which work neatly but some of them have the site link on it which cannot be removed. Can anyone help me on getting a media player for my website? I can't find any ones that seem straightforward.

I have a wesbite, say www.domain.com where I would like the media player displayed. I also have another website e.g. www.other.com where I do not use it for anything apart from uploading media files. I have a folder where all the audio I'd like to be played on the media player are.

How can I get this on my site?

Regards.
Member111 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-17-2008, 04:00 PM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Anyone know how?
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 08:18 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi there, you can download the following ZIP file http://www.broadcastforensics.com/audioplayer.zip

It's an open source flash player I used on my own website -
upload the files to a directory, you can then include the files in your website using the following code...


HTML Code:
<script language="JavaScript" src="audio-player.js"></script>
<p><object height="24" width="290" id="audioplayer1" data="player.swf" type="application/x-shockwave-flash">
<param value="player.swf" name="movie" />
<param value="playerID=1&amp;soundFile=filename.mp3" name="FlashVars" />
<param value="high" name="quality" />
<param value="false" name="menu" />
<param value="transparent" name="wmode" /> </object>
Hope that helps,
Thanks
Andy
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 12:34 PM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Hello,
Code:
 
 
<script language="JavaScript" src="audio-player.js"></script>
<p><object height="24" width="290" id="audioplayer1" data="player.swf" type="application/x-shockwave-flash">
<param value="player.swf" name="movie" />
<param value="playerID=1&amp;soundFile=filename.mp3" name="FlashVars" />
<param value="high" name="quality" />
<param value="false" name="menu" />
<param value="transparent" name="wmode" /> </object>
playerID=1&amp;soundFile=filename.mp3"

Filename? What if I have loads of files. Please do assist.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 12:36 PM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi,
Unfortunately that player is only suitable for one file at a time...

The XSPF Music Player would be more suited to your needs.

http://musicplayer.sourceforge.net/

Thanks,
Andy
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 12:38 PM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Hello,

Yes I've seen that before, the one that can play many files.

Could you help me witht he coding please?

My site is www.domain.com

and the files are stored on www.other.com [as an example].
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 07:42 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi,
yes of course,
download the extended version of the player.

upload it to your server.
you need to create your playlist files next,
create a new text file, call it playlist.xspf
Place the following code in..

HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <trackList>
        <track><location>http://www.domain.com/mp3s/song_1.mp3</location></track>
        <track><location>http://www.domain.com/mp3s/song_2.mp3</location></track>
        <track><location>http://www.domain.com/mp3s/song_3.mp3</location></track>
    </trackList>
</playlist>
Obviously replace the urls with your own links...

Then you need to include the whole thing on your page, you can use the following for that.


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


I hope that helps !
Andy
__________________

Please login or register to view this content. Registration is FREE

Last edited by Andy Pugh; 12-19-2008 at 07:47 AM..
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 08:32 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Hello,

Okay done the steps but it's not loading for some reason.

Thanks.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 08:39 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi there, If you give me the link to where you have it live, I'll take a look.
Andy
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 08:49 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
http://www.the-deen.co.uk - right sidebar, bottom.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:32 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi, OK, the code has been pasted wrong..you haven't placed an open object tag for starters.. replaced what I've put in the {replace} {replace} tags with what I've put below... you'll need to adjust the width and height obviously..

HTML Code:
<li id="text-304858981" class="widget widget_text">            <h2 class="widgettitle">Audio</h2>            <div class="textwidget"><object type="application/x-shockwave-flash" width="137" height="170"


{replace} data="http://the-deen.co.uk.co.uk/xspf_player.swf?playlist_url=http://the-deen.co.uk/playlistlist.xspf">
<param name="movie" 
value="http://the-deen.co.uk/xspf_player.swf?playlist_url=http://the-deen.co.uk/playlistlist.xspf" />
</object> {replace}

</div>
replace it with this code...
HTML Code:
<object type="application/x-shockwave-flash" width="450" height="170"
data="http://the-deen.co.uk/xspf_player.swf?playlist_url=http://the-deen.co.uk/playlistlist.xspf
">
<param name="movie" 
value="http://the-deen.co.uk/xspf_player.swf?playlist_url=http://the-deen.co.uk/playlistlist.xspf
" />
</object>
Thanks,
Andy
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:35 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Hmm,

In the sidebar widget I did put the object tag but I guess it wipes it out.

I'll go into the original sidepar file and paste the code there.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:40 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Still doesn't work, doesn't show up at all. Very odd indeed.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:42 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
I even tried doing it on a normal php file, not on a wordpress blog: http://the-deen.co.uk/aud.php but no results there. : |
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:42 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Is it on your page at the minute? You need to be adding it right into the source, don't use wysiwyg editors...
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:43 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Quote:
Originally Posted by Member111 View Post
I even tried doing it on a normal php file, not on a wordpress blog: http://the-deen.co.uk/aud.php but no results there. : |
http://the-deen.co.uk/playlistlist.xspf

That link to your playlist file doesn't work...
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:47 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
Okay I tried ipening it from the ftp and it said the following:


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. The following tags were not closed: playlist. Error processing resource 'ftp://blahblahblah...
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:48 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
I put in a playlist closed tag and it opens but the actual player doesn't work.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:49 AM Re: Audio Player for the Website
Average Talker

Posts: 19
Trades: 0
For now just stick to http://the-deen.co.uk/aud.php as it doesn't show up at all on the wordpress page (index) but does in a spearate file I made.
Member111 is offline
Reply With Quote
View Public Profile
 
Old 12-19-2008, 09:50 AM Re: Audio Player for the Website
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
You need to change the link to your playlist file to http://the-deen.co.uk/playlist.xspf

You've put list twice....
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Audio Player for the Website

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.81946 seconds with 12 queries