Skip to main content

The Kaltura API

I've been researching the Kaltura API and have discovered a few things. The first thing is that the documentation is there, but it is terribly organized (in my opinion). I have done a lot more Googling to find information on what I want to do with the Kaltura API than even figuring out how to write the code. As a side note, I've been researching with the Kaltura.com trial account (which eventually becomes their commercial, hosted account, I think). I did try to get their Kaltura.org (community edition) set up on an AWS instance, but the poor instance was pretty underpowered and would time out too much.

One thing I tried to do today was try to get the Kaltura video player to default to HTML5 first, before trying the Flash player. The HTML5 configuration page (http://html5video.org/wiki/Kaltura_HTML5_Configuration) should have put some clear information on how to do this, but including the mwEmbedLoader.php didn't work. The Flash version still loaded. I checked the url that I was including for loading the correct library files, and it was correct. Finally, I got my clue, which was really vague:

http://cdnapi.kaltura.com/p/{partnerId}/sp/{partnerId}00/embedIframeJs/uiconf_id/{uiConfId}/partner_id/{partnerId} is the version of the library that kaltura.com SaaS offering points to. This is the url you will get from the KMC, when enable html5 onpreview and embed. If your a kaltura customer you should use this url. You can control what version of the html5 library it points to via uiConf"

What I ended up doing was logging into the KMC account, then going to the Players and configuring a custom player (which, after it's saved, has a uiConfId). The Flash Player studio is different from the Universal Studio, so to get the HTML5/Flash compatible player, I configured the Player in the Universal Studio, then plugged the uiConf into my app.

It worked. Guess how long it took me to figure this out. 2 days.

But why didn't the docs even say anything about how to actually do that? All the examples that are given are pretty unhelpful -- they just state the obvious. The other stuff that you really want to do, beyond just clicking a button to get the embed code, requires a lot of Googling and trial & error.

Comments

Popular posts from this blog

Compiling pgmodeler on Yosemite (with Homebrew)

Refer to  pgmodeler installation . Steps: Clone the pgmodeler git repo. Use Homebrew to install qt5 (5.4.2, see here ), libxml2, and postgresql. Edit the pgmodeler.pri (not .pro) file and change these variables: PGSQL_LIB = /usr/local/opt/postgresql/lib/libpq.dylib PGSQL_INC = /usr/local/opt/postgresql/include XML_INC = /usr/local/opt/libxml2/include/libxml2 XML_LIB = /usr/local/opt/libxml2/lib/libxml2.dylib Follow instructions to compile pgmodeler (you might need to put Qt's binaries in your PATH. I was lazy and didn't). $ /usr/local/opt/qt5/bin/qmake pgmodeler.pro $ make $ make install $ cd /Applications $ /usr/local/opt/qt5/bin/macdeployqt pgmodeler.app -executable=pgmodeler.app/Contents/MacOS/pgmodeler-ch -executable=pgmodeler.app/Contents/MacOS/pgmodeler-cli Then I was able to do $ open pgmodeler.app

pgmodeler build in Debian Jessie

This is my qmake version: $ qmake -v QMake version 3.0 Using Qt version 5.3.2 in /usr/lib/x86_64-linux-gnu I had to edit linuxdeploy.sh: 1. Add "-makefile" to the QMAKE_ARGS variable: $ qmake -h Usage: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake [mode] [options] [files] where mode is either "-makefile" (default) or "-project" QMAKE_ARGS="-makefile -r -spec linux-clang" 2. Right before "Running qmake...", I added another line to include pgmodeler.pro in the qmake invocation: QMAKE_ARGS="$QMAKE_ARGS pgmodeler.pro" Then I ran ./linuxdeploy.sh -no-qt-libs (https://github.com/pgmodeler/pgmodeler/issues/674)

Building and installing CAN bus bundle on Kura/Eurotech Software Framework

The documentation is incomplete as of 11/25/2015:  http://esf.eurotech.com/docs/how-to-use-can-bus . It shows you how to setup the can0/can1 interfaces. I think I finally figured out the real steps to getting the CAN bus service working in Kura. I found this website somewhat useful:  https://tobiddev.wordpress.com/2015/03/23/one-bundle-project-modbus-and-eclipse-kura/ . It didn't tell me how to build a bundle, but I took a chance with the following and now I'm able to see my module loading the CanConnectionService in the Kura logs. First, build Kura from source following this guide:  https://wiki.eclipse.org/Kura/Getting_Started . You'll probably want to build it in Linux (I am using Debian Jessie) or possibly OS X (I didn't test it). For sure, it fails in Windows 8 at the create_installer.sh part, so I decided not to waste any more time on it. You basically need Kura built just enough so that you can load everything into Eclipse. I was able to do this using Eclipse...