Skip to content

Commit

Permalink
feat: support srt subtitle format (#743)
Browse files Browse the repository at this point in the history
fix: update dependencies (#746)

feat: light esm build (#765)

---------

Co-authored-by: Tsachi Shlidor <[email protected]>
Co-authored-by: ShayLevi <[email protected]>
Co-authored-by: cloudinary-jenkins <[email protected]>
  • Loading branch information
4 people authored Jan 7, 2025
1 parent 69dceed commit e0e803e
Show file tree
Hide file tree
Showing 64 changed files with 3,882 additions and 4,631 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG-edge.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## [2.2.1-edge.2](https://github.com/cloudinary/cloudinary-video-player/compare/v2.2.1-edge.1...v2.2.1-edge.2) (2024-12-26)


### Features

* light esm build ([#765](https://github.com/cloudinary/cloudinary-video-player/issues/765)) ([0049fb9](https://github.com/cloudinary/cloudinary-video-player/commit/0049fb90cf9702cfb82b48c6911bedd319835dc8))

## [2.2.1-edge.1](https://github.com/cloudinary/cloudinary-video-player/compare/v2.2.1-edge.0...v2.2.1-edge.1) (2024-12-18)


### Bug Fixes

* seek-thumbs positioning ([#766](https://github.com/cloudinary/cloudinary-video-player/issues/766)) ([5a16f74](https://github.com/cloudinary/cloudinary-video-player/commit/5a16f74b66e84f7aab9000a5adc752e843a43280))

## [2.2.1-edge.0](https://github.com/cloudinary/cloudinary-video-player/compare/v2.2.0-edge.5...v2.2.1-edge.0) (2024-12-09)


### Bug Fixes

* update dependencies ([#746](https://github.com/cloudinary/cloudinary-video-player/issues/746)) ([1ac07ea](https://github.com/cloudinary/cloudinary-video-player/commit/1ac07eaecb92c3bacb9bafb68d90c983156ff314))

## [2.1.2-edge.5](https://github.com/cloudinary/cloudinary-video-player/compare/v2.1.2-edge.4...v2.1.2-edge.5) (2024-12-08)


Expand Down
64 changes: 64 additions & 0 deletions docs/es-modules/all.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!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">&#60;&#60; Back to examples index</a>
</nav>
<h1>Cloudinary Video Player</h1>
<h3 class="mb-4"><code>/all</code> build</h3>

<p>Using the <code>/all</code> build, you get a build that already includes all plugins (except the big <code>/dash</code> plugin), saving you the need to import them separately</p>

<video
id="player"
class="cld-video-player cld-fluid"
crossorigin="anonymous"
controls
muted
playsinline
></video>

<p class="mt-4">
<a href="https://cloudinary.com/documentation/cloudinary_video_player#installation"
>Full documentation</a
>
</p>
</div>

<script type="module">
import { videoPlayer } from 'cloudinary-video-player/all';
import 'cloudinary-video-player/cld-video-player.min.css';

const player = videoPlayer('player', {
cloudName: 'demo',
publicId: 'dog',
autoplay: true,
chapters: {
0: 'Chapter I',
3: 'Chapter II',
8: 'Chapter III',
}
});
</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>
3 changes: 3 additions & 0 deletions docs/es-modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ <h3 class="mt-4">Code examples:</h3>
<li><a href="./ui-config.html">UI Config</a></li>
<li><a href="./vast-vpaid.html">VAST & VPAID Support</a></li>
<li><a href="./360.html">VR/360 Videos</a></li>
<hr>
<li><a href="./all.html"><code>/all</code> build</a></li>
<li><a href="./light.html"><code>/light</code> build</a></li>
</ul>
</div>
</body>
Expand Down
65 changes: 65 additions & 0 deletions docs/es-modules/light.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!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">&#60;&#60; Back to examples index</a>
</nav>
<h1>Cloudinary Video Player</h1>
<h3 class="mb-4"><code>/light</code> build</h3>

<p>Using the <code>/light</code> build gives you the smallest possible bundle-size</p>

<video
id="player"
class="cld-video-player cld-fluid"
crossorigin="anonymous"
controls
muted
playsinline
></video>

<p class="mt-4">
<a href="https://cloudinary.com/documentation/cloudinary_video_player#installation"
>Full documentation</a
>
</p>
</div>

<script type="module">
import { videoPlayer } from 'cloudinary-video-player/light';
import 'cloudinary-video-player/light/chapters';
import 'cloudinary-video-player/cld-video-player.min.css';

const player = videoPlayer('player', {
cloudName: 'demo',
publicId: 'dog',
autoplay: true,
chapters: {
0: 'Chapter I',
3: 'Chapter II',
8: 'Chapter III',
}
});
</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>
Loading

0 comments on commit e0e803e

Please sign in to comment.