Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: web sound?

  1. #1
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question web sound?

    Hi,
    I am a newbie, I'm trying to have a song play on my site when a visitor clicks on a picture. I uploaded the music file, and hyperlinked it from a picture. Problem is, it doesn't play from the site. windows media player plays it from the visitor computer. How can I set it up to play off the site it self? I'm also having the same problem with videos. Do I need to upload something else to the site? I'm lost. Thanks
    BrianNY/Rookie

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what type of music file is it? (midi,mp3,wav,asx,ect.)
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    Thanks for getting back to me. I think it's a windows media player file. Do I need a diferent type of file? Between the sound thing and the video thing I'm lost. When I click on the picture that links to the song, my windows media player opens and plays the song. I want it to play from the site. That big WMP screen comes up and covers 1/2 my screen. I'm doing something wrong. Thanks again
    BrianNY/Rookie

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try the following:

    <embed src="http://yoursite.com/yourfile.wma" height="26" width="70" autostart=true border=0>

    or for video...

    Code:
    <OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240 
        CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
        STANDBY="Loading Windows Media Player components..." 
        TYPE="application/x-oleobject">
    
      <PARAM NAME="FileName" VALUE="yourfile.asf">
      <EMBED TYPE="application/x-mplayer2" 
        SRC="http://yoursite.com/yourfile.asf"
        NAME="MediaPlayer"
        WIDTH=320
        HEIGHT=240>
      </EMBED>
    </OBJECT>
    what code are you using that isnt working?
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #5
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did I mention I'm new to this? Where do I put that code? Seeing that, I'm really lost.
    BrianNY/Rookie

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For the audio code, you can put it anywhere between the <body> tags

    for the video code, put it where ever you want the video to display
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #7
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do I need to upload any progams to the server? When you say put it where ever I want the video to be displayed, what do you mean? I know I'm a pain in the butt, I'm a bit lost with this.
    BrianNY/Rookie

  • #8
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you do not need to upload and software, the software to play music is on the individual visitors computers who visit your site. You will obviously need to upload the music file.

    If you are unfamiliar with web design, perhaps you should start at something a little more basic than music and video. There are several basics that you should understand before trying to incorporate multimedia.

    check out these previous posts about similar questions:
    http://www.codingforums.com/search.p...der=descending
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #9
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh no, don't give up on me, I just need a more simplified instruction on what to put where. The site, which I did just for the fun of it, is coming out pretty cool. It's based around R?C cars. Have a look see www.MCD4x4.com
    BrianNY/Rookie


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •