A number of developers have asked for a method of determining the
maximum duration of a video that a specific YouTube account is allowed
to upload. (As explained at http://youtube-global.blogspot.com/2010/12/up-up-and-away-long-videos-for-more.html
different accounts can have different maximum durations.)
Starting now on the staging server and in the middle of next week on
our production servers, you can retrieve this information from a
user's profile entry, in the "seconds" attribute of the
"yt:maxUploadDuration" entry. For example, the staging server request
https://stage.gdata.youtube.com/feeds/api/users/jeffposnicktest?v=2&prettyprint=true
returns an entry that includes the following element
<yt:maxUploadDuration seconds='43200'/>
indicating the maximum length of a video that that account can upload.
Since this is a new element added to the user profile response,
existing Data API client libraries will not know about it, and the
exact code that you'd need to write to retrieve that value will vary
depending on how you're accessing the API. Be sure that you make your
requests against our production servers (https://gdata.youtube.com...)
from your code once the feature has been rolled out there next week.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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