Getting video download time from the player - looking for a downloadComplete event
Posted: Nov 13, 2009
Hello all,
I am interested in getting the actual download time of the video from the player or clip object for use in on the client side in javascript.
From the events currently available, it appears that the only way to do this in javascript is to poll the player using the getState() function, and wait for it to transition from:
2 buffering
TO EITHER
3 playing
OR
4 paused
The problem is that polling in JS is painful because setTimeout and similar JS functions execute in the window scope no matter where it's called, which makes it difficult to create a function which would poll using getState() in a OOP-based (using function objects of course) JS application.
Questions:
* Any chance this will make it into a future release?
* Perhaps it's already there and I'm missing it?
* Anyone have a solution for this short term?
I know how to track this on the server side of course, BUT I have a need to deal with this information on the client side using javascript.
Thanks ahead of time for any help!
JSM
I am interested in getting the actual download time of the video from the player or clip object for use in on the client side in javascript.
From the events currently available, it appears that the only way to do this in javascript is to poll the player using the getState() function, and wait for it to transition from:
2 buffering
TO EITHER
3 playing
OR
4 paused
The problem is that polling in JS is painful because setTimeout and similar JS functions execute in the window scope no matter where it's called, which makes it difficult to create a function which would poll using getState() in a OOP-based (using function objects of course) JS application.
Questions:
* Any chance this will make it into a future release?
* Perhaps it's already there and I'm missing it?
* Anyone have a solution for this short term?
I know how to track this on the server side of course, BUT I have a need to deal with this information on the client side using javascript.
Thanks ahead of time for any help!
JSM