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.js CHANGED
@@ -6,7 +6,6 @@ import qs from 'qs';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { css } from '@emotion/css';
8
8
  import * as ReactDOM from 'react-dom';
9
- import Hls from 'hls.js';
10
9
 
11
10
  /******************************************************************************
12
11
  Copyright (c) Microsoft Corporation.
@@ -13009,11 +13008,12 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
13009
13008
  const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
13010
13009
  if (!videoSrc)
13011
13010
  return;
13011
+ const Hls = window === null || window === void 0 ? void 0 : window.Hls;
13012
13012
  if (videoSrc.includes('.m3u8')) {
13013
- if (Hls.isSupported()) {
13013
+ if (Hls && Hls.isSupported()) {
13014
13014
  const hls = new Hls();
13015
13015
  hls.loadSource(videoSrc);
13016
- hls.attachMedia(videoRef.current);
13016
+ hls.attachMedia(videoRef);
13017
13017
  }
13018
13018
  else {
13019
13019
  videoRef.src = videoSrc;