In order to invoke Ooyala's APIs we require that you sign each request using a combination of private keys, the request parameters, and an expiration time. The appended signature is generated with a SHA256 hash and then by creating a Base64 encoded string of the SHA256 digest. There are a few smaller steps outlined in our documentation such as limiting the signature to 43 characters in length, removing any trailing equals signs, and URI encoding the signature to make sure it is URL friendly.
The AS3CoreLib (available over at Mike Chambers github) contains a crypto package, and particularly a SHA256 class. It also has a hashToBase64 method, even better! But… the Base64 utility class it uses no longer exists in the Flash runtime. The class mx.utils.Base64Encoder needs to be replaced for our use case, and you can find many online. The Base64 class I've chosen is freely available for use and modification from Jean-Philippe Auclair. Check out his blog post for a Base64 optimized AS3 lib.
Recently I blogged
about a bunch of Ooyala code libraries written for Ruby, Drupal, and PHP, and here's another one to add to the list.
Ooyala Django as you might guess is a library developed for use with Django to leverage the Backlot Query API to return a list of content, link the content to specific url's, and render video content using an ooyala_video tag within your Django templates. You could even use this library with just regular python code. Kudos to Jaymz Campbell for sharing the library over on github.
It's always important to build a strong community around you, to help push the boundaries, test the limits, and showcase the potential of what is really possible with your technology.
However, there's often some great contributions from individual contributors outside of the traditional partner base, and I wanted to give a big Oo shout out to the following Ooyala developers.
Ooyala API PHP Client Library
Vance Lucas and Company52 created an Ooyala API PHP Client Library available over on github https://github.com/company52/Phoo. The library provides a great backbone for many of Ooyala's API's, including content ingestion, label management, channel management including creating dynamic channels, Ooyala analytics queries and more.
Ooyala Module for Drupal
Jared Bitner of Lullabot created an Ooyala Module for Drupal that allows you to perform synchronisation and batch importing of video content managed from Backlot. Check out a video of Jared introducing the Ooyala Drupal Module or head straight to Drupal.org and download the module http://drupal.org/project/ooyala. This module is a great for managing and maintaining your Ooyala video's as a custom content type within your Drupal site, and synchronising your content taxonomy.
Tangerine, a Ruby Gem that wraps the Ooyala API
Anthony Navarre and Craig Williams have built Tangerine, a Ruby Gem that uses ActiveResource to wrap the Ooyala Backlot API. Head on over to RubyGems.org http://rubygems.org/gems/tangerine to learn more. This is currently a work in progress, but it's great to see this kind of content being shared for others to use and contribute to.
Do you have your own Ooyala extensions or modules? We'd love to hear about it!
use some simple JQuery to append or remove a Div to the HTML DOM, and leverage some basic JQuery effects to fade in or fade out the Div. The darkened web site result is achieved by Div with a black background at 80% opacity that sits above all other web content on your page.
Try the example yourself, and turn the lights on and off!
View the source to see how it all works.
Yesterday I attended the Rally for Relief at Rod Laver Arena in support of the flood victims in Queensland, Australia. Tennis pro's, corporate sponsors and those in the crowd managed to raise over $1.8M and counting, and will be matched by Queensland Energy Resources including any additional funds raised throughout the remainder of the Australian Open. If you'd like to donate you can participate at the official Rally for Relief website.
During the final session of the afternoon Roger Federer, Rafael Nadal, Kim Clijsters and local Sam Stosur teamed up for some mixed doubles, followed by the men vs the ladies in some “ping pong tennis”, where they alternate shots between them.
Visit the ATP World Tour site for a full write up on the tennis stars, the fun, and the funds raised! It was lots of fun!
The video was recorded using my iPhone 4, edited using iMovie for iPhone to compress the file to 360p (original source was 720p), and finally uploaded using Ooyala Direct, the mobile publishing application for Apple's iOS platform. This is the ultimate mobile capture and publish workflow for any field reporter.