Well,
which percentage? The upload percentage or the youtube conversion percentage?
The second isn't available via the api
The first depends on the upload method.
If you're using resumeable upload you can do a query and check the number of bytes you have uploaded already.
If you're using one of the GDataApis - the progress listener receives an instance of the uploader object. Calling the method
getUploadState() returns the current state, calling getNumBytesUploaded() returns the number of bytes uploaded.
You have to calculate the percentage yourself. Though I havent used the GDataApi for a while, there might be a method called getPercentage().
The problem: It really depends on the way you upload the file. With (without) GDataApi, GoogleApiClient etc.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/qhCH05qrBi4J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment