Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed May 29, 2024
1 parent d480482 commit ae54c24
Show file tree
Hide file tree
Showing 36 changed files with 2,627 additions and 2,481 deletions.
3 changes: 1 addition & 2 deletions lib/src/impl/agora_music_content_center_impl_override.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ class MusicContentCenterImpl extends binding.MusicContentCenterImpl
Future<void> destroyMusicPlayer(MusicPlayer musicPlayer) async {
final apiType =
'${isOverrideClassName ? className : 'MusicContentCenter'}_destroyMusicPlayer';
final param =
createParams({'playerId': musicPlayer.getMediaPlayerId()});
final param = createParams({'playerId': musicPlayer.getMediaPlayerId()});
await irisMethodChannel.invokeMethod(
IrisMethodCall(apiType, jsonEncode(param), buffers: null));

Expand Down
5 changes: 3 additions & 2 deletions lib/src/impl/platform/io/native_iris_api_engine_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,9 @@ class NativeIrisApiEngineBinding {
}

late final _StopDumpVideoPtr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(IrisVideoFrameBufferManagerPtr)>>('StopDumpVideo');
ffi
.NativeFunction<ffi.Int32 Function(IrisVideoFrameBufferManagerPtr)>>(
'StopDumpVideo');
late final _StopDumpVideo = _StopDumpVideoPtr.asFunction<
int Function(IrisVideoFrameBufferManagerPtr)>();

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-iris-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x
AGORA_FLUTTER_PROJECT_PATH=$(pwd)
IRIS_PROJECT_PATH=$1
BUILD_TYPE=$2
NATIVE_SDK_PATH_NAME=$3 # Agora_Native_SDK_for_Mac_rel.v3.8.201.2_39877_full_20220608_2158
NATIVE_SDK_PATH_NAME=$3 # Agora_Native_SDK_for_Mac_rel.v3.8.201.2_39877_full_20220608_2158 Agora_Native_SDK_for_Mac_FULL
IRIS_TYPE="dcg"
SCRIPTS_PATH=$(dirname "$0")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const String deviceId = "hello";
String deviceId = "hello";
await audioDeviceManager.setPlaybackDevice(
deviceId,
);
Expand Down Expand Up @@ -204,7 +204,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const int volume = 10;
int volume = 5;
await audioDeviceManager.setPlaybackDeviceVolume(
volume,
);
Expand Down Expand Up @@ -277,7 +277,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const String deviceId = "hello";
String deviceId = "hello";
await audioDeviceManager.setRecordingDevice(
deviceId,
);
Expand Down Expand Up @@ -385,7 +385,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const int volume = 10;
int volume = 5;
await audioDeviceManager.setRecordingDeviceVolume(
volume,
);
Expand Down Expand Up @@ -458,7 +458,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const String deviceId = "hello";
String deviceId = "hello";
await audioDeviceManager.setLoopbackDevice(
deviceId,
);
Expand Down Expand Up @@ -531,7 +531,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const bool mute = true;
bool mute = true;
await audioDeviceManager.setPlaybackDeviceMute(
mute,
);
Expand Down Expand Up @@ -604,7 +604,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const bool mute = true;
bool mute = true;
await audioDeviceManager.setRecordingDeviceMute(
mute,
);
Expand Down Expand Up @@ -677,7 +677,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const String testAudioFilePath = "hello";
String testAudioFilePath = "hello";
await audioDeviceManager.startPlaybackDeviceTest(
testAudioFilePath,
);
Expand Down Expand Up @@ -750,7 +750,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const int indicationInterval = 10;
int indicationInterval = 5;
await audioDeviceManager.startRecordingDeviceTest(
indicationInterval,
);
Expand Down Expand Up @@ -823,7 +823,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const int indicationInterval = 10;
int indicationInterval = 5;
await audioDeviceManager.startAudioDeviceLoopbackTest(
indicationInterval,
);
Expand Down Expand Up @@ -896,7 +896,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const bool enable = true;
bool enable = true;
await audioDeviceManager.followSystemPlaybackDevice(
enable,
);
Expand Down Expand Up @@ -934,7 +934,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const bool enable = true;
bool enable = true;
await audioDeviceManager.followSystemRecordingDevice(
enable,
);
Expand Down Expand Up @@ -972,7 +972,7 @@ void audioDeviceManagerSmokeTestCases() {
final audioDeviceManager = rtcEngine.getAudioDeviceManager();

try {
const bool enable = true;
bool enable = true;
await audioDeviceManager.followSystemLoopbackDevice(
enable,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ void generatedTestCases() {
final h265Transcoder = rtcEngine.getH265Transcoder();

try {
const String token = "hello";
const String channel = "hello";
const int uid = 10;
String token = "hello";
String channel = "hello";
int uid = 5;
await h265Transcoder.enableTranscode(
token: token,
channel: channel,
Expand Down Expand Up @@ -66,9 +66,9 @@ void generatedTestCases() {
final h265Transcoder = rtcEngine.getH265Transcoder();

try {
const String token = "hello";
const String channel = "hello";
const int uid = 10;
String token = "hello";
String channel = "hello";
int uid = 5;
await h265Transcoder.queryChannel(
token: token,
channel: channel,
Expand Down Expand Up @@ -107,9 +107,9 @@ void generatedTestCases() {
final h265Transcoder = rtcEngine.getH265Transcoder();

try {
const String token = "hello";
const String channel = "hello";
const int uid = 10;
String token = "hello";
String channel = "hello";
int uid = 5;
await h265Transcoder.triggerTranscode(
token: token,
channel: channel,
Expand Down Expand Up @@ -149,7 +149,7 @@ void generatedTestCases() {
final h265Transcoder = rtcEngine.getH265Transcoder();

try {
final H265TranscoderObserver observer = H265TranscoderObserver(
H265TranscoderObserver observer = H265TranscoderObserver(
onEnableTranscode: (H265TranscodeResult result) {},
onQueryChannel: (H265TranscodeResult result, String originChannel,
String transcodeChannel) {},
Expand Down Expand Up @@ -192,7 +192,7 @@ void generatedTestCases() {
final h265Transcoder = rtcEngine.getH265Transcoder();

try {
final H265TranscoderObserver observer = H265TranscoderObserver(
H265TranscoderObserver observer = H265TranscoderObserver(
onEnableTranscode: (H265TranscodeResult result) {},
onQueryChannel: (H265TranscodeResult result, String originChannel,
String transcodeChannel) {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void generatedTestCases(ValueGetter<IrisTester> irisTester) {
await Future.delayed(const Duration(milliseconds: 500));

{
const H265TranscodeResult result =
H265TranscodeResult result =
H265TranscodeResult.h265TranscodeResultUnknown;

final eventJson = {
Expand Down Expand Up @@ -107,10 +107,10 @@ void generatedTestCases(ValueGetter<IrisTester> irisTester) {
await Future.delayed(const Duration(milliseconds: 500));

{
const H265TranscodeResult result =
H265TranscodeResult result =
H265TranscodeResult.h265TranscodeResultUnknown;
const String originChannel = "hello";
const String transcodeChannel = "hello";
String originChannel = "hello";
String transcodeChannel = "hello";

final eventJson = {
'result': result.value(),
Expand Down Expand Up @@ -176,7 +176,7 @@ void generatedTestCases(ValueGetter<IrisTester> irisTester) {
await Future.delayed(const Duration(milliseconds: 500));

{
const H265TranscodeResult result =
H265TranscodeResult result =
H265TranscodeResult.h265TranscodeResultUnknown;

final eventJson = {
Expand Down
Loading

0 comments on commit ae54c24

Please sign in to comment.