From f2efeb782472ef2a6b0b8175815f7ec2ece7a8bc Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 3 May 2021 19:55:10 +0300 Subject: video tag --- web/kvm/index.html | 4 +++- web/kvm/window-stream.pug | 1 + web/share/css/kvm/stream.css | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/kvm/index.html b/web/kvm/index.html index 7291c698..67c91bc5 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -512,7 +512,9 @@
-
+
+ +
diff --git a/web/kvm/window-stream.pug b/web/kvm/window-stream.pug index 802ac87c..3bd7c2d5 100644 --- a/web/kvm/window-stream.pug +++ b/web/kvm/window-stream.pug @@ -10,6 +10,7 @@ div(id="stream-window" class="window window-resizable" data-show-by-button="show div(id="stream-box" class="stream-box-offline") img(id="stream-image" src=`${png_dir}/blank-stream.png`) + video(id="stream-video" class="hidden" autoplay playsinline muted) div(id="stream-mouse-buttons" class="keypad" align="center") div(class="keypad-block") diff --git a/web/share/css/kvm/stream.css b/web/share/css/kvm/stream.css index 2c61bcc9..79b74d09 100644 --- a/web/share/css/kvm/stream.css +++ b/web/share/css/kvm/stream.css @@ -56,7 +56,8 @@ div.stream-box-mouse-enabled { cursor: url("../../svg/stream-mouse-cursor.svg"), pointer; } -img#stream-image { +img#stream-image, +video#stream-video { width: 100%; height: 100%; object-fit: contain; -- cgit v1.2.3