@kkcompany/player 2.9.333 → 2.9.444
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.mjs +16 -3
- package/dist/index.js +17 -4
- package/dist/index.mjs +17 -4
- package/dist/modules.mjs +16 -3
- package/dist/react.mjs +18 -5
- package/package.json +1 -1
package/dist/core.mjs
CHANGED
|
@@ -10,7 +10,20 @@ function needNativeHls() {
|
|
|
10
10
|
const isSafari = /^((?!chrome|android|X11|Linux).)*(safari|iPad|iPhone|Version)/i.test(navigator.userAgent); // ref: https://stackoverflow.com/a/12905122/4578017
|
|
11
11
|
// none of our supported browsers other than Safari response to this
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const isFirefox = /firefox/i.test(navigator.userAgent);
|
|
14
|
+
const isEdge = /edg/i.test(navigator.userAgent);
|
|
15
|
+
const isChrome = /chrome/i.test(navigator.userAgent) && !isEdge; // ref: https://stackoverflow.com/a/12905122/4578017
|
|
16
|
+
// none of our supported browsers other than Safari response to this
|
|
17
|
+
|
|
18
|
+
if (isAndroid || isFirefox || isEdge || isChrome) {
|
|
19
|
+
return "";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (isSafari) {
|
|
23
|
+
return 'maybe';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return document.createElement('video').canPlayType('application/vnd.apple.mpegURL');
|
|
14
27
|
}
|
|
15
28
|
// navigator.maxTouchPoints() is not supported in Safari 11, iOS Safari 11.0-11.2 compat/compat
|
|
16
29
|
|
|
@@ -45,7 +58,7 @@ const waitFor = (check, handler) => {
|
|
|
45
58
|
function getVersion() {
|
|
46
59
|
try {
|
|
47
60
|
// eslint-disable-next-line no-undef
|
|
48
|
-
return "2.9.
|
|
61
|
+
return "2.9.444";
|
|
49
62
|
} catch (e) {
|
|
50
63
|
return undefined;
|
|
51
64
|
}
|
|
@@ -2291,7 +2304,7 @@ const load = async (media, {
|
|
|
2291
2304
|
startTime,
|
|
2292
2305
|
plugins = []
|
|
2293
2306
|
}, source) => {
|
|
2294
|
-
const preferManifestType = needNativeHls() ? '
|
|
2307
|
+
const preferManifestType = needNativeHls() ? 'hls' : 'dash';
|
|
2295
2308
|
const preferred = getSource(source, {
|
|
2296
2309
|
preferManifestType
|
|
2297
2310
|
}); // There's no use case that changing DRM options without changing manifest URL, just skip
|
package/dist/index.js
CHANGED
|
@@ -3158,7 +3158,20 @@ function needNativeHls() {
|
|
|
3158
3158
|
const isSafari = /^((?!chrome|android|X11|Linux).)*(safari|iPad|iPhone|Version)/i.test(navigator.userAgent); // ref: https://stackoverflow.com/a/12905122/4578017
|
|
3159
3159
|
// none of our supported browsers other than Safari response to this
|
|
3160
3160
|
|
|
3161
|
-
|
|
3161
|
+
const isFirefox = /firefox/i.test(navigator.userAgent);
|
|
3162
|
+
const isEdge = /edg/i.test(navigator.userAgent);
|
|
3163
|
+
const isChrome = /chrome/i.test(navigator.userAgent) && !isEdge; // ref: https://stackoverflow.com/a/12905122/4578017
|
|
3164
|
+
// none of our supported browsers other than Safari response to this
|
|
3165
|
+
|
|
3166
|
+
if (isAndroid || isFirefox || isEdge || isChrome) {
|
|
3167
|
+
return "";
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
if (isSafari) {
|
|
3171
|
+
return 'maybe';
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
return document.createElement('video').canPlayType('application/vnd.apple.mpegURL');
|
|
3162
3175
|
}
|
|
3163
3176
|
|
|
3164
3177
|
const isDesktop = () => !getDevice().type; // TODO solve lint error:
|
|
@@ -7249,7 +7262,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
7249
7262
|
function getVersion() {
|
|
7250
7263
|
try {
|
|
7251
7264
|
// eslint-disable-next-line no-undef
|
|
7252
|
-
return "2.9.
|
|
7265
|
+
return "2.9.444";
|
|
7253
7266
|
} catch (e) {
|
|
7254
7267
|
return undefined;
|
|
7255
7268
|
}
|
|
@@ -7574,7 +7587,7 @@ const load = async (media, _ref4, source) => {
|
|
|
7574
7587
|
startTime,
|
|
7575
7588
|
plugins = []
|
|
7576
7589
|
} = _ref4;
|
|
7577
|
-
const preferManifestType = needNativeHls() ? '
|
|
7590
|
+
const preferManifestType = needNativeHls() ? 'hls' : 'dash';
|
|
7578
7591
|
const preferred = getSource(source, {
|
|
7579
7592
|
preferManifestType
|
|
7580
7593
|
}); // There's no use case that changing DRM options without changing manifest URL, just skip
|
|
@@ -18446,7 +18459,7 @@ const createAnalytics = _ref => {
|
|
|
18446
18459
|
const logTarget = mapLogEvents({
|
|
18447
18460
|
video,
|
|
18448
18461
|
playerName: 'shaka',
|
|
18449
|
-
version: "2.9.
|
|
18462
|
+
version: "2.9.444"
|
|
18450
18463
|
});
|
|
18451
18464
|
logTarget.all((type, data) => {
|
|
18452
18465
|
const payload = {
|
package/dist/index.mjs
CHANGED
|
@@ -92,7 +92,20 @@ function needNativeHls() {
|
|
|
92
92
|
const isSafari = /^((?!chrome|android|X11|Linux).)*(safari|iPad|iPhone|Version)/i.test(navigator.userAgent); // ref: https://stackoverflow.com/a/12905122/4578017
|
|
93
93
|
// none of our supported browsers other than Safari response to this
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
const isFirefox = /firefox/i.test(navigator.userAgent);
|
|
96
|
+
const isEdge = /edg/i.test(navigator.userAgent);
|
|
97
|
+
const isChrome = /chrome/i.test(navigator.userAgent) && !isEdge; // ref: https://stackoverflow.com/a/12905122/4578017
|
|
98
|
+
// none of our supported browsers other than Safari response to this
|
|
99
|
+
|
|
100
|
+
if (isAndroid || isFirefox || isEdge || isChrome) {
|
|
101
|
+
return "";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (isSafari) {
|
|
105
|
+
return 'maybe';
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return document.createElement('video').canPlayType('application/vnd.apple.mpegURL');
|
|
96
109
|
}
|
|
97
110
|
|
|
98
111
|
const isDesktop = () => !getDevice().type; // TODO solve lint error:
|
|
@@ -302,7 +315,7 @@ function convertToSeconds(timeString) {
|
|
|
302
315
|
function getVersion() {
|
|
303
316
|
try {
|
|
304
317
|
// eslint-disable-next-line no-undef
|
|
305
|
-
return "2.9.
|
|
318
|
+
return "2.9.444";
|
|
306
319
|
} catch (e) {
|
|
307
320
|
return undefined;
|
|
308
321
|
}
|
|
@@ -611,7 +624,7 @@ const load = async (media, {
|
|
|
611
624
|
startTime,
|
|
612
625
|
plugins = []
|
|
613
626
|
}, source) => {
|
|
614
|
-
const preferManifestType = needNativeHls() ? '
|
|
627
|
+
const preferManifestType = needNativeHls() ? 'hls' : 'dash';
|
|
615
628
|
const preferred = getSource(source, {
|
|
616
629
|
preferManifestType
|
|
617
630
|
}); // There's no use case that changing DRM options without changing manifest URL, just skip
|
|
@@ -7067,7 +7080,7 @@ const createAnalytics = ({
|
|
|
7067
7080
|
const logTarget = mapLogEvents({
|
|
7068
7081
|
video,
|
|
7069
7082
|
playerName: 'shaka',
|
|
7070
|
-
version: "2.9.
|
|
7083
|
+
version: "2.9.444"
|
|
7071
7084
|
});
|
|
7072
7085
|
logTarget.all((type, data) => {
|
|
7073
7086
|
const payload = {
|
package/dist/modules.mjs
CHANGED
|
@@ -277,7 +277,20 @@ function needNativeHls() {
|
|
|
277
277
|
const isSafari = /^((?!chrome|android|X11|Linux).)*(safari|iPad|iPhone|Version)/i.test(navigator.userAgent); // ref: https://stackoverflow.com/a/12905122/4578017
|
|
278
278
|
// none of our supported browsers other than Safari response to this
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
const isFirefox = /firefox/i.test(navigator.userAgent);
|
|
281
|
+
const isEdge = /edg/i.test(navigator.userAgent);
|
|
282
|
+
const isChrome = /chrome/i.test(navigator.userAgent) && !isEdge; // ref: https://stackoverflow.com/a/12905122/4578017
|
|
283
|
+
// none of our supported browsers other than Safari response to this
|
|
284
|
+
|
|
285
|
+
if (isAndroid || isFirefox || isEdge || isChrome) {
|
|
286
|
+
return "";
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (isSafari) {
|
|
290
|
+
return 'maybe';
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return document.createElement('video').canPlayType('application/vnd.apple.mpegURL');
|
|
281
294
|
}
|
|
282
295
|
|
|
283
296
|
const isDesktop = () => !getDevice().type; // TODO solve lint error:
|
|
@@ -508,7 +521,7 @@ const getSource = (sourceOptions, {
|
|
|
508
521
|
function getVersion() {
|
|
509
522
|
try {
|
|
510
523
|
// eslint-disable-next-line no-undef
|
|
511
|
-
return "2.9.
|
|
524
|
+
return "2.9.444";
|
|
512
525
|
} catch (e) {
|
|
513
526
|
return undefined;
|
|
514
527
|
}
|
|
@@ -1492,7 +1505,7 @@ const createAnalytics = ({
|
|
|
1492
1505
|
const logTarget = mapLogEvents({
|
|
1493
1506
|
video,
|
|
1494
1507
|
playerName: 'shaka',
|
|
1495
|
-
version: "2.9.
|
|
1508
|
+
version: "2.9.444"
|
|
1496
1509
|
});
|
|
1497
1510
|
logTarget.all((type, data) => {
|
|
1498
1511
|
const payload = {
|
package/dist/react.mjs
CHANGED
|
@@ -89,7 +89,20 @@ function needNativeHls() {
|
|
|
89
89
|
const isSafari = /^((?!chrome|android|X11|Linux).)*(safari|iPad|iPhone|Version)/i.test(navigator.userAgent); // ref: https://stackoverflow.com/a/12905122/4578017
|
|
90
90
|
// none of our supported browsers other than Safari response to this
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
const isFirefox = /firefox/i.test(navigator.userAgent);
|
|
93
|
+
const isEdge = /edg/i.test(navigator.userAgent);
|
|
94
|
+
const isChrome = /chrome/i.test(navigator.userAgent) && !isEdge; // ref: https://stackoverflow.com/a/12905122/4578017
|
|
95
|
+
// none of our supported browsers other than Safari response to this
|
|
96
|
+
|
|
97
|
+
if (isAndroid || isFirefox || isEdge || isChrome) {
|
|
98
|
+
return "";
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (isSafari) {
|
|
102
|
+
return 'maybe';
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return document.createElement('video').canPlayType('application/vnd.apple.mpegURL');
|
|
93
106
|
}
|
|
94
107
|
|
|
95
108
|
const isDesktop = () => !getDevice().type; // TODO solve lint error:
|
|
@@ -299,7 +312,7 @@ function convertToSeconds(timeString) {
|
|
|
299
312
|
function getVersion() {
|
|
300
313
|
try {
|
|
301
314
|
// eslint-disable-next-line no-undef
|
|
302
|
-
return "2.9.
|
|
315
|
+
return "2.9.444";
|
|
303
316
|
} catch (e) {
|
|
304
317
|
return undefined;
|
|
305
318
|
}
|
|
@@ -608,7 +621,7 @@ const load = async (media, {
|
|
|
608
621
|
startTime,
|
|
609
622
|
plugins = []
|
|
610
623
|
}, source) => {
|
|
611
|
-
const preferManifestType = needNativeHls() ? '
|
|
624
|
+
const preferManifestType = needNativeHls() ? 'hls' : 'dash';
|
|
612
625
|
const preferred = getSource(source, {
|
|
613
626
|
preferManifestType
|
|
614
627
|
}); // There's no use case that changing DRM options without changing manifest URL, just skip
|
|
@@ -8276,7 +8289,7 @@ const createAnalytics = ({
|
|
|
8276
8289
|
const logTarget = mapLogEvents({
|
|
8277
8290
|
video,
|
|
8278
8291
|
playerName: 'shaka',
|
|
8279
|
-
version: "2.9.
|
|
8292
|
+
version: "2.9.444"
|
|
8280
8293
|
});
|
|
8281
8294
|
logTarget.all((type, data) => {
|
|
8282
8295
|
const payload = {
|
|
@@ -12568,7 +12581,7 @@ const PremiumPlusPlayer = ({
|
|
|
12568
12581
|
const restPlayerName = ['shaka', 'bitmovin'].find(name => name in rest);
|
|
12569
12582
|
logTarget.current = mapLogEvents$1({
|
|
12570
12583
|
playerName: restPlayerName || 'shaka',
|
|
12571
|
-
version: "2.9.
|
|
12584
|
+
version: "2.9.444",
|
|
12572
12585
|
video: videoRef.current,
|
|
12573
12586
|
getPlaybackStatus: () => getMediaTime(videoRef.current, {
|
|
12574
12587
|
player: corePlayerRef.current,
|