forked from WWBN/AVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdf.php
53 lines (49 loc) · 2.16 KB
/
pdf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
$sources = getVideosURLPDF($video['filename']);
//var_dump($sources);exit;
?>
<div class="row main-video" style="padding: 10px;" id="mvideo">
<div class="col-xs-12 col-sm-12 col-lg-2 firstC"></div>
<div class="col-xs-12 col-sm-12 col-lg-8 secC">
<div id="videoContainer">
<div id="floatButtons" style="display: none;">
<p class="btn btn-outline btn-xs move">
<i class="fas fa-expand-arrows-alt"></i>
</p>
<button type="button" class="btn btn-outline btn-xs" onclick="closeFloatVideo();floatClosed = 1;">
<i class="fas fa-times"></i>
</button>
</div>
<video playsinline webkit-playsinline="webkit-playsinline" id="mainVideo" style="display: none; height: 0;width: 0;" ></video>
<div id="main-video" class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" scrolling="no" allowfullscreen="true" src="<?php
echo $sources["pdf"]['url']
?>"></iframe>
<script>
$(document).ready(function () {
addView(<?php echo $video['id']; ?>, 0);
});
</script>
</div>
<?php
if (AVideoPlugin::isEnabled("0e225f8e-15e2-43d4-8ff7-0cb07c2a2b3b")) {
require_once $global['systemRootPath'] . 'plugin/VideoLogoOverlay/VideoLogoOverlay.php';
$style = VideoLogoOverlay::getStyle();
$url = VideoLogoOverlay::getLink();
?>
<div style="<?php echo $style; ?>">
<a href="<?php echo $url; ?>" target="_blank">
<img src="<?php echo $global['webSiteRootURL']; ?>videos/logoOverlay.png" alt="Logo" class="img-responsive col-lg-12 col-md-8 col-sm-7 col-xs-6">
</a>
</div>
<?php
}
?>
</div>
</div>
<script>
$(document).ready(function () {
});
</script>
<div class="col-xs-12 col-sm-12 col-lg-2"></div>
</div><!--/row-->