I am using AVQueuePlayer and it is working fine.
My problem now is that I have a back button. If I press the button, previous video needs to be played. Is there any way for that?
Thanks.
Related
hi i want to play a video and it pause after a fixed time like 3:12 mm at the same time i want to show one view to user where form is there and when user fill form and submit the button then again play the video.
My Suggestion is use two instance of videoPlayer object. so when pausing first one make it 2nd player to play the video.
And Please use hidden property.
I have a video on the first view that use 'MPMoviePlayerController'. I declare the video in 'viewDidLoad' method. I need the video play continuously when go to another view and come back. Is it possible? How?
yes it Possibe play video in background mode try this link
Hope it Help You
I have multiple buttons that play sounds using AVAudioPlayer. If you press one, and press another before the first ends, they are both playing at the same time. How would i make it so if you press two buttons, only the last pressed button's sound plays?
I don't know the exact code, but you may have to bool something or try AudioServicesDisposeSystemSoundID. It will stop the sound immediately.
Before you start the new song you have to do:
[song1 stop];
song1.currentTime = 0;
And do that for all the songs that could be possibly playing. Then you can make the new song play. (The current time sets it to start from the beginning if you play it again.) hope that helps :)
I like to know, are there any events can get triggered in our program whenever user is clicking on Camera start/stop buttons to record/stop the video?
From my application, it is possible to launch Video camera and start video recording and come back with the recorded video. I am using UIImagePickerController and didFinishPickingMediaWithInfo to get the data. It works fine. I want to handle something whenever user starts the video recording by clicking on built-in camera start button. Is it possible?
Please advise.
Thank you!
This is not possible using UIImagePickerController's default interface. You could however create a custom view (including a record button) and show it over the controller using the cameraOverlayView property. When the user presses your custom record button, call start/stopVideoCaptureāthis would provide you with the information you're after.
If I use MPMoviePlayerController to play video in my iPhone app, it opens, loads the movie, plays it and then closes. Is it possible to force it to stay open after the movie finishes, so that user can replay it using its controls, instead of using controls in parent view? Also, is it possible to start MPMoviePlayerController in the paused mode?
thanks for any advice.
None of that is possible using the available API in the Pre-3.2 OS. One thing you could do is take a scerenshot of the last frame and stick that behind the movie so when it's done playing, it looks like it's still there, then just stick a button on it to replay. you could make an interface that looks/behaves similar to the standard movie player interface just for the play button if you need to.
For anyone stumbling over this now... There is a way to do this. Check out this question :)