add code from https://drupal.org/project/kaltura