kucservice 1.3.4 → 1.3.6

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.
@@ -10097,7 +10097,7 @@ var initWsBaseTheme = function initWsBaseTheme(socket, _ref) {
10097
10097
  });
10098
10098
  };
10099
10099
 
10100
- var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack) {
10100
+ var common_request_getH265PlayerObj = function getH265PlayerObj(wsServe, rtcServe, doceProUrl, videoConfig, callBack) {
10101
10101
  var videoConfigdefault = {
10102
10102
  showBand: true,
10103
10103
  //网速显示
@@ -10108,7 +10108,13 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10108
10108
  //播放暂停按钮
10109
10109
  audio: true,
10110
10110
  //静音小喇叭
10111
- useMSE: false //是否使用mse
10111
+ useMSE: true,
10112
+ //是否使用mse
10113
+ isMute: true,
10114
+ //是否静音
10115
+ onlyPlay: 2,
10116
+ //1 [H264 只使用264] 2 [H265 只使用265] 默认0 根据后端反馈类型控制
10117
+ refreshNum: 5 //播放错误后自动刷新次数 默认5次
10112
10118
 
10113
10119
  }; // 判断videoConfig是否为JSON对象
10114
10120
 
@@ -10121,6 +10127,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10121
10127
  var h265Play = new h265({
10122
10128
  callBack: callBack || function () {},
10123
10129
  rtcServe: rtcServe,
10130
+ wsServe: wsServe,
10124
10131
  decUrl: doceProUrl || './decoder/decoder-pro.js',
10125
10132
  videoConfig: videoConfigdefault
10126
10133
  });
@@ -10220,7 +10227,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
10220
10227
  value: function getPlayer(rtcServe, doceProUrl, videoConfig, callBack) {
10221
10228
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10222
10229
 
10223
- _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack));
10230
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(this.config.url, rtcServe, doceProUrl, videoConfig, callBack));
10224
10231
 
10225
10232
  return _classPrivateFieldGet(this, _player);
10226
10233
  }
Binary file