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/pb-ui.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('@emotion/css'), require('@ant-design/pro-components'), require('react-dom'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', '@emotion/css', '@ant-design/pro-components', 'react-dom', '
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.css, global.proComponents, global.ReactDOM, global.
|
5
|
-
})(this, (function (exports, lodash, uuid$1, pako, React, qs, css, proComponents, ReactDOM,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('@emotion/css'), require('@ant-design/pro-components'), require('react-dom'), require('eventemitter3'), require('hls.js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', '@emotion/css', '@ant-design/pro-components', 'react-dom', 'eventemitter3', 'hls.js'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.css, global.proComponents, global.ReactDOM, global.EventEmitter, global.Hls));
|
5
|
+
})(this, (function (exports, lodash, uuid$1, pako, React, qs, css, proComponents, ReactDOM, EventEmitter, Hls) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
8
8
|
var n = Object.create(null);
|
@@ -12118,26 +12118,22 @@ Made in Italy` })));
|
|
12118
12118
|
setIsPauseVideo(false);
|
12119
12119
|
if (!videoRef.current.src) {
|
12120
12120
|
const videoSrc = rec.video.url;
|
12121
|
-
if (videoSrc.includes('.m3u8')) {
|
12122
|
-
|
12123
|
-
|
12124
|
-
|
12125
|
-
|
12126
|
-
|
12127
|
-
|
12128
|
-
|
12129
|
-
|
12130
|
-
|
12131
|
-
|
12132
|
-
|
12133
|
-
|
12134
|
-
|
12135
|
-
|
12136
|
-
|
12137
|
-
}
|
12138
|
-
else {
|
12139
|
-
videoRef.current.src = videoSrc;
|
12140
|
-
}
|
12121
|
+
// if (videoSrc.includes('.m3u8')) {
|
12122
|
+
// if (Hls.isSupported()) {
|
12123
|
+
// const hls = new Hls();
|
12124
|
+
// hls.loadSource(videoSrc);
|
12125
|
+
// hls.attachMedia(videoRef.current);
|
12126
|
+
// hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
12127
|
+
// videoRef?.current?.play();
|
12128
|
+
// });
|
12129
|
+
// } else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
|
12130
|
+
// videoRef.current.src = videoSrc;
|
12131
|
+
// } else {
|
12132
|
+
// videoRef.current.src = videoSrc;
|
12133
|
+
// }
|
12134
|
+
// } else {
|
12135
|
+
videoRef.current.src = videoSrc;
|
12136
|
+
// }
|
12141
12137
|
videoRef.current.setAttribute('x5-playsinline', 'true');
|
12142
12138
|
videoRef.current.setAttribute('webkit-playsinline', 'true');
|
12143
12139
|
}
|