The way I read the docs, I think that getVideoBytesLoaded() will
always return the total number of bytes that are loaded for a given
video, which will be cumulative if you skip ahead (the bytes might not
be contiguous). I.e. if 500 bytes were loaded, and then you skip
ahead, getVideoBytesLoaded() is never going to return less than 500
bytes. Does that match the behavior you're seeing?
Cheers,
-Jeff Posnick, YouTube API Team
apiblog.youtube.com | @YouTubeDev | groups.google.com/group/youtube-
api-gdata
On Jul 21, 3:23 pm, Christoffer Brodd-Reijer <ephra...@gmail.com>
wrote:
> I am having a similar problem.
>
> First, it's not that Loaded returns anything larger than Total, it's just
> that Start + Loaded gets larger than Total.
>
> I am not sure I entirely understand what getVideoStartBytes() really does.
> It was my understanding that if you watched a video for a few seconds you
> would have something like this:
>
> Start: 0
> Loaded: 500
> Total: 4,000
>
> Then if you skipped to about half you would get something like this:
> Start: 1,500
> Loaded: 0
> Total: 4,000
>
> After a few seconds of letting the buffer grow you have:
> Start: 1,500
> Loaded: 500
> Total: 4,000
>
> At this point, the buffer should now be exactly at the middle of the seek
> bar.
>
> But it seems to me that this is not the way it works.
--
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