@clappr/player 0.4.3 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/clappr.js +2427 -1937
- package/dist/clappr.js.map +1 -1
- package/dist/clappr.min.js +14 -14
- package/dist/clappr.min.js.map +1 -1
- package/dist/clappr.plainhtml5.js +692 -655
- 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 +15 -15
|
@@ -4,47 +4,36 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Clappr = factory());
|
|
5
5
|
}(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
if (key in obj) {
|
|
9
|
-
Object.defineProperty(obj, key, {
|
|
10
|
-
value: value,
|
|
11
|
-
enumerable: true,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true
|
|
14
|
-
});
|
|
15
|
-
} else {
|
|
16
|
-
obj[key] = value;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return obj;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function ownKeys(object, enumerableOnly) {
|
|
7
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
23
8
|
var keys = Object.keys(object);
|
|
24
9
|
|
|
25
10
|
if (Object.getOwnPropertySymbols) {
|
|
26
11
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
|
|
13
|
+
if (enumerableOnly) {
|
|
14
|
+
symbols = symbols.filter(function (sym) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
30
19
|
keys.push.apply(keys, symbols);
|
|
31
20
|
}
|
|
32
21
|
|
|
33
22
|
return keys;
|
|
34
23
|
}
|
|
35
24
|
|
|
36
|
-
function _objectSpread2(target) {
|
|
25
|
+
function _objectSpread2$1(target) {
|
|
37
26
|
for (var i = 1; i < arguments.length; i++) {
|
|
38
27
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
39
28
|
|
|
40
29
|
if (i % 2) {
|
|
41
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
42
|
-
_defineProperty(target, key, source[key]);
|
|
30
|
+
ownKeys$1(Object(source), true).forEach(function (key) {
|
|
31
|
+
_defineProperty$1(target, key, source[key]);
|
|
43
32
|
});
|
|
44
33
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
45
34
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
35
|
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
36
|
+
ownKeys$1(Object(source)).forEach(function (key) {
|
|
48
37
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
38
|
});
|
|
50
39
|
}
|
|
@@ -53,6 +42,21 @@
|
|
|
53
42
|
return target;
|
|
54
43
|
}
|
|
55
44
|
|
|
45
|
+
function _defineProperty$1(obj, key, value) {
|
|
46
|
+
if (key in obj) {
|
|
47
|
+
Object.defineProperty(obj, key, {
|
|
48
|
+
value: value,
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
obj[key] = value;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return obj;
|
|
58
|
+
}
|
|
59
|
+
|
|
56
60
|
function _typeof(obj) {
|
|
57
61
|
"@babel/helpers - typeof";
|
|
58
62
|
|
|
@@ -69,13 +73,13 @@
|
|
|
69
73
|
return _typeof(obj);
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
function _classCallCheck(instance, Constructor) {
|
|
76
|
+
function _classCallCheck$1(instance, Constructor) {
|
|
73
77
|
if (!(instance instanceof Constructor)) {
|
|
74
78
|
throw new TypeError("Cannot call a class as a function");
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
function _defineProperties(target, props) {
|
|
82
|
+
function _defineProperties$1(target, props) {
|
|
79
83
|
for (var i = 0; i < props.length; i++) {
|
|
80
84
|
var descriptor = props[i];
|
|
81
85
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -85,13 +89,13 @@
|
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
89
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
90
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
92
|
+
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
93
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
94
|
+
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
91
95
|
return Constructor;
|
|
92
96
|
}
|
|
93
97
|
|
|
94
|
-
function _defineProperty
|
|
98
|
+
function _defineProperty(obj, key, value) {
|
|
95
99
|
if (key in obj) {
|
|
96
100
|
Object.defineProperty(obj, key, {
|
|
97
101
|
value: value,
|
|
@@ -106,7 +110,7 @@
|
|
|
106
110
|
return obj;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
function ownKeys
|
|
113
|
+
function ownKeys(object, enumerableOnly) {
|
|
110
114
|
var keys = Object.keys(object);
|
|
111
115
|
|
|
112
116
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -120,18 +124,18 @@
|
|
|
120
124
|
return keys;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
|
-
function _objectSpread2
|
|
127
|
+
function _objectSpread2(target) {
|
|
124
128
|
for (var i = 1; i < arguments.length; i++) {
|
|
125
129
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
126
130
|
|
|
127
131
|
if (i % 2) {
|
|
128
|
-
ownKeys
|
|
129
|
-
_defineProperty
|
|
132
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
133
|
+
_defineProperty(target, key, source[key]);
|
|
130
134
|
});
|
|
131
135
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
132
136
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
133
137
|
} else {
|
|
134
|
-
ownKeys
|
|
138
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
135
139
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
136
140
|
});
|
|
137
141
|
}
|
|
@@ -140,7 +144,7 @@
|
|
|
140
144
|
return target;
|
|
141
145
|
}
|
|
142
146
|
|
|
143
|
-
function _inherits(subClass, superClass) {
|
|
147
|
+
function _inherits$1(subClass, superClass) {
|
|
144
148
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
145
149
|
throw new TypeError("Super expression must either be null or a function");
|
|
146
150
|
}
|
|
@@ -152,26 +156,26 @@
|
|
|
152
156
|
configurable: true
|
|
153
157
|
}
|
|
154
158
|
});
|
|
155
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
159
|
+
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
function _getPrototypeOf(o) {
|
|
159
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
162
|
+
function _getPrototypeOf$1(o) {
|
|
163
|
+
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
160
164
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
161
165
|
};
|
|
162
|
-
return _getPrototypeOf(o);
|
|
166
|
+
return _getPrototypeOf$1(o);
|
|
163
167
|
}
|
|
164
168
|
|
|
165
|
-
function _setPrototypeOf(o, p) {
|
|
166
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
169
|
+
function _setPrototypeOf$1(o, p) {
|
|
170
|
+
_setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
167
171
|
o.__proto__ = p;
|
|
168
172
|
return o;
|
|
169
173
|
};
|
|
170
174
|
|
|
171
|
-
return _setPrototypeOf(o, p);
|
|
175
|
+
return _setPrototypeOf$1(o, p);
|
|
172
176
|
}
|
|
173
177
|
|
|
174
|
-
function _isNativeReflectConstruct() {
|
|
178
|
+
function _isNativeReflectConstruct$1() {
|
|
175
179
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
176
180
|
if (Reflect.construct.sham) return false;
|
|
177
181
|
if (typeof Proxy === "function") return true;
|
|
@@ -184,7 +188,7 @@
|
|
|
184
188
|
}
|
|
185
189
|
}
|
|
186
190
|
|
|
187
|
-
function _assertThisInitialized(self) {
|
|
191
|
+
function _assertThisInitialized$1(self) {
|
|
188
192
|
if (self === void 0) {
|
|
189
193
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
190
194
|
}
|
|
@@ -192,48 +196,48 @@
|
|
|
192
196
|
return self;
|
|
193
197
|
}
|
|
194
198
|
|
|
195
|
-
function _possibleConstructorReturn(self, call) {
|
|
199
|
+
function _possibleConstructorReturn$1(self, call) {
|
|
196
200
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
197
201
|
return call;
|
|
198
202
|
}
|
|
199
203
|
|
|
200
|
-
return _assertThisInitialized(self);
|
|
204
|
+
return _assertThisInitialized$1(self);
|
|
201
205
|
}
|
|
202
206
|
|
|
203
|
-
function _createSuper(Derived) {
|
|
204
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
207
|
+
function _createSuper$1(Derived) {
|
|
208
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
205
209
|
|
|
206
210
|
return function _createSuperInternal() {
|
|
207
|
-
var Super = _getPrototypeOf(Derived),
|
|
211
|
+
var Super = _getPrototypeOf$1(Derived),
|
|
208
212
|
result;
|
|
209
213
|
|
|
210
214
|
if (hasNativeReflectConstruct) {
|
|
211
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
215
|
+
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
212
216
|
|
|
213
217
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
214
218
|
} else {
|
|
215
219
|
result = Super.apply(this, arguments);
|
|
216
220
|
}
|
|
217
221
|
|
|
218
|
-
return _possibleConstructorReturn(this, result);
|
|
222
|
+
return _possibleConstructorReturn$1(this, result);
|
|
219
223
|
};
|
|
220
224
|
}
|
|
221
225
|
|
|
222
|
-
function _superPropBase(object, property) {
|
|
226
|
+
function _superPropBase$1(object, property) {
|
|
223
227
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
224
|
-
object = _getPrototypeOf(object);
|
|
228
|
+
object = _getPrototypeOf$1(object);
|
|
225
229
|
if (object === null) break;
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
return object;
|
|
229
233
|
}
|
|
230
234
|
|
|
231
|
-
function _get(target, property, receiver) {
|
|
235
|
+
function _get$1(target, property, receiver) {
|
|
232
236
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
233
|
-
_get = Reflect.get;
|
|
237
|
+
_get$1 = Reflect.get;
|
|
234
238
|
} else {
|
|
235
|
-
_get = function _get(target, property, receiver) {
|
|
236
|
-
var base = _superPropBase(target, property);
|
|
239
|
+
_get$1 = function _get(target, property, receiver) {
|
|
240
|
+
var base = _superPropBase$1(target, property);
|
|
237
241
|
|
|
238
242
|
if (!base) return;
|
|
239
243
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
@@ -246,7 +250,7 @@
|
|
|
246
250
|
};
|
|
247
251
|
}
|
|
248
252
|
|
|
249
|
-
return _get(target, property, receiver || target);
|
|
253
|
+
return _get$1(target, property, receiver || target);
|
|
250
254
|
}
|
|
251
255
|
|
|
252
256
|
function _slicedToArray(arr, i) {
|
|
@@ -3004,23 +3008,23 @@
|
|
|
3004
3008
|
|
|
3005
3009
|
return obj;
|
|
3006
3010
|
}
|
|
3007
|
-
function extend(parent, properties) {
|
|
3011
|
+
function extend$1(parent, properties) {
|
|
3008
3012
|
var Surrogate = /*#__PURE__*/function (_parent) {
|
|
3009
|
-
_inherits(Surrogate, _parent);
|
|
3013
|
+
_inherits$1(Surrogate, _parent);
|
|
3010
3014
|
|
|
3011
|
-
var _super = _createSuper(Surrogate);
|
|
3015
|
+
var _super = _createSuper$1(Surrogate);
|
|
3012
3016
|
|
|
3013
3017
|
function Surrogate() {
|
|
3014
3018
|
var _this;
|
|
3015
3019
|
|
|
3016
|
-
_classCallCheck(this, Surrogate);
|
|
3020
|
+
_classCallCheck$1(this, Surrogate);
|
|
3017
3021
|
|
|
3018
3022
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3019
3023
|
args[_key] = arguments[_key];
|
|
3020
3024
|
}
|
|
3021
3025
|
|
|
3022
3026
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
3023
|
-
if (properties.initialize) properties.initialize.apply(_assertThisInitialized(_this), args);
|
|
3027
|
+
if (properties.initialize) properties.initialize.apply(_assertThisInitialized$1(_this), args);
|
|
3024
3028
|
return _this;
|
|
3025
3029
|
}
|
|
3026
3030
|
|
|
@@ -3030,7 +3034,7 @@
|
|
|
3030
3034
|
assign(Surrogate.prototype, properties);
|
|
3031
3035
|
return Surrogate;
|
|
3032
3036
|
}
|
|
3033
|
-
function formatTime(time, paddedHours) {
|
|
3037
|
+
function formatTime$2(time, paddedHours) {
|
|
3034
3038
|
if (!isFinite(time)) return '--:--';
|
|
3035
3039
|
time = time * 1000;
|
|
3036
3040
|
time = parseInt(time / 1000);
|
|
@@ -3052,7 +3056,7 @@
|
|
|
3052
3056
|
out += ('0' + seconds).slice(-2);
|
|
3053
3057
|
return out.trim();
|
|
3054
3058
|
}
|
|
3055
|
-
var Fullscreen = {
|
|
3059
|
+
var Fullscreen$1 = {
|
|
3056
3060
|
fullscreenElement: function fullscreenElement() {
|
|
3057
3061
|
return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
|
|
3058
3062
|
},
|
|
@@ -3080,12 +3084,12 @@
|
|
|
3080
3084
|
return !!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled);
|
|
3081
3085
|
}
|
|
3082
3086
|
};
|
|
3083
|
-
var Config = /*#__PURE__*/function () {
|
|
3087
|
+
var Config$1 = /*#__PURE__*/function () {
|
|
3084
3088
|
function Config() {
|
|
3085
|
-
_classCallCheck(this, Config);
|
|
3089
|
+
_classCallCheck$1(this, Config);
|
|
3086
3090
|
}
|
|
3087
3091
|
|
|
3088
|
-
_createClass(Config, null, [{
|
|
3092
|
+
_createClass$1(Config, null, [{
|
|
3089
3093
|
key: "_defaultConfig",
|
|
3090
3094
|
value: function _defaultConfig() {
|
|
3091
3095
|
return {
|
|
@@ -3133,10 +3137,10 @@
|
|
|
3133
3137
|
}();
|
|
3134
3138
|
var QueryString = /*#__PURE__*/function () {
|
|
3135
3139
|
function QueryString() {
|
|
3136
|
-
_classCallCheck(this, QueryString);
|
|
3140
|
+
_classCallCheck$1(this, QueryString);
|
|
3137
3141
|
}
|
|
3138
3142
|
|
|
3139
|
-
_createClass(QueryString, null, [{
|
|
3143
|
+
_createClass$1(QueryString, null, [{
|
|
3140
3144
|
key: "parse",
|
|
3141
3145
|
value: function parse(paramsString) {
|
|
3142
3146
|
var match;
|
|
@@ -3229,7 +3233,7 @@
|
|
|
3229
3233
|
return Date.now();
|
|
3230
3234
|
} // remove the item from the array if it exists in the array
|
|
3231
3235
|
|
|
3232
|
-
function removeArrayItem(arr, item) {
|
|
3236
|
+
function removeArrayItem$1(arr, item) {
|
|
3233
3237
|
var i = arr.indexOf(item);
|
|
3234
3238
|
if (i >= 0) arr.splice(i, 1);
|
|
3235
3239
|
} // find an item regardless of its letter case
|
|
@@ -3279,10 +3283,10 @@
|
|
|
3279
3283
|
|
|
3280
3284
|
var DomRecycler = /*#__PURE__*/function () {
|
|
3281
3285
|
function DomRecycler() {
|
|
3282
|
-
_classCallCheck(this, DomRecycler);
|
|
3286
|
+
_classCallCheck$1(this, DomRecycler);
|
|
3283
3287
|
}
|
|
3284
3288
|
|
|
3285
|
-
_createClass(DomRecycler, null, [{
|
|
3289
|
+
_createClass$1(DomRecycler, null, [{
|
|
3286
3290
|
key: "configure",
|
|
3287
3291
|
value: function configure(options) {
|
|
3288
3292
|
this.options = zepto.extend(true, this.options, options);
|
|
@@ -3314,13 +3318,13 @@
|
|
|
3314
3318
|
function DoubleEventHandler() {
|
|
3315
3319
|
var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
|
|
3316
3320
|
|
|
3317
|
-
_classCallCheck(this, DoubleEventHandler);
|
|
3321
|
+
_classCallCheck$1(this, DoubleEventHandler);
|
|
3318
3322
|
|
|
3319
3323
|
this.delay = delay;
|
|
3320
3324
|
this.lastTime = 0;
|
|
3321
3325
|
}
|
|
3322
3326
|
|
|
3323
|
-
_createClass(DoubleEventHandler, [{
|
|
3327
|
+
_createClass$1(DoubleEventHandler, [{
|
|
3324
3328
|
key: "handle",
|
|
3325
3329
|
value: function handle(event, cb) {
|
|
3326
3330
|
var prevented = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -3340,13 +3344,13 @@
|
|
|
3340
3344
|
return DoubleEventHandler;
|
|
3341
3345
|
}();
|
|
3342
3346
|
var Utils = {
|
|
3343
|
-
Config: Config,
|
|
3344
|
-
Fullscreen: Fullscreen,
|
|
3347
|
+
Config: Config$1,
|
|
3348
|
+
Fullscreen: Fullscreen$1,
|
|
3345
3349
|
QueryString: QueryString,
|
|
3346
3350
|
DomRecycler: DomRecycler,
|
|
3347
3351
|
assign: assign,
|
|
3348
|
-
extend: extend,
|
|
3349
|
-
formatTime: formatTime,
|
|
3352
|
+
extend: extend$1,
|
|
3353
|
+
formatTime: formatTime$2,
|
|
3350
3354
|
seekStringToSeconds: seekStringToSeconds,
|
|
3351
3355
|
uniqueId: uniqueId,
|
|
3352
3356
|
currentScriptUrl: currentScriptUrl,
|
|
@@ -3355,7 +3359,7 @@
|
|
|
3355
3359
|
cancelAnimationFrame: cancelAnimationFrame,
|
|
3356
3360
|
getBrowserLanguage: getBrowserLanguage,
|
|
3357
3361
|
now: now,
|
|
3358
|
-
removeArrayItem: removeArrayItem,
|
|
3362
|
+
removeArrayItem: removeArrayItem$1,
|
|
3359
3363
|
listContainsIgnoreCase: listContainsIgnoreCase,
|
|
3360
3364
|
canAutoPlayMedia: canAutoPlayMedia,
|
|
3361
3365
|
Media: Media,
|
|
@@ -3378,7 +3382,7 @@
|
|
|
3378
3382
|
var DESCRIPTIONS = ['debug', 'info', 'warn', 'error', 'disabled'];
|
|
3379
3383
|
|
|
3380
3384
|
var Log = /*#__PURE__*/function () {
|
|
3381
|
-
_createClass(Log, [{
|
|
3385
|
+
_createClass$1(Log, [{
|
|
3382
3386
|
key: "level",
|
|
3383
3387
|
get: function get() {
|
|
3384
3388
|
return this._level;
|
|
@@ -3392,7 +3396,7 @@
|
|
|
3392
3396
|
var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LEVEL_INFO;
|
|
3393
3397
|
var offLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : LEVEL_DISABLED;
|
|
3394
3398
|
|
|
3395
|
-
_classCallCheck(this, Log);
|
|
3399
|
+
_classCallCheck$1(this, Log);
|
|
3396
3400
|
|
|
3397
3401
|
this.EXCLUDE_LIST = ['timeupdate', 'playback:timeupdate', 'playback:progress', 'container:hover', 'container:timeupdate', 'container:progress'];
|
|
3398
3402
|
this.level = level;
|
|
@@ -3400,7 +3404,7 @@
|
|
|
3400
3404
|
this.offLevel = offLevel;
|
|
3401
3405
|
}
|
|
3402
3406
|
|
|
3403
|
-
_createClass(Log, [{
|
|
3407
|
+
_createClass$1(Log, [{
|
|
3404
3408
|
key: "debug",
|
|
3405
3409
|
value: function debug(klass) {
|
|
3406
3410
|
this.log(klass, LEVEL_DEBUG, Array.prototype.slice.call(arguments, 1));
|
|
@@ -3574,10 +3578,10 @@
|
|
|
3574
3578
|
|
|
3575
3579
|
var Events = /*#__PURE__*/function () {
|
|
3576
3580
|
function Events() {
|
|
3577
|
-
_classCallCheck(this, Events);
|
|
3581
|
+
_classCallCheck$1(this, Events);
|
|
3578
3582
|
}
|
|
3579
3583
|
|
|
3580
|
-
_createClass(Events, [{
|
|
3584
|
+
_createClass$1(Events, [{
|
|
3581
3585
|
key: "on",
|
|
3582
3586
|
|
|
3583
3587
|
/**
|
|
@@ -4304,6 +4308,8 @@
|
|
|
4304
4308
|
Events.CONTAINER_CONTEXTMENU = 'container:contextmenu';
|
|
4305
4309
|
Events.CONTAINER_MOUSE_ENTER = 'container:mouseenter';
|
|
4306
4310
|
Events.CONTAINER_MOUSE_LEAVE = 'container:mouseleave';
|
|
4311
|
+
Events.CONTAINER_MOUSE_UP = 'container:mouseup';
|
|
4312
|
+
Events.CONTAINER_MOUSE_DOWN = 'container:mousedown';
|
|
4307
4313
|
/**
|
|
4308
4314
|
* Fired when the container seeks the video
|
|
4309
4315
|
*
|
|
@@ -4454,11 +4460,11 @@
|
|
|
4454
4460
|
*/
|
|
4455
4461
|
|
|
4456
4462
|
var BaseObject = /*#__PURE__*/function (_Events) {
|
|
4457
|
-
_inherits(BaseObject, _Events);
|
|
4463
|
+
_inherits$1(BaseObject, _Events);
|
|
4458
4464
|
|
|
4459
|
-
var _super = _createSuper(BaseObject);
|
|
4465
|
+
var _super = _createSuper$1(BaseObject);
|
|
4460
4466
|
|
|
4461
|
-
_createClass(BaseObject, [{
|
|
4467
|
+
_createClass$1(BaseObject, [{
|
|
4462
4468
|
key: "options",
|
|
4463
4469
|
|
|
4464
4470
|
/**
|
|
@@ -4481,7 +4487,7 @@
|
|
|
4481
4487
|
|
|
4482
4488
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4483
4489
|
|
|
4484
|
-
_classCallCheck(this, BaseObject);
|
|
4490
|
+
_classCallCheck$1(this, BaseObject);
|
|
4485
4491
|
|
|
4486
4492
|
_this = _super.call(this, options);
|
|
4487
4493
|
_this._options = options;
|
|
@@ -4612,11 +4618,11 @@
|
|
|
4612
4618
|
*/
|
|
4613
4619
|
|
|
4614
4620
|
var UIObject = /*#__PURE__*/function (_BaseObject) {
|
|
4615
|
-
_inherits(UIObject, _BaseObject);
|
|
4621
|
+
_inherits$1(UIObject, _BaseObject);
|
|
4616
4622
|
|
|
4617
|
-
var _super = _createSuper(UIObject);
|
|
4623
|
+
var _super = _createSuper$1(UIObject);
|
|
4618
4624
|
|
|
4619
|
-
_createClass(UIObject, [{
|
|
4625
|
+
_createClass$1(UIObject, [{
|
|
4620
4626
|
key: "tagName",
|
|
4621
4627
|
|
|
4622
4628
|
/**
|
|
@@ -4712,7 +4718,7 @@
|
|
|
4712
4718
|
function UIObject(options) {
|
|
4713
4719
|
var _this;
|
|
4714
4720
|
|
|
4715
|
-
_classCallCheck(this, UIObject);
|
|
4721
|
+
_classCallCheck$1(this, UIObject);
|
|
4716
4722
|
|
|
4717
4723
|
_this = _super.call(this, options);
|
|
4718
4724
|
_this.cid = uniqueId('c');
|
|
@@ -4735,7 +4741,7 @@
|
|
|
4735
4741
|
*/
|
|
4736
4742
|
|
|
4737
4743
|
|
|
4738
|
-
_createClass(UIObject, [{
|
|
4744
|
+
_createClass$1(UIObject, [{
|
|
4739
4745
|
key: "$",
|
|
4740
4746
|
value: function $(selector) {
|
|
4741
4747
|
return this.$el.find(selector);
|
|
@@ -4853,11 +4859,11 @@
|
|
|
4853
4859
|
*/
|
|
4854
4860
|
|
|
4855
4861
|
var PlayerError = /*#__PURE__*/function (_BaseObject) {
|
|
4856
|
-
_inherits(PlayerError, _BaseObject);
|
|
4862
|
+
_inherits$1(PlayerError, _BaseObject);
|
|
4857
4863
|
|
|
4858
|
-
var _super = _createSuper(PlayerError);
|
|
4864
|
+
var _super = _createSuper$1(PlayerError);
|
|
4859
4865
|
|
|
4860
|
-
_createClass(PlayerError, [{
|
|
4866
|
+
_createClass$1(PlayerError, [{
|
|
4861
4867
|
key: "name",
|
|
4862
4868
|
get: function get() {
|
|
4863
4869
|
return 'error';
|
|
@@ -4884,7 +4890,7 @@
|
|
|
4884
4890
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4885
4891
|
var core = arguments.length > 1 ? arguments[1] : undefined;
|
|
4886
4892
|
|
|
4887
|
-
_classCallCheck(this, PlayerError);
|
|
4893
|
+
_classCallCheck$1(this, PlayerError);
|
|
4888
4894
|
|
|
4889
4895
|
_this = _super.call(this, options);
|
|
4890
4896
|
_this.core = core;
|
|
@@ -4897,7 +4903,7 @@
|
|
|
4897
4903
|
*/
|
|
4898
4904
|
|
|
4899
4905
|
|
|
4900
|
-
_createClass(PlayerError, [{
|
|
4906
|
+
_createClass$1(PlayerError, [{
|
|
4901
4907
|
key: "createError",
|
|
4902
4908
|
value: function createError(err) {
|
|
4903
4909
|
if (!this.core) {
|
|
@@ -4952,11 +4958,11 @@
|
|
|
4952
4958
|
};
|
|
4953
4959
|
|
|
4954
4960
|
var UICorePlugin = /*#__PURE__*/function (_UIObject) {
|
|
4955
|
-
_inherits(UICorePlugin, _UIObject);
|
|
4961
|
+
_inherits$1(UICorePlugin, _UIObject);
|
|
4956
4962
|
|
|
4957
|
-
var _super = _createSuper(UICorePlugin);
|
|
4963
|
+
var _super = _createSuper$1(UICorePlugin);
|
|
4958
4964
|
|
|
4959
|
-
_createClass(UICorePlugin, [{
|
|
4965
|
+
_createClass$1(UICorePlugin, [{
|
|
4960
4966
|
key: "playerError",
|
|
4961
4967
|
get: function get() {
|
|
4962
4968
|
return this.core.playerError;
|
|
@@ -4966,7 +4972,7 @@
|
|
|
4966
4972
|
function UICorePlugin(core) {
|
|
4967
4973
|
var _this;
|
|
4968
4974
|
|
|
4969
|
-
_classCallCheck(this, UICorePlugin);
|
|
4975
|
+
_classCallCheck$1(this, UICorePlugin);
|
|
4970
4976
|
|
|
4971
4977
|
_this = _super.call(this, core.options);
|
|
4972
4978
|
_this.core = core;
|
|
@@ -4979,7 +4985,7 @@
|
|
|
4979
4985
|
return _this;
|
|
4980
4986
|
}
|
|
4981
4987
|
|
|
4982
|
-
_createClass(UICorePlugin, [{
|
|
4988
|
+
_createClass$1(UICorePlugin, [{
|
|
4983
4989
|
key: "bindEvents",
|
|
4984
4990
|
value: function bindEvents() {}
|
|
4985
4991
|
}, {
|
|
@@ -5015,12 +5021,12 @@
|
|
|
5015
5021
|
Object.assign(UICorePlugin.prototype, ErrorMixin);
|
|
5016
5022
|
|
|
5017
5023
|
UICorePlugin.extend = function (properties) {
|
|
5018
|
-
return extend(UICorePlugin, properties);
|
|
5024
|
+
return extend$1(UICorePlugin, properties);
|
|
5019
5025
|
};
|
|
5020
5026
|
|
|
5021
5027
|
UICorePlugin.type = 'core';
|
|
5022
5028
|
|
|
5023
|
-
var css_248z = ".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";
|
|
5029
|
+
var css_248z$8 = ".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";
|
|
5024
5030
|
|
|
5025
5031
|
/**
|
|
5026
5032
|
* An abstraction to represent a container for a given playback
|
|
@@ -5032,11 +5038,11 @@
|
|
|
5032
5038
|
*/
|
|
5033
5039
|
|
|
5034
5040
|
var Container = /*#__PURE__*/function (_UIObject) {
|
|
5035
|
-
_inherits(Container, _UIObject);
|
|
5041
|
+
_inherits$1(Container, _UIObject);
|
|
5036
5042
|
|
|
5037
|
-
var _super = _createSuper(Container);
|
|
5043
|
+
var _super = _createSuper$1(Container);
|
|
5038
5044
|
|
|
5039
|
-
_createClass(Container, [{
|
|
5045
|
+
_createClass$1(Container, [{
|
|
5040
5046
|
key: "name",
|
|
5041
5047
|
|
|
5042
5048
|
/**
|
|
@@ -5065,7 +5071,9 @@
|
|
|
5065
5071
|
'touchend': 'dblTap',
|
|
5066
5072
|
'contextmenu': 'onContextMenu',
|
|
5067
5073
|
'mouseenter': 'mouseEnter',
|
|
5068
|
-
'mouseleave': 'mouseLeave'
|
|
5074
|
+
'mouseleave': 'mouseLeave',
|
|
5075
|
+
'mouseup': 'onMouseUp',
|
|
5076
|
+
'mousedown': 'onMouseDown'
|
|
5069
5077
|
};
|
|
5070
5078
|
}
|
|
5071
5079
|
/**
|
|
@@ -5157,7 +5165,7 @@
|
|
|
5157
5165
|
function Container(options, i18n, playerError) {
|
|
5158
5166
|
var _this;
|
|
5159
5167
|
|
|
5160
|
-
_classCallCheck(this, Container);
|
|
5168
|
+
_classCallCheck$1(this, Container);
|
|
5161
5169
|
|
|
5162
5170
|
_this = _super.call(this, options);
|
|
5163
5171
|
_this._i18n = i18n;
|
|
@@ -5173,6 +5181,8 @@
|
|
|
5173
5181
|
_this.clickTimer = null;
|
|
5174
5182
|
_this.clickDelay = 200; // FIXME: could be a player option
|
|
5175
5183
|
|
|
5184
|
+
_this.actionsMetadata = {};
|
|
5185
|
+
|
|
5176
5186
|
_this.bindEvents();
|
|
5177
5187
|
|
|
5178
5188
|
return _this;
|
|
@@ -5207,7 +5217,7 @@
|
|
|
5207
5217
|
*/
|
|
5208
5218
|
|
|
5209
5219
|
|
|
5210
|
-
_createClass(Container, [{
|
|
5220
|
+
_createClass$1(Container, [{
|
|
5211
5221
|
key: "bindEvents",
|
|
5212
5222
|
value: function bindEvents() {
|
|
5213
5223
|
this.listenTo(this.playback, Events.PLAYBACK_PROGRESS, this.onProgress);
|
|
@@ -5373,43 +5383,60 @@
|
|
|
5373
5383
|
}, {
|
|
5374
5384
|
key: "playing",
|
|
5375
5385
|
value: function playing() {
|
|
5376
|
-
this.trigger(Events.CONTAINER_PLAY, this.name);
|
|
5386
|
+
this.trigger(Events.CONTAINER_PLAY, this.name, this.actionsMetadata.playEvent || {});
|
|
5387
|
+
this.actionsMetadata.playEvent = {};
|
|
5377
5388
|
}
|
|
5378
5389
|
}, {
|
|
5379
5390
|
key: "paused",
|
|
5380
5391
|
value: function paused() {
|
|
5381
|
-
this.trigger(Events.CONTAINER_PAUSE, this.name);
|
|
5392
|
+
this.trigger(Events.CONTAINER_PAUSE, this.name, this.actionsMetadata.pauseEvent || {});
|
|
5393
|
+
this.actionsMetadata.pauseEvent = {};
|
|
5394
|
+
}
|
|
5395
|
+
}, {
|
|
5396
|
+
key: "stopped",
|
|
5397
|
+
value: function stopped() {
|
|
5398
|
+
this.trigger(Events.CONTAINER_STOP, this.actionsMetadata.stopEvent || {});
|
|
5399
|
+
this.actionsMetadata.stopEvent = {};
|
|
5382
5400
|
}
|
|
5383
5401
|
/**
|
|
5384
5402
|
* plays the playback
|
|
5385
5403
|
* @method play
|
|
5404
|
+
* @param {Object} customData
|
|
5386
5405
|
*/
|
|
5387
5406
|
|
|
5388
5407
|
}, {
|
|
5389
5408
|
key: "play",
|
|
5390
5409
|
value: function play() {
|
|
5391
|
-
|
|
5410
|
+
var customData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5411
|
+
this.actionsMetadata.playEvent = customData;
|
|
5412
|
+
this.playback.play(customData);
|
|
5392
5413
|
}
|
|
5393
5414
|
/**
|
|
5394
5415
|
* stops the playback
|
|
5395
5416
|
* @method stop
|
|
5417
|
+
* @param {Object} customData
|
|
5396
5418
|
*/
|
|
5397
5419
|
|
|
5398
5420
|
}, {
|
|
5399
5421
|
key: "stop",
|
|
5400
5422
|
value: function stop() {
|
|
5401
|
-
|
|
5423
|
+
var customData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5424
|
+
this.actionsMetadata.stopEvent = customData;
|
|
5425
|
+
this.playback.stop(customData);
|
|
5402
5426
|
this.currentTime = 0;
|
|
5403
5427
|
}
|
|
5404
5428
|
/**
|
|
5405
5429
|
* pauses the playback
|
|
5406
5430
|
* @method pause
|
|
5431
|
+
* @param {Object} customData
|
|
5407
5432
|
*/
|
|
5408
5433
|
|
|
5409
5434
|
}, {
|
|
5410
5435
|
key: "pause",
|
|
5411
5436
|
value: function pause() {
|
|
5412
|
-
|
|
5437
|
+
var customData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5438
|
+
this.actionsMetadata.pauseEvent = customData;
|
|
5439
|
+
this.playback.pause(customData);
|
|
5413
5440
|
}
|
|
5414
5441
|
}, {
|
|
5415
5442
|
key: "onEnded",
|
|
@@ -5417,11 +5444,6 @@
|
|
|
5417
5444
|
this.trigger(Events.CONTAINER_ENDED, this, this.name);
|
|
5418
5445
|
this.currentTime = 0;
|
|
5419
5446
|
}
|
|
5420
|
-
}, {
|
|
5421
|
-
key: "stopped",
|
|
5422
|
-
value: function stopped() {
|
|
5423
|
-
this.trigger(Events.CONTAINER_STOP);
|
|
5424
|
-
}
|
|
5425
5447
|
}, {
|
|
5426
5448
|
key: "clicked",
|
|
5427
5449
|
value: function clicked() {
|
|
@@ -5560,6 +5582,16 @@
|
|
|
5560
5582
|
value: function mouseLeave() {
|
|
5561
5583
|
if (!this.options.chromeless || this.options.allowUserInteraction) this.trigger(Events.CONTAINER_MOUSE_LEAVE);
|
|
5562
5584
|
}
|
|
5585
|
+
}, {
|
|
5586
|
+
key: "mouseUp",
|
|
5587
|
+
value: function mouseUp() {
|
|
5588
|
+
if (!this.options.chromeless || this.options.allowUserInteraction) this.trigger(Events.CONTAINER_MOUSE_UP);
|
|
5589
|
+
}
|
|
5590
|
+
}, {
|
|
5591
|
+
key: "mouseDown",
|
|
5592
|
+
value: function mouseDown() {
|
|
5593
|
+
if (!this.options.chromeless || this.options.allowUserInteraction) this.trigger(Events.CONTAINER_MOUSE_DOWN);
|
|
5594
|
+
}
|
|
5563
5595
|
}, {
|
|
5564
5596
|
key: "settingsUpdate",
|
|
5565
5597
|
value: function settingsUpdate() {
|
|
@@ -5648,7 +5680,7 @@
|
|
|
5648
5680
|
}, {
|
|
5649
5681
|
key: "render",
|
|
5650
5682
|
value: function render() {
|
|
5651
|
-
var style = Styler.getStyleFor(css_248z.toString(), {
|
|
5683
|
+
var style = Styler.getStyleFor(css_248z$8.toString(), {
|
|
5652
5684
|
baseUrl: this.options.baseUrl
|
|
5653
5685
|
});
|
|
5654
5686
|
this.$el.append(style[0]);
|
|
@@ -5673,11 +5705,11 @@
|
|
|
5673
5705
|
*/
|
|
5674
5706
|
|
|
5675
5707
|
var Playback = /*#__PURE__*/function (_UIObject) {
|
|
5676
|
-
_inherits(Playback, _UIObject);
|
|
5708
|
+
_inherits$1(Playback, _UIObject);
|
|
5677
5709
|
|
|
5678
|
-
var _super = _createSuper(Playback);
|
|
5710
|
+
var _super = _createSuper$1(Playback);
|
|
5679
5711
|
|
|
5680
|
-
_createClass(Playback, [{
|
|
5712
|
+
_createClass$1(Playback, [{
|
|
5681
5713
|
key: "isAudioOnly",
|
|
5682
5714
|
|
|
5683
5715
|
/**
|
|
@@ -5739,7 +5771,7 @@
|
|
|
5739
5771
|
function Playback(options, i18n, playerError) {
|
|
5740
5772
|
var _this;
|
|
5741
5773
|
|
|
5742
|
-
_classCallCheck(this, Playback);
|
|
5774
|
+
_classCallCheck$1(this, Playback);
|
|
5743
5775
|
|
|
5744
5776
|
_this = _super.call(this, options);
|
|
5745
5777
|
_this.settings = {};
|
|
@@ -5755,7 +5787,7 @@
|
|
|
5755
5787
|
*/
|
|
5756
5788
|
|
|
5757
5789
|
|
|
5758
|
-
_createClass(Playback, [{
|
|
5790
|
+
_createClass$1(Playback, [{
|
|
5759
5791
|
key: "consent",
|
|
5760
5792
|
value: function consent(cb) {
|
|
5761
5793
|
typeof cb === 'function' && cb();
|
|
@@ -5990,7 +6022,7 @@
|
|
|
5990
6022
|
Object.assign(Playback.prototype, ErrorMixin);
|
|
5991
6023
|
|
|
5992
6024
|
Playback.extend = function (properties) {
|
|
5993
|
-
return extend(Playback, properties);
|
|
6025
|
+
return extend$1(Playback, properties);
|
|
5994
6026
|
};
|
|
5995
6027
|
/**
|
|
5996
6028
|
* checks if the playback can play a given `source`
|
|
@@ -6056,11 +6088,11 @@
|
|
|
6056
6088
|
Playback.type = 'playback';
|
|
6057
6089
|
|
|
6058
6090
|
var ContainerFactory = /*#__PURE__*/function (_BaseObject) {
|
|
6059
|
-
_inherits(ContainerFactory, _BaseObject);
|
|
6091
|
+
_inherits$1(ContainerFactory, _BaseObject);
|
|
6060
6092
|
|
|
6061
|
-
var _super = _createSuper(ContainerFactory);
|
|
6093
|
+
var _super = _createSuper$1(ContainerFactory);
|
|
6062
6094
|
|
|
6063
|
-
_createClass(ContainerFactory, [{
|
|
6095
|
+
_createClass$1(ContainerFactory, [{
|
|
6064
6096
|
key: "options",
|
|
6065
6097
|
get: function get() {
|
|
6066
6098
|
return this._options;
|
|
@@ -6073,7 +6105,7 @@
|
|
|
6073
6105
|
function ContainerFactory(options, loader, i18n, playerError) {
|
|
6074
6106
|
var _this;
|
|
6075
6107
|
|
|
6076
|
-
_classCallCheck(this, ContainerFactory);
|
|
6108
|
+
_classCallCheck$1(this, ContainerFactory);
|
|
6077
6109
|
|
|
6078
6110
|
_this = _super.call(this, options);
|
|
6079
6111
|
_this._i18n = i18n;
|
|
@@ -6082,7 +6114,7 @@
|
|
|
6082
6114
|
return _this;
|
|
6083
6115
|
}
|
|
6084
6116
|
|
|
6085
|
-
_createClass(ContainerFactory, [{
|
|
6117
|
+
_createClass$1(ContainerFactory, [{
|
|
6086
6118
|
key: "createContainers",
|
|
6087
6119
|
value: function createContainers() {
|
|
6088
6120
|
var _this2 = this;
|
|
@@ -6115,7 +6147,7 @@
|
|
|
6115
6147
|
|
|
6116
6148
|
if (resolvedSource.match(/^\/\//)) resolvedSource = window.location.protocol + resolvedSource;
|
|
6117
6149
|
|
|
6118
|
-
var options = _objectSpread2
|
|
6150
|
+
var options = _objectSpread2(_objectSpread2({}, this.options), {}, {
|
|
6119
6151
|
src: resolvedSource,
|
|
6120
6152
|
mimeType: mimeType
|
|
6121
6153
|
});
|
|
@@ -6123,7 +6155,7 @@
|
|
|
6123
6155
|
var playbackPlugin = this.findPlaybackPlugin(resolvedSource, mimeType); // Fallback to empty playback object until we sort out unsupported sources error without NoOp playback
|
|
6124
6156
|
|
|
6125
6157
|
var playback = playbackPlugin ? new playbackPlugin(options, this._i18n, this.playerError) : new Playback();
|
|
6126
|
-
options = _objectSpread2
|
|
6158
|
+
options = _objectSpread2(_objectSpread2({}, options), {}, {
|
|
6127
6159
|
playback: playback
|
|
6128
6160
|
});
|
|
6129
6161
|
var container = new Container(options, this._i18n, this.playerError);
|
|
@@ -6147,9 +6179,9 @@
|
|
|
6147
6179
|
return ContainerFactory;
|
|
6148
6180
|
}(BaseObject);
|
|
6149
6181
|
|
|
6150
|
-
var css_248z$1 = "[data-player] {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-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";
|
|
6182
|
+
var css_248z$1$1 = "[data-player] {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-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";
|
|
6151
6183
|
|
|
6152
|
-
var css_248z$2 = "[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";
|
|
6184
|
+
var css_248z$2$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";
|
|
6153
6185
|
|
|
6154
6186
|
/**
|
|
6155
6187
|
* The Core is responsible to manage Containers and the player state.
|
|
@@ -6160,11 +6192,11 @@
|
|
|
6160
6192
|
*/
|
|
6161
6193
|
|
|
6162
6194
|
var Core = /*#__PURE__*/function (_UIObject) {
|
|
6163
|
-
_inherits(Core, _UIObject);
|
|
6195
|
+
_inherits$1(Core, _UIObject);
|
|
6164
6196
|
|
|
6165
|
-
var _super = _createSuper(Core);
|
|
6197
|
+
var _super = _createSuper$1(Core);
|
|
6166
6198
|
|
|
6167
|
-
_createClass(Core, [{
|
|
6199
|
+
_createClass$1(Core, [{
|
|
6168
6200
|
key: "events",
|
|
6169
6201
|
get: function get() {
|
|
6170
6202
|
return {
|
|
@@ -6263,10 +6295,10 @@
|
|
|
6263
6295
|
function Core(options) {
|
|
6264
6296
|
var _this;
|
|
6265
6297
|
|
|
6266
|
-
_classCallCheck(this, Core);
|
|
6298
|
+
_classCallCheck$1(this, Core);
|
|
6267
6299
|
|
|
6268
6300
|
_this = _super.call(this, options);
|
|
6269
|
-
_this.playerError = new PlayerError(options, _assertThisInitialized(_this));
|
|
6301
|
+
_this.playerError = new PlayerError(options, _assertThisInitialized$1(_this));
|
|
6270
6302
|
|
|
6271
6303
|
_this.configureDomRecycler();
|
|
6272
6304
|
|
|
@@ -6287,7 +6319,7 @@
|
|
|
6287
6319
|
return _this;
|
|
6288
6320
|
}
|
|
6289
6321
|
|
|
6290
|
-
_createClass(Core, [{
|
|
6322
|
+
_createClass$1(Core, [{
|
|
6291
6323
|
key: "configureDomRecycler",
|
|
6292
6324
|
value: function configureDomRecycler() {
|
|
6293
6325
|
var recycleVideo = this.options && this.options.playback && this.options.playback.recycleVideo;
|
|
@@ -6555,7 +6587,7 @@
|
|
|
6555
6587
|
key: "isFullscreen",
|
|
6556
6588
|
value: function isFullscreen() {
|
|
6557
6589
|
// Ensure current instance is in fullscreen mode by checking fullscreen element
|
|
6558
|
-
var fullscreenElement = Fullscreen.fullscreenElement();
|
|
6590
|
+
var fullscreenElement = Fullscreen$1.fullscreenElement();
|
|
6559
6591
|
if (!fullscreenElement) return false;
|
|
6560
6592
|
var playbackEl = this.activePlayback && this.activePlayback.el;
|
|
6561
6593
|
return fullscreenElement === this.el || fullscreenElement === playbackEl;
|
|
@@ -6566,13 +6598,13 @@
|
|
|
6566
6598
|
var _this6 = this;
|
|
6567
6599
|
|
|
6568
6600
|
if (this.isFullscreen()) {
|
|
6569
|
-
Fullscreen.cancelFullscreen();
|
|
6601
|
+
Fullscreen$1.cancelFullscreen();
|
|
6570
6602
|
!Browser.isiOS && this.$el.removeClass('fullscreen nocursor');
|
|
6571
6603
|
} else {
|
|
6572
6604
|
var fullscreenEl = Browser.isiOS ? this.activePlayback && this.activePlayback.el : this.el;
|
|
6573
6605
|
if (!fullscreenEl) return;
|
|
6574
6606
|
Browser.isSafari || Browser.isiOS ? // Safari doesn't return a promise like the other browsers. See more in https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen
|
|
6575
|
-
Fullscreen.requestFullscreen(fullscreenEl) : Fullscreen.requestFullscreen(fullscreenEl).then(function (_) {
|
|
6607
|
+
Fullscreen$1.requestFullscreen(fullscreenEl) : Fullscreen$1.requestFullscreen(fullscreenEl).then(function (_) {
|
|
6576
6608
|
return _;
|
|
6577
6609
|
}, function (error) {
|
|
6578
6610
|
return setTimeout(function () {
|
|
@@ -6617,10 +6649,10 @@
|
|
|
6617
6649
|
}, {
|
|
6618
6650
|
key: "appendToParent",
|
|
6619
6651
|
value: function appendToParent() {
|
|
6620
|
-
var style = Styler.getStyleFor(css_248z$1.toString(), {
|
|
6652
|
+
var style = Styler.getStyleFor(css_248z$1$1.toString(), {
|
|
6621
6653
|
baseUrl: this.options.baseUrl
|
|
6622
6654
|
});
|
|
6623
|
-
var resetStyle = Styler.getStyleFor(css_248z$2.toString(), {
|
|
6655
|
+
var resetStyle = Styler.getStyleFor(css_248z$2$1.toString(), {
|
|
6624
6656
|
baseUrl: this.options.baseUrl
|
|
6625
6657
|
});
|
|
6626
6658
|
this.$el.append(style[0]);
|
|
@@ -6657,11 +6689,11 @@
|
|
|
6657
6689
|
*/
|
|
6658
6690
|
|
|
6659
6691
|
var CoreFactory = /*#__PURE__*/function (_BaseObject) {
|
|
6660
|
-
_inherits(CoreFactory, _BaseObject);
|
|
6692
|
+
_inherits$1(CoreFactory, _BaseObject);
|
|
6661
6693
|
|
|
6662
|
-
var _super = _createSuper(CoreFactory);
|
|
6694
|
+
var _super = _createSuper$1(CoreFactory);
|
|
6663
6695
|
|
|
6664
|
-
_createClass(CoreFactory, [{
|
|
6696
|
+
_createClass$1(CoreFactory, [{
|
|
6665
6697
|
key: "loader",
|
|
6666
6698
|
get: function get() {
|
|
6667
6699
|
return this.player.loader;
|
|
@@ -6677,7 +6709,7 @@
|
|
|
6677
6709
|
function CoreFactory(player) {
|
|
6678
6710
|
var _this;
|
|
6679
6711
|
|
|
6680
|
-
_classCallCheck(this, CoreFactory);
|
|
6712
|
+
_classCallCheck$1(this, CoreFactory);
|
|
6681
6713
|
|
|
6682
6714
|
_this = _super.call(this, player.options);
|
|
6683
6715
|
_this.player = player;
|
|
@@ -6690,7 +6722,7 @@
|
|
|
6690
6722
|
*/
|
|
6691
6723
|
|
|
6692
6724
|
|
|
6693
|
-
_createClass(CoreFactory, [{
|
|
6725
|
+
_createClass$1(CoreFactory, [{
|
|
6694
6726
|
key: "create",
|
|
6695
6727
|
value: function create() {
|
|
6696
6728
|
this.options.loader = this.loader;
|
|
@@ -6736,7 +6768,7 @@
|
|
|
6736
6768
|
var VERSION_REGEX = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/;
|
|
6737
6769
|
|
|
6738
6770
|
var Version = /*#__PURE__*/function () {
|
|
6739
|
-
_createClass(Version, null, [{
|
|
6771
|
+
_createClass$1(Version, null, [{
|
|
6740
6772
|
key: "parse",
|
|
6741
6773
|
value: function parse() {
|
|
6742
6774
|
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -6753,14 +6785,14 @@
|
|
|
6753
6785
|
}]);
|
|
6754
6786
|
|
|
6755
6787
|
function Version(major, minor, patch) {
|
|
6756
|
-
_classCallCheck(this, Version);
|
|
6788
|
+
_classCallCheck$1(this, Version);
|
|
6757
6789
|
|
|
6758
6790
|
this.major = parseInt(major || 0, 10);
|
|
6759
6791
|
this.minor = parseInt(minor || 0, 10);
|
|
6760
6792
|
this.patch = parseInt(patch || 0, 10);
|
|
6761
6793
|
}
|
|
6762
6794
|
|
|
6763
|
-
_createClass(Version, [{
|
|
6795
|
+
_createClass$1(Version, [{
|
|
6764
6796
|
key: "compare",
|
|
6765
6797
|
value: function compare(other) {
|
|
6766
6798
|
var diff = this.major - other.major;
|
|
@@ -6819,9 +6851,9 @@
|
|
|
6819
6851
|
plugins: {},
|
|
6820
6852
|
playbacks: []
|
|
6821
6853
|
};
|
|
6822
|
-
var currentVersion = "0.4.
|
|
6854
|
+
var currentVersion = "0.4.20";
|
|
6823
6855
|
return /*#__PURE__*/function () {
|
|
6824
|
-
_createClass(Loader, null, [{
|
|
6856
|
+
_createClass$1(Loader, null, [{
|
|
6825
6857
|
key: "checkVersionSupport",
|
|
6826
6858
|
value: function checkVersionSupport(entry) {
|
|
6827
6859
|
var _entry$prototype = entry.prototype,
|
|
@@ -6940,7 +6972,7 @@
|
|
|
6940
6972
|
var externalPlugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
6941
6973
|
var playerId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
6942
6974
|
|
|
6943
|
-
_classCallCheck(this, Loader);
|
|
6975
|
+
_classCallCheck$1(this, Loader);
|
|
6944
6976
|
|
|
6945
6977
|
this.playerId = playerId;
|
|
6946
6978
|
this.playbackPlugins = _toConsumableArray(registry.playbacks);
|
|
@@ -6961,7 +6993,7 @@
|
|
|
6961
6993
|
*/
|
|
6962
6994
|
|
|
6963
6995
|
|
|
6964
|
-
_createClass(Loader, [{
|
|
6996
|
+
_createClass$1(Loader, [{
|
|
6965
6997
|
key: "groupPluginsByType",
|
|
6966
6998
|
value: function groupPluginsByType(plugins) {
|
|
6967
6999
|
if (Array.isArray(plugins)) {
|
|
@@ -7081,11 +7113,11 @@
|
|
|
7081
7113
|
*/
|
|
7082
7114
|
|
|
7083
7115
|
var Player = /*#__PURE__*/function (_BaseObject) {
|
|
7084
|
-
_inherits(Player, _BaseObject);
|
|
7116
|
+
_inherits$1(Player, _BaseObject);
|
|
7085
7117
|
|
|
7086
|
-
var _super = _createSuper(Player);
|
|
7118
|
+
var _super = _createSuper$1(Player);
|
|
7087
7119
|
|
|
7088
|
-
_createClass(Player, [{
|
|
7120
|
+
_createClass$1(Player, [{
|
|
7089
7121
|
key: "loader",
|
|
7090
7122
|
set: function set(loader) {
|
|
7091
7123
|
this._loader = loader;
|
|
@@ -7285,7 +7317,7 @@
|
|
|
7285
7317
|
function Player(options) {
|
|
7286
7318
|
var _this;
|
|
7287
7319
|
|
|
7288
|
-
_classCallCheck(this, Player);
|
|
7320
|
+
_classCallCheck$1(this, Player);
|
|
7289
7321
|
|
|
7290
7322
|
_this = _super.call(this, options);
|
|
7291
7323
|
var playbackDefaultOptions = {
|
|
@@ -7316,7 +7348,7 @@
|
|
|
7316
7348
|
|
|
7317
7349
|
_this._registerOptionEventListeners(_this.options.events);
|
|
7318
7350
|
|
|
7319
|
-
_this._coreFactory = new CoreFactory(_assertThisInitialized(_this));
|
|
7351
|
+
_this._coreFactory = new CoreFactory(_assertThisInitialized$1(_this));
|
|
7320
7352
|
if (_this.options.parentId) _this.setParentId(_this.options.parentId);else if (_this.options.parent) _this.attachTo(_this.options.parent);
|
|
7321
7353
|
return _this;
|
|
7322
7354
|
}
|
|
@@ -7328,7 +7360,7 @@
|
|
|
7328
7360
|
*/
|
|
7329
7361
|
|
|
7330
7362
|
|
|
7331
|
-
_createClass(Player, [{
|
|
7363
|
+
_createClass$1(Player, [{
|
|
7332
7364
|
key: "setParentId",
|
|
7333
7365
|
value: function setParentId(parentId) {
|
|
7334
7366
|
var el = document.querySelector(parentId);
|
|
@@ -7753,11 +7785,11 @@
|
|
|
7753
7785
|
*/
|
|
7754
7786
|
|
|
7755
7787
|
var ContainerPlugin = /*#__PURE__*/function (_BaseObject) {
|
|
7756
|
-
_inherits(ContainerPlugin, _BaseObject);
|
|
7788
|
+
_inherits$1(ContainerPlugin, _BaseObject);
|
|
7757
7789
|
|
|
7758
|
-
var _super = _createSuper(ContainerPlugin);
|
|
7790
|
+
var _super = _createSuper$1(ContainerPlugin);
|
|
7759
7791
|
|
|
7760
|
-
_createClass(ContainerPlugin, [{
|
|
7792
|
+
_createClass$1(ContainerPlugin, [{
|
|
7761
7793
|
key: "playerError",
|
|
7762
7794
|
get: function get() {
|
|
7763
7795
|
return this.container.playerError;
|
|
@@ -7767,7 +7799,7 @@
|
|
|
7767
7799
|
function ContainerPlugin(container) {
|
|
7768
7800
|
var _this;
|
|
7769
7801
|
|
|
7770
|
-
_classCallCheck(this, ContainerPlugin);
|
|
7802
|
+
_classCallCheck$1(this, ContainerPlugin);
|
|
7771
7803
|
|
|
7772
7804
|
_this = _super.call(this, container.options);
|
|
7773
7805
|
_this.container = container;
|
|
@@ -7778,7 +7810,7 @@
|
|
|
7778
7810
|
return _this;
|
|
7779
7811
|
}
|
|
7780
7812
|
|
|
7781
|
-
_createClass(ContainerPlugin, [{
|
|
7813
|
+
_createClass$1(ContainerPlugin, [{
|
|
7782
7814
|
key: "enable",
|
|
7783
7815
|
value: function enable() {
|
|
7784
7816
|
if (!this.enabled) {
|
|
@@ -7809,17 +7841,17 @@
|
|
|
7809
7841
|
Object.assign(ContainerPlugin.prototype, ErrorMixin);
|
|
7810
7842
|
|
|
7811
7843
|
ContainerPlugin.extend = function (properties) {
|
|
7812
|
-
return extend(ContainerPlugin, properties);
|
|
7844
|
+
return extend$1(ContainerPlugin, properties);
|
|
7813
7845
|
};
|
|
7814
7846
|
|
|
7815
7847
|
ContainerPlugin.type = 'container';
|
|
7816
7848
|
|
|
7817
7849
|
var CorePlugin = /*#__PURE__*/function (_BaseObject) {
|
|
7818
|
-
_inherits(CorePlugin, _BaseObject);
|
|
7850
|
+
_inherits$1(CorePlugin, _BaseObject);
|
|
7819
7851
|
|
|
7820
|
-
var _super = _createSuper(CorePlugin);
|
|
7852
|
+
var _super = _createSuper$1(CorePlugin);
|
|
7821
7853
|
|
|
7822
|
-
_createClass(CorePlugin, [{
|
|
7854
|
+
_createClass$1(CorePlugin, [{
|
|
7823
7855
|
key: "playerError",
|
|
7824
7856
|
get: function get() {
|
|
7825
7857
|
return this.core.playerError;
|
|
@@ -7829,7 +7861,7 @@
|
|
|
7829
7861
|
function CorePlugin(core) {
|
|
7830
7862
|
var _this;
|
|
7831
7863
|
|
|
7832
|
-
_classCallCheck(this, CorePlugin);
|
|
7864
|
+
_classCallCheck$1(this, CorePlugin);
|
|
7833
7865
|
|
|
7834
7866
|
_this = _super.call(this, core.options);
|
|
7835
7867
|
_this.core = core;
|
|
@@ -7840,7 +7872,7 @@
|
|
|
7840
7872
|
return _this;
|
|
7841
7873
|
}
|
|
7842
7874
|
|
|
7843
|
-
_createClass(CorePlugin, [{
|
|
7875
|
+
_createClass$1(CorePlugin, [{
|
|
7844
7876
|
key: "bindEvents",
|
|
7845
7877
|
value: function bindEvents() {}
|
|
7846
7878
|
}, {
|
|
@@ -7876,7 +7908,7 @@
|
|
|
7876
7908
|
Object.assign(CorePlugin.prototype, ErrorMixin);
|
|
7877
7909
|
|
|
7878
7910
|
CorePlugin.extend = function (properties) {
|
|
7879
|
-
return extend(CorePlugin, properties);
|
|
7911
|
+
return extend$1(CorePlugin, properties);
|
|
7880
7912
|
};
|
|
7881
7913
|
|
|
7882
7914
|
CorePlugin.type = 'core';
|
|
@@ -7890,11 +7922,11 @@
|
|
|
7890
7922
|
*/
|
|
7891
7923
|
|
|
7892
7924
|
var UIContainerPlugin = /*#__PURE__*/function (_UIObject) {
|
|
7893
|
-
_inherits(UIContainerPlugin, _UIObject);
|
|
7925
|
+
_inherits$1(UIContainerPlugin, _UIObject);
|
|
7894
7926
|
|
|
7895
|
-
var _super = _createSuper(UIContainerPlugin);
|
|
7927
|
+
var _super = _createSuper$1(UIContainerPlugin);
|
|
7896
7928
|
|
|
7897
|
-
_createClass(UIContainerPlugin, [{
|
|
7929
|
+
_createClass$1(UIContainerPlugin, [{
|
|
7898
7930
|
key: "playerError",
|
|
7899
7931
|
get: function get() {
|
|
7900
7932
|
return this.container.playerError;
|
|
@@ -7904,7 +7936,7 @@
|
|
|
7904
7936
|
function UIContainerPlugin(container) {
|
|
7905
7937
|
var _this;
|
|
7906
7938
|
|
|
7907
|
-
_classCallCheck(this, UIContainerPlugin);
|
|
7939
|
+
_classCallCheck$1(this, UIContainerPlugin);
|
|
7908
7940
|
|
|
7909
7941
|
_this = _super.call(this, container.options);
|
|
7910
7942
|
_this.container = container;
|
|
@@ -7915,7 +7947,7 @@
|
|
|
7915
7947
|
return _this;
|
|
7916
7948
|
}
|
|
7917
7949
|
|
|
7918
|
-
_createClass(UIContainerPlugin, [{
|
|
7950
|
+
_createClass$1(UIContainerPlugin, [{
|
|
7919
7951
|
key: "enable",
|
|
7920
7952
|
value: function enable() {
|
|
7921
7953
|
if (!this.enabled) {
|
|
@@ -7941,14 +7973,14 @@
|
|
|
7941
7973
|
Object.assign(UIContainerPlugin.prototype, ErrorMixin);
|
|
7942
7974
|
|
|
7943
7975
|
UIContainerPlugin.extend = function (properties) {
|
|
7944
|
-
return extend(UIContainerPlugin, properties);
|
|
7976
|
+
return extend$1(UIContainerPlugin, properties);
|
|
7945
7977
|
};
|
|
7946
7978
|
|
|
7947
7979
|
UIContainerPlugin.type = 'container';
|
|
7948
7980
|
|
|
7949
7981
|
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";
|
|
7950
7982
|
|
|
7951
|
-
var css_248z$3 = "[data-html5-video] {\n position: absolute;\n height: 100%;\n width: 100%;\n display: block; }\n";
|
|
7983
|
+
var css_248z$3$1 = "[data-html5-video] {\n position: absolute;\n height: 100%;\n width: 100%;\n display: block; }\n";
|
|
7952
7984
|
|
|
7953
7985
|
var MIMETYPES = {
|
|
7954
7986
|
'mp4': ['avc1.42E01E', 'avc1.58A01E', 'avc1.4D401E', 'avc1.64001E', 'mp4v.20.8', 'mp4v.20.240', 'mp4a.40.2'].map(function (codec) {
|
|
@@ -7977,11 +8009,11 @@
|
|
|
7977
8009
|
}; // TODO: rename this Playback to HTML5Playback (breaking change, only after 0.3.0)
|
|
7978
8010
|
|
|
7979
8011
|
var HTML5Video = /*#__PURE__*/function (_Playback) {
|
|
7980
|
-
_inherits(HTML5Video, _Playback);
|
|
8012
|
+
_inherits$1(HTML5Video, _Playback);
|
|
7981
8013
|
|
|
7982
|
-
var _super = _createSuper(HTML5Video);
|
|
8014
|
+
var _super = _createSuper$1(HTML5Video);
|
|
7983
8015
|
|
|
7984
|
-
_createClass(HTML5Video, [{
|
|
8016
|
+
_createClass$1(HTML5Video, [{
|
|
7985
8017
|
key: "name",
|
|
7986
8018
|
get: function get() {
|
|
7987
8019
|
return 'html5_video';
|
|
@@ -7990,7 +8022,7 @@
|
|
|
7990
8022
|
key: "supportedVersion",
|
|
7991
8023
|
get: function get() {
|
|
7992
8024
|
return {
|
|
7993
|
-
min: "0.4.
|
|
8025
|
+
min: "0.4.20"
|
|
7994
8026
|
};
|
|
7995
8027
|
}
|
|
7996
8028
|
}, {
|
|
@@ -8084,7 +8116,7 @@
|
|
|
8084
8116
|
function HTML5Video() {
|
|
8085
8117
|
var _this;
|
|
8086
8118
|
|
|
8087
|
-
_classCallCheck(this, HTML5Video);
|
|
8119
|
+
_classCallCheck$1(this, HTML5Video);
|
|
8088
8120
|
|
|
8089
8121
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8090
8122
|
args[_key] = arguments[_key];
|
|
@@ -8140,10 +8172,10 @@
|
|
|
8140
8172
|
return _this;
|
|
8141
8173
|
}
|
|
8142
8174
|
|
|
8143
|
-
_createClass(HTML5Video, [{
|
|
8175
|
+
_createClass$1(HTML5Video, [{
|
|
8144
8176
|
key: "configure",
|
|
8145
8177
|
value: function configure(options) {
|
|
8146
|
-
_get(_getPrototypeOf(HTML5Video.prototype), "configure", this).call(this, options);
|
|
8178
|
+
_get$1(_getPrototypeOf$1(HTML5Video.prototype), "configure", this).call(this, options);
|
|
8147
8179
|
|
|
8148
8180
|
this.el.loop = !!options.loop;
|
|
8149
8181
|
} // See Playback.attemptAutoPlay()
|
|
@@ -8272,7 +8304,7 @@
|
|
|
8272
8304
|
var _this3 = this;
|
|
8273
8305
|
|
|
8274
8306
|
if (this.isPlaying() || this.el._consented) {
|
|
8275
|
-
_get(_getPrototypeOf(HTML5Video.prototype), "consent", this).call(this, cb);
|
|
8307
|
+
_get$1(_getPrototypeOf$1(HTML5Video.prototype), "consent", this).call(this, cb);
|
|
8276
8308
|
} else {
|
|
8277
8309
|
var eventHandler = function eventHandler() {
|
|
8278
8310
|
_this3.el.removeEventListener('loadedmetadata', eventHandler, false);
|
|
@@ -8281,7 +8313,7 @@
|
|
|
8281
8313
|
|
|
8282
8314
|
_this3.el._consented = true; // Flag to call load() only once
|
|
8283
8315
|
|
|
8284
|
-
_get(_getPrototypeOf(HTML5Video.prototype), "consent", _this3).call(_this3, cb);
|
|
8316
|
+
_get$1(_getPrototypeOf$1(HTML5Video.prototype), "consent", _this3).call(_this3, cb);
|
|
8285
8317
|
};
|
|
8286
8318
|
|
|
8287
8319
|
this.el.addEventListener('loadedmetadata', eventHandler, false);
|
|
@@ -8512,7 +8544,7 @@
|
|
|
8512
8544
|
this._destroyed = true;
|
|
8513
8545
|
this.handleTextTrackChange && this.el.textTracks.removeEventListener('change', this.handleTextTrackChange);
|
|
8514
8546
|
|
|
8515
|
-
_get(_getPrototypeOf(HTML5Video.prototype), "destroy", this).call(this);
|
|
8547
|
+
_get$1(_getPrototypeOf$1(HTML5Video.prototype), "destroy", this).call(this);
|
|
8516
8548
|
|
|
8517
8549
|
this.el.removeAttribute('src');
|
|
8518
8550
|
this.el.load(); // load with no src to stop loading of the previous source and avoid leaks
|
|
@@ -8561,20 +8593,30 @@
|
|
|
8561
8593
|
}, {
|
|
8562
8594
|
key: "getDuration",
|
|
8563
8595
|
value: function getDuration() {
|
|
8564
|
-
var _this4 = this;
|
|
8565
|
-
|
|
8566
8596
|
if (this.isLive) {
|
|
8567
|
-
|
|
8597
|
+
if (this.el.seekable.length > 0) {
|
|
8568
8598
|
return this.el.seekable.end(0) - this.el.seekable.start(0);
|
|
8569
|
-
}
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8599
|
+
} else {
|
|
8600
|
+
// `seekable` is not available; this is probably OK, but make sure we're
|
|
8601
|
+
// updating the control bar to reflect it
|
|
8602
|
+
this._scheduleUpdateSettingsCheck();
|
|
8573
8603
|
}
|
|
8574
8604
|
}
|
|
8575
8605
|
|
|
8576
8606
|
return this.el.duration;
|
|
8577
8607
|
}
|
|
8608
|
+
}, {
|
|
8609
|
+
key: "_scheduleUpdateSettingsCheck",
|
|
8610
|
+
value: function _scheduleUpdateSettingsCheck() {
|
|
8611
|
+
var _this4 = this;
|
|
8612
|
+
|
|
8613
|
+
if (this._updateSettingsCheckInFlight) return;
|
|
8614
|
+
this._updateSettingsCheckInFlight = setTimeout(function () {
|
|
8615
|
+
_this4._updateSettings();
|
|
8616
|
+
|
|
8617
|
+
_this4._updateSettingsCheckInFlight = null;
|
|
8618
|
+
}, 1000);
|
|
8619
|
+
}
|
|
8578
8620
|
}, {
|
|
8579
8621
|
key: "_onTimeUpdate",
|
|
8580
8622
|
value: function _onTimeUpdate() {
|
|
@@ -8672,7 +8714,7 @@
|
|
|
8672
8714
|
|
|
8673
8715
|
this._ready();
|
|
8674
8716
|
|
|
8675
|
-
var style = Styler.getStyleFor(css_248z$3.toString(), {
|
|
8717
|
+
var style = Styler.getStyleFor(css_248z$3$1.toString(), {
|
|
8676
8718
|
baseUrl: this.options.baseUrl
|
|
8677
8719
|
});
|
|
8678
8720
|
this.$el.append(style[0]);
|
|
@@ -8770,17 +8812,17 @@
|
|
|
8770
8812
|
};
|
|
8771
8813
|
|
|
8772
8814
|
var HTML5Audio = /*#__PURE__*/function (_HTML5Video) {
|
|
8773
|
-
_inherits(HTML5Audio, _HTML5Video);
|
|
8815
|
+
_inherits$1(HTML5Audio, _HTML5Video);
|
|
8774
8816
|
|
|
8775
|
-
var _super = _createSuper(HTML5Audio);
|
|
8817
|
+
var _super = _createSuper$1(HTML5Audio);
|
|
8776
8818
|
|
|
8777
8819
|
function HTML5Audio() {
|
|
8778
|
-
_classCallCheck(this, HTML5Audio);
|
|
8820
|
+
_classCallCheck$1(this, HTML5Audio);
|
|
8779
8821
|
|
|
8780
8822
|
return _super.apply(this, arguments);
|
|
8781
8823
|
}
|
|
8782
8824
|
|
|
8783
|
-
_createClass(HTML5Audio, [{
|
|
8825
|
+
_createClass$1(HTML5Audio, [{
|
|
8784
8826
|
key: "updateSettings",
|
|
8785
8827
|
value: function updateSettings() {
|
|
8786
8828
|
this.settings.left = ['playpause', 'position', 'duration'];
|
|
@@ -8801,7 +8843,7 @@
|
|
|
8801
8843
|
key: "supportedVersion",
|
|
8802
8844
|
get: function get() {
|
|
8803
8845
|
return {
|
|
8804
|
-
min: "0.4.
|
|
8846
|
+
min: "0.4.20"
|
|
8805
8847
|
};
|
|
8806
8848
|
}
|
|
8807
8849
|
}, {
|
|
@@ -8829,14 +8871,14 @@
|
|
|
8829
8871
|
return HTML5Video._canPlay('audio', mimetypes, resourceUrl, mimeType);
|
|
8830
8872
|
};
|
|
8831
8873
|
|
|
8832
|
-
var css_248z$4 = "[data-html-img] {\n max-width: 100%;\n max-height: 100%; }\n";
|
|
8874
|
+
var css_248z$4$1 = "[data-html-img] {\n max-width: 100%;\n max-height: 100%; }\n";
|
|
8833
8875
|
|
|
8834
8876
|
var HTMLImg = /*#__PURE__*/function (_Playback) {
|
|
8835
|
-
_inherits(HTMLImg, _Playback);
|
|
8877
|
+
_inherits$1(HTMLImg, _Playback);
|
|
8836
8878
|
|
|
8837
|
-
var _super = _createSuper(HTMLImg);
|
|
8879
|
+
var _super = _createSuper$1(HTMLImg);
|
|
8838
8880
|
|
|
8839
|
-
_createClass(HTMLImg, [{
|
|
8881
|
+
_createClass$1(HTMLImg, [{
|
|
8840
8882
|
key: "getPlaybackType",
|
|
8841
8883
|
value: function getPlaybackType() {
|
|
8842
8884
|
return Playback.NO_OP;
|
|
@@ -8850,7 +8892,7 @@
|
|
|
8850
8892
|
key: "supportedVersion",
|
|
8851
8893
|
get: function get() {
|
|
8852
8894
|
return {
|
|
8853
|
-
min: "0.4.
|
|
8895
|
+
min: "0.4.20"
|
|
8854
8896
|
};
|
|
8855
8897
|
}
|
|
8856
8898
|
}, {
|
|
@@ -8879,17 +8921,17 @@
|
|
|
8879
8921
|
function HTMLImg(params) {
|
|
8880
8922
|
var _this;
|
|
8881
8923
|
|
|
8882
|
-
_classCallCheck(this, HTMLImg);
|
|
8924
|
+
_classCallCheck$1(this, HTMLImg);
|
|
8883
8925
|
|
|
8884
8926
|
_this = _super.call(this, params);
|
|
8885
8927
|
_this.el.src = params.src;
|
|
8886
8928
|
return _this;
|
|
8887
8929
|
}
|
|
8888
8930
|
|
|
8889
|
-
_createClass(HTMLImg, [{
|
|
8931
|
+
_createClass$1(HTMLImg, [{
|
|
8890
8932
|
key: "render",
|
|
8891
8933
|
value: function render() {
|
|
8892
|
-
var style = Styler.getStyleFor(css_248z$4.toString(), {
|
|
8934
|
+
var style = Styler.getStyleFor(css_248z$4$1.toString(), {
|
|
8893
8935
|
baseUrl: this.options.baseUrl
|
|
8894
8936
|
});
|
|
8895
8937
|
this.$el.append(style[0]);
|
|
@@ -8920,14 +8962,14 @@
|
|
|
8920
8962
|
|
|
8921
8963
|
var noOpHTML = "<canvas data-no-op-canvas></canvas>\n<p data-no-op-msg><%=message%></p><p>\n</p>";
|
|
8922
8964
|
|
|
8923
|
-
var css_248z$5 = "[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";
|
|
8965
|
+
var css_248z$5$1 = "[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";
|
|
8924
8966
|
|
|
8925
8967
|
var NoOp = /*#__PURE__*/function (_Playback) {
|
|
8926
|
-
_inherits(NoOp, _Playback);
|
|
8968
|
+
_inherits$1(NoOp, _Playback);
|
|
8927
8969
|
|
|
8928
|
-
var _super = _createSuper(NoOp);
|
|
8970
|
+
var _super = _createSuper$1(NoOp);
|
|
8929
8971
|
|
|
8930
|
-
_createClass(NoOp, [{
|
|
8972
|
+
_createClass$1(NoOp, [{
|
|
8931
8973
|
key: "name",
|
|
8932
8974
|
get: function get() {
|
|
8933
8975
|
return 'no_op';
|
|
@@ -8936,7 +8978,7 @@
|
|
|
8936
8978
|
key: "supportedVersion",
|
|
8937
8979
|
get: function get() {
|
|
8938
8980
|
return {
|
|
8939
|
-
min: "0.4.
|
|
8981
|
+
min: "0.4.20"
|
|
8940
8982
|
};
|
|
8941
8983
|
}
|
|
8942
8984
|
}, {
|
|
@@ -8956,7 +8998,7 @@
|
|
|
8956
8998
|
function NoOp() {
|
|
8957
8999
|
var _this;
|
|
8958
9000
|
|
|
8959
|
-
_classCallCheck(this, NoOp);
|
|
9001
|
+
_classCallCheck$1(this, NoOp);
|
|
8960
9002
|
|
|
8961
9003
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8962
9004
|
args[_key] = arguments[_key];
|
|
@@ -8967,11 +9009,11 @@
|
|
|
8967
9009
|
return _this;
|
|
8968
9010
|
}
|
|
8969
9011
|
|
|
8970
|
-
_createClass(NoOp, [{
|
|
9012
|
+
_createClass$1(NoOp, [{
|
|
8971
9013
|
key: "render",
|
|
8972
9014
|
value: function render() {
|
|
8973
9015
|
var playbackNotSupported = this.options.playbackNotSupportedMessage || this.i18n.t('playback_not_supported');
|
|
8974
|
-
var style = Styler.getStyleFor(css_248z$5.toString(), {
|
|
9016
|
+
var style = Styler.getStyleFor(css_248z$5$1.toString(), {
|
|
8975
9017
|
baseUrl: this.options.baseUrl
|
|
8976
9018
|
});
|
|
8977
9019
|
this.$el.append(style[0]);
|
|
@@ -9073,11 +9115,11 @@
|
|
|
9073
9115
|
*/
|
|
9074
9116
|
|
|
9075
9117
|
var Strings = /*#__PURE__*/function (_CorePlugin) {
|
|
9076
|
-
_inherits(Strings, _CorePlugin);
|
|
9118
|
+
_inherits$1(Strings, _CorePlugin);
|
|
9077
9119
|
|
|
9078
|
-
var _super = _createSuper(Strings);
|
|
9120
|
+
var _super = _createSuper$1(Strings);
|
|
9079
9121
|
|
|
9080
|
-
_createClass(Strings, [{
|
|
9122
|
+
_createClass$1(Strings, [{
|
|
9081
9123
|
key: "name",
|
|
9082
9124
|
get: function get() {
|
|
9083
9125
|
return 'strings';
|
|
@@ -9086,7 +9128,7 @@
|
|
|
9086
9128
|
key: "supportedVersion",
|
|
9087
9129
|
get: function get() {
|
|
9088
9130
|
return {
|
|
9089
|
-
min: "0.4.
|
|
9131
|
+
min: "0.4.20"
|
|
9090
9132
|
};
|
|
9091
9133
|
}
|
|
9092
9134
|
}]);
|
|
@@ -9094,7 +9136,7 @@
|
|
|
9094
9136
|
function Strings(core) {
|
|
9095
9137
|
var _this;
|
|
9096
9138
|
|
|
9097
|
-
_classCallCheck(this, Strings);
|
|
9139
|
+
_classCallCheck$1(this, Strings);
|
|
9098
9140
|
|
|
9099
9141
|
_this = _super.call(this, core);
|
|
9100
9142
|
|
|
@@ -9110,7 +9152,7 @@
|
|
|
9110
9152
|
*/
|
|
9111
9153
|
|
|
9112
9154
|
|
|
9113
|
-
_createClass(Strings, [{
|
|
9155
|
+
_createClass$1(Strings, [{
|
|
9114
9156
|
key: "t",
|
|
9115
9157
|
value: function t(key) {
|
|
9116
9158
|
var lang = this._language();
|
|
@@ -9136,6 +9178,14 @@
|
|
|
9136
9178
|
'default_error_title': 'Could not play video.',
|
|
9137
9179
|
'default_error_message': 'There was a problem trying to load the video.'
|
|
9138
9180
|
},
|
|
9181
|
+
'de': {
|
|
9182
|
+
'live': 'Live',
|
|
9183
|
+
'back_to_live': 'Zurück zum Live-Video',
|
|
9184
|
+
'disabled': 'Deaktiviert',
|
|
9185
|
+
'playback_not_supported': 'Ihr Browser unterstützt das Playback Verfahren nicht. Bitte vesuchen Sie es mit einem anderen Browser.',
|
|
9186
|
+
'default_error_title': 'Video kann nicht abgespielt werden',
|
|
9187
|
+
'default_error_message': 'Es gab ein Problem beim Laden des Videos'
|
|
9188
|
+
},
|
|
9139
9189
|
'pt': {
|
|
9140
9190
|
'live': 'ao vivo',
|
|
9141
9191
|
'back_to_live': 'voltar para o ao vivo',
|
|
@@ -9186,6 +9236,7 @@
|
|
|
9186
9236
|
}
|
|
9187
9237
|
};
|
|
9188
9238
|
this._messages = zepto.extend(true, defaultMessages, this.core.options.strings || {});
|
|
9239
|
+
this._messages['de-DE'] = this._messages['de'];
|
|
9189
9240
|
this._messages['pt-BR'] = this._messages['pt'];
|
|
9190
9241
|
this._messages['en-US'] = this._messages['en'];
|
|
9191
9242
|
this._messages['es-419'] = this._messages['es'];
|
|
@@ -9200,17 +9251,17 @@
|
|
|
9200
9251
|
}(CorePlugin);
|
|
9201
9252
|
|
|
9202
9253
|
var SourcesPlugin = /*#__PURE__*/function (_CorePlugin) {
|
|
9203
|
-
_inherits(SourcesPlugin, _CorePlugin);
|
|
9254
|
+
_inherits$1(SourcesPlugin, _CorePlugin);
|
|
9204
9255
|
|
|
9205
|
-
var _super = _createSuper(SourcesPlugin);
|
|
9256
|
+
var _super = _createSuper$1(SourcesPlugin);
|
|
9206
9257
|
|
|
9207
9258
|
function SourcesPlugin() {
|
|
9208
|
-
_classCallCheck(this, SourcesPlugin);
|
|
9259
|
+
_classCallCheck$1(this, SourcesPlugin);
|
|
9209
9260
|
|
|
9210
9261
|
return _super.apply(this, arguments);
|
|
9211
9262
|
}
|
|
9212
9263
|
|
|
9213
|
-
_createClass(SourcesPlugin, [{
|
|
9264
|
+
_createClass$1(SourcesPlugin, [{
|
|
9214
9265
|
key: "bindEvents",
|
|
9215
9266
|
value: function bindEvents() {
|
|
9216
9267
|
this.listenTo(this.core, Events.CORE_CONTAINERS_CREATED, this.onContainersCreated);
|
|
@@ -9234,7 +9285,7 @@
|
|
|
9234
9285
|
key: "supportedVersion",
|
|
9235
9286
|
get: function get() {
|
|
9236
9287
|
return {
|
|
9237
|
-
min: "0.4.
|
|
9288
|
+
min: "0.4.20"
|
|
9238
9289
|
};
|
|
9239
9290
|
}
|
|
9240
9291
|
}]);
|
|
@@ -9243,7 +9294,7 @@
|
|
|
9243
9294
|
}(CorePlugin);
|
|
9244
9295
|
|
|
9245
9296
|
// Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
9246
|
-
var version = "0.4.
|
|
9297
|
+
var version$1 = "0.4.20"; // Built-in Plugins/Playbacks
|
|
9247
9298
|
|
|
9248
9299
|
Loader.registerPlugin(Strings);
|
|
9249
9300
|
Loader.registerPlugin(SourcesPlugin);
|
|
@@ -9272,18 +9323,18 @@
|
|
|
9272
9323
|
HTMLImg: HTMLImg,
|
|
9273
9324
|
Log: Log,
|
|
9274
9325
|
Styler: Styler,
|
|
9275
|
-
version: version,
|
|
9326
|
+
version: version$1,
|
|
9276
9327
|
template: tmpl,
|
|
9277
9328
|
$: zepto
|
|
9278
9329
|
};
|
|
9279
9330
|
|
|
9280
|
-
function _classCallCheck
|
|
9331
|
+
function _classCallCheck(instance, Constructor) {
|
|
9281
9332
|
if (!(instance instanceof Constructor)) {
|
|
9282
9333
|
throw new TypeError("Cannot call a class as a function");
|
|
9283
9334
|
}
|
|
9284
9335
|
}
|
|
9285
9336
|
|
|
9286
|
-
function _defineProperties
|
|
9337
|
+
function _defineProperties(target, props) {
|
|
9287
9338
|
for (var i = 0; i < props.length; i++) {
|
|
9288
9339
|
var descriptor = props[i];
|
|
9289
9340
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9293,13 +9344,13 @@
|
|
|
9293
9344
|
}
|
|
9294
9345
|
}
|
|
9295
9346
|
|
|
9296
|
-
function _createClass
|
|
9297
|
-
if (protoProps) _defineProperties
|
|
9298
|
-
if (staticProps) _defineProperties
|
|
9347
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
9348
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
9349
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
9299
9350
|
return Constructor;
|
|
9300
9351
|
}
|
|
9301
9352
|
|
|
9302
|
-
function _inherits
|
|
9353
|
+
function _inherits(subClass, superClass) {
|
|
9303
9354
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9304
9355
|
throw new TypeError("Super expression must either be null or a function");
|
|
9305
9356
|
}
|
|
@@ -9311,39 +9362,39 @@
|
|
|
9311
9362
|
configurable: true
|
|
9312
9363
|
}
|
|
9313
9364
|
});
|
|
9314
|
-
if (superClass) _setPrototypeOf
|
|
9365
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
9315
9366
|
}
|
|
9316
9367
|
|
|
9317
|
-
function _getPrototypeOf
|
|
9318
|
-
_getPrototypeOf
|
|
9368
|
+
function _getPrototypeOf(o) {
|
|
9369
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
9319
9370
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
9320
9371
|
};
|
|
9321
|
-
return _getPrototypeOf
|
|
9372
|
+
return _getPrototypeOf(o);
|
|
9322
9373
|
}
|
|
9323
9374
|
|
|
9324
|
-
function _setPrototypeOf
|
|
9325
|
-
_setPrototypeOf
|
|
9375
|
+
function _setPrototypeOf(o, p) {
|
|
9376
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
9326
9377
|
o.__proto__ = p;
|
|
9327
9378
|
return o;
|
|
9328
9379
|
};
|
|
9329
9380
|
|
|
9330
|
-
return _setPrototypeOf
|
|
9381
|
+
return _setPrototypeOf(o, p);
|
|
9331
9382
|
}
|
|
9332
9383
|
|
|
9333
|
-
function _isNativeReflectConstruct
|
|
9384
|
+
function _isNativeReflectConstruct() {
|
|
9334
9385
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9335
9386
|
if (Reflect.construct.sham) return false;
|
|
9336
9387
|
if (typeof Proxy === "function") return true;
|
|
9337
9388
|
|
|
9338
9389
|
try {
|
|
9339
|
-
|
|
9390
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
9340
9391
|
return true;
|
|
9341
9392
|
} catch (e) {
|
|
9342
9393
|
return false;
|
|
9343
9394
|
}
|
|
9344
9395
|
}
|
|
9345
9396
|
|
|
9346
|
-
function _assertThisInitialized
|
|
9397
|
+
function _assertThisInitialized(self) {
|
|
9347
9398
|
if (self === void 0) {
|
|
9348
9399
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9349
9400
|
}
|
|
@@ -9351,48 +9402,48 @@
|
|
|
9351
9402
|
return self;
|
|
9352
9403
|
}
|
|
9353
9404
|
|
|
9354
|
-
function _possibleConstructorReturn
|
|
9405
|
+
function _possibleConstructorReturn(self, call) {
|
|
9355
9406
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
9356
9407
|
return call;
|
|
9357
9408
|
}
|
|
9358
9409
|
|
|
9359
|
-
return _assertThisInitialized
|
|
9410
|
+
return _assertThisInitialized(self);
|
|
9360
9411
|
}
|
|
9361
9412
|
|
|
9362
|
-
function _createSuper
|
|
9363
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct
|
|
9413
|
+
function _createSuper(Derived) {
|
|
9414
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
9364
9415
|
|
|
9365
9416
|
return function _createSuperInternal() {
|
|
9366
|
-
var Super = _getPrototypeOf
|
|
9417
|
+
var Super = _getPrototypeOf(Derived),
|
|
9367
9418
|
result;
|
|
9368
9419
|
|
|
9369
9420
|
if (hasNativeReflectConstruct) {
|
|
9370
|
-
var NewTarget = _getPrototypeOf
|
|
9421
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
9371
9422
|
|
|
9372
9423
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
9373
9424
|
} else {
|
|
9374
9425
|
result = Super.apply(this, arguments);
|
|
9375
9426
|
}
|
|
9376
9427
|
|
|
9377
|
-
return _possibleConstructorReturn
|
|
9428
|
+
return _possibleConstructorReturn(this, result);
|
|
9378
9429
|
};
|
|
9379
9430
|
}
|
|
9380
9431
|
|
|
9381
|
-
function _superPropBase
|
|
9432
|
+
function _superPropBase(object, property) {
|
|
9382
9433
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
9383
|
-
object = _getPrototypeOf
|
|
9434
|
+
object = _getPrototypeOf(object);
|
|
9384
9435
|
if (object === null) break;
|
|
9385
9436
|
}
|
|
9386
9437
|
|
|
9387
9438
|
return object;
|
|
9388
9439
|
}
|
|
9389
9440
|
|
|
9390
|
-
function _get
|
|
9441
|
+
function _get(target, property, receiver) {
|
|
9391
9442
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
9392
|
-
_get
|
|
9443
|
+
_get = Reflect.get;
|
|
9393
9444
|
} else {
|
|
9394
|
-
_get
|
|
9395
|
-
var base = _superPropBase
|
|
9445
|
+
_get = function _get(target, property, receiver) {
|
|
9446
|
+
var base = _superPropBase(target, property);
|
|
9396
9447
|
|
|
9397
9448
|
if (!base) return;
|
|
9398
9449
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
@@ -9405,15 +9456,21 @@
|
|
|
9405
9456
|
};
|
|
9406
9457
|
}
|
|
9407
9458
|
|
|
9408
|
-
return _get
|
|
9459
|
+
return _get(target, property, receiver || target);
|
|
9409
9460
|
}
|
|
9410
9461
|
|
|
9411
9462
|
var ClickToPausePlugin = /*#__PURE__*/function (_ContainerPlugin) {
|
|
9412
|
-
_inherits
|
|
9463
|
+
_inherits(ClickToPausePlugin, _ContainerPlugin);
|
|
9413
9464
|
|
|
9414
|
-
var _super = _createSuper
|
|
9465
|
+
var _super = _createSuper(ClickToPausePlugin);
|
|
9415
9466
|
|
|
9416
|
-
|
|
9467
|
+
function ClickToPausePlugin(container) {
|
|
9468
|
+
_classCallCheck(this, ClickToPausePlugin);
|
|
9469
|
+
|
|
9470
|
+
return _super.call(this, container);
|
|
9471
|
+
}
|
|
9472
|
+
|
|
9473
|
+
_createClass(ClickToPausePlugin, [{
|
|
9417
9474
|
key: "name",
|
|
9418
9475
|
get: function get() {
|
|
9419
9476
|
return 'click_to_pause';
|
|
@@ -9422,18 +9479,15 @@
|
|
|
9422
9479
|
key: "supportedVersion",
|
|
9423
9480
|
get: function get() {
|
|
9424
9481
|
return {
|
|
9425
|
-
min: "0.4.
|
|
9482
|
+
min: "0.4.20"
|
|
9426
9483
|
};
|
|
9427
9484
|
}
|
|
9428
|
-
}
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
}
|
|
9435
|
-
|
|
9436
|
-
_createClass$1(ClickToPausePlugin, [{
|
|
9485
|
+
}, {
|
|
9486
|
+
key: "config",
|
|
9487
|
+
get: function get() {
|
|
9488
|
+
return this.container.options.clickToPauseConfig || {};
|
|
9489
|
+
}
|
|
9490
|
+
}, {
|
|
9437
9491
|
key: "bindEvents",
|
|
9438
9492
|
value: function bindEvents() {
|
|
9439
9493
|
this.listenTo(this.container, Events.CONTAINER_CLICK, this.click);
|
|
@@ -9442,8 +9496,10 @@
|
|
|
9442
9496
|
}, {
|
|
9443
9497
|
key: "click",
|
|
9444
9498
|
value: function click() {
|
|
9499
|
+
var onClickPayload = this.config.onClickPayload;
|
|
9500
|
+
|
|
9445
9501
|
if (this.container.getPlaybackType() !== Playback.LIVE || this.container.isDvrEnabled()) {
|
|
9446
|
-
if (this.container.isPlaying()) this.container.pause();else this.container.play();
|
|
9502
|
+
if (this.container.isPlaying()) this.container.pause(onClickPayload);else this.container.play(onClickPayload);
|
|
9447
9503
|
}
|
|
9448
9504
|
}
|
|
9449
9505
|
}, {
|
|
@@ -9464,42 +9520,29 @@
|
|
|
9464
9520
|
|
|
9465
9521
|
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";
|
|
9466
9522
|
|
|
9467
|
-
|
|
9468
|
-
if ( ref === void 0 ) ref = {};
|
|
9469
|
-
var insertAt = ref.insertAt;
|
|
9470
|
-
|
|
9471
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
9523
|
+
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";
|
|
9472
9524
|
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
style.type = 'text/css';
|
|
9476
|
-
|
|
9477
|
-
if (insertAt === 'top') {
|
|
9478
|
-
if (head.firstChild) {
|
|
9479
|
-
head.insertBefore(style, head.firstChild);
|
|
9480
|
-
} else {
|
|
9481
|
-
head.appendChild(style);
|
|
9482
|
-
}
|
|
9483
|
-
} else {
|
|
9484
|
-
head.appendChild(style);
|
|
9485
|
-
}
|
|
9525
|
+
var ClosedCaptions$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
9526
|
+
_inherits(ClosedCaptions, _UICorePlugin);
|
|
9486
9527
|
|
|
9487
|
-
|
|
9488
|
-
style.styleSheet.cssText = css;
|
|
9489
|
-
} else {
|
|
9490
|
-
style.appendChild(document.createTextNode(css));
|
|
9491
|
-
}
|
|
9492
|
-
}
|
|
9528
|
+
var _super = _createSuper(ClosedCaptions);
|
|
9493
9529
|
|
|
9494
|
-
|
|
9495
|
-
|
|
9530
|
+
function ClosedCaptions(core) {
|
|
9531
|
+
var _this;
|
|
9496
9532
|
|
|
9497
|
-
|
|
9498
|
-
_inherits$1(ClosedCaptions, _UICorePlugin);
|
|
9533
|
+
_classCallCheck(this, ClosedCaptions);
|
|
9499
9534
|
|
|
9500
|
-
|
|
9535
|
+
_this = _super.call(this, core);
|
|
9536
|
+
var config = core.options.closedCaptionsConfig;
|
|
9537
|
+
_this._title = config && config.title ? config.title : null;
|
|
9538
|
+
_this._ariaLabel = config && config.ariaLabel ? config.ariaLabel : 'cc-button';
|
|
9539
|
+
_this._labelCb = config && config.labelCallback && typeof config.labelCallback === 'function' ? config.labelCallback : function (track) {
|
|
9540
|
+
return track.name;
|
|
9541
|
+
};
|
|
9542
|
+
return _this;
|
|
9543
|
+
}
|
|
9501
9544
|
|
|
9502
|
-
_createClass
|
|
9545
|
+
_createClass(ClosedCaptions, [{
|
|
9503
9546
|
key: "name",
|
|
9504
9547
|
get: function get() {
|
|
9505
9548
|
return 'closed_captions';
|
|
@@ -9508,7 +9551,7 @@
|
|
|
9508
9551
|
key: "supportedVersion",
|
|
9509
9552
|
get: function get() {
|
|
9510
9553
|
return {
|
|
9511
|
-
min: "0.4.
|
|
9554
|
+
min: "0.4.20"
|
|
9512
9555
|
};
|
|
9513
9556
|
}
|
|
9514
9557
|
}, {
|
|
@@ -9532,24 +9575,7 @@
|
|
|
9532
9575
|
'data-cc-controls': ''
|
|
9533
9576
|
};
|
|
9534
9577
|
}
|
|
9535
|
-
}
|
|
9536
|
-
|
|
9537
|
-
function ClosedCaptions(core) {
|
|
9538
|
-
var _this;
|
|
9539
|
-
|
|
9540
|
-
_classCallCheck$1(this, ClosedCaptions);
|
|
9541
|
-
|
|
9542
|
-
_this = _super.call(this, core);
|
|
9543
|
-
var config = core.options.closedCaptionsConfig;
|
|
9544
|
-
_this._title = config && config.title ? config.title : null;
|
|
9545
|
-
_this._ariaLabel = config && config.ariaLabel ? config.ariaLabel : 'cc-button';
|
|
9546
|
-
_this._labelCb = config && config.labelCallback && typeof config.labelCallback === 'function' ? config.labelCallback : function (track) {
|
|
9547
|
-
return track.name;
|
|
9548
|
-
};
|
|
9549
|
-
return _this;
|
|
9550
|
-
}
|
|
9551
|
-
|
|
9552
|
-
_createClass$1(ClosedCaptions, [{
|
|
9578
|
+
}, {
|
|
9553
9579
|
key: "bindEvents",
|
|
9554
9580
|
value: function bindEvents() {
|
|
9555
9581
|
this.listenTo(this.core, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.containerChanged);
|
|
@@ -9641,6 +9667,9 @@
|
|
|
9641
9667
|
tracks[i].label = this._labelCb(tracks[i]);
|
|
9642
9668
|
}
|
|
9643
9669
|
|
|
9670
|
+
var style = Styler.getStyleFor(css_248z$7, {
|
|
9671
|
+
baseUrl: this.options.baseUrl
|
|
9672
|
+
});
|
|
9644
9673
|
this.$el.html(this.template({
|
|
9645
9674
|
ariaLabel: this._ariaLabel,
|
|
9646
9675
|
disabledLabel: this.core.i18n.t('disabled'),
|
|
@@ -9649,7 +9678,7 @@
|
|
|
9649
9678
|
}));
|
|
9650
9679
|
this.$ccButton = this.$el.find('button.cc-button[data-cc-button]');
|
|
9651
9680
|
this.$ccButton.append(ccIcon);
|
|
9652
|
-
this.$el.append(
|
|
9681
|
+
this.$el.append(style[0]);
|
|
9653
9682
|
}
|
|
9654
9683
|
}, {
|
|
9655
9684
|
key: "render",
|
|
@@ -9666,15 +9695,26 @@
|
|
|
9666
9695
|
|
|
9667
9696
|
var dvrHTML = "<div class=\"live-info\"><%= live %></div>\n<button type=\"button\" class=\"live-button\" aria-label=\"<%= backToLive %>\"><%= backToLive %></button>\n";
|
|
9668
9697
|
|
|
9669
|
-
var css_248z$
|
|
9670
|
-
|
|
9698
|
+
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";
|
|
9699
|
+
|
|
9700
|
+
var DVRControls$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
9701
|
+
_inherits(DVRControls, _UICorePlugin);
|
|
9702
|
+
|
|
9703
|
+
var _super = _createSuper(DVRControls);
|
|
9704
|
+
|
|
9705
|
+
function DVRControls(core) {
|
|
9706
|
+
var _this;
|
|
9707
|
+
|
|
9708
|
+
_classCallCheck(this, DVRControls);
|
|
9671
9709
|
|
|
9672
|
-
|
|
9673
|
-
_inherits$1(DVRControls, _UICorePlugin);
|
|
9710
|
+
_this = _super.call(this, core);
|
|
9674
9711
|
|
|
9675
|
-
|
|
9712
|
+
_this.settingsUpdate();
|
|
9676
9713
|
|
|
9677
|
-
|
|
9714
|
+
return _this;
|
|
9715
|
+
}
|
|
9716
|
+
|
|
9717
|
+
_createClass(DVRControls, [{
|
|
9678
9718
|
key: "template",
|
|
9679
9719
|
get: function get() {
|
|
9680
9720
|
return tmpl(dvrHTML);
|
|
@@ -9688,7 +9728,7 @@
|
|
|
9688
9728
|
key: "supportedVersion",
|
|
9689
9729
|
get: function get() {
|
|
9690
9730
|
return {
|
|
9691
|
-
min: "0.4.
|
|
9731
|
+
min: "0.4.20"
|
|
9692
9732
|
};
|
|
9693
9733
|
}
|
|
9694
9734
|
}, {
|
|
@@ -9706,21 +9746,7 @@
|
|
|
9706
9746
|
'data-dvr-controls': ''
|
|
9707
9747
|
};
|
|
9708
9748
|
}
|
|
9709
|
-
}
|
|
9710
|
-
|
|
9711
|
-
function DVRControls(core) {
|
|
9712
|
-
var _this;
|
|
9713
|
-
|
|
9714
|
-
_classCallCheck$1(this, DVRControls);
|
|
9715
|
-
|
|
9716
|
-
_this = _super.call(this, core);
|
|
9717
|
-
|
|
9718
|
-
_this.settingsUpdate();
|
|
9719
|
-
|
|
9720
|
-
return _this;
|
|
9721
|
-
}
|
|
9722
|
-
|
|
9723
|
-
_createClass$1(DVRControls, [{
|
|
9749
|
+
}, {
|
|
9724
9750
|
key: "bindEvents",
|
|
9725
9751
|
value: function bindEvents() {
|
|
9726
9752
|
this.bindCoreEvents();
|
|
@@ -9803,10 +9829,14 @@
|
|
|
9803
9829
|
}, {
|
|
9804
9830
|
key: "render",
|
|
9805
9831
|
value: function render() {
|
|
9832
|
+
var style = Styler.getStyleFor(css_248z$6, {
|
|
9833
|
+
baseUrl: this.options.baseUrl
|
|
9834
|
+
});
|
|
9806
9835
|
this.$el.html(this.template({
|
|
9807
9836
|
live: this.core.i18n.t('live'),
|
|
9808
9837
|
backToLive: this.core.i18n.t('back_to_live')
|
|
9809
9838
|
}));
|
|
9839
|
+
this.$el.append(style[0]);
|
|
9810
9840
|
|
|
9811
9841
|
if (this.shouldRender()) {
|
|
9812
9842
|
this.core.mediaControl.$el.addClass('live');
|
|
@@ -9820,18 +9850,30 @@
|
|
|
9820
9850
|
return DVRControls;
|
|
9821
9851
|
}(UICorePlugin);
|
|
9822
9852
|
|
|
9823
|
-
var EndVideo = /*#__PURE__*/function (_CorePlugin) {
|
|
9824
|
-
_inherits
|
|
9853
|
+
var EndVideo$1 = /*#__PURE__*/function (_CorePlugin) {
|
|
9854
|
+
_inherits(EndVideo, _CorePlugin);
|
|
9825
9855
|
|
|
9826
|
-
var _super = _createSuper
|
|
9856
|
+
var _super = _createSuper(EndVideo);
|
|
9827
9857
|
|
|
9828
9858
|
function EndVideo() {
|
|
9829
|
-
_classCallCheck
|
|
9859
|
+
_classCallCheck(this, EndVideo);
|
|
9830
9860
|
|
|
9831
9861
|
return _super.apply(this, arguments);
|
|
9832
9862
|
}
|
|
9833
9863
|
|
|
9834
|
-
_createClass
|
|
9864
|
+
_createClass(EndVideo, [{
|
|
9865
|
+
key: "name",
|
|
9866
|
+
get: function get() {
|
|
9867
|
+
return 'end_video';
|
|
9868
|
+
}
|
|
9869
|
+
}, {
|
|
9870
|
+
key: "supportedVersion",
|
|
9871
|
+
get: function get() {
|
|
9872
|
+
return {
|
|
9873
|
+
min: "0.4.20"
|
|
9874
|
+
};
|
|
9875
|
+
}
|
|
9876
|
+
}, {
|
|
9835
9877
|
key: "bindEvents",
|
|
9836
9878
|
value: function bindEvents() {
|
|
9837
9879
|
this.listenTo(this.core, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.containerChanged);
|
|
@@ -9854,18 +9896,6 @@
|
|
|
9854
9896
|
var exitOnEnd = typeof this.core.options.exitFullscreenOnEnd === 'undefined' || this.core.options.exitFullscreenOnEnd;
|
|
9855
9897
|
if (exitOnEnd && this.core.isFullscreen()) this.core.toggleFullscreen();
|
|
9856
9898
|
}
|
|
9857
|
-
}, {
|
|
9858
|
-
key: "name",
|
|
9859
|
-
get: function get() {
|
|
9860
|
-
return 'end_video';
|
|
9861
|
-
}
|
|
9862
|
-
}, {
|
|
9863
|
-
key: "supportedVersion",
|
|
9864
|
-
get: function get() {
|
|
9865
|
-
return {
|
|
9866
|
-
min: "0.4.17"
|
|
9867
|
-
};
|
|
9868
|
-
}
|
|
9869
9899
|
}]);
|
|
9870
9900
|
|
|
9871
9901
|
return EndVideo;
|
|
@@ -9875,15 +9905,24 @@
|
|
|
9875
9905
|
|
|
9876
9906
|
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";
|
|
9877
9907
|
|
|
9878
|
-
var css_248z$
|
|
9879
|
-
|
|
9908
|
+
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";
|
|
9909
|
+
|
|
9910
|
+
var ErrorScreen$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
9911
|
+
_inherits(ErrorScreen, _UICorePlugin);
|
|
9912
|
+
|
|
9913
|
+
var _super = _createSuper(ErrorScreen);
|
|
9880
9914
|
|
|
9881
|
-
|
|
9882
|
-
|
|
9915
|
+
function ErrorScreen(core) {
|
|
9916
|
+
var _this;
|
|
9883
9917
|
|
|
9884
|
-
|
|
9918
|
+
_classCallCheck(this, ErrorScreen);
|
|
9885
9919
|
|
|
9886
|
-
|
|
9920
|
+
_this = _super.call(this, core);
|
|
9921
|
+
if (_this.options.disableErrorScreen) return _possibleConstructorReturn(_this, _this.disable());
|
|
9922
|
+
return _this;
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
_createClass(ErrorScreen, [{
|
|
9887
9926
|
key: "name",
|
|
9888
9927
|
get: function get() {
|
|
9889
9928
|
return 'error_screen';
|
|
@@ -9892,7 +9931,7 @@
|
|
|
9892
9931
|
key: "supportedVersion",
|
|
9893
9932
|
get: function get() {
|
|
9894
9933
|
return {
|
|
9895
|
-
min: "0.4.
|
|
9934
|
+
min: "0.4.20"
|
|
9896
9935
|
};
|
|
9897
9936
|
}
|
|
9898
9937
|
}, {
|
|
@@ -9913,19 +9952,7 @@
|
|
|
9913
9952
|
'data-error-screen': ''
|
|
9914
9953
|
};
|
|
9915
9954
|
}
|
|
9916
|
-
}
|
|
9917
|
-
|
|
9918
|
-
function ErrorScreen(core) {
|
|
9919
|
-
var _this;
|
|
9920
|
-
|
|
9921
|
-
_classCallCheck$1(this, ErrorScreen);
|
|
9922
|
-
|
|
9923
|
-
_this = _super.call(this, core);
|
|
9924
|
-
if (_this.options.disableErrorScreen) return _possibleConstructorReturn$1(_this, _this.disable());
|
|
9925
|
-
return _this;
|
|
9926
|
-
}
|
|
9927
|
-
|
|
9928
|
-
_createClass$1(ErrorScreen, [{
|
|
9955
|
+
}, {
|
|
9929
9956
|
key: "bindEvents",
|
|
9930
9957
|
value: function bindEvents() {
|
|
9931
9958
|
this.listenTo(this.core, Events.ERROR, this.onError);
|
|
@@ -9987,6 +10014,9 @@
|
|
|
9987
10014
|
key: "render",
|
|
9988
10015
|
value: function render() {
|
|
9989
10016
|
if (!this.err) return;
|
|
10017
|
+
var style = Styler.getStyleFor(css_248z$5, {
|
|
10018
|
+
baseUrl: this.options.baseUrl
|
|
10019
|
+
});
|
|
9990
10020
|
this.$el.html(this.template({
|
|
9991
10021
|
title: this.err.UI.title,
|
|
9992
10022
|
message: this.err.UI.message,
|
|
@@ -9994,6 +10024,7 @@
|
|
|
9994
10024
|
icon: this.err.UI.icon || '',
|
|
9995
10025
|
reloadIcon: reloadIcon
|
|
9996
10026
|
}));
|
|
10027
|
+
this.$el.append(style[0]);
|
|
9997
10028
|
this.core.$el.append(this.el);
|
|
9998
10029
|
this.bindReload();
|
|
9999
10030
|
return this;
|
|
@@ -10009,12 +10040,25 @@
|
|
|
10009
10040
|
|
|
10010
10041
|
var oldIcon = zepto('link[rel="shortcut icon"]');
|
|
10011
10042
|
|
|
10012
|
-
var Favicon = /*#__PURE__*/function (_CorePlugin) {
|
|
10013
|
-
_inherits
|
|
10043
|
+
var Favicon$1 = /*#__PURE__*/function (_CorePlugin) {
|
|
10044
|
+
_inherits(Favicon, _CorePlugin);
|
|
10045
|
+
|
|
10046
|
+
var _super = _createSuper(Favicon);
|
|
10014
10047
|
|
|
10015
|
-
|
|
10048
|
+
function Favicon(core) {
|
|
10049
|
+
var _this;
|
|
10050
|
+
|
|
10051
|
+
_classCallCheck(this, Favicon);
|
|
10052
|
+
|
|
10053
|
+
_this = _super.call(this, core);
|
|
10054
|
+
_this._container = null;
|
|
10016
10055
|
|
|
10017
|
-
|
|
10056
|
+
_this.configure();
|
|
10057
|
+
|
|
10058
|
+
return _this;
|
|
10059
|
+
}
|
|
10060
|
+
|
|
10061
|
+
_createClass(Favicon, [{
|
|
10018
10062
|
key: "name",
|
|
10019
10063
|
get: function get() {
|
|
10020
10064
|
return 'favicon';
|
|
@@ -10023,7 +10067,7 @@
|
|
|
10023
10067
|
key: "supportedVersion",
|
|
10024
10068
|
get: function get() {
|
|
10025
10069
|
return {
|
|
10026
|
-
min: "0.4.
|
|
10070
|
+
min: "0.4.20"
|
|
10027
10071
|
};
|
|
10028
10072
|
}
|
|
10029
10073
|
}, {
|
|
@@ -10031,22 +10075,7 @@
|
|
|
10031
10075
|
get: function get() {
|
|
10032
10076
|
return oldIcon;
|
|
10033
10077
|
}
|
|
10034
|
-
}
|
|
10035
|
-
|
|
10036
|
-
function Favicon(core) {
|
|
10037
|
-
var _this;
|
|
10038
|
-
|
|
10039
|
-
_classCallCheck$1(this, Favicon);
|
|
10040
|
-
|
|
10041
|
-
_this = _super.call(this, core);
|
|
10042
|
-
_this._container = null;
|
|
10043
|
-
|
|
10044
|
-
_this.configure();
|
|
10045
|
-
|
|
10046
|
-
return _this;
|
|
10047
|
-
}
|
|
10048
|
-
|
|
10049
|
-
_createClass$1(Favicon, [{
|
|
10078
|
+
}, {
|
|
10050
10079
|
key: "configure",
|
|
10051
10080
|
value: function configure() {
|
|
10052
10081
|
if (this.core.options.changeFavicon) {
|
|
@@ -10081,14 +10110,14 @@
|
|
|
10081
10110
|
}, {
|
|
10082
10111
|
key: "disable",
|
|
10083
10112
|
value: function disable() {
|
|
10084
|
-
_get
|
|
10113
|
+
_get(_getPrototypeOf(Favicon.prototype), "disable", this).call(this);
|
|
10085
10114
|
|
|
10086
10115
|
this.resetIcon();
|
|
10087
10116
|
}
|
|
10088
10117
|
}, {
|
|
10089
10118
|
key: "destroy",
|
|
10090
10119
|
value: function destroy() {
|
|
10091
|
-
_get
|
|
10120
|
+
_get(_getPrototypeOf(Favicon.prototype), "destroy", this).call(this);
|
|
10092
10121
|
|
|
10093
10122
|
this.resetIcon();
|
|
10094
10123
|
}
|
|
@@ -10138,29 +10167,15 @@
|
|
|
10138
10167
|
return Favicon;
|
|
10139
10168
|
}(CorePlugin);
|
|
10140
10169
|
|
|
10141
|
-
var GoogleAnalytics = /*#__PURE__*/function (_ContainerPlugin) {
|
|
10142
|
-
_inherits
|
|
10170
|
+
var GoogleAnalytics$1 = /*#__PURE__*/function (_ContainerPlugin) {
|
|
10171
|
+
_inherits(GoogleAnalytics, _ContainerPlugin);
|
|
10143
10172
|
|
|
10144
|
-
var _super = _createSuper
|
|
10145
|
-
|
|
10146
|
-
_createClass$1(GoogleAnalytics, [{
|
|
10147
|
-
key: "name",
|
|
10148
|
-
get: function get() {
|
|
10149
|
-
return 'google_analytics';
|
|
10150
|
-
}
|
|
10151
|
-
}, {
|
|
10152
|
-
key: "supportedVersion",
|
|
10153
|
-
get: function get() {
|
|
10154
|
-
return {
|
|
10155
|
-
min: "0.4.17"
|
|
10156
|
-
};
|
|
10157
|
-
}
|
|
10158
|
-
}]);
|
|
10173
|
+
var _super = _createSuper(GoogleAnalytics);
|
|
10159
10174
|
|
|
10160
10175
|
function GoogleAnalytics(container) {
|
|
10161
10176
|
var _this;
|
|
10162
10177
|
|
|
10163
|
-
_classCallCheck
|
|
10178
|
+
_classCallCheck(this, GoogleAnalytics);
|
|
10164
10179
|
|
|
10165
10180
|
_this = _super.call(this, container);
|
|
10166
10181
|
|
|
@@ -10176,7 +10191,19 @@
|
|
|
10176
10191
|
return _this;
|
|
10177
10192
|
}
|
|
10178
10193
|
|
|
10179
|
-
_createClass
|
|
10194
|
+
_createClass(GoogleAnalytics, [{
|
|
10195
|
+
key: "name",
|
|
10196
|
+
get: function get() {
|
|
10197
|
+
return 'google_analytics';
|
|
10198
|
+
}
|
|
10199
|
+
}, {
|
|
10200
|
+
key: "supportedVersion",
|
|
10201
|
+
get: function get() {
|
|
10202
|
+
return {
|
|
10203
|
+
min: "0.4.20"
|
|
10204
|
+
};
|
|
10205
|
+
}
|
|
10206
|
+
}, {
|
|
10180
10207
|
key: "embedScript",
|
|
10181
10208
|
value: function embedScript() {
|
|
10182
10209
|
var _this2 = this;
|
|
@@ -10668,8 +10695,7 @@
|
|
|
10668
10695
|
Kibo: Kibo
|
|
10669
10696
|
};
|
|
10670
10697
|
|
|
10671
|
-
var css_248z$3$1 = ".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: -webkit-grabbing !important;\n cursor: grabbing !important;\n cursor: url(\"closed-hand.cur\"), move; }\n .media-control[data-media-control].dragging * {\n cursor: -webkit-grabbing !important;\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";
|
|
10672
|
-
styleInject(css_248z$3$1);
|
|
10698
|
+
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: -webkit-grabbing !important;\n cursor: grabbing !important;\n cursor: url(\"closed-hand.cur\"), move; }\n .media-control[data-media-control].dragging * {\n cursor: -webkit-grabbing !important;\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";
|
|
10673
10699
|
|
|
10674
10700
|
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";
|
|
10675
10701
|
|
|
@@ -10685,18 +10711,63 @@
|
|
|
10685
10711
|
|
|
10686
10712
|
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>";
|
|
10687
10713
|
|
|
10688
|
-
var Config
|
|
10689
|
-
Fullscreen
|
|
10714
|
+
var Config = Utils.Config,
|
|
10715
|
+
Fullscreen = Utils.Fullscreen,
|
|
10690
10716
|
formatTime$1 = Utils.formatTime,
|
|
10691
|
-
extend
|
|
10692
|
-
removeArrayItem
|
|
10717
|
+
extend = Utils.extend,
|
|
10718
|
+
removeArrayItem = Utils.removeArrayItem;
|
|
10719
|
+
|
|
10720
|
+
var MediaControl$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
10721
|
+
_inherits(MediaControl, _UICorePlugin);
|
|
10722
|
+
|
|
10723
|
+
var _super = _createSuper(MediaControl);
|
|
10724
|
+
|
|
10725
|
+
function MediaControl(core) {
|
|
10726
|
+
var _this;
|
|
10727
|
+
|
|
10728
|
+
_classCallCheck(this, MediaControl);
|
|
10729
|
+
|
|
10730
|
+
_this = _super.call(this, core);
|
|
10731
|
+
_this.persistConfig = _this.options.persistConfig;
|
|
10732
|
+
_this.currentPositionValue = null;
|
|
10733
|
+
_this.currentDurationValue = null;
|
|
10734
|
+
_this.keepVisible = false;
|
|
10735
|
+
_this.fullScreenOnVideoTagSupported = null; // unknown
|
|
10736
|
+
|
|
10737
|
+
_this.setInitialVolume();
|
|
10738
|
+
|
|
10739
|
+
_this.settings = {
|
|
10740
|
+
left: ['play', 'stop', 'pause'],
|
|
10741
|
+
right: ['volume'],
|
|
10742
|
+
"default": ['position', 'seekbar', 'duration']
|
|
10743
|
+
};
|
|
10744
|
+
_this.kibo = new Kibo(_this.options.focusElement);
|
|
10745
|
+
|
|
10746
|
+
_this.bindKeyEvents();
|
|
10747
|
+
|
|
10748
|
+
if (_this.container) {
|
|
10749
|
+
if (!zepto.isEmptyObject(_this.container.settings)) _this.settings = zepto.extend({}, _this.container.settings);
|
|
10750
|
+
} else {
|
|
10751
|
+
_this.settings = {};
|
|
10752
|
+
}
|
|
10753
|
+
|
|
10754
|
+
_this.userDisabled = false;
|
|
10755
|
+
if (_this.container && _this.container.mediaControlDisabled || _this.options.chromeless) _this.disable();
|
|
10756
|
+
|
|
10757
|
+
_this.stopDragHandler = function (event) {
|
|
10758
|
+
return _this.stopDrag(event);
|
|
10759
|
+
};
|
|
10693
10760
|
|
|
10694
|
-
|
|
10695
|
-
|
|
10761
|
+
_this.updateDragHandler = function (event) {
|
|
10762
|
+
return _this.updateDrag(event);
|
|
10763
|
+
};
|
|
10696
10764
|
|
|
10697
|
-
|
|
10765
|
+
zepto(document).bind('mouseup', _this.stopDragHandler);
|
|
10766
|
+
zepto(document).bind('mousemove', _this.updateDragHandler);
|
|
10767
|
+
return _this;
|
|
10768
|
+
}
|
|
10698
10769
|
|
|
10699
|
-
_createClass
|
|
10770
|
+
_createClass(MediaControl, [{
|
|
10700
10771
|
key: "name",
|
|
10701
10772
|
get: function get() {
|
|
10702
10773
|
return 'media_control';
|
|
@@ -10705,7 +10776,7 @@
|
|
|
10705
10776
|
key: "supportedVersion",
|
|
10706
10777
|
get: function get() {
|
|
10707
10778
|
return {
|
|
10708
|
-
min: "0.4.
|
|
10779
|
+
min: "0.4.20"
|
|
10709
10780
|
};
|
|
10710
10781
|
}
|
|
10711
10782
|
}, {
|
|
@@ -10771,54 +10842,7 @@
|
|
|
10771
10842
|
get: function get() {
|
|
10772
10843
|
return this.volume === 0;
|
|
10773
10844
|
}
|
|
10774
|
-
}
|
|
10775
|
-
|
|
10776
|
-
function MediaControl(core) {
|
|
10777
|
-
var _this;
|
|
10778
|
-
|
|
10779
|
-
_classCallCheck$1(this, MediaControl);
|
|
10780
|
-
|
|
10781
|
-
_this = _super.call(this, core);
|
|
10782
|
-
_this.persistConfig = _this.options.persistConfig;
|
|
10783
|
-
_this.currentPositionValue = null;
|
|
10784
|
-
_this.currentDurationValue = null;
|
|
10785
|
-
_this.keepVisible = false;
|
|
10786
|
-
_this.fullScreenOnVideoTagSupported = null; // unknown
|
|
10787
|
-
|
|
10788
|
-
_this.setInitialVolume();
|
|
10789
|
-
|
|
10790
|
-
_this.settings = {
|
|
10791
|
-
left: ['play', 'stop', 'pause'],
|
|
10792
|
-
right: ['volume'],
|
|
10793
|
-
"default": ['position', 'seekbar', 'duration']
|
|
10794
|
-
};
|
|
10795
|
-
_this.kibo = new Kibo(_this.options.focusElement);
|
|
10796
|
-
|
|
10797
|
-
_this.bindKeyEvents();
|
|
10798
|
-
|
|
10799
|
-
if (_this.container) {
|
|
10800
|
-
if (!zepto.isEmptyObject(_this.container.settings)) _this.settings = zepto.extend({}, _this.container.settings);
|
|
10801
|
-
} else {
|
|
10802
|
-
_this.settings = {};
|
|
10803
|
-
}
|
|
10804
|
-
|
|
10805
|
-
_this.userDisabled = false;
|
|
10806
|
-
if (_this.container && _this.container.mediaControlDisabled || _this.options.chromeless) _this.disable();
|
|
10807
|
-
|
|
10808
|
-
_this.stopDragHandler = function (event) {
|
|
10809
|
-
return _this.stopDrag(event);
|
|
10810
|
-
};
|
|
10811
|
-
|
|
10812
|
-
_this.updateDragHandler = function (event) {
|
|
10813
|
-
return _this.updateDrag(event);
|
|
10814
|
-
};
|
|
10815
|
-
|
|
10816
|
-
zepto(document).bind('mouseup', _this.stopDragHandler);
|
|
10817
|
-
zepto(document).bind('mousemove', _this.updateDragHandler);
|
|
10818
|
-
return _this;
|
|
10819
|
-
}
|
|
10820
|
-
|
|
10821
|
-
_createClass$1(MediaControl, [{
|
|
10845
|
+
}, {
|
|
10822
10846
|
key: "getExternalInterface",
|
|
10823
10847
|
value: function getExternalInterface() {
|
|
10824
10848
|
var _this2 = this;
|
|
@@ -10904,7 +10928,7 @@
|
|
|
10904
10928
|
}, {
|
|
10905
10929
|
key: "setInitialVolume",
|
|
10906
10930
|
value: function setInitialVolume() {
|
|
10907
|
-
var initialVolume = this.persistConfig ? Config
|
|
10931
|
+
var initialVolume = this.persistConfig ? Config.restore('volume') : 100;
|
|
10908
10932
|
var options = this.container && this.container.options || this.options;
|
|
10909
10933
|
this.setVolume(options.mute ? 0 : initialVolume, true);
|
|
10910
10934
|
}
|
|
@@ -10919,7 +10943,7 @@
|
|
|
10919
10943
|
var video = this.playback && this.playback.el; // video.webkitSupportsFullscreen is deprecated but iOS appears to only use this
|
|
10920
10944
|
// see https://github.com/clappr/clappr/issues/1127
|
|
10921
10945
|
|
|
10922
|
-
if (!Fullscreen
|
|
10946
|
+
if (!Fullscreen.fullscreenEnabled() && video.webkitSupportsFullscreen) {
|
|
10923
10947
|
this.fullScreenOnVideoTagSupported = true;
|
|
10924
10948
|
this.settingsUpdate();
|
|
10925
10949
|
}
|
|
@@ -11091,7 +11115,7 @@
|
|
|
11091
11115
|
// if the container is not ready etc
|
|
11092
11116
|
|
|
11093
11117
|
this.intendedVolume = value;
|
|
11094
|
-
this.persistConfig && !isInitialVolume && Config
|
|
11118
|
+
this.persistConfig && !isInitialVolume && Config.persist('volume', value);
|
|
11095
11119
|
|
|
11096
11120
|
var setWhenContainerReady = function setWhenContainerReady() {
|
|
11097
11121
|
if (_this4.container && _this4.container.isReady) {
|
|
@@ -11301,11 +11325,11 @@
|
|
|
11301
11325
|
value: function settingsUpdate() {
|
|
11302
11326
|
var newSettings = this.getSettings();
|
|
11303
11327
|
|
|
11304
|
-
if (newSettings && !this.fullScreenOnVideoTagSupported && !Fullscreen
|
|
11328
|
+
if (newSettings && !this.fullScreenOnVideoTagSupported && !Fullscreen.fullscreenEnabled()) {
|
|
11305
11329
|
// remove fullscreen from settings if it is present
|
|
11306
|
-
newSettings["default"] && removeArrayItem
|
|
11307
|
-
newSettings.left && removeArrayItem
|
|
11308
|
-
newSettings.right && removeArrayItem
|
|
11330
|
+
newSettings["default"] && removeArrayItem(newSettings["default"], 'fullscreen');
|
|
11331
|
+
newSettings.left && removeArrayItem(newSettings.left, 'fullscreen');
|
|
11332
|
+
newSettings.right && removeArrayItem(newSettings.right, 'fullscreen');
|
|
11309
11333
|
}
|
|
11310
11334
|
|
|
11311
11335
|
var settingsChanged = JSON.stringify(this.settings) !== JSON.stringify(newSettings);
|
|
@@ -11481,7 +11505,7 @@
|
|
|
11481
11505
|
this.unbindKeyEvents();
|
|
11482
11506
|
this.stopListening();
|
|
11483
11507
|
|
|
11484
|
-
_get
|
|
11508
|
+
_get(_getPrototypeOf(MediaControl.prototype), "destroy", this).call(this);
|
|
11485
11509
|
}
|
|
11486
11510
|
/**
|
|
11487
11511
|
* enables to configure the media control after its creation
|
|
@@ -11505,6 +11529,10 @@
|
|
|
11505
11529
|
this.settings && this.$el.html(this.template({
|
|
11506
11530
|
settings: this.settings
|
|
11507
11531
|
}));
|
|
11532
|
+
var style = Styler.getStyleFor(css_248z$4, {
|
|
11533
|
+
baseUrl: this.options.baseUrl
|
|
11534
|
+
});
|
|
11535
|
+
this.$el.append(style[0]);
|
|
11508
11536
|
this.createCachedElements();
|
|
11509
11537
|
this.$playPauseToggle.addClass('paused');
|
|
11510
11538
|
this.$playStopToggle.addClass('stopped');
|
|
@@ -11553,21 +11581,37 @@
|
|
|
11553
11581
|
return MediaControl;
|
|
11554
11582
|
}(UICorePlugin);
|
|
11555
11583
|
|
|
11556
|
-
MediaControl.extend = function (properties) {
|
|
11557
|
-
return extend$1
|
|
11584
|
+
MediaControl$1.extend = function (properties) {
|
|
11585
|
+
return extend(MediaControl$1, properties);
|
|
11558
11586
|
};
|
|
11559
11587
|
|
|
11560
11588
|
var posterHTML = "<div class=\"play-wrapper\" data-poster></div>\n";
|
|
11561
11589
|
|
|
11562
|
-
var css_248z$
|
|
11563
|
-
styleInject(css_248z$4$1);
|
|
11590
|
+
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";
|
|
11564
11591
|
|
|
11565
11592
|
var PosterPlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
11566
|
-
_inherits
|
|
11593
|
+
_inherits(PosterPlugin, _UIContainerPlugin);
|
|
11594
|
+
|
|
11595
|
+
var _super = _createSuper(PosterPlugin);
|
|
11596
|
+
|
|
11597
|
+
function PosterPlugin(container) {
|
|
11598
|
+
var _this;
|
|
11567
11599
|
|
|
11568
|
-
|
|
11600
|
+
_classCallCheck(this, PosterPlugin);
|
|
11569
11601
|
|
|
11570
|
-
|
|
11602
|
+
_this = _super.call(this, container);
|
|
11603
|
+
_this.hasStartedPlaying = false;
|
|
11604
|
+
_this.playRequested = false;
|
|
11605
|
+
|
|
11606
|
+
_this.render();
|
|
11607
|
+
|
|
11608
|
+
setTimeout(function () {
|
|
11609
|
+
return _this.update();
|
|
11610
|
+
}, 0);
|
|
11611
|
+
return _this;
|
|
11612
|
+
}
|
|
11613
|
+
|
|
11614
|
+
_createClass(PosterPlugin, [{
|
|
11571
11615
|
key: "name",
|
|
11572
11616
|
get: function get() {
|
|
11573
11617
|
return 'poster';
|
|
@@ -11576,7 +11620,7 @@
|
|
|
11576
11620
|
key: "supportedVersion",
|
|
11577
11621
|
get: function get() {
|
|
11578
11622
|
return {
|
|
11579
|
-
min: "0.4.
|
|
11623
|
+
min: "0.4.20"
|
|
11580
11624
|
};
|
|
11581
11625
|
}
|
|
11582
11626
|
}, {
|
|
@@ -11610,26 +11654,7 @@
|
|
|
11610
11654
|
get: function get() {
|
|
11611
11655
|
return !this.options.poster || this.options.poster.showOnVideoEnd || this.options.poster.showOnVideoEnd === undefined;
|
|
11612
11656
|
}
|
|
11613
|
-
}
|
|
11614
|
-
|
|
11615
|
-
function PosterPlugin(container) {
|
|
11616
|
-
var _this;
|
|
11617
|
-
|
|
11618
|
-
_classCallCheck$1(this, PosterPlugin);
|
|
11619
|
-
|
|
11620
|
-
_this = _super.call(this, container);
|
|
11621
|
-
_this.hasStartedPlaying = false;
|
|
11622
|
-
_this.playRequested = false;
|
|
11623
|
-
|
|
11624
|
-
_this.render();
|
|
11625
|
-
|
|
11626
|
-
setTimeout(function () {
|
|
11627
|
-
return _this.update();
|
|
11628
|
-
}, 0);
|
|
11629
|
-
return _this;
|
|
11630
|
-
}
|
|
11631
|
-
|
|
11632
|
-
_createClass$1(PosterPlugin, [{
|
|
11657
|
+
}, {
|
|
11633
11658
|
key: "bindEvents",
|
|
11634
11659
|
value: function bindEvents() {
|
|
11635
11660
|
this.listenTo(this.container, Events.CONTAINER_STOP, this.onStop);
|
|
@@ -11690,7 +11715,7 @@
|
|
|
11690
11715
|
if (!this.options.chromeless || this.options.allowUserInteraction) {
|
|
11691
11716
|
this.playRequested = true;
|
|
11692
11717
|
this.update();
|
|
11693
|
-
this.container.playback && this.container.playback.
|
|
11718
|
+
this.container.playback && (this.container.playback._consented = true);
|
|
11694
11719
|
this.container.play();
|
|
11695
11720
|
}
|
|
11696
11721
|
|
|
@@ -11732,7 +11757,11 @@
|
|
|
11732
11757
|
key: "render",
|
|
11733
11758
|
value: function render() {
|
|
11734
11759
|
if (!this.shouldRender) return;
|
|
11760
|
+
var style = Styler.getStyleFor(css_248z$3, {
|
|
11761
|
+
baseUrl: this.options.baseUrl
|
|
11762
|
+
});
|
|
11735
11763
|
this.$el.html(this.template());
|
|
11764
|
+
this.$el.append(style[0]);
|
|
11736
11765
|
var isRegularPoster = this.options.poster && this.options.poster.custom === undefined;
|
|
11737
11766
|
|
|
11738
11767
|
if (isRegularPoster) {
|
|
@@ -11740,10 +11769,12 @@
|
|
|
11740
11769
|
this.$el.css({
|
|
11741
11770
|
'background-image': 'url(' + posterUrl + ')'
|
|
11742
11771
|
});
|
|
11772
|
+
this.removeVideoElementPoster();
|
|
11743
11773
|
} else if (this.options.poster) {
|
|
11744
11774
|
this.$el.css({
|
|
11745
11775
|
'background': this.options.poster.custom
|
|
11746
11776
|
});
|
|
11777
|
+
this.removeVideoElementPoster();
|
|
11747
11778
|
}
|
|
11748
11779
|
|
|
11749
11780
|
this.container.$el.append(this.el);
|
|
@@ -11763,6 +11794,11 @@
|
|
|
11763
11794
|
this.update();
|
|
11764
11795
|
return this;
|
|
11765
11796
|
}
|
|
11797
|
+
}, {
|
|
11798
|
+
key: "removeVideoElementPoster",
|
|
11799
|
+
value: function removeVideoElementPoster() {
|
|
11800
|
+
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');
|
|
11801
|
+
}
|
|
11766
11802
|
}]);
|
|
11767
11803
|
|
|
11768
11804
|
return PosterPlugin;
|
|
@@ -11770,17 +11806,35 @@
|
|
|
11770
11806
|
|
|
11771
11807
|
var seekTimeHTML = "<span data-seek-time></span>\n<span data-duration></span>\n";
|
|
11772
11808
|
|
|
11773
|
-
var css_248z$
|
|
11774
|
-
|
|
11809
|
+
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";
|
|
11810
|
+
|
|
11811
|
+
var formatTime = Utils.formatTime;
|
|
11812
|
+
|
|
11813
|
+
var SeekTime$1 = /*#__PURE__*/function (_UICorePlugin) {
|
|
11814
|
+
_inherits(SeekTime, _UICorePlugin);
|
|
11775
11815
|
|
|
11776
|
-
|
|
11816
|
+
var _super = _createSuper(SeekTime);
|
|
11817
|
+
|
|
11818
|
+
function SeekTime(core) {
|
|
11819
|
+
var _this;
|
|
11820
|
+
|
|
11821
|
+
_classCallCheck(this, SeekTime);
|
|
11822
|
+
|
|
11823
|
+
_this = _super.call(this, core);
|
|
11824
|
+
_this.hoveringOverSeekBar = false;
|
|
11825
|
+
_this.hoverPosition = null;
|
|
11826
|
+
_this.duration = null;
|
|
11827
|
+
_this.firstFragDateTime = null;
|
|
11828
|
+
_this.actualLiveTime = !!_this.mediaControl.options.actualLiveTime;
|
|
11777
11829
|
|
|
11778
|
-
|
|
11779
|
-
|
|
11830
|
+
if (_this.actualLiveTime) {
|
|
11831
|
+
if (_this.mediaControl.options.actualLiveServerTime) _this.actualLiveServerTimeDiff = new Date().getTime() - new Date(_this.mediaControl.options.actualLiveServerTime).getTime();else _this.actualLiveServerTimeDiff = 0;
|
|
11832
|
+
}
|
|
11780
11833
|
|
|
11781
|
-
|
|
11834
|
+
return _this;
|
|
11835
|
+
}
|
|
11782
11836
|
|
|
11783
|
-
_createClass
|
|
11837
|
+
_createClass(SeekTime, [{
|
|
11784
11838
|
key: "name",
|
|
11785
11839
|
get: function get() {
|
|
11786
11840
|
return 'seek_time';
|
|
@@ -11789,7 +11843,7 @@
|
|
|
11789
11843
|
key: "supportedVersion",
|
|
11790
11844
|
get: function get() {
|
|
11791
11845
|
return {
|
|
11792
|
-
min: "0.4.
|
|
11846
|
+
min: "0.4.20"
|
|
11793
11847
|
};
|
|
11794
11848
|
}
|
|
11795
11849
|
}, {
|
|
@@ -11830,28 +11884,7 @@
|
|
|
11830
11884
|
get: function get() {
|
|
11831
11885
|
return this.actualLiveTime && this.isLiveStreamWithDvr;
|
|
11832
11886
|
}
|
|
11833
|
-
}
|
|
11834
|
-
|
|
11835
|
-
function SeekTime(core) {
|
|
11836
|
-
var _this;
|
|
11837
|
-
|
|
11838
|
-
_classCallCheck$1(this, SeekTime);
|
|
11839
|
-
|
|
11840
|
-
_this = _super.call(this, core);
|
|
11841
|
-
_this.hoveringOverSeekBar = false;
|
|
11842
|
-
_this.hoverPosition = null;
|
|
11843
|
-
_this.duration = null;
|
|
11844
|
-
_this.firstFragDateTime = null;
|
|
11845
|
-
_this.actualLiveTime = !!_this.mediaControl.options.actualLiveTime;
|
|
11846
|
-
|
|
11847
|
-
if (_this.actualLiveTime) {
|
|
11848
|
-
if (_this.mediaControl.options.actualLiveServerTime) _this.actualLiveServerTimeDiff = new Date().getTime() - new Date(_this.mediaControl.options.actualLiveServerTime).getTime();else _this.actualLiveServerTimeDiff = 0;
|
|
11849
|
-
}
|
|
11850
|
-
|
|
11851
|
-
return _this;
|
|
11852
|
-
}
|
|
11853
|
-
|
|
11854
|
-
_createClass$1(SeekTime, [{
|
|
11887
|
+
}, {
|
|
11855
11888
|
key: "bindEvents",
|
|
11856
11889
|
value: function bindEvents() {
|
|
11857
11890
|
this.listenTo(this.mediaControl, Events.MEDIACONTROL_RENDERED, this.render);
|
|
@@ -11938,7 +11971,7 @@
|
|
|
11938
11971
|
this.$el.css('left', '-100%');
|
|
11939
11972
|
} else {
|
|
11940
11973
|
var seekTime = this.getSeekTime();
|
|
11941
|
-
var currentSeekTime = formatTime
|
|
11974
|
+
var currentSeekTime = formatTime(seekTime.seekTime, this.useActualLiveTime); // only update dom if necessary, ie time actually changed
|
|
11942
11975
|
|
|
11943
11976
|
if (currentSeekTime !== this.displayedSeekTime) {
|
|
11944
11977
|
this.$seekTimeEl.text(currentSeekTime);
|
|
@@ -11947,7 +11980,7 @@
|
|
|
11947
11980
|
|
|
11948
11981
|
if (this.durationShown) {
|
|
11949
11982
|
this.$durationEl.show();
|
|
11950
|
-
var currentDuration = formatTime
|
|
11983
|
+
var currentDuration = formatTime(this.actualLiveTime ? seekTime.secondsSinceMidnight : this.duration, this.actualLiveTime);
|
|
11951
11984
|
|
|
11952
11985
|
if (currentDuration !== this.displayedDuration) {
|
|
11953
11986
|
this.$durationEl.text(currentDuration);
|
|
@@ -11975,10 +12008,14 @@
|
|
|
11975
12008
|
}, {
|
|
11976
12009
|
key: "render",
|
|
11977
12010
|
value: function render() {
|
|
12011
|
+
var style = Styler.getStyleFor(css_248z$2, {
|
|
12012
|
+
baseUrl: this.options.baseUrl
|
|
12013
|
+
});
|
|
11978
12014
|
this.rendered = true;
|
|
11979
12015
|
this.displayedDuration = null;
|
|
11980
12016
|
this.displayedSeekTime = null;
|
|
11981
12017
|
this.$el.html(this.template());
|
|
12018
|
+
this.$el.append(style[0]);
|
|
11982
12019
|
this.$el.hide();
|
|
11983
12020
|
this.mediaControl.$el.append(this.el);
|
|
11984
12021
|
this.$seekTimeEl = this.$el.find('[data-seek-time]');
|
|
@@ -11993,40 +12030,17 @@
|
|
|
11993
12030
|
|
|
11994
12031
|
var spinnerHTML = "<div data-bounce1></div><div data-bounce2></div><div data-bounce3></div>\n";
|
|
11995
12032
|
|
|
11996
|
-
var css_248z$
|
|
11997
|
-
styleInject(css_248z$6$1);
|
|
12033
|
+
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 -webkit-animation: bouncedelay 1.4s infinite ease-in-out;\n animation: bouncedelay 1.4s infinite ease-in-out;\n /* Prevent first frame from flickering when animation starts */\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both; }\n .spinner-three-bounce[data-spinner] [data-bounce1] {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s; }\n .spinner-three-bounce[data-spinner] [data-bounce2] {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s; }\n\n@-webkit-keyframes bouncedelay {\n 0%, 80%, 100% {\n transform: scale(0); }\n 40% {\n transform: scale(1); } }\n\n@keyframes bouncedelay {\n 0%, 80%, 100% {\n transform: scale(0); }\n 40% {\n transform: scale(1); } }\n";
|
|
11998
12034
|
|
|
11999
12035
|
var SpinnerThreeBouncePlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
12000
|
-
_inherits
|
|
12036
|
+
_inherits(SpinnerThreeBouncePlugin, _UIContainerPlugin);
|
|
12001
12037
|
|
|
12002
|
-
var _super = _createSuper
|
|
12003
|
-
|
|
12004
|
-
_createClass$1(SpinnerThreeBouncePlugin, [{
|
|
12005
|
-
key: "name",
|
|
12006
|
-
get: function get() {
|
|
12007
|
-
return 'spinner';
|
|
12008
|
-
}
|
|
12009
|
-
}, {
|
|
12010
|
-
key: "supportedVersion",
|
|
12011
|
-
get: function get() {
|
|
12012
|
-
return {
|
|
12013
|
-
min: "0.4.17"
|
|
12014
|
-
};
|
|
12015
|
-
}
|
|
12016
|
-
}, {
|
|
12017
|
-
key: "attributes",
|
|
12018
|
-
get: function get() {
|
|
12019
|
-
return {
|
|
12020
|
-
'data-spinner': '',
|
|
12021
|
-
'class': 'spinner-three-bounce'
|
|
12022
|
-
};
|
|
12023
|
-
}
|
|
12024
|
-
}]);
|
|
12038
|
+
var _super = _createSuper(SpinnerThreeBouncePlugin);
|
|
12025
12039
|
|
|
12026
12040
|
function SpinnerThreeBouncePlugin(container) {
|
|
12027
12041
|
var _this;
|
|
12028
12042
|
|
|
12029
|
-
_classCallCheck
|
|
12043
|
+
_classCallCheck(this, SpinnerThreeBouncePlugin);
|
|
12030
12044
|
|
|
12031
12045
|
_this = _super.call(this, container);
|
|
12032
12046
|
_this.template = tmpl(spinnerHTML);
|
|
@@ -12047,7 +12061,27 @@
|
|
|
12047
12061
|
return _this;
|
|
12048
12062
|
}
|
|
12049
12063
|
|
|
12050
|
-
_createClass
|
|
12064
|
+
_createClass(SpinnerThreeBouncePlugin, [{
|
|
12065
|
+
key: "name",
|
|
12066
|
+
get: function get() {
|
|
12067
|
+
return 'spinner';
|
|
12068
|
+
}
|
|
12069
|
+
}, {
|
|
12070
|
+
key: "supportedVersion",
|
|
12071
|
+
get: function get() {
|
|
12072
|
+
return {
|
|
12073
|
+
min: "0.4.20"
|
|
12074
|
+
};
|
|
12075
|
+
}
|
|
12076
|
+
}, {
|
|
12077
|
+
key: "attributes",
|
|
12078
|
+
get: function get() {
|
|
12079
|
+
return {
|
|
12080
|
+
'data-spinner': '',
|
|
12081
|
+
'class': 'spinner-three-bounce'
|
|
12082
|
+
};
|
|
12083
|
+
}
|
|
12084
|
+
}, {
|
|
12051
12085
|
key: "onBuffering",
|
|
12052
12086
|
value: function onBuffering() {
|
|
12053
12087
|
this.show();
|
|
@@ -12084,7 +12118,11 @@
|
|
|
12084
12118
|
}, {
|
|
12085
12119
|
key: "render",
|
|
12086
12120
|
value: function render() {
|
|
12121
|
+
var style = Styler.getStyleFor(css_248z$1, {
|
|
12122
|
+
baseUrl: this.options.baseUrl
|
|
12123
|
+
});
|
|
12087
12124
|
this.$el.html(this.template());
|
|
12125
|
+
this.$el.append(style[0]);
|
|
12088
12126
|
this.container.$el.append(this.$el);
|
|
12089
12127
|
this.$el.hide();
|
|
12090
12128
|
if (this.container.buffering) this.onBuffering();
|
|
@@ -12096,28 +12134,14 @@
|
|
|
12096
12134
|
}(UIContainerPlugin);
|
|
12097
12135
|
|
|
12098
12136
|
var StatsPlugin = /*#__PURE__*/function (_ContainerPlugin) {
|
|
12099
|
-
_inherits
|
|
12137
|
+
_inherits(StatsPlugin, _ContainerPlugin);
|
|
12100
12138
|
|
|
12101
|
-
var _super = _createSuper
|
|
12102
|
-
|
|
12103
|
-
_createClass$1(StatsPlugin, [{
|
|
12104
|
-
key: "name",
|
|
12105
|
-
get: function get() {
|
|
12106
|
-
return 'stats';
|
|
12107
|
-
}
|
|
12108
|
-
}, {
|
|
12109
|
-
key: "supportedVersion",
|
|
12110
|
-
get: function get() {
|
|
12111
|
-
return {
|
|
12112
|
-
min: "0.4.17"
|
|
12113
|
-
};
|
|
12114
|
-
}
|
|
12115
|
-
}]);
|
|
12139
|
+
var _super = _createSuper(StatsPlugin);
|
|
12116
12140
|
|
|
12117
12141
|
function StatsPlugin(container) {
|
|
12118
12142
|
var _this;
|
|
12119
12143
|
|
|
12120
|
-
_classCallCheck
|
|
12144
|
+
_classCallCheck(this, StatsPlugin);
|
|
12121
12145
|
|
|
12122
12146
|
_this = _super.call(this, container);
|
|
12123
12147
|
|
|
@@ -12128,7 +12152,19 @@
|
|
|
12128
12152
|
return _this;
|
|
12129
12153
|
}
|
|
12130
12154
|
|
|
12131
|
-
_createClass
|
|
12155
|
+
_createClass(StatsPlugin, [{
|
|
12156
|
+
key: "name",
|
|
12157
|
+
get: function get() {
|
|
12158
|
+
return 'stats';
|
|
12159
|
+
}
|
|
12160
|
+
}, {
|
|
12161
|
+
key: "supportedVersion",
|
|
12162
|
+
get: function get() {
|
|
12163
|
+
return {
|
|
12164
|
+
min: "0.4.20"
|
|
12165
|
+
};
|
|
12166
|
+
}
|
|
12167
|
+
}, {
|
|
12132
12168
|
key: "bindEvents",
|
|
12133
12169
|
value: function bindEvents() {
|
|
12134
12170
|
this.listenTo(this.container.playback, Events.PLAYBACK_PLAY, this.onPlay);
|
|
@@ -12232,15 +12268,26 @@
|
|
|
12232
12268
|
|
|
12233
12269
|
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";
|
|
12234
12270
|
|
|
12235
|
-
var css_248z
|
|
12236
|
-
styleInject(css_248z$7);
|
|
12271
|
+
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";
|
|
12237
12272
|
|
|
12238
12273
|
var WaterMarkPlugin = /*#__PURE__*/function (_UIContainerPlugin) {
|
|
12239
|
-
_inherits
|
|
12274
|
+
_inherits(WaterMarkPlugin, _UIContainerPlugin);
|
|
12275
|
+
|
|
12276
|
+
var _super = _createSuper(WaterMarkPlugin);
|
|
12277
|
+
|
|
12278
|
+
function WaterMarkPlugin(container) {
|
|
12279
|
+
var _this;
|
|
12280
|
+
|
|
12281
|
+
_classCallCheck(this, WaterMarkPlugin);
|
|
12282
|
+
|
|
12283
|
+
_this = _super.call(this, container);
|
|
12240
12284
|
|
|
12241
|
-
|
|
12285
|
+
_this.configure();
|
|
12286
|
+
|
|
12287
|
+
return _this;
|
|
12288
|
+
}
|
|
12242
12289
|
|
|
12243
|
-
_createClass
|
|
12290
|
+
_createClass(WaterMarkPlugin, [{
|
|
12244
12291
|
key: "name",
|
|
12245
12292
|
get: function get() {
|
|
12246
12293
|
return 'watermark';
|
|
@@ -12249,7 +12296,7 @@
|
|
|
12249
12296
|
key: "supportedVersion",
|
|
12250
12297
|
get: function get() {
|
|
12251
12298
|
return {
|
|
12252
|
-
min: "0.4.
|
|
12299
|
+
min: "0.4.20"
|
|
12253
12300
|
};
|
|
12254
12301
|
}
|
|
12255
12302
|
}, {
|
|
@@ -12257,21 +12304,7 @@
|
|
|
12257
12304
|
get: function get() {
|
|
12258
12305
|
return tmpl(watermarkHTML);
|
|
12259
12306
|
}
|
|
12260
|
-
}
|
|
12261
|
-
|
|
12262
|
-
function WaterMarkPlugin(container) {
|
|
12263
|
-
var _this;
|
|
12264
|
-
|
|
12265
|
-
_classCallCheck$1(this, WaterMarkPlugin);
|
|
12266
|
-
|
|
12267
|
-
_this = _super.call(this, container);
|
|
12268
|
-
|
|
12269
|
-
_this.configure();
|
|
12270
|
-
|
|
12271
|
-
return _this;
|
|
12272
|
-
}
|
|
12273
|
-
|
|
12274
|
-
_createClass$1(WaterMarkPlugin, [{
|
|
12307
|
+
}, {
|
|
12275
12308
|
key: "bindEvents",
|
|
12276
12309
|
value: function bindEvents() {
|
|
12277
12310
|
this.listenTo(this.container, Events.CONTAINER_PLAY, this.onPlay);
|
|
@@ -12305,12 +12338,16 @@
|
|
|
12305
12338
|
key: "render",
|
|
12306
12339
|
value: function render() {
|
|
12307
12340
|
this.$el.hide();
|
|
12341
|
+
var style = Styler.getStyleFor(css_248z, {
|
|
12342
|
+
baseUrl: this.options.baseUrl
|
|
12343
|
+
});
|
|
12308
12344
|
var templateOptions = {
|
|
12309
12345
|
position: this.position,
|
|
12310
12346
|
imageUrl: this.imageUrl,
|
|
12311
12347
|
imageLink: this.imageLink
|
|
12312
12348
|
};
|
|
12313
12349
|
this.$el.html(this.template(templateOptions));
|
|
12350
|
+
this.$el.append(style[0]);
|
|
12314
12351
|
this.container.$el.append(this.$el);
|
|
12315
12352
|
return this;
|
|
12316
12353
|
}
|
|
@@ -12320,21 +12357,21 @@
|
|
|
12320
12357
|
}(UIContainerPlugin);
|
|
12321
12358
|
var Plugins = {
|
|
12322
12359
|
ClickToPause: ClickToPausePlugin,
|
|
12323
|
-
ClosedCaptions: ClosedCaptions,
|
|
12324
|
-
DVRControls: DVRControls,
|
|
12325
|
-
EndVideo: EndVideo,
|
|
12326
|
-
ErrorScreen: ErrorScreen,
|
|
12327
|
-
Favicon: Favicon,
|
|
12328
|
-
GoogleAnalytics: GoogleAnalytics,
|
|
12329
|
-
MediaControl: MediaControl,
|
|
12360
|
+
ClosedCaptions: ClosedCaptions$1,
|
|
12361
|
+
DVRControls: DVRControls$1,
|
|
12362
|
+
EndVideo: EndVideo$1,
|
|
12363
|
+
ErrorScreen: ErrorScreen$1,
|
|
12364
|
+
Favicon: Favicon$1,
|
|
12365
|
+
GoogleAnalytics: GoogleAnalytics$1,
|
|
12366
|
+
MediaControl: MediaControl$1,
|
|
12330
12367
|
Poster: PosterPlugin,
|
|
12331
|
-
SeekTime: SeekTime,
|
|
12368
|
+
SeekTime: SeekTime$1,
|
|
12332
12369
|
SpinnerThreeBounce: SpinnerThreeBouncePlugin,
|
|
12333
12370
|
Stats: StatsPlugin,
|
|
12334
12371
|
WaterMark: WaterMarkPlugin
|
|
12335
12372
|
};
|
|
12336
12373
|
|
|
12337
|
-
var version
|
|
12374
|
+
var version = "0.4.6";
|
|
12338
12375
|
|
|
12339
12376
|
for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
|
|
12340
12377
|
var plugin = _Object$values[_i];
|
|
@@ -12343,35 +12380,35 @@
|
|
|
12343
12380
|
|
|
12344
12381
|
|
|
12345
12382
|
var ClickToPause = Plugins.ClickToPause,
|
|
12346
|
-
ClosedCaptions
|
|
12347
|
-
DVRControls
|
|
12348
|
-
EndVideo
|
|
12349
|
-
ErrorScreen
|
|
12350
|
-
Favicon
|
|
12351
|
-
GoogleAnalytics
|
|
12352
|
-
MediaControl
|
|
12383
|
+
ClosedCaptions = Plugins.ClosedCaptions,
|
|
12384
|
+
DVRControls = Plugins.DVRControls,
|
|
12385
|
+
EndVideo = Plugins.EndVideo,
|
|
12386
|
+
ErrorScreen = Plugins.ErrorScreen,
|
|
12387
|
+
Favicon = Plugins.Favicon,
|
|
12388
|
+
GoogleAnalytics = Plugins.GoogleAnalytics,
|
|
12389
|
+
MediaControl = Plugins.MediaControl,
|
|
12353
12390
|
Poster = Plugins.Poster,
|
|
12354
|
-
SeekTime
|
|
12391
|
+
SeekTime = Plugins.SeekTime,
|
|
12355
12392
|
SpinnerThreeBounce = Plugins.SpinnerThreeBounce,
|
|
12356
12393
|
Stats = Plugins.Stats,
|
|
12357
12394
|
WaterMark = Plugins.WaterMark;
|
|
12358
|
-
var base_bundle = _objectSpread2(_objectSpread2({}, main), {}, {
|
|
12395
|
+
var base_bundle = _objectSpread2$1(_objectSpread2$1({}, main), {}, {
|
|
12359
12396
|
ClickToPause: ClickToPause,
|
|
12360
|
-
ClosedCaptions: ClosedCaptions
|
|
12361
|
-
DVRControls: DVRControls
|
|
12362
|
-
EndVideo: EndVideo
|
|
12363
|
-
ErrorScreen: ErrorScreen
|
|
12364
|
-
Favicon: Favicon
|
|
12365
|
-
GoogleAnalytics: GoogleAnalytics
|
|
12366
|
-
MediaControl: MediaControl
|
|
12397
|
+
ClosedCaptions: ClosedCaptions,
|
|
12398
|
+
DVRControls: DVRControls,
|
|
12399
|
+
EndVideo: EndVideo,
|
|
12400
|
+
ErrorScreen: ErrorScreen,
|
|
12401
|
+
Favicon: Favicon,
|
|
12402
|
+
GoogleAnalytics: GoogleAnalytics,
|
|
12403
|
+
MediaControl: MediaControl,
|
|
12367
12404
|
Poster: Poster,
|
|
12368
|
-
SeekTime: SeekTime
|
|
12405
|
+
SeekTime: SeekTime,
|
|
12369
12406
|
SpinnerThreeBounce: SpinnerThreeBounce,
|
|
12370
12407
|
Stats: Stats,
|
|
12371
12408
|
WaterMark: WaterMark,
|
|
12372
12409
|
Vendor: index,
|
|
12373
12410
|
Plugins: Plugins,
|
|
12374
|
-
version: version
|
|
12411
|
+
version: version
|
|
12375
12412
|
});
|
|
12376
12413
|
|
|
12377
12414
|
return base_bundle;
|