You are here

function emvideo_bliptv_duration in Embedded Media Field 6

hook emvideo_PROVIDER_duration($item) Returns the duration of the video in seconds.

Parameters

$item: The video item itself, which needs the $data array. @return The duration of the video in seconds.

File

contrib/emvideo/providers/bliptv.inc, line 203
This include processes blip.tv media files for use by emfield.module.

Code

function emvideo_bliptv_duration($item) {
  if (!isset($item['data']['emvideo_bliptv_data_version']) || $item['data']['emvideo_bliptv_data_version'] < 2) {
    $item['data'] = emvideo_bliptv_data(NULL, $item);
  }
  return isset($item['data']['flv']['duration']) ? $item['data']['flv']['duration'] : 0;
}