@wistia/wistia-player 0.7.7 → 0.7.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SentryProductType = 'carousel' | 'channel' | 'dynamicImport' | 'form' | 'globalListener' | 'mediaPlayback' | 'other' | 'player' | 'playlist' | 'relatedMedia' | 'transcript';
|
|
1
|
+
export type SentryProductType = 'carousel' | 'channel' | 'dynamicImport' | 'form' | 'globalListener' | 'hlsPlayback' | 'mediaPlayback' | 'other' | 'player' | 'playlist' | 'relatedMedia' | 'transcript';
|
|
2
2
|
export declare const initializeSentry: () => void;
|
|
3
3
|
type ReportErrorDetails = Record<string, string> & {
|
|
4
4
|
url?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentryUtils.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/sentryUtils.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,SAAS,GACT,eAAe,GACf,MAAM,GACN,gBAAgB,GAChB,eAAe,GACf,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"sentryUtils.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/sentryUtils.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,SAAS,GACT,eAAe,GACf,MAAM,GACN,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,YAAY,CAAC;AA2FjB,eAAO,MAAM,gBAAgB,QAAO,IAyBnC,CAAC;AAEF,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,SAAS,iBAAiB,EAC1B,OAAO,KAAK,EACZ,UAAU,kBAAkB,KAC3B,IA4DF,CAAC;AAgCF,eAAO,MAAM,qBAAqB,QAAO,IAKxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,QAAO,IAKrD,CAAC"}
|
package/dist/wistia-player.js
CHANGED
|
@@ -2851,6 +2851,14 @@ var getSampleRatesByProductType = function getSampleRatesByProductType(productTy
|
|
|
2851
2851
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
2852
2852
|
return 0.001;
|
|
2853
2853
|
}
|
|
2854
|
+
if (productType === 'hlsPlayback') {
|
|
2855
|
+
// HLS fatals were previously lumped into the heavily-sampled mediaPlayback
|
|
2856
|
+
// bucket, so we saw far fewer than expected. I expect we'll have a lot of these,
|
|
2857
|
+
// so lets sample them heavily but not quite as much as `mediaPlayback`
|
|
2858
|
+
//
|
|
2859
|
+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
2860
|
+
return 0.01;
|
|
2861
|
+
}
|
|
2854
2862
|
return 1;
|
|
2855
2863
|
};
|
|
2856
2864
|
var IS_DEV_ENV = "production" === 'development';
|
|
@@ -7329,8 +7337,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7329
7337
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7330
7338
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7331
7339
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7332
|
-
var TAGGED_VERSION = "0.7.
|
|
7333
|
-
var CURRENT_SHA = "
|
|
7340
|
+
var TAGGED_VERSION = "0.7.8" || 0;
|
|
7341
|
+
var CURRENT_SHA = "fedb4eec00711078f3d81f791782716ff305719b" || 0;
|
|
7334
7342
|
var DEFAULT_PROTOCOL = function () {
|
|
7335
7343
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7336
7344
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -10508,6 +10516,16 @@ var elemRequestFullscreen = function elemRequestFullscreen(elem) {
|
|
|
10508
10516
|
wlog.notice(errorMessage);
|
|
10509
10517
|
return Promise.reject(new Error(errorMessage));
|
|
10510
10518
|
}
|
|
10519
|
+
// WebKit throws InvalidStateError if fullscreen isn't currently
|
|
10520
|
+
// possible (no video track, fullscreen restrictions, expired user
|
|
10521
|
+
// gesture), even when metadata has loaded. webkitSupportsFullscreen
|
|
10522
|
+
// reflects that exact internal check. It's undefined on non-video
|
|
10523
|
+
// elements, so only an explicit false blocks the call.
|
|
10524
|
+
if (elem.webkitSupportsFullscreen === false) {
|
|
10525
|
+
var _errorMessage = 'webkitEnterFullscreen is not currently supported for this element';
|
|
10526
|
+
wlog.notice(_errorMessage);
|
|
10527
|
+
return Promise.reject(new Error(_errorMessage));
|
|
10528
|
+
}
|
|
10511
10529
|
elem.webkitEnterFullscreen();
|
|
10512
10530
|
return Promise.resolve();
|
|
10513
10531
|
}
|