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 +17 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -21
- 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 +20 -24
- 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 +1 -21
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -21
- package/package.json +1 -1
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
|
-
|
12132
|
-
|
12133
|
-
|
12134
|
-
|
12135
|
-
|
12136
|
-
|
12137
|
-
|
12138
|
-
|
12139
|
-
|
12140
|
-
|
12141
|
-
|
12142
|
-
|
12143
|
-
|
12144
|
-
|
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
|
}
|