You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Getting video download time from the player - looking for a downloadComplete event Created Nov 13, 2009

This thread is solved

Views: 2258     Replies: 3     Last reply Jul 19, 2010  
You must login first before you can use this feature

JSM

Posts: 8

Registered:
May 24, 2009

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

waynewalls

Posts: 1

Registered:
Dec 12, 2009

» Getting video download time from the player - looking for a downloadComplete event

Posted: Dec 12, 2009

Reply to: Getting video download time from the player - looking for a downloadComplete event, from JSM
I was going to post a question identical to the one asked by the OP. So, I'll bump this thread instead.

Is there an event that fires when a media file download is complete or is polling getStatus() or getState() the only options.

Thanks for your help.

-- Wayne

JayJennings

Posts: 2

Registered:
Apr 11, 2010

» Getting video download time from the player - looking for a downloadComplete event

Posted: Jul 18, 2010

Reply to: Getting video download time from the player - looking for a downloadComplete event, from JSM
Boy, I'd really love an answer to this question, too.

I keep scouring the docs hoping I've missed something the last umpteen times I've looked.

Jay Jennings

JSM

Posts: 8

Registered:
May 24, 2009

» » Getting video download time from the player - looking for a downloadComplete event

Posted: Jul 19, 2010

Reply to: » Getting video download time from the player - looking for a downloadComplete event, from JayJennings
Hi Wayne/Jay,

I still haven't found a good solution, but admittedly haven't looked or explored again. This might be something to get on their books as a formal feature request, though not sure if there's a formal place for that online. Seems like it should be easy to time the round-trip within their flash app, but perhaps not.

Definitely post if you find something, and I'll do the same!