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