This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.svelte
115 lines (105 loc) · 2.57 KB
/
App.svelte
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
104
105
106
107
108
109
110
111
112
113
114
<script>
import { Plyr } from './components/components.module.js';
let events = ['timeupdate']
function logEvent(event) {
console.log(event)
}
</script>
<style>
</style>
<h1>Video Player</h1>
<Plyr on:timeupdate={logEvent} eventsToEmit={events}>
<video
crossorigin
playsinline
poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4"
>
<source
size="576"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4"
type="video/mp4"
>
<source
size="720"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4"
type="video/mp4"
>
<source
size="1080"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4"
type="video/mp4"
>
<track
default
kind="captions"
label="English"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt"
srclang="en"
>
<track
kind="captions"
label="Français"
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"
srclang="fr"
>
<a
download=""
href="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4"
>
Download
</a>
</video>
</Plyr>
<h1>Audio Player</h1>
<Plyr>
<audio
crossorigin
playsinline
>
<source
src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3"
type="audio/mp3"
>
<source
src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg"
type="audio/ogg"
>
</audio>
</Plyr>
<h1>YouTube</h1>
<Plyr>
<div class="plyr__video-embed">
<iframe
allow="autoplay"
allowfullscreen
allowtransparency
src="https://www.youtube.com/embed/bTqVqk7FSmY?iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1"
/>
</div>
</Plyr>
<h1>Vimeo</h1>
<Plyr>
<div class="plyr__video-embed">
<iframe
allow="autoplay"
allowfullscreen
allowtransparency
src="https://player.vimeo.com/video/76979871?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media"
/>
</div>
</Plyr>
<h1>YouTube (Not Progressive Enhancement)</h1>
<Plyr>
<div
data-plyr-embed-id="bTqVqk7FSmY"
data-plyr-provider="youtube"
/>
</Plyr>
<h1>Vimeo (Not Progressive Enhancement)</h1>
<Plyr>
<div
data-plyr-embed-id="76979871"
data-plyr-provider="vimeo"
/>
</Plyr>