Skip to content
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

updating RTC to v6.2.2 #152

Merged
merged 1 commit into from
Aug 4, 2023
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions lib/controllers/rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ Future<RtcEngineEventHandler> 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);
Expand Down Expand Up @@ -109,15 +108,16 @@ Future<RtcEngineEventHandler> 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) {
Expand Down
6 changes: 3 additions & 3 deletions lib/models/agora_rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/models/agora_rtm_mute_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic> json)
: platform = json['platform'],
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down