How to stop the camera movie player stop playing the captured video after selecting to use it? - iphone

Hi this is what I am trying to do:
open Camera
capture a new video
use it
create a MPMoviePlayerController to get the thumbnail and duration of the selected video.
All the above steps work FINE if I don't play the new video after capturing it in the Camera, however as soon as I play the video in the camera movie player, and while the video is being played then I click on 'Use' button, it will crash my app in the area of where I try to create a MPMoviePlayerController to get the thumbnail and duration of the selected video. I believe you cannot have more than 1 instance of movie player running.
Anyone got any idea how to fix this?

Related

How to programmatically make an embedded video player play in fullscreen?

I am using the Embedded Video Player to add a video to a website. The video is contained within a small container. Therefore, I would like to provide alternative UI for starting the video in a fullscreen mode.
How to programmatically start video in an embedded video player in fullscreen?, i.e. equivalent to user hitting "Fullscreen" button on the video player itself.

Replay option not displaying youtube video in UIWebView?

Currently i am trying to play one youtube video in my application UIWebView. On first time playing, the video is playing perfectly and i can able to see and listen both video & audio, but when the video played completely and i select replay option present in video screen,the video is not displaying anything(its just displaying black screen) but i can able to hear audio.
Where i am going wrong, How to fix this problem ?
Tools used : XCode: 4.3.2, iOS :5.1

Tips on using webview to play an embedded Flash movie

I've tried (without success) to get a video to play within a webview. I can see the video thumbnail with the default play button overlaying the video.
When I click the play button - the entire video hi-lights in transparent yellowish/orange. Clicking play again causes the Play button to blink. The thumbnail always remains, but never plays. I can even see the timeline below the video with the play-head, etc. I can never touch the video controls, because every click treats the entire video like one big button - and hi-lights like mentioned above.
They are numerous videos to be played and they are not at YouTube, so launching the YT player with an intent isn't desired.
I'm using SDK 8 (2.2), runing on a 2.3.6 device, and Have the latest Flash Player 11.xxxxx installed.
Any suggestions?
Took another approach in the app.

Close of video player in iphone

Am using html5 to play video on iphone. Is there is way to know when video player is close because i want to call function after clicking on done button. I can't use 'ended' this event occurs only after completion of video. I appreciate your suggesions.

Recording Video while playing a video on iPhone?

i am trying to record a video from front camera of iPhone using AVFoundation class while user watches a video...with the help of WWDC 2010 samples i am able to record the video using front camera when the video is not playing but when i try to record it while user plays a video in MPMovieViewController the video does not get recorded..When i use MPMovieViewController does it starts on a different thread due to which i am not able to record the video in the background?? is playing the video in a UIWebview will be a better option??
Try using NSThreads. You should find some info about them in tutorials.