@tencentcloud/trtc-cloud-wx 1.0.2-beta.1 → 1.0.3-beta.0
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.
- package/package.json +1 -1
- package/trtc-cloud-wx.js +17 -9
package/package.json
CHANGED
package/trtc-cloud-wx.js
CHANGED
|
@@ -1412,7 +1412,7 @@ var Logger = /*#__PURE__*/function () {
|
|
|
1412
1412
|
var logger = new Logger();
|
|
1413
1413
|
|
|
1414
1414
|
var name = "@tencentcloud/trtc-cloud-wx";
|
|
1415
|
-
var version = "1.0.
|
|
1415
|
+
var version = "1.0.3-beta.0";
|
|
1416
1416
|
var description = "";
|
|
1417
1417
|
var main = "dist/trtc-cloud-wx.js";
|
|
1418
1418
|
var module$1 = "dist/trtc-cloud-wx.js";
|
|
@@ -1504,6 +1504,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1504
1504
|
this.encsmall = 0;
|
|
1505
1505
|
this.allTimer = {};
|
|
1506
1506
|
this.renderMap = new Map();
|
|
1507
|
+
this.pusherIsReady = false;
|
|
1507
1508
|
this.logger = logger;
|
|
1508
1509
|
this.init();
|
|
1509
1510
|
}
|
|
@@ -1555,6 +1556,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1555
1556
|
value: function bindComponentEvent() {
|
|
1556
1557
|
var _this2 = this;
|
|
1557
1558
|
this.InterfaceEventEmitter.on('pusherDomReady', function (isReady) {
|
|
1559
|
+
_this2.pusherIsReady = isReady;
|
|
1558
1560
|
taskMachine.setPusherDomReady(isReady);
|
|
1559
1561
|
if (isReady) {
|
|
1560
1562
|
_this2.trtc.createPusher({});
|
|
@@ -1875,14 +1877,20 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1875
1877
|
logger.info('exitRoom');
|
|
1876
1878
|
var _this$trtc$exitRoom = this.trtc.exitRoom(),
|
|
1877
1879
|
pusher = _this$trtc$exitRoom.pusher;
|
|
1878
|
-
this.
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1880
|
+
if (!this.pusherIsReady) {
|
|
1881
|
+
logger.info('exitRoom success');
|
|
1882
|
+
this.reset();
|
|
1883
|
+
this.emit('onExitRoom', 0);
|
|
1884
|
+
} else {
|
|
1885
|
+
this.InterfaceEventEmitter.emit('pusherAttributesChange', {
|
|
1886
|
+
pusher: pusher,
|
|
1887
|
+
callback: function callback() {
|
|
1888
|
+
logger.info('exitRoom success');
|
|
1889
|
+
_this7.reset();
|
|
1890
|
+
_this7.emit('onExitRoom', 0);
|
|
1891
|
+
}
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1886
1894
|
}
|
|
1887
1895
|
/**
|
|
1888
1896
|
* @category 房间
|