trtc-electron-sdk 9.5.112-beta.2 → 9.5.112-beta.3
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 +4 -0
- package/package.json +1 -1
package/liteav/trtc.js
CHANGED
|
@@ -3131,6 +3131,7 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
3131
3131
|
* - 2 yuvcanvs
|
|
3132
3132
|
*/
|
|
3133
3133
|
setRenderMode(mode = 1) {
|
|
3134
|
+
console.debug(`trtc: renderMode current: ${this.renderMode} new: ${mode}`);
|
|
3134
3135
|
if (this.renderMode !== mode) {
|
|
3135
3136
|
this.renderMode = mode;
|
|
3136
3137
|
// 遍历原有的renderer,改为新的渲染模式
|
|
@@ -3214,12 +3215,15 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
3214
3215
|
gl = canvas.getContext('webgl', options) || canvas.getContext('experimental-webgl', options);
|
|
3215
3216
|
}
|
|
3216
3217
|
catch (e) {
|
|
3218
|
+
console.warn('trtc:WebGL not supported');
|
|
3217
3219
|
return false;
|
|
3218
3220
|
}
|
|
3219
3221
|
if (gl) {
|
|
3222
|
+
console.warn('trtc:WebGL supported');
|
|
3220
3223
|
return true;
|
|
3221
3224
|
}
|
|
3222
3225
|
else {
|
|
3226
|
+
console.warn('trtc:WebGL not supported');
|
|
3223
3227
|
return false;
|
|
3224
3228
|
}
|
|
3225
3229
|
}
|