edited video template for correct vars

This commit is contained in:
Chris
2018-12-22 17:21:31 +01:00
parent 16688fae3c
commit 0b981d52a6

View File

@@ -11,23 +11,23 @@
*{margin:0px;padding:0px;}
</style>
<link rel="alternate" type="application/json+oembed" href="<?php echo DOMAINPATH.PATH; ?>backend.php?a=oembed&t=json&url=<?php echo rawurlencode(DOMAINPATH.PATH.$hash); ?>" title="PictShare" />
<link rel="alternate" type="application/json+oembed" href="<?php echo URL; ?>backend.php?a=oembed&t=json&url=<?php echo rawurlencode(URL.$hash); ?>" title="PictShare" />
<link rel="canonical" href="<?php echo DOMAINPATH.PATH.$hash; ?>" />
<link rel="canonical" href="<?php echo URL.$hash; ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta property="og:site_name" content="<?php echo (defined('TITLE')?TITLE:'PictShare mp4 hosting'); ?>" />
<meta property="og:url" content="<?php echo DOMAINPATH.PATH.$hash; ?>" />
<meta property="og:url" content="<?php echo URL.$hash; ?>" />
<meta property="og:title" content="<?php echo (defined('TITLE')?TITLE:'PictShare mp4 hosting'); ?> MP4" />
<meta property="og:type" content="video.other" />
<meta property="og:image" content="<?php echo DOMAINPATH.PATH.'preview/'.$hash; ?>" />
<meta property="og:image" content="<?php echo URL.'preview/'.$hash; ?>" />
<meta property="og:image:width" content="<?php echo $width ?>" />
<meta property="og:image:height" content="<?php echo $height ?>" />
<meta property="og:description" content="MP4 Video" />
<meta property="og:video" content="<?php echo DOMAINPATH.PATH.$hash; ?>" />
<meta property="og:video:secure_url" content="<?php echo DOMAINPATH.PATH.$hash; ?>" />
<meta property="og:video" content="<?php echo URL.$hash; ?>" />
<meta property="og:video:secure_url" content="<?php echo URL.$hash; ?>" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video:width" content="<?php echo $width ?>" />
<meta property="og:video:height" content="<?php echo $height ?>" />
@@ -38,13 +38,13 @@
<body id="body">
<div id="container">
<video id="video" poster="<?php echo DOMAINPATH.PATH.'preview/'.$hash; ?>" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline>
<video id="video" poster="<?php echo URL.'preview/'.$hash; ?>" preload="auto" autoplay="autoplay" controls muted="muted" loop="loop" webkit-playsinline>
<source src="<?php echo '/raw/mp4/'.$hash; ?>" type="video/mp4">
<?php
if(file_exists(ROOT.DS.'upload'.DS.$hash.DS.'webm_1.'.$hash))
echo '<source src="'.DOMAINPATH.PATH.'raw/webm/'.$hash.'" type="video/webm">'."\n";
if(file_exists(ROOT.DS.'upload'.DS.$hash.DS.'ogg_1.'.$hash))
echo '<source src="'.DOMAINPATH.PATH.'raw/ogg/'.$hash.'" type="video/ogg">'."\n";
if(file_exists(ROOT.DS.'data'.DS.$hash.DS.'webm_1.'.$hash))
echo '<source src="'.URL.'raw/webm/'.$hash.'" type="video/webm">'."\n";
if(file_exists(ROOT.DS.'data'.DS.$hash.DS.'ogg_1.'.$hash))
echo '<source src="'.URL.'raw/ogg/'.$hash.'" type="video/ogg">'."\n";
?>
</video>
</div>