From 500c0deec274afd19a98fa0b2947054b25b6aecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 13 Oct 2021 17:18:35 +0800 Subject: [PATCH] change preload --- app/views/admin/ad_images/_jplayer.html.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/views/admin/ad_images/_jplayer.html.erb b/app/views/admin/ad_images/_jplayer.html.erb index d2b5aea..2f4dbaf 100644 --- a/app/views/admin/ad_images/_jplayer.html.erb +++ b/app/views/admin/ad_images/_jplayer.html.erb @@ -64,6 +64,7 @@ left: -100%; right: -100%; margin: auto; + min-width: 100%; min-height: 100%; object-fit: cover; @@ -266,6 +267,7 @@ autoBlur: false, smoothPlayBar: true, keyEnabled: true, + preload: 'auto', keyBindings: { play: { key: 80, // p @@ -277,6 +279,14 @@ } } }, + fullScreen: { + key: 70, // f + fn: function(f) { + if(f.status.video || f.options.audioFullScreen) { + f._setOption("fullScreen", !f.options.fullScreen); + } + } + }, muted: { key: 77, // m fn: function(f) {