Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Kaltura API with WordPress plugin #6

Open
nicmitchell opened this issue Sep 4, 2013 · 1 comment
Open

Using Kaltura API with WordPress plugin #6

nicmitchell opened this issue Sep 4, 2013 · 1 comment

Comments

@nicmitchell
Copy link

I have been unsuccessful in trying to use the Kaltura CE6 API to extend the functionality of the Kaltura WordPress plugin v2.5.

TL;DR Questions:

  • How do I get the Kaltura API to work with the WordPress v2.5 plugin?
  • Is there a file I need to include/require?
  • Do I need to change how the class names are written?

The Problem:
I am trying to accomplish various things like pulling stats from the KMC and publish liveStream entries at various times.

Considering that WP loads plugins on every page, I am assuming that the Kaltura plugin tries to handle creating a Kaltura session for the user associated with the WP site.

However, I am not able to use any of the standard API calls generated in the KMC API Console. I always receive a fatal error of something like "Class 'KalturaConfiguration' not found in /path/to/file.php on line 999".

It appears that the class names are slightly different in the plugin than they are in the php client API. I found the TypeMap.php file and library, which tells me that there is an effort to translate the differences accordingly, but I have not found how to get that to load or function properly. I have tried to include/require various files such as:
/lib/Kaltura/Client/TypeMap.php
/lib/Kaltura/Client/Client.php
/lib/Kaltura/Client/ClientBase.php
/lib/Kaltura/Client/ServiceBase.php
/lib/Kaltura/Client/Configuration.php

... and various others. Still the same fatal error of no Class Name found.

I also installed the standard Kaltura php client library and included that. That causes a Fatal Error of "Cannot redeclare class KalturaNull". I would rather use the native API library of the plugin anyway.

How can I get them to work together?

@rkreich
Copy link
Contributor

rkreich commented Sep 5, 2013

The client library was upgraded to the kaltura zend style php client lib.
Take a look at some usage examples in lib/KalturaModel.php
This should get you started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants