kucservice 1.3.5 → 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.
@@ -10106,7 +10106,7 @@ var initWsBaseTheme = function initWsBaseTheme(socket, _ref) {
10106
10106
  });
10107
10107
  };
10108
10108
 
10109
- var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack) {
10109
+ var common_request_getH265PlayerObj = function getH265PlayerObj(wsServe, rtcServe, doceProUrl, videoConfig, callBack) {
10110
10110
  var videoConfigdefault = {
10111
10111
  showBand: true,
10112
10112
  //网速显示
@@ -10117,7 +10117,13 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10117
10117
  //播放暂停按钮
10118
10118
  audio: true,
10119
10119
  //静音小喇叭
10120
- useMSE: false //是否使用mse
10120
+ useMSE: true,
10121
+ //是否使用mse
10122
+ isMute: true,
10123
+ //是否静音
10124
+ onlyPlay: 2,
10125
+ //1 [H264 只使用264] 2 [H265 只使用265] 默认0 根据后端反馈类型控制
10126
+ refreshNum: 5 //播放错误后自动刷新次数 默认5次
10121
10127
 
10122
10128
  }; // 判断videoConfig是否为JSON对象
10123
10129
 
@@ -10130,6 +10136,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10130
10136
  var h265Play = new h265({
10131
10137
  callBack: callBack || function () {},
10132
10138
  rtcServe: rtcServe,
10139
+ wsServe: wsServe,
10133
10140
  decUrl: doceProUrl || './decoder/decoder-pro.js',
10134
10141
  videoConfig: videoConfigdefault
10135
10142
  });
@@ -10229,7 +10236,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
10229
10236
  value: function getPlayer(rtcServe, doceProUrl, videoConfig, callBack) {
10230
10237
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10231
10238
 
10232
- _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack));
10239
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(this.config.url, rtcServe, doceProUrl, videoConfig, callBack));
10233
10240
 
10234
10241
  return _classPrivateFieldGet(this, _player);
10235
10242
  }
Binary file