Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 654291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:28:42+00:00 2026-05-13T22:28:42+00:00

I am using media player to play audio and video. I am creating own

  • 0

I am using media player to play audio and video. I am creating own button to increase and decrease the volume of the media player. working fine too.

Problem:

Even after reaches 0% volume its audible. If the player volume increase the system volume also be increased. Is it possible. How to achieve this task.

Control:

<object id="mediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    height="1" standby="Loading Microsoft Windows Media Player components..."
    type="application/x-oleobject" width="1">
    <param name="fileName" value="" />
    <param name="animationatStart" value="true" />
    <param name="transparentatStart" value="true" />
    <param name="autoStart" value="true" />
    <param name="showControls" value="true" />
    <param name="volume" value="70"  />
</object>

Code:

function decAudio() {
    if (document.mediaPlayer.Volume >= -1000) {
        var newVolume = document.mediaPlayer.Volume - 100;
        if (newVolume >= -1000) {
            document.mediaPlayer.Volume = document.mediaPlayer.Volume - 100;
        } else {
            document.mediaPlayer.Volume = -1000;
        }
    } 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:28:43+00:00Added an answer on May 13, 2026 at 10:28 pm

    if the audio is still audible once document.mediaPlayer.Volume is set to 0, why don’t you set
    document.mediaPlayer.Settings.mute = true ?

    also are you sure that document.mediaPlayer.Settings.Volume isn’t the correct reference instead of document.mediaPlayer.Volume? it looks like you’re trying to access the parameter/property value directly instead of going through the mediaplayer’s javascript (or jscript) interface.

    here’s some general reference for you of the “most important” parameters supported by Windows Media Player 7 and later:

    obj = document.getElementById("mediaPlayer");

    1. Code
      • Parameters or default value
      • Description
    2. obj.Settings.autoStart
      • true
      • Specifies or retrieves a value indicating whether the current media item begins playing automatically.
    3. obj.Settings.baseURL
      • –
      • Specifies the base URL used for relative path resolution with URL script commands that are embedded in media items.
    4. ClosedCaption.captioningID
      • 0
      • Specifies the name of the element displaying the captioning.
    5. obj.Controls.currentMarker
      • 0
      • Specifies the current marker number.
    6. obj.Controls.currentPosition
      • 0
      • Specifies the current position in the media item in seconds.
    7. obj.Settings.defaultFrame
      • –
      • Specifies the name of the frame used to display a URL.
    8. obj.enableContextMenu
      • true
      • Specifies a value indicating whether to enable the context menu, which appears when the right mouse button is clicked.
    9. obj.enabled
      • false
      • Specifies whether the Windows Media Player control is enabled.
    10. obj.fullScreen
      • false
      • Specifies whether video content is played back in full-screen mode.
    11. obj.Settings.invokeURLs
      • true
      • Specifies a value indicating whether URL events should launch a Web browser.
    12. obj.Settings.mute
      • false
      • Specifies if audio is muted.
    13. obj.Settings.PlayCount
      • 1
      • Specifies the number of times a media item will play. Minimum value of one.
    14. obj.Settings.rate
      • 1.0
      • Specifies the playback rate.
        0.5 equates to half the normal playback speed, 2 equates to twice.
    15. obj.stretchToFit
      • false
      • Specifies whether video displayed by the control automatically sizes to fit the video window, when the video window is larger than the dimensions of the video image.
    16. obj.uiMode
      • full
      • Specifies which controls are shown in the user interface.
        Possible values: invisible, none, mini, full.
    17. obj.URL
      • –
      • Specifies the name of the media item to play.
        You can specify a local filename or a URL.
    18. obj.Settings.volume
      • Last setting
      • Zero specifies no volume and 100 specifies full volume.
    19. obj.Settings.balance
      • false
      • Set balance between left and right speakers. 0 is egual, -100 is full left and 100 is full right.
    20. obj.windowlessVideo
      • false
      • Specifies or retrieves a value indicating whether the Windows Media Player control renders video in windowless mode.
        When windowlessVideo is set to true, the Player control renders video directly in the client area, so you can apply special effects or layer the video with text.
        Supported by Windows Media Player for Windows XP or later.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Media Player Framework to play an audio stream from the
I'm creating a simple media player using jlGUI and jAudiotagger libraries. I've used a
I am using the Media Element JS to play some audio on my page.
I'm using Windows Media Player in a web page. I have version 11 installed
I'm trying to run a mp3 file using android media player. I'm using this
I currently developed a media player using directshow.net. The videos have a small timestamp
My application shows list of media(audio and Video) files in the sdcard along with
I convert a file using ffmpeg command in which audio and video bitrate are
Am using MediaPlayer framework to play the video in my iPhone application. I am
I made a poject where two audio play using touch with the two different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.