#
@@ -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>
#
+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).