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 7862323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:05:23+00:00 2026-06-02T23:05:23+00:00

So I would like to allow the user to select a song from their

  • 0

So I would like to allow the user to select a song from their media library and play it back at a variable volume. From what I understand, the following are true:

  • Songs are accessed via an instance of the MediaLibrary
  • Songs can be played with MediaPlayer.Play()
  • Changing MediaPlayer.Volume has no effect on songs from the MediaLibrary (as of XNA 4.0)
  • There is a System.Windows.Controls.MediaElement control but its source is either a stream or a Uri

Has anyone found a way around these limitations, to play a Song from the MediaLibary at different volumes? I can only think of two ways this might be possible. One, somehow wrap a Stream around the Song and feed it to a MediaElement (either directly or by copying the Song to isolated storage and streaming it from there), or two, get access to the MediaLibary with a Uri. Does anyone know if either of these is possible?

Also, I haven’t looked at Microsoft.Phone.BackgroundAudio, is there anything useful in there?

Thanks.

  • 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-06-02T23:05:25+00:00Added an answer on June 2, 2026 at 11:05 pm

    The user is in complete control over the volume of what comes out of the phone.

    The value of MediaPlayer.Volume is relative to the volume that the user has set. (I always set this to 1 and have yet to find a real life need to set this to anything else.)

    Yes, this means that you can’t do what you’re trying to.
    If you could it woudl mean that even if the user had turned the volume on the device to very quiet your app could suddenly play a sound much louder. This would not be a predictable user experience and probably not what the user desires.

    And no, there’s no alternative with background audio and no, you can’t get a URI to an item in the MediaLibrary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to allow a user to automatically login if they use their
I've got a TextView that I would like to allow the user to select
I would like to allow the user to click within my UserControl and drag
I would like to allow a user to click on a JList and if
I'm creating a new WP theme and I would like to allow the user
I would like to allow the logged user to edit MediaWiki/Common.css without adding them
I would like to be able to allow a user to enter a custom
I'd like to allow a user to add a shape (which would just be
I am using WPF DataGrid and I would like to allow the user to
I'm working a custom workflow activity and would like to allow the user to

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.