kalturhaxe

API for the open-source video solution Kaltura (Kaltura.org)
https://github.com/Knowledge-Players/KalturHaxe

To install, run:

haxelib install kalturhaxe 0.0.3 

See using Haxelib in Haxelib documentation for more information.

README.md

KalturHaxe

Kaltura API for Haxe

Usage

To get access to the API, you have to create a KalturHaxe object

var app = new KalturaHaxe(partnerId, serviceUrl);

Then you need to start a session

app.createConnection(secret, callback);

where secret is your secret string from your Kaltura user and callback is a Bool -> String -> Void function that will be called on complete. The Boolean is whether or not your request succeeded, and the content of the response will be in the String parameter. For this example, it will be your KS. Note that the KS has been automatically stored for futur API calls.

Then you can call some wrappers we made, like getting the URL for your asset with the correct bitrate for your connection:

app.getBitrateWiseAsset(entryId, bitrate, callback);

where entryId is your asset identifier, bitrate the maximum bitrate you want and callback a Bool -> String -> Void function where the URL is stored in the String argument.

Contributors
knowledge-players
Version
0.0.3
Published
4 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github