Skip to content

chore: upgrade sdk to 4.2.6.163 #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/src/agora_rtc_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,8 @@ class ChannelMediaOptions {
this.publishRhythmPlayerTrack,
this.isInteractiveAudience,
this.customVideoTrackId,
this.isAudioFilterable});
this.isAudioFilterable,
this.parameters});

/// Whether to publish the video captured by the camera: true : Publish the video captured by the camera. false : Do not publish the video captured by the camera.
@JsonKey(name: 'publishCameraTrack')
Expand Down Expand Up @@ -1480,6 +1481,10 @@ class ChannelMediaOptions {
@JsonKey(name: 'isAudioFilterable')
final bool? isAudioFilterable;

/// Provides the technical preview functionalities or special customizations by configuring the SDK with JSON options. Pointer to the set parameters in a JSON string.
@JsonKey(name: 'parameters')
final String? parameters;

/// @nodoc
factory ChannelMediaOptions.fromJson(Map<String, dynamic> json) =>
_$ChannelMediaOptionsFromJson(json);
Expand Down
2 changes: 2 additions & 0 deletions lib/src/agora_rtc_engine.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions lib/src/impl/agora_rtc_engine_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,55 @@ class RtcEngineImpl extends rtc_engine_ex_binding.RtcEngineExImpl
return streamIdResult as int;
}

@override
Future<int> createDataStreamEx(
{required DataStreamConfig config,
required RtcConnection connection}) async {
final apiType = 'RtcEngineEx_createDataStreamEx2';
final param = createParams(
{'config': config.toJson(), 'connection': connection.toJson()});
final List<Uint8List> buffers = [];
buffers.addAll(config.collectBufferList());
buffers.addAll(connection.collectBufferList());
final callApiResult = await irisMethodChannel.invokeMethod(
IrisMethodCall(apiType, jsonEncode(param), buffers: buffers));
if (callApiResult.irisReturnCode < 0) {
throw AgoraRtcException(code: callApiResult.irisReturnCode);
}
final rm = callApiResult.data;
final result = rm['result'];
if (result < 0) {
throw AgoraRtcException(code: result);
}
final streamIdResult = rm['streamId'];
return streamIdResult as int;
}

@override
Future<void> leaveChannelEx(
{required RtcConnection connection, LeaveChannelOptions? options}) async {
final apiType = options == null
? 'RtcEngineEx_leaveChannelEx'
: 'RtcEngineEx_leaveChannelEx2';
final param = createParams(
{'connection': connection.toJson(), 'options': options?.toJson()});
final List<Uint8List> buffers = [];
buffers.addAll(connection.collectBufferList());
if (options != null) {
buffers.addAll(options.collectBufferList());
}
final callApiResult = await irisMethodChannel.invokeMethod(
IrisMethodCall(apiType, jsonEncode(param), buffers: buffers));
if (callApiResult.irisReturnCode < 0) {
throw AgoraRtcException(code: callApiResult.irisReturnCode);
}
final rm = callApiResult.data;
final result = rm['result'];
if (result < 0) {
throw AgoraRtcException(code: result);
}
}

@override
Future<void> addVideoWatermark(
{required String watermarkUrl, required WatermarkOptions options}) async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: agora_rtc_engine
description: >-
Flutter plugin of Agora RTC SDK, allow you to simply integrate Agora Video
Calling or Live Video Streaming to your app with just a few lines of code.
version: 6.2.6-sp.426160
version: 6.2.6-sp.426163
homepage: https://www.agora.io
repository: https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/tree/main
environment:
Expand Down
4 changes: 2 additions & 2 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ project(${PROJECT_NAME} LANGUAGES CXX)
# not be changed
set(PLUGIN_NAME "agora_rtc_engine_plugin")

set(IRIS_SDK_DOWNLOAD_URL "https://download.agora.io/sdk/release/iris_4.2.6.160-build.2_DCG_Windows_Video_20250425_0632.zip")
set(IRIS_SDK_DOWNLOAD_NAME "iris_4.2.6.160-build.2_DCG_Windows")
set(IRIS_SDK_DOWNLOAD_URL "https://download.agora.io/sdk/release/iris_4.2.6.163-build.1_DCG_Windows_Video_20250605_1036.zip")
set(IRIS_SDK_DOWNLOAD_NAME "iris_4.2.6.163-build.1_DCG_Windows")
set(RTC_SDK_DOWNLOAD_NAME "Agora_Native_SDK_for_Windows_FULL")
set(IRIS_SDK_VERSION "v3_6_2_fix.1")

Expand Down
Loading