Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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? I need to fix my app from playing sound effects when it is on vibrate.

Thanks!

like image 417
James Avatar asked Jul 13 '11 01:07

James


2 Answers

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

like image 100
Jason Avatar answered Oct 25 '22 09:10

Jason


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.

like image 42
the_Crispy Avatar answered Oct 25 '22 09:10

the_Crispy