Hey,
In order to be able to send a video taken on the iphone to a server i assume one needs its data, how can one get a videos data? Is there somethign similar to UIImageJPEGRepresentation(UIImage *, ) for images.
Thanks
Hey,
In order to be able to send a video taken on the iphone to a server i assume one needs its data, how can one get a videos data? Is there somethign similar to UIImageJPEGRepresentation(UIImage *, ) for images.
Thanks
Yes, see the 3.0 documentation for UIImagePickerController and UIImagePickerControllerDelegate. Specifically the new imagePickerController:didFinishPickingMediaWithInfo: delegate method that will be called when the user chose a movie from the camera roll.
That delegate method will give you a dictionary containing information about the movie, including a URL to it's file. See the UIImagePickerControllerMediaURL key.
Once you have the (filesystem) URL, you can read the movie and send it to a server.
They are just mpeg-4 files, that you can end anywhere. It's not like the image picker where you only get an in-memory image.