Moving From IndexTank To IndexDen Real-Time In Place Editing For Rails Hubot Deploy So Long And Thanks For The Elephant Hospitium - New Open Source Project Goodbye WordPress - Hello Jekyll

Upload A Video To Ooyala With PHP

Published: 2010-09-11

EDIT: You can find a better/updated Ooyala class here.

Ooyala is a fairly popular video hosting platform. We have started using them where I work, and they seem to be doing a really good job so far. One of the advantages of Ooyala is their nice API. They have some example code for you to use, but one feature that was lacking was uploading. They also have a widget that does do uploading but it is handled through Flash, something I wanted to avoid.

This example builds on top of their existing PHP code. Here is the final code. (You're really going to want to copy paste this into a real code editor, my code tag makes me really mess with my formatting. Apologies.)

Essentially, you want to create an upload form, and post the values to the publish() function. From there you should be good to go.

I’m sure there is an easier way to do this, so if you know how to improve this, please let me know in the comments.

Vote on HN