-
Notifications
You must be signed in to change notification settings - Fork 4
/
plyr.html
80 lines (68 loc) · 2.3 KB
/
plyr.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
<link rel="icon" href="drive-logo.png">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.plyr {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/*object-fit: cover;
z-index: -1;*/
}
</style>
<!-- Docs styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/CDNSFree2/Plyr/plyr.css" />
<!--Add a Simple HTML5 Video tag-->
<div id="container">
<video controls poster="https://bit.ly/bbsampleposter" id="vid1">
<!-- Video files -->
<source src="https://rebrand.ly/sample-video" type="video/mp4" size="576" />
</video>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.6.7/plyr.min.js"></script>
<script>
var controls =
[
'play-large', // The large play button in the center
// 'restart', // Restart playback
// 'rewind', // Rewind by the seek time (default 10 seconds)
'play', // Play/pause playback
'fast-forward', // Fast forward by the seek time (default 10 seconds)
'progress', // The progress bar and scrubber for playback and buffering
'current-time', // The current time of playback
'duration', // The full duration of the media
'mute', // Toggle mute
'volume', // Volume control
'captions', // Toggle captions
'settings', // Settings menu
'pip', // Picture-in-picture (currently Safari only)
'airplay', // Airplay (currently Safari only)
//'download', // Show a download button with a link to either the current source or a custom URL you specify in your options
'fullscreen' // Toggle fullscreen
];
const player = new Plyr('#vid1',{controls});
</script>
<style>
:root {
--plyr-color-main: #e657ff;
--plyr-video-control-color :#e8ffba;
}
</style>
<script>
let apikey = 'AIzaSyD739-eb6NzS_KbVJq1K8ZAxnrMfkIqPyw';
function getparam(a,e){return e||(e=window.location.href),new URL(e).searchParams.get(a)}
let video = document.getElementById('vid1');
if(getparam('id')){
let json = JSON.parse(atob(getparam('id'))) ;
let driveid = json.id;
video.src = driveid;
video.poster = json.posterurl;
}
</script>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-6335ced4a8ebd2f2"></script>
<img style="display: none;" src="https://iplogger.com/DrivePlyr">