EZUIKit-JavaScript-npm icon indicating copy to clipboard operation
EZUIKit-JavaScript-npm copied to clipboard

再vue中beforeDestroy钩子函数中调用player.destroy()ba

Open hongliping123 opened this issue 3 years ago • 3 comments

image

hongliping123 avatar Oct 13 '23 08:10 hongliping123

beforeRouteLeave(to, from ,next) { this.dp && this.dp.destroy(); if (player){ try { player.stop().then(()=> { try { player = null; }catch (e){

      }
      try {
        // let playerContainer = document.getElementById('video-container');
        // playerContainer.remove();
        next()
      }catch (e){

      }
    })
  }catch (e){
  }
}

}

解决方案

hongliping123 avatar Oct 14 '23 02:10 hongliping123

技术问题您可以提一个工单https://open.ys7.com/console/work.html

发件人: 一介码夫 @.> 发送时间: 2023年10月14日 10:18 收件人: Ezviz-OpenBiz/EZUIKit-JavaScript-npm @.> 抄送: Subscribed @.***> 主题: Re: [Ezviz-OpenBiz/EZUIKit-JavaScript-npm] 再vue中beforeDestroy钩子函数中调用player.destroy()ba (Issue #147)

beforeRouteLeave(to, from ,next) { this.dp && this.dp.destroy(); if (player){ try { player.stop().then(()=> { try { player = null; }catch (e){

  }

  try {

    // let playerContainer = document.getElementById('video-container');

    // playerContainer.remove();

    next()

  }catch (e){



  }

})

}catch (e){

}

}

}

解决方案

— Reply to this email directly, view it on GitHubhttps://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/147#issuecomment-1762503954, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD3TVUQCEG555HSJN5B4JKTX7HY4ZANCNFSM6AAAAAA56ZCFME. You are receiving this because you are subscribed to this thread.Message ID: @.***>


本邮件及其附件含有萤石公司保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from EZVIZ, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

Ezviz-Open avatar Oct 16 '23 02:10 Ezviz-Open

有解决方案了么?

mraing avatar Oct 16 '23 06:10 mraing