Page 1

function theme_fbsmp_video_attachment($file, $thumbnail_url = '', $title = '', $description = '', $settings = array()) { $output = ''; if (!empty($file)) { $video_extension = pathinfo($file['filename'], PATHINFO_EXTENSION); $extensions = fbsmp_video_web_video_extensions(); if (key_exists($video_extension, $extensions)) { $settings['player_width'] = !empty($settings['player_width']) ? $settings['player_width'] : 435; $settings['player_height'] = !empty($settings['player_height']) ? $settings['player_height'] : 350; // $output .= theme($extensions[$video_extension], $file['url'], $thumbnail_url, $settings); $output .= '<video class="video-js vjs-default-skin" id="'. $file['fid'].'" controls preload="auto" width="435" height="350" poster="'.$thumbnail_url.'" data-setup="{}"> <source src="'.$file['url'].'" type="video/mp4" /> <object data="'.$file['url'].'" width="435" height="350" > <embed src="'.$file['url'].'" width="435" height="350" /> </object> </video>'; }

}

return $output; }

funcrrr