project Websites / videos.bentasker.co.uk avatar

Websites / videos.bentasker.co.uk: 623e6369




VID-8 Create basic player page

VID-8 Create basic player page

Really is very, very basic currently, comprises of logic to get the video path from the querystring (parameter is {{url}}) and then to embed the player

Commit 623e6369.

Authored 2019-03-29T08:58:05.000+00:00 by Ben Tasker in project Websites / videos.bentasker.co.uk

+24 lines -0 lines

Changes

diff --git a/Player.html b/Player.html
--- a/Player.html
+++ b/Player.html
# @@ -0,0 +1,24 @@
# +<html>
# +<head>
# +<script type="text/javascript" src="https://videos.bentasker.co.uk/resources/embed/embed.js"></script>
# +</head>
# +<body>
# +
# +<center>
# +<div id="maincontainer" style="width: 50%; height: 50%">
# +
# +<script type="text/javascript">
# +// Get the video path from the request URL
# +const urlParams = new URLSearchParams(window.location.search);
# +vidurl = urlParams.get('url');
# +
# +
# +embedBensPlayer(vidurl);
# +</script>
# +
# +</div>
# +</center>
# +
# +</body>
# +</html>
# +
#