########################################################################################## VID-14: Browser tab will lock up if video is not HLS and mimetype omitted ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Fixed (2019-12-15 11:13:49) Project: Videos.bentasker.co.uk (VID) Reported By: btasker Assigned To: btasker Components: - Embed Code Affected Versions: - v0.11 - v0.12 - v0.13 - v0.14 Targeted for fix in version: - v0.15 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== The Player page Player.html is fairly simplistic, extracting a video path from the query string in order to pass into this statement -- BEGIN SNIPPET -- -- END SNIPPET -- However, if the video is an MP4 (for example) rather than being HLS, the player will instantiate and then that browser tab will become unresponsive in Chromium. This is because the embed script assumes HLS by default, and so will have written a source tag in with the type attribute set to application/x-mpegURL. The player then tries to parse the blob as if it were a manifest. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2019-04-25 15:37:08 btasker ----------------------------------------------------------------------------------------- Fixing in the player page would probably be reasonably trivial, would just need to check the extension of the provided player path and then inject a mimetype based upon that. However, this issue isn't really constrained to the Player page (that's just where it was detected), and an embed anywhere could trigger it if the mimetype were excluded from the call to embedBensPlayer. So really, the embed script itself needs updating to do some form of mimetype detection (possibly allowing override still?) I'm going to update this issue title from being specific to the player to being more generic ----------------------------------------------------------------------------------------- 2019-04-25 15:37:59 ----------------------------------------------------------------------------------------- btasker added 'VNEXT' to Fix Version ----------------------------------------------------------------------------------------- 2019-12-15 10:01:39 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: videos.bentasker.co.uk Host:Rimmer commit c2d7249fd148bb8ff7dcabf01581f70fded3e3c2 Author: B Tasker