2019-01-13 18:02:16 +00:00
|
|
|
<?php
|
|
|
|
if(!isset($_COOKIE["session"]) || $_COOKIE["session"] != "true") {
|
|
|
|
http_response_code(403);
|
|
|
|
die('Forbidden');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" style="height:100%">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<script src="/assets/js/player/youplay.js"></script>
|
|
|
|
</head>
|
|
|
|
<body style="margin:0;height:100%;overflow:hidden">
|
2019-07-17 16:52:20 +01:00
|
|
|
<video class="video-js vjs-default-skin" controls id="player" poster="<?=htmlspecialchars($_GET["preview"])?>" title="<?=htmlspecialchars($_GET["title"])?>" style="width:100%;height:100%">
|
2019-01-13 18:02:16 +00:00
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
<script>
|
|
|
|
yp_player({share:false,use_desktop_skin:true,sources:[{src:"<?=htmlspecialchars($_GET["url"])?>",label:"Video",audio:true}]});
|
|
|
|
</script>
|
|
|
|
</body>
|
2019-07-17 16:52:20 +01:00
|
|
|
</html>
|