Delegate protocol for receiving video upload progress information. More...
#import <Vzaar.h>
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. | |
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.
| - (void VZVideoUploadDelegate-p.)uploader: | (id< VZVideoUploader >) | uploader | ||
| didFailToUploadVideo: | (NSString *) | videoPath | ||
| withError: | (NSError *) | error | ||
Called when the upload fails for any reason.
| 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.
| 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.
| 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. |
1.6.3