pb-sxp-ui 1.0.36 → 1.0.37

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,8 +6,8 @@ import qs from 'qs';
6
6
  import { css } from '@emotion/css';
7
7
  import { BetaSchemaForm } from '@ant-design/pro-components';
8
8
  import * as ReactDOM from 'react-dom';
9
- import Hls from 'hls.js';
10
9
  import EventEmitter from 'eventemitter3';
10
+ import Hls from 'hls.js';
11
11
 
12
12
  /******************************************************************************
13
13
  Copyright (c) Microsoft Corporation.
@@ -12104,26 +12104,22 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12104
12104
  setIsPauseVideo(false);
12105
12105
  if (!videoRef.current.src) {
12106
12106
  const videoSrc = rec.video.url;
12107
- if (videoSrc.includes('.m3u8')) {
12108
- if (Hls.isSupported()) {
12109
- const hls = new Hls();
12110
- hls.loadSource(videoSrc);
12111
- hls.attachMedia(videoRef.current);
12112
- hls.on(Hls.Events.MANIFEST_PARSED, function () {
12113
- var _a;
12114
- (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
12115
- });
12116
- }
12117
- else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12118
- videoRef.current.src = videoSrc;
12119
- }
12120
- else {
12121
- videoRef.current.src = videoSrc;
12122
- }
12123
- }
12124
- else {
12125
- videoRef.current.src = videoSrc;
12126
- }
12107
+ // if (videoSrc.includes('.m3u8')) {
12108
+ // if (Hls.isSupported()) {
12109
+ // const hls = new Hls();
12110
+ // hls.loadSource(videoSrc);
12111
+ // hls.attachMedia(videoRef.current);
12112
+ // hls.on(Hls.Events.MANIFEST_PARSED, function () {
12113
+ // videoRef?.current?.play();
12114
+ // });
12115
+ // } else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12116
+ // videoRef.current.src = videoSrc;
12117
+ // } else {
12118
+ // videoRef.current.src = videoSrc;
12119
+ // }
12120
+ // } else {
12121
+ videoRef.current.src = videoSrc;
12122
+ // }
12127
12123
  videoRef.current.setAttribute('x5-playsinline', 'true');
12128
12124
  videoRef.current.setAttribute('webkit-playsinline', 'true');
12129
12125
  }