0, 'medium'=>1, 'low'=>2, 'orig_h264'=>3, 'mobile'=>4, 'flv'=>5); return $profileOrder[$a['profile_name']] > $profileOrder[$b['profile_name']] ? 1 : -1; }); return $videoQuality[0]; } function checkVideoAvailable ($albumName, $path, $type) { if (!csSynoPhotoMisc::CheckPathValid($path)) { return false; } csSYNOPhotoDB::GetDBInstance()->SetSessionCache(); if (!csSYNOPhotoMisc::CheckAlbumAccessible($albumName)) { return false; } if (@file_exists($path)) { if (!($item = PhotoAPIUtil::getItemByPath($path, array('video_quality'), $type, false))) { return false; } } return $item; } ?> <?= $title ?>