浏览代码

feat(external_api): notify when api is disposed

j8
Gabriel-Tiberiu Imre-Lucaci 6 年前
父节点
当前提交
5739e1deaa
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1
    1
      doc/api.md
  2. 1
    0
      modules/API/external/external_api.js

+ 1
- 1
doc/api.md 查看文件

256
 
256
 
257
 * **readyToClose** - event notification fired when Jitsi Meet is ready to be closed (hangup operations are completed).
257
 * **readyToClose** - event notification fired when Jitsi Meet is ready to be closed (hangup operations are completed).
258
 
258
 
259
-* **subjectChange** - event notifications about subject of conference changes. 
259
+* **subjectChange** - event notifications about subject of conference changes.
260
 The listener will receive an object with the following structure:
260
 The listener will receive an object with the following structure:
261
 ```javascript
261
 ```javascript
262
 {
262
 {

+ 1
- 0
modules/API/external/external_api.js 查看文件

534
      * @returns {void}
534
      * @returns {void}
535
      */
535
      */
536
     dispose() {
536
     dispose() {
537
+        this.emit('_willDispose');
537
         this._transport.dispose();
538
         this._transport.dispose();
538
         this.removeAllListeners();
539
         this.removeAllListeners();
539
         if (this._frame) {
540
         if (this._frame) {

正在加载...
取消
保存