I am able to insert MP3 files on web page but I want to display a list of 10 songs and user may select anyone. The selected song must be played in the player on the web page(I dont want separate player for every song. is this possible?)

am posting an example here.. once check it out..

http://cinefolks.com/telugu/AudioSongs/movie/Ek+Niranjan/

once open above link..u ll come to understand..

I want the same like that..users must not download songs..if I use flv player they will download through some addons exists in firefox..

Recommended Answers

All 3 Replies

depending on the script/controls/parameters of the pplayer you select <a href='#' onclick='player.src="file.mp3";'>Play file</a> this is a simple wmp, because the code is in my head already, get the correct code off the flash plyer howto page

<a href="http://www.microsoft.com/windows/windowsmedia/player/download/">
<IMG ALT="Get Windows Media Player"  src="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></a><br>
<OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="fileName" VALUE="">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="PlayCount" VALUE="0">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="" name="MediaPlayer1" width=360 height=260 AutoStart=true></EMBED></object>
<a onclick="MediaPlayer1.SRC='thisfile';MediaPlayer1.fileName='thisfile';">Play This file</a><br>
<a onclick="MediaPlayer1.SRC='thatfile';MediaPlayer1.fileName='thatfile';">Play That file</a><br>
<a onclick="MediaPlayer1.SRC='nuthafile';MediaPlayer1.fileName='nuthafile';">Play nutha file</a><br>

loads the player and places it on the page (without playing untill a link is clicked)

@almostbob

Thanx for Reply..

But in the link which I mentioned in above post..users cant see the file url's and they are not accessed to unauthorized downloads.

But from the code u posted,

Users can see the url of an mp3 file and they can easily download.

:(.

www.tsplayer.com

Once chek the abv url for my requirements.Now I cant buy that.


Please help.

the first lines of the post

depending on the script/controls/parameters of the pplayer you select
<a href='#' onclick='player.src="file.mp3";'>Play file</a> this is a simple wmp, because the code is in my head already, get the correct code off the flash plyer howto page

is there any part of get the correct code from the flash player web site that I can make clearer, the parameters for the player will be different
using a server side script, ajax, or other the urls do not have to be displayed,
tried to answer 'Is this possible' (yes its possible) and suggest a mechanism and a place to get the right answer specific to you

get off your **expletive deleted** and do the search

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.