From ceef04455c9cfd3eee2b7cc4a76d657ba1f50fa0 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Wed, 24 Oct 2018 13:34:08 +0200 Subject: [PATCH] Video player in project header bug (firefox): Unable to play video in in project header in firefox. Reason: Firefox is missing ResizeObserver, so as a workaround videoJs inserts an iframe bellow the video and listens to resize events on that. This iframe lands in front of the video when we use the class ".embed-responsive", and therefore we can not start the wideo. Solution: I could not see any difference in how the page was rendered with/without this class so I removed it. --- src/templates/projects/view_embed.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/projects/view_embed.pug b/src/templates/projects/view_embed.pug index 0a4e2beb..9b164cfc 100644 --- a/src/templates/projects/view_embed.pug +++ b/src/templates/projects/view_embed.pug @@ -4,7 +4,7 @@ include ../mixins/components | {% block body %} section.node-preview | {% if header_video_file %} - .embed-responsive.embed-responsive-16by9 + .embed-responsive-16by9 video#videoplayer.video-js.vjs-fluid.embed-responsive-item( controls, data-setup="{}",