Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mail uploaded Video

Tags:

ios

iphone

I am working in an application where I have to mail the captured video. I am not getting any solution.

Is it possible to do with share kit?

Thanks in advance

like image 714
Myaaoonn Avatar asked Jan 28 '12 07:01

Myaaoonn


1 Answers

See the tutorial http://omnomrobot.com/tutorials/sourcetutorials/mfmailcompose/

In that tutorial replace line 28 and 30 with

 NSData *imageData = [NSData datawithContentsOfFile:[[NSBundle MainBundle]pathForResource:@"video" ofType:@"mp4"]];


[mailer addAttachmentData:imageData mimeType:@"video/mp4" fileName:@"video.mp4"];

change the format of video to appropriate format.

like image 54
rakeshNS Avatar answered Oct 18 '22 14:10

rakeshNS