How To Update Kaltura HTML5 Player (V2)

How To Update Kaltura HTML5 Player (V2)

In this article I’ll explain how to update the Kaltura HTML5 player (V2).
You can follow the mwEmbed player repository updates at Kaltura HTML5 player repository and update your mwEmbed when needed.

Updating Kaltura HTML5 player:

Updating Kaltura HTML5 Player V2 is an easy operation, and requires few simple steps.
This post applies for all releases but for ease of reading we will use v2.23.
You can replace the version number with any current version at the time of reading.

  1. Download the latest, or any stable release from Kaltura player releases to your Kaltura server to the HTML5 live folder. for example:
    *Make sure to call the folder just like the player version.
    wget https://github.com/kaltura/mwEmbed/archive/v2.23.tar.gz opt/kaltura/web/html5/html5lib/v2.23
  2. Create LocalSetting.php file from the LocalSetting.KalturaPlatform.php template file:
    Check that the $kConfPath path is correct and is actually a path to your kConf.php file. Fix the path if incorrect.
    cp opt/kaltura/web/html5/html5lib/v2.23/LocalSetting.KalturaPlatform.php opt/kaltura/web/html5/html5lib/v2.23/LocalSetting.php
  3. Update the html5_version config in /opt/kaltura/app/configurations/base.ini to the new version of the mwEmbed player:
    vim /opt/kaltura/app/configurations/base.ini
  4. Clear the Kaltura cache and restart Apache:
    php /opt/kaltura/app/alpha/scripts/clear_cache.php
    sudo /etc/init.d/httpd restart

Even though your Kaltura HTML5 Player V2 was now upgraded, you still have to tell Kaltura to start using the new player.

  1. Check your Universal Studio version. This is configured in studio_version config in /opt/kaltura/app/configurations/base.ini
    vim /opt/kaltura/app/configurations/base.ini
    This post applies for all Universal Studio versions, but for ease of reading we will use v0.9.7.
  2. Open the studio.ini file, which is located at opt/kaltura/apps/studio/v1.1/studio.ini
    vim opt/kaltura/apps/studio/v1.1/studio.ini
  3. Replace the previous player version with the new one in the widgets.studio.config config:
    “html5_version”:”v2.23″
    “html5lib”:”http://kaltura.local/html5/html5lib/v2.23/mwEmbedLoader.php”
    studio.ini file
  4. Go to Studio->Universal Studio. Now you can create new players or update the existing ones, using the new Kaltura HTML5 Player V2 version.
    HTML5 Kaltura Studio

If your Kaltura Platform version is older and doesn’t include the HTML5 studio, then the method above is not good for you and you need to change KMC configuration and re-deploy the KMC.

    1. Check your KMC version in the base.ini configuration file. The KMC version is defined at kmc_version config.
      vim /opt/kaltura/app/configurations/base.ini
      This post applies for all KMC versions, but for ease of reading we will use v5.37.17.
    2. Open the configuration file of the KMC.
      vim /opt/kaltura/web/flash/kmc/v5.37.17/config.ini
    3. Search for ‘html5’ string in the file and replace the HTML5 version with the new Kaltura HTML5 Player V2 version. Save the file.
    4. Re-deploy the KMC:
      php /opt/kaltura/app/deployment/uiconf/deploy_v2.php –ini=/opt/kaltura/web/flash/kmc/vX.XX.XX/config.ini

Clear the Kaltura cache and restart Apache:
php /opt/kaltura/app/alpha/scripts/clear_cache.php
sudo /etc/init.d/httpd restart

Upgrading a specific player to a new mwEmbed version:

You can also change the player configuration manually and force only a specific player to use the new Kaltura HTML5 Player V2 version. You would like this option in case that Kaltura is not suggesting to upgrade the player (in the Universal studio), or for any other reason. In order to do it, you need to change the player UI Configuration.

  1. Get your player UI Conf ID from the Studio or from the embed code you use (under ‘uiconf_id’).
  2. Go to Kaltura Admin Console->UI Confs.
  3. Search the UI Conf.
  4. Select ‘Edit’ Action from the ‘Action’ drop down list.
    Updating the Ui Conf
  5. Change the ‘HTML5 URL:’ path to a new path /html5/html5lib/v2.23/mwEmbedLoader.php
    UI Conf Edit
  6. Save the configuration.

Now your specific player is using the new Kaltura HTML5 Player V2 (mwEmbed) version.

2 thoughts on “How To Update Kaltura HTML5 Player (V2)

    1. Hi Andrew,
      I tried to found a working Kaltura CE5 somewhere on my servers, but couldn’t find anything. It’s too old..
      Have you tried to do something from this article?
      If you did, please update your findings and will try and help.

Leave a Reply

Your email address will not be published. Required fields are marked *