@wistia/wistia-player-react 0.7.29 → 0.7.30
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/CHANGELOG.md +12 -0
- package/dist/cjs/WistiaPlayer.cjs +8 -3
- package/dist/mjs/WistiaPlayer.mjs +1 -1
- package/dist/mjs/{WistiaPlayerWrapper-BAQFD4YO.mjs → WistiaPlayerWrapper-SPMJHQUM.mjs} +1 -1
- package/dist/mjs/{wistia-player-432ZX4TL.mjs → wistia-player-IGIIUYHO.mjs} +8 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wistia/wistia-player-react
|
|
2
2
|
|
|
3
|
+
## 0.7.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 85473d5: Updates the form to use the players visitor key when available
|
|
8
|
+
- 6820312: Playback health reports now include the playback engine and the hls.js version as their own fields, so health data can be split by engine.
|
|
9
|
+
- 3300924: Adds a `preferredHlsEngine` embed option. When set to `native` on a browser with built-in HLS playback (Safari, iOS), the player uses the browser's own HLS engine instead of hls.js; otherwise playback is unchanged.
|
|
10
|
+
- Updated dependencies [85473d5]
|
|
11
|
+
- Updated dependencies [6820312]
|
|
12
|
+
- Updated dependencies [3300924]
|
|
13
|
+
- @wistia/wistia-player@0.7.30
|
|
14
|
+
|
|
3
15
|
## 0.7.29
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -964,10 +964,11 @@ var init_wistia_player = __esm({
|
|
|
964
964
|
if (mediaData.mediaType === "Audio") {
|
|
965
965
|
return SIMPLE_AUDIO_ENGINE_PATH;
|
|
966
966
|
}
|
|
967
|
+
const canUseNativeHls = allowHls && detect.nativeHls;
|
|
967
968
|
const isApple = detect.safari || detect.ios.version > 0;
|
|
968
969
|
const allowsSameOrigin = window.origin !== "null";
|
|
969
970
|
const restrictedBySameOrigin = isApple && !allowsSameOrigin;
|
|
970
|
-
if (
|
|
971
|
+
if (canUseNativeHls && (detect.managedMediaSource === false || restrictedBySameOrigin)) {
|
|
971
972
|
logger.info(NATIVE_HLS_VIDEO);
|
|
972
973
|
return NATIVE_HLS_ENGINE_PATH;
|
|
973
974
|
}
|
|
@@ -976,6 +977,10 @@ var init_wistia_player = __esm({
|
|
|
976
977
|
logger.info(ALPHA_VIDEO);
|
|
977
978
|
return ALPHA_VIDEO_ENGINE_PATH;
|
|
978
979
|
}
|
|
980
|
+
if (canUseNativeHls && options.preferredHlsEngine === "native") {
|
|
981
|
+
logger.info(NATIVE_HLS_VIDEO, "preferred");
|
|
982
|
+
return NATIVE_HLS_ENGINE_PATH;
|
|
983
|
+
}
|
|
979
984
|
logger.info(HLS_VIDEO);
|
|
980
985
|
return HLS_ENGINE_PATH;
|
|
981
986
|
}
|
|
@@ -7070,8 +7075,8 @@ var init_wistia_player = __esm({
|
|
|
7070
7075
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7071
7076
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7072
7077
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7073
|
-
const TAGGED_VERSION = "0.7.
|
|
7074
|
-
const CURRENT_SHA = "
|
|
7078
|
+
const TAGGED_VERSION = "0.7.30";
|
|
7079
|
+
const CURRENT_SHA = "a04d90513923551ff5decc84688e67a7a7d61a08";
|
|
7075
7080
|
const DEFAULT_PROTOCOL = (() => {
|
|
7076
7081
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
7077
7082
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { forwardRef, Suspense, lazy, Fragment } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
var WistiaPlayerWrapper = lazy(
|
|
11
|
-
async () => import("./WistiaPlayerWrapper-
|
|
11
|
+
async () => import("./WistiaPlayerWrapper-SPMJHQUM.mjs").then((module) => ({
|
|
12
12
|
default: module.WistiaPlayerWrapper
|
|
13
13
|
}))
|
|
14
14
|
);
|
|
@@ -37,7 +37,7 @@ var WistiaPlayerWrapper = forwardRef(
|
|
|
37
37
|
setSwatchAspectRatio(ratio);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
void import("./wistia-player-
|
|
40
|
+
void import("./wistia-player-IGIIUYHO.mjs");
|
|
41
41
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
42
42
|
setIsWistiaPlayerDefined(true);
|
|
43
43
|
});
|
|
@@ -323,10 +323,11 @@ var __webpack_modules__ = {
|
|
|
323
323
|
if (mediaData.mediaType === "Audio") {
|
|
324
324
|
return SIMPLE_AUDIO_ENGINE_PATH;
|
|
325
325
|
}
|
|
326
|
+
const canUseNativeHls = allowHls && detect.nativeHls;
|
|
326
327
|
const isApple = detect.safari || detect.ios.version > 0;
|
|
327
328
|
const allowsSameOrigin = window.origin !== "null";
|
|
328
329
|
const restrictedBySameOrigin = isApple && !allowsSameOrigin;
|
|
329
|
-
if (
|
|
330
|
+
if (canUseNativeHls && (detect.managedMediaSource === false || restrictedBySameOrigin)) {
|
|
330
331
|
logger.info(NATIVE_HLS_VIDEO);
|
|
331
332
|
return NATIVE_HLS_ENGINE_PATH;
|
|
332
333
|
}
|
|
@@ -335,6 +336,10 @@ var __webpack_modules__ = {
|
|
|
335
336
|
logger.info(ALPHA_VIDEO);
|
|
336
337
|
return ALPHA_VIDEO_ENGINE_PATH;
|
|
337
338
|
}
|
|
339
|
+
if (canUseNativeHls && options.preferredHlsEngine === "native") {
|
|
340
|
+
logger.info(NATIVE_HLS_VIDEO, "preferred");
|
|
341
|
+
return NATIVE_HLS_ENGINE_PATH;
|
|
342
|
+
}
|
|
338
343
|
logger.info(HLS_VIDEO);
|
|
339
344
|
return HLS_ENGINE_PATH;
|
|
340
345
|
}
|
|
@@ -6429,8 +6434,8 @@ var __webpack_modules__ = {
|
|
|
6429
6434
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
6430
6435
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
6431
6436
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
6432
|
-
const TAGGED_VERSION = "0.7.
|
|
6433
|
-
const CURRENT_SHA = "
|
|
6437
|
+
const TAGGED_VERSION = "0.7.30";
|
|
6438
|
+
const CURRENT_SHA = "a04d90513923551ff5decc84688e67a7a7d61a08";
|
|
6434
6439
|
const DEFAULT_PROTOCOL = (() => {
|
|
6435
6440
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
6436
6441
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.30",
|
|
4
4
|
"packageManager": "yarn@4.18.0",
|
|
5
5
|
"description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@wistia/type-guards": "^0.9.3",
|
|
49
|
-
"@wistia/wistia-player": "0.7.
|
|
49
|
+
"@wistia/wistia-player": "0.7.30"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18.0.0 <20.0.0",
|