Пример #1
0
 protected function addData($playlist)
 {
     // TODO - how to retrieve the widget_id and ui_conf_id for this partner ?
     // ui_conf_id = 190 will hold the correct ui_conf for the playlist
     list($embed, $width, $height) = myPlaylistUtils::getEmbedCode($playlist, null, 199);
     $this->addMsg("embed", $embed);
     $this->addMsg("width", $width);
     $this->addMsg("height", $height);
 }
Пример #2
0
//= input ( 'playlist id' , 'text' , 'playlist_id' )
?>

</div>

<div id='dynamic'>
<?php 
require_once __DIR__ . '/galleryPartialSuccess.php';
?>
</div id='dynamic'>
</form>
<div id='widget' style='position: absolute; left: 1200px; top: 200px'>
<!--  widget  -->
<?php 
if ($is_playlist) {
    echo myPlaylistUtils::getEmbedCode($playlist_id, $widget_id, $ui_conf_id);
} else {
    if ($widget) {
        echo $widget->getWidgetHtml("kaltura_player");
    } else {
        echo "No widget to display";
    }
}
?>
</div>
<script type="text/javascript">
<!--
jQuery.noConflict();
updateAllStatus(document.getElementById("filter__in_status_all"));
updateAllType(document.getElementById("filter__in_type_all"));
//-->