tags:

views:

11

answers:

1

In my viewWillAppear:(bool)animated method I want to stop video playing. How can I do this? I am new I don't know much. I am playing a video on this screen. I have a tab which shows table view. When I click on the tab the table view is shown but video is playing in background: we can hear the music.

A: 

If you are using MPMoviePlayerController, call -pause on that object.

Peter DeWeese
thanks for your answer i am using [indexViewCont.videoPlayer Pause];
[indexViewCont.videoPlayer stop];
[indexViewCont.videoPlayer autorelease]; also but it does not stops we can hear the music in background.