Hopefully resolves issues with videojs occasionally not initializing the player
parent
8da1310e24
commit
a0be256a64
|
@ -4,6 +4,8 @@
|
|||
<link rel="stylesheet" type="text/css" href="/local.css">
|
||||
<link rel="icon" type="image/svg" href="/logo.svg">
|
||||
<title>{{ sitename }}</title>
|
||||
{% block head %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{% extends "base.njk" %}
|
||||
{% block head %}
|
||||
<script src="/videojs/video.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/videojs/video-js.min.css">
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<script>
|
||||
function newPopup(url) {
|
||||
|
@ -16,10 +20,11 @@ function newPopup(url) {
|
|||
<iframe src="/chat?room={{ username }}" frameborder="0" style="width: 100%;height: 100%; min-height: 500px;" allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script>window.HELP_IMPROVE_VIDEOJS = false;</script>
|
||||
<script src="/videojs/video.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/videojs/video-js.min.css">
|
||||
</br>
|
||||
<noscript>The webclients for the stream and the chat require javascript, but feel free to use the direct links above!</br></br></noscript>
|
||||
{{ about | escape }}
|
||||
<script>
|
||||
window.HELP_IMPROVE_VIDEOJS = false;
|
||||
var player = videojs('live-video', {
|
||||
html: {
|
||||
nativeCaptions: false,
|
||||
|
@ -34,7 +39,5 @@ function newPopup(url) {
|
|||
type: 'application/dash+xml'
|
||||
});
|
||||
})
|
||||
</script></br>
|
||||
<noscript>The webclients for the stream and the chat require javascript, but feel free to use the direct links above!</br></br></noscript>
|
||||
{{ about | escape }}
|
||||
</script>
|
||||
{% endblock %}
|
Reference in New Issue