ucservice 2.2.2 → 2.2.3

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.
@@ -15234,14 +15234,17 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15234
15234
  let timer = null;
15235
15235
 
15236
15236
  if (second && mianVP) {
15237
- timer = setTimeout(() => {
15237
+ timer = setInterval(() => {
15238
15238
  second--;
15239
- if (second > 0) videoDom.find('#replay-' + videoObj.index).text(second + '秒后自动尝试重连,点击立即重连');else if (second == 0) videoObj.videoListener.dispatch("openVideo", {
15240
- index: videoObj.index,
15241
- video: video,
15242
- id: videoObj.id,
15243
- opts: videoObj.opts
15244
- });
15239
+ if (second > 0) videoDom.find('#replay-' + videoObj.index).text(second + '秒后自动尝试重连,点击立即重连');else if (second == 0) {
15240
+ clearInterval(timer);
15241
+ videoObj.videoListener.dispatch("openVideo", {
15242
+ index: videoObj.index,
15243
+ video: video,
15244
+ id: videoObj.id,
15245
+ opts: videoObj.opts
15246
+ });
15247
+ }
15245
15248
  }, 1000);
15246
15249
  }
15247
15250
 
@@ -15249,7 +15252,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15249
15252
  $("#replay-" + videoObj.index).unbind("click").click(function () {
15250
15253
  debugger;
15251
15254
  second = 0;
15252
- clearTimeout(timer);
15255
+ clearInterval(timer);
15253
15256
  timer = null;
15254
15257
  videoObj.videoListener.dispatch("openVideo", {
15255
15258
  index: videoObj.index,
Binary file