9
9
ErrorCodeType ,
10
10
IAudioEncodedFrameObserver ,
11
11
SimulcastStreamConfig ,
12
+ SimulcastStreamMode ,
12
13
VideoCanvas ,
13
14
VideoMirrorModeType ,
14
15
VideoSourceType ,
@@ -32,6 +33,7 @@ import {
32
33
ScreenCaptureSourceInfo ,
33
34
SDKBuildInfo ,
34
35
Size ,
36
+ ExtensionInfo
35
37
} from '../IAgoraRtcEngine' ;
36
38
import { RtcConnection } from '../IAgoraRtcEngineEx' ;
37
39
import { IAudioDeviceManager } from '../IAudioDeviceManager' ;
@@ -321,12 +323,57 @@ export class RtcEngineExInternal extends IRtcEngineExImpl {
321
323
322
324
protected getApiTypeFromEnableDualStreamMode (
323
325
enabled : boolean ,
324
- sourceType : VideoSourceType = VideoSourceType . VideoSourceCameraPrimary ,
325
326
streamConfig ?: SimulcastStreamConfig
326
327
) : string {
327
328
return streamConfig === undefined
328
- ? 'RtcEngine_enableDualStreamMode2'
329
- : 'RtcEngine_enableDualStreamMode3' ;
329
+ ? 'RtcEngine_enableDualStreamMode'
330
+ : 'RtcEngine_enableDualStreamMode2' ;
331
+ }
332
+
333
+ protected getApiTypeFromSetDualStreamMode (
334
+ mode : SimulcastStreamMode ,
335
+ streamConfig ?: SimulcastStreamConfig
336
+ ) : string {
337
+ return streamConfig === undefined
338
+ ?'RtcEngine_setDualStreamMode'
339
+ :'RtcEngine_setDualStreamMode2' ;
340
+ }
341
+
342
+ protected getApiTypeFromLeaveChannelEx (
343
+ connection : RtcConnection ,
344
+ options ?: LeaveChannelOptions
345
+ ) : string {
346
+ return 'RtcEngineEx_leaveChannelEx2' ;
347
+ }
348
+
349
+ protected getApiTypeFromGetExtensionProperty (
350
+ provider : string ,
351
+ extension : string ,
352
+ extensionInfo : ExtensionInfo ,
353
+ key : string ,
354
+ bufLen : number
355
+ ) : string {
356
+ return 'RtcEngine_getExtensionProperty2' ;
357
+ }
358
+
359
+ protected getApiTypeFromEnableExtension (
360
+ provider : string ,
361
+ extension : string ,
362
+ extensionInfo : ExtensionInfo ,
363
+ enable = true
364
+ ) : string {
365
+ return 'RtcEngine_enableExtension2' ;
366
+ }
367
+
368
+
369
+ protected getApiTypeFromSetExtensionProperty (
370
+ provider : string ,
371
+ extension : string ,
372
+ extensionInfo : ExtensionInfo ,
373
+ key : string ,
374
+ value : string
375
+ ) : string {
376
+ return 'RtcEngine_setExtensionProperty2' ;
330
377
}
331
378
332
379
protected getApiTypeFromCreateDataStream ( config : DataStreamConfig ) : string {
0 commit comments