You are here

function kaltura_fetch_widget_html in Kaltura 5

Same name and namespace in other branches
  1. 6.2 kaltura.module \kaltura_fetch_widget_html()
1 call to kaltura_fetch_widget_html()
kaltura_choose_player in ./kaltura.module

File

./kaltura.module, line 466

Code

function kaltura_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;
}