41 users online (0 members and 41 guests)  

Thread: Music Files


  Results 1 to 3 of 3

Related

  1. Looking for Files..    Forum: HTML Forum
    Replies: 3
  2. Help, i need help with .htc files..    Forum: CSS Forum
    Replies: 3
  3. Playing music files on web pages    Forum: HTML Forum
    Replies: 20
  4. .pdf files    Forum: HTML Forum
    Replies: 2
  5. Playing music files on web pages    Forum: HTML Forum
    Replies: 2
  1. #1
    SCG's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    10

    Music Files

    Hi!
    I want to set up a page so that users can hear samples of songs from a CD.
    I can do it by making series of buttons to load a new page that autostarts a .wav file but this is probably not the best way. So some questions are:
    1. What is the best method?
    2. What is the best music file format to use (quality vs size, also most universal)?
    3. How can I ensure a file only downloads when user wants it to?
    All sugestions welcome.

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    a wav or mp3 woruld work. I see nothing wrong with just creating a basic link to the file.

    Dave

  3. #3
    coreybryant's Avatar
    Texan at Heart

    Status
    Offline
    Join Date
    Jun 2003
    Location
    Castle Rock, CO
    Posts
    107
    I use this code a lot:

    <object id="MediaPlayer" width=320 height=286
    classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    standby="Loading Microsoft® Windows® Media Player components..."
    type="application/x-oleobject"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
    <PARAM NAME="filename" VALUE="interview_fox_video.asx">
    <PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="true">
    <param name="ShowStatusBar" value="true"> <PARAM NAME="Autorewind" VALUE="true">
    <PARAM NAME="ShowDisplay" VALUE="false">
    <EMBED SRC="interview_fox_video.asx" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
    </EMBED></OBJECT>

    Just change the source (interview_fox_video.asx) in BOTH places to the path of yours. You can also change the dimensions.

    If they want to download it - you can place a link & suggest they right click & save as. Depending on how they might have their browser set up - it might just open their default player if they click on it.

    A WMA is really small, but will not work in Netscape or on a MAC. You can also use a MOV (Quicktime). A lot usually give you the choice between what format. This would help to cut down on your bandwidth some.



Tags for this Thread