@tencentcloud/trtc-cloud-wx 0.0.15 → 0.0.17
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 +5 -4
package/package.json
CHANGED
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.
|
|
817
|
+
var version = "0.0.16";
|
|
818
818
|
var description = "";
|
|
819
819
|
var main = "dist/trtc-cloud-wx.js";
|
|
820
820
|
var module$1 = "dist/trtc-cloud-wx.js";
|
|
@@ -826,7 +826,8 @@ var scripts = {
|
|
|
826
826
|
copy: "node ./build/copy.js",
|
|
827
827
|
doc: "npx typedoc --tsconfig typedoc.json",
|
|
828
828
|
"doc:watch": "typedoc --watch",
|
|
829
|
-
"doc:build": "jsdoc -c jsdoc.json"
|
|
829
|
+
"doc:build": "jsdoc -c jsdoc.json",
|
|
830
|
+
publish: "npm run build && bash ./sdk_publish.bash"
|
|
830
831
|
};
|
|
831
832
|
var keywords = [
|
|
832
833
|
];
|
|
@@ -1151,7 +1152,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1151
1152
|
});
|
|
1152
1153
|
logger.info('enterRoom with options: ', JSON.stringify(params), scene);
|
|
1153
1154
|
this.userId = userId;
|
|
1154
|
-
this.trtc.createPusher(
|
|
1155
|
+
this.trtc.createPusher(this.trtc.getPusherAttributes());
|
|
1155
1156
|
var pusher = this.trtc.enterRoom({
|
|
1156
1157
|
sdkAppID: sdkAppId,
|
|
1157
1158
|
userID: userId,
|
|
@@ -1516,7 +1517,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1516
1517
|
var _a;
|
|
1517
1518
|
logger.info('setTRTCPlayerAttributes with options: ', streamId, options);
|
|
1518
1519
|
this.trtc.setPlayerAttributes(streamId, options);
|
|
1519
|
-
return (_a = this.trtc.getPlayerInstance(streamId)) === null || _a === void 0 ? void 0 : _a.playerAttributes;
|
|
1520
|
+
return ((_a = this.trtc.getPlayerInstance(streamId)) === null || _a === void 0 ? void 0 : _a.playerAttributes) || {};
|
|
1520
1521
|
}
|
|
1521
1522
|
}, {
|
|
1522
1523
|
key: "setVideoEncoderParam",
|