Skip to content

Commit

Permalink
fix: enum type cast bug, close #345
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jun 9, 2021
1 parent 229a1b8 commit 85d720d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/rtc_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ class RtcEngine with RtcEngineInterface {

@override
Future<void> setCloudProxy(CloudProxyType proxyType) {
return _invokeMethod('enableRemoteSuperResolution',
{'proxyType': CloudProxyTypeConverter(proxyType).e});
return _invokeMethod('setCloudProxy',
{'proxyType': CloudProxyTypeConverter(proxyType).value()});
}

@override
Expand All @@ -1038,7 +1038,7 @@ class RtcEngine with RtcEngineInterface {
Future<void> setVoiceBeautifierParameters(
VoiceBeautifierPreset preset, int param1, int param2) {
return _invokeMethod('setVoiceBeautifierParameters', {
'preset': VoiceBeautifierPresetConverter(preset).e,
'preset': VoiceBeautifierPresetConverter(preset).value(),
'param1': param1,
'param2': param2
});
Expand All @@ -1047,7 +1047,7 @@ class RtcEngine with RtcEngineInterface {
@override
Future<void> setVoiceConversionPreset(VoiceConversionPreset preset) {
return _invokeMethod('setVoiceConversionPreset',
{'preset': VoiceConversionPresetConverter(preset).e});
{'preset': VoiceConversionPresetConverter(preset).value()});
}
}

Expand Down

0 comments on commit 85d720d

Please sign in to comment.