www.webdeveloper.com
Results 1 to 9 of 9

Thread: Volume Control on Web Page

  1. #1
    Join Date
    Nov 2002
    Location
    Atlanta, GA CSA
    Posts
    1

    Volume Control on Web Page

    I am a 'newbie' to building web-pages and working on 1 for my church.

    I have seen various web-sites that have a volume control, usually a slider bar of some kind, that allows the person to adjust the volume of the music being played on that page. I know how to add the music to the page, but how do I get the volume control displayed? Sometimes it is a QuickTime control and others it is Windows Media Player.

    Thanks in advance for your help.

  2. #2
    Join Date
    Dec 2002
    Location
    US
    Posts
    128
    I think you're talking about the EMBED tag. It goes something like this:

    Code:
    <EMBED SRC="filename.mid"></EMBED>
    Basicall, it tells the browser to embed the sound. However, the embed commands are associated with plug-ins. You might want to insert Width=x and Height=x the code above, that's what deals with the control panel.

  3. #3
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Typically you'd have to use propriety <param>, attributes within an <object>. For example in QuickTime: <param name="controller" value="true" /> since <embed> doesn't really exist also you'd have to set up your mime types.

    As it has been said before you are relying on plugins and cannot truly affect which media player is used, however you can sway the balance by using good code.

  4. #4
    Join Date
    Dec 2002
    Location
    US
    Posts
    128
    Robert, you can still use the EMBED tag. Unless you can't run it under a browser that works, then you have to use something else. It might not meet the HTML 4 line specification at W3C though. Also, the code...

    Code:
    <param name="controller" value="true" />
    You really don't need the slash "/" at the end there.

  5. #5
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by ecross
    Robert, you can still use the EMBED tag. Unless you can't run it under a browser that works, then you have to use something else. It might not meet the HTML 4 line specification at W3C though. Also, the code...

    Code:
    <param name="controller" value="true" />
    You really don't need the slash "/" at the end there.
    The "/" comes from the habit of typing XHTML, where the "/" IS required, but technically it's wrong in HTML 4.01

    Though, if you MUST use propietary code like <embed> at least start using the proper <object> tag to nest it if possible.

    eg

    <object><embed></embed></object>

    That should make correctly working browsers use the <object> tag while leaving in the <embed> for old buggy browsers that only understands <embed>.

  6. #6
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Stefan you are slacking the proprietary <embed> is an empty element .

  7. #7
    Join Date
    Mar 2008
    Posts
    2

    Hi

    Quote Originally Posted by BobTheTechie
    I am a 'newbie' to building web-pages and working on 1 for my church.

    I have seen various web-sites that have a volume control, usually a slider bar of some kind, that allows the person to adjust the volume of the music being played on that page. I know how to add the music to the page, but how do I get the volume control displayed? Sometimes it is a QuickTime control and others it is Windows Media Player.

    Thanks in advance for your help.

    I tend to agree mostly, but I'm still not sure that I understand everything here.














    =================================================

    Visit my site - http://www.chinesemedicineadvisor.com

  8. #8
    Join Date
    Feb 2008
    Posts
    8
    Being a new developer, it is easy to get caught up in trying to sho what you can do not necessarily what you should do. I would rethink adding music to the site as it typically doesn't offer much value. It can take a long time to load and some people are just annoyed by it. I would say take the time and spend it on home to make it more visually appealing and navigatible.

  9. #9
    Join Date
    Mar 2008
    Posts
    2

    Ok

    Quote Originally Posted by BobTheTechie
    I am a 'newbie' to building web-pages and working on 1 for my church.

    I have seen various web-sites that have a volume control, usually a slider bar of some kind, that allows the person to adjust the volume of the music being played on that page. I know how to add the music to the page, but how do I get the volume control displayed? Sometimes it is a QuickTime control and others it is Windows Media Player.

    Thanks in advance for your help.
    This will be a pretty good thread - just not quite getting everything - but there again, I'm new!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles