project Websites / videos.bentasker.co.uk avatar

Websites / videos.bentasker.co.uk: 512fea1e




Update README

Update README

Commit 512fea1e.

Authored 2019-12-15T10:57:07.000+00:00 by B Tasker in project Websites / videos.bentasker.co.uk

+17 lines -6 lines

Changes

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
# @@ -36,12 +36,23 @@ The path is simply the path under the docroot (i.e. the path as seen below `/usr
#
# #### Non-HLS media
#
# -It's preferred that media be HLS, however if that's not the case, then `embedBensPlayer` can be passed a mime-type to ensure things are declared to VideoJS correctly:
# -
# - <div style="width: 600px">
# - <script type="text/javascript" src="https://videos.bentasker.co.uk/resources/embed/embed.min.js"></script>
# - <script type="text/javascript">embedBensPlayer('2018/03/201803-trivium_oh_fuck.mp3','audio/mpeg');</script>
# - </div>
# +It's preferred that media be HLS, however if `embedBensPlayer` will attempt to determine the mimetype based on the filename extension of the playpath it's provided.
# +
# +It can currently recognise
# +
# +* `m3u8`
# +* `avi`
# +* `mp3`
# +* `mkv`
# +* `webm`
# +* `mov`
# +* `mpg`
# +* `mpeg`
# +* `mp4`
# +* `mp4a`
# +* `wav`
# +
# +If it cannot identify from the filename extension, then `video/mp4` will be assumed
#
#
# ----
#