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.cjs CHANGED
@@ -10,8 +10,8 @@ var qs = require('qs');
10
10
  var css = require('@emotion/css');
11
11
  var proComponents = require('@ant-design/pro-components');
12
12
  var ReactDOM = require('react-dom');
13
- var Hls = require('hls.js');
14
13
  var EventEmitter = require('eventemitter3');
14
+ var Hls = require('hls.js');
15
15
 
16
16
  function _interopNamespaceDefault(e) {
17
17
  var n = Object.create(null);
@@ -12127,26 +12127,22 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12127
12127
  setIsPauseVideo(false);
12128
12128
  if (!videoRef.current.src) {
12129
12129
  const videoSrc = rec.video.url;
12130
- if (videoSrc.includes('.m3u8')) {
12131
- if (Hls.isSupported()) {
12132
- const hls = new Hls();
12133
- hls.loadSource(videoSrc);
12134
- hls.attachMedia(videoRef.current);
12135
- hls.on(Hls.Events.MANIFEST_PARSED, function () {
12136
- var _a;
12137
- (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
12138
- });
12139
- }
12140
- else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12141
- videoRef.current.src = videoSrc;
12142
- }
12143
- else {
12144
- videoRef.current.src = videoSrc;
12145
- }
12146
- }
12147
- else {
12148
- videoRef.current.src = videoSrc;
12149
- }
12130
+ // if (videoSrc.includes('.m3u8')) {
12131
+ // if (Hls.isSupported()) {
12132
+ // const hls = new Hls();
12133
+ // hls.loadSource(videoSrc);
12134
+ // hls.attachMedia(videoRef.current);
12135
+ // hls.on(Hls.Events.MANIFEST_PARSED, function () {
12136
+ // videoRef?.current?.play();
12137
+ // });
12138
+ // } else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12139
+ // videoRef.current.src = videoSrc;
12140
+ // } else {
12141
+ // videoRef.current.src = videoSrc;
12142
+ // }
12143
+ // } else {
12144
+ videoRef.current.src = videoSrc;
12145
+ // }
12150
12146
  videoRef.current.setAttribute('x5-playsinline', 'true');
12151
12147
  videoRef.current.setAttribute('webkit-playsinline', 'true');
12152
12148
  }