0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

はじめての Zoom Meeting SDK - Web - 通話中にブラウザを閉じてしまった編

Posted at

Zoom Meeting SDK for Web で利用、通話中に稀にブラウザを閉じてしまって接続が数分残ってしまうことがあります。
そのような際にブラウザ側で提供可能な「beforeunload」(イベント)をトリガーすることで切断処理を活用しやすくなります。
SDKクライアントの生成後通話前に以下のようにリスナーを実行するといった方法が考えられます。

  let zmClient = ZoomMtgEmbedded.createClient();

  window.addEventListener("beforeunload", function(event) {
    zmClient.leaveMeeting();
    console.log("leaveMeeting");
    event.returnValue = "";
  });

■ 関連記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?