@@ -27,10 +27,10 @@ class MediaEngineImpl implements MediaEngine {
2727 void registerAudioFrameObserver (AudioFrameObserver observer) {
2828 // Implementation template
2929// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_registerAudioFrameObserver_d873a64';
30- // final param = createParams({
30+ // final requestParam = createParams({
3131// 'observer': observer
3232// });
33- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
33+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
3434// if (callApiResult.irisReturnCode < 0) {
3535// throw AgoraRtcException(code: callApiResult.irisReturnCode);
3636// }
@@ -44,10 +44,10 @@ class MediaEngineImpl implements MediaEngine {
4444 void registerVideoFrameObserver (VideoFrameObserver observer) {
4545 // Implementation template
4646// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_registerVideoFrameObserver_2cc0ef1';
47- // final param = createParams({
47+ // final requestParam = createParams({
4848// 'observer': observer
4949// });
50- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
50+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
5151// if (callApiResult.irisReturnCode < 0) {
5252// throw AgoraRtcException(code: callApiResult.irisReturnCode);
5353// }
@@ -61,10 +61,10 @@ class MediaEngineImpl implements MediaEngine {
6161 void registerVideoEncodedFrameObserver (VideoEncodedFrameObserver observer) {
6262 // Implementation template
6363// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_registerVideoEncodedFrameObserver_d45d579';
64- // final param = createParams({
64+ // final requestParam = createParams({
6565// 'observer': observer
6666// });
67- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
67+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
6868// if (callApiResult.irisReturnCode < 0) {
6969// throw AgoraRtcException(code: callApiResult.irisReturnCode);
7070// }
@@ -79,10 +79,10 @@ class MediaEngineImpl implements MediaEngine {
7979 void registerFaceInfoObserver (FaceInfoObserver observer) {
8080 // Implementation template
8181// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_registerFaceInfoObserver_0303ed6';
82- // final param = createParams({
82+ // final requestParam = createParams({
8383// 'observer': observer
8484// });
85- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
85+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
8686// if (callApiResult.irisReturnCode < 0) {
8787// throw AgoraRtcException(code: callApiResult.irisReturnCode);
8888// }
@@ -97,11 +97,12 @@ class MediaEngineImpl implements MediaEngine {
9797 {required AudioFrame frame, int trackId = 0 }) async {
9898 final apiType =
9999 '${isOverrideClassName ? className : 'MediaEngine' }_pushAudioFrame_c71f4ab' ;
100- final param = createParams ({'frame' : frame.toJson (), 'trackId' : trackId});
100+ final requestParam =
101+ createParams ({'frame' : frame.toJson (), 'trackId' : trackId});
101102 final List <Uint8List > buffers = [];
102103 buffers.addAll (frame.collectBufferList ());
103104 final callApiResult = await irisMethodChannel.invokeMethod (
104- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
105+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
105106 if (callApiResult.irisReturnCode < 0 ) {
106107 throw AgoraRtcException (code: callApiResult.irisReturnCode);
107108 }
@@ -116,11 +117,11 @@ class MediaEngineImpl implements MediaEngine {
116117 Future <void > pullAudioFrame (AudioFrame frame) async {
117118 final apiType =
118119 '${isOverrideClassName ? className : 'MediaEngine' }_pullAudioFrame_2c74a9c' ;
119- final param = createParams ({'frame' : frame.toJson ()});
120+ final requestParam = createParams ({'frame' : frame.toJson ()});
120121 final List <Uint8List > buffers = [];
121122 buffers.addAll (frame.collectBufferList ());
122123 final callApiResult = await irisMethodChannel.invokeMethod (
123- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
124+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
124125 if (callApiResult.irisReturnCode < 0 ) {
125126 throw AgoraRtcException (code: callApiResult.irisReturnCode);
126127 }
@@ -139,7 +140,7 @@ class MediaEngineImpl implements MediaEngine {
139140 SenderOptions encodedVideoOption = const SenderOptions ()}) async {
140141 final apiType =
141142 '${isOverrideClassName ? className : 'MediaEngine' }_setExternalVideoSource_fff99b6' ;
142- final param = createParams ({
143+ final requestParam = createParams ({
143144 'enabled' : enabled,
144145 'useTexture' : useTexture,
145146 'sourceType' : sourceType.value (),
@@ -148,7 +149,7 @@ class MediaEngineImpl implements MediaEngine {
148149 final List <Uint8List > buffers = [];
149150 buffers.addAll (encodedVideoOption.collectBufferList ());
150151 final callApiResult = await irisMethodChannel.invokeMethod (
151- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
152+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
152153 if (callApiResult.irisReturnCode < 0 ) {
153154 throw AgoraRtcException (code: callApiResult.irisReturnCode);
154155 }
@@ -163,9 +164,9 @@ class MediaEngineImpl implements MediaEngine {
163164 Future <void > setExternalRemoteEglContext (int eglContext) async {
164165 final apiType =
165166 '${isOverrideClassName ? className : 'MediaEngine' }_setExternalRemoteEglContext_f337cbf' ;
166- final param = createParams ({'eglContext' : eglContext});
167+ final requestParam = createParams ({'eglContext' : eglContext});
167168 final callApiResult = await irisMethodChannel.invokeMethod (
168- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
169+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
169170 if (callApiResult.irisReturnCode < 0 ) {
170171 throw AgoraRtcException (code: callApiResult.irisReturnCode);
171172 }
@@ -185,15 +186,15 @@ class MediaEngineImpl implements MediaEngine {
185186 bool publish = true }) async {
186187 final apiType =
187188 '${isOverrideClassName ? className : 'MediaEngine' }_setExternalAudioSource_e6538be' ;
188- final param = createParams ({
189+ final requestParam = createParams ({
189190 'enabled' : enabled,
190191 'sampleRate' : sampleRate,
191192 'channels' : channels,
192193 'localPlayback' : localPlayback,
193194 'publish' : publish
194195 });
195196 final callApiResult = await irisMethodChannel.invokeMethod (
196- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
197+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
197198 if (callApiResult.irisReturnCode < 0 ) {
198199 throw AgoraRtcException (code: callApiResult.irisReturnCode);
199200 }
@@ -210,12 +211,12 @@ class MediaEngineImpl implements MediaEngine {
210211 required AudioTrackConfig config}) async {
211212 final apiType =
212213 '${isOverrideClassName ? className : 'MediaEngine' }_createCustomAudioTrack_5a0bf1a' ;
213- final param = createParams (
214+ final requestParam = createParams (
214215 {'trackType' : trackType.value (), 'config' : config.toJson ()});
215216 final List <Uint8List > buffers = [];
216217 buffers.addAll (config.collectBufferList ());
217218 final callApiResult = await irisMethodChannel.invokeMethod (
218- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
219+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
219220 if (callApiResult.irisReturnCode < 0 ) {
220221 throw AgoraRtcException (code: callApiResult.irisReturnCode);
221222 }
@@ -228,9 +229,9 @@ class MediaEngineImpl implements MediaEngine {
228229 Future <void > destroyCustomAudioTrack (int trackId) async {
229230 final apiType =
230231 '${isOverrideClassName ? className : 'MediaEngine' }_destroyCustomAudioTrack_6178b5d' ;
231- final param = createParams ({'trackId' : trackId});
232+ final requestParam = createParams ({'trackId' : trackId});
232233 final callApiResult = await irisMethodChannel.invokeMethod (
233- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
234+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
234235 if (callApiResult.irisReturnCode < 0 ) {
235236 throw AgoraRtcException (code: callApiResult.irisReturnCode);
236237 }
@@ -248,10 +249,10 @@ class MediaEngineImpl implements MediaEngine {
248249 required int channels}) async {
249250 final apiType =
250251 '${isOverrideClassName ? className : 'MediaEngine' }_setExternalAudioSink_d275ce0' ;
251- final param = createParams (
252+ final requestParam = createParams (
252253 {'enabled' : enabled, 'sampleRate' : sampleRate, 'channels' : channels});
253254 final callApiResult = await irisMethodChannel.invokeMethod (
254- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
255+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
255256 if (callApiResult.irisReturnCode < 0 ) {
256257 throw AgoraRtcException (code: callApiResult.irisReturnCode);
257258 }
@@ -267,9 +268,9 @@ class MediaEngineImpl implements MediaEngine {
267268 {required int trackId, required bool enabled}) async {
268269 final apiType =
269270 '${isOverrideClassName ? className : 'MediaEngine' }_enableCustomAudioLocalPlayback_5f38e8a' ;
270- final param = createParams ({'trackId' : trackId, 'enabled' : enabled});
271+ final requestParam = createParams ({'trackId' : trackId, 'enabled' : enabled});
271272 final callApiResult = await irisMethodChannel.invokeMethod (
272- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
273+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
273274 if (callApiResult.irisReturnCode < 0 ) {
274275 throw AgoraRtcException (code: callApiResult.irisReturnCode);
275276 }
@@ -285,12 +286,12 @@ class MediaEngineImpl implements MediaEngine {
285286 {required ExternalVideoFrame frame, int videoTrackId = 0 }) async {
286287 final apiType =
287288 '${isOverrideClassName ? className : 'MediaEngine' }_pushVideoFrame_4e544e2' ;
288- final param =
289+ final requestParam =
289290 createParams ({'frame' : frame.toJson (), 'videoTrackId' : videoTrackId});
290291 final List <Uint8List > buffers = [];
291292 buffers.addAll (frame.collectBufferList ());
292293 final callApiResult = await irisMethodChannel.invokeMethod (
293- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
294+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
294295 if (callApiResult.irisReturnCode < 0 ) {
295296 throw AgoraRtcException (code: callApiResult.irisReturnCode);
296297 }
@@ -309,7 +310,7 @@ class MediaEngineImpl implements MediaEngine {
309310 int videoTrackId = 0 }) async {
310311 final apiType =
311312 '${isOverrideClassName ? className : 'MediaEngine' }_pushEncodedVideoImage_e71452b' ;
312- final param = createParams ({
313+ final requestParam = createParams ({
313314 'length' : length,
314315 'videoEncodedFrameInfo' : videoEncodedFrameInfo.toJson (),
315316 'videoTrackId' : videoTrackId
@@ -318,7 +319,7 @@ class MediaEngineImpl implements MediaEngine {
318319 buffers.add (imageBuffer);
319320 buffers.addAll (videoEncodedFrameInfo.collectBufferList ());
320321 final callApiResult = await irisMethodChannel.invokeMethod (
321- IrisMethodCall (apiType, jsonEncode (param ), buffers: buffers));
322+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: buffers));
322323 if (callApiResult.irisReturnCode < 0 ) {
323324 throw AgoraRtcException (code: callApiResult.irisReturnCode);
324325 }
@@ -333,9 +334,9 @@ class MediaEngineImpl implements MediaEngine {
333334 Future <void > release () async {
334335 final apiType =
335336 '${isOverrideClassName ? className : 'MediaEngine' }_release' ;
336- final param = createParams ({});
337+ final requestParam = createParams ({});
337338 final callApiResult = await irisMethodChannel.invokeMethod (
338- IrisMethodCall (apiType, jsonEncode (param ), buffers: null ));
339+ IrisMethodCall (apiType, jsonEncode (requestParam ), buffers: null ));
339340 if (callApiResult.irisReturnCode < 0 ) {
340341 throw AgoraRtcException (code: callApiResult.irisReturnCode);
341342 }
@@ -350,10 +351,10 @@ class MediaEngineImpl implements MediaEngine {
350351 void unregisterAudioFrameObserver (AudioFrameObserver observer) {
351352 // Implementation template
352353// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_unregisterAudioFrameObserver';
353- // final param = createParams({
354+ // final requestParam = createParams({
354355// 'observer': observer
355356// });
356- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
357+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
357358// if (callApiResult.irisReturnCode < 0) {
358359// throw AgoraRtcException(code: callApiResult.irisReturnCode);
359360// }
@@ -367,10 +368,10 @@ class MediaEngineImpl implements MediaEngine {
367368 void unregisterVideoFrameObserver (VideoFrameObserver observer) {
368369 // Implementation template
369370// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_unregisterVideoFrameObserver';
370- // final param = createParams({
371+ // final requestParam = createParams({
371372// 'observer': observer
372373// });
373- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
374+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
374375// if (callApiResult.irisReturnCode < 0) {
375376// throw AgoraRtcException(code: callApiResult.irisReturnCode);
376377// }
@@ -384,10 +385,10 @@ class MediaEngineImpl implements MediaEngine {
384385 void unregisterVideoEncodedFrameObserver (VideoEncodedFrameObserver observer) {
385386 // Implementation template
386387// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_unregisterVideoEncodedFrameObserver';
387- // final param = createParams({
388+ // final requestParam = createParams({
388389// 'observer': observer
389390// });
390- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
391+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
391392// if (callApiResult.irisReturnCode < 0) {
392393// throw AgoraRtcException(code: callApiResult.irisReturnCode);
393394// }
@@ -402,10 +403,10 @@ class MediaEngineImpl implements MediaEngine {
402403 void unregisterFaceInfoObserver (FaceInfoObserver observer) {
403404 // Implementation template
404405// final apiType = '${isOverrideClassName ? className : 'MediaEngine'}_unregisterFaceInfoObserver';
405- // final param = createParams({
406+ // final requestParam = createParams({
406407// 'observer': observer
407408// });
408- // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(param ), buffers:null));
409+ // final callApiResult = await irisMethodChannel.invokeMethod(IrisMethodCall(apiType, jsonEncode(requestParam ), buffers:null));
409410// if (callApiResult.irisReturnCode < 0) {
410411// throw AgoraRtcException(code: callApiResult.irisReturnCode);
411412// }
0 commit comments