This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.php
55 lines (55 loc) · 1.65 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<title>Video Embedding System</title>
<meta charset="UTF-8"/>
<script src="jwplayer/jwplayer.js"></script>
<script src="jwplayer/provider.html5.js"></script>
<script src="jwplayer/key.js"></script>
<link rel="stylesheet" type="text/css" href="jwplayer/skins/seven.css">
<link rel="stylesheet" type="text/css" href="jwplayer/skins/newtab.css">
</head>
<body>
<?php require_once("curl.php");?>
<div id="videoContainer">影片載入中...</div>
<script type="text/JavaScript">
var playerInstance = jwplayer("videoContainer");
playerInstance.setup({
title: "<?php echo $title;?>",
//description: "",
image: "<?php echo $shot;?>",
//mediaid: "",
sources: [<?php require_once("source.php");?>],
mute: "false",
autostart: "true",
repeat: "false",
abouttext: "lmly9193.github.io",
aboutlink: "https://lmly9193.github.io",
height: "100%",
width: "100%",
displaytitle: "true",
displaydescription: "true",
stretching: "uniform", // "uniform","exactfit","fill","none"
primary: "html5",
flashplayer: "jwplayer/jwplayer.flash.swf",
preload:"metadata", //"none","metadata","auto"
skin: {
name: "seven",
},
//logo: {
// file: "/assets/logo.png",
// hide: "false",
// link: "https://lmly9193.github.io",
// margin: "8",
// position: "top-left",
//},
sharing:{
link: "<?php echo $sharing;?>",
code: "<iframe src='<?php echo $sharing;?>' width='640' height='360' frameborder='0' scrolling='auto'></iframe>",
heading: "分享",
sites: ["facebook","twitter","tumblr","googleplus","reddit","linkedin","interest","email"],
},
});
</script>
</body>
</html>