From e54d16a38dba5026a16aa4af7ea46a4b4a03c709 Mon Sep 17 00:00:00 2001 From: DrClockwork Date: Tue, 17 Oct 2017 13:40:29 +0200 Subject: [PATCH 1/3] use style tag --- pod_project/pods/templates/videos/video_player.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pod_project/pods/templates/videos/video_player.html b/pod_project/pods/templates/videos/video_player.html index 8b6c13b5..e2b92df3 100755 --- a/pod_project/pods/templates/videos/video_player.html +++ b/pod_project/pods/templates/videos/video_player.html @@ -46,9 +46,8 @@ id="player_video" class="video-js vjs-default-skin" controls - preload="none" - width="100%" - height="400" + preload="auto" + style="width:100%;height:400px;" {% if video.thumbnail %} poster="{{ video.thumbnail.url }}" data-setup='{"poster":"{{ video.thumbnail.url }}","playbackRates":[0.5, 1, 1.5, 2]}' @@ -94,9 +93,8 @@ id="player_video" class="video-js vjs-default-skin" controls - preload="none" - width="100%" - height="300" + preload="auto" + style="width:100%;height:300px;" {% if video.thumbnail %} poster="{{ video.thumbnail.url }}" data-setup='{"poster":"{{ video.thumbnail.url }}","playbackRates":[0.5, 1, 1.5, 2]}' From 027f4d1f08b697626a1fb20c7419282f7715c0c5 Mon Sep 17 00:00:00 2001 From: DrClockwork Date: Tue, 17 Oct 2017 13:53:03 +0200 Subject: [PATCH 2/3] reset video config style --- pod_project/pods/templates/videos/video_player.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod_project/pods/templates/videos/video_player.html b/pod_project/pods/templates/videos/video_player.html index e2b92df3..ad7056d4 100755 --- a/pod_project/pods/templates/videos/video_player.html +++ b/pod_project/pods/templates/videos/video_player.html @@ -47,7 +47,8 @@ class="video-js vjs-default-skin" controls preload="auto" - style="width:100%;height:400px;" + width=100% + height=400 {% if video.thumbnail %} poster="{{ video.thumbnail.url }}" data-setup='{"poster":"{{ video.thumbnail.url }}","playbackRates":[0.5, 1, 1.5, 2]}' From 423053eb99a0fdc242c37607eb2d9a8ebaa280fc Mon Sep 17 00:00:00 2001 From: DrClockwork Date: Tue, 17 Oct 2017 13:54:42 +0200 Subject: [PATCH 3/3] reset video config style --- pod_project/pods/templates/videos/video_player.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod_project/pods/templates/videos/video_player.html b/pod_project/pods/templates/videos/video_player.html index ad7056d4..98132617 100755 --- a/pod_project/pods/templates/videos/video_player.html +++ b/pod_project/pods/templates/videos/video_player.html @@ -47,8 +47,8 @@ class="video-js vjs-default-skin" controls preload="auto" - width=100% - height=400 + width="100%" + height="400" {% if video.thumbnail %} poster="{{ video.thumbnail.url }}" data-setup='{"poster":"{{ video.thumbnail.url }}","playbackRates":[0.5, 1, 1.5, 2]}'