-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplayer.html
More file actions
69 lines (68 loc) · 1.76 KB
/
Copy pathplayer.html
File metadata and controls
69 lines (68 loc) · 1.76 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Player</title></head>
<body>
<div id="video_player"></div><script type="text/javascript" src="https://content.jwplatform.com/libraries/0P4vdmeO.js">
</script><style>
body {
background-color: black;overflow-x: hidden; overflow-y: hidden;
}
.jwplayer.jw-flag-aspect-mode { height: 100%!important; }</style>
<script type="text/javascript">
if (window.location.href.includes('?link=')) {
var video = window.location.href.split('=')[1]
} else {
var video = prompt('What video would you like to play?')
}
var player = jwplayer("video_player");
var config = {
width: window.innerWidth,
height: window.innerHeight,
aspectratio: "16:9",
autostart: false,
controls: true,
primary: "html5",
abouttext: "sitesgithub",
aboutlink: "sitesgithub.github.io",
advertising: {
client: "vast",
offset: "pre",
tag: "",
},
skin: {
controlbar: {
"icons": "rgba(255,255,255,1.0)",
"iconsActive": "#bf1e2d",
"iconsactive": "#bf1e2d",
},
menus: {
"textActive": "#bf1e2d",
"textactive": "#bf1e2d"
},
tooltips: {
"text": "#bf1e2d"
}
},
sources: [{
"file": video,
"label": "0",
"type": "video/mp4"
}],
tracks: null,
logo: {
link: "sitesgithub.github.io",
position: "bottom-right",
},
captions: {
color: "#ffffff",
fontSize: "14",
fontFamily: "Trebuchet MS, Sans Serif",
backgroundColor: "",
}
};
player.setup(config);
</script>
</body></html>