Quantcast
Channel: Kaltura Players and Player Plugins - Kaltura
Viewing all articles
Browse latest Browse all 326

How to use api call inside kmc and html player

$
0
0

@karol_be wrote:

as in subject - i would like to get JSON config of the player in the kmc but i dont know how to do that. I guess an option is to call the API fuction get.uiConf.

i was trying to make the call from the generated code (from kaltura developers tab):

var cb = function (success, results){
if(!success)
alert(results);

if(results.code && results.message){
alert(results.message);
return;
}

handleResults(results);
};
var config = new KalturaConfiguration(partnerId);
config.serviceUrl = "http://mywebsite.com/";
var client = new KalturaClient(config);
var id = 123456;
var result = client.uiConf.get(cb, id);

unfortunatelly it throw an error on KalturaConfiguration - it can not see that class

One more question is there equivalent function to uiConf that is getting JSON instead?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>