trygve.me/fuglekasse/index.php

69 lines
1.8 KiB
PHP
Raw Permalink Normal View History

2021-03-16 14:06:58 +00:00
<!DOCTYPE html>
<html lang="no">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="UTF-8">
<meta name="theme-color" content="#263238"/>
<link rel="icon" type="image/png" href="/dist/favicon.png">
2021-03-17 12:46:32 +00:00
<link rel="stylesheet" href="/css/main.css">
2021-03-16 14:06:58 +00:00
<link href="./video-js/video-js.css" rel="stylesheet">
<link href="./video-js/themes/forest/index.css" rel="stylesheet">
2021-04-12 17:39:46 +00:00
<link href="./chromecast/silvermine-videojs-chromecast.css" rel="stylesheet">
2021-03-16 14:50:30 +00:00
<style>
video{
border-radius: 0.5rem;
}
.cont{
width: 1296px;
}
@media only screen and (max-width:1350px){
.cont{
width: 90%;
}
}
@media only screen and (max-width:700px){
.cont{
width: 100%;
}
}
2021-03-21 11:46:35 +00:00
2021-03-16 14:50:30 +00:00
</style>
2021-03-16 14:06:58 +00:00
</head>
<body class="theme-auto">
<?php include "../common/header.html"; ?>
<div class="cont">
2021-03-20 23:27:51 +00:00
<h1 class="center-txt">Direktesending fra fuglekassa</h1>
2021-03-16 14:50:30 +00:00
<video id="live_stream" class="video-js responsive main-vid vjs-theme-forest" controls autoplay="true" preload="auto"
data-setup='{"controls": true, "autoplay": true, "responsive": true, "fluid": true}'>
2021-03-16 14:06:58 +00:00
<source src="https://trygve.me:8080/hls/stream.m3u8" type="application/x-mpegURL">
</video>
</div>
<script>
2021-04-12 17:39:46 +00:00
window.SILVERMINE_VIDEOJS_CHROMECAST_CONFIG = {
preloadWebComponents: true,
};
</script>
<script src="./video-js/video.js"></script>
<script src="./chromecast/silvermine-videojs-chromecast.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
<script>
var options;
options = {
techOrder: [ 'chromecast', 'html5' ],
};
videojs('live_stream', options, function() {
var player = this;
player.chromecast();
});
2021-03-16 14:06:58 +00:00
</script>
2021-04-12 17:39:46 +00:00
</body>
2021-03-16 14:06:58 +00:00
</html>