@clappr/player 0.5.0 → 0.6.0
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/dist/clappr.js +26760 -25606
- package/dist/clappr.js.map +1 -1
- package/dist/clappr.min.js +280 -187
- package/dist/clappr.min.js.map +1 -1
- package/dist/clappr.plainhtml5.js +520 -486
- package/dist/clappr.plainhtml5.js.map +1 -1
- package/dist/clappr.plainhtml5.min.js +1 -1
- package/dist/clappr.plainhtml5.min.js.map +1 -1
- package/package.json +18 -4
- package/LICENSE +0 -25
|
@@ -4,29 +4,29 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Clappr = factory());
|
|
5
5
|
})(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
|
-
function ownKeys$1(
|
|
8
|
-
var
|
|
7
|
+
function ownKeys$1(e, r) {
|
|
8
|
+
var t = Object.keys(e);
|
|
9
9
|
if (Object.getOwnPropertySymbols) {
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
return Object.getOwnPropertyDescriptor(
|
|
13
|
-
})),
|
|
10
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
11
|
+
r && (o = o.filter(function (r) {
|
|
12
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
13
|
+
})), t.push.apply(t, o);
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return t;
|
|
16
16
|
}
|
|
17
|
-
function _objectSpread2$1(
|
|
18
|
-
for (var
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
_defineProperty$1(
|
|
22
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
23
|
-
Object.defineProperty(
|
|
17
|
+
function _objectSpread2$1(e) {
|
|
18
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
19
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
20
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
|
|
21
|
+
_defineProperty$1(e, r, t[r]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
23
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return e;
|
|
27
27
|
}
|
|
28
28
|
function _defineProperty$1(obj, key, value) {
|
|
29
|
-
key = _toPropertyKey$
|
|
29
|
+
key = _toPropertyKey$2(key);
|
|
30
30
|
if (key in obj) {
|
|
31
31
|
Object.defineProperty(obj, key, {
|
|
32
32
|
value: value,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
return obj;
|
|
41
41
|
}
|
|
42
|
-
function _toPrimitive$
|
|
42
|
+
function _toPrimitive$2(input, hint) {
|
|
43
43
|
if (typeof input !== "object" || input === null) return input;
|
|
44
44
|
var prim = input[Symbol.toPrimitive];
|
|
45
45
|
if (prim !== undefined) {
|
|
@@ -49,40 +49,92 @@
|
|
|
49
49
|
}
|
|
50
50
|
return (hint === "string" ? String : Number)(input);
|
|
51
51
|
}
|
|
52
|
-
function _toPropertyKey$
|
|
53
|
-
var key = _toPrimitive$
|
|
52
|
+
function _toPropertyKey$2(arg) {
|
|
53
|
+
var key = _toPrimitive$2(arg, "string");
|
|
54
54
|
return typeof key === "symbol" ? key : String(key);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function
|
|
58
|
-
|
|
57
|
+
function _callSuper$1(t, o, e) {
|
|
58
|
+
return o = _getPrototypeOf$1(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e));
|
|
59
|
+
}
|
|
60
|
+
function _isNativeReflectConstruct$1() {
|
|
61
|
+
try {
|
|
62
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
63
|
+
} catch (t) {}
|
|
64
|
+
return (_isNativeReflectConstruct$1 = function () {
|
|
65
|
+
return !!t;
|
|
66
|
+
})();
|
|
67
|
+
}
|
|
68
|
+
function _iterableToArrayLimit(r, l) {
|
|
69
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
70
|
+
if (null != t) {
|
|
71
|
+
var e,
|
|
72
|
+
n,
|
|
73
|
+
i,
|
|
74
|
+
u,
|
|
75
|
+
a = [],
|
|
76
|
+
f = !0,
|
|
77
|
+
o = !1;
|
|
78
|
+
try {
|
|
79
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
80
|
+
if (Object(t) !== t) return;
|
|
81
|
+
f = !1;
|
|
82
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
83
|
+
} catch (r) {
|
|
84
|
+
o = !0, n = r;
|
|
85
|
+
} finally {
|
|
86
|
+
try {
|
|
87
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
88
|
+
} finally {
|
|
89
|
+
if (o) throw n;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return a;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function ownKeys(e, r) {
|
|
96
|
+
var t = Object.keys(e);
|
|
59
97
|
if (Object.getOwnPropertySymbols) {
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
return Object.getOwnPropertyDescriptor(
|
|
63
|
-
})),
|
|
98
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
99
|
+
r && (o = o.filter(function (r) {
|
|
100
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
101
|
+
})), t.push.apply(t, o);
|
|
64
102
|
}
|
|
65
|
-
return
|
|
103
|
+
return t;
|
|
66
104
|
}
|
|
67
|
-
function _objectSpread2(
|
|
68
|
-
for (var
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
_defineProperty(
|
|
72
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
73
|
-
Object.defineProperty(
|
|
105
|
+
function _objectSpread2(e) {
|
|
106
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
107
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
108
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
109
|
+
_defineProperty(e, r, t[r]);
|
|
110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
111
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
74
112
|
});
|
|
75
113
|
}
|
|
76
|
-
return
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
function _toPrimitive$1(t, r) {
|
|
117
|
+
if ("object" != typeof t || !t) return t;
|
|
118
|
+
var e = t[Symbol.toPrimitive];
|
|
119
|
+
if (void 0 !== e) {
|
|
120
|
+
var i = e.call(t, r || "default");
|
|
121
|
+
if ("object" != typeof i) return i;
|
|
122
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
123
|
+
}
|
|
124
|
+
return ("string" === r ? String : Number)(t);
|
|
125
|
+
}
|
|
126
|
+
function _toPropertyKey$1(t) {
|
|
127
|
+
var i = _toPrimitive$1(t, "string");
|
|
128
|
+
return "symbol" == typeof i ? i : i + "";
|
|
77
129
|
}
|
|
78
|
-
function _typeof(
|
|
130
|
+
function _typeof(o) {
|
|
79
131
|
"@babel/helpers - typeof";
|
|
80
132
|
|
|
81
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
82
|
-
return typeof
|
|
83
|
-
} : function (
|
|
84
|
-
return
|
|
85
|
-
}, _typeof(
|
|
133
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
134
|
+
return typeof o;
|
|
135
|
+
} : function (o) {
|
|
136
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
137
|
+
}, _typeof(o);
|
|
86
138
|
}
|
|
87
139
|
function _classCallCheck$1(instance, Constructor) {
|
|
88
140
|
if (!(instance instanceof Constructor)) {
|
|
@@ -95,7 +147,7 @@
|
|
|
95
147
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
96
148
|
descriptor.configurable = true;
|
|
97
149
|
if ("value" in descriptor) descriptor.writable = true;
|
|
98
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
150
|
+
Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
|
|
99
151
|
}
|
|
100
152
|
}
|
|
101
153
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
@@ -107,6 +159,7 @@
|
|
|
107
159
|
return Constructor;
|
|
108
160
|
}
|
|
109
161
|
function _defineProperty(obj, key, value) {
|
|
162
|
+
key = _toPropertyKey$1(key);
|
|
110
163
|
if (key in obj) {
|
|
111
164
|
Object.defineProperty(obj, key, {
|
|
112
165
|
value: value,
|
|
@@ -148,17 +201,6 @@
|
|
|
148
201
|
};
|
|
149
202
|
return _setPrototypeOf$1(o, p);
|
|
150
203
|
}
|
|
151
|
-
function _isNativeReflectConstruct$1() {
|
|
152
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
153
|
-
if (Reflect.construct.sham) return false;
|
|
154
|
-
if (typeof Proxy === "function") return true;
|
|
155
|
-
try {
|
|
156
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
157
|
-
return true;
|
|
158
|
-
} catch (e) {
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
204
|
function _assertThisInitialized$1(self) {
|
|
163
205
|
if (self === void 0) {
|
|
164
206
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -173,20 +215,6 @@
|
|
|
173
215
|
}
|
|
174
216
|
return _assertThisInitialized$1(self);
|
|
175
217
|
}
|
|
176
|
-
function _createSuper$1(Derived) {
|
|
177
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
178
|
-
return function _createSuperInternal() {
|
|
179
|
-
var Super = _getPrototypeOf$1(Derived),
|
|
180
|
-
result;
|
|
181
|
-
if (hasNativeReflectConstruct) {
|
|
182
|
-
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
183
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
184
|
-
} else {
|
|
185
|
-
result = Super.apply(this, arguments);
|
|
186
|
-
}
|
|
187
|
-
return _possibleConstructorReturn$1(this, result);
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
218
|
function _superPropBase$1(object, property) {
|
|
191
219
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
192
220
|
object = _getPrototypeOf$1(object);
|
|
@@ -225,30 +253,6 @@
|
|
|
225
253
|
function _iterableToArray(iter) {
|
|
226
254
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
227
255
|
}
|
|
228
|
-
function _iterableToArrayLimit(arr, i) {
|
|
229
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
230
|
-
if (_i == null) return;
|
|
231
|
-
var _arr = [];
|
|
232
|
-
var _n = true;
|
|
233
|
-
var _d = false;
|
|
234
|
-
var _s, _e;
|
|
235
|
-
try {
|
|
236
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
237
|
-
_arr.push(_s.value);
|
|
238
|
-
if (i && _arr.length === i) break;
|
|
239
|
-
}
|
|
240
|
-
} catch (err) {
|
|
241
|
-
_d = true;
|
|
242
|
-
_e = err;
|
|
243
|
-
} finally {
|
|
244
|
-
try {
|
|
245
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
246
|
-
} finally {
|
|
247
|
-
if (_d) throw _e;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
return _arr;
|
|
251
|
-
}
|
|
252
256
|
function _unsupportedIterableToArray(o, minLen) {
|
|
253
257
|
if (!o) return;
|
|
254
258
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -379,9 +383,7 @@
|
|
|
379
383
|
var ownProps = Object.keys(obj),
|
|
380
384
|
i = ownProps.length,
|
|
381
385
|
resArray = new Array(i); // preallocate the Array
|
|
382
|
-
while (i--)
|
|
383
|
-
resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
|
384
|
-
}
|
|
386
|
+
while (i--) resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
|
385
387
|
return resArray;
|
|
386
388
|
};
|
|
387
389
|
}
|
|
@@ -390,9 +392,7 @@
|
|
|
390
392
|
var ownProps = Object.keys(obj),
|
|
391
393
|
i = ownProps.length,
|
|
392
394
|
resArray = new Array(i); // preallocate the Array
|
|
393
|
-
while (i--)
|
|
394
|
-
resArray[i] = obj[ownProps[i]];
|
|
395
|
-
}
|
|
395
|
+
while (i--) resArray[i] = obj[ownProps[i]];
|
|
396
396
|
return resArray;
|
|
397
397
|
};
|
|
398
398
|
}
|
|
@@ -408,7 +408,6 @@
|
|
|
408
408
|
Object.defineProperty(Object, 'assign', {
|
|
409
409
|
// length of function is 2.
|
|
410
410
|
value: function assign(target, varArgs) {
|
|
411
|
-
|
|
412
411
|
if (target == null) {
|
|
413
412
|
// TypeError if undefined or null
|
|
414
413
|
throw new TypeError('Cannot convert undefined or null to object');
|
|
@@ -485,6 +484,9 @@
|
|
|
485
484
|
var Media = {
|
|
486
485
|
mp4: mp4
|
|
487
486
|
};
|
|
487
|
+
function getDefaultExportFromCjs(x) {
|
|
488
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
489
|
+
}
|
|
488
490
|
|
|
489
491
|
/* Zepto v1.2.0 - zepto ajax callbacks deferred event ie selector - zeptojs.com/license */
|
|
490
492
|
var Zepto = function () {
|
|
@@ -1317,6 +1319,7 @@
|
|
|
1317
1319
|
|
|
1318
1320
|
// Generate the `width` and `height` functions
|
|
1319
1321
|
;
|
|
1322
|
+
|
|
1320
1323
|
['width', 'height'].forEach(function (dimension) {
|
|
1321
1324
|
var dimensionProperty = dimension.replace(/./, function (m) {
|
|
1322
1325
|
return m[0].toUpperCase();
|
|
@@ -2183,6 +2186,7 @@
|
|
|
2183
2186
|
|
|
2184
2187
|
// shortcut methods for `.bind(event, fn)` for each event type
|
|
2185
2188
|
;
|
|
2189
|
+
|
|
2186
2190
|
('focusin focusout focus blur load resize scroll unload click dblclick ' + 'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave ' + 'change select keydown keypress keyup error').split(' ').forEach(function (event) {
|
|
2187
2191
|
$.fn[event] = function (callback) {
|
|
2188
2192
|
return 0 in arguments ? this.bind(event, callback) : this.trigger(event);
|
|
@@ -2311,6 +2315,7 @@
|
|
|
2311
2315
|
};
|
|
2312
2316
|
})(Zepto);
|
|
2313
2317
|
var zepto = Zepto;
|
|
2318
|
+
var $ = /*@__PURE__*/getDefaultExportFromCjs(zepto);
|
|
2314
2319
|
|
|
2315
2320
|
/* eslint-disable no-useless-escape */
|
|
2316
2321
|
// The order of the following arrays is important, be careful if you change it.
|
|
@@ -2551,7 +2556,6 @@
|
|
|
2551
2556
|
group: 'BlackBerry',
|
|
2552
2557
|
identifier: 'BlackBerry'
|
|
2553
2558
|
}];
|
|
2554
|
-
|
|
2555
2559
|
var Browser = {};
|
|
2556
2560
|
var hasLocalstorage = function hasLocalstorage() {
|
|
2557
2561
|
try {
|
|
@@ -2708,8 +2712,8 @@
|
|
|
2708
2712
|
// Set viewport size
|
|
2709
2713
|
var getViewportSize = function getViewportSize() {
|
|
2710
2714
|
var viewportObject = {};
|
|
2711
|
-
viewportObject.width =
|
|
2712
|
-
viewportObject.height =
|
|
2715
|
+
viewportObject.width = $(window).width();
|
|
2716
|
+
viewportObject.height = $(window).height();
|
|
2713
2717
|
return viewportObject;
|
|
2714
2718
|
};
|
|
2715
2719
|
|
|
@@ -2772,7 +2776,6 @@
|
|
|
2772
2776
|
Browser.viewport = getViewportSize();
|
|
2773
2777
|
Browser.device = getDevice(Browser.userAgent);
|
|
2774
2778
|
typeof window.orientation !== 'undefined' && setViewportOrientation();
|
|
2775
|
-
|
|
2776
2779
|
var idsCounter = {};
|
|
2777
2780
|
var videoStack = [];
|
|
2778
2781
|
var requestAnimationFrame = (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) {
|
|
@@ -2790,18 +2793,17 @@
|
|
|
2790
2793
|
}
|
|
2791
2794
|
function extend$1(parent, properties) {
|
|
2792
2795
|
var Surrogate = /*#__PURE__*/function (_parent) {
|
|
2793
|
-
_inherits$1(Surrogate, _parent);
|
|
2794
|
-
var _super = _createSuper$1(Surrogate);
|
|
2795
2796
|
function Surrogate() {
|
|
2796
2797
|
var _this;
|
|
2797
2798
|
_classCallCheck$1(this, Surrogate);
|
|
2798
2799
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2799
2800
|
args[_key] = arguments[_key];
|
|
2800
2801
|
}
|
|
2801
|
-
_this =
|
|
2802
|
-
if (properties.initialize) properties.initialize.apply(
|
|
2802
|
+
_this = _callSuper$1(this, Surrogate, [].concat(args));
|
|
2803
|
+
if (properties.initialize) properties.initialize.apply(_this, args);
|
|
2803
2804
|
return _this;
|
|
2804
2805
|
}
|
|
2806
|
+
_inherits$1(Surrogate, _parent);
|
|
2805
2807
|
return _createClass$1(Surrogate);
|
|
2806
2808
|
}(parent);
|
|
2807
2809
|
assign(Surrogate.prototype, properties);
|
|
@@ -2859,7 +2861,7 @@
|
|
|
2859
2861
|
function Config() {
|
|
2860
2862
|
_classCallCheck$1(this, Config);
|
|
2861
2863
|
}
|
|
2862
|
-
_createClass$1(Config, null, [{
|
|
2864
|
+
return _createClass$1(Config, null, [{
|
|
2863
2865
|
key: "_defaultConfig",
|
|
2864
2866
|
value: function _defaultConfig() {
|
|
2865
2867
|
return {
|
|
@@ -2902,13 +2904,12 @@
|
|
|
2902
2904
|
}
|
|
2903
2905
|
}
|
|
2904
2906
|
}]);
|
|
2905
|
-
return Config;
|
|
2906
2907
|
}();
|
|
2907
2908
|
var QueryString = /*#__PURE__*/function () {
|
|
2908
2909
|
function QueryString() {
|
|
2909
2910
|
_classCallCheck$1(this, QueryString);
|
|
2910
2911
|
}
|
|
2911
|
-
_createClass$1(QueryString, null, [{
|
|
2912
|
+
return _createClass$1(QueryString, null, [{
|
|
2912
2913
|
key: "params",
|
|
2913
2914
|
get: function get() {
|
|
2914
2915
|
var query = window.location.search.substring(1);
|
|
@@ -2946,7 +2947,6 @@
|
|
|
2946
2947
|
return params;
|
|
2947
2948
|
}
|
|
2948
2949
|
}]);
|
|
2949
|
-
return QueryString;
|
|
2950
2950
|
}();
|
|
2951
2951
|
function seekStringToSeconds() {
|
|
2952
2952
|
var paramName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 't';
|
|
@@ -3045,10 +3045,10 @@
|
|
|
3045
3045
|
function DomRecycler() {
|
|
3046
3046
|
_classCallCheck$1(this, DomRecycler);
|
|
3047
3047
|
}
|
|
3048
|
-
_createClass$1(DomRecycler, null, [{
|
|
3048
|
+
return _createClass$1(DomRecycler, null, [{
|
|
3049
3049
|
key: "configure",
|
|
3050
3050
|
value: function configure(options) {
|
|
3051
|
-
this.options =
|
|
3051
|
+
this.options = $.extend(true, this.options, options);
|
|
3052
3052
|
}
|
|
3053
3053
|
}, {
|
|
3054
3054
|
key: "create",
|
|
@@ -3060,14 +3060,13 @@
|
|
|
3060
3060
|
key: "garbage",
|
|
3061
3061
|
value: function garbage(el) {
|
|
3062
3062
|
if (!this.options.recycleVideo || el.tagName.toUpperCase() !== 'VIDEO') return;
|
|
3063
|
-
|
|
3063
|
+
$(el).children().remove();
|
|
3064
3064
|
Object.values(el.attributes).forEach(function (attr) {
|
|
3065
3065
|
return el.removeAttribute(attr.name);
|
|
3066
3066
|
});
|
|
3067
3067
|
videoStack.push(el);
|
|
3068
3068
|
}
|
|
3069
3069
|
}]);
|
|
3070
|
-
return DomRecycler;
|
|
3071
3070
|
}();
|
|
3072
3071
|
DomRecycler.options = {
|
|
3073
3072
|
recycleVideo: false
|
|
@@ -3079,7 +3078,7 @@
|
|
|
3079
3078
|
this.delay = delay;
|
|
3080
3079
|
this.lastTime = 0;
|
|
3081
3080
|
}
|
|
3082
|
-
_createClass$1(DoubleEventHandler, [{
|
|
3081
|
+
return _createClass$1(DoubleEventHandler, [{
|
|
3083
3082
|
key: "handle",
|
|
3084
3083
|
value: function handle(event, cb) {
|
|
3085
3084
|
var prevented = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -3093,7 +3092,6 @@
|
|
|
3093
3092
|
this.lastTime = currentTime;
|
|
3094
3093
|
}
|
|
3095
3094
|
}]);
|
|
3096
|
-
return DoubleEventHandler;
|
|
3097
3095
|
}();
|
|
3098
3096
|
var Utils = {
|
|
3099
3097
|
Config: Config$1,
|
|
@@ -3143,7 +3141,7 @@
|
|
|
3143
3141
|
this.previousLevel = this.level;
|
|
3144
3142
|
this.offLevel = offLevel;
|
|
3145
3143
|
}
|
|
3146
|
-
_createClass$1(Log, [{
|
|
3144
|
+
return _createClass$1(Log, [{
|
|
3147
3145
|
key: "level",
|
|
3148
3146
|
get: function get() {
|
|
3149
3147
|
return this._level;
|
|
@@ -3198,7 +3196,6 @@
|
|
|
3198
3196
|
window.console && window.console.log && window.console.log.apply(console, ['%c[' + DESCRIPTIONS[level] + ']' + klassDescription, color].concat(message));
|
|
3199
3197
|
}
|
|
3200
3198
|
}]);
|
|
3201
|
-
return Log;
|
|
3202
3199
|
}();
|
|
3203
3200
|
Log.LEVEL_DEBUG = LEVEL_DEBUG;
|
|
3204
3201
|
Log.LEVEL_INFO = LEVEL_INFO;
|
|
@@ -3223,7 +3220,6 @@
|
|
|
3223
3220
|
Log.error = function () {
|
|
3224
3221
|
this.getInstance().error.apply(this.getInstance(), arguments);
|
|
3225
3222
|
};
|
|
3226
|
-
|
|
3227
3223
|
var slice = Array.prototype.slice;
|
|
3228
3224
|
var eventSplitter = /\s+/;
|
|
3229
3225
|
var eventsApi = function eventsApi(obj, action, name, rest) {
|
|
@@ -3231,18 +3227,14 @@
|
|
|
3231
3227
|
|
|
3232
3228
|
// Handle event maps.
|
|
3233
3229
|
if (_typeof(name) === 'object') {
|
|
3234
|
-
for (var key in name)
|
|
3235
|
-
obj[action].apply(obj, [key, name[key]].concat(rest));
|
|
3236
|
-
}
|
|
3230
|
+
for (var key in name) obj[action].apply(obj, [key, name[key]].concat(rest));
|
|
3237
3231
|
return false;
|
|
3238
3232
|
}
|
|
3239
3233
|
|
|
3240
3234
|
// Handle space separated event names.
|
|
3241
3235
|
if (eventSplitter.test(name)) {
|
|
3242
3236
|
var names = name.split(eventSplitter);
|
|
3243
|
-
for (var i = 0, l = names.length; i < l; i++)
|
|
3244
|
-
obj[action].apply(obj, [names[i]].concat(rest));
|
|
3245
|
-
}
|
|
3237
|
+
for (var i = 0, l = names.length; i < l; i++) obj[action].apply(obj, [names[i]].concat(rest));
|
|
3246
3238
|
return false;
|
|
3247
3239
|
}
|
|
3248
3240
|
return true;
|
|
@@ -3301,7 +3293,7 @@
|
|
|
3301
3293
|
function Events() {
|
|
3302
3294
|
_classCallCheck$1(this, Events);
|
|
3303
3295
|
}
|
|
3304
|
-
_createClass$1(Events, [{
|
|
3296
|
+
return _createClass$1(Events, [{
|
|
3305
3297
|
key: "on",
|
|
3306
3298
|
value:
|
|
3307
3299
|
/**
|
|
@@ -3443,7 +3435,6 @@
|
|
|
3443
3435
|
});
|
|
3444
3436
|
}
|
|
3445
3437
|
}]);
|
|
3446
|
-
return Events;
|
|
3447
3438
|
}();
|
|
3448
3439
|
var listenMethods = {
|
|
3449
3440
|
listenTo: 'on',
|
|
@@ -3567,6 +3558,16 @@
|
|
|
3567
3558
|
Events.PLAYER_SUBTITLE_AVAILABLE = 'subtitleavailable';
|
|
3568
3559
|
|
|
3569
3560
|
// Playback Events
|
|
3561
|
+
/** Fired when picture-in-picture mode is entered
|
|
3562
|
+
*
|
|
3563
|
+
* @event PLAYBACK_PIP_ENTER
|
|
3564
|
+
*/
|
|
3565
|
+
Events.PLAYBACK_PIP_ENTER = 'playback:picture-in-picture:enter';
|
|
3566
|
+
/** Fired when picture-in-picture mode is exited
|
|
3567
|
+
*
|
|
3568
|
+
* @event PLAYBACK_PIP_EXIT
|
|
3569
|
+
*/
|
|
3570
|
+
Events.PLAYBACK_PIP_EXIT = 'playback:picture-in-picture:exit';
|
|
3570
3571
|
/**
|
|
3571
3572
|
* Fired when the playback is downloading the media
|
|
3572
3573
|
*
|
|
@@ -3998,6 +3999,17 @@
|
|
|
3998
3999
|
Events.CONTAINER_MOUSE_UP = 'container:mouseup';
|
|
3999
4000
|
Events.CONTAINER_MOUSE_DOWN = 'container:mousedown';
|
|
4000
4001
|
|
|
4002
|
+
/**
|
|
4003
|
+
* Fired when the container enters on Picture-in-Picture mode
|
|
4004
|
+
* @event CONTAINER_PIP_ENTER
|
|
4005
|
+
*/
|
|
4006
|
+
Events.CONTAINER_PIP_ENTER = 'container:picture-in-picture:enter';
|
|
4007
|
+
/**
|
|
4008
|
+
* Fired when the container exits from Picture-in-Picture mode
|
|
4009
|
+
* @event CONTAINER_PIP_EXIT
|
|
4010
|
+
*/
|
|
4011
|
+
Events.CONTAINER_PIP_EXIT = 'container:picture-in-picture:exit';
|
|
4012
|
+
|
|
4001
4013
|
/**
|
|
4002
4014
|
* Fired when the container seeks the video
|
|
4003
4015
|
*
|
|
@@ -4131,8 +4143,6 @@
|
|
|
4131
4143
|
* @module base
|
|
4132
4144
|
*/
|
|
4133
4145
|
var BaseObject = /*#__PURE__*/function (_Events) {
|
|
4134
|
-
_inherits$1(BaseObject, _Events);
|
|
4135
|
-
var _super = _createSuper$1(BaseObject);
|
|
4136
4146
|
/**
|
|
4137
4147
|
* @method constructor
|
|
4138
4148
|
* @param {Object} options
|
|
@@ -4141,7 +4151,7 @@
|
|
|
4141
4151
|
var _this;
|
|
4142
4152
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4143
4153
|
_classCallCheck$1(this, BaseObject);
|
|
4144
|
-
_this =
|
|
4154
|
+
_this = _callSuper$1(this, BaseObject, [options]);
|
|
4145
4155
|
_this._options = options;
|
|
4146
4156
|
_this.uniqueId = uniqueId('o');
|
|
4147
4157
|
return _this;
|
|
@@ -4152,7 +4162,8 @@
|
|
|
4152
4162
|
* @property uniqueId
|
|
4153
4163
|
* @type String
|
|
4154
4164
|
*/
|
|
4155
|
-
|
|
4165
|
+
_inherits$1(BaseObject, _Events);
|
|
4166
|
+
return _createClass$1(BaseObject, [{
|
|
4156
4167
|
key: "options",
|
|
4157
4168
|
get:
|
|
4158
4169
|
/**
|
|
@@ -4164,7 +4175,6 @@
|
|
|
4164
4175
|
return this._options;
|
|
4165
4176
|
}
|
|
4166
4177
|
}]);
|
|
4167
|
-
return BaseObject;
|
|
4168
4178
|
}(Events);
|
|
4169
4179
|
|
|
4170
4180
|
/* eslint-disable no-var */
|
|
@@ -4263,15 +4273,17 @@
|
|
|
4263
4273
|
tmpl.settings = settings;
|
|
4264
4274
|
|
|
4265
4275
|
// Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
4276
|
+
// Use of this source code is governed by a BSD-style
|
|
4277
|
+
// license that can be found in the LICENSE file.
|
|
4278
|
+
|
|
4266
4279
|
var Styler = {
|
|
4267
4280
|
getStyleFor: function getStyleFor(style) {
|
|
4268
4281
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
4269
4282
|
baseUrl: ''
|
|
4270
4283
|
};
|
|
4271
|
-
return
|
|
4284
|
+
return $('<style class="clappr-style"></style>').html(tmpl(style.toString())(options));
|
|
4272
4285
|
}
|
|
4273
4286
|
};
|
|
4274
|
-
|
|
4275
4287
|
var delegateEventSplitter = /^(\S+)\s*(.*)$/;
|
|
4276
4288
|
|
|
4277
4289
|
/**
|
|
@@ -4282,8 +4294,6 @@
|
|
|
4282
4294
|
* @module base
|
|
4283
4295
|
*/
|
|
4284
4296
|
var UIObject = /*#__PURE__*/function (_BaseObject) {
|
|
4285
|
-
_inherits$1(UIObject, _BaseObject);
|
|
4286
|
-
var _super = _createSuper$1(UIObject);
|
|
4287
4297
|
/**
|
|
4288
4298
|
* it builds an ui component by:
|
|
4289
4299
|
* * creating an id for the component `cid`
|
|
@@ -4295,7 +4305,7 @@
|
|
|
4295
4305
|
function UIObject(options) {
|
|
4296
4306
|
var _this;
|
|
4297
4307
|
_classCallCheck$1(this, UIObject);
|
|
4298
|
-
_this =
|
|
4308
|
+
_this = _callSuper$1(this, UIObject, [options]);
|
|
4299
4309
|
_this.cid = uniqueId('c');
|
|
4300
4310
|
_this._ensureElement();
|
|
4301
4311
|
_this.delegateEvents();
|
|
@@ -4312,7 +4322,8 @@
|
|
|
4312
4322
|
* fullScreenBarUIComponent.$('.button-full') //will return only `.button-full` within the component
|
|
4313
4323
|
* ```
|
|
4314
4324
|
*/
|
|
4315
|
-
|
|
4325
|
+
_inherits$1(UIObject, _BaseObject);
|
|
4326
|
+
return _createClass$1(UIObject, [{
|
|
4316
4327
|
key: "tagName",
|
|
4317
4328
|
get:
|
|
4318
4329
|
/**
|
|
@@ -4432,7 +4443,7 @@
|
|
|
4432
4443
|
key: "setElement",
|
|
4433
4444
|
value: function setElement(element, delegate) {
|
|
4434
4445
|
if (this.$el) this.undelegateEvents();
|
|
4435
|
-
this.$el = zepto.
|
|
4446
|
+
this.$el = $.zepto.isZ(element) ? element : $(element);
|
|
4436
4447
|
this.el = this.$el[0];
|
|
4437
4448
|
if (delegate !== false) this.delegateEvents();
|
|
4438
4449
|
return this;
|
|
@@ -4483,17 +4494,16 @@
|
|
|
4483
4494
|
key: "_ensureElement",
|
|
4484
4495
|
value: function _ensureElement() {
|
|
4485
4496
|
if (!this.el) {
|
|
4486
|
-
var attrs =
|
|
4497
|
+
var attrs = $.extend(true, {}, this.attributes);
|
|
4487
4498
|
if (this.id) attrs.id = this.id;
|
|
4488
4499
|
if (this.className) attrs['class'] = this.className;
|
|
4489
|
-
var $el =
|
|
4500
|
+
var $el = $(DomRecycler.create(this.tagName)).attr(attrs);
|
|
4490
4501
|
this.setElement($el, false);
|
|
4491
4502
|
} else {
|
|
4492
4503
|
this.setElement(this.el, false);
|
|
4493
4504
|
}
|
|
4494
4505
|
}
|
|
4495
4506
|
}]);
|
|
4496
|
-
return UIObject;
|
|
4497
4507
|
}(BaseObject);
|
|
4498
4508
|
|
|
4499
4509
|
/**
|
|
@@ -4504,14 +4514,12 @@
|
|
|
4504
4514
|
* @module components
|
|
4505
4515
|
*/
|
|
4506
4516
|
var PlayerError = /*#__PURE__*/function (_BaseObject) {
|
|
4507
|
-
_inherits$1(PlayerError, _BaseObject);
|
|
4508
|
-
var _super = _createSuper$1(PlayerError);
|
|
4509
4517
|
function PlayerError() {
|
|
4510
4518
|
var _this;
|
|
4511
4519
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4512
4520
|
var core = arguments.length > 1 ? arguments[1] : undefined;
|
|
4513
4521
|
_classCallCheck$1(this, PlayerError);
|
|
4514
|
-
_this =
|
|
4522
|
+
_this = _callSuper$1(this, PlayerError, [options]);
|
|
4515
4523
|
_this.core = core;
|
|
4516
4524
|
return _this;
|
|
4517
4525
|
}
|
|
@@ -4521,7 +4529,8 @@
|
|
|
4521
4529
|
* @method createError
|
|
4522
4530
|
* @param {Object} err should be an object with code, description, level, origin, scope and raw error.
|
|
4523
4531
|
*/
|
|
4524
|
-
|
|
4532
|
+
_inherits$1(PlayerError, _BaseObject);
|
|
4533
|
+
return _createClass$1(PlayerError, [{
|
|
4525
4534
|
key: "name",
|
|
4526
4535
|
get: function get() {
|
|
4527
4536
|
return 'error';
|
|
@@ -4550,9 +4559,7 @@
|
|
|
4550
4559
|
};
|
|
4551
4560
|
}
|
|
4552
4561
|
}]);
|
|
4553
|
-
return PlayerError;
|
|
4554
4562
|
}(BaseObject);
|
|
4555
|
-
|
|
4556
4563
|
var ErrorMixin = {
|
|
4557
4564
|
/**
|
|
4558
4565
|
* creates an error.
|
|
@@ -4589,21 +4596,19 @@
|
|
|
4589
4596
|
return errorData;
|
|
4590
4597
|
}
|
|
4591
4598
|
};
|
|
4592
|
-
|
|
4593
4599
|
var UICorePlugin = /*#__PURE__*/function (_UIObject) {
|
|
4594
|
-
_inherits$1(UICorePlugin, _UIObject);
|
|
4595
|
-
var _super = _createSuper$1(UICorePlugin);
|
|
4596
4600
|
function UICorePlugin(core) {
|
|
4597
4601
|
var _this;
|
|
4598
4602
|
_classCallCheck$1(this, UICorePlugin);
|
|
4599
|
-
_this =
|
|
4603
|
+
_this = _callSuper$1(this, UICorePlugin, [core.options]);
|
|
4600
4604
|
_this.core = core;
|
|
4601
4605
|
_this.enabled = true;
|
|
4602
4606
|
_this.bindEvents();
|
|
4603
4607
|
_this.render();
|
|
4604
4608
|
return _this;
|
|
4605
4609
|
}
|
|
4606
|
-
|
|
4610
|
+
_inherits$1(UICorePlugin, _UIObject);
|
|
4611
|
+
return _createClass$1(UICorePlugin, [{
|
|
4607
4612
|
key: "playerError",
|
|
4608
4613
|
get: function get() {
|
|
4609
4614
|
return this.core.playerError;
|
|
@@ -4638,14 +4643,12 @@
|
|
|
4638
4643
|
return this;
|
|
4639
4644
|
}
|
|
4640
4645
|
}]);
|
|
4641
|
-
return UICorePlugin;
|
|
4642
4646
|
}(UIObject);
|
|
4643
4647
|
Object.assign(UICorePlugin.prototype, ErrorMixin);
|
|
4644
4648
|
UICorePlugin.extend = function (properties) {
|
|
4645
4649
|
return extend$1(UICorePlugin, properties);
|
|
4646
4650
|
};
|
|
4647
4651
|
UICorePlugin.type = 'core';
|
|
4648
|
-
|
|
4649
4652
|
var css_248z$5$1 = ".container[data-container] {\n position: absolute;\n background-color: black;\n height: 100%;\n width: 100%;\n max-width: 100%; }\n .container[data-container] .chromeless {\n cursor: default; }\n\n[data-player]:not(.nocursor) .container[data-container]:not(.chromeless).pointer-enabled {\n cursor: pointer; }\n";
|
|
4650
4653
|
|
|
4651
4654
|
/**
|
|
@@ -4657,8 +4660,6 @@
|
|
|
4657
4660
|
* @module base
|
|
4658
4661
|
*/
|
|
4659
4662
|
var Container = /*#__PURE__*/function (_UIObject) {
|
|
4660
|
-
_inherits$1(Container, _UIObject);
|
|
4661
|
-
var _super = _createSuper$1(Container);
|
|
4662
4663
|
/**
|
|
4663
4664
|
* it builds a container
|
|
4664
4665
|
* @method constructor
|
|
@@ -4668,13 +4669,13 @@
|
|
|
4668
4669
|
function Container(options, i18n, playerError) {
|
|
4669
4670
|
var _this;
|
|
4670
4671
|
_classCallCheck$1(this, Container);
|
|
4671
|
-
_this =
|
|
4672
|
+
_this = _callSuper$1(this, Container, [options]);
|
|
4672
4673
|
_this._i18n = i18n;
|
|
4673
4674
|
_this.currentTime = 0;
|
|
4674
4675
|
_this.volume = 100;
|
|
4675
4676
|
_this.playback = options.playback;
|
|
4676
4677
|
_this.playerError = playerError;
|
|
4677
|
-
_this.settings =
|
|
4678
|
+
_this.settings = $.extend(true, {}, _this.playback.settings);
|
|
4678
4679
|
_this.isReady = false;
|
|
4679
4680
|
_this.mediaControlDisabled = false;
|
|
4680
4681
|
_this.plugins = [_this.playback];
|
|
@@ -4709,12 +4710,15 @@
|
|
|
4709
4710
|
* | play |
|
|
4710
4711
|
* | pause |
|
|
4711
4712
|
* | error |
|
|
4713
|
+
* | pip_enter |
|
|
4714
|
+
* | pip_exit |
|
|
4712
4715
|
*
|
|
4713
4716
|
* ps: the events usually translate from PLABACK_x to CONTAINER_x, you can check all the events at `Event` class.
|
|
4714
4717
|
*
|
|
4715
4718
|
* @method bindEvents
|
|
4716
4719
|
*/
|
|
4717
|
-
|
|
4720
|
+
_inherits$1(Container, _UIObject);
|
|
4721
|
+
return _createClass$1(Container, [{
|
|
4718
4722
|
key: "name",
|
|
4719
4723
|
get:
|
|
4720
4724
|
/**
|
|
@@ -4845,6 +4849,16 @@
|
|
|
4845
4849
|
get: function get() {
|
|
4846
4850
|
return this.playback.currentAudioTrack;
|
|
4847
4851
|
}
|
|
4852
|
+
|
|
4853
|
+
/**
|
|
4854
|
+
* returns the picture-in-picture state.
|
|
4855
|
+
* @type {Boolean}
|
|
4856
|
+
*/
|
|
4857
|
+
}, {
|
|
4858
|
+
key: "isPiPActive",
|
|
4859
|
+
get: function get() {
|
|
4860
|
+
return this.playback.isPiPActive;
|
|
4861
|
+
}
|
|
4848
4862
|
}, {
|
|
4849
4863
|
key: "bindEvents",
|
|
4850
4864
|
value: function bindEvents() {
|
|
@@ -4872,6 +4886,8 @@
|
|
|
4872
4886
|
this.listenTo(this.playback, Events.PLAYBACK_SUBTITLE_CHANGED, this.subtitleChanged);
|
|
4873
4887
|
this.listenTo(this.playback, Events.PLAYBACK_AUDIO_AVAILABLE, this.audioAvailable);
|
|
4874
4888
|
this.listenTo(this.playback, Events.PLAYBACK_AUDIO_CHANGED, this.audioChanged);
|
|
4889
|
+
this.listenTo(this.playback, Events.PLAYBACK_PIP_ENTER, this.onEnterPiP);
|
|
4890
|
+
this.listenTo(this.playback, Events.PLAYBACK_PIP_EXIT, this.onExitPiP);
|
|
4875
4891
|
}
|
|
4876
4892
|
}, {
|
|
4877
4893
|
key: "subtitleAvailable",
|
|
@@ -5176,6 +5192,16 @@
|
|
|
5176
5192
|
value: function bufferfull() {
|
|
5177
5193
|
this.trigger(Events.CONTAINER_STATE_BUFFERFULL, this.name);
|
|
5178
5194
|
}
|
|
5195
|
+
}, {
|
|
5196
|
+
key: "onEnterPiP",
|
|
5197
|
+
value: function onEnterPiP() {
|
|
5198
|
+
this.trigger(Events.CONTAINER_PIP_ENTER, this.name);
|
|
5199
|
+
}
|
|
5200
|
+
}, {
|
|
5201
|
+
key: "onExitPiP",
|
|
5202
|
+
value: function onExitPiP() {
|
|
5203
|
+
this.trigger(Events.CONTAINER_PIP_EXIT, this.name);
|
|
5204
|
+
}
|
|
5179
5205
|
|
|
5180
5206
|
/**
|
|
5181
5207
|
* adds plugin to the container
|
|
@@ -5232,6 +5258,16 @@
|
|
|
5232
5258
|
value: function mouseDown() {
|
|
5233
5259
|
if (!this.options.chromeless || this.options.allowUserInteraction) this.trigger(Events.CONTAINER_MOUSE_DOWN);
|
|
5234
5260
|
}
|
|
5261
|
+
}, {
|
|
5262
|
+
key: "enterPiP",
|
|
5263
|
+
value: function enterPiP() {
|
|
5264
|
+
this.playback.enterPiP();
|
|
5265
|
+
}
|
|
5266
|
+
}, {
|
|
5267
|
+
key: "exitPiP",
|
|
5268
|
+
value: function exitPiP() {
|
|
5269
|
+
this.playback.exitPiP();
|
|
5270
|
+
}
|
|
5235
5271
|
}, {
|
|
5236
5272
|
key: "settingsUpdate",
|
|
5237
5273
|
value: function settingsUpdate() {
|
|
@@ -5308,7 +5344,7 @@
|
|
|
5308
5344
|
}, {
|
|
5309
5345
|
key: "configure",
|
|
5310
5346
|
value: function configure(options) {
|
|
5311
|
-
this._options =
|
|
5347
|
+
this._options = $.extend(true, this._options, options);
|
|
5312
5348
|
this.updateStyle();
|
|
5313
5349
|
this.playback.configure(this.options);
|
|
5314
5350
|
this.trigger(Events.CONTAINER_OPTIONS_CHANGE);
|
|
@@ -5327,7 +5363,6 @@
|
|
|
5327
5363
|
return this;
|
|
5328
5364
|
}
|
|
5329
5365
|
}]);
|
|
5330
|
-
return Container;
|
|
5331
5366
|
}(UIObject);
|
|
5332
5367
|
Object.assign(Container.prototype, ErrorMixin);
|
|
5333
5368
|
|
|
@@ -5349,8 +5384,6 @@
|
|
|
5349
5384
|
* @module base
|
|
5350
5385
|
*/
|
|
5351
5386
|
var Playback = /*#__PURE__*/function (_UIObject) {
|
|
5352
|
-
_inherits$1(Playback, _UIObject);
|
|
5353
|
-
var _super = _createSuper$1(Playback);
|
|
5354
5387
|
/**
|
|
5355
5388
|
* @method constructor
|
|
5356
5389
|
* @param {Object} options the options object
|
|
@@ -5359,7 +5392,7 @@
|
|
|
5359
5392
|
function Playback(options, i18n, playerError) {
|
|
5360
5393
|
var _this;
|
|
5361
5394
|
_classCallCheck$1(this, Playback);
|
|
5362
|
-
_this =
|
|
5395
|
+
_this = _callSuper$1(this, Playback, [options]);
|
|
5363
5396
|
_this.settings = {};
|
|
5364
5397
|
_this._i18n = i18n;
|
|
5365
5398
|
_this.playerError = playerError;
|
|
@@ -5372,7 +5405,8 @@
|
|
|
5372
5405
|
* @method consent
|
|
5373
5406
|
* @param {Function} callback function called when playback is consented
|
|
5374
5407
|
*/
|
|
5375
|
-
|
|
5408
|
+
_inherits$1(Playback, _UIObject);
|
|
5409
|
+
return _createClass$1(Playback, [{
|
|
5376
5410
|
key: "isAudioOnly",
|
|
5377
5411
|
get:
|
|
5378
5412
|
/**
|
|
@@ -5423,6 +5457,41 @@
|
|
|
5423
5457
|
get: function get() {
|
|
5424
5458
|
return false;
|
|
5425
5459
|
}
|
|
5460
|
+
|
|
5461
|
+
/**
|
|
5462
|
+
* The estimated time (in seconds) of a video's live edge plus time sync playlist advanced.
|
|
5463
|
+
* (i.e if first playlist hasn't been loaded, will return 0)
|
|
5464
|
+
* @property latency
|
|
5465
|
+
* @type {Number}
|
|
5466
|
+
*/
|
|
5467
|
+
}, {
|
|
5468
|
+
key: "latency",
|
|
5469
|
+
get: function get() {
|
|
5470
|
+
return null;
|
|
5471
|
+
}
|
|
5472
|
+
|
|
5473
|
+
/**
|
|
5474
|
+
* The datetime value relative for a video's active level Program Date Time, if present.
|
|
5475
|
+
* (i.e if first playlist hasn't been loaded, will return null)
|
|
5476
|
+
* @property currentProgramDateTime
|
|
5477
|
+
* @return {Date}
|
|
5478
|
+
*/
|
|
5479
|
+
}, {
|
|
5480
|
+
key: "currentProgramDateTime",
|
|
5481
|
+
get: function get() {
|
|
5482
|
+
return null;
|
|
5483
|
+
}
|
|
5484
|
+
|
|
5485
|
+
/**
|
|
5486
|
+
* checks if picture in picture mode is active.
|
|
5487
|
+
* @property isPiPActive
|
|
5488
|
+
* @type {Boolean} `true` if the current playback is in picture in picture mode, otherwise `false`
|
|
5489
|
+
*/
|
|
5490
|
+
}, {
|
|
5491
|
+
key: "isPiPActive",
|
|
5492
|
+
get: function get() {
|
|
5493
|
+
return false;
|
|
5494
|
+
}
|
|
5426
5495
|
}, {
|
|
5427
5496
|
key: "consent",
|
|
5428
5497
|
value: function consent(cb) {
|
|
@@ -5453,6 +5522,22 @@
|
|
|
5453
5522
|
key: "stop",
|
|
5454
5523
|
value: function stop() {}
|
|
5455
5524
|
|
|
5525
|
+
/**
|
|
5526
|
+
* enter in picture in picture mode
|
|
5527
|
+
* @method enterPiP
|
|
5528
|
+
*/
|
|
5529
|
+
}, {
|
|
5530
|
+
key: "enterPiP",
|
|
5531
|
+
value: function enterPiP() {}
|
|
5532
|
+
|
|
5533
|
+
/**
|
|
5534
|
+
* exit from picture in picture mode
|
|
5535
|
+
* @method exitPiP
|
|
5536
|
+
*/
|
|
5537
|
+
}, {
|
|
5538
|
+
key: "exitPiP",
|
|
5539
|
+
value: function exitPiP() {}
|
|
5540
|
+
|
|
5456
5541
|
/**
|
|
5457
5542
|
* seeks the playback to a given `time` in seconds
|
|
5458
5543
|
* @method seek
|
|
@@ -5647,7 +5732,7 @@
|
|
|
5647
5732
|
}, {
|
|
5648
5733
|
key: "configure",
|
|
5649
5734
|
value: function configure(options) {
|
|
5650
|
-
this._options =
|
|
5735
|
+
this._options = $.extend(true, this._options, options);
|
|
5651
5736
|
}
|
|
5652
5737
|
|
|
5653
5738
|
/**
|
|
@@ -5675,7 +5760,6 @@
|
|
|
5675
5760
|
cb(true, null); // Assume playback can autoplay by default
|
|
5676
5761
|
}
|
|
5677
5762
|
}]);
|
|
5678
|
-
return Playback;
|
|
5679
5763
|
}(UIObject);
|
|
5680
5764
|
Object.assign(Playback.prototype, ErrorMixin);
|
|
5681
5765
|
Playback.extend = function (properties) {
|
|
@@ -5737,20 +5821,18 @@
|
|
|
5737
5821
|
* @type String
|
|
5738
5822
|
*/
|
|
5739
5823
|
Playback.type = 'playback';
|
|
5740
|
-
|
|
5741
5824
|
var ContainerFactory = /*#__PURE__*/function (_BaseObject) {
|
|
5742
|
-
_inherits$1(ContainerFactory, _BaseObject);
|
|
5743
|
-
var _super = _createSuper$1(ContainerFactory);
|
|
5744
5825
|
function ContainerFactory(options, loader, i18n, playerError) {
|
|
5745
5826
|
var _this;
|
|
5746
5827
|
_classCallCheck$1(this, ContainerFactory);
|
|
5747
|
-
_this =
|
|
5828
|
+
_this = _callSuper$1(this, ContainerFactory, [options]);
|
|
5748
5829
|
_this._i18n = i18n;
|
|
5749
5830
|
_this.loader = loader;
|
|
5750
5831
|
_this.playerError = playerError;
|
|
5751
5832
|
return _this;
|
|
5752
5833
|
}
|
|
5753
|
-
|
|
5834
|
+
_inherits$1(ContainerFactory, _BaseObject);
|
|
5835
|
+
return _createClass$1(ContainerFactory, [{
|
|
5754
5836
|
key: "options",
|
|
5755
5837
|
get: function get() {
|
|
5756
5838
|
return this._options;
|
|
@@ -5762,7 +5844,7 @@
|
|
|
5762
5844
|
key: "createContainers",
|
|
5763
5845
|
value: function createContainers() {
|
|
5764
5846
|
var _this2 = this;
|
|
5765
|
-
return
|
|
5847
|
+
return $.Deferred(function (promise) {
|
|
5766
5848
|
promise.resolve(_this2.options.sources.map(function (source) {
|
|
5767
5849
|
return _this2.createContainer(source);
|
|
5768
5850
|
}));
|
|
@@ -5799,7 +5881,7 @@
|
|
|
5799
5881
|
playback: playback
|
|
5800
5882
|
});
|
|
5801
5883
|
var container = new Container(options, this._i18n, this.playerError);
|
|
5802
|
-
var defer =
|
|
5884
|
+
var defer = $.Deferred();
|
|
5803
5885
|
defer.promise(container);
|
|
5804
5886
|
this.addContainerPlugins(container);
|
|
5805
5887
|
this.listenToOnce(container, Events.CONTAINER_READY, function () {
|
|
@@ -5815,11 +5897,8 @@
|
|
|
5815
5897
|
});
|
|
5816
5898
|
}
|
|
5817
5899
|
}]);
|
|
5818
|
-
return ContainerFactory;
|
|
5819
5900
|
}(BaseObject);
|
|
5820
|
-
|
|
5821
5901
|
var css_248z$4$1 = "[data-player] {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -o-user-select: none;\n user-select: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n transform: translate3d(0, 0, 0);\n position: relative;\n margin: 0;\n padding: 0;\n border: 0;\n font-style: normal;\n font-weight: normal;\n text-align: center;\n overflow: hidden;\n font-size: 100%;\n font-family: \"Roboto\", \"Open Sans\", Arial, sans-serif;\n text-shadow: 0 0 0;\n box-sizing: border-box; }\n [data-player]:focus {\n outline: 0; }\n [data-player] * {\n box-sizing: inherit; }\n [data-player] > * {\n float: none;\n max-width: none; }\n [data-player] > div {\n display: block; }\n [data-player].fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0;\n left: 0; }\n [data-player].nocursor {\n cursor: none; }\n\n.clappr-style {\n display: none !important; }\n";
|
|
5822
|
-
|
|
5823
5902
|
var css_248z$3$1 = "[data-player] div, [data-player] span, [data-player] applet, [data-player] object, [data-player] iframe,\n[data-player] h1, [data-player] h2, [data-player] h3, [data-player] h4, [data-player] h5, [data-player] h6, [data-player] p, [data-player] blockquote, [data-player] pre,\n[data-player] a, [data-player] abbr, [data-player] acronym, [data-player] address, [data-player] big, [data-player] cite, [data-player] code,\n[data-player] del, [data-player] dfn, [data-player] em, [data-player] img, [data-player] ins, [data-player] kbd, [data-player] q, [data-player] s, [data-player] samp,\n[data-player] small, [data-player] strike, [data-player] strong, [data-player] sub, [data-player] sup, [data-player] tt, [data-player] var,\n[data-player] b, [data-player] u, [data-player] i, [data-player] center,\n[data-player] dl, [data-player] dt, [data-player] dd, [data-player] ol, [data-player] ul, [data-player] li,\n[data-player] fieldset, [data-player] form, [data-player] label, [data-player] legend,\n[data-player] table, [data-player] caption, [data-player] tbody, [data-player] tfoot, [data-player] thead, [data-player] tr, [data-player] th, [data-player] td,\n[data-player] article, [data-player] aside, [data-player] canvas, [data-player] details, [data-player] embed,\n[data-player] figure, [data-player] figcaption, [data-player] footer, [data-player] header, [data-player] hgroup,\n[data-player] menu, [data-player] nav, [data-player] output, [data-player] ruby, [data-player] section, [data-player] summary,\n[data-player] time, [data-player] mark, [data-player] audio, [data-player] video {\n margin: 0;\n padding: 0;\n border: 0;\n font: inherit;\n font-size: 100%;\n vertical-align: baseline; }\n\n[data-player] table {\n border-collapse: collapse;\n border-spacing: 0; }\n\n[data-player] caption, [data-player] th, [data-player] td {\n text-align: left;\n font-weight: normal;\n vertical-align: middle; }\n\n[data-player] q, [data-player] blockquote {\n quotes: none; }\n [data-player] q:before, [data-player] q:after, [data-player] blockquote:before, [data-player] blockquote:after {\n content: \"\";\n content: none; }\n\n[data-player] a img {\n border: none; }\n";
|
|
5824
5903
|
|
|
5825
5904
|
/**
|
|
@@ -5830,30 +5909,30 @@
|
|
|
5830
5909
|
* @module components
|
|
5831
5910
|
*/
|
|
5832
5911
|
var Core = /*#__PURE__*/function (_UIObject) {
|
|
5833
|
-
_inherits$1(Core, _UIObject);
|
|
5834
|
-
var _super = _createSuper$1(Core);
|
|
5835
5912
|
function Core(options) {
|
|
5836
5913
|
var _this;
|
|
5837
5914
|
_classCallCheck$1(this, Core);
|
|
5838
|
-
_this =
|
|
5839
|
-
_this.playerError = new PlayerError(options,
|
|
5915
|
+
_this = _callSuper$1(this, Core, [options]);
|
|
5916
|
+
_this.playerError = new PlayerError(options, _this);
|
|
5840
5917
|
_this.configureDomRecycler();
|
|
5841
5918
|
_this.firstResize = true;
|
|
5919
|
+
_this.styleRendered = false;
|
|
5842
5920
|
_this.plugins = [];
|
|
5843
5921
|
_this.containers = [];
|
|
5844
5922
|
//FIXME fullscreen api sucks
|
|
5845
5923
|
_this._boundFullscreenHandler = function () {
|
|
5846
5924
|
return _this.handleFullscreenChange();
|
|
5847
5925
|
};
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
Browser.isMobile &&
|
|
5926
|
+
$(document).bind('fullscreenchange', _this._boundFullscreenHandler);
|
|
5927
|
+
$(document).bind('MSFullscreenChange', _this._boundFullscreenHandler);
|
|
5928
|
+
$(document).bind('mozfullscreenchange', _this._boundFullscreenHandler);
|
|
5929
|
+
Browser.isMobile && $(window).bind('resize', function (o) {
|
|
5852
5930
|
_this.handleWindowResize(o);
|
|
5853
5931
|
});
|
|
5854
5932
|
return _this;
|
|
5855
5933
|
}
|
|
5856
|
-
|
|
5934
|
+
_inherits$1(Core, _UIObject);
|
|
5935
|
+
return _createClass$1(Core, [{
|
|
5857
5936
|
key: "events",
|
|
5858
5937
|
get: function get() {
|
|
5859
5938
|
return {
|
|
@@ -5970,7 +6049,7 @@
|
|
|
5970
6049
|
}, {
|
|
5971
6050
|
key: "createContainers",
|
|
5972
6051
|
value: function createContainers(options) {
|
|
5973
|
-
this.defer =
|
|
6052
|
+
this.defer = $.Deferred();
|
|
5974
6053
|
this.defer.promise(this);
|
|
5975
6054
|
this.containerFactory = new ContainerFactory(options, options.loader, this.i18n, this.playerError);
|
|
5976
6055
|
this.prepareContainers();
|
|
@@ -6001,8 +6080,8 @@
|
|
|
6001
6080
|
height: this.options.height
|
|
6002
6081
|
};
|
|
6003
6082
|
this.currentSize = {
|
|
6004
|
-
width:
|
|
6005
|
-
height:
|
|
6083
|
+
width: $(window).width(),
|
|
6084
|
+
height: $(window).height()
|
|
6006
6085
|
};
|
|
6007
6086
|
}
|
|
6008
6087
|
}
|
|
@@ -6012,8 +6091,8 @@
|
|
|
6012
6091
|
this.$el.removeClass('fullscreen');
|
|
6013
6092
|
this.currentSize = this.previousSize;
|
|
6014
6093
|
this.previousSize = {
|
|
6015
|
-
width:
|
|
6016
|
-
height:
|
|
6094
|
+
width: $(window).width(),
|
|
6095
|
+
height: $(window).height()
|
|
6017
6096
|
};
|
|
6018
6097
|
this.resize(this.currentSize);
|
|
6019
6098
|
}
|
|
@@ -6071,7 +6150,7 @@
|
|
|
6071
6150
|
key: "resolveOnContainersReady",
|
|
6072
6151
|
value: function resolveOnContainersReady(containers) {
|
|
6073
6152
|
var _this4 = this;
|
|
6074
|
-
|
|
6153
|
+
$.when.apply($, containers).done(function () {
|
|
6075
6154
|
_this4.defer.resolve(_this4);
|
|
6076
6155
|
_this4.ready = true;
|
|
6077
6156
|
_this4.trigger(Events.CORE_READY);
|
|
@@ -6103,7 +6182,7 @@
|
|
|
6103
6182
|
this.containers.forEach(function (container) {
|
|
6104
6183
|
return container.destroy();
|
|
6105
6184
|
});
|
|
6106
|
-
this.containerFactory.options =
|
|
6185
|
+
this.containerFactory.options = $.extend(true, this.options, {
|
|
6107
6186
|
sources: sources
|
|
6108
6187
|
});
|
|
6109
6188
|
this.prepareContainers();
|
|
@@ -6119,9 +6198,9 @@
|
|
|
6119
6198
|
return plugin.destroy();
|
|
6120
6199
|
});
|
|
6121
6200
|
this.$el.remove();
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6201
|
+
$(document).unbind('fullscreenchange', this._boundFullscreenHandler);
|
|
6202
|
+
$(document).unbind('MSFullscreenChange', this._boundFullscreenHandler);
|
|
6203
|
+
$(document).unbind('mozfullscreenchange', this._boundFullscreenHandler);
|
|
6125
6204
|
this.stopListening();
|
|
6126
6205
|
}
|
|
6127
6206
|
}, {
|
|
@@ -6262,7 +6341,7 @@
|
|
|
6262
6341
|
key: "configure",
|
|
6263
6342
|
value: function configure(options) {
|
|
6264
6343
|
var _this7 = this;
|
|
6265
|
-
this._options =
|
|
6344
|
+
this._options = $.extend(true, this._options, options);
|
|
6266
6345
|
this.configureDomRecycler();
|
|
6267
6346
|
var sources = options.source || options.sources;
|
|
6268
6347
|
sources && this.load(sources, options.mimeType || this.options.mimeType);
|
|
@@ -6274,20 +6353,29 @@
|
|
|
6274
6353
|
}, {
|
|
6275
6354
|
key: "appendToParent",
|
|
6276
6355
|
value: function appendToParent() {
|
|
6356
|
+
var hasCoreParent = this.$el.parent() && this.$el.parent().length;
|
|
6357
|
+
!hasCoreParent && this.$el.appendTo(this.options.parentElement);
|
|
6358
|
+
}
|
|
6359
|
+
}, {
|
|
6360
|
+
key: "appendStyles",
|
|
6361
|
+
value: function appendStyles() {
|
|
6362
|
+
if (this.styleRendered) return;
|
|
6277
6363
|
var style = Styler.getStyleFor(css_248z$4$1.toString(), {
|
|
6278
6364
|
baseUrl: this.options.baseUrl
|
|
6279
6365
|
});
|
|
6280
|
-
var resetStyle = Styler.getStyleFor(css_248z$3$1.toString(), {
|
|
6281
|
-
baseUrl: this.options.baseUrl
|
|
6282
|
-
});
|
|
6283
6366
|
this.$el.append(style[0]);
|
|
6284
|
-
this.options.includeResetStyle
|
|
6285
|
-
|
|
6286
|
-
|
|
6367
|
+
if (this.options.includeResetStyle) {
|
|
6368
|
+
var resetStyle = Styler.getStyleFor(css_248z$3$1.toString(), {
|
|
6369
|
+
baseUrl: this.options.baseUrl
|
|
6370
|
+
});
|
|
6371
|
+
this.$el.append(resetStyle[0]);
|
|
6372
|
+
}
|
|
6373
|
+
this.styleRendered = true;
|
|
6287
6374
|
}
|
|
6288
6375
|
}, {
|
|
6289
6376
|
key: "render",
|
|
6290
6377
|
value: function render() {
|
|
6378
|
+
this.appendStyles();
|
|
6291
6379
|
this.options.width = this.options.width || this.$el.width();
|
|
6292
6380
|
this.options.height = this.options.height || this.$el.height();
|
|
6293
6381
|
var size = {
|
|
@@ -6300,7 +6388,6 @@
|
|
|
6300
6388
|
return this;
|
|
6301
6389
|
}
|
|
6302
6390
|
}]);
|
|
6303
|
-
return Core;
|
|
6304
6391
|
}(UIObject);
|
|
6305
6392
|
Object.assign(Core.prototype, ErrorMixin);
|
|
6306
6393
|
|
|
@@ -6312,8 +6399,6 @@
|
|
|
6312
6399
|
* @module components
|
|
6313
6400
|
*/
|
|
6314
6401
|
var CoreFactory = /*#__PURE__*/function (_BaseObject) {
|
|
6315
|
-
_inherits$1(CoreFactory, _BaseObject);
|
|
6316
|
-
var _super = _createSuper$1(CoreFactory);
|
|
6317
6402
|
/**
|
|
6318
6403
|
* it builds the core factory
|
|
6319
6404
|
* @method constructor
|
|
@@ -6322,7 +6407,7 @@
|
|
|
6322
6407
|
function CoreFactory(player) {
|
|
6323
6408
|
var _this;
|
|
6324
6409
|
_classCallCheck$1(this, CoreFactory);
|
|
6325
|
-
_this =
|
|
6410
|
+
_this = _callSuper$1(this, CoreFactory, [player.options]);
|
|
6326
6411
|
_this.player = player;
|
|
6327
6412
|
return _this;
|
|
6328
6413
|
}
|
|
@@ -6332,7 +6417,8 @@
|
|
|
6332
6417
|
* @method create
|
|
6333
6418
|
* @return {Core} created core
|
|
6334
6419
|
*/
|
|
6335
|
-
|
|
6420
|
+
_inherits$1(CoreFactory, _BaseObject);
|
|
6421
|
+
return _createClass$1(CoreFactory, [{
|
|
6336
6422
|
key: "loader",
|
|
6337
6423
|
get: function get() {
|
|
6338
6424
|
return this.player.loader;
|
|
@@ -6367,14 +6453,10 @@
|
|
|
6367
6453
|
key: "setupExternalInterface",
|
|
6368
6454
|
value: function setupExternalInterface(plugin) {
|
|
6369
6455
|
var externalFunctions = plugin.getExternalInterface();
|
|
6370
|
-
for (var key in externalFunctions)
|
|
6371
|
-
this.player[key] = externalFunctions[key].bind(plugin);
|
|
6372
|
-
}
|
|
6456
|
+
for (var key in externalFunctions) this.player[key] = externalFunctions[key].bind(plugin);
|
|
6373
6457
|
}
|
|
6374
6458
|
}]);
|
|
6375
|
-
return CoreFactory;
|
|
6376
6459
|
}(BaseObject);
|
|
6377
|
-
|
|
6378
6460
|
var VERSION_REGEX = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/;
|
|
6379
6461
|
var Version = /*#__PURE__*/function () {
|
|
6380
6462
|
function Version(major, minor, patch) {
|
|
@@ -6383,7 +6465,7 @@
|
|
|
6383
6465
|
this.minor = parseInt(minor || 0, 10);
|
|
6384
6466
|
this.patch = parseInt(patch || 0, 10);
|
|
6385
6467
|
}
|
|
6386
|
-
_createClass$1(Version, [{
|
|
6468
|
+
return _createClass$1(Version, [{
|
|
6387
6469
|
key: "compare",
|
|
6388
6470
|
value: function compare(other) {
|
|
6389
6471
|
var diff = this.major - other.major;
|
|
@@ -6421,9 +6503,7 @@
|
|
|
6421
6503
|
return new Version(major, minor, patch);
|
|
6422
6504
|
}
|
|
6423
6505
|
}]);
|
|
6424
|
-
return Version;
|
|
6425
6506
|
}();
|
|
6426
|
-
|
|
6427
6507
|
var filterPluginsByType = function filterPluginsByType(plugins, type) {
|
|
6428
6508
|
if (!plugins || !type) return {};
|
|
6429
6509
|
return Object.entries(plugins).filter(function (_ref) {
|
|
@@ -6445,12 +6525,12 @@
|
|
|
6445
6525
|
* @extends BaseObject
|
|
6446
6526
|
* @module components
|
|
6447
6527
|
*/
|
|
6448
|
-
var Loader =
|
|
6528
|
+
var Loader = function () {
|
|
6449
6529
|
var registry = {
|
|
6450
6530
|
plugins: {},
|
|
6451
6531
|
playbacks: []
|
|
6452
6532
|
};
|
|
6453
|
-
var currentVersion = "0.
|
|
6533
|
+
var currentVersion = "0.7.2";
|
|
6454
6534
|
return /*#__PURE__*/function () {
|
|
6455
6535
|
/**
|
|
6456
6536
|
* builds the loader
|
|
@@ -6480,7 +6560,7 @@
|
|
|
6480
6560
|
* @param {Object} an config object or an array of plugins
|
|
6481
6561
|
* @return {Object} plugins the config object with the plugins separated by type
|
|
6482
6562
|
*/
|
|
6483
|
-
_createClass$1(Loader, [{
|
|
6563
|
+
return _createClass$1(Loader, [{
|
|
6484
6564
|
key: "groupPluginsByType",
|
|
6485
6565
|
value: function groupPluginsByType(plugins) {
|
|
6486
6566
|
if (Array.isArray(plugins)) {
|
|
@@ -6504,9 +6584,7 @@
|
|
|
6504
6584
|
};
|
|
6505
6585
|
var pluginsMap = list.reduceRight(groupUp, Object.create(null));
|
|
6506
6586
|
var plugins = [];
|
|
6507
|
-
for (var key in pluginsMap)
|
|
6508
|
-
plugins.unshift(pluginsMap[key]);
|
|
6509
|
-
}
|
|
6587
|
+
for (var key in pluginsMap) plugins.unshift(pluginsMap[key]);
|
|
6510
6588
|
return plugins;
|
|
6511
6589
|
}
|
|
6512
6590
|
|
|
@@ -6659,10 +6737,8 @@
|
|
|
6659
6737
|
registry.playbacks = [];
|
|
6660
6738
|
}
|
|
6661
6739
|
}]);
|
|
6662
|
-
return Loader;
|
|
6663
6740
|
}();
|
|
6664
|
-
}
|
|
6665
|
-
|
|
6741
|
+
}();
|
|
6666
6742
|
var baseUrl = currentScriptUrl().replace(/\/[^/]+$/, '');
|
|
6667
6743
|
|
|
6668
6744
|
/**
|
|
@@ -6690,8 +6766,6 @@
|
|
|
6690
6766
|
* ```
|
|
6691
6767
|
*/
|
|
6692
6768
|
var Player = /*#__PURE__*/function (_BaseObject) {
|
|
6693
|
-
_inherits$1(Player, _BaseObject);
|
|
6694
|
-
var _super = _createSuper$1(Player);
|
|
6695
6769
|
/**
|
|
6696
6770
|
* @typedef {Object} PlaybackConfig
|
|
6697
6771
|
* @prop {boolean} disableContextMenu
|
|
@@ -6823,7 +6897,7 @@
|
|
|
6823
6897
|
function Player(options) {
|
|
6824
6898
|
var _this;
|
|
6825
6899
|
_classCallCheck$1(this, Player);
|
|
6826
|
-
_this =
|
|
6900
|
+
_this = _callSuper$1(this, Player, [options]);
|
|
6827
6901
|
var playbackDefaultOptions = {
|
|
6828
6902
|
recycleVideo: true
|
|
6829
6903
|
};
|
|
@@ -6837,7 +6911,7 @@
|
|
|
6837
6911
|
includeResetStyle: true,
|
|
6838
6912
|
playback: playbackDefaultOptions
|
|
6839
6913
|
};
|
|
6840
|
-
_this._options =
|
|
6914
|
+
_this._options = $.extend(true, defaultOptions, options);
|
|
6841
6915
|
_this.options.sources = _this._normalizeSources(options);
|
|
6842
6916
|
if (!_this.options.chromeless) {
|
|
6843
6917
|
// "allowUserInteraction" cannot be false if not in chromeless mode.
|
|
@@ -6848,7 +6922,7 @@
|
|
|
6848
6922
|
_this.options.disableKeyboardShortcuts = true;
|
|
6849
6923
|
}
|
|
6850
6924
|
_this._registerOptionEventListeners(_this.options.events);
|
|
6851
|
-
_this._coreFactory = new CoreFactory(
|
|
6925
|
+
_this._coreFactory = new CoreFactory(_this);
|
|
6852
6926
|
var parentElement = _this._getParentElement(_this.options);
|
|
6853
6927
|
parentElement && _this.attachTo(parentElement);
|
|
6854
6928
|
return _this;
|
|
@@ -6860,7 +6934,8 @@
|
|
|
6860
6934
|
* @param {Object} parent
|
|
6861
6935
|
* @returns {Object} the parent element
|
|
6862
6936
|
*/
|
|
6863
|
-
|
|
6937
|
+
_inherits$1(Player, _BaseObject);
|
|
6938
|
+
return _createClass$1(Player, [{
|
|
6864
6939
|
key: "loader",
|
|
6865
6940
|
get: function get() {
|
|
6866
6941
|
if (!this._loader) this._loader = new Loader(this.options.plugins || {}, this.options.playerId);
|
|
@@ -7337,7 +7412,6 @@
|
|
|
7337
7412
|
return this.core.activeContainer.getDuration();
|
|
7338
7413
|
}
|
|
7339
7414
|
}]);
|
|
7340
|
-
return Player;
|
|
7341
7415
|
}(BaseObject);
|
|
7342
7416
|
Object.assign(Player.prototype, ErrorMixin);
|
|
7343
7417
|
|
|
@@ -7349,18 +7423,17 @@
|
|
|
7349
7423
|
* @module base
|
|
7350
7424
|
*/
|
|
7351
7425
|
var ContainerPlugin = /*#__PURE__*/function (_BaseObject) {
|
|
7352
|
-
_inherits$1(ContainerPlugin, _BaseObject);
|
|
7353
|
-
var _super = _createSuper$1(ContainerPlugin);
|
|
7354
7426
|
function ContainerPlugin(container) {
|
|
7355
7427
|
var _this;
|
|
7356
7428
|
_classCallCheck$1(this, ContainerPlugin);
|
|
7357
|
-
_this =
|
|
7429
|
+
_this = _callSuper$1(this, ContainerPlugin, [container.options]);
|
|
7358
7430
|
_this.container = container;
|
|
7359
7431
|
_this.enabled = true;
|
|
7360
7432
|
_this.bindEvents();
|
|
7361
7433
|
return _this;
|
|
7362
7434
|
}
|
|
7363
|
-
|
|
7435
|
+
_inherits$1(ContainerPlugin, _BaseObject);
|
|
7436
|
+
return _createClass$1(ContainerPlugin, [{
|
|
7364
7437
|
key: "playerError",
|
|
7365
7438
|
get: function get() {
|
|
7366
7439
|
return this.container.playerError;
|
|
@@ -7390,27 +7463,24 @@
|
|
|
7390
7463
|
this.stopListening();
|
|
7391
7464
|
}
|
|
7392
7465
|
}]);
|
|
7393
|
-
return ContainerPlugin;
|
|
7394
7466
|
}(BaseObject);
|
|
7395
7467
|
Object.assign(ContainerPlugin.prototype, ErrorMixin);
|
|
7396
7468
|
ContainerPlugin.extend = function (properties) {
|
|
7397
7469
|
return extend$1(ContainerPlugin, properties);
|
|
7398
7470
|
};
|
|
7399
7471
|
ContainerPlugin.type = 'container';
|
|
7400
|
-
|
|
7401
7472
|
var CorePlugin = /*#__PURE__*/function (_BaseObject) {
|
|
7402
|
-
_inherits$1(CorePlugin, _BaseObject);
|
|
7403
|
-
var _super = _createSuper$1(CorePlugin);
|
|
7404
7473
|
function CorePlugin(core) {
|
|
7405
7474
|
var _this;
|
|
7406
7475
|
_classCallCheck$1(this, CorePlugin);
|
|
7407
|
-
_this =
|
|
7476
|
+
_this = _callSuper$1(this, CorePlugin, [core.options]);
|
|
7408
7477
|
_this.core = core;
|
|
7409
7478
|
_this.enabled = true;
|
|
7410
7479
|
_this.bindEvents();
|
|
7411
7480
|
return _this;
|
|
7412
7481
|
}
|
|
7413
|
-
|
|
7482
|
+
_inherits$1(CorePlugin, _BaseObject);
|
|
7483
|
+
return _createClass$1(CorePlugin, [{
|
|
7414
7484
|
key: "playerError",
|
|
7415
7485
|
get: function get() {
|
|
7416
7486
|
return this.core.playerError;
|
|
@@ -7445,7 +7515,6 @@
|
|
|
7445
7515
|
this.stopListening();
|
|
7446
7516
|
}
|
|
7447
7517
|
}]);
|
|
7448
|
-
return CorePlugin;
|
|
7449
7518
|
}(BaseObject);
|
|
7450
7519
|
Object.assign(CorePlugin.prototype, ErrorMixin);
|
|
7451
7520
|
CorePlugin.extend = function (properties) {
|
|
@@ -7461,18 +7530,17 @@
|
|
|
7461
7530
|
* @module base
|
|
7462
7531
|
*/
|
|
7463
7532
|
var UIContainerPlugin = /*#__PURE__*/function (_UIObject) {
|
|
7464
|
-
_inherits$1(UIContainerPlugin, _UIObject);
|
|
7465
|
-
var _super = _createSuper$1(UIContainerPlugin);
|
|
7466
7533
|
function UIContainerPlugin(container) {
|
|
7467
7534
|
var _this;
|
|
7468
7535
|
_classCallCheck$1(this, UIContainerPlugin);
|
|
7469
|
-
_this =
|
|
7536
|
+
_this = _callSuper$1(this, UIContainerPlugin, [container.options]);
|
|
7470
7537
|
_this.container = container;
|
|
7471
7538
|
_this.enabled = true;
|
|
7472
7539
|
_this.bindEvents();
|
|
7473
7540
|
return _this;
|
|
7474
7541
|
}
|
|
7475
|
-
|
|
7542
|
+
_inherits$1(UIContainerPlugin, _UIObject);
|
|
7543
|
+
return _createClass$1(UIContainerPlugin, [{
|
|
7476
7544
|
key: "playerError",
|
|
7477
7545
|
get: function get() {
|
|
7478
7546
|
return this.container.playerError;
|
|
@@ -7497,18 +7565,14 @@
|
|
|
7497
7565
|
key: "bindEvents",
|
|
7498
7566
|
value: function bindEvents() {}
|
|
7499
7567
|
}]);
|
|
7500
|
-
return UIContainerPlugin;
|
|
7501
7568
|
}(UIObject);
|
|
7502
7569
|
Object.assign(UIContainerPlugin.prototype, ErrorMixin);
|
|
7503
7570
|
UIContainerPlugin.extend = function (properties) {
|
|
7504
7571
|
return extend$1(UIContainerPlugin, properties);
|
|
7505
7572
|
};
|
|
7506
7573
|
UIContainerPlugin.type = 'container';
|
|
7507
|
-
|
|
7508
7574
|
var tracksHTML = "<% for (var i = 0; i < tracks.length; i++) { %>\n <track data-html5-video-track=\"<%= i %>\" kind=\"<%= tracks[i].kind %>\" label=\"<%= tracks[i].label %>\" srclang=\"<%= tracks[i].lang %>\" src=\"<%= tracks[i].src %>\">\n<% }; %>\n";
|
|
7509
|
-
|
|
7510
7575
|
var css_248z$2$1 = "[data-html5-video] {\n position: absolute;\n height: 100%;\n width: 100%;\n display: block; }\n";
|
|
7511
|
-
|
|
7512
7576
|
var MIMETYPES = {
|
|
7513
7577
|
'mp4': ['avc1.42E01E', 'avc1.58A01E', 'avc1.4D401E', 'avc1.64001E', 'mp4v.20.8', 'mp4v.20.240', 'mp4a.40.2'].map(function (codec) {
|
|
7514
7578
|
return 'video/mp4; codecs="' + codec + ', mp4a.40.2"';
|
|
@@ -7537,15 +7601,13 @@
|
|
|
7537
7601
|
|
|
7538
7602
|
// TODO: rename this Playback to HTML5Playback (breaking change, only after 0.3.0)
|
|
7539
7603
|
var HTML5Video = /*#__PURE__*/function (_Playback) {
|
|
7540
|
-
_inherits$1(HTML5Video, _Playback);
|
|
7541
|
-
var _super = _createSuper$1(HTML5Video);
|
|
7542
7604
|
function HTML5Video() {
|
|
7543
7605
|
var _this;
|
|
7544
7606
|
_classCallCheck$1(this, HTML5Video);
|
|
7545
7607
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7546
7608
|
args[_key] = arguments[_key];
|
|
7547
7609
|
}
|
|
7548
|
-
_this =
|
|
7610
|
+
_this = _callSuper$1(this, HTML5Video, [].concat(args));
|
|
7549
7611
|
_this._destroyed = false;
|
|
7550
7612
|
_this._loadStarted = false;
|
|
7551
7613
|
_this._isBuffering = false;
|
|
@@ -7553,7 +7615,9 @@
|
|
|
7553
7615
|
_this._playheadMovingTimer = null;
|
|
7554
7616
|
_this._stopped = false;
|
|
7555
7617
|
_this._ccTrackId = -1;
|
|
7618
|
+
_this._playheadMovingCheckEnabled = !_this.options.disablePlayheadMovingCheck;
|
|
7556
7619
|
_this._setupSrc(_this.options.src);
|
|
7620
|
+
_this._playheadMovingCheckInterval = _this.options.playheadMovingCheckInterval || 500;
|
|
7557
7621
|
// backwards compatibility (TODO: remove on 0.3.0)
|
|
7558
7622
|
_this.options.playback || (_this.options.playback = _this.options || {});
|
|
7559
7623
|
_this.options.playback.disableContextMenu = _this.options.playback.disableContextMenu || _this.options.disableVideoTagContextMenu;
|
|
@@ -7564,7 +7628,7 @@
|
|
|
7564
7628
|
if (_this.options.poster) {
|
|
7565
7629
|
if (typeof _this.options.poster === 'string') posterUrl = _this.options.poster;else if (typeof _this.options.poster.url === 'string') posterUrl = _this.options.poster.url;
|
|
7566
7630
|
}
|
|
7567
|
-
|
|
7631
|
+
$.extend(true, _this.el, {
|
|
7568
7632
|
muted: _this.options.mute,
|
|
7569
7633
|
defaultMuted: _this.options.mute,
|
|
7570
7634
|
loop: _this.options.loop,
|
|
@@ -7591,7 +7655,8 @@
|
|
|
7591
7655
|
_this.options.autoPlay && _this.attemptAutoPlay();
|
|
7592
7656
|
return _this;
|
|
7593
7657
|
}
|
|
7594
|
-
|
|
7658
|
+
_inherits$1(HTML5Video, _Playback);
|
|
7659
|
+
return _createClass$1(HTML5Video, [{
|
|
7595
7660
|
key: "name",
|
|
7596
7661
|
get: function get() {
|
|
7597
7662
|
return 'html5_video';
|
|
@@ -7600,7 +7665,7 @@
|
|
|
7600
7665
|
key: "supportedVersion",
|
|
7601
7666
|
get: function get() {
|
|
7602
7667
|
return {
|
|
7603
|
-
min: "0.
|
|
7668
|
+
min: "0.7.2"
|
|
7604
7669
|
};
|
|
7605
7670
|
}
|
|
7606
7671
|
}, {
|
|
@@ -7640,7 +7705,9 @@
|
|
|
7640
7705
|
'seeked': '_onSeeked',
|
|
7641
7706
|
'stalled': '_handleBufferingEvents',
|
|
7642
7707
|
'timeupdate': '_onTimeUpdate',
|
|
7643
|
-
'waiting': '_onWaiting'
|
|
7708
|
+
'waiting': '_onWaiting',
|
|
7709
|
+
'enterpictureinpicture': '_onEnterPiP',
|
|
7710
|
+
'leavepictureinpicture': '_onExitPiP'
|
|
7644
7711
|
};
|
|
7645
7712
|
}
|
|
7646
7713
|
|
|
@@ -7667,6 +7734,11 @@
|
|
|
7667
7734
|
get: function get() {
|
|
7668
7735
|
return this._isBuffering;
|
|
7669
7736
|
}
|
|
7737
|
+
}, {
|
|
7738
|
+
key: "isPiPActive",
|
|
7739
|
+
get: function get() {
|
|
7740
|
+
return this.el === document.pictureInPictureElement;
|
|
7741
|
+
}
|
|
7670
7742
|
}, {
|
|
7671
7743
|
key: "isLive",
|
|
7672
7744
|
get: function get() {
|
|
@@ -7687,6 +7759,11 @@
|
|
|
7687
7759
|
get: function get() {
|
|
7688
7760
|
return typeof this.minimumDVRSizeConfig !== 'undefined' && typeof this.minimumDVRSizeConfig === 'number';
|
|
7689
7761
|
}
|
|
7762
|
+
}, {
|
|
7763
|
+
key: "sourceMedia",
|
|
7764
|
+
get: function get() {
|
|
7765
|
+
return this._src;
|
|
7766
|
+
}
|
|
7690
7767
|
}, {
|
|
7691
7768
|
key: "configure",
|
|
7692
7769
|
value: function configure(options) {
|
|
@@ -7748,6 +7825,18 @@
|
|
|
7748
7825
|
});
|
|
7749
7826
|
}
|
|
7750
7827
|
|
|
7828
|
+
/**
|
|
7829
|
+
* Sets the source url on the <video> element, and also the 'src' property.
|
|
7830
|
+
* @method load
|
|
7831
|
+
* @public
|
|
7832
|
+
* @param {String} srcUrl The source URL.
|
|
7833
|
+
*/
|
|
7834
|
+
}, {
|
|
7835
|
+
key: "load",
|
|
7836
|
+
value: function load(srcUrl) {
|
|
7837
|
+
this._setupSrc(srcUrl);
|
|
7838
|
+
}
|
|
7839
|
+
|
|
7751
7840
|
/**
|
|
7752
7841
|
* Sets the source url on the <video> element, and also the 'src' property.
|
|
7753
7842
|
* @method setupSrc
|
|
@@ -7831,13 +7920,17 @@
|
|
|
7831
7920
|
}, {
|
|
7832
7921
|
key: "play",
|
|
7833
7922
|
value: function play() {
|
|
7923
|
+
var _this4 = this;
|
|
7834
7924
|
this.trigger(Events.PLAYBACK_PLAY_INTENT);
|
|
7835
7925
|
this._stopped = false;
|
|
7836
7926
|
this._setupSrc(this._src);
|
|
7837
7927
|
this._handleBufferingEvents();
|
|
7838
7928
|
var promise = this.el.play();
|
|
7839
7929
|
// For more details, see https://developers.google.com/web/updates/2016/03/play-returns-promise
|
|
7840
|
-
if (promise && promise["catch"]) promise["catch"](function () {
|
|
7930
|
+
if (promise && promise["catch"]) promise["catch"](function (error) {
|
|
7931
|
+
return Log.warn(_this4.name, 'HTML5 play failed', error);
|
|
7932
|
+
});
|
|
7933
|
+
return promise;
|
|
7841
7934
|
}
|
|
7842
7935
|
}, {
|
|
7843
7936
|
key: "pause",
|
|
@@ -7911,10 +8004,10 @@
|
|
|
7911
8004
|
}, {
|
|
7912
8005
|
key: "_startPlayheadMovingChecks",
|
|
7913
8006
|
value: function _startPlayheadMovingChecks() {
|
|
7914
|
-
if (this._playheadMovingTimer !== null) return;
|
|
8007
|
+
if (this._playheadMovingTimer !== null || !this._playheadMovingCheckEnabled) return;
|
|
7915
8008
|
this._playheadMovingTimeOnCheck = null;
|
|
7916
8009
|
this._determineIfPlayheadMoving();
|
|
7917
|
-
this._playheadMovingTimer = setInterval(this._determineIfPlayheadMoving.bind(this),
|
|
8010
|
+
this._playheadMovingTimer = setInterval(this._determineIfPlayheadMoving.bind(this), this._playheadMovingCheckInterval);
|
|
7918
8011
|
}
|
|
7919
8012
|
}, {
|
|
7920
8013
|
key: "_stopPlayheadMovingChecks",
|
|
@@ -8002,6 +8095,36 @@
|
|
|
8002
8095
|
this._handleBufferingEvents();
|
|
8003
8096
|
this.trigger(Events.PLAYBACK_ENDED, this.name);
|
|
8004
8097
|
}
|
|
8098
|
+
}, {
|
|
8099
|
+
key: "_onEnterPiP",
|
|
8100
|
+
value: function _onEnterPiP() {
|
|
8101
|
+
this.trigger(Events.PLAYBACK_PIP_ENTER, this.name);
|
|
8102
|
+
}
|
|
8103
|
+
}, {
|
|
8104
|
+
key: "_onExitPiP",
|
|
8105
|
+
value: function _onExitPiP() {
|
|
8106
|
+
this.trigger(Events.PLAYBACK_PIP_EXIT, this.name);
|
|
8107
|
+
}
|
|
8108
|
+
}, {
|
|
8109
|
+
key: "enterPiP",
|
|
8110
|
+
value: function enterPiP() {
|
|
8111
|
+
var _this5 = this;
|
|
8112
|
+
this.el.requestPictureInPicture().then(function () {
|
|
8113
|
+
Log.info(_this5.name, 'enter PIP success');
|
|
8114
|
+
})["catch"](function (e) {
|
|
8115
|
+
Log.warn(_this5.name, 'enter PIP failed', e);
|
|
8116
|
+
});
|
|
8117
|
+
}
|
|
8118
|
+
}, {
|
|
8119
|
+
key: "exitPiP",
|
|
8120
|
+
value: function exitPiP() {
|
|
8121
|
+
var _this6 = this;
|
|
8122
|
+
document.exitPictureInPicture().then(function () {
|
|
8123
|
+
Log.info(_this6.name, 'exit PIP success');
|
|
8124
|
+
})["catch"](function (e) {
|
|
8125
|
+
Log.warn(_this6.name, 'exit PIP failed', e);
|
|
8126
|
+
});
|
|
8127
|
+
}
|
|
8005
8128
|
|
|
8006
8129
|
// The playback should be classed as buffering if the following are true:
|
|
8007
8130
|
// - the ready state is less then HAVE_FUTURE_DATA or the playhead isn't moving and it should be
|
|
@@ -8011,8 +8134,11 @@
|
|
|
8011
8134
|
}, {
|
|
8012
8135
|
key: "_handleBufferingEvents",
|
|
8013
8136
|
value: function _handleBufferingEvents() {
|
|
8014
|
-
var
|
|
8015
|
-
var
|
|
8137
|
+
var isLoading = this._loadStarted && !this.el.ended && !this._stopped;
|
|
8138
|
+
var isMissingMediaDataToPlay = this.el.readyState < this.el.HAVE_FUTURE_DATA;
|
|
8139
|
+
var playheadShouldBeMoving = !this.el.ended && !this.el.paused && !this._playheadMoving;
|
|
8140
|
+
var buffering = isLoading && isMissingMediaDataToPlay;
|
|
8141
|
+
if (this._playheadMovingCheckEnabled) buffering = buffering || isLoading && playheadShouldBeMoving;
|
|
8016
8142
|
if (this._isBuffering !== buffering) {
|
|
8017
8143
|
this._isBuffering = buffering;
|
|
8018
8144
|
if (buffering) this.trigger(Events.PLAYBACK_BUFFERING, this.name);else this.trigger(Events.PLAYBACK_BUFFERFULL, this.name);
|
|
@@ -8038,6 +8164,7 @@
|
|
|
8038
8164
|
value: function destroy() {
|
|
8039
8165
|
this._destroyed = true;
|
|
8040
8166
|
this.handleTextTrackChange && this.el.textTracks.removeEventListener('change', this.handleTextTrackChange);
|
|
8167
|
+
this.$el.off('contextmenu');
|
|
8041
8168
|
_get$1(_getPrototypeOf$1(HTML5Video.prototype), "destroy", this).call(this);
|
|
8042
8169
|
this.el.removeAttribute('src');
|
|
8043
8170
|
this.el.load(); // load with no src to stop loading of the previous source and avoid leaks
|
|
@@ -8098,11 +8225,11 @@
|
|
|
8098
8225
|
}, {
|
|
8099
8226
|
key: "_scheduleUpdateSettingsCheck",
|
|
8100
8227
|
value: function _scheduleUpdateSettingsCheck() {
|
|
8101
|
-
var
|
|
8228
|
+
var _this7 = this;
|
|
8102
8229
|
if (this._updateSettingsCheckInFlight) return;
|
|
8103
8230
|
this._updateSettingsCheckInFlight = setTimeout(function () {
|
|
8104
|
-
|
|
8105
|
-
|
|
8231
|
+
_this7._updateSettings();
|
|
8232
|
+
_this7._updateSettingsCheckInFlight = null;
|
|
8106
8233
|
}, 1000);
|
|
8107
8234
|
}
|
|
8108
8235
|
}, {
|
|
@@ -8262,9 +8389,11 @@
|
|
|
8262
8389
|
return this;
|
|
8263
8390
|
}
|
|
8264
8391
|
}]);
|
|
8265
|
-
return HTML5Video;
|
|
8266
8392
|
}(Playback);
|
|
8267
|
-
HTML5Video._mimeTypesForUrl = function (
|
|
8393
|
+
HTML5Video._mimeTypesForUrl = function () {
|
|
8394
|
+
var resourceUrl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
8395
|
+
var mimeTypesByExtension = arguments.length > 1 ? arguments[1] : undefined;
|
|
8396
|
+
var mimeType = arguments.length > 2 ? arguments[2] : undefined;
|
|
8268
8397
|
var extension = (resourceUrl.split('?')[0].match(/.*\.(.*)$/) || [])[1];
|
|
8269
8398
|
var mimeTypes = mimeType || extension && mimeTypesByExtension[extension.toLowerCase()] || [];
|
|
8270
8399
|
return mimeTypes.constructor === Array ? mimeTypes : [mimeTypes];
|
|
@@ -8282,13 +8411,12 @@
|
|
|
8282
8411
|
|
|
8283
8412
|
// TODO: remove this playback and change HTML5Video to HTML5Playback (breaking change, only after 0.3.0)
|
|
8284
8413
|
var HTML5Audio = /*#__PURE__*/function (_HTML5Video) {
|
|
8285
|
-
_inherits$1(HTML5Audio, _HTML5Video);
|
|
8286
|
-
var _super = _createSuper$1(HTML5Audio);
|
|
8287
8414
|
function HTML5Audio() {
|
|
8288
8415
|
_classCallCheck$1(this, HTML5Audio);
|
|
8289
|
-
return
|
|
8416
|
+
return _callSuper$1(this, HTML5Audio, arguments);
|
|
8290
8417
|
}
|
|
8291
|
-
|
|
8418
|
+
_inherits$1(HTML5Audio, _HTML5Video);
|
|
8419
|
+
return _createClass$1(HTML5Audio, [{
|
|
8292
8420
|
key: "name",
|
|
8293
8421
|
get: function get() {
|
|
8294
8422
|
return 'html5_audio';
|
|
@@ -8297,7 +8425,7 @@
|
|
|
8297
8425
|
key: "supportedVersion",
|
|
8298
8426
|
get: function get() {
|
|
8299
8427
|
return {
|
|
8300
|
-
min: "0.
|
|
8428
|
+
min: "0.7.2"
|
|
8301
8429
|
};
|
|
8302
8430
|
}
|
|
8303
8431
|
}, {
|
|
@@ -8323,7 +8451,6 @@
|
|
|
8323
8451
|
return Playback.AOD;
|
|
8324
8452
|
}
|
|
8325
8453
|
}]);
|
|
8326
|
-
return HTML5Audio;
|
|
8327
8454
|
}(HTML5Video);
|
|
8328
8455
|
HTML5Audio.canPlay = function (resourceUrl, mimeType) {
|
|
8329
8456
|
var mimetypes = {
|
|
@@ -8334,20 +8461,17 @@
|
|
|
8334
8461
|
};
|
|
8335
8462
|
return HTML5Video._canPlay('audio', mimetypes, resourceUrl, mimeType);
|
|
8336
8463
|
};
|
|
8337
|
-
|
|
8338
8464
|
var css_248z$1$1 = "[data-html-img] {\n max-width: 100%;\n max-height: 100%; }\n";
|
|
8339
|
-
|
|
8340
8465
|
var HTMLImg = /*#__PURE__*/function (_Playback) {
|
|
8341
|
-
_inherits$1(HTMLImg, _Playback);
|
|
8342
|
-
var _super = _createSuper$1(HTMLImg);
|
|
8343
8466
|
function HTMLImg(params) {
|
|
8344
8467
|
var _this;
|
|
8345
8468
|
_classCallCheck$1(this, HTMLImg);
|
|
8346
|
-
_this =
|
|
8469
|
+
_this = _callSuper$1(this, HTMLImg, [params]);
|
|
8347
8470
|
_this.el.src = params.src;
|
|
8348
8471
|
return _this;
|
|
8349
8472
|
}
|
|
8350
|
-
|
|
8473
|
+
_inherits$1(HTMLImg, _Playback);
|
|
8474
|
+
return _createClass$1(HTMLImg, [{
|
|
8351
8475
|
key: "name",
|
|
8352
8476
|
get: function get() {
|
|
8353
8477
|
return 'html_img';
|
|
@@ -8356,7 +8480,7 @@
|
|
|
8356
8480
|
key: "supportedVersion",
|
|
8357
8481
|
get: function get() {
|
|
8358
8482
|
return {
|
|
8359
|
-
min: "0.
|
|
8483
|
+
min: "0.7.2"
|
|
8360
8484
|
};
|
|
8361
8485
|
}
|
|
8362
8486
|
}, {
|
|
@@ -8409,30 +8533,25 @@
|
|
|
8409
8533
|
}, this.name);
|
|
8410
8534
|
}
|
|
8411
8535
|
}]);
|
|
8412
|
-
return HTMLImg;
|
|
8413
8536
|
}(Playback);
|
|
8414
8537
|
HTMLImg.canPlay = function (resource) {
|
|
8415
8538
|
return /\.(png|jpg|jpeg|gif|bmp|tiff|pgm|pnm|webp)(|\?.*)$/i.test(resource);
|
|
8416
8539
|
};
|
|
8417
|
-
|
|
8418
8540
|
var noOpHTML = "<canvas data-no-op-canvas></canvas>\n<p data-no-op-msg><%=message%></p><p>\n</p>";
|
|
8419
|
-
|
|
8420
8541
|
var css_248z$8 = "[data-no-op] {\n position: absolute;\n height: 100%;\n width: 100%;\n text-align: center; }\n\n[data-no-op] p[data-no-op-msg] {\n position: absolute;\n text-align: center;\n font-size: 25px;\n left: 0;\n right: 0;\n color: white;\n padding: 10px;\n /* center vertically */\n top: 50%;\n transform: translateY(-50%);\n max-height: 100%;\n overflow: auto; }\n\n[data-no-op] canvas[data-no-op-canvas] {\n background-color: #777;\n height: 100%;\n width: 100%; }\n";
|
|
8421
|
-
|
|
8422
8542
|
var NoOp = /*#__PURE__*/function (_Playback) {
|
|
8423
|
-
_inherits$1(NoOp, _Playback);
|
|
8424
|
-
var _super = _createSuper$1(NoOp);
|
|
8425
8543
|
function NoOp() {
|
|
8426
8544
|
var _this;
|
|
8427
8545
|
_classCallCheck$1(this, NoOp);
|
|
8428
8546
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8429
8547
|
args[_key] = arguments[_key];
|
|
8430
8548
|
}
|
|
8431
|
-
_this =
|
|
8549
|
+
_this = _callSuper$1(this, NoOp, [].concat(args));
|
|
8432
8550
|
_this._noiseFrameNum = -1;
|
|
8433
8551
|
return _this;
|
|
8434
8552
|
}
|
|
8435
|
-
|
|
8553
|
+
_inherits$1(NoOp, _Playback);
|
|
8554
|
+
return _createClass$1(NoOp, [{
|
|
8436
8555
|
key: "name",
|
|
8437
8556
|
get: function get() {
|
|
8438
8557
|
return 'no_op';
|
|
@@ -8441,7 +8560,7 @@
|
|
|
8441
8560
|
key: "supportedVersion",
|
|
8442
8561
|
get: function get() {
|
|
8443
8562
|
return {
|
|
8444
|
-
min: "0.
|
|
8563
|
+
min: "0.7.2"
|
|
8445
8564
|
};
|
|
8446
8565
|
}
|
|
8447
8566
|
}, {
|
|
@@ -8487,9 +8606,7 @@
|
|
|
8487
8606
|
} catch (err) {
|
|
8488
8607
|
buffer32 = new Uint32Array(this.context.canvas.width * this.context.canvas.height * 4);
|
|
8489
8608
|
var data = idata.data;
|
|
8490
|
-
for (var i = 0; i < data.length; i++)
|
|
8491
|
-
buffer32[i] = data[i];
|
|
8492
|
-
}
|
|
8609
|
+
for (var i = 0; i < data.length; i++) buffer32[i] = data[i];
|
|
8493
8610
|
}
|
|
8494
8611
|
var len = buffer32.length,
|
|
8495
8612
|
m = Math.random() * 6 + 4;
|
|
@@ -8532,7 +8649,6 @@
|
|
|
8532
8649
|
this._loop();
|
|
8533
8650
|
}
|
|
8534
8651
|
}]);
|
|
8535
|
-
return NoOp;
|
|
8536
8652
|
}(Playback);
|
|
8537
8653
|
NoOp.canPlay = function (source) {
|
|
8538
8654
|
// eslint-disable-line no-unused-vars
|
|
@@ -8547,12 +8663,10 @@
|
|
|
8547
8663
|
* @module plugins
|
|
8548
8664
|
*/
|
|
8549
8665
|
var Strings = /*#__PURE__*/function (_CorePlugin) {
|
|
8550
|
-
_inherits$1(Strings, _CorePlugin);
|
|
8551
|
-
var _super = _createSuper$1(Strings);
|
|
8552
8666
|
function Strings(core) {
|
|
8553
8667
|
var _this;
|
|
8554
8668
|
_classCallCheck$1(this, Strings);
|
|
8555
|
-
_this =
|
|
8669
|
+
_this = _callSuper$1(this, Strings, [core]);
|
|
8556
8670
|
_this._initializeMessages();
|
|
8557
8671
|
return _this;
|
|
8558
8672
|
}
|
|
@@ -8562,7 +8676,8 @@
|
|
|
8562
8676
|
* @param {String} key the key to all messages
|
|
8563
8677
|
* @return {String} translated label
|
|
8564
8678
|
*/
|
|
8565
|
-
|
|
8679
|
+
_inherits$1(Strings, _CorePlugin);
|
|
8680
|
+
return _createClass$1(Strings, [{
|
|
8566
8681
|
key: "name",
|
|
8567
8682
|
get: function get() {
|
|
8568
8683
|
return 'strings';
|
|
@@ -8571,7 +8686,7 @@
|
|
|
8571
8686
|
key: "supportedVersion",
|
|
8572
8687
|
get: function get() {
|
|
8573
8688
|
return {
|
|
8574
|
-
min: "0.
|
|
8689
|
+
min: "0.7.2"
|
|
8575
8690
|
};
|
|
8576
8691
|
}
|
|
8577
8692
|
}, {
|
|
@@ -8611,7 +8726,7 @@
|
|
|
8611
8726
|
'live': 'ao vivo',
|
|
8612
8727
|
'back_to_live': 'voltar para o ao vivo',
|
|
8613
8728
|
'disabled': 'Desativado',
|
|
8614
|
-
'playback_not_supported': 'Seu navegador não
|
|
8729
|
+
'playback_not_supported': 'Seu navegador não suporta a reprodução deste video. Por favor, tente usar um navegador diferente.',
|
|
8615
8730
|
'default_error_title': 'Não foi possível reproduzir o vídeo.',
|
|
8616
8731
|
'default_error_message': 'Ocorreu um problema ao tentar carregar o vídeo.'
|
|
8617
8732
|
},
|
|
@@ -8682,7 +8797,7 @@
|
|
|
8682
8797
|
'default_error_message': '在尝试加载视频时出现了问题。'
|
|
8683
8798
|
}
|
|
8684
8799
|
};
|
|
8685
|
-
this._messages =
|
|
8800
|
+
this._messages = $.extend(true, defaultMessages, this.core.options.strings || {});
|
|
8686
8801
|
this._messages['de-DE'] = this._messages['de'];
|
|
8687
8802
|
this._messages['pt-BR'] = this._messages['pt'];
|
|
8688
8803
|
this._messages['en-US'] = this._messages['en'];
|
|
@@ -8696,17 +8811,14 @@
|
|
|
8696
8811
|
this._messages['zh-CN'] = this._messages['zh'];
|
|
8697
8812
|
}
|
|
8698
8813
|
}]);
|
|
8699
|
-
return Strings;
|
|
8700
8814
|
}(CorePlugin);
|
|
8701
|
-
|
|
8702
8815
|
var SourcesPlugin = /*#__PURE__*/function (_CorePlugin) {
|
|
8703
|
-
_inherits$1(SourcesPlugin, _CorePlugin);
|
|
8704
|
-
var _super = _createSuper$1(SourcesPlugin);
|
|
8705
8816
|
function SourcesPlugin() {
|
|
8706
8817
|
_classCallCheck$1(this, SourcesPlugin);
|
|
8707
|
-
return
|
|
8818
|
+
return _callSuper$1(this, SourcesPlugin, arguments);
|
|
8708
8819
|
}
|
|
8709
|
-
|
|
8820
|
+
_inherits$1(SourcesPlugin, _CorePlugin);
|
|
8821
|
+
return _createClass$1(SourcesPlugin, [{
|
|
8710
8822
|
key: "name",
|
|
8711
8823
|
get: function get() {
|
|
8712
8824
|
return 'sources';
|
|
@@ -8715,7 +8827,7 @@
|
|
|
8715
8827
|
key: "supportedVersion",
|
|
8716
8828
|
get: function get() {
|
|
8717
8829
|
return {
|
|
8718
|
-
min: "0.
|
|
8830
|
+
min: "0.7.2"
|
|
8719
8831
|
};
|
|
8720
8832
|
}
|
|
8721
8833
|
}, {
|
|
@@ -8734,11 +8846,13 @@
|
|
|
8734
8846
|
});
|
|
8735
8847
|
}
|
|
8736
8848
|
}]);
|
|
8737
|
-
return SourcesPlugin;
|
|
8738
8849
|
}(CorePlugin);
|
|
8739
8850
|
|
|
8740
8851
|
// Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
8741
|
-
|
|
8852
|
+
// Use of this source code is governed by a BSD-style
|
|
8853
|
+
// license that can be found in the LICENSE file.
|
|
8854
|
+
|
|
8855
|
+
var version$1 = "0.7.2";
|
|
8742
8856
|
|
|
8743
8857
|
// Built-in Plugins/Playbacks
|
|
8744
8858
|
|
|
@@ -8771,9 +8885,34 @@
|
|
|
8771
8885
|
Styler: Styler,
|
|
8772
8886
|
version: version$1,
|
|
8773
8887
|
template: tmpl,
|
|
8774
|
-
$:
|
|
8888
|
+
$: $
|
|
8775
8889
|
};
|
|
8776
8890
|
|
|
8891
|
+
function _callSuper(t, o, e) {
|
|
8892
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
8893
|
+
}
|
|
8894
|
+
function _isNativeReflectConstruct() {
|
|
8895
|
+
try {
|
|
8896
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
8897
|
+
} catch (t) {}
|
|
8898
|
+
return (_isNativeReflectConstruct = function () {
|
|
8899
|
+
return !!t;
|
|
8900
|
+
})();
|
|
8901
|
+
}
|
|
8902
|
+
function _toPrimitive(t, r) {
|
|
8903
|
+
if ("object" != typeof t || !t) return t;
|
|
8904
|
+
var e = t[Symbol.toPrimitive];
|
|
8905
|
+
if (void 0 !== e) {
|
|
8906
|
+
var i = e.call(t, r || "default");
|
|
8907
|
+
if ("object" != typeof i) return i;
|
|
8908
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8909
|
+
}
|
|
8910
|
+
return ("string" === r ? String : Number)(t);
|
|
8911
|
+
}
|
|
8912
|
+
function _toPropertyKey(t) {
|
|
8913
|
+
var i = _toPrimitive(t, "string");
|
|
8914
|
+
return "symbol" == typeof i ? i : i + "";
|
|
8915
|
+
}
|
|
8777
8916
|
function _classCallCheck(instance, Constructor) {
|
|
8778
8917
|
if (!(instance instanceof Constructor)) {
|
|
8779
8918
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -8825,17 +8964,6 @@
|
|
|
8825
8964
|
};
|
|
8826
8965
|
return _setPrototypeOf(o, p);
|
|
8827
8966
|
}
|
|
8828
|
-
function _isNativeReflectConstruct() {
|
|
8829
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
8830
|
-
if (Reflect.construct.sham) return false;
|
|
8831
|
-
if (typeof Proxy === "function") return true;
|
|
8832
|
-
try {
|
|
8833
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
8834
|
-
return true;
|
|
8835
|
-
} catch (e) {
|
|
8836
|
-
return false;
|
|
8837
|
-
}
|
|
8838
|
-
}
|
|
8839
8967
|
function _assertThisInitialized(self) {
|
|
8840
8968
|
if (self === void 0) {
|
|
8841
8969
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -8850,20 +8978,6 @@
|
|
|
8850
8978
|
}
|
|
8851
8979
|
return _assertThisInitialized(self);
|
|
8852
8980
|
}
|
|
8853
|
-
function _createSuper(Derived) {
|
|
8854
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
8855
|
-
return function _createSuperInternal() {
|
|
8856
|
-
var Super = _getPrototypeOf(Derived),
|
|
8857
|
-
result;
|
|
8858
|
-
if (hasNativeReflectConstruct) {
|
|
8859
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
8860
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
8861
|
-
} else {
|
|
8862
|
-
result = Super.apply(this, arguments);
|
|
8863
|
-
}
|
|
8864
|
-
return _possibleConstructorReturn(this, result);
|
|
8865
|
-
};
|
|
8866
|
-
}
|
|
8867
8981
|
function _superPropBase(object, property) {
|
|
8868
8982
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
8869
8983
|
object = _getPrototypeOf(object);
|
|
@@ -8887,29 +9001,13 @@
|
|
|
8887
9001
|
}
|
|
8888
9002
|
return _get.apply(this, arguments);
|
|
8889
9003
|
}
|
|
8890
|
-
function _toPrimitive(input, hint) {
|
|
8891
|
-
if (typeof input !== "object" || input === null) return input;
|
|
8892
|
-
var prim = input[Symbol.toPrimitive];
|
|
8893
|
-
if (prim !== undefined) {
|
|
8894
|
-
var res = prim.call(input, hint || "default");
|
|
8895
|
-
if (typeof res !== "object") return res;
|
|
8896
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8897
|
-
}
|
|
8898
|
-
return (hint === "string" ? String : Number)(input);
|
|
8899
|
-
}
|
|
8900
|
-
function _toPropertyKey(arg) {
|
|
8901
|
-
var key = _toPrimitive(arg, "string");
|
|
8902
|
-
return typeof key === "symbol" ? key : String(key);
|
|
8903
|
-
}
|
|
8904
|
-
|
|
8905
9004
|
var ClickToPausePlugin = /*#__PURE__*/function (_ContainerPlugin) {
|
|
8906
|
-
_inherits(ClickToPausePlugin, _ContainerPlugin);
|
|
8907
|
-
var _super = _createSuper(ClickToPausePlugin);
|
|
8908
9005
|
function ClickToPausePlugin(container) {
|
|
8909
9006
|
_classCallCheck(this, ClickToPausePlugin);
|
|
8910
|
-
return
|
|
9007
|
+
return _callSuper(this, ClickToPausePlugin, [container]);
|
|
8911
9008
|
}
|
|
8912
|
-
|
|
9009
|
+
_inherits(ClickToPausePlugin, _ContainerPlugin);
|
|
9010
|
+
return _createClass(ClickToPausePlugin, [{
|
|
8913
9011
|
key: "name",
|
|
8914
9012
|
get: function get() {
|
|
8915
9013
|
return 'click_to_pause';
|
|
@@ -8918,7 +9016,7 @@
|
|
|
8918
9016
|
key: "supportedVersion",
|
|
8919
9017
|
get: function get() {
|
|
8920
9018
|
return {
|
|
8921
|
-
min: "0.
|
|
9019
|
+
min: "0.7.2"
|
|
8922
9020
|
};
|
|
8923
9021
|
}
|
|
8924
9022
|
}, {
|
|
@@ -8950,22 +9048,15 @@
|
|
|
8950
9048
|
this.pointerEnabled = pointerEnabled;
|
|
8951
9049
|
}
|
|
8952
9050
|
}]);
|
|
8953
|
-
return ClickToPausePlugin;
|
|
8954
9051
|
}(ContainerPlugin);
|
|
8955
|
-
|
|
8956
9052
|
var ccIcon = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 49 41.8\" style=\"enable-background:new 0 0 49 41.8;\" xml:space=\"preserve\">\n<path d=\"M47.1,0H3.2C1.6,0,0,1.2,0,2.8v31.5C0,35.9,1.6,37,3.2,37h11.9l3.2,1.9l4.7,2.7c0.9,0.5,2-0.1,2-1.1V37h22.1\n\tc1.6,0,1.9-1.1,1.9-2.7V2.8C49,1.2,48.7,0,47.1,0z M7.2,18.6c0-4.8,3.5-9.3,9.9-9.3c4.8,0,7.1,2.7,7.1,2.7l-2.5,4\n\tc0,0-1.7-1.7-4.2-1.7c-2.8,0-4.3,2.1-4.3,4.3c0,2.1,1.5,4.4,4.5,4.4c2.5,0,4.9-2.1,4.9-2.1l2.2,4.2c0,0-2.7,2.9-7.6,2.9\n\tC10.8,27.9,7.2,23.5,7.2,18.6z M36.9,27.9c-6.4,0-9.9-4.4-9.9-9.3c0-4.8,3.5-9.3,9.9-9.3C41.7,9.3,44,12,44,12l-2.5,4\n\tc0,0-1.7-1.7-4.2-1.7c-2.8,0-4.3,2.1-4.3,4.3c0,2.1,1.5,4.4,4.5,4.4c2.5,0,4.9-2.1,4.9-2.1l2.2,4.2C44.5,25,41.9,27.9,36.9,27.9z\"/>\n</svg>";
|
|
8957
|
-
|
|
8958
9053
|
var ccHTML = "<button type=\"button\" class=\"cc-button media-control-button media-control-icon\" data-cc-button aria-label=\"<%= ariaLabel %>\"></button>\n<ul>\n <% if (title) { %>\n <li data-title><%= title %></li>\n <% }; %>\n <li><a href=\"#\" data-cc-select=\"-1\"><%= disabledLabel %></a></li>\n <% for (var i = 0; i < tracks.length; i++) { %>\n <li><a href=\"#\" data-cc-select=\"<%= tracks[i].id %>\"><%= tracks[i].label %></a></li>\n <% }; %>\n</ul>\n";
|
|
8959
|
-
|
|
8960
9054
|
var css_248z$7 = ".cc-controls[data-cc-controls] {\n float: right;\n position: relative;\n display: none; }\n .cc-controls[data-cc-controls].available {\n display: block; }\n .cc-controls[data-cc-controls] .cc-button {\n padding: 6px !important; }\n .cc-controls[data-cc-controls] .cc-button.enabled {\n display: block;\n opacity: 1.0; }\n .cc-controls[data-cc-controls] .cc-button.enabled:hover {\n opacity: 1.0;\n text-shadow: none; }\n .cc-controls[data-cc-controls] > ul {\n list-style-type: none;\n position: absolute;\n bottom: 25px;\n border: 1px solid black;\n display: none;\n background-color: #e6e6e6; }\n .cc-controls[data-cc-controls] li {\n font-size: 10px; }\n .cc-controls[data-cc-controls] li[data-title] {\n background-color: #c3c2c2;\n padding: 5px; }\n .cc-controls[data-cc-controls] li a {\n color: #444;\n padding: 2px 10px;\n display: block;\n text-decoration: none; }\n .cc-controls[data-cc-controls] li a:hover {\n background-color: #555;\n color: white; }\n .cc-controls[data-cc-controls] li a:hover a {\n color: white;\n text-decoration: none; }\n .cc-controls[data-cc-controls] li.current a {\n color: #f00; }\n";
|
|
8961
|
-
|
|
8962
9055
|
var ClosedCaptions$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
8963
|
-
_inherits(ClosedCaptions, _UICorePlugin);
|
|
8964
|
-
var _super = _createSuper(ClosedCaptions);
|
|
8965
9056
|
function ClosedCaptions(core) {
|
|
8966
9057
|
var _this;
|
|
8967
9058
|
_classCallCheck(this, ClosedCaptions);
|
|
8968
|
-
_this =
|
|
9059
|
+
_this = _callSuper(this, ClosedCaptions, [core]);
|
|
8969
9060
|
var config = core.options.closedCaptionsConfig;
|
|
8970
9061
|
_this._title = config && config.title ? config.title : null;
|
|
8971
9062
|
_this._ariaLabel = config && config.ariaLabel ? config.ariaLabel : 'cc-button';
|
|
@@ -8974,7 +9065,8 @@
|
|
|
8974
9065
|
};
|
|
8975
9066
|
return _this;
|
|
8976
9067
|
}
|
|
8977
|
-
|
|
9068
|
+
_inherits(ClosedCaptions, _UICorePlugin);
|
|
9069
|
+
return _createClass(ClosedCaptions, [{
|
|
8978
9070
|
key: "name",
|
|
8979
9071
|
get: function get() {
|
|
8980
9072
|
return 'closed_captions';
|
|
@@ -8983,7 +9075,7 @@
|
|
|
8983
9075
|
key: "supportedVersion",
|
|
8984
9076
|
get: function get() {
|
|
8985
9077
|
return {
|
|
8986
|
-
min: "0.
|
|
9078
|
+
min: "0.7.2"
|
|
8987
9079
|
};
|
|
8988
9080
|
}
|
|
8989
9081
|
}, {
|
|
@@ -9116,24 +9208,19 @@
|
|
|
9116
9208
|
return this;
|
|
9117
9209
|
}
|
|
9118
9210
|
}]);
|
|
9119
|
-
return ClosedCaptions;
|
|
9120
9211
|
}(UICorePlugin);
|
|
9121
|
-
|
|
9122
9212
|
var dvrHTML = "<div class=\"live-info\"><%= live %></div>\n<button type=\"button\" class=\"live-button\" aria-label=\"<%= backToLive %>\"><%= backToLive %></button>\n";
|
|
9123
|
-
|
|
9124
9213
|
var css_248z$6 = ".dvr-controls[data-dvr-controls] {\n display: inline-block;\n float: left;\n color: #fff;\n line-height: 32px;\n font-size: 10px;\n font-weight: bold;\n margin-left: 6px; }\n .dvr-controls[data-dvr-controls] .live-info {\n cursor: default;\n font-family: \"Roboto\", \"Open Sans\", Arial, sans-serif;\n text-transform: uppercase; }\n .dvr-controls[data-dvr-controls] .live-info:before {\n content: \"\";\n display: inline-block;\n position: relative;\n width: 7px;\n height: 7px;\n border-radius: 3.5px;\n margin-right: 3.5px;\n background-color: #ff0101; }\n .dvr-controls[data-dvr-controls] .live-info.disabled {\n opacity: 0.3; }\n .dvr-controls[data-dvr-controls] .live-info.disabled:before {\n background-color: #fff; }\n .dvr-controls[data-dvr-controls] .live-button {\n cursor: pointer;\n outline: none;\n display: none;\n border: 0;\n color: #fff;\n background-color: transparent;\n height: 32px;\n padding: 0;\n opacity: 0.7;\n font-family: \"Roboto\", \"Open Sans\", Arial, sans-serif;\n text-transform: uppercase;\n transition: all 0.1s ease; }\n .dvr-controls[data-dvr-controls] .live-button:before {\n content: \"\";\n display: inline-block;\n position: relative;\n width: 7px;\n height: 7px;\n border-radius: 3.5px;\n margin-right: 3.5px;\n background-color: #fff; }\n .dvr-controls[data-dvr-controls] .live-button:hover {\n opacity: 1;\n text-shadow: rgba(255, 255, 255, 0.75) 0 0 5px; }\n\n.dvr .dvr-controls[data-dvr-controls] .live-info {\n display: none; }\n\n.dvr .dvr-controls[data-dvr-controls] .live-button {\n display: block; }\n\n.dvr.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar] {\n background-color: #005aff; }\n\n.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar] {\n background-color: #ff0101; }\n";
|
|
9125
|
-
|
|
9126
9214
|
var DVRControls$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
9127
|
-
_inherits(DVRControls, _UICorePlugin);
|
|
9128
|
-
var _super = _createSuper(DVRControls);
|
|
9129
9215
|
function DVRControls(core) {
|
|
9130
9216
|
var _this;
|
|
9131
9217
|
_classCallCheck(this, DVRControls);
|
|
9132
|
-
_this =
|
|
9218
|
+
_this = _callSuper(this, DVRControls, [core]);
|
|
9133
9219
|
_this.settingsUpdate();
|
|
9134
9220
|
return _this;
|
|
9135
9221
|
}
|
|
9136
|
-
|
|
9222
|
+
_inherits(DVRControls, _UICorePlugin);
|
|
9223
|
+
return _createClass(DVRControls, [{
|
|
9137
9224
|
key: "template",
|
|
9138
9225
|
get: function get() {
|
|
9139
9226
|
return tmpl(dvrHTML);
|
|
@@ -9147,7 +9234,7 @@
|
|
|
9147
9234
|
key: "supportedVersion",
|
|
9148
9235
|
get: function get() {
|
|
9149
9236
|
return {
|
|
9150
|
-
min: "0.
|
|
9237
|
+
min: "0.7.2"
|
|
9151
9238
|
};
|
|
9152
9239
|
}
|
|
9153
9240
|
}, {
|
|
@@ -9258,17 +9345,14 @@
|
|
|
9258
9345
|
return this;
|
|
9259
9346
|
}
|
|
9260
9347
|
}]);
|
|
9261
|
-
return DVRControls;
|
|
9262
9348
|
}(UICorePlugin);
|
|
9263
|
-
|
|
9264
9349
|
var EndVideo$1 = /*#__PURE__*/function (_CorePlugin) {
|
|
9265
|
-
_inherits(EndVideo, _CorePlugin);
|
|
9266
|
-
var _super = _createSuper(EndVideo);
|
|
9267
9350
|
function EndVideo() {
|
|
9268
9351
|
_classCallCheck(this, EndVideo);
|
|
9269
|
-
return
|
|
9352
|
+
return _callSuper(this, EndVideo, arguments);
|
|
9270
9353
|
}
|
|
9271
|
-
|
|
9354
|
+
_inherits(EndVideo, _CorePlugin);
|
|
9355
|
+
return _createClass(EndVideo, [{
|
|
9272
9356
|
key: "name",
|
|
9273
9357
|
get: function get() {
|
|
9274
9358
|
return 'end_video';
|
|
@@ -9277,7 +9361,7 @@
|
|
|
9277
9361
|
key: "supportedVersion",
|
|
9278
9362
|
get: function get() {
|
|
9279
9363
|
return {
|
|
9280
|
-
min: "0.
|
|
9364
|
+
min: "0.7.2"
|
|
9281
9365
|
};
|
|
9282
9366
|
}
|
|
9283
9367
|
}, {
|
|
@@ -9303,26 +9387,20 @@
|
|
|
9303
9387
|
if (exitOnEnd && this.core.isFullscreen()) this.core.toggleFullscreen();
|
|
9304
9388
|
}
|
|
9305
9389
|
}]);
|
|
9306
|
-
return EndVideo;
|
|
9307
9390
|
}(CorePlugin);
|
|
9308
|
-
|
|
9309
9391
|
var reloadIcon = "<svg fill=\"#FFFFFF\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"/>\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\n</svg>";
|
|
9310
|
-
|
|
9311
9392
|
var templateHtml = "<div class=\"player-error-screen__content\" data-error-screen>\n <% if (icon) { %>\n <div class=\"player-error-screen__icon\" data-error-screen><%= icon %></div>\n <% } %>\n <div class=\"player-error-screen__title\" data-error-screen><%= title %></div>\n <div class=\"player-error-screen__message\" data-error-screen><%= message %></div>\n <div class=\"player-error-screen__code\" data-error-screen>Error code: <%= code %></div>\n <div class=\"player-error-screen__reload\" data-error-screen><%= reloadIcon %></div>\n</div>\n";
|
|
9312
|
-
|
|
9313
9393
|
var css_248z$5 = "[data-player] .player-error-screen {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: #CCCACA;\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.7);\n z-index: 2000;\n display: flex;\n flex-direction: column;\n justify-content: center; }\n [data-player] .player-error-screen__content[data-error-screen] {\n font-size: 14px;\n color: #CCCACA;\n margin-top: 45px; }\n [data-player] .player-error-screen__title[data-error-screen] {\n font-weight: bold;\n line-height: 30px;\n font-size: 18px; }\n [data-player] .player-error-screen__message[data-error-screen] {\n width: 90%;\n margin: 0 auto; }\n [data-player] .player-error-screen__code[data-error-screen] {\n font-size: 13px;\n margin-top: 15px; }\n [data-player] .player-error-screen__reload {\n cursor: pointer;\n width: 30px;\n margin: 15px auto 0 !important; }\n";
|
|
9314
|
-
|
|
9315
9394
|
var ErrorScreen$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
9316
|
-
_inherits(ErrorScreen, _UICorePlugin);
|
|
9317
|
-
var _super = _createSuper(ErrorScreen);
|
|
9318
9395
|
function ErrorScreen(core) {
|
|
9319
9396
|
var _this;
|
|
9320
9397
|
_classCallCheck(this, ErrorScreen);
|
|
9321
|
-
_this =
|
|
9398
|
+
_this = _callSuper(this, ErrorScreen, [core]);
|
|
9322
9399
|
if (_this.options.disableErrorScreen) return _possibleConstructorReturn(_this, _this.disable());
|
|
9323
9400
|
return _this;
|
|
9324
9401
|
}
|
|
9325
|
-
|
|
9402
|
+
_inherits(ErrorScreen, _UICorePlugin);
|
|
9403
|
+
return _createClass(ErrorScreen, [{
|
|
9326
9404
|
key: "name",
|
|
9327
9405
|
get: function get() {
|
|
9328
9406
|
return 'error_screen';
|
|
@@ -9331,7 +9409,7 @@
|
|
|
9331
9409
|
key: "supportedVersion",
|
|
9332
9410
|
get: function get() {
|
|
9333
9411
|
return {
|
|
9334
|
-
min: "0.
|
|
9412
|
+
min: "0.7.2"
|
|
9335
9413
|
};
|
|
9336
9414
|
}
|
|
9337
9415
|
}, {
|
|
@@ -9428,26 +9506,21 @@
|
|
|
9428
9506
|
return this;
|
|
9429
9507
|
}
|
|
9430
9508
|
}]);
|
|
9431
|
-
return ErrorScreen;
|
|
9432
9509
|
}(UICorePlugin);
|
|
9433
|
-
|
|
9434
9510
|
var playIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill=\"#010101\" d=\"M1.425.35L14.575 8l-13.15 7.65V.35z\"/>\n</svg>";
|
|
9435
|
-
|
|
9436
9511
|
var pauseIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#010101\" d=\"M1.712 14.76H6.43V1.24H1.71v13.52zm7.86-13.52v13.52h4.716V1.24H9.573z\"/>\n</svg>";
|
|
9437
|
-
|
|
9438
|
-
var oldIcon = zepto('link[rel="shortcut icon"]');
|
|
9512
|
+
var oldIcon = $('link[rel="shortcut icon"]');
|
|
9439
9513
|
var Favicon$1 = /*#__PURE__*/function (_CorePlugin) {
|
|
9440
|
-
_inherits(Favicon, _CorePlugin);
|
|
9441
|
-
var _super = _createSuper(Favicon);
|
|
9442
9514
|
function Favicon(core) {
|
|
9443
9515
|
var _this;
|
|
9444
9516
|
_classCallCheck(this, Favicon);
|
|
9445
|
-
_this =
|
|
9517
|
+
_this = _callSuper(this, Favicon, [core]);
|
|
9446
9518
|
_this._container = null;
|
|
9447
9519
|
_this.configure();
|
|
9448
9520
|
return _this;
|
|
9449
9521
|
}
|
|
9450
|
-
|
|
9522
|
+
_inherits(Favicon, _CorePlugin);
|
|
9523
|
+
return _createClass(Favicon, [{
|
|
9451
9524
|
key: "name",
|
|
9452
9525
|
get: function get() {
|
|
9453
9526
|
return 'favicon';
|
|
@@ -9456,7 +9529,7 @@
|
|
|
9456
9529
|
key: "supportedVersion",
|
|
9457
9530
|
get: function get() {
|
|
9458
9531
|
return {
|
|
9459
|
-
min: "0.
|
|
9532
|
+
min: "0.7.2"
|
|
9460
9533
|
};
|
|
9461
9534
|
}
|
|
9462
9535
|
}, {
|
|
@@ -9511,15 +9584,15 @@
|
|
|
9511
9584
|
}, {
|
|
9512
9585
|
key: "createIcon",
|
|
9513
9586
|
value: function createIcon(svg) {
|
|
9514
|
-
var canvas =
|
|
9587
|
+
var canvas = $('<canvas/>');
|
|
9515
9588
|
canvas[0].width = 16;
|
|
9516
9589
|
canvas[0].height = 16;
|
|
9517
9590
|
var ctx = canvas[0].getContext('2d');
|
|
9518
9591
|
ctx.fillStyle = '#000';
|
|
9519
|
-
var d =
|
|
9592
|
+
var d = $(svg).find('path').attr('d');
|
|
9520
9593
|
var path = new Path2D(d);
|
|
9521
9594
|
ctx.fill(path);
|
|
9522
|
-
var icon =
|
|
9595
|
+
var icon = $('<link rel="shortcut icon" type="image/png"/>');
|
|
9523
9596
|
icon.attr('href', canvas[0].toDataURL('image/png'));
|
|
9524
9597
|
return icon;
|
|
9525
9598
|
}
|
|
@@ -9538,28 +9611,24 @@
|
|
|
9538
9611
|
}, {
|
|
9539
9612
|
key: "resetIcon",
|
|
9540
9613
|
value: function resetIcon() {
|
|
9541
|
-
|
|
9542
|
-
|
|
9614
|
+
$('link[rel="shortcut icon"]').remove();
|
|
9615
|
+
$('head').append(this.oldIcon);
|
|
9543
9616
|
}
|
|
9544
9617
|
}, {
|
|
9545
9618
|
key: "changeIcon",
|
|
9546
9619
|
value: function changeIcon(icon) {
|
|
9547
9620
|
if (icon) {
|
|
9548
|
-
|
|
9549
|
-
|
|
9621
|
+
$('link[rel="shortcut icon"]').remove();
|
|
9622
|
+
$('head').append(icon);
|
|
9550
9623
|
}
|
|
9551
9624
|
}
|
|
9552
9625
|
}]);
|
|
9553
|
-
return Favicon;
|
|
9554
9626
|
}(CorePlugin);
|
|
9555
|
-
|
|
9556
9627
|
var GoogleAnalytics$1 = /*#__PURE__*/function (_ContainerPlugin) {
|
|
9557
|
-
_inherits(GoogleAnalytics, _ContainerPlugin);
|
|
9558
|
-
var _super = _createSuper(GoogleAnalytics);
|
|
9559
9628
|
function GoogleAnalytics(container) {
|
|
9560
9629
|
var _this;
|
|
9561
9630
|
_classCallCheck(this, GoogleAnalytics);
|
|
9562
|
-
_this =
|
|
9631
|
+
_this = _callSuper(this, GoogleAnalytics, [container]);
|
|
9563
9632
|
if (_this.container.options.gaAccount) {
|
|
9564
9633
|
_this.account = _this.container.options.gaAccount;
|
|
9565
9634
|
_this.trackerName = _this.container.options.gaTrackerName ? _this.container.options.gaTrackerName + '.' : 'Clappr.';
|
|
@@ -9569,7 +9638,8 @@
|
|
|
9569
9638
|
}
|
|
9570
9639
|
return _this;
|
|
9571
9640
|
}
|
|
9572
|
-
|
|
9641
|
+
_inherits(GoogleAnalytics, _ContainerPlugin);
|
|
9642
|
+
return _createClass(GoogleAnalytics, [{
|
|
9573
9643
|
key: "name",
|
|
9574
9644
|
get: function get() {
|
|
9575
9645
|
return 'google_analytics';
|
|
@@ -9578,7 +9648,7 @@
|
|
|
9578
9648
|
key: "supportedVersion",
|
|
9579
9649
|
get: function get() {
|
|
9580
9650
|
return {
|
|
9581
|
-
min: "0.
|
|
9651
|
+
min: "0.7.2"
|
|
9582
9652
|
};
|
|
9583
9653
|
}
|
|
9584
9654
|
}, {
|
|
@@ -9707,7 +9777,6 @@
|
|
|
9707
9777
|
_gaq.push(res);
|
|
9708
9778
|
}
|
|
9709
9779
|
}]);
|
|
9710
|
-
return GoogleAnalytics;
|
|
9711
9780
|
}(ContainerPlugin);
|
|
9712
9781
|
|
|
9713
9782
|
/* eslint-disable */
|
|
@@ -10008,39 +10077,27 @@
|
|
|
10008
10077
|
}
|
|
10009
10078
|
return result.join(' ');
|
|
10010
10079
|
};
|
|
10011
|
-
|
|
10012
10080
|
var index = {
|
|
10013
10081
|
Kibo: Kibo
|
|
10014
10082
|
};
|
|
10015
|
-
|
|
10016
10083
|
var css_248z$4 = ".media-control-notransition {\n transition: none !important; }\n\n.media-control[data-media-control] {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 9999;\n pointer-events: none; }\n .media-control[data-media-control].dragging {\n pointer-events: auto;\n cursor: grabbing !important;\n cursor: url(\"closed-hand.cur\"), move; }\n .media-control[data-media-control].dragging * {\n cursor: grabbing !important;\n cursor: url(\"closed-hand.cur\"), move; }\n .media-control[data-media-control] .media-control-background[data-background] {\n position: absolute;\n height: 40%;\n width: 100%;\n bottom: 0;\n background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));\n will-change: transform, opacity;\n transition: opacity 0.6s ease-out; }\n .media-control[data-media-control] .media-control-icon {\n line-height: 0;\n letter-spacing: 0;\n speak: none;\n color: #fff;\n opacity: 0.5;\n vertical-align: middle;\n text-align: left;\n transition: all 0.1s ease; }\n .media-control[data-media-control] .media-control-icon:hover {\n color: white;\n opacity: 0.75;\n text-shadow: rgba(255, 255, 255, 0.8) 0 0 5px; }\n .media-control[data-media-control].media-control-hide .media-control-background[data-background] {\n opacity: 0; }\n .media-control[data-media-control].media-control-hide .media-control-layer[data-controls] {\n transform: translateY(50px); }\n .media-control[data-media-control].media-control-hide .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] {\n opacity: 0; }\n .media-control[data-media-control] .media-control-layer[data-controls] {\n position: absolute;\n transform: translateY(-7px);\n bottom: 0;\n width: 100%;\n height: 32px;\n font-size: 0;\n vertical-align: middle;\n pointer-events: auto;\n transition: bottom 0.4s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-left-panel[data-media-control] {\n position: absolute;\n top: 0;\n left: 4px;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-center-panel[data-media-control] {\n height: 100%;\n text-align: center;\n line-height: 32px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-right-panel[data-media-control] {\n position: absolute;\n top: 0;\n right: 4px;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button {\n background-color: transparent;\n border: 0;\n margin: 0 6px;\n padding: 0;\n cursor: pointer;\n display: inline-block;\n width: 32px;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button svg {\n width: 100%;\n height: 22px; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button svg path {\n fill: white; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button:focus {\n outline: none; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play] {\n float: left;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause] {\n float: left;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop] {\n float: left;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen] {\n float: right;\n background-color: transparent;\n border: 0;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator] {\n background-color: transparent;\n border: 0;\n cursor: default;\n display: none;\n float: right;\n height: 100%; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled {\n display: block;\n opacity: 1.0; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled:hover {\n opacity: 1.0;\n text-shadow: none; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause] {\n float: left; }\n .media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop] {\n float: left; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position], .media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration] {\n display: inline-block;\n font-size: 10px;\n color: white;\n cursor: default;\n line-height: 32px;\n position: relative; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position] {\n margin: 0 6px 0 7px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration] {\n color: rgba(255, 255, 255, 0.5);\n margin-right: 6px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]:before {\n content: \"|\";\n margin-right: 7px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] {\n position: absolute;\n top: -20px;\n left: 0;\n display: inline-block;\n vertical-align: middle;\n width: 100%;\n height: 25px;\n cursor: pointer; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] {\n width: 100%;\n height: 1px;\n position: relative;\n top: 12px;\n background-color: #666666; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-1[data-seekbar] {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 100%;\n background-color: #c2c2c2;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar] {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 100%;\n background-color: #005aff;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-hover[data-seekbar] {\n opacity: 0;\n position: absolute;\n top: -3px;\n width: 5px;\n height: 7px;\n background-color: rgba(255, 255, 255, 0.5);\n transition: opacity 0.1s ease; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]:hover .bar-background[data-seekbar] .bar-hover[data-seekbar] {\n opacity: 1; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled {\n cursor: default; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled:hover .bar-background[data-seekbar] .bar-hover[data-seekbar] {\n opacity: 0; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] {\n position: absolute;\n transform: translateX(-50%);\n top: 2px;\n left: 0;\n width: 20px;\n height: 20px;\n opacity: 1;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] .bar-scrubber-icon[data-seekbar] {\n position: absolute;\n left: 6px;\n top: 6px;\n width: 8px;\n height: 8px;\n border-radius: 10px;\n box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);\n background-color: white; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] {\n float: right;\n display: inline-block;\n height: 32px;\n cursor: pointer;\n margin: 0 6px;\n box-sizing: border-box; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] {\n float: left;\n bottom: 0; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume] {\n background-color: transparent;\n border: 0;\n box-sizing: content-box;\n width: 32px;\n height: 32px;\n opacity: 0.5; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:hover {\n opacity: 0.75; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume] svg {\n height: 24px;\n position: relative;\n top: 3px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume] svg path {\n fill: white; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted svg {\n margin-left: 2px; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] {\n float: left;\n position: relative;\n overflow: hidden;\n top: 6px;\n width: 42px;\n height: 18px;\n padding: 3px 0;\n transition: width .2s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-background[data-volume] {\n height: 1px;\n position: relative;\n top: 7px;\n margin: 0 3px;\n background-color: #666666; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-background[data-volume] .bar-fill-1[data-volume] {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 100%;\n background-color: #c2c2c2;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-background[data-volume] .bar-fill-2[data-volume] {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 100%;\n background-color: #005aff;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-background[data-volume] .bar-hover[data-volume] {\n opacity: 0;\n position: absolute;\n top: -3px;\n width: 5px;\n height: 7px;\n background-color: rgba(255, 255, 255, 0.5);\n transition: opacity 0.1s ease; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-scrubber[data-volume] {\n position: absolute;\n transform: translateX(-50%);\n top: 0px;\n left: 0;\n width: 20px;\n height: 20px;\n opacity: 1;\n transition: all 0.1s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .bar-scrubber[data-volume] .bar-scrubber-icon[data-volume] {\n position: absolute;\n left: 6px;\n top: 6px;\n width: 8px;\n height: 8px;\n border-radius: 10px;\n box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);\n background-color: white; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume] {\n float: left;\n width: 4px;\n padding-left: 2px;\n height: 12px;\n opacity: 0.5;\n box-shadow: inset 2px 0 0 white;\n transition: transform .2s ease-out; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume].fill {\n box-shadow: inset 2px 0 0 #fff;\n opacity: 1; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:nth-of-type(1) {\n padding-left: 0; }\n .media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:hover {\n transform: scaleY(1.5); }\n .media-control[data-media-control].w320 .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume].volume-bar-hide {\n width: 0;\n height: 12px;\n top: 9px;\n padding: 0; }\n";
|
|
10017
|
-
|
|
10018
10084
|
var mediaControlHTML = "<div class=\"media-control-background\" data-background></div>\n<div class=\"media-control-layer\" data-controls>\n <% var renderBar = function(name) { %>\n <div class=\"bar-container\" data-<%= name %>>\n <div class=\"bar-background\" data-<%= name %>>\n <div class=\"bar-fill-1\" data-<%= name %>></div>\n <div class=\"bar-fill-2\" data-<%= name %>></div>\n <div class=\"bar-hover\" data-<%= name %>></div>\n </div>\n <div class=\"bar-scrubber\" data-<%= name %>>\n <div class=\"bar-scrubber-icon\" data-<%= name %>></div>\n </div>\n </div>\n <% }; %>\n <% var renderSegmentedBar = function(name, segments) {\n segments = segments || 10; %>\n <div class=\"bar-container\" data-<%= name %>>\n <% for (var i = 0; i < segments; i++) { %>\n <div class=\"segmented-bar-element\" data-<%= name %>></div>\n <% } %>\n </div>\n <% }; %>\n <% var renderDrawer = function(name, renderContent) { %>\n <div class=\"drawer-container\" data-<%= name %>>\n <div class=\"drawer-icon-container\" data-<%= name %>>\n <div class=\"drawer-icon media-control-icon\" data-<%= name %>></div>\n <span class=\"drawer-text\" data-<%= name %>></span>\n </div>\n <% renderContent(name); %>\n </div>\n <% }; %>\n <% var renderIndicator = function(name) { %>\n <div class=\"media-control-indicator\" data-<%= name %>></div>\n <% }; %>\n <% var renderButton = function(name) { %>\n <button type=\"button\" class=\"media-control-button media-control-icon\" data-<%= name %> aria-label=\"<%= name %>\"></button>\n <% }; %>\n <% var templates = {\n bar: renderBar,\n segmentedBar: renderSegmentedBar,\n };\n var render = function(settingsList) {\n settingsList.forEach(function(setting) {\n if(setting === \"seekbar\") {\n renderBar(setting);\n } else if (setting === \"volume\") {\n renderDrawer(setting, settings.volumeBarTemplate ? templates[settings.volumeBarTemplate] : function(name) { return renderSegmentedBar(name); });\n } else if (setting === \"duration\" || setting === \"position\") {\n renderIndicator(setting);\n } else {\n renderButton(setting);\n }\n });\n }; %>\n <% if (settings.default && settings.default.length) { %>\n <div class=\"media-control-center-panel\" data-media-control>\n <% render(settings.default); %>\n </div>\n <% } %>\n <% if (settings.left && settings.left.length) { %>\n <div class=\"media-control-left-panel\" data-media-control>\n <% render(settings.left); %>\n </div>\n <% } %>\n <% if (settings.right && settings.right.length) { %>\n <div class=\"media-control-right-panel\" data-media-control>\n <% render(settings.right); %>\n </div>\n <% } %>\n</div>\n";
|
|
10019
|
-
|
|
10020
10085
|
var stopIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#010101\" d=\"M1.712 1.24h12.6v13.52h-12.6z\"/>\n</svg>";
|
|
10021
|
-
|
|
10022
10086
|
var volumeIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#010101\" d=\"M11.5 11h-.002v1.502L7.798 10H4.5V6h3.297l3.7-2.502V4.5h.003V11zM11 4.49L7.953 6.5H5v3h2.953L11 11.51V4.49z\"/>\n</svg>";
|
|
10023
|
-
|
|
10024
10087
|
var volumeMuteIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#010101\" d=\"M9.75 11.51L6.7 9.5H3.75v-3H6.7L9.75 4.49v.664l.497.498V3.498L6.547 6H3.248v4h3.296l3.7 2.502v-2.154l-.497.5v.662zm3-5.165L12.404 6l-1.655 1.653L9.093 6l-.346.345L10.402 8 8.747 9.654l.346.347 1.655-1.653L12.403 10l.348-.346L11.097 8l1.655-1.655z\"/>\n</svg>";
|
|
10025
|
-
|
|
10026
10088
|
var fullscreenIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill=\"#010101\" d=\"M7.156 8L4 11.156V8.5H3V13h4.5v-1H4.844L8 8.844 7.156 8zM8.5 3v1h2.657L8 7.157 8.846 8 12 4.844V7.5h1V3H8.5z\"/>\n</svg>";
|
|
10027
|
-
|
|
10028
10089
|
var exitFullscreenIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill=\"#010101\" d=\"M13.5 3.344l-.844-.844L9.5 5.656V3h-1v4.5H13v-1h-2.656L13.5 3.344zM3 9.5h2.656L2.5 12.656l.844.844L6.5 10.344V13h1V8.5H3v1z\"/>\n</svg>";
|
|
10029
|
-
|
|
10030
10090
|
var hdIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">\n <path fill=\"#010101\" d=\"M5.375 7.062H2.637V4.26H.502v7.488h2.135V8.9h2.738v2.848h2.133V4.26H5.375v2.802zm5.97-2.81h-2.84v7.496h2.798c2.65 0 4.195-1.607 4.195-3.77v-.022c0-2.162-1.523-3.704-4.154-3.704zm2.06 3.758c0 1.21-.81 1.896-2.03 1.896h-.83V6.093h.83c1.22 0 2.03.696 2.03 1.896v.02z\"/>\n</svg>";
|
|
10031
|
-
|
|
10032
10091
|
var Config = Utils.Config,
|
|
10033
10092
|
Fullscreen = Utils.Fullscreen,
|
|
10034
10093
|
formatTime$1 = Utils.formatTime,
|
|
10035
10094
|
extend = Utils.extend,
|
|
10036
10095
|
removeArrayItem = Utils.removeArrayItem;
|
|
10037
10096
|
var MediaControl$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
10038
|
-
_inherits(MediaControl, _UICorePlugin);
|
|
10039
|
-
var _super = _createSuper(MediaControl);
|
|
10040
10097
|
function MediaControl(core) {
|
|
10041
10098
|
var _this;
|
|
10042
10099
|
_classCallCheck(this, MediaControl);
|
|
10043
|
-
_this =
|
|
10100
|
+
_this = _callSuper(this, MediaControl, [core]);
|
|
10044
10101
|
_this.persistConfig = _this.options.persistConfig;
|
|
10045
10102
|
_this.currentPositionValue = null;
|
|
10046
10103
|
_this.currentDurationValue = null;
|
|
@@ -10055,7 +10112,7 @@
|
|
|
10055
10112
|
_this.kibo = new Kibo(_this.options.focusElement);
|
|
10056
10113
|
_this.bindKeyEvents();
|
|
10057
10114
|
if (_this.container) {
|
|
10058
|
-
if (
|
|
10115
|
+
if (!$.isEmptyObject(_this.container.settings)) _this.settings = $.extend({}, _this.container.settings);
|
|
10059
10116
|
} else {
|
|
10060
10117
|
_this.settings = {};
|
|
10061
10118
|
}
|
|
@@ -10067,11 +10124,12 @@
|
|
|
10067
10124
|
_this.updateDragHandler = function (event) {
|
|
10068
10125
|
return _this.updateDrag(event);
|
|
10069
10126
|
};
|
|
10070
|
-
|
|
10071
|
-
|
|
10127
|
+
$(document).bind('mouseup', _this.stopDragHandler);
|
|
10128
|
+
$(document).bind('mousemove', _this.updateDragHandler);
|
|
10072
10129
|
return _this;
|
|
10073
10130
|
}
|
|
10074
|
-
|
|
10131
|
+
_inherits(MediaControl, _UICorePlugin);
|
|
10132
|
+
return _createClass(MediaControl, [{
|
|
10075
10133
|
key: "name",
|
|
10076
10134
|
get: function get() {
|
|
10077
10135
|
return 'media_control';
|
|
@@ -10080,7 +10138,7 @@
|
|
|
10080
10138
|
key: "supportedVersion",
|
|
10081
10139
|
get: function get() {
|
|
10082
10140
|
return {
|
|
10083
|
-
min: "0.
|
|
10141
|
+
min: "0.7.2"
|
|
10084
10142
|
};
|
|
10085
10143
|
}
|
|
10086
10144
|
}, {
|
|
@@ -10625,7 +10683,7 @@
|
|
|
10625
10683
|
}, {
|
|
10626
10684
|
key: "getSettings",
|
|
10627
10685
|
value: function getSettings() {
|
|
10628
|
-
return
|
|
10686
|
+
return $.extend(true, {}, this.container && this.container.settings);
|
|
10629
10687
|
}
|
|
10630
10688
|
}, {
|
|
10631
10689
|
key: "highDefinitionUpdate",
|
|
@@ -10775,13 +10833,13 @@
|
|
|
10775
10833
|
}, {
|
|
10776
10834
|
key: "applyButtonStyle",
|
|
10777
10835
|
value: function applyButtonStyle(element) {
|
|
10778
|
-
this.buttonsColor && element &&
|
|
10836
|
+
this.buttonsColor && element && $(element).find('svg path').css('fill', this.buttonsColor);
|
|
10779
10837
|
}
|
|
10780
10838
|
}, {
|
|
10781
10839
|
key: "destroy",
|
|
10782
10840
|
value: function destroy() {
|
|
10783
|
-
|
|
10784
|
-
|
|
10841
|
+
$(document).unbind('mouseup', this.stopDragHandler);
|
|
10842
|
+
$(document).unbind('mousemove', this.updateDragHandler);
|
|
10785
10843
|
this.unbindKeyEvents();
|
|
10786
10844
|
this.stopListening();
|
|
10787
10845
|
_get(_getPrototypeOf(MediaControl.prototype), "destroy", this).call(this);
|
|
@@ -10851,23 +10909,17 @@
|
|
|
10851
10909
|
return this;
|
|
10852
10910
|
}
|
|
10853
10911
|
}]);
|
|
10854
|
-
return MediaControl;
|
|
10855
10912
|
}(UICorePlugin);
|
|
10856
10913
|
MediaControl$1.extend = function (properties) {
|
|
10857
10914
|
return extend(MediaControl$1, properties);
|
|
10858
10915
|
};
|
|
10859
|
-
|
|
10860
10916
|
var posterHTML = "<div class=\"play-wrapper\" data-poster></div>\n";
|
|
10861
|
-
|
|
10862
10917
|
var css_248z$3 = ".player-poster[data-poster] {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n height: 100%;\n width: 100%;\n z-index: 998;\n top: 0;\n left: 0;\n background-color: transparent;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50% 50%; }\n .player-poster[data-poster].clickable {\n cursor: pointer; }\n .player-poster[data-poster]:hover .play-wrapper[data-poster] {\n opacity: 1; }\n .player-poster[data-poster] .play-wrapper[data-poster] {\n width: 100%;\n height: 25%;\n margin: 0 auto;\n opacity: 0.75;\n transition: opacity 0.1s ease; }\n .player-poster[data-poster] .play-wrapper[data-poster] svg {\n height: 100%; }\n .player-poster[data-poster] .play-wrapper[data-poster] svg path {\n fill: #fff; }\n";
|
|
10863
|
-
|
|
10864
10918
|
var PosterPlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
10865
|
-
_inherits(PosterPlugin, _UIContainerPlugin);
|
|
10866
|
-
var _super = _createSuper(PosterPlugin);
|
|
10867
10919
|
function PosterPlugin(container) {
|
|
10868
10920
|
var _this;
|
|
10869
10921
|
_classCallCheck(this, PosterPlugin);
|
|
10870
|
-
_this =
|
|
10922
|
+
_this = _callSuper(this, PosterPlugin, [container]);
|
|
10871
10923
|
_this.hasStartedPlaying = false;
|
|
10872
10924
|
_this.playRequested = false;
|
|
10873
10925
|
_this.render();
|
|
@@ -10876,7 +10928,8 @@
|
|
|
10876
10928
|
}, 0);
|
|
10877
10929
|
return _this;
|
|
10878
10930
|
}
|
|
10879
|
-
|
|
10931
|
+
_inherits(PosterPlugin, _UIContainerPlugin);
|
|
10932
|
+
return _createClass(PosterPlugin, [{
|
|
10880
10933
|
key: "name",
|
|
10881
10934
|
get: function get() {
|
|
10882
10935
|
return 'poster';
|
|
@@ -10885,7 +10938,7 @@
|
|
|
10885
10938
|
key: "supportedVersion",
|
|
10886
10939
|
get: function get() {
|
|
10887
10940
|
return {
|
|
10888
|
-
min: "0.
|
|
10941
|
+
min: "0.7.2"
|
|
10889
10942
|
};
|
|
10890
10943
|
}
|
|
10891
10944
|
}, {
|
|
@@ -11059,21 +11112,15 @@
|
|
|
11059
11112
|
this.container.playback && this.container.playback.$el && this.container.playback.$el[0] && this.container.playback.$el[0].removeAttribute && this.container.playback.$el[0].removeAttribute('poster');
|
|
11060
11113
|
}
|
|
11061
11114
|
}]);
|
|
11062
|
-
return PosterPlugin;
|
|
11063
11115
|
}(UIContainerPlugin);
|
|
11064
|
-
|
|
11065
11116
|
var seekTimeHTML = "<span data-seek-time></span>\n<span data-duration></span>\n";
|
|
11066
|
-
|
|
11067
11117
|
var css_248z$2 = ".seek-time[data-seek-time] {\n position: absolute;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n font-size: 0;\n left: -100%;\n bottom: 55px;\n background-color: rgba(2, 2, 2, 0.5);\n z-index: 9999;\n transition: opacity 0.1s ease; }\n .seek-time[data-seek-time].hidden[data-seek-time] {\n opacity: 0; }\n .seek-time[data-seek-time] [data-seek-time] {\n display: inline-block;\n color: white;\n font-size: 10px;\n padding-left: 7px;\n padding-right: 7px;\n vertical-align: top; }\n .seek-time[data-seek-time] [data-duration] {\n display: inline-block;\n color: rgba(255, 255, 255, 0.5);\n font-size: 10px;\n padding-right: 7px;\n vertical-align: top; }\n .seek-time[data-seek-time] [data-duration]:before {\n content: \"|\";\n margin-right: 7px; }\n";
|
|
11068
|
-
|
|
11069
11118
|
var formatTime = Utils.formatTime;
|
|
11070
11119
|
var SeekTime$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
11071
|
-
_inherits(SeekTime, _UICorePlugin);
|
|
11072
|
-
var _super = _createSuper(SeekTime);
|
|
11073
11120
|
function SeekTime(core) {
|
|
11074
11121
|
var _this;
|
|
11075
11122
|
_classCallCheck(this, SeekTime);
|
|
11076
|
-
_this =
|
|
11123
|
+
_this = _callSuper(this, SeekTime, [core]);
|
|
11077
11124
|
_this.hoveringOverSeekBar = false;
|
|
11078
11125
|
_this.hoverPosition = null;
|
|
11079
11126
|
_this.duration = null;
|
|
@@ -11084,7 +11131,8 @@
|
|
|
11084
11131
|
}
|
|
11085
11132
|
return _this;
|
|
11086
11133
|
}
|
|
11087
|
-
|
|
11134
|
+
_inherits(SeekTime, _UICorePlugin);
|
|
11135
|
+
return _createClass(SeekTime, [{
|
|
11088
11136
|
key: "name",
|
|
11089
11137
|
get: function get() {
|
|
11090
11138
|
return 'seek_time';
|
|
@@ -11093,7 +11141,7 @@
|
|
|
11093
11141
|
key: "supportedVersion",
|
|
11094
11142
|
get: function get() {
|
|
11095
11143
|
return {
|
|
11096
|
-
min: "0.
|
|
11144
|
+
min: "0.7.2"
|
|
11097
11145
|
};
|
|
11098
11146
|
}
|
|
11099
11147
|
}, {
|
|
@@ -11267,20 +11315,14 @@
|
|
|
11267
11315
|
this.update();
|
|
11268
11316
|
}
|
|
11269
11317
|
}]);
|
|
11270
|
-
return SeekTime;
|
|
11271
11318
|
}(UICorePlugin);
|
|
11272
|
-
|
|
11273
11319
|
var spinnerHTML = "<div data-bounce1></div><div data-bounce2></div><div data-bounce3></div>\n";
|
|
11274
|
-
|
|
11275
11320
|
var css_248z$1 = ".spinner-three-bounce[data-spinner] {\n position: absolute;\n margin: 0 auto;\n width: 70px;\n text-align: center;\n z-index: 999;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n /* center vertically */\n top: 50%;\n transform: translateY(-50%); }\n .spinner-three-bounce[data-spinner] > div {\n width: 18px;\n height: 18px;\n background-color: #FFFFFF;\n border-radius: 100%;\n display: inline-block;\n animation: bouncedelay 1.4s infinite ease-in-out;\n /* Prevent first frame from flickering when animation starts */\n animation-fill-mode: both; }\n .spinner-three-bounce[data-spinner] [data-bounce1] {\n animation-delay: -0.32s; }\n .spinner-three-bounce[data-spinner] [data-bounce2] {\n animation-delay: -0.16s; }\n\n@keyframes bouncedelay {\n 0%, 80%, 100% {\n transform: scale(0); }\n 40% {\n transform: scale(1); } }\n";
|
|
11276
|
-
|
|
11277
11321
|
var SpinnerThreeBouncePlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
11278
|
-
_inherits(SpinnerThreeBouncePlugin, _UIContainerPlugin);
|
|
11279
|
-
var _super = _createSuper(SpinnerThreeBouncePlugin);
|
|
11280
11322
|
function SpinnerThreeBouncePlugin(container) {
|
|
11281
11323
|
var _this;
|
|
11282
11324
|
_classCallCheck(this, SpinnerThreeBouncePlugin);
|
|
11283
|
-
_this =
|
|
11325
|
+
_this = _callSuper(this, SpinnerThreeBouncePlugin, [container]);
|
|
11284
11326
|
_this.template = tmpl(spinnerHTML);
|
|
11285
11327
|
_this.showTimeout = null;
|
|
11286
11328
|
_this.listenTo(_this.container, Events.CONTAINER_STATE_BUFFERING, _this.onBuffering);
|
|
@@ -11291,7 +11333,8 @@
|
|
|
11291
11333
|
_this.render();
|
|
11292
11334
|
return _this;
|
|
11293
11335
|
}
|
|
11294
|
-
|
|
11336
|
+
_inherits(SpinnerThreeBouncePlugin, _UIContainerPlugin);
|
|
11337
|
+
return _createClass(SpinnerThreeBouncePlugin, [{
|
|
11295
11338
|
key: "name",
|
|
11296
11339
|
get: function get() {
|
|
11297
11340
|
return 'spinner';
|
|
@@ -11300,7 +11343,7 @@
|
|
|
11300
11343
|
key: "supportedVersion",
|
|
11301
11344
|
get: function get() {
|
|
11302
11345
|
return {
|
|
11303
|
-
min: "0.
|
|
11346
|
+
min: "0.7.2"
|
|
11304
11347
|
};
|
|
11305
11348
|
}
|
|
11306
11349
|
}, {
|
|
@@ -11357,22 +11400,19 @@
|
|
|
11357
11400
|
return this;
|
|
11358
11401
|
}
|
|
11359
11402
|
}]);
|
|
11360
|
-
return SpinnerThreeBouncePlugin;
|
|
11361
11403
|
}(UIContainerPlugin);
|
|
11362
|
-
|
|
11363
11404
|
var StatsPlugin = /*#__PURE__*/function (_ContainerPlugin) {
|
|
11364
|
-
_inherits(StatsPlugin, _ContainerPlugin);
|
|
11365
|
-
var _super = _createSuper(StatsPlugin);
|
|
11366
11405
|
function StatsPlugin(container) {
|
|
11367
11406
|
var _this;
|
|
11368
11407
|
_classCallCheck(this, StatsPlugin);
|
|
11369
|
-
_this =
|
|
11408
|
+
_this = _callSuper(this, StatsPlugin, [container]);
|
|
11370
11409
|
_this.setInitialAttrs();
|
|
11371
11410
|
_this.reportInterval = _this.options.reportInterval || 5000;
|
|
11372
11411
|
_this.state = 'IDLE';
|
|
11373
11412
|
return _this;
|
|
11374
11413
|
}
|
|
11375
|
-
|
|
11414
|
+
_inherits(StatsPlugin, _ContainerPlugin);
|
|
11415
|
+
return _createClass(StatsPlugin, [{
|
|
11376
11416
|
key: "name",
|
|
11377
11417
|
get: function get() {
|
|
11378
11418
|
return 'stats';
|
|
@@ -11381,7 +11421,7 @@
|
|
|
11381
11421
|
key: "supportedVersion",
|
|
11382
11422
|
get: function get() {
|
|
11383
11423
|
return {
|
|
11384
|
-
min: "0.
|
|
11424
|
+
min: "0.7.2"
|
|
11385
11425
|
};
|
|
11386
11426
|
}
|
|
11387
11427
|
}, {
|
|
@@ -11461,7 +11501,7 @@
|
|
|
11461
11501
|
}, {
|
|
11462
11502
|
key: "onStatsAdd",
|
|
11463
11503
|
value: function onStatsAdd(metric) {
|
|
11464
|
-
|
|
11504
|
+
$.extend(this.externalMetrics, metric);
|
|
11465
11505
|
}
|
|
11466
11506
|
}, {
|
|
11467
11507
|
key: "getStats",
|
|
@@ -11472,7 +11512,7 @@
|
|
|
11472
11512
|
rebufferingTime: this.isRebuffering() ? this.rebufferingTime + this.getRebufferingTime() : this.rebufferingTime,
|
|
11473
11513
|
watchingTime: this.isRebuffering() ? this.getWatchingTime() - this.getRebufferingTime() : this.getWatchingTime()
|
|
11474
11514
|
};
|
|
11475
|
-
|
|
11515
|
+
$.extend(metrics, this.externalMetrics);
|
|
11476
11516
|
return metrics;
|
|
11477
11517
|
}
|
|
11478
11518
|
}, {
|
|
@@ -11481,24 +11521,19 @@
|
|
|
11481
11521
|
this.container.statsReport(this.getStats());
|
|
11482
11522
|
}
|
|
11483
11523
|
}]);
|
|
11484
|
-
return StatsPlugin;
|
|
11485
11524
|
}(ContainerPlugin);
|
|
11486
|
-
|
|
11487
11525
|
var watermarkHTML = "<div class=\"clappr-watermark\" data-watermark data-watermark-<%=position %>>\n<% if(typeof imageLink !== 'undefined') { %>\n<a target=\"_blank\" href=\"<%= imageLink %>\">\n<% } %>\n<img src=\"<%= imageUrl %>\">\n<% if(typeof imageLink !== 'undefined') { %>\n</a>\n<% } %>\n</div>\n";
|
|
11488
|
-
|
|
11489
11526
|
var css_248z = ".clappr-watermark[data-watermark] {\n position: absolute;\n min-width: 70px;\n max-width: 200px;\n width: 12%;\n text-align: center;\n z-index: 10; }\n\n.clappr-watermark[data-watermark] a {\n outline: none;\n cursor: pointer; }\n\n.clappr-watermark[data-watermark] img {\n max-width: 100%; }\n\n.clappr-watermark[data-watermark-bottom-left] {\n bottom: 10px;\n left: 10px; }\n\n.clappr-watermark[data-watermark-bottom-right] {\n bottom: 10px;\n right: 42px; }\n\n.clappr-watermark[data-watermark-top-left] {\n top: 10px;\n left: 10px; }\n\n.clappr-watermark[data-watermark-top-right] {\n top: 10px;\n right: 37px; }\n";
|
|
11490
|
-
|
|
11491
11527
|
var WaterMarkPlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
11492
|
-
_inherits(WaterMarkPlugin, _UIContainerPlugin);
|
|
11493
|
-
var _super = _createSuper(WaterMarkPlugin);
|
|
11494
11528
|
function WaterMarkPlugin(container) {
|
|
11495
11529
|
var _this;
|
|
11496
11530
|
_classCallCheck(this, WaterMarkPlugin);
|
|
11497
|
-
_this =
|
|
11531
|
+
_this = _callSuper(this, WaterMarkPlugin, [container]);
|
|
11498
11532
|
_this.configure();
|
|
11499
11533
|
return _this;
|
|
11500
11534
|
}
|
|
11501
|
-
|
|
11535
|
+
_inherits(WaterMarkPlugin, _UIContainerPlugin);
|
|
11536
|
+
return _createClass(WaterMarkPlugin, [{
|
|
11502
11537
|
key: "name",
|
|
11503
11538
|
get: function get() {
|
|
11504
11539
|
return 'watermark';
|
|
@@ -11507,7 +11542,7 @@
|
|
|
11507
11542
|
key: "supportedVersion",
|
|
11508
11543
|
get: function get() {
|
|
11509
11544
|
return {
|
|
11510
|
-
min: "0.
|
|
11545
|
+
min: "0.7.2"
|
|
11511
11546
|
};
|
|
11512
11547
|
}
|
|
11513
11548
|
}, {
|
|
@@ -11562,7 +11597,6 @@
|
|
|
11562
11597
|
return this;
|
|
11563
11598
|
}
|
|
11564
11599
|
}]);
|
|
11565
|
-
return WaterMarkPlugin;
|
|
11566
11600
|
}(UIContainerPlugin);
|
|
11567
11601
|
var Plugins = {
|
|
11568
11602
|
ClickToPause: ClickToPausePlugin,
|
|
@@ -11580,7 +11614,7 @@
|
|
|
11580
11614
|
WaterMark: WaterMarkPlugin
|
|
11581
11615
|
};
|
|
11582
11616
|
|
|
11583
|
-
var version = "0.
|
|
11617
|
+
var version = "0.6.0";
|
|
11584
11618
|
for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
|
|
11585
11619
|
var plugin = _Object$values[_i];
|
|
11586
11620
|
Loader.registerPlugin(plugin);
|