You are here

function asset_bonus_swfobject_details in Asset 5

Same name and namespace in other branches
  1. 5.2 contrib/asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
  2. 6 asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()
  3. 6 contrib/asset_bonus/asset_bonus.module \asset_bonus_swfobject_details()

File

asset_bonus/asset_bonus.module, line 241

Code

function asset_bonus_swfobject_details($asset) {
  require_once drupal_get_path('module', 'asset_bonus') . '/swfheader/swfheader.class.php';
  $swf = new swfheader();
  $swf
    ->getDimensions($asset->filepath);
  $details = array(
    t('Width') => $swf->width . 'px',
    t('Height') => $swf->height . 'px',
    t('Flash Version') => $swf->version,
    t('Compressed') => $swf->compressed ? t('Yes') : t('No'),
    t('FPS') => $swf->fps[1],
    t('Frames') => $swf->frames,
  );
  return $details;
}