简体   繁体   English

有没有办法读取Windows Phone上的当前系统音量设置?

[英]Is there a way to read current system volume setting on Windows Phone?

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. 当前没有用于获取或设置系统音量的API。 You can set the volume of your own MediaElements, however, this is combined with the system volume to determine the overall playback volume. 您可以设置自己的MediaElement的音量,但是,将其与系统音量结合起来即可确定总体播放音量。

See also: 也可以看看:

Windows Phone 7 Volume Settings programmatically Windows Phone 7音量设置以编程方式

Did you try the MediaElement.Volume property? 您是否尝试过MediaElement.Volume属性?

http://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement.volume(v=vs.95).aspx 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. 抱歉,如果对您没有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM