finish_video_upload
Description:
[ Version ( since = "0.8.0" ) ]
public YouTubeVideo finish_video_upload (UploadStream upload_stream) throws Error
public YouTubeVideo finish_video_upload (UploadStream upload_stream) throws Error
Finish off a video upload operation started by upload_video, parsing the result and returning the new YouTubeVideo.
If an error occurred during the upload operation, it will have been returned during the operation (e.g. by
splice or one of the other stream methods). In such a case,
null
will be returned but error
will remain unset. error
is only set in the case that the server indicates
that the operation was successful, but an error is encountered in parsing the result sent by the server.
Parameters:
this | |
upload_stream |
the UploadStream from the operation |
Returns:
the new YouTubeVideo, or |