cloudinary-video-player 2.6.0 → 2.6.1-edge.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -16
- package/dist/adaptive-streaming.js +36927 -0
- package/dist/adaptive-streaming.min.js +3 -0
- package/dist/adaptive-streaming.min.js.LICENSE.txt +3 -0
- package/dist/chapters.js +1 -1
- package/dist/chapters.min.js +1 -1
- package/dist/cld-video-player.css +200 -11
- package/dist/cld-video-player.js +37548 -79684
- package/dist/cld-video-player.light.js +197 -662
- package/dist/cld-video-player.light.min.js +4 -3
- package/dist/cld-video-player.min.css +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/dist/cld-video-player.min.js.LICENSE.txt +16 -14
- package/dist/colors.js +86 -0
- package/dist/colors.min.js +2 -0
- package/dist/dash.js +62 -2
- package/dist/dash.min.js +1 -1
- package/dist/debug.js +140 -90
- package/dist/debug.min.js +1 -1
- package/dist/ima.js +66 -3
- package/dist/ima.min.js +1 -1
- package/dist/interaction-areas.js +87 -4
- package/dist/interaction-areas.min.js +1 -1
- package/dist/playlist.js +9 -9
- package/dist/playlist.min.js +1 -1
- package/dist/recommendations-overlay.js +7 -7
- package/dist/recommendations-overlay.min.js +1 -1
- package/dist/shoppable.js +7 -7
- package/dist/shoppable.min.js +1 -1
- package/dist/srt-text-tracks.js +208 -0
- package/dist/srt-text-tracks.min.js +2 -0
- package/dist/visual-search.js +4 -4
- package/dist/visual-search.min.js +1 -1
- package/lib/adaptive-streaming.js +3 -0
- package/lib/adaptive-streaming.js.LICENSE.txt +3 -0
- package/lib/all.js +1 -1
- package/lib/all.js.LICENSE.txt +18 -12
- package/lib/chapters.js +1 -1
- package/lib/cld-video-player.js +1 -1
- package/lib/cld-video-player.js.LICENSE.txt +16 -14
- package/lib/cld-video-player.min.css +2 -2
- package/lib/colors.js +2 -0
- package/lib/dash.js +1 -1
- package/lib/debug.js +1 -1
- package/lib/ima.js +1 -1
- package/lib/interaction-areas.js +1 -1
- package/lib/player.js +1 -1
- package/lib/player.js.LICENSE.txt +16 -14
- package/lib/playlist.js +1 -1
- package/lib/recommendations-overlay.js +1 -1
- package/lib/shoppable.js +1 -1
- package/lib/srt-text-tracks.js +2 -0
- package/lib/videoPlayer.js +1 -1
- package/lib/videoPlayer.js.LICENSE.txt +16 -14
- package/lib/visual-search.js +1 -1
- package/package.json +10 -23
- package/dist/chapters.light.js +0 -233
- package/dist/chapters.light.min.js +0 -2
- package/dist/cld-video-player.light.css +0 -2428
- package/dist/cld-video-player.light.min.css +0 -2
- package/dist/cld-video-player.light.min.js.LICENSE.txt +0 -21
- package/dist/dash.light.js +0 -70036
- package/dist/dash.light.min.js +0 -3
- package/dist/dash.light.min.js.LICENSE.txt +0 -1842
- package/dist/debug.light.js +0 -383
- package/dist/debug.light.min.js +0 -2
- package/dist/ima.light.js +0 -7110
- package/dist/ima.light.min.js +0 -2
- package/dist/interaction-areas.light.js +0 -646
- package/dist/interaction-areas.light.min.js +0 -2
- package/dist/node_modules_lodash_throttle_js.light.js +0 -449
- package/dist/playlist.light.js +0 -1788
- package/dist/playlist.light.min.js +0 -2
- package/dist/recommendations-overlay.light.js +0 -464
- package/dist/recommendations-overlay.light.min.js +0 -2
- package/dist/shoppable.light.js +0 -853
- package/dist/shoppable.light.min.js +0 -2
- package/dist/visual-search.light.js +0 -317
- package/dist/visual-search.light.min.js +0 -2
- package/lib/light/chapters.js +0 -2
- package/lib/light/cld-video-player.light.min.css +0 -21
- package/lib/light/dash.js +0 -3
- package/lib/light/dash.js.LICENSE.txt +0 -1842
- package/lib/light/debug.js +0 -2
- package/lib/light/ima.js +0 -2
- package/lib/light/index.js +0 -3
- package/lib/light/index.js.LICENSE.txt +0 -21
- package/lib/light/interaction-areas.js +0 -2
- package/lib/light/playlist.js +0 -2
- package/lib/light/recommendations-overlay.js +0 -2
- package/lib/light/shoppable.js +0 -2
- package/lib/light/visual-search.js +0 -2
package/README.md
CHANGED
|
@@ -12,18 +12,26 @@ This README includes basic information for installation and getting started. Vie
|
|
|
12
12
|
```shell
|
|
13
13
|
npm install cloudinary-video-player
|
|
14
14
|
```
|
|
15
|
-
|
|
15
|
+
2. Import the package:
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
18
|
import cloudinary from 'cloudinary-video-player';
|
|
19
|
-
|
|
20
|
-
// import
|
|
19
|
+
import 'cloudinary-video-player/cld-video-player.min.css';
|
|
20
|
+
// import required plugins like that:
|
|
21
|
+
// import 'cloudinary-video-player/chapters';
|
|
22
|
+
// import 'cloudinary-video-player/playlist';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
* Note - import `/all` to get all available plugins in a single import:
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
import cloudinary from 'cloudinary-video-player/all';
|
|
21
29
|
import 'cloudinary-video-player/cld-video-player.min.css';
|
|
22
30
|
```
|
|
23
31
|
|
|
24
32
|
### CDN
|
|
25
33
|
|
|
26
|
-
Cloudinary Video Player can also be included directly from the [jsDelivr CDN](https://www.jsdelivr.com/):
|
|
34
|
+
Cloudinary Video Player can also be included directly from the [jsDelivr CDN](https://www.jsdelivr.com/), optional plugins will be lazy-loaded on demand:
|
|
27
35
|
|
|
28
36
|
```html
|
|
29
37
|
<link href="https://cdn.jsdelivr.net/npm/cloudinary-video-player/dist/cld-video-player.min.css" rel="stylesheet">
|
|
@@ -31,17 +39,6 @@ Cloudinary Video Player can also be included directly from the [jsDelivr CDN](ht
|
|
|
31
39
|
<script src="https://cdn.jsdelivr.net/npm/cloudinary-video-player/dist/cld-video-player.min.js" type="text/javascript"></script>
|
|
32
40
|
```
|
|
33
41
|
|
|
34
|
-
### Packages
|
|
35
|
-
|
|
36
|
-
The Cloudinary video player offers standard and light package variations, available in either minified or non-minified formats.
|
|
37
|
-
* Standard package: Includes all functionality described in this video player [documentation](https://cloudinary.com/documentation/cloudinary_video_player).
|
|
38
|
-
* Light package: Excludes the following optional functionality: Adaptive bitrate streaming (HLS and MPEG-DASH), Video ads, Shoppable videos (alpha)
|
|
39
|
-
|
|
40
|
-
- `cld-video-player.js` - Non minified version which includes all optional modules.
|
|
41
|
-
- `cld-video-player.min.js` - Minified version which includes all optional modules.
|
|
42
|
-
- `cld-video-player.light.js` - Non minified version which does not include any optional modules.
|
|
43
|
-
- `cld-video-player.light.min.js` - Minified version which does not include any optional modules. (for smaller bundle size)
|
|
44
|
-
|
|
45
42
|
|
|
46
43
|
## Getting started
|
|
47
44
|
|
|
@@ -59,7 +56,8 @@ Create a video tag containing `cld-video-player` class and a supported skin clas
|
|
|
59
56
|
Instantiate a new cloudinary Video Player:
|
|
60
57
|
```javascript
|
|
61
58
|
cloudinary.videoPlayer('player', {
|
|
62
|
-
cloudName: 'demo'
|
|
59
|
+
cloudName: 'demo',
|
|
60
|
+
publicId: 'cld-sample-video'
|
|
63
61
|
});
|
|
64
62
|
```
|
|
65
63
|
|