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.
Files changed (92) hide show
  1. package/README.md +14 -16
  2. package/dist/adaptive-streaming.js +36927 -0
  3. package/dist/adaptive-streaming.min.js +3 -0
  4. package/dist/adaptive-streaming.min.js.LICENSE.txt +3 -0
  5. package/dist/chapters.js +1 -1
  6. package/dist/chapters.min.js +1 -1
  7. package/dist/cld-video-player.css +200 -11
  8. package/dist/cld-video-player.js +37548 -79684
  9. package/dist/cld-video-player.light.js +197 -662
  10. package/dist/cld-video-player.light.min.js +4 -3
  11. package/dist/cld-video-player.min.css +1 -1
  12. package/dist/cld-video-player.min.js +1 -1
  13. package/dist/cld-video-player.min.js.LICENSE.txt +16 -14
  14. package/dist/colors.js +86 -0
  15. package/dist/colors.min.js +2 -0
  16. package/dist/dash.js +62 -2
  17. package/dist/dash.min.js +1 -1
  18. package/dist/debug.js +140 -90
  19. package/dist/debug.min.js +1 -1
  20. package/dist/ima.js +66 -3
  21. package/dist/ima.min.js +1 -1
  22. package/dist/interaction-areas.js +87 -4
  23. package/dist/interaction-areas.min.js +1 -1
  24. package/dist/playlist.js +9 -9
  25. package/dist/playlist.min.js +1 -1
  26. package/dist/recommendations-overlay.js +7 -7
  27. package/dist/recommendations-overlay.min.js +1 -1
  28. package/dist/shoppable.js +7 -7
  29. package/dist/shoppable.min.js +1 -1
  30. package/dist/srt-text-tracks.js +208 -0
  31. package/dist/srt-text-tracks.min.js +2 -0
  32. package/dist/visual-search.js +4 -4
  33. package/dist/visual-search.min.js +1 -1
  34. package/lib/adaptive-streaming.js +3 -0
  35. package/lib/adaptive-streaming.js.LICENSE.txt +3 -0
  36. package/lib/all.js +1 -1
  37. package/lib/all.js.LICENSE.txt +18 -12
  38. package/lib/chapters.js +1 -1
  39. package/lib/cld-video-player.js +1 -1
  40. package/lib/cld-video-player.js.LICENSE.txt +16 -14
  41. package/lib/cld-video-player.min.css +2 -2
  42. package/lib/colors.js +2 -0
  43. package/lib/dash.js +1 -1
  44. package/lib/debug.js +1 -1
  45. package/lib/ima.js +1 -1
  46. package/lib/interaction-areas.js +1 -1
  47. package/lib/player.js +1 -1
  48. package/lib/player.js.LICENSE.txt +16 -14
  49. package/lib/playlist.js +1 -1
  50. package/lib/recommendations-overlay.js +1 -1
  51. package/lib/shoppable.js +1 -1
  52. package/lib/srt-text-tracks.js +2 -0
  53. package/lib/videoPlayer.js +1 -1
  54. package/lib/videoPlayer.js.LICENSE.txt +16 -14
  55. package/lib/visual-search.js +1 -1
  56. package/package.json +10 -23
  57. package/dist/chapters.light.js +0 -233
  58. package/dist/chapters.light.min.js +0 -2
  59. package/dist/cld-video-player.light.css +0 -2428
  60. package/dist/cld-video-player.light.min.css +0 -2
  61. package/dist/cld-video-player.light.min.js.LICENSE.txt +0 -21
  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/debug.light.js +0 -383
  66. package/dist/debug.light.min.js +0 -2
  67. package/dist/ima.light.js +0 -7110
  68. package/dist/ima.light.min.js +0 -2
  69. package/dist/interaction-areas.light.js +0 -646
  70. package/dist/interaction-areas.light.min.js +0 -2
  71. package/dist/node_modules_lodash_throttle_js.light.js +0 -449
  72. package/dist/playlist.light.js +0 -1788
  73. package/dist/playlist.light.min.js +0 -2
  74. package/dist/recommendations-overlay.light.js +0 -464
  75. package/dist/recommendations-overlay.light.min.js +0 -2
  76. package/dist/shoppable.light.js +0 -853
  77. package/dist/shoppable.light.min.js +0 -2
  78. package/dist/visual-search.light.js +0 -317
  79. package/dist/visual-search.light.min.js +0 -2
  80. package/lib/light/chapters.js +0 -2
  81. package/lib/light/cld-video-player.light.min.css +0 -21
  82. package/lib/light/dash.js +0 -3
  83. package/lib/light/dash.js.LICENSE.txt +0 -1842
  84. package/lib/light/debug.js +0 -2
  85. package/lib/light/ima.js +0 -2
  86. package/lib/light/index.js +0 -3
  87. package/lib/light/index.js.LICENSE.txt +0 -21
  88. package/lib/light/interaction-areas.js +0 -2
  89. package/lib/light/playlist.js +0 -2
  90. package/lib/light/recommendations-overlay.js +0 -2
  91. package/lib/light/shoppable.js +0 -2
  92. package/lib/light/visual-search.js +0 -2
