Hello Poorva,
There are some scenarios in which getVideoBytesTotal() won't return
an actual number of bytes, but rather a value that can divide the
getVideoBytesLoaded() value to get the fraction of the video that's
loaded. So
getVideoBytesLoaded() / getVideoBytesTotal() == percentage of video
loaded
"Fake" byte values were previously limited to HTML5 <video> playback,
but there are some scenarios in which it is now used when doing Flash-
based playback as well. It's explained in more detail at
https://developers.google.com/youtube/iframe_api_reference#Operations
Moving forward, we might introduce a new method that returns that
percentage of video that's loaded directly and recommend calling that
directly instead of having to deal with the functions that operate on
bytes.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On May 24, 1:29 am, Poorva06 <poorva.agra...@gmail.com> wrote:
> Hi,
>
> I am trying to get total size of video by retrieving the value from
> getVideoBytesTotal(). But this returns 0 most of the time. And if it
> returns a non-zero value than this value is not consistent. It keeps
> changing thorugh out the session.
>
> Can you please help me and suggest any way i can get the size of the
> video.
>
> Regards,
> Poorva
--
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