########################################################################################## VID-3: Only load HLS code if video is HLS ########################################################################################## Issue Type: Task ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2019-03-27 13:16:35) Project: Videos.bentasker.co.uk (VID) Reported By: btasker Assigned To: btasker Components: - Embed Code Targeted for fix in version: - v0.12 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== It's possible to embed media that isn't HLS by passing a mimetype that isn't application/x-mpegURL into embedBensPlayer: -- BEGIN SNIPPET -- embedBensPlayer('2018/03/201803-trivium_oh_fuck.mp3','audio/mpeg'); -- END SNIPPET -- Assuming that works (not actually tested it yet), we'll still load the HLS plugin, which will slightly delay start up time, for no good reason. So, the embed code should check the specified mime-type and skip the HLS plugin if it doesn't look like it's going to be required. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2019-03-27 12:56:21 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: videos.bentasker.co.uk Host:Rimmer commit 4abcd6903d7f218963970d36fb851aa50db4774d Author: B Tasker