@@ -1,19 +1,21 @@
1
- /*! @name @videojs/http-streaming @version 3.17.0 @license Apache-2.0 */
2
-
3
- /*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */
4
-
5
- /*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */
6
-
7
- /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
8
-
9
- /*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */
10
-
11
1
  /*! @name videojs-per-source-behaviors @version 3.0.1 @license Apache-2.0 */
12
2
 
3
+ /**
4
+ * @license
5
+ * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
6
+ * Copyright (c) 2014 David Björklund
7
+ * Available under the MIT license
8
+ * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
9
+ */
10
+
13
11
  /**
14
12
  * @license
15
- * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
16
- * Copyright (c) 2014 David Björklund
17
- * Available under the MIT license
18
- * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
13
+ * Video.js 8.23.3 <http://videojs.com/>
14
+ * Copyright Brightcove, Inc. <https://www.brightcove.com/>
15
+ * Available under Apache License Version 2.0
16
+ * <https://github.com/videojs/video.js/blob/main/LICENSE>
17
+ *
18
+ * Includes vtt.js <https://github.com/mozilla/vtt.js>
19
+ * Available under Apache License Version 2.0
20
+ * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
19
21
  */
package/dist/colors.js ADDED
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ (self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || []).push([["colors"],{
3
+
4
+ /***/ "./plugins/colors/colors.js":
5
+ /*!**********************************!*\
6
+ !*** ./plugins/colors/colors.js ***!
7
+ \**********************************/
8
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
13
+ /* harmony export */ getDefaultPlayerColor: () => (/* binding */ getDefaultPlayerColor)
14
+ /* harmony export */ });
15
+ /* harmony import */ var _video_player_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../video-player.utils */ "./video-player.utils.js");
16
+ /* harmony import */ var _colors_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./colors.scss */ "./plugins/colors/colors.scss");
17
+
18
+
19
+ const defaults = {
20
+ colorsDark: {
21
+ 'base': '#000000',
22
+ 'accent': '#0D9AFF',
23
+ 'text': '#FFFFFF'
24
+ },
25
+ colorsLight: {
26
+ 'base': '#FFFFFF',
27
+ 'accent': '#0D9AFF',
28
+ 'text': '#000000'
29
+ }
30
+ };
31
+ const getDefaultPlayerColor = options => {
32
+ return (0,_video_player_utils__WEBPACK_IMPORTED_MODULE_0__.isLight)(options) ? defaults.colorsLight : defaults.colorsDark;
33
+ };
34
+ const colorsPlugin = function (player) {
35
+ let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
36
+ const skinDefaults = getDefaultPlayerColor(player.options_);
37
+ opts.colors = Object.assign({}, skinDefaults, opts.colors);
38
+
39
+ // Set CSS custom properties on the player element
40
+ const playerEl = player.el();
41
+ if (opts.colors.base) {
42
+ playerEl.style.setProperty('--color-base', opts.colors.base);
43
+ }
44
+ if (opts.colors.accent) {
45
+ playerEl.style.setProperty('--color-accent', opts.colors.accent);
46
+ }
47
+ if (opts.colors.text) {
48
+ playerEl.style.setProperty('--color-text', opts.colors.text);
49
+ }
50
+
51
+ // Return an object with methods to update colors if needed
52
+ return {
53
+ updateColors: newColors => {
54
+ const updatedColors = Object.assign({}, opts.colors, newColors);
55
+ if (updatedColors.base) {
56
+ playerEl.style.setProperty('--color-base', updatedColors.base);
57
+ }
58
+ if (updatedColors.accent) {
59
+ playerEl.style.setProperty('--color-accent', updatedColors.accent);
60
+ }
61
+ if (updatedColors.text) {
62
+ playerEl.style.setProperty('--color-text', updatedColors.text);
63
+ }
64
+ opts.colors = updatedColors;
65
+ },
66
+ getColors: () => opts.colors
67
+ };
68
+ };
69
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (colorsPlugin);
70
+
71
+ /***/ }),
72
+
73
+ /***/ "./plugins/colors/colors.scss":
74
+ /*!************************************!*\
75
+ !*** ./plugins/colors/colors.scss ***!
76
+ \************************************/
77
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
78
+
79
+ __webpack_require__.r(__webpack_exports__);
80
+ // extracted by mini-css-extract-plugin
81
+
82
+
83
+ /***/ })
84
+
85
+ }]);
86
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";(self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[691],{9454:(o,t,e)=>{e.d(t,{default:()=>l,w:()=>r});var s=e(8838);const c={colorsDark:{base:"#000000",accent:"#0D9AFF",text:"#FFFFFF"},colorsLight:{base:"#FFFFFF",accent:"#0D9AFF",text:"#000000"}},r=o=>(0,s.T4)(o)?c.colorsLight:c.colorsDark,l=function(o){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const e=r(o.options_);t.colors=Object.assign({},e,t.colors);const s=o.el();return t.colors.base&&s.style.setProperty("--color-base",t.colors.base),t.colors.accent&&s.style.setProperty("--color-accent",t.colors.accent),t.colors.text&&s.style.setProperty("--color-text",t.colors.text),{updateColors:o=>{const e=Object.assign({},t.colors,o);e.base&&s.style.setProperty("--color-base",e.base),e.accent&&s.style.setProperty("--color-accent",e.accent),e.text&&s.style.setProperty("--color-text",e.text),t.colors=e},getColors:()=>t.colors}}}}]);
2
+ //# sourceMappingURL=colors.min.js.map
package/dist/dash.js CHANGED
@@ -1,17 +1,67 @@
1
- "use strict";
2
1
  (self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || []).push([["dash"],{
3
2
 
3
+ /***/ "../node_modules/global/document.js":
4
+ /*!******************************************!*\
5
+ !*** ../node_modules/global/document.js ***!
6
+ \******************************************/
7
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8
+
9
+ var topLevel = typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g :
10
+ typeof window !== 'undefined' ? window : {}
11
+ var minDoc = __webpack_require__(/*! min-document */ "?9835");
12
+
13
+ var doccy;
14
+
15
+ if (typeof document !== 'undefined') {
16
+ doccy = document;
17
+ } else {
18
+ doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];
19
+
20
+ if (!doccy) {
21
+ doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;
22
+ }
23
+ }
24
+
25
+ module.exports = doccy;
26
+
27
+
28
+ /***/ }),
29
+
30
+ /***/ "../node_modules/global/window.js":
31
+ /*!****************************************!*\
32
+ !*** ../node_modules/global/window.js ***!
33
+ \****************************************/
34
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
35
+
36
+ var win;
37
+
38
+ if (typeof window !== "undefined") {
39
+ win = window;
40
+ } else if (typeof __webpack_require__.g !== "undefined") {
41
+ win = __webpack_require__.g;
42
+ } else if (typeof self !== "undefined"){
43
+ win = self;
44
+ } else {
45
+ win = {};
46
+ }
47
+
48
+ module.exports = win;
49
+
50
+
51
+ /***/ }),
52
+
4
53
  /***/ "../node_modules/videojs-contrib-dash/dist/videojs-dash.es.js":
