@tencentcloud/trtc-cloud-wx 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/trtc-cloud-wx.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/trtc-cloud-wx",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "./trtc-cloud-wx.js",
6
6
  "type": "module",
package/trtc-cloud-wx.js CHANGED
@@ -814,7 +814,7 @@ var Logger = /*#__PURE__*/function () {
814
814
  var logger = new Logger();
815
815
 
816
816
  var name = "@tencentcloud/trtc-cloud-wx";
817
- var version = "0.0.10";
817
+ var version = "0.0.11";
818
818
  var description = "";
819
819
  var main = "dist/trtc-cloud-wx.js";
820
820
  var module$1 = "dist/trtc-cloud-wx.js";
@@ -1175,7 +1175,7 @@ var TRTCCloud = /*#__PURE__*/function () {
1175
1175
  _this5.isEnterRoom = true;
1176
1176
  var endTime = new Date().getTime();
1177
1177
  _this5.emit('onEnterRoom', endTime - startTime);
1178
- if (_this5.trtc.getPusherAttributes().enableCamera === true) {
1178
+ if (_this5.trtc.getPusherAttributes().videoPreview === true) {
1179
1179
  _this5.emit('onSendFirstLocalVideoFrame', exports.TRTCVideoStreamType.TRTCVideoStreamTypeBig);
1180
1180
  }
1181
1181
  },
@@ -1224,6 +1224,7 @@ var TRTCCloud = /*#__PURE__*/function () {
1224
1224
  var tempRole = this.role;
1225
1225
  this.role = role;
1226
1226
  if (tempRole === role || role === exports.TRTCRoleType.TRTCRoleAnchor) {
1227
+ logger.info('switchRole success');
1227
1228
  this.emit('onSwitchRole', 0, '');
1228
1229
  return;
1229
1230
  }