The Player page
Player.html is fairly simplistic, extracting a video path from the query string in order to pass into this statement
<script type="text/javascript">embedBensPlayer(vidurl);</script>
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
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
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
2019-12-15 10:01:39
View Commit | View Changes
2019-12-15 10:49:39
View Commit | View Changes
2019-12-15 10:53:27
Obviously some of those aren't videos and won't be called via the script.
The only other thing to decide, really, is whether or not we remove the ability to manually specify the mimetype. That'd prevent accidents breaking playback, but would mean that it's hard to quickly workaround a bug in the calculator.
I guess the ability to override could be added later, it'd need to be in a way that didn't mean all existing embeds override by default.
2019-12-15 10:55:39
View Commit | View Changes
2019-12-15 10:59:39
View Commit | View Changes
2019-12-15 11:13:50
2019-12-15 11:13:50
2019-12-15 11:13:53