简体   繁体   English

查看 WP7 是否处于静音模式

[英]Find out if WP7 is in silent mode

Does anyone know how to find out if a WP7 is on silent/vibrate mode in a silverlight app?有谁知道如何在 silverlight 应用程序中找出 WP7 是否处于静音/振动模式? I need to fix my app from playing sound effects when it is on vibrate.我需要修复我的应用在振动时播放音效。

Thanks!谢谢!

Will MediaPlayer.IsMuted work? MediaPlayer.IsMuted 会起作用吗?

http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.mediaplayer.ismuted.aspx http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.mediaplayer.ismuted.aspx

Here is the discussion that pointed me there where they suggest that it should be usable from silverlight.这是向我指出的讨论,他们建议它应该可以从 silverlight 使用。 http://forums.create.msdn.com/forums/p/64166/392704.aspx http://forums.create.msdn.com/forums/p/64166/392704.aspx

As you can see by checking these classes: http://msdn.microsoft.com/en-us/library/microsoft.phone.info(VS.92).aspx there is currently no way in getting the devices sound settings, not even in Mango, and not in NoDo, too.正如您通过检查这些类所看到的: http://msdn.microsoft.com/en-us/library/microsoft.phone.info(VS.92).aspx目前无法获取设备声音设置,而不是即使在 Mango 中,也不是在 NoDo 中。 Sorry.对不起。

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

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