68 lines
1.8 KiB
HTML
68 lines
1.8 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>OpenFest Live Streaming</title>
|
||
|
|
||
|
<link href="video-js.min.css" rel="stylesheet" type="text/css">
|
||
|
<script src="video.js"></script>
|
||
|
|
||
|
<script>
|
||
|
videojs.options.flash.swf = "video-js.swf";
|
||
|
</script>
|
||
|
|
||
|
<style type="text/css">
|
||
|
body, html {
|
||
|
height: 100%;
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
background-color: #1B1B1B;
|
||
|
}
|
||
|
|
||
|
.wrapper {
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
top: 50%;
|
||
|
transform: translateY(-50%);
|
||
|
ms-transform: translateY(-50%);
|
||
|
-webkit-transform: translateY(-50%);
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.four-by-three.aspect-ratio { padding-bottom: 75% }
|
||
|
.sixteen-by-nine.aspect-ratio { padding-bottom: 56.25% }
|
||
|
|
||
|
.content {
|
||
|
position: absolute;
|
||
|
top: 0; bottom: 0; left: 0; right: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
/* Positioning for the main box */
|
||
|
.main-box {
|
||
|
width: 85%;
|
||
|
max-width: 700px;
|
||
|
}
|
||
|
|
||
|
.video-js { height: 100% }
|
||
|
|
||
|
.vjs-fullscreen { padding-top: 0px; }
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div class="wrapper main-box">
|
||
|
<div class="sixteen-by-nine aspect-ratio"></div>
|
||
|
<div class="content">
|
||
|
<video class="video-js vjs-default-skin" controls preload="none" width="auto" height="auto" poster="ruseconf-poster.png" data-setup="{}">
|
||
|
<source src="http://grendel.ludost.net/openfest/hls/test.m3u8" type="application/x-mpegURL" />
|
||
|
<source src="rtmp://grendel.ludost.net/openfest/test" type='rtmp/flv' />
|
||
|
<p class="vjs-no-js">
|
||
|
To view this video please enable JavaScript,
|
||
|
and consider upgrading to a web browser that
|
||
|
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
|
||
|
</video>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|