-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathcolors.html
More file actions
86 lines (79 loc) · 3.05 KB
/
colors.html
File metadata and controls
86 lines (79 loc) · 3.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cloudinary Video Player</title>
<link
href="https://res.cloudinary.com/cloudinary-marketing/image/upload/f_auto,q_auto/c_scale,w_32,e_hue:290/creative_staging/cloudinary_internal/Website/Brand%20Updates/Favicon/cloudinary_web_favicon_192x192.png"
rel="icon"
type="image/png"
/>
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="container p-4 col-12 col-md-9 col-xl-6">
<nav class="nav mb-2">
<a href="/index.html"><< Back to examples index</a>
</nav>
<h1>Cloudinary Video Player</h1>
<h2>Colors API</h2>
<p>Set custom colors via JS config or HTML data attributes</p>
<h3 class="text-primary">Player 1</h3>
<div class="video-container mt-4 mb-4">
<video
muted
playsinline
data-cld-source='{ "publicId": "dog", "info": { "title": "Sea turtle", "subtitle": "Short movie about a sea turtle" } }'
data-cld-colors='{ "base": "#0b602b", "accent": "#cddc39", "text": "#fff" }'
class="cld-video-player cld-fluid"
id="player-1"
></video>
</div>
<h3 class="text-primary">Player 2</h3>
<div class="video-container mt-4 mb-4">
<video
muted
playsinline
data-cld-source='{ "publicId": "sea_turtle", "info": { "title": "Sea turtle", "subtitle": "Short movie about a sea turtle" } }'
data-cld-colors='{ "base": "#111", "accent": "#03a9f4", "text": "#ffeb3b" }'
class="cld-video-player cld-fluid cld-video-player-skin-dark"
id="player-2"
></video>
</div>
<h3 class="text-primary">Player 3</h3>
<div class="video-container mt-4 mb-4">
<video
muted
playsinline
data-cld-source='{ "publicId": "elephants", "info": { "title": "Elephants", "subtitle": "Short movie about elephants" } }'
data-cld-colors='{ "base": "#ffffff", "accent": "#676a46", "text": "#007d29" }'
class="cld-video-player cld-fluid cld-video-player-skin-light"
id="player-3"
></video>
</div>
<p class="mt-4">
<a href="https://cloudinary.com/documentation/cloudinary_video_player"
>Full documentation</a
>
</p>
</div>
<script type="module">
import { videoPlayers } from 'cloudinary-video-player';
import 'cloudinary-video-player/cld-video-player.min.css';
const players = videoPlayers('.cld-video-player', {
cloudName: 'demo',
autoplay: true,
controls: true,
transformation: { width: 700, crop: 'limit' }
});
</script>
<!-- Bootstrap -->
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
</body>
</html>