Skip to content

Commit

Permalink
feat: support 3.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jul 9, 2021
1 parent c8d7cd3 commit 9329b67
Show file tree
Hide file tree
Showing 15 changed files with 817 additions and 444 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {
}

dependencies {
api 'com.github.agorabuilder:native-full-sdk:3.4.2'
api 'com.github.agorabuilder:native-full-sdk:3.4.5'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${safeExtGet('kotlin_version', '1.3.72')}"
}
4 changes: 2 additions & 2 deletions example/lib/examples/basic/join_channel_audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ class _State extends State<JoinChannelAudio> {
widget._engine
?.playEffect(
1,
await RtcEngineExtension.getAssetAbsolutePath(
"assets/Sound_Horizon.mp3"),
await widget._engine
.getAssetAbsolutePath("assets/Sound_Horizon.mp3"),
-1,
1,
1,
Expand Down
2 changes: 1 addition & 1 deletion ios/agora_rtc_engine.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'AgoraRtcEngine_iOS', '3.4.2'
s.dependency 'AgoraRtcEngine_iOS', '3.4.5'
s.platform = :ios, '8.0'

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
Expand Down
2 changes: 2 additions & 0 deletions lib/rtc_engine.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
library agora_rtc_engine;

export 'src/classes.dart';
export 'src/enums.dart';
export 'src/events.dart' hide RtcChannelEventHandler;
Expand Down
46 changes: 24 additions & 22 deletions lib/rtc_local_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,43 @@ class SurfaceView extends RtcSurfaceView {
/// Constructs a [SurfaceView]
SurfaceView({
Key key,
bool zOrderMediaOverlay = false,
bool zOrderOnTop = false,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
String channelId,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
bool zOrderOnTop = false,
bool zOrderMediaOverlay = false,
PlatformViewCreatedCallback onPlatformViewCreated,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : super(
key: key,
zOrderMediaOverlay: zOrderMediaOverlay,
zOrderOnTop: zOrderOnTop,
renderMode: renderMode,
channelId: channelId,
mirrorMode: mirrorMode,
gestureRecognizers: gestureRecognizers,
onPlatformViewCreated: onPlatformViewCreated,
uid: 0);
key: key,
uid: 0,
channelId: channelId,
renderMode: renderMode,
mirrorMode: mirrorMode,
zOrderOnTop: zOrderOnTop,
zOrderMediaOverlay: zOrderMediaOverlay,
onPlatformViewCreated: onPlatformViewCreated,
gestureRecognizers: gestureRecognizers,
);
}

/// (Android only) TextureView.
class TextureView extends RtcTextureView {
/// Constructs a [TextureView]
TextureView({
Key key,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
String channelId,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
PlatformViewCreatedCallback onPlatformViewCreated,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : super(
key: key,
renderMode: renderMode,
channelId: channelId,
mirrorMode: mirrorMode,
gestureRecognizers: gestureRecognizers,
onPlatformViewCreated: onPlatformViewCreated,
uid: 0);
key: key,
uid: 0,
channelId: channelId,
renderMode: renderMode,
mirrorMode: mirrorMode,
onPlatformViewCreated: onPlatformViewCreated,
gestureRecognizers: gestureRecognizers,
);
}
24 changes: 12 additions & 12 deletions lib/rtc_remote_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ class SurfaceView extends RtcSurfaceView {
SurfaceView({
Key key,
@required int uid,
bool zOrderMediaOverlay = false,
bool zOrderOnTop = false,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
String channelId,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
bool zOrderOnTop = false,
bool zOrderMediaOverlay = false,
PlatformViewCreatedCallback onPlatformViewCreated,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : assert(uid != 0),
super(
key: key,
uid: uid,
zOrderMediaOverlay: zOrderMediaOverlay,
zOrderOnTop: zOrderOnTop,
renderMode: renderMode,
channelId: channelId,
renderMode: renderMode,
mirrorMode: mirrorMode,
gestureRecognizers: gestureRecognizers,
zOrderOnTop: zOrderOnTop,
zOrderMediaOverlay: zOrderMediaOverlay,
onPlatformViewCreated: onPlatformViewCreated,
gestureRecognizers: gestureRecognizers,
);
}

Expand All @@ -38,19 +38,19 @@ class TextureView extends RtcTextureView {
TextureView({
Key key,
@required int uid,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
String channelId,
VideoRenderMode renderMode = VideoRenderMode.Hidden,
VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
PlatformViewCreatedCallback onPlatformViewCreated,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers,
}) : assert(uid != 0),
super(
key: key,
uid: uid,
renderMode: renderMode,
channelId: channelId,
renderMode: renderMode,
mirrorMode: mirrorMode,
gestureRecognizers: gestureRecognizers,
onPlatformViewCreated: onPlatformViewCreated,
gestureRecognizers: gestureRecognizers,
);
}
Loading

0 comments on commit 9329b67

Please sign in to comment.