Better streaming, less latency and nicer page

certbot_on_virtu
Alexandre Iooss 2020-08-26 16:24:01 +02:00
parent b84fcbf9ce
commit 097d4b8b93
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 21 additions and 26 deletions

View File

@ -8,7 +8,7 @@
</head>
<body class="bg-dark m-2">
<div class="container">
<video id="my-video" class="video-js embed-responsive shadow-lg rounded-sm"></video>
<video id="my-video" class="video-js embed-responsive embed-responsive-16by9 shadow-lg rounded-sm"></video>
</div>
<script src="//unpkg.com/video.js@7/dist/video.min.js"></script>
@ -18,7 +18,9 @@
controls: true,
autoplay: true,
preload: 'auto',
muted: true
muted: true,
fluid: true,
aspectRatio: '16:9'
}).src({
type: 'application/x-mpegURL',
src: `/hls/${videoId}.m3u8`

View File

@ -1,3 +1,5 @@
{{ ansible_header | comment }}
rtmp {
server {
listen 1935;
@ -7,7 +9,7 @@ rtmp {
hls on;
hls_path /var/www/stream/hls/;
hls_fragment 3;
hls_playlist_length 60;
hls_playlist_length 20;
record off;
}

View File

@ -1,3 +1,5 @@
{{ ansible_header | comment }}
server {
listen 80;
listen [::]:80;

View File

@ -1,11 +0,0 @@
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}