Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Play Mp3 Music Online


14 replies to this topic

#1 farsiscript

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 357 posts
  • Interests:... No More !

Posted 31 August 2006 - 05:55 PM

hi all
i want make one html page with 4~6 mp3 link
i want users when click at mp3's link play at online player in page !
do you know how can do it that ? or do you know good music player in web (flash , MediaPlayer )
plz help me
thanks dears

#2 crazyteens

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 61 posts

Posted 01 September 2006 - 08:10 AM

Flash MP3 Player
The Flash/Perl MP3 Player is a complete web-based streaming mp3 player for your perl-friendly website. Downloading the zip file will allow you to upload mp3 files directly to your website. As mp3 files are added, your playlist is automatically updated. Works with frames or without. This will run on your server or your money back!


check it out
http://www.gigfoot.net/software/1.html

#3 farsiscript

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 357 posts
  • Interests:... No More !

Posted 02 September 2006 - 07:02 PM

Hi all Thanks dear crazyteens
i find this Javascript soruce code you can play and playlist


<p class="nav">Music playlist</p>
<p class="menubottom">

<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object><form name="form">
<select style="FONT-SIZE: 8pt; BACKGROUND: #EEEAEA; WIDTH: 166px; COLOR: #A8A8A8; font-face: Comic Sans MS" name="playlist" size="1">
<option value="0">SONG TITLE!!!</option>
<option value="1">SONG TITLE!!!</option>
<option value="2">SONG TITLE!!!</option>
<option value="3">SONG TITLE!!!</option>
<option value="4">SONG TITLE!!!</option>
<option value="5">SONG TITLE!!!</option>
<option value="6">SONG TITLE!!!</option>
</select><input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.Pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.Stop(); playstate=2;"></p>
</form>
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 1;  // set to 0 to always play first song in list
			 // set to 1 to randomly choose the first song to play
songs=new Array();
songs[0]="SONG URL!!!";
songs[1]="SONG URL!!!";
songs[2]="SONG URL!!!";
songs[3]="SONG URL!!!";
songs[4]="SONG URL!!!";
songs[5]="SONG URL!!!";
songs[6]="SONG URL!!!";

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

You can add many file

#4 darran

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 661 posts
  • Gender:Male
  • myCENT:ZERO

Posted 02 September 2006 - 10:24 PM

I have a very simple method as compared to what the others have posted, for you to play a music player in another page. Create a link and in that particular page you have linked your music to and then enter this code

<embed src="www.test.com/123.mp3">

In other words, lets say you have a link to this new page (song1.html), and on song1.html; enter this code in your html in where you want to place your player. Most probably you would want an empty page where it centralises the player with a link back to the previous page.

There are other properties you would like to edit like whether it loops after the end of the song or anything like that.

So there you have it, the default windows media embedded player in your webpage.

#5 Lozbo

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 282 posts
  • Location:Wanatos
  • Interests:Multimedia Arts and Technologies =)

Posted 11 October 2006 - 06:20 PM

I only know about plugins for CMS that do that ... I have not tried it without a CMS, but the options provided here seem good...

The plugins I speak of (they are for wordpress, actually), are made in flash and they look very fansy and work good. If you'd like more on this, leave a reply...

#6 firehands

    Newbie

  • Kontributors
  • Pip
  • 6 posts

Posted 14 December 2006 - 11:10 PM

Heres a method for "pseudostreaming" which btw really is streaming as the mp3s can play while they are being down loaded

place the a list of tracks in a plain text file and name it "mytracks.mpu"
eg

track1.mp3
track2.mp3
track3.mp3
track4.mp3
track5.mp3
track6.mp3
track7.mp3

and place a link to it in your web page

<a href="mytracks.m3u">listen to my new album</a>

this assumes that your mp3s, the mpu file and the web page are all in the same directory.

When the user clicks on the link, a media player will open the file and play it.

with any luck the mime type will have already been set up for you

If not you may be able to create/edit an .htaccess file in the same directory so that it includes the following line:
AddType audio/x-mpegurl m3p

HTH

#7 farsiscript

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 357 posts
  • Interests:... No More !

Posted 07 January 2007 - 07:43 AM

Hi firehands and Lozbo darran i use last javascript code , but know i need to ajax or flash media player for play mp3 or wma files . i search at internet and i can'nt find any result for online radio or media player !
if you have link or script please post here
thanks

#8 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 03 April 2008 - 10:05 AM

Play mp3 on my site
Play Mp3 Music Online

Replying to farsiscript
I need to play mp3 file on my site. When visitors come to my site on Entertainment page they can play my playlist...

How can I do it..? Any one out there know how to do it...?

Help me...

Cheer for today...

-reply by LanunLuch

#9 jopak134

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 317 posts

Posted 09 April 2008 - 05:45 PM

i am also wondering how to do this and a lot of solutions that are posted are really helpful ^_^

#10 oestergaard

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 39 posts

Posted 10 April 2008 - 02:45 PM

it is alowed to upload mp3 files?




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users