I want to pause my background music when my device running video ads.
For this stuff, I have written this code.

	void OnApplicationPause (bool pause)
	{
		Debug.Log("pause : " + pause);
		if(pause)
			SoundManager.Instance.PauseGameMusic();
		else
			SoundManager.Instance.PlayGameMusic();
	}

But in my iphone, this code is not working at all. Basically my goal is to pause game music at the time of video playback.

Please give me some suggestion for this.

Try AudioListener.pause

Actually I can able to solve this problem through my way only. Some sort of thinking, I have strike in mind then decided and implemented following thing.

Just when ad is about to display on screen before that call I put a statement for pausing game music.
When ad is closed by player at that time close event is fired but listener, in this place I have added statement to playing music again.

Here I pasted this give idea to other members who face similar problem like mine. But this is true I didn’t able to get call of OnApplicationPause method in iPhone device.