agora-rte-sdk 2.8.52 → 2.8.53
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.
|
@@ -39,6 +39,8 @@ export declare class RtcAdapterElectron extends RtcAdapterBase {
|
|
|
39
39
|
get rtcEngine(): AgoraRtcEngine;
|
|
40
40
|
get channelProfile(): AGChannelProfile;
|
|
41
41
|
get latencyLevel(): AUDIENCE_LATENCY_LEVEL_TYPE;
|
|
42
|
+
static get addonLogPath(): any;
|
|
43
|
+
static get vsAddonLogPath(): any;
|
|
42
44
|
constructor();
|
|
43
45
|
createRtcChannel(channelName: string, base: RtcAdapterBase): RtcChannelAdapterBase;
|
|
44
46
|
getVideoDeviceManager(): RtcVideoDeviceManagerBase;
|
|
@@ -142,6 +142,8 @@ var RtcAdapterElectron = (_dec = _log.Log.attach({
|
|
|
142
142
|
_logger.Logger.warn("no log path found, sdk logs will be put in default folder");
|
|
143
143
|
res = _this.rtcEngine.initialize(_configs.AgoraRteEngineConfig.shared.appId, _this._region);
|
|
144
144
|
}
|
|
145
|
+
_this.rtcEngine.setAddonLogFile(RtcAdapterElectron.addonLogPath);
|
|
146
|
+
_logger.Logger.info('addon log path', RtcAdapterElectron.addonLogPath);
|
|
145
147
|
var defaultRemoteVideoStreamType = _configs.AgoraRteEngineConfig.shared.rtcConfigs.defaultRemoteVideoStreamType;
|
|
146
148
|
if (typeof defaultRemoteVideoStreamType !== 'undefined') {
|
|
147
149
|
_this.rtcEngine.setRemoteDefaultVideoStreamType(defaultRemoteVideoStreamType);
|
|
@@ -329,6 +331,8 @@ var RtcAdapterElectron = (_dec = _log.Log.attach({
|
|
|
329
331
|
value: function startScreenCapture(params) {
|
|
330
332
|
// electron must call start screenshare after join channel, so we store the parameter for later use here
|
|
331
333
|
this.rtcEngine.videoSourceInitialize(_configs.AgoraRteEngineConfig.shared.appId);
|
|
334
|
+
this.rtcEngine.videoSourceSetLogFile(RtcAdapterElectron.vsAddonLogPath);
|
|
335
|
+
this.logger.info('videosource addon log path', RtcAdapterElectron.vsAddonLogPath);
|
|
332
336
|
if ((params === null || params === void 0 ? void 0 : params.id) !== undefined) {
|
|
333
337
|
var id = params.id,
|
|
334
338
|
type = params.type,
|
|
@@ -553,6 +557,26 @@ var RtcAdapterElectron = (_dec = _log.Log.attach({
|
|
|
553
557
|
}
|
|
554
558
|
return remote;
|
|
555
559
|
}
|
|
560
|
+
}, {
|
|
561
|
+
key: "addonLogPath",
|
|
562
|
+
get: function get() {
|
|
563
|
+
var folder = this.logFolderPath;
|
|
564
|
+
if (folder) {
|
|
565
|
+
var path = window.require('path');
|
|
566
|
+
return path.resolve(folder, 'addon.log');
|
|
567
|
+
}
|
|
568
|
+
return undefined;
|
|
569
|
+
}
|
|
570
|
+
}, {
|
|
571
|
+
key: "vsAddonLogPath",
|
|
572
|
+
get: function get() {
|
|
573
|
+
var folder = this.logFolderPath;
|
|
574
|
+
if (folder) {
|
|
575
|
+
var path = window.require('path');
|
|
576
|
+
return path.resolve(folder, 'videosource-addon.log');
|
|
577
|
+
}
|
|
578
|
+
return undefined;
|
|
579
|
+
}
|
|
556
580
|
}, {
|
|
557
581
|
key: "getLogLevel",
|
|
558
582
|
value: function getLogLevel() {
|
|
@@ -770,6 +794,8 @@ var RtcChannelAdapterElectron = (_dec2 = _log.Log.attach({
|
|
|
770
794
|
x: 0,
|
|
771
795
|
y: 0
|
|
772
796
|
};
|
|
797
|
+
this.logger.info("capture param: ".concat(JSON.stringify(captureParam)));
|
|
798
|
+
this.logger.info("capture rect: ".concat(JSON.stringify(captureRect)));
|
|
773
799
|
if (type === _type.AGScreenShareType.Screen) {
|
|
774
800
|
var screenSymbol = process.platform === 'darwin' ? {
|
|
775
801
|
id: parseInt(id),
|