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,449 +0,0 @@
1
- (self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || []).push([["node_modules_lodash_throttle_js"],{
2
-
3
- /***/ "../node_modules/lodash/_baseTrim.js":
4
- /*!*******************************************!*\
5
- !*** ../node_modules/lodash/_baseTrim.js ***!
6
- \*******************************************/
7
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8
-
9
- var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../node_modules/lodash/_trimmedEndIndex.js");
10
-
11
- /** Used to match leading whitespace. */
12
- var reTrimStart = /^\s+/;
13
-
14
- /**
15
- * The base implementation of `_.trim`.
16
- *
17
- * @private
18
- * @param {string} string The string to trim.
19
- * @returns {string} Returns the trimmed string.
20
- */
21
- function baseTrim(string) {
22
- return string
23
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
24
- : string;
25
- }
26
-
27
- module.exports = baseTrim;
28
-
29
-
30
- /***/ }),
31
-
32
- /***/ "../node_modules/lodash/_trimmedEndIndex.js":
33
- /*!**************************************************!*\
34
- !*** ../node_modules/lodash/_trimmedEndIndex.js ***!
35
- \**************************************************/
36
- /***/ ((module) => {
37
-
38
- /** Used to match a single whitespace character. */
39
- var reWhitespace = /\s/;
40
-
41
- /**
42
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
43
- * character of `string`.
44
- *
45
- * @private
46
- * @param {string} string The string to inspect.
47
- * @returns {number} Returns the index of the last non-whitespace character.
48
- */
49
- function trimmedEndIndex(string) {
50
- var index = string.length;
51
-
52
- while (index-- && reWhitespace.test(string.charAt(index))) {}
53
- return index;
54
- }
55
-
56
- module.exports = trimmedEndIndex;
57
-
58
-
59
- /***/ }),
60
-
61
- /***/ "../node_modules/lodash/debounce.js":
62
- /*!******************************************!*\
63
- !*** ../node_modules/lodash/debounce.js ***!
64
- \******************************************/
65
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
66
-
67
- var isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js"),
68
- now = __webpack_require__(/*! ./now */ "../node_modules/lodash/now.js"),
69
- toNumber = __webpack_require__(/*! ./toNumber */ "../node_modules/lodash/toNumber.js");
70
-
71
- /** Error message constants. */
72
- var FUNC_ERROR_TEXT = 'Expected a function';
73
-
74
- /* Built-in method references for those with the same name as other `lodash` methods. */
75
- var nativeMax = Math.max,
76
- nativeMin = Math.min;
77
-
78
- /**
79
- * Creates a debounced function that delays invoking `func` until after `wait`
80
- * milliseconds have elapsed since the last time the debounced function was
81
- * invoked. The debounced function comes with a `cancel` method to cancel
82
- * delayed `func` invocations and a `flush` method to immediately invoke them.
83
- * Provide `options` to indicate whether `func` should be invoked on the
84
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
85
- * with the last arguments provided to the debounced function. Subsequent
86
- * calls to the debounced function return the result of the last `func`
87
- * invocation.
88
- *
89
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
90
- * invoked on the trailing edge of the timeout only if the debounced function
91
- * is invoked more than once during the `wait` timeout.
92
- *
93
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
94
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
95
- *
96
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
97
- * for details over the differences between `_.debounce` and `_.throttle`.
98
- *
99
- * @static
100
- * @memberOf _
101
- * @since 0.1.0
102
- * @category Function
103
- * @param {Function} func The function to debounce.
104
- * @param {number} [wait=0] The number of milliseconds to delay.
105
- * @param {Object} [options={}] The options object.
106
- * @param {boolean} [options.leading=false]
107
- * Specify invoking on the leading edge of the timeout.
108
- * @param {number} [options.maxWait]
109
- * The maximum time `func` is allowed to be delayed before it's invoked.
110
- * @param {boolean} [options.trailing=true]
111
- * Specify invoking on the trailing edge of the timeout.
112
- * @returns {Function} Returns the new debounced function.
113
- * @example
114
- *
115
- * // Avoid costly calculations while the window size is in flux.
116
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
117
- *
118
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
119
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
120
- * 'leading': true,
121
- * 'trailing': false
122
- * }));
123
- *
124
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
125
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
126
- * var source = new EventSource('/stream');
127
- * jQuery(source).on('message', debounced);
128
- *
129
- * // Cancel the trailing debounced invocation.
130
- * jQuery(window).on('popstate', debounced.cancel);
131
- */
132
- function debounce(func, wait, options) {
133
- var lastArgs,
134
- lastThis,
135
- maxWait,
136
- result,
137
- timerId,
138
- lastCallTime,
139
- lastInvokeTime = 0,
140
- leading = false,
141
- maxing = false,
142
- trailing = true;
143
-
144
- if (typeof func != 'function') {
145
- throw new TypeError(FUNC_ERROR_TEXT);
146
- }
147
- wait = toNumber(wait) || 0;
148
- if (isObject(options)) {
149
- leading = !!options.leading;
150
- maxing = 'maxWait' in options;
151
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
152
- trailing = 'trailing' in options ? !!options.trailing : trailing;
153
- }
154
-
155
- function invokeFunc(time) {
156
- var args = lastArgs,
157
- thisArg = lastThis;
158
-
159
- lastArgs = lastThis = undefined;
160
- lastInvokeTime = time;
161
- result = func.apply(thisArg, args);
162
- return result;
163
- }
164
-
165
- function leadingEdge(time) {
166
- // Reset any `maxWait` timer.
167
- lastInvokeTime = time;
168
- // Start the timer for the trailing edge.
169
- timerId = setTimeout(timerExpired, wait);
170
- // Invoke the leading edge.
171
- return leading ? invokeFunc(time) : result;
172
- }
173
-
174
- function remainingWait(time) {
175
- var timeSinceLastCall = time - lastCallTime,
176
- timeSinceLastInvoke = time - lastInvokeTime,
177
- timeWaiting = wait - timeSinceLastCall;
178
-
179
- return maxing
180
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
181
- : timeWaiting;
182
- }
183
-
184
- function shouldInvoke(time) {
185
- var timeSinceLastCall = time - lastCallTime,
186
- timeSinceLastInvoke = time - lastInvokeTime;
187
-
188
- // Either this is the first call, activity has stopped and we're at the
189
- // trailing edge, the system time has gone backwards and we're treating
190
- // it as the trailing edge, or we've hit the `maxWait` limit.
191
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
192
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
193
- }
194
-
195
- function timerExpired() {
196
- var time = now();
197
- if (shouldInvoke(time)) {
198
- return trailingEdge(time);
199
- }
200
- // Restart the timer.
201
- timerId = setTimeout(timerExpired, remainingWait(time));
202
- }
203
-
204
- function trailingEdge(time) {
205
- timerId = undefined;
206
-
207
- // Only invoke if we have `lastArgs` which means `func` has been
208
- // debounced at least once.
209
- if (trailing && lastArgs) {
210
- return invokeFunc(time);
211
- }
212
- lastArgs = lastThis = undefined;
213
- return result;
214
- }
215
-
216
- function cancel() {
217
- if (timerId !== undefined) {
218
- clearTimeout(timerId);
219
- }
220
- lastInvokeTime = 0;
221
- lastArgs = lastCallTime = lastThis = timerId = undefined;
222
- }
223
-
224
- function flush() {
225
- return timerId === undefined ? result : trailingEdge(now());
226
- }
227
-
228
- function debounced() {
229
- var time = now(),
230
- isInvoking = shouldInvoke(time);
231
-
232
- lastArgs = arguments;
233
- lastThis = this;
234
- lastCallTime = time;
235
-
236
- if (isInvoking) {
237
- if (timerId === undefined) {
238
- return leadingEdge(lastCallTime);
239
- }
240
- if (maxing) {
241
- // Handle invocations in a tight loop.
242
- clearTimeout(timerId);
243
- timerId = setTimeout(timerExpired, wait);
244
- return invokeFunc(lastCallTime);
245
- }
246
- }
247
- if (timerId === undefined) {
248
- timerId = setTimeout(timerExpired, wait);
249
- }
250
- return result;
251
- }
252
- debounced.cancel = cancel;
253
- debounced.flush = flush;
254
- return debounced;
255
- }
256
-
257
- module.exports = debounce;
258
-
259
-
260
- /***/ }),
261
-
262
- /***/ "../node_modules/lodash/now.js":
263
- /*!*************************************!*\
264
- !*** ../node_modules/lodash/now.js ***!
265
- \*************************************/
266
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
267
-
268
- var root = __webpack_require__(/*! ./_root */ "../node_modules/lodash/_root.js");
269
-
270
- /**
271
- * Gets the timestamp of the number of milliseconds that have elapsed since
272
- * the Unix epoch (1 January 1970 00:00:00 UTC).
273
- *
274
- * @static
275
- * @memberOf _
276
- * @since 2.4.0
277
- * @category Date
278
- * @returns {number} Returns the timestamp.
279
- * @example
280
- *
281
- * _.defer(function(stamp) {
282
- * console.log(_.now() - stamp);
283
- * }, _.now());
284
- * // => Logs the number of milliseconds it took for the deferred invocation.
285
- */
286
- var now = function() {
287
- return root.Date.now();
288
- };
289
-
290
- module.exports = now;
291
-
292
-
293
- /***/ }),
294
-
295
- /***/ "../node_modules/lodash/throttle.js":
296
- /*!******************************************!*\
297
- !*** ../node_modules/lodash/throttle.js ***!
298
- \******************************************/
299
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
300
-
301
- var debounce = __webpack_require__(/*! ./debounce */ "../node_modules/lodash/debounce.js"),
302
- isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js");
303
-
304
- /** Error message constants. */
305
- var FUNC_ERROR_TEXT = 'Expected a function';
306
-
307
- /**
308
- * Creates a throttled function that only invokes `func` at most once per
309
- * every `wait` milliseconds. The throttled function comes with a `cancel`
310
- * method to cancel delayed `func` invocations and a `flush` method to
311
- * immediately invoke them. Provide `options` to indicate whether `func`
312
- * should be invoked on the leading and/or trailing edge of the `wait`
313
- * timeout. The `func` is invoked with the last arguments provided to the
314
- * throttled function. Subsequent calls to the throttled function return the
315
- * result of the last `func` invocation.
316
- *
317
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
318
- * invoked on the trailing edge of the timeout only if the throttled function
319
- * is invoked more than once during the `wait` timeout.
320
- *
321
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
322
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
323
- *
324
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
325
- * for details over the differences between `_.throttle` and `_.debounce`.
326
- *
327
- * @static
328
- * @memberOf _
329
- * @since 0.1.0
330
- * @category Function
331
- * @param {Function} func The function to throttle.
332
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
333
- * @param {Object} [options={}] The options object.
334
- * @param {boolean} [options.leading=true]
335
- * Specify invoking on the leading edge of the timeout.
336
- * @param {boolean} [options.trailing=true]
337
- * Specify invoking on the trailing edge of the timeout.
338
- * @returns {Function} Returns the new throttled function.
339
- * @example
340
- *
341
- * // Avoid excessively updating the position while scrolling.
342
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
343
- *
344
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
345
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
346
- * jQuery(element).on('click', throttled);
347
- *
348
- * // Cancel the trailing throttled invocation.
349
- * jQuery(window).on('popstate', throttled.cancel);
350
- */
351
- function throttle(func, wait, options) {
352
- var leading = true,
353
- trailing = true;
354
-
355
- if (typeof func != 'function') {
356
- throw new TypeError(FUNC_ERROR_TEXT);
357
- }
358
- if (isObject(options)) {
359
- leading = 'leading' in options ? !!options.leading : leading;
360
- trailing = 'trailing' in options ? !!options.trailing : trailing;
361
- }
362
- return debounce(func, wait, {
363
- 'leading': leading,
364
- 'maxWait': wait,
365
- 'trailing': trailing
366
- });
367
- }
368
-
369
- module.exports = throttle;
370
-
371
-
372
- /***/ }),
373
-
374
- /***/ "../node_modules/lodash/toNumber.js":
375
- /*!******************************************!*\
376
- !*** ../node_modules/lodash/toNumber.js ***!
377
- \******************************************/
378
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
379
-
380
- var baseTrim = __webpack_require__(/*! ./_baseTrim */ "../node_modules/lodash/_baseTrim.js"),
381
- isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js"),
382
- isSymbol = __webpack_require__(/*! ./isSymbol */ "../node_modules/lodash/isSymbol.js");
383
-
384
- /** Used as references for various `Number` constants. */
385
- var NAN = 0 / 0;
386
-
387
- /** Used to detect bad signed hexadecimal string values. */
388
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
389
-
390
- /** Used to detect binary string values. */
391
- var reIsBinary = /^0b[01]+$/i;
392
-
393
- /** Used to detect octal string values. */
394
- var reIsOctal = /^0o[0-7]+$/i;
395
-
396
- /** Built-in method references without a dependency on `root`. */
397
- var freeParseInt = parseInt;
398
-
399
- /**
400
- * Converts `value` to a number.
401
- *
402
- * @static
403
- * @memberOf _
404
- * @since 4.0.0
405
- * @category Lang
406
- * @param {*} value The value to process.
407
- * @returns {number} Returns the number.
408
- * @example
409
- *
410
- * _.toNumber(3.2);
411
- * // => 3.2
412
- *
413
- * _.toNumber(Number.MIN_VALUE);
414
- * // => 5e-324
415
- *
416
- * _.toNumber(Infinity);
417
- * // => Infinity
418
- *
419
- * _.toNumber('3.2');
420
- * // => 3.2
421
- */
422
- function toNumber(value) {
423
- if (typeof value == 'number') {
424
- return value;
425
- }
426
- if (isSymbol(value)) {
427
- return NAN;
428
- }
429
- if (isObject(value)) {
430
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
431
- value = isObject(other) ? (other + '') : other;
432
- }
433
- if (typeof value != 'string') {
434
- return value === 0 ? value : +value;
435
- }
436
- value = baseTrim(value);
437
- var isBinary = reIsBinary.test(value);
438
- return (isBinary || reIsOctal.test(value))
439
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
440
- : (reIsBadHex.test(value) ? NAN : +value);
441
- }
442
-
443
- module.exports = toNumber;
444
-
445
-
446
- /***/ })
447
-
448
- }]);
449
- //# sourceMappingURL=node_modules_lodash_throttle_js.light.js.map