2014-10-29 13:58:47 +02:00
|
|
|
<!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;
|
2014-10-29 15:11:21 +02:00
|
|
|
background-color: #FFFFFF;
|
2014-10-29 13:58:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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">
|
2014-10-29 15:11:21 +02:00
|
|
|
<video class="video-js vjs-default-skin" controls preload="none" width="auto" height="auto" poster="openfest-poster.png" data-setup="{}">
|
|
|
|
<source src="http://grendel.ludost.net/openfest/hls/{{stream}}.m3u8" type="application/x-mpegURL" />
|
|
|
|
<source src="rtmp://grendel.ludost.net/openfest/{{stream}}" type='rtmp/flv' />
|
2014-10-29 13:58:47 +02:00
|
|
|
<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>
|