5
54
  /*!********************************************************************!*\
6
55
  !*** ../node_modules/videojs-contrib-dash/dist/videojs-dash.es.js ***!
7
56
  \********************************************************************/
8
57
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
58
 
59
+ "use strict";
10
60
  __webpack_require__.r(__webpack_exports__);
11
61
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
62
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
13
63
  /* harmony export */ });
14
- /* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! video.js */ "../node_modules/video.js/dist/video.es-exposed.js");
64
+ /* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! video.js */ "../node_modules/video.js/dist/alt/video.core-exposed.js");
15
65
  /* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(video_js__WEBPACK_IMPORTED_MODULE_0__);
16
66
  /* harmony import */ var global_window__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/window */ "../node_modules/global/window.js");
17
67
  /* harmony import */ var global_window__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_1__);
@@ -69970,6 +70020,16 @@ if ((global_window__WEBPACK_IMPORTED_MODULE_1___default().MediaSource)) {
69970
70020
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Html5DashJS);
69971
70021
 
69972
70022
 
70023
+ /***/ }),
70024
+
70025
+ /***/ "?9835":
70026
+ /*!******************************!*\
70027
+ !*** min-document (ignored) ***!
70028
+ \******************************/
70029
+ /***/ (() => {
70030
+
70031
+ /* (ignored) */
70032
+
69973
70033
  /***/ })
69974
70034
 
69975
70035
  }]);