You are here

function katura_fetch_widget_html in Kaltura 6

Same name and namespace in other branches
  1. 7.3 kaltura.module \katura_fetch_widget_html()
  2. 7.2 kaltura.module \katura_fetch_widget_html()
1 call to katura_fetch_widget_html()
kaltura_choose_player in ./kaltura.module

File

./kaltura.module, line 477
kaltura integration module - core functions

Code

function katura_fetch_widget_html($widget_id) {
  $session_user = KalturaHelpers::getSessionUser();
  $kaltura_client = KalturaHelpers::getKalturaClient();
  $result = $kaltura_client
    ->getWidget($session_user, $widget_id, 1);
  $embbed = $result['result']['widget']['widgetHtml'];
  return $embbed;
}