From 0dcbbb8bfc08117c5db795eaccfec6bd2776d45b Mon Sep 17 00:00:00 2001 From: Meherdeep Date: Fri, 4 Aug 2023 14:06:11 +0530 Subject: [PATCH] updating RTC to v6.2.2 --- CHANGELOG.md | 6 ++++++ lib/controllers/rtc_event_handlers.dart | 12 ++++++------ lib/models/agora_rtc_event_handlers.dart | 6 +++--- lib/models/agora_rtm_mute_request.dart | 2 +- pubspec.yaml | 4 ++-- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4057395..583cf3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ +## 1.3.6 + +- Fixes error [[#151](https://github.com/AgoraIO-Community/VideoUIKit-Flutter/issues/151) +- Updating RTC to v6.2.2 + ## 1.3.5 + - Allow for wider range of `http` packages ## 1.3.4 diff --git a/lib/controllers/rtc_event_handlers.dart b/lib/controllers/rtc_event_handlers.dart index 2e7570f..5317959 100644 --- a/lib/controllers/rtc_event_handlers.dart +++ b/lib/controllers/rtc_event_handlers.dart @@ -61,9 +61,8 @@ Future rtcEngineEventHandler( }, onFirstLocalVideoFrame: (source, width, height, elapsed) { agoraEventHandlers.onFirstLocalVideoFrame ?.call(source, width, height, elapsed); - }, onFirstLocalVideoFramePublished: (connection, elapsed) { - agoraEventHandlers.onFirstLocalVideoFramePublished - ?.call(connection, elapsed); + }, onFirstLocalVideoFramePublished: (source, elapsed) { + agoraEventHandlers.onFirstLocalVideoFramePublished?.call(source, elapsed); }, onFirstRemoteAudioDecoded: (connection, uid, elapsed) { agoraEventHandlers.onFirstRemoteAudioDecoded ?.call(connection, uid, elapsed); @@ -109,15 +108,16 @@ Future rtcEngineEventHandler( agoraEventHandlers.onCameraExposureAreaChanged?.call(x, y, width, height); }, onFacePositionChanged: (imageWidth, imageHeight, vecRectangle, vecDistance, numFaces) { - agoraEventHandlers.onFacePositionChanged?.call(imageWidth, imageHeight, vecRectangle, vecDistance, numFaces); + agoraEventHandlers.onFacePositionChanged + ?.call(imageWidth, imageHeight, vecRectangle, vecDistance, numFaces); }, onRtcStats: (connection, stats) { agoraEventHandlers.onRtcStats?.call(connection, stats); }, onLastmileQuality: (quality) { agoraEventHandlers.onLastmileQuality?.call(quality); }, onLastmileProbeResult: (result) { agoraEventHandlers.onLastmileProbeResult?.call(result); - }, onLocalVideoStats: (connection, stats) { - agoraEventHandlers.onLocalVideoStats?.call(connection, stats); + }, onLocalVideoStats: (source, stats) { + agoraEventHandlers.onLocalVideoStats?.call(source, stats); }, onLocalAudioStats: (connection, stats) { agoraEventHandlers.onLocalAudioStats?.call(connection, stats); }, onRemoteVideoStats: (connection, stats) { diff --git a/lib/models/agora_rtc_event_handlers.dart b/lib/models/agora_rtc_event_handlers.dart index 7b1b87e..ade586e 100644 --- a/lib/models/agora_rtc_event_handlers.dart +++ b/lib/models/agora_rtc_event_handlers.dart @@ -149,11 +149,11 @@ class AgoraRtcEventHandlers { onFirstLocalVideoFrame; /// Occurs when the first video frame is published. - /// The SDK triggers this callback under one of the following circumstances:The local client enables the video module and calls joinChannel [2/2] successfully.The local client calls muteLocalVideoStream (true) and muteLocalVideoStream(false) in sequence.The local client calls disableVideo and enableVideo in sequence. + /// The SDK triggers this callback under one of the following circumstances: The local client enables the video module and calls joinChannel successfully. The local client calls muteLocalVideoStream (true) and muteLocalVideoStream (false) in sequence. The local client calls disableVideo and enableVideo in sequence. /// /// * [connection] The connection information. See RtcConnection . /// * [elapsed] Time elapsed (ms) from the local user calling joinChannel [2/2] until the SDK triggers this callback. - final void Function(RtcConnection connection, int elapsed)? + final void Function(VideoSourceType source, int elapsed)? onFirstLocalVideoFramePublished; /// Occurs when the first remote video frame is received and decoded. @@ -293,7 +293,7 @@ class AgoraRtcEventHandlers { /// /// * [connection] The connection information. See RtcConnection . /// * [stats] The statistics of the local video stream. See LocalVideoStats . - final void Function(RtcConnection connection, LocalVideoStats stats)? + final void Function(VideoSourceType source, LocalVideoStats stats)? onLocalVideoStats; /// Reports the statistics of the video stream sent by each remote users. diff --git a/lib/models/agora_rtm_mute_request.dart b/lib/models/agora_rtm_mute_request.dart index dd5b8bb..3db34d8 100644 --- a/lib/models/agora_rtm_mute_request.dart +++ b/lib/models/agora_rtm_mute_request.dart @@ -99,7 +99,7 @@ class AgoraUIKit { String platform = platformStr(); String framework = "flutter"; - String version = "1.3.5"; + String version = "1.3.6"; AgoraUIKit.fromJson(Map json) : platform = json['platform'], diff --git a/pubspec.yaml b/pubspec.yaml index d8f45ad..ee50ded 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: agora_uikit description: Flutter plugin to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code. -version: 1.3.5 +version: 1.3.6 homepage: https://www.agora.io/en/ repository: https://github.com/AgoraIO-Community/VideoUIKit-Flutter @@ -10,7 +10,7 @@ environment: flutter: ">=2.2.0" dependencies: - agora_rtc_engine: ^6.2.0 + agora_rtc_engine: ^6.2.2 agora_rtm: ^1.5.5 flutter: sdk: flutter