kucservice 1.3.6 → 1.3.8-0

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(wsServe, rtcServe, doceProUrl, videoConfig, callBack) {
10100
+ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack) {
10101
10101
  var videoConfigdefault = {
10102
10102
  showBand: true,
10103
10103
  //网速显示
@@ -10112,7 +10112,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(wsServe, rtcServ
10112
10112
  //是否使用mse
10113
10113
  isMute: true,
10114
10114
  //是否静音
10115
- onlyPlay: 2,
10115
+ onlyPlay: 0,
10116
10116
  //1 [H264 只使用264] 2 [H265 只使用265] 默认0 根据后端反馈类型控制
10117
10117
  refreshNum: 5 //播放错误后自动刷新次数 默认5次
10118
10118
 
@@ -10124,10 +10124,10 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(wsServe, rtcServ
10124
10124
 
10125
10125
  console.log('===callback====');
10126
10126
  console.log(callBack);
10127
- var h265Play = new h265({
10127
+ var h265Play = new h265v3({
10128
10128
  callBack: callBack || function () {},
10129
- rtcServe: rtcServe,
10130
- wsServe: wsServe,
10129
+ rtcServe: rtcServe.url,
10130
+ wsServe: rtcServe.ctrUrl,
10131
10131
  decUrl: doceProUrl || './decoder/decoder-pro.js',
10132
10132
  videoConfig: videoConfigdefault
10133
10133
  });
@@ -10227,7 +10227,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
10227
10227
  value: function getPlayer(rtcServe, doceProUrl, videoConfig, callBack) {
10228
10228
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10229
10229
 
10230
- _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(this.config.url, rtcServe, doceProUrl, videoConfig, callBack));
10230
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack));
10231
10231
 
10232
10232
  return _classPrivateFieldGet(this, _player);
10233
10233
  }
Binary file