I know you can't change it, but I'd like 开发者_如何转开发to instrument the system volume setting inside my app.
Thanks!
Currently there is no API for getting or setting the system volume. You can set the volume of your own MediaElements, however, this is combined with the system volume to determine the overall playback volume.
See also:
Windows Phone 7 Volume Settings programmatically
Did you try the MediaElement.Volume property?
http://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement.volume(v=vs.95).aspx
I don't know the exact way to use it, but it seem like there is a possibility with this class.
Sorry if it doesn't help you.
精彩评论