project Websites / videos.bentasker.co.uk avatar

Websites / videos.bentasker.co.uk: 2ebc9f72




Update README

Update README

Commit 2ebc9f72.

Authored 2022-03-11T19:44:16.000+00:00 by B Tasker in project Websites / videos.bentasker.co.uk

+4 lines -2 lines

Commit Signature

Changes

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
# @@ -22,13 +22,15 @@ For now, videos should be SCP'd up, ideally as HLS
#
# The player will take on the dimensions of it's parent container, so it's probably desirable to wrap the call to it in a div of the desired size.
#
# -Call in the `embed` script, and then call the embed function passing the video path to it:
# +Call in the `embed` script, and then create a div with class `embedBensPlayer`
#
# <div style="width: 60%">
# <script type="text/javascript" src="https://videos.bentasker.co.uk/resources/embed/embed.min.js"></script>
# - <script type="text/javascript">embedBensPlayer('2017/20170111-noisy-bearing/noisy_bearing_master.m3u8');</script>
# + <div class="embedBensPlayer" data-src='2017/20170111-noisy-bearing/noisy_bearing_master.m3u8'></div>
# </div>
#
# +When DOMReady is reached, the video will be embedded.
# +
# Videos must be hosted on https://videos.bentasker.co.uk otherwise the player will refuse to play them.
#
# The path is simply the path under the docroot (i.e. the path as seen below `/usr/share/nginx/static/videos/` on hiyori).
#