-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe.html
40 lines (31 loc) · 1013 Bytes
/
iframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="resources/js/videe.js"></script>
</head>
<body>
<video id="video-player" class="video-js vjs-default-skin vjs-big-play-centered" data-setup='{}'
style="background-color:rgba(0,0,0,0.0);">
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>
<style>
body {
margin: 0 auto;
}
</style>
<script language="JavaScript">
var parser = document.createElement('a');
parser.href = document.referrer;
function getTokenFromUrl() {
var qs = window.location.toString().split("?")[1];
qs = qs.replace("token=", "");
return qs;
}
(function () {
var vd = new Videe(document.getElementById('video-player'), getTokenFromUrl(), parser.hostname);
vd.initWidget();
})();
</script>
</body>
</html>