pb-sxp-ui 1.0.89 → 1.0.91
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +7 -6
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +4 -4
- package/package.json +1 -2
package/dist/index.cjs
CHANGED
@@ -10,7 +10,6 @@ var qs = require('qs');
|
|
10
10
|
var EventEmitter = require('eventemitter3');
|
11
11
|
var css = require('@emotion/css');
|
12
12
|
var ReactDOM = require('react-dom');
|
13
|
-
var Hls = require('hls.js');
|
14
13
|
|
15
14
|
function _interopNamespaceDefault(e) {
|
16
15
|
var n = Object.create(null);
|
@@ -13032,11 +13031,12 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
13032
13031
|
const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
|
13033
13032
|
if (!videoSrc)
|
13034
13033
|
return;
|
13034
|
+
const Hls = window === null || window === void 0 ? void 0 : window.Hls;
|
13035
13035
|
if (videoSrc.includes('.m3u8')) {
|
13036
|
-
if (Hls.isSupported()) {
|
13036
|
+
if (Hls && Hls.isSupported()) {
|
13037
13037
|
const hls = new Hls();
|
13038
13038
|
hls.loadSource(videoSrc);
|
13039
|
-
hls.attachMedia(videoRef
|
13039
|
+
hls.attachMedia(videoRef);
|
13040
13040
|
}
|
13041
13041
|
else {
|
13042
13042
|
videoRef.src = videoSrc;
|