Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Hi there,
I have problems to print my nodes with the print module, because the kaltura module outputs no file extensions!! How can I get the file extensions in html code? Did someone have a solution?
...
/*
* function to render the entryId field into HTML
*
* the returned value is a normal string with a specific structure
* this "tag" is being later replaced using nodeAPI to the kaltura embed tags
* ######### CUSTOM
*/
function theme_node_kaltura_entry_entryId($node, $teaser) {
if ($teaser && variable_get('kaltura_display_entry_video_teaser_with_player', 0) == 0) return '';
if ($node->kaltura_media_type == 2) {
$width = variable_get('kaltura_image_entry_width', '410');
$height = variable_get('kaltura_image_entry_height', '364');
//return 'kaltura_thumbnail_url .'/width/'. $width .'/height/'. $height .'/type/1/quality/100" />';
print $extra;
$output = $node->kaltura_thumbnail_url .'/width/'. $width .'/height/'. $height .'/type/1/quality/100';
//return $output;
$thumb = $node->kaltura_thumbnail_url . $size_str . $extra;
$options = array('attributes' => array('class' =>'kaltura' , 'rel' => 'lightbox[$node->nid]'),'absolute' => 'TRUE', 'alias' => TRUE, 'html' => TRUE);
$thumb = theme('image', $thumb, $image_alt=' ', $image_title=' ',$attributes = NULL , $getsize = FALSE);
$thumb .= '.jpg';
print $thumb;
$output = l($thumb, $output, $options);
return $output;
}
if ($node->kaltura_media_type == 5) {
$media_type = 'audio';
$width = variable_get('kaltura_audio_entry_width', '410');
$height = variable_get('kaltura_audio_entry_height', '364');
return '[kaltura-widget media_type="'. $media_type .'" entry="'. $node->kaltura_entryId .'" size="large" width="'. $width .'" height="'. $height .'" /]';
}
$width = variable_get('kaltura_video_entry_width', '410');
$height = variable_get('kaltura_video_entry_height', '364');
if ($node->kstatus == 0 && variable_get('display_entry_not_ready', 0) != 0) {
if (variable_get('entry_not_ready_text', '') != '') return variable_get('entry_not_ready_text', '');
return t('This Kaltura Item is still rendering.');
}
$media_type = 'video';
return '[kaltura-widget media_type="'. $media_type .'" entry="'. $node->kaltura_entryId .'" size="large" width="'. $width .'" height="'. $height .'" /]';
}