Skip to content

Commit

Permalink
Reverted to version 6.1.0 due to breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaspetra committed Jun 13, 2023
1 parent 2dad82c commit bf34c18
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import FlutterMacOS
import Foundation

import agora_rtc_engine
import iris_method_channel
import iris_event

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AgoraRtcNgPlugin.register(with: registry.registrar(forPlugin: "AgoraRtcNgPlugin"))
IrisMethodChannelPlugin.register(with: registry.registrar(forPlugin: "IrisMethodChannelPlugin"))
IrisEventPlugin.register(with: registry.registrar(forPlugin: "IrisEventPlugin"))
}
6 changes: 3 additions & 3 deletions example/windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
#include "generated_plugin_registrant.h"

#include <agora_rtc_engine/agora_rtc_engine_plugin.h>
#include <iris_method_channel/iris_method_channel_plugin_c_api.h>
#include <iris_event/iris_event_plugin.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
AgoraRtcEnginePluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AgoraRtcEnginePlugin"));
IrisMethodChannelPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("IrisMethodChannelPluginCApi"));
IrisEventPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("IrisEventPlugin"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
}
2 changes: 1 addition & 1 deletion example/windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

list(APPEND FLUTTER_PLUGIN_LIST
agora_rtc_engine
iris_method_channel
iris_event
permission_handler_windows
)

Expand Down
4 changes: 2 additions & 2 deletions lib/controllers/rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Future<RtcEngineEventHandler> rtcEngineEventHandler(
}, onFirstLocalAudioFramePublished: (connection, elapsed) {
agoraEventHandlers.onFirstLocalAudioFramePublished
?.call(connection, elapsed);
}, onFirstLocalVideoFrame: (videoSourceType, width, height, elapsed) {
}, onFirstLocalVideoFrame: (connection, width, height, elapsed) {
agoraEventHandlers.onFirstLocalVideoFrame
?.call(videoSourceType, width, height, elapsed);
?.call(connection, width, height, elapsed);
}, onFirstLocalVideoFramePublished: (connection, elapsed) {
agoraEventHandlers.onFirstLocalVideoFramePublished
?.call(connection, elapsed);
Expand Down
10 changes: 3 additions & 7 deletions lib/models/agora_rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class AgoraRtcEventHandlers {
/// * [height] The height (px) of the first local video frame.
/// * [elapsed] Time elapsed (ms) from the local user calling joinChannel [2/2] until the SDK triggers this callback. If you call startPreview before calling joinChannel [2/2], then this parameter is the time elapsed from calling the startPreview method until the SDK triggers this callback.
final void Function(
VideoSourceType videoSourceType, int width, int height, int elapsed)?
RtcConnection connection, int width, int height, int elapsed)?
onFirstLocalVideoFrame;

/// Occurs when the first video frame is published.
Expand Down Expand Up @@ -331,12 +331,8 @@ class AgoraRtcEventHandlers {
/// * [vecRectangle] The information of the detected human face. See Rectangle .
/// * [vecDistance] The distance between the human face and the device screen (cm).
/// * [numFaces] The number of faces detected. If the value is 0, it means that no human face is detected.
final void Function(
int imageWidth,
int imageHeight,
List<Rectangle> vecRectangle,
List<int> vecDistance,
int numFaces)? onFacePositionChanged;
final void Function(int imageWidth, int imageHeight, Rectangle vecRectangle,
int vecDistance, int numFaces)? onFacePositionChanged;

/// Occurs when the video stops playing.
/// Deprecated:Use localVideoStreamStateStopped(0) in the onLocalVideoStateChanged callback instead.The application can use this callback to change the configuration of the view (for example, displaying other pictures in the view) after the video stops playing.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
flutter: ">=2.2.0"

dependencies:
agora_rtc_engine: ^6.2.0
agora_rtc_engine: 6.1.0
agora_rtm: 1.5.0
flutter:
sdk: flutter
Expand Down

0 comments on commit bf34c18

Please sign in to comment.