function video_cck_livestream_rss in Embedded Media Field 5
File
- contrib/
video_cck/ providers/ livestream.inc, line 162 - This include processes livestream.com media files for use by emfield.module.
Code
function video_cck_livestream_rss($item, $teaser = NULL) {
if ($item['value']) {
if (!empty($item['data']['video_cck_livestream_data_version']) && $item['data']['video_cck_livestream_data_version'] >= 1) {
$data = $item['data'];
}
else {
$data = video_cck_livestream_data(NULL, $item);
}
$file = array();
if (is_array($data['flash'])) {
$file['filepath'] = $data['flash']['url'];
$file['filesize'] = $data['flash']['size'];
$file['filemime'] = $data['flash']['mime'];
}
$file['thumbnail']['filepath'] = $data['thumbnail']['url'];
return $file;
}
}