-
Notifications
You must be signed in to change notification settings - Fork 0
/
vk.html
87 lines (84 loc) · 2.93 KB
/
vk.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html style="background-color: black; margin: 0; padding: 0; box-sizing: border-box; height: 100%;">
<head>
<title>Vk plugin</title>
<style type="text/css">
h1 {
font-family: sans-serif;
color: black;
}
</style>
<script type="text/javascript" src="//msx.benzac.de/js/tvx-plugin.min.js"></script>
<script type="text/javascript">
function MyPlayer() {
this.init = function () {
//Init player
};
this.ready = function () {
//Player is ready
TVXVideoPlugin.startPlayback();//This will call the play function and will start the update process
};
this.play = function () {
//Play
};
this.pause = function () {
//Pause
};
this.stop = function () {
//Stop
};
this.getDuration = function () {
//Get duration in seconds
return 60;
};
this.getPosition = function () {
//Get position in seconds
return 0;
};
this.setPosition = function (position) {
//Set position in seconds
if (position == 60) {
TVXVideoPlugin.stopPlayback();//Generally, this will unload the iframe
}
};
this.setVolume = function (volume) {
//Set volume (0 .. 100)
};
this.getVolume = function () {
//Get volume (0 .. 100)
return 100;
};
this.setMuted = function (muted) {
//Set muted
};
this.isMuted = function () {
//Get muted
return false;
};
this.getSpeed = function () {
//Get speed (0.125 .. 8.0)
return 1;
};
this.setSpeed = function (speed) {
//Set speed (0.125 .. 8.0)
};
this.getUpdateData = function () {
//Get update data (this will be called each second)
return {
position: this.getPosition(),
duration: this.getDuration(),
speed: this.getSpeed()
};
};
}
TVXPluginTools.onReady(function () {
TVXVideoPlugin.setupPlayer(new MyPlayer());
TVXVideoPlugin.init();
});
</script>
</head>
<body style="margin: 0; padding: 0; box-sizing: border-box; height: 100vh; overflow-y: hidden;">
<iframe width="100%" height="100%" src="https://uptostream.com/iframe/tar5hgvc4j71" scrolling="no" frameborder="0"
allowfullscreen webkitallowfullscreen></iframe>
</body>
</html>