-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (64 loc) · 2.18 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cuspl</title>
<link href="assets/videojs/videojs.css" rel="stylesheet" />
<link href="assets/cuspl/icons/style.css" rel="stylesheet" />
<link href="assets/cuspl/cuspl.css" rel="stylesheet" />
<link
href="assets/cuspl/players/videojs/cuspl-videojs.css"
rel="stylesheet"
/>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<script src="assets/videojs/videojs.js"></script>
<script
src="assets/cuspl/players/videojs/cuspl-videojs.js"
rel="stylesheet"
></script>
<script src="assets/cuspl/jquery-cuspl.js" rel="stylesheet"></script>
<style></style>
</head>
<body>
<div id="testPlayer" style="width: 100%; height: 100%"></div>
<script>
let cusplRef = null;
$(document).ready(function () {
cusplRef = $("#testPlayer").cuspl({
id: "video-123456",
source: [
{
src:
"https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4",
label: "720p",
},
{
src:
"https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4",
label: "360p",
},
],
poster: "assets/video-poster.png",
// size: {
// width: 720,
// height: 406,
// },
watermark: "watermark text",
skipIntro: 15,
aspectRatio: "16:9",
previousButton: function () {
alert("handle previous video");
},
nextButton: function () {
alert("handle next video");
},
});
});
</script>
</body>
</html>