Checking encoding progress like in the multiple uploader?

coffeebreak's Avatar

coffeebreak

09 Jul, 2010 01:25 PM via web

Hi,

I'm trying to make a progress bar for the encoding process like your multiple uploader.

I have discovered that the URL for checking the progress is http://vzaar.com/upload/multiple/encoding_status?ids[]= (in my case I want to check only 1 video).

The problem is that OAuth doesn't work against that address so I guess you are using normal cookie-based authentication linked to the normal user account.

Is there any way to check the encoding percentage progress through the API or do it in a way that doesn't involve authenticating as a normal user with my account username and password?

Thanks!

  1. Support Staff 2 Posted by Craig on 09 Jul, 2010 01:57 PM

    Craig's Avatar

    Hi.

    I am passing this request on to our API team who will reply on this thread.

    If you require anything further then please let me know.

    Thanks
    Craig Sherman

  2. 3 Posted by coffeebreak on 09 Jul, 2010 02:38 PM

    coffeebreak's Avatar

    I finally managed to make it work by login in as a user automatically so I can acquire the authentication cookie needed to be able to query encoding_status, but I would prefer to do it through the API in a proper way. This way is really dirty and prone to break as soon as you guys change anything in the website...

    I'll be looking forward for a proper solution :)

  3. Support Staff 4 Posted by Adrian on 09 Jul, 2010 03:17 PM

    Adrian's Avatar

    Hi

    Currently we don’t expose encoding progress beyond the vzaar site. I would definitely recommend against doing it this way. We’re actually updating our back end systems around this at the moment, so it’s very likely to break when we deploy this change.

    In addition the site isn’t designed to scale in the same way the API is, so it’s really not something we would encourage or endorse.

    That said we do know that encoding progress is something the API is lacking. On our next major update to the API we will expose this. The work we’re doing currently will enable this more easily and is setting the ground work for this, but there is no current set or planned date for when this will be in the API.

    Unfortunately, the only real answer I can offer is that vzaar doesn’t support encoding progress currently in the API, but plans to add this in the future.

    Apologies.
    Adrian, CTO.

  4. Adrian resolved this discussion on 09 Jul, 2010 03:17 PM.

  5. coffeebreak re-opened this discussion on 09 Jul, 2010 04:14 PM

  6. 5 Posted by coffeebreak on 09 Jul, 2010 04:14 PM

    coffeebreak's Avatar

    I see, a shame really! Hope this will be added soon, shouldn't be that hard as you have it already working for yourselves :).

    Is at least the video details info reliable and real time? So can I poll it every other second and check video_status_id until its 2 (available) and then let know the user that the video is ready, even if I can't show a progress bar?

  7. Support Staff 6 Posted by Adrian on 09 Jul, 2010 04:29 PM

    Adrian's Avatar

    Simply passing the encoding status out itself in the API may not be that difficult, however doing it an scalable way for all users is a different story.

    We’re polling system A at rate X and then need to support the same data for our users. Scaling this reliably is non trivial. I wish it was. All the work we’ve been doing for the last six weeks on the underlying code here will go along way to making this possible.

    The video details info is reliable and real time.

    How many videos will you be encoding concurrently?

  8. Craig resolved this discussion on 18 Aug, 2010 08:20 AM.

Comments are currently closed for this discussion. You can start a new one.