trtc-electron-sdk 11.2.118-beta.0 → 11.2.118-beta.1
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/liteav/trtc.js +3 -2
- package/package.json +1 -1
package/liteav/trtc.js
CHANGED
|
@@ -4030,6 +4030,7 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
4030
4030
|
// plugin API -- start
|
|
4031
4031
|
//----------------------------------//
|
|
4032
4032
|
initPluginManager(options) {
|
|
4033
|
+
const defaultPixelFormat = !this._isMacPlatform() ? trtc_define_1.TRTCVideoPixelFormat.TRTCVideoPixelFormat_RGBA32 : trtc_define_1.TRTCVideoPixelFormat.TRTCVideoPixelFormat_BGRA32;
|
|
4033
4034
|
if (options) {
|
|
4034
4035
|
if (options.bufferType && options.bufferType === trtc_define_1.TRTCVideoBufferType.TRTCVideoBufferType_Texture) {
|
|
4035
4036
|
this.videoProcessBufferType = options.bufferType;
|
|
@@ -4041,12 +4042,12 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
4041
4042
|
this.videoProcessPixelFormat = options.pixelFormat;
|
|
4042
4043
|
}
|
|
4043
4044
|
else {
|
|
4044
|
-
this.videoProcessPixelFormat =
|
|
4045
|
+
this.videoProcessPixelFormat = defaultPixelFormat;
|
|
4045
4046
|
}
|
|
4046
4047
|
}
|
|
4047
4048
|
}
|
|
4048
4049
|
else {
|
|
4049
|
-
this.videoProcessPixelFormat =
|
|
4050
|
+
this.videoProcessPixelFormat = defaultPixelFormat;
|
|
4050
4051
|
this.videoProcessBufferType = trtc_define_1.TRTCVideoBufferType.TRTCVideoBufferType_Buffer;
|
|
4051
4052
|
}
|
|
4052
4053
|
this.rtcCloud.initializePluginManager(this.videoProcessPixelFormat, this.videoProcessBufferType);
|