-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeldolgozo.php
103 lines (95 loc) · 3.06 KB
/
feldolgozo.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
header('Content-type: text/plain');
header('Content-disposition: attachment; filename="file.html"');
$a = $_POST["a"]; // ez az egyik változó paraméter
$b = $_POST["b"]; // ez meg a másik
$c = $_POST["felirat_magyar"]; // ez meg a másik
$d = $_POST["felirat_angol"]; // ez meg a másik
$html = '
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Ördög fióka</title>
<!-- Base Player -->
<link href="http://neocsatblog.mblx.hu/embeds/video-js.min.css" rel="stylesheet" />
<script src="http://neocsatblog.mblx.hu/embeds/video.dev.js"></script>
<!-- Plugins -->
<link href="http://neocsatblog.mblx.hu/embeds/videojs.addThis.css" rel="stylesheet" />
<script src="http://neocsatblog.mblx.hu/embeds/videojs.addThis.js"></script>
<script src="http://cdn.sc.gl/videojs-hotkeys/latest/videojs.hotkeys.min.js"></script>
<script src="videojs.loopbutton.js"></script>
<link rel="stylesheet" type="text/css" href="videojs.loopbutton.css" />
<script>
var elem = document.getElementById("vid3");
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.msRequestFullscreen) {
elem.msRequestFullscreen();
} else if (elem.mozRequestFullScreen) {
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) {
elem.webkitRequestFullscreen();
}
</script>
<style type="text/css">
.vjs-default-skin { color: #d9d0d0; }
.vjs-default-skin .vjs-play-progress,
.vjs-default-skin .vjs-volume-level { background-color: #ff0000 }
.vjs-default-skin .vjs-control-bar,
.vjs-default-skin .vjs-big-play-button { background: rgba(0,0,0,0.51) }
.vjs-default-skin .vjs-slider { background: rgba(0,0,0,0.17) }
.vjs-big-play-button {
margin-left: 236px;
margin-top: 66px;
background: rgba(0, 0, 0, 1) !important;
width: 93px!important;
height: 72px!important;
}
}
.vjs-big-play-button:hover{
background: rgba(192, 40, 40, 0.97)!important;
}
</style>
</head>
<body>
<video id="vid3" controls preload="auto" poster="'.$b.'" class="video-js vjs-default-skin" >
<source src="'.$a.'" type="video/mp4">
<track kind="captions" "'.$c.'" srclang="Eng" label="English"></track>
<track kind="captions" "'.$d.'" srclang="Hun" label="Magyar"></track>
</video>
<script>
videojs("vid3", {
height: 267,
width: 640,
plugins: {
addThis: {
reddit: false,
delecious: false,
website_url: "http://www.neocsatblog.mblx.hu",
embed: true
}
}
}, function(){
// Player (this) is initialized and ready.
});
</script>
<script>
videojs("vid3").ready(function() {
this.hotkeys();
});
</script>
<script src="http://neocsatblog.mblx.hu/embeds/videojs.urlparams.js"></script>
<script>
// initialize video.js
var video = videojs("vid3");
// read in URL parameters and apply them
video.urlparams();
</script>
<script>
videojs("vid3", { plugins: { loopbutton: true } });
</script>
</body>
</html>'; // ez egy példa html
print $html;
?>