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/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('hls.js'), require('eventemitter3')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', '@emotion/css', '@ant-design/pro-components', 'react-dom', 'hls.js', 'eventemitter3'], 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.Hls, global.EventEmitter));
5
- })(this, (function (exports, lodash, uuid$1, pako, React, qs, css, proComponents, ReactDOM, Hls, EventEmitter) { 'use strict';
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
- 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
- var _a;
12128
- (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
12129
- });
12130
- }
12131
- else if (videoRef.current.canPlayType('application/vnd.apple.mpegurl')) {
12132
- videoRef.current.src = videoSrc;
12133
- }
12134
- else {
12135
- videoRef.current.src = videoSrc;
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
  }