cloudinary-video-player 2.6.1-edge.0 → 2.6.1-edge.2

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.
Files changed (93) hide show
  1. package/README.md +14 -16
  2. package/dist/adaptive-streaming.js +36932 -0
  3. package/dist/adaptive-streaming.min.js +11 -0
  4. package/dist/chapters.js +6 -1
  5. package/dist/chapters.min.js +6 -1
  6. package/dist/cld-video-player.css +205 -11
  7. package/dist/cld-video-player.js +37521 -79652
  8. package/dist/cld-video-player.light.js +202 -662
  9. package/dist/cld-video-player.light.min.js +10 -3
  10. package/dist/cld-video-player.min.css +5 -1
  11. package/dist/cld-video-player.min.js +8 -2
  12. package/dist/colors.js +91 -0
  13. package/dist/colors.min.js +7 -0
  14. package/dist/dash.js +67 -2
  15. package/dist/dash.min.js +1071 -2
  16. package/dist/debug.js +145 -90
  17. package/dist/debug.min.js +6 -1
  18. package/dist/ima.js +71 -3
  19. package/dist/ima.min.js +6 -1
  20. package/dist/interaction-areas.js +92 -4
  21. package/dist/interaction-areas.min.js +6 -1
  22. package/dist/node_modules_lodash_throttle_js.js +5 -0
  23. package/dist/playlist.js +14 -9
  24. package/dist/playlist.min.js +6 -1
  25. package/dist/recommendations-overlay.js +12 -7
  26. package/dist/recommendations-overlay.min.js +6 -1
  27. package/dist/shoppable.js +12 -7
  28. package/dist/shoppable.min.js +6 -1
  29. package/dist/srt-text-tracks.js +213 -0
  30. package/dist/srt-text-tracks.min.js +7 -0
  31. package/dist/visual-search.js +9 -4
  32. package/dist/visual-search.min.js +6 -1
  33. package/lib/adaptive-streaming.js +3 -0
  34. package/lib/adaptive-streaming.js.LICENSE.txt +3 -0
  35. package/lib/all.js +1 -1
  36. package/lib/all.js.LICENSE.txt +18 -12
  37. package/lib/chapters.js +1 -1
  38. package/lib/cld-video-player.js +1 -1
  39. package/lib/cld-video-player.js.LICENSE.txt +16 -14
  40. package/lib/cld-video-player.min.css +2 -2
  41. package/lib/colors.js +2 -0
  42. package/lib/dash.js +1 -1
  43. package/lib/debug.js +1 -1
  44. package/lib/ima.js +1 -1
  45. package/lib/interaction-areas.js +1 -1
  46. package/lib/player.js +1 -1
  47. package/lib/player.js.LICENSE.txt +16 -14
  48. package/lib/playlist.js +1 -1
  49. package/lib/recommendations-overlay.js +1 -1
  50. package/lib/shoppable.js +1 -1
  51. package/lib/srt-text-tracks.js +2 -0
  52. package/lib/videoPlayer.js +1 -1
  53. package/lib/videoPlayer.js.LICENSE.txt +16 -14
  54. package/lib/visual-search.js +1 -1
  55. package/package.json +10 -23
  56. package/dist/chapters.light.js +0 -233
  57. package/dist/chapters.light.min.js +0 -2
  58. package/dist/cld-video-player.light.css +0 -2428
  59. package/dist/cld-video-player.light.min.css +0 -2
  60. package/dist/cld-video-player.light.min.js.LICENSE.txt +0 -21
  61. package/dist/cld-video-player.min.js.LICENSE.txt +0 -19
  62. package/dist/dash.light.js +0 -70036
  63. package/dist/dash.light.min.js +0 -3
  64. package/dist/dash.light.min.js.LICENSE.txt +0 -1842
  65. package/dist/dash.min.js.LICENSE.txt +0 -1842
  66. package/dist/debug.light.js +0 -383
  67. package/dist/debug.light.min.js +0 -2
  68. package/dist/ima.light.js +0 -7110
  69. package/dist/ima.light.min.js +0 -2
  70. package/dist/interaction-areas.light.js +0 -646
  71. package/dist/interaction-areas.light.min.js +0 -2
  72. package/dist/node_modules_lodash_throttle_js.light.js +0 -449
  73. package/dist/playlist.light.js +0 -1788
  74. package/dist/playlist.light.min.js +0 -2
  75. package/dist/recommendations-overlay.light.js +0 -464
  76. package/dist/recommendations-overlay.light.min.js +0 -2
  77. package/dist/shoppable.light.js +0 -853
  78. package/dist/shoppable.light.min.js +0 -2
  79. package/dist/visual-search.light.js +0 -317
  80. package/dist/visual-search.light.min.js +0 -2
  81. package/lib/light/chapters.js +0 -2
  82. package/lib/light/cld-video-player.light.min.css +0 -21
  83. package/lib/light/dash.js +0 -3
  84. package/lib/light/dash.js.LICENSE.txt +0 -1842
  85. package/lib/light/debug.js +0 -2
  86. package/lib/light/ima.js +0 -2
  87. package/lib/light/index.js +0 -3
  88. package/lib/light/index.js.LICENSE.txt +0 -21
  89. package/lib/light/interaction-areas.js +0 -2
  90. package/lib/light/playlist.js +0 -2
  91. package/lib/light/recommendations-overlay.js +0 -2
  92. package/lib/light/shoppable.js +0 -2
  93. 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
- 1. Import the package:
15
+ 2. Import the package:
16
16
 
17
17
  ```js
18
18
  import cloudinary from 'cloudinary-video-player';
19
- // Also possible:
20
- // import { videoPlayer } from 'cloudinary-video-player';
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