@tencentcloud/trtc-cloud-wx 0.0.4 → 0.0.6
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 +8 -2
package/package.json
CHANGED
package/trtc-cloud-wx.js
CHANGED
|
@@ -678,7 +678,7 @@ function safelyParse(data) {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
var name = "@tencentcloud/trtc-cloud-wx";
|
|
681
|
-
var version = "0.0.
|
|
681
|
+
var version = "0.0.6";
|
|
682
682
|
var description = "";
|
|
683
683
|
var main = "dist/trtc-cloud-wx.js";
|
|
684
684
|
var module$1 = "dist/trtc-cloud-wx.js";
|
|
@@ -788,6 +788,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
788
788
|
key: "init",
|
|
789
789
|
value: function init() {
|
|
790
790
|
this.trtc = new TRTC(this);
|
|
791
|
+
this.trtc.setLogLevel(3);
|
|
791
792
|
this.TRTC_EVENT = this.trtc.EVENT;
|
|
792
793
|
this.trtc.createPusher({});
|
|
793
794
|
this.bindTRTCEvent();
|
|
@@ -803,7 +804,8 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
803
804
|
this.isMuted = false;
|
|
804
805
|
this.isOpenCamera = false;
|
|
805
806
|
Object.keys(this.allTimer).forEach(function (key) {
|
|
806
|
-
|
|
807
|
+
clearInterval(_this.allTimer[key]);
|
|
808
|
+
_this.allTimer[key] = null;
|
|
807
809
|
});
|
|
808
810
|
}
|
|
809
811
|
}, {
|
|
@@ -829,6 +831,8 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
829
831
|
var _event$data2 = event.data,
|
|
830
832
|
userID = _event$data2.userID;
|
|
831
833
|
_event$data2.playerList;
|
|
834
|
+
_this2.emit('onUserVideoAvailable', userID, 0);
|
|
835
|
+
_this2.emit('onUserSubStreamAvailable', userID, 0);
|
|
832
836
|
_this2.emit('onRemoteUserLeaveRoom', userID, 0);
|
|
833
837
|
_this2.InterfaceEventEmitter.emit('onRemoteUserLeaveRoom', userID, 0);
|
|
834
838
|
});
|
|
@@ -891,6 +895,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
891
895
|
var _a;
|
|
892
896
|
if ((_a = this.allTimer) === null || _a === void 0 ? void 0 : _a.AudioVolume) {
|
|
893
897
|
clearInterval(this.allTimer.AudioVolume);
|
|
898
|
+
this.allTimer.AudioVolume = null;
|
|
894
899
|
}
|
|
895
900
|
if (interval === 0) return function () {};
|
|
896
901
|
var tempUserVolumes = [];
|
|
@@ -921,6 +926,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
921
926
|
var _a;
|
|
922
927
|
if ((_a = this.allTimer) === null || _a === void 0 ? void 0 : _a.networkQuality) {
|
|
923
928
|
clearInterval(this.allTimer.networkQuality);
|
|
929
|
+
this.allTimer.networkQuality = null;
|
|
924
930
|
}
|
|
925
931
|
if (interval === 0) return function () {};
|
|
926
932
|
var resultQuality = {
|