<VZVideoUploadDelegate> Protocol Reference

Delegate protocol for receiving video upload progress information. More...

#import <Vzaar.h>

List of all members.

Public Member Functions

(void) - uploader:didUploadDataWithProgress:
 Called to allow you to update upload progress UI.
(void) - uploader:didFailToUploadVideo:withError:
 Called when the upload fails for any reason.
(void) - uploader:didUploadVideo:withVideoId:
 Called when the upload succeeds.

Detailed Description

Delegate protocol for receiving video upload progress information.

When uploading a video, pass an object the conforms to this protocol to receive updates on the upload progress.


Member Function Documentation

- (void VZVideoUploadDelegate-p.)uploader: (id< VZVideoUploader >)  uploader
didFailToUploadVideo: (NSString *)  videoPath
withError: (NSError *)  error 

Called when the upload fails for any reason.

Parameters:
uploader The video uploader object. Can be nil if the error happened before the upload started.
videoPath The path of the video that failed.
error The cause of the failure. This method will be called if the upload fails for any reason, including being cancelled.
- (void VZVideoUploadDelegate-p.)uploader: (id< VZVideoUploader >)  uploader
didUploadDataWithProgress: (double)  progress 

Called to allow you to update upload progress UI.

Parameters:
uploader The video uploader object.
progress The progress of the upload between 0.0 (nothing uploaded) to 1.0 (complete). This method will be called at arbitrary points during the file upload process.
- (void VZVideoUploadDelegate-p.)uploader: (id< VZVideoUploader >)  uploader
didUploadVideo: (NSString *)  videoPath
withVideoId: (NSUInteger)  videoId 

Called when the upload succeeds.

Parameters:
uploader The video uploader object.
videoPath The path of the video that failed.
videoId The Vzaar video ID for the new video. This method will be called when the upload succeeds. Note: The video may not be immediately available for playback if Vzaar needs to encode the video. Use detailsOfVideoWithId:options:error: to find out the status of the video.

The documentation for this protocol was generated from the following file:
 All Classes Functions Variables Properties
Generated on Wed May 12 13:24:23 2010 for vzaar Framework by  doxygen 1.6.3