".PHP_EOL;
if (empty($videos_id)) {
echo PHP_EOL."".PHP_EOL;
if (!empty($_GET['videoName'])) {
echo PHP_EOL."".PHP_EOL;
$video = Video::getVideoFromCleanTitle($_GET['videoName']);
}
} else {
echo PHP_EOL."".PHP_EOL;
$video = Video::getVideoLight($videos_id);
}
if (empty($video)) {
echo PHP_EOL."".PHP_EOL;
return false;
}
$videos_id = $video['id'];
$source = Video::getSourceFile($video['filename']);
$imgw = 1024;
$imgh = 768;
switch ($video['type']) {
case "audio":
case "linkAudio":
$ogtype = 'music.song';
break;
case "pdf":
case "article":
$ogtype = 'article';
break;
default:
$ogtype = 'video.other';
break;
}
$ogtype = 'video.other';
if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio") && !empty($source['url'])) {
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} elseif ($video['type'] == "audio") {
$img = getCDN()."view/img/audio_wave.jpg";
}
$type = 'video';
if ($video['type'] === 'pdf') {
$type = 'pdf';
}
if ($video['type'] === 'article') {
$type = 'article';
}
$images = Video::getImageFromFilename($video['filename'], $type);
if (!empty($images->posterPortrait) && basename($images->posterPortrait) !== 'notfound_portrait.jpg' && basename($images->posterPortrait) !== 'pdf_portrait.png' && basename($images->posterPortrait) !== 'article_portrait.png') {
$img = $images->posterPortrait;
$data = getimgsize($images->posterPortraitPath);
$imgw = $data[0];
$imgh = $data[1];
} else {
$img = $images->poster;
}
$twitter_site = $advancedCustom->twitter_site;
$title = getSEOTitle($video['title']);
$description = getSEODescription($video['description']);
$ogURL = Video::getLink($video['id'], $video['clean_title']);
//$ogURL = Video::getLinkToVideo($videos_id, '', false,false);
$modifiedDate = date('Y-m-d', strtotime($video['modified']));
?>
";
}
if (empty($source['url'])) {
echo "";
}
} else {
$source['url'] = str_replace(".m3u8", ".m3u8.mp4", $source['url']);
}
if (!AVideoPlugin::isEnabledByName("SecureVideosDirectory") && !empty($source['url'])) {
?>
";
}
if (empty($source['url'])) {
echo "";
} ?>
twitter_player)) {
if (!AVideoPlugin::isEnabledByName("SecureVideosDirectory") && !empty($source['url'])) {
?>
" />
twitter_summary_large_image)) {
?>