diff --git a/example/ios/AgoraExample.xcodeproj/project.pbxproj b/example/ios/AgoraExample.xcodeproj/project.pbxproj index 71a66cf27..ea84f0dd4 100644 --- a/example/ios/AgoraExample.xcodeproj/project.pbxproj +++ b/example/ios/AgoraExample.xcodeproj/project.pbxproj @@ -237,6 +237,7 @@ "${PODS_XCFRAMEWORKS_BUILD_DIR}/AgoraCore/AgoraCore.framework/AgoraCore", "${PODS_XCFRAMEWORKS_BUILD_DIR}/AgoraSoundTouch/AgoraSoundTouch.framework/AgoraSoundTouch", "${PODS_XCFRAMEWORKS_BUILD_DIR}/Agorafdkaac/Agorafdkaac.framework/Agorafdkaac", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/AgoraDav1dExtension/AgoraDav1dExtension.framework/AgoraDav1dExtension", "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL", ); name = "[CP] Embed Pods Frameworks"; @@ -247,6 +248,7 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraCore.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraSoundTouch.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Agorafdkaac.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AgoraDav1dExtension.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", ); runOnlyForDeploymentPostprocessing = 0; diff --git a/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift b/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift index b4bf7dbab..b6038ab94 100644 --- a/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift +++ b/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift @@ -52,9 +52,9 @@ class RtcView: RtcSurfaceView { return "bounds" } - @objc func setRenderMode(_ renderMode: Int) { + @objc func setRenderMode(_ renderMode: NSNumber) { if let engine = getEngine?() { - setRenderMode(engine, renderMode) + setRenderMode(engine, renderMode.uintValue) } } @@ -64,13 +64,13 @@ class RtcView: RtcSurfaceView { channel = getChannel?(channelId) } if let engine = getEngine?() { - setData(engine, channel, data["uid"] as! Int) + setData(engine, channel, (data["uid"] as! NSNumber).uintValue) } } - @objc func setMirrorMode(_ mirrorMode: Int) { + @objc func setMirrorMode(_ mirrorMode: NSNumber) { if let engine = getEngine?() { - setMirrorMode(engine, mirrorMode) + setMirrorMode(engine, mirrorMode.uintValue) } } } diff --git a/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManagerBridge.m b/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManagerBridge.m index 814666eae..94b4e6194 100644 --- a/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManagerBridge.m +++ b/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManagerBridge.m @@ -12,8 +12,8 @@ @interface RCT_EXTERN_MODULE(RCTAgoraRtcSurfaceViewManager, NSObject) RCT_EXPORT_VIEW_PROPERTY(data, NSDictionary) -RCT_EXPORT_VIEW_PROPERTY(renderMode, NSInteger) +RCT_EXPORT_VIEW_PROPERTY(renderMode, NSNumber) -RCT_EXPORT_VIEW_PROPERTY(mirrorMode, NSInteger) +RCT_EXPORT_VIEW_PROPERTY(mirrorMode, NSNumber) @end