Tag: video

iPhone playing video in custom view: Example Code Please?

I’m wanting to put together an application which plays video fullscreen with an interface overlaying it that basically chooses the video that is played underneath it (think ‘Gym Babes’ but nowhere near as risqé!). I don’t wish to use private headers so MPMoviePlayerController is out of the question. I’ve been digging through stackoverflow for a […]

AVFoundation UIImage behind video track

I’m currently rendering a video track that is smaller than the output size which is working fine. I want to draw a UIImage into the background so that the video is on top with the image showing in the area where the video isn’t. I’ve tried using CoreAnimation Layers along with videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer: but layers below […]

Youtube iOS Player Helper library didn't work

I tried to implement the youtube–ios-player-helper library to play videos in my app. I can get the player ready and load the video. And the starting thumbnail can be shown. However, when I tried to play the video, I got this error message instead: SendDelegateMessage(NSInvocation *): delegate (webView:identifierForInitialRequest:fromDataSource:) failed to return after waiting 10 seconds. […]

UIVideoAtPathIsCompatibleWithSavedPhotosAlbum returns false when deploying on the iPhone

One of my app’s features is to download a mp4 file and store it to the local phone album. I have tried several approaches since and the result is always the same, it worked on the simulator but not on the actual iPhone. Xcode is version 5.0.1, iPhone 4. Below is the code I applied […]

How to upload .mp4 video on facebook using graph api in objective c

I am using Graph API to upload video on facebook. I am able to upload .wmv format video but not .mp4. My code is as below strVidUrl=@”http://myshow.com.au/Videos/mp4s/20111216044530271247467.mp4″; //strVidUrl=@”http://www.myshow.com.au/Videos/BossAlarm.wmv”; NSURL *url = [NSURL URLWithString:strVidUrl]; NSData *data = [NSData dataWithContentsOfURL:url]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: data, @”video.mov”, @”video/mp4″, @”contentType”, [dicVideoDetails valueForKey:@”fld_display_name”], @”title”, [dicVideoDetails valueForKey:@”fld_video_description”], @”description”, nil]; if […]

How to place check whether Video file is greater than 2MB?

Suppose I have taken a video file from iphone library. I want to put a check that Video file shouldn’t be greater than 2MB. I cant use videoMaximumDuration method. Because if any video is hd quality even 1 min duration video could be huge in size. Any views ?

how to correct orientation of video in objective c

I am using UIImagePickerController to capture video in iPhone but video is showing rotated 90 digree to right. How to fix this issue Is there any way by which we can correct the orientation.

YTPlayerView youtube-ios-player-helper pause not working

I’m having trouble with the Youtube youtube–ios-player-helper library. I can load a video into the player and it plays but if I tap pause the video stops for a few seconds and then starts playing again. The incredibly simple UIViewController code to start the video is: – (void)viewDidLoad { [super viewDidLoad]; self.player = [[YTPlayerView alloc] […]

Uploading a large video from iphone to web server

I’m trying to upload a large video from iphone to a web server that has php script. I’m using NSInputStream to get file video chunks and I’m creating a request(POST) on each traversal of the – (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode method, with the read data passed as parameter. Here is the code I’m using to get […]

iPhone SDK: Custom video player controls

In my iPhone app I have designed a custom video player, currently it is very basic with just a play pause and stop button, but I would like the user to be able to scrub, (I think thats the right word) the video like you can do with apple’s original media player. So for Instance […]