Saurabh
Saurabh

Reputation: 22873

How to upload a Video in iPhone SDK

I want to upload a video to webserver. I can upload the video but the problem is how should i pick a video. Means I know there is a default UIImagePickerController that i can use to pick image, is there any thing similar to pick movies in iPhone?

Hope you are getting my problem.

Thanks

Upvotes: 0

Views: 1239

Answers (4)

David Gray
David Gray

Reputation: 307

Use AVFoundation to capture video and upload it using MKNetworkKit.

Upvotes: 0

zhudongyong
zhudongyong

Reputation: 11

NSString *path = [[NSBundle mainBundle] pathForResource:@"ddd" ofType:@"avi"];
NSData *data = [NSData dataWithContentsOfFile:path];

Upvotes: 1

DenTheMan
DenTheMan

Reputation: 1277

Check out this SO entry. It has a similar discussion.

Upvotes: 1

harshalb
harshalb

Reputation: 6054

Assets library is another option that you can fetch all photos and videos programaticaly but in that you case you have to make your own pickerviewcontroller .

Upvotes: 0

Related Questions