pb-sxp-ui 1.0.90 → 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 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,8 +13031,9 @@ 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
13039
  hls.attachMedia(videoRef);