@@ -5010,16 +5010,19 @@ export class IRtcEngineImpl implements IRtcEngine {
5010
5010
}
5011
5011
5012
5012
startScreenCaptureDesktop (
5013
- type : VideoSourceType ,
5013
+ sourceType : VideoSourceType ,
5014
5014
config : ScreenCaptureConfiguration
5015
5015
) : number {
5016
- const apiType = this . getApiTypeFromStartScreenCaptureDesktop ( type , config ) ;
5016
+ const apiType = this . getApiTypeFromStartScreenCaptureDesktop (
5017
+ sourceType ,
5018
+ config
5019
+ ) ;
5017
5020
const jsonParams = {
5018
- type : type ,
5021
+ sourceType : sourceType ,
5019
5022
config : config ,
5020
5023
toJSON : ( ) => {
5021
5024
return {
5022
- type : type ,
5025
+ sourceType : sourceType ,
5023
5026
config : config ,
5024
5027
} ;
5025
5028
} ,
@@ -5029,7 +5032,7 @@ export class IRtcEngineImpl implements IRtcEngine {
5029
5032
}
5030
5033
5031
5034
protected getApiTypeFromStartScreenCaptureDesktop (
5032
- type : VideoSourceType ,
5035
+ sourceType : VideoSourceType ,
5033
5036
config : ScreenCaptureConfiguration
5034
5037
) : string {
5035
5038
return 'RtcEngine_startScreenCaptureDesktop' ;
@@ -5087,14 +5090,14 @@ export class IRtcEngineImpl implements IRtcEngine {
5087
5090
}
5088
5091
5089
5092
stopScreenCapture (
5090
- type : VideoSourceType = VideoSourceType . VideoSourceScreenPrimary
5093
+ sourceType : VideoSourceType = VideoSourceType . VideoSourceScreenPrimary
5091
5094
) : number {
5092
- const apiType = this . getApiTypeFromStopScreenCapture ( type ) ;
5095
+ const apiType = this . getApiTypeFromStopScreenCapture ( sourceType ) ;
5093
5096
const jsonParams = {
5094
- type : type ,
5097
+ sourceType : sourceType ,
5095
5098
toJSON : ( ) => {
5096
5099
return {
5097
- type : type ,
5100
+ sourceType : sourceType ,
5098
5101
} ;
5099
5102
} ,
5100
5103
} ;
@@ -5103,7 +5106,7 @@ export class IRtcEngineImpl implements IRtcEngine {
5103
5106
}
5104
5107
5105
5108
protected getApiTypeFromStopScreenCapture (
5106
- type : VideoSourceType = VideoSourceType . VideoSourceScreenPrimary
5109
+ sourceType : VideoSourceType = VideoSourceType . VideoSourceScreenPrimary
5107
5110
) : string {
5108
5111
return 'RtcEngine_stopScreenCapture' ;
5109
5112
}
0 commit comments