开发者

Find out if WP7 is in silent mode

开发者 https://www.devze.com 2023-03-19 16:06 出处:网络
Does anyone know how to find out if a WP7 is on silent/vibrate mode in a silverlig开发者_JAVA技巧ht app?I need to fix my app from playing sound effects when it is on vibrate.

Does anyone know how to find out if a WP7 is on silent/vibrate mode in a silverlig开发者_JAVA技巧ht app? I need to fix my app from playing sound effects when it is on vibrate.

Thanks!


Will MediaPlayer.IsMuted work?

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. 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. Sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号