-
Notifications
You must be signed in to change notification settings - Fork 1
/
amazon.html
68 lines (57 loc) · 2.26 KB
/
amazon.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
<html>
<meta charset="utf-8">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script>
<script type="text/javascript" src="plugin.min.js"></script>
<script type="text/javascript"
src="//cdn.jsdelivr.net/gh/clappr/clappr-level-selector-plugin@latest/dist/level-selector.min.js"></script>
<link href="plugin.css" rel="stylesheet" />
</head>
<body>
<div id="player-wrapper" style="width:848px;height:480px"></div>
<img src="http://ec2-18-194-215-7.eu-central-1.compute.amazonaws.com:1935/protect/_definst_/mp4:sample.mp4/image.gif">
<script>
$(document).ready(function() {
var source = 'http://ec2-18-194-215-7.eu-central-1.compute.amazonaws.com:1935/protect/_definst_/mp4:sample.mp4/playlist.m3u8';
var player = new Clappr.Player({
source:source,
parentId: "#player-wrapper",
autoPlay: true,
emrePluginConfig:{
textContent:"EMRE KARATAŞOĞLU ID NUMBER"
},
actualLiveTime: false,
poster: 'http://www.kingglitter.com/wp-content/uploads/2015/10/request-a-sample-547-p-600x600.jpg',
strings: {
'tr-TR': {
'live': 'CANLI',
'back_to_live': 'CANLI YAYINA GERİ DÖN',
'playback_not_supported': 'Tarayıcınız bu ortamı oynatamıyor. Lütfen farklı bir tarayıcı ile tekrar deneyin'
}
},
plugins: [HelloWorld,LevelSelector],
language: 'tr-TR',
mediacontrol: {
buttons: "#fff",
seekbar: "#fff",
},
watermark: 'http://letheasoftware.com/wp-content/uploads/2014/06/1111.png',
watermarkLink: 'http://emrekaratasoglu.com',
position: 'top-right',
width: "100%",
height: '100%',
events: {
onPlay: function() {
},
onPause:function(){
$(".play-wrapper").show().css("display","block !important");
},
onEnded: function() {
}
}
});
});
</script>
</body>
</html>