diff --git a/AGENTS.md b/AGENTS.md index 966d7c0..9f0f859 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -100,3 +100,10 @@ Swift · UIKit · SnapKit(代码布局,约束写在 `setupUI()` / `setupCons - 可继续调试已确认只读的订单、项目、素材及状态接口;`plane-status/shooting` 使用 `live_battery=0`,`status` 使用 `live_metrics=0`,不主动请求设备实时采集。 - Debug 客户端默认拦截机场操作及真实 `tasks/create`,无运行时放行开关;本地模拟传输不能转发网络。用户明确解除禁飞并授权真实联调前,不删除或绕过保护,也不改用 Release 构建规避。 - 使用模拟器及隔离网络替身验证本限制,不进行真机飞行测试。 + +## 图传代码接入范围(2026-11-02 用户要求) + +- 用户要求完成图传代码,稍后由用户自行打正式环境包测试。本次代理只编译和使用隔离替身验证,不调用真实 `live` 或任何飞控接口。 +- Release 任务页提供手动开启火山 RTC 图传的入口;进页、回前台、异常或凭证过期均不自动调用 `live`。这不授权召唤、起飞、开拍、暂停、恢复或返航。 +- Debug 的 `live` 网络拦截继续保持,RTC 引擎连接前也必须拦截;没有运行时放行开关。状态读取继续关闭设备实时采集。 +- 真实 `tasks/create` 和飞控请求在 Debug、Release 均拦截;通过“订单素材库 → 查看任务”进入已有任务,不为测试图传创建或召唤新任务。 diff --git a/Podfile b/Podfile index cd31c66..1aebd4f 100644 --- a/Podfile +++ b/Podfile @@ -21,6 +21,8 @@ target 'suixinkan' do pod 'IQKeyboardManagerSwift' # 微信 Open SDK:仅接入分享能力,不调用支付 API。 pod 'WechatOpenSDK-XCFramework', '~> 2.0.4' + # 机巢图传只订阅远端视频;固定官方 SDK 版本及必要运行库。 + pod 'VolcEngineRTC', :podspec => 'https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json', :subspecs => ['Core', 'RealXBase', 'RTCFFmpeg'] target 'suixinkanTests' do inherit! :search_paths diff --git a/Podfile.lock b/Podfile.lock index 9a5c43e..ba6e08e 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -54,6 +54,9 @@ PODS: - UMCommon (7.5.11): - UMDevice - UMDevice (3.6.0) + - VolcEngineRTC/Core (3.60.107.1100) + - VolcEngineRTC/RealXBase (3.60.107.1100) + - VolcEngineRTC/RTCFFmpeg (3.60.107.1100) - WechatOpenSDK-XCFramework (2.0.5) DEPENDENCIES: @@ -67,6 +70,9 @@ DEPENDENCIES: - UMAPM - UMCommon - UMDevice + - VolcEngineRTC/Core (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) + - VolcEngineRTC/RealXBase (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) + - VolcEngineRTC/RTCFFmpeg (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) - WechatOpenSDK-XCFramework (~> 2.0.4) SPEC REPOS: @@ -90,6 +96,10 @@ SPEC REPOS: - UMDevice - WechatOpenSDK-XCFramework +EXTERNAL SOURCES: + VolcEngineRTC: + :podspec: https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json + SPEC CHECKSUMS: AMap3DMap-NO-IDFA: f53ee0cb33db83c1a08856b5995e53a0c2096158 AMapFoundation-NO-IDFA: a2e3c895398d7ee757278e1a0a8f9359da4b146e @@ -108,8 +118,9 @@ SPEC CHECKSUMS: UMAPM: ba9fbebe8dd2048b251c332ab0afc86e1ba5ea63 UMCommon: d652b3b372a801b36db203f5b546ab3e15676898 UMDevice: 20b7b3c37a36b2c5c7ca8b5a54386ff9ed2b3b19 + VolcEngineRTC: 370b06b0c141dcc76bc72bbd34564f98cf370ef3 WechatOpenSDK-XCFramework: ff342ae616bb86df3d236aca38059dfd4bc4a949 -PODFILE CHECKSUM: 5abf70ade4a9c4b66b64877fdea91f1d086bcaf5 +PODFILE CHECKSUM: aa5185164c92649862d0a3009e4448d7ac0f3b83 COCOAPODS: 1.16.2 diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock index 9a5c43e..ba6e08e 100644 --- a/Pods/Manifest.lock +++ b/Pods/Manifest.lock @@ -54,6 +54,9 @@ PODS: - UMCommon (7.5.11): - UMDevice - UMDevice (3.6.0) + - VolcEngineRTC/Core (3.60.107.1100) + - VolcEngineRTC/RealXBase (3.60.107.1100) + - VolcEngineRTC/RTCFFmpeg (3.60.107.1100) - WechatOpenSDK-XCFramework (2.0.5) DEPENDENCIES: @@ -67,6 +70,9 @@ DEPENDENCIES: - UMAPM - UMCommon - UMDevice + - VolcEngineRTC/Core (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) + - VolcEngineRTC/RealXBase (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) + - VolcEngineRTC/RTCFFmpeg (from `https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json`) - WechatOpenSDK-XCFramework (~> 2.0.4) SPEC REPOS: @@ -90,6 +96,10 @@ SPEC REPOS: - UMDevice - WechatOpenSDK-XCFramework +EXTERNAL SOURCES: + VolcEngineRTC: + :podspec: https://raw.githubusercontent.com/volcengine/volcengine-specs/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json + SPEC CHECKSUMS: AMap3DMap-NO-IDFA: f53ee0cb33db83c1a08856b5995e53a0c2096158 AMapFoundation-NO-IDFA: a2e3c895398d7ee757278e1a0a8f9359da4b146e @@ -108,8 +118,9 @@ SPEC CHECKSUMS: UMAPM: ba9fbebe8dd2048b251c332ab0afc86e1ba5ea63 UMCommon: d652b3b372a801b36db203f5b546ab3e15676898 UMDevice: 20b7b3c37a36b2c5c7ca8b5a54386ff9ed2b3b19 + VolcEngineRTC: 370b06b0c141dcc76bc72bbd34564f98cf370ef3 WechatOpenSDK-XCFramework: ff342ae616bb86df3d236aca38059dfd4bc4a949 -PODFILE CHECKSUM: 5abf70ade4a9c4b66b64877fdea91f1d086bcaf5 +PODFILE CHECKSUM: aa5185164c92649862d0a3009e4448d7ac0f3b83 COCOAPODS: 1.16.2 diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj index 7c20af0..b218191 100644 --- a/Pods/Pods.xcodeproj/project.pbxproj +++ b/Pods/Pods.xcodeproj/project.pbxproj @@ -9,22 +9,32 @@ /* Begin PBXAggregateTarget section */ 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */ = { isa = PBXAggregateTarget; - buildConfigurationList = 16042111B26CDDA811DEA06D014F8608 /* Build configuration list for PBXAggregateTarget "UMCommon" */; + buildConfigurationList = 3CBF9BFF072845753899694FE4E10ADD /* Build configuration list for PBXAggregateTarget "UMCommon" */; buildPhases = ( - 49D5D275B9638EA1DE91DD3E23193CB6 /* [CP] Copy XCFrameworks */, + 687BC05C1C9FCCA798AEC343D76C61BA /* [CP] Copy XCFrameworks */, ); dependencies = ( - 65ACB98E7ACF99994DC0973B228171CD /* PBXTargetDependency */, + 4F6360FC32BA6CA3C9D8A7A764A273B9 /* PBXTargetDependency */, ); name = UMCommon; }; + 40080C576D6EAF0D191988D3C110FE86 /* VolcEngineRTC */ = { + isa = PBXAggregateTarget; + buildConfigurationList = B8512451BF5D7A50FA5BBF381F5C922B /* Build configuration list for PBXAggregateTarget "VolcEngineRTC" */; + buildPhases = ( + ECDA6B91060A6384A59E2057D1742B26 /* [CP] Copy XCFrameworks */, + ); + dependencies = ( + ); + name = VolcEngineRTC; + }; 4BD4E22D3419D68A85BDD6119CB37C6C /* AMapLocation-NO-IDFA */ = { isa = PBXAggregateTarget; buildConfigurationList = 42EC8F64C3654164552B3366BF3A3C6D /* Build configuration list for PBXAggregateTarget "AMapLocation-NO-IDFA" */; buildPhases = ( ); dependencies = ( - 43B6F441EC86468D6C229FFE788CFF86 /* PBXTargetDependency */, + A29280CF0ECF52479D7F88904ED009B8 /* PBXTargetDependency */, ); name = "AMapLocation-NO-IDFA"; }; @@ -34,7 +44,7 @@ buildPhases = ( ); dependencies = ( - 4D7527C0D0F449074058BC407459B048 /* PBXTargetDependency */, + 7B659A53BDE555DBF687F9AF5C5363FC /* PBXTargetDependency */, ); name = "AMapSearch-NO-IDFA"; }; @@ -45,7 +55,7 @@ 329295F5A096E0819713CBB5799FA87B /* [CP] Copy XCFrameworks */, ); dependencies = ( - 1B8EC6C3953225A69E2312C224DD5150 /* PBXTargetDependency */, + 13504B3EA0645BC1C860440A351676E5 /* PBXTargetDependency */, ); name = JPush; }; @@ -61,7 +71,7 @@ }; 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */ = { isa = PBXAggregateTarget; - buildConfigurationList = E3CD454E946A968A8CC1F29529A26395 /* Build configuration list for PBXAggregateTarget "AMapFoundation-NO-IDFA" */; + buildConfigurationList = 2F6FDA2B7AE29776104CCA1C5E80F704 /* Build configuration list for PBXAggregateTarget "AMapFoundation-NO-IDFA" */; buildPhases = ( ); dependencies = ( @@ -74,15 +84,15 @@ buildPhases = ( ); dependencies = ( - D4853B8A651ECA6D156A2EF893BAA13A /* PBXTargetDependency */, + 05A1AEC02A423CBCC2DFC09F9D4FFB74 /* PBXTargetDependency */, ); name = "AMap3DMap-NO-IDFA"; }; CEB9AD2C3CFC208BFBE1F22F5EC3E1FC /* UMDevice */ = { isa = PBXAggregateTarget; - buildConfigurationList = B02BDB8270BB7783F0A9C8763864097B /* Build configuration list for PBXAggregateTarget "UMDevice" */; + buildConfigurationList = 3359FFF96FDC1E39EBC821362A8761CD /* Build configuration list for PBXAggregateTarget "UMDevice" */; buildPhases = ( - 22BE81B1621BDC2850C4141134417CBC /* [CP] Copy XCFrameworks */, + EF59C84659DB739B12DAAEEB8A35993A /* [CP] Copy XCFrameworks */, ); dependencies = ( ); @@ -105,773 +115,796 @@ AAA46959952B8A86CC060F4456AEC1FE /* [CP] Copy XCFrameworks */, ); dependencies = ( - 73511E9AA76ADF17F178F12B12FB430A /* PBXTargetDependency */, + 7A9D23AB68ABBF5DE686EF168016478D /* PBXTargetDependency */, ); name = UMAPM; }; /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ - 008AB2CBF9BF6738A01E4780544FEE28 /* IQKeyboardCore-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 24AB5750A05B063EA0DA3264D3001A19 /* IQKeyboardCore-dummy.m */; }; - 0494B703203A9A07C23ABBAEBEA3A7D2 /* UIView+IQKeyboardManagerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6388414814252F565A677CD3D17EC014 /* UIView+IQKeyboardManagerExtension.swift */; }; - 04BD4928C99B51A317B39CF5C0C3F780 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 008AB2CBF9BF6738A01E4780544FEE28 /* IQKeyboardCore-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C800E6213B65C17D9D650EFBA167370D /* IQKeyboardCore-dummy.m */; }; + 023968E1994C2A76DED24E2225272452 /* IQKeyboardToolbarConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DB63DD174AA36A665DF6EFDF91B9E37 /* IQKeyboardToolbarConstants.swift */; }; + 028B34F60037C63915906C0ED6B79E64 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 0494B703203A9A07C23ABBAEBEA3A7D2 /* UIView+IQKeyboardManagerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 301B8B14D78023F3DD043BCBFC93130A /* UIView+IQKeyboardManagerExtension.swift */; }; 06EC579860CC68D7557726CE2396C1E8 /* IQKeyboardCore-IQKeyboardCore in Resources */ = {isa = PBXBuildFile; fileRef = 6E897F35E5E27028AC58B14B552FBC8D /* IQKeyboardCore-IQKeyboardCore */; }; - 0A44FCC4CCED0CBED8CC3FED0B036F21 /* IQKeyboardToolbarManager+Toolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73B4C7AD499AF7BCC14C3DC4248A326F /* IQKeyboardToolbarManager+Toolbar.swift */; }; - 0B711521C37380AB3ED0C13EF0FAF9A6 /* UIView+IQKeyboardExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC0FF26EF54F0D2CCEEC60FB7E97B123 /* UIView+IQKeyboardExtensionObjc.swift */; }; - 0C924236B7292794AE10E4BBFABC8448 /* IQKeyboardToolbar-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C93B314BF63192FFFEA853AD9BA8066A /* IQKeyboardToolbar-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0E0C92029C63C476812AB8A5E69F1A0E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 0D09F2E4090347B87C0D1233FA5DA053 /* UIView+Responders.swift in Sources */ = {isa = PBXBuildFile; fileRef = 257BCE628592783EF9A5E519CCA2AC16 /* UIView+Responders.swift */; }; + 105766C76A96ECCBD2CC894D747781C7 /* IQTextInputViewInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F59F91AFD79784903BF8352CDFAF43B9 /* IQTextInputViewInfoModel.swift */; }; + 11257CC87FF4D3453F57F94F9C131841 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; 11BD4C25B489397A643CCB5971854A74 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 124BCB4411C266F74471632FEE411FDC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 1262CF3C963C0DA764124961D439B49F /* IQBarButtonItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8ED740F9377F944E3895021F134AC68 /* IQBarButtonItem.swift */; }; - 126F042D4B2F340DE3138253C1BD9C99 /* IQPlaceholderable.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD5EDDC96EA8A526C228C3ABF1B82399 /* IQPlaceholderable.swift */; }; - 1369B279D519A23EADFE21DC37795BF7 /* IQKeyboardToolbarManager+Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FDC889F8FBF31BC6E149B59F01A74FC /* IQKeyboardToolbarManager+Debug.swift */; }; - 145C5563356F971C32E32BA303E1F5ED /* IQKeyboardManager+Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = B50BF2C383279DDB7880AF4C978116E2 /* IQKeyboardManager+Deprecated.swift */; }; - 145F2AF90B26E3E80742AC28664C25DC /* IQKeyboardManager+Resign_Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 778FA22D4BEBBF59A58346CBF997FEA5 /* IQKeyboardManager+Resign_Deprecated.swift */; }; - 152B0D3FD8A2881CB69B710D55974FB9 /* IQKeyboardToolbarManager+Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31D405B850F4246DA579A22B97251360 /* IQKeyboardToolbarManager+Deprecated.swift */; }; - 17614D76161DA05893BDDA40F96592F8 /* IQKeyboardManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6759C2C05A896EEF5A902F54ED815458 /* IQKeyboardManager.swift */; }; - 1B4F7C2C1D88307F12609EAC0464AB86 /* IQKeyboardExtended.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA76A2A5EC61CC8B474C1A4551226332 /* IQKeyboardExtended.swift */; }; - 1BE160B878A28F5FA898999E0805FCCE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 1EDF6B321C32F18C59FF1A110F1A7542 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = BC217F78CA99FD3D41A3303B824C278D /* PrivacyInfo.xcprivacy */; }; - 1F95AF2D6F6B697AF9F5A65E2FEEA091 /* IQActiveConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4C246899B9ADD76C47413CFC1900669 /* IQActiveConfiguration.swift */; }; - 20302EF7FDF8788C2A52BEC837617E24 /* IQInvocation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34893074C574951651CAE0489239E848 /* IQInvocation.swift */; }; - 20AA7AC737EFD9101D0CA80E389B88ED /* IQKeyboardReturnManager-IQKeyboardReturnManager in Resources */ = {isa = PBXBuildFile; fileRef = 110BD425B6CAD6801539E2C6AB6E0662 /* IQKeyboardReturnManager-IQKeyboardReturnManager */; }; - 25EE6824CF8528BDE7A1F21B97A2936B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 292D299D31BD527F867A6EF6C0EFA308 /* IQKeyboardManager+ToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992554533A232CEC66E7397532159E20 /* IQKeyboardManager+ToolbarManager.swift */; }; - 2C730EA2EAA103C35CBEFAB503879980 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 7AF35518DCE4701B077F7D5E23122BAD /* PrivacyInfo.xcprivacy */; }; - 2F0C1DF6BCC18175DF00FA36A403917E /* IQKeyboardToolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AA33750C13A35FA4DFFEA7D3E1D6F71 /* IQKeyboardToolbar.swift */; }; - 31EF2638094D4B4F5927495A2B7D798B /* IQKeyboardToolbarConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AEC002400E17D448789C96C9A991A76 /* IQKeyboardToolbarConstants.swift */; }; - 339BEA53AF28A59C4663E40B91D9B370 /* IQKeyboardToolbarManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6753350B51E82A0FE23F430A0B57E601 /* IQKeyboardToolbarManager+Internal.swift */; }; - 380C9A16512596163FFB339B98F75C16 /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; - 3A0561008BBDB7CC5003F67D1ED67D53 /* UIView+Parent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70E7C93840EABBEDEEF083F6B142029D /* UIView+Parent.swift */; }; - 3D95FD8AB8B46CBF113FBAE86FB8B059 /* UIView+Resign.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0003B8890568226024C1462834BA44 /* UIView+Resign.swift */; }; - 3EAF4037851BF1BBAB5916DB7F601763 /* IQKeyboardNotification-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F8DC7287225EB89CFFDCA5DD231B629 /* IQKeyboardNotification-dummy.m */; }; - 4247E13AB347A07432756BB3A75A3DC6 /* UIView+ParentObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87CC2842EDD9352F470FE692A9B91AA5 /* UIView+ParentObjc.swift */; }; - 4514FAA3C174519C3DB0A39CCE329F2B /* IQKeyboardReturnManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 629DD1DA2A6BB7211D4AA2CDC4ADE1BE /* IQKeyboardReturnManager.swift */; }; - 48218E2CD382EF08D195E251C7DFC3DE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 4C73B683C1DE3DDA347772B0FE6738A4 /* IQKeyboardResignHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = A12612B1AED7EE8CCD44571B43987BBB /* IQKeyboardResignHandler.swift */; }; - 4E1921C623087691990B31EDBD52908D /* IQKeyboardManager+Appearance_Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC4A4ED3AA953F5ADE3FA7EC8F671377 /* IQKeyboardManager+Appearance_Deprecated.swift */; }; - 4FA399C9233F2E75DF3C61FE71FE0162 /* UICollectionView+IndexPaths.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F613BCF49ACE20A304727CA4EDA7E47 /* UICollectionView+IndexPaths.swift */; }; - 50B903F6549D7A6DDA2DF594829F24C0 /* IQTextInputViewInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E593660B088EDD170E5B1B7CBEA3509 /* IQTextInputViewInfo.swift */; }; - 549A919387FE08829094B5E6352603DF /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; - 5640D7719025E79E82B04FA0736D8F9E /* IQKeyboardCore-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B634D0C8582340A26DF881074996135 /* IQKeyboardCore-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 572C619BF2E60BBCD0EC79B96F6F290F /* IQKeyboardConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4ADD25EEB716A656CC0DBEDCC9790D4 /* IQKeyboardConstants.swift */; }; + 139ACE54AA202BAD419CC5FB30BF5830 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 145C5563356F971C32E32BA303E1F5ED /* IQKeyboardManager+Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E9328F77C695432E06E224ECFC6F118 /* IQKeyboardManager+Deprecated.swift */; }; + 145F2AF90B26E3E80742AC28664C25DC /* IQKeyboardManager+Resign_Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10A4A0EAA84E9607D6E867137638C0B7 /* IQKeyboardManager+Resign_Deprecated.swift */; }; + 16EC398493578D82A603A74BBEDF61DE /* Array+Sort.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40D0A74BB726A2A8248C9847466D9CC1 /* Array+Sort.swift */; }; + 17614D76161DA05893BDDA40F96592F8 /* IQKeyboardManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5AD54145A409C1D7C94875810471BF1 /* IQKeyboardManager.swift */; }; + 1914F573E861800FD3E11C47F385F514 /* IQKeyboardToolbarManager-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BB647CC374FB13666973FCF51E8A4AC /* IQKeyboardToolbarManager-dummy.m */; }; + 1AF7EC23421E175ACC93A42C105CEA49 /* IQTextInputViewNotification-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 302E2D627665AA33DFD324A6B9C22B43 /* IQTextInputViewNotification-dummy.m */; }; + 1B4F7C2C1D88307F12609EAC0464AB86 /* IQKeyboardExtended.swift in Sources */ = {isa = PBXBuildFile; fileRef = D30ADEE09F82DF19A1888B002A47FC21 /* IQKeyboardExtended.swift */; }; + 1C2C67EA4C7B2B68FC4589BDCCD3B533 /* IQTitleBarButtonItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 939F8DEAB2123EC89A5DD098E96E191A /* IQTitleBarButtonItem.swift */; }; + 1EEBBF88610B1114E92B5B2C3CB0CD3A /* IQKeyboardToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF2D49F00775A27DDCDF1AE909125185 /* IQKeyboardToolbarManager.swift */; }; + 1F95AF2D6F6B697AF9F5A65E2FEEA091 /* IQActiveConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DD839E94220ED93D5D56D7325ACB4AF /* IQActiveConfiguration.swift */; }; + 22BA2DB8232BB7DCF5B220D2C101A3B2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 2334750B311385DD4A7F9114AA555605 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 9F8AD8BB0EBEEF249761A914B37CAD8C /* PrivacyInfo.xcprivacy */; }; + 249F48C24B2BF91AD52E41216BE2CC7A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 24EE27EE96C2BB5CF8F92DC351D9DCC3 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D195EE12A7242B6960BDA464D00CF39D /* PrivacyInfo.xcprivacy */; }; + 25F07A0332F0686B4D52E0430ACA4050 /* IQKeyboardReturnManager+UITextViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D38BDB89CF929982D596C8C7390190C0 /* IQKeyboardReturnManager+UITextViewDelegate.swift */; }; + 263FE1F43F1D8E1B46C6313B5641FE3B /* IQKeyboardToolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 679D26F54B1AA81CAB8B96B96A4E1340 /* IQKeyboardToolbar.swift */; }; + 292D299D31BD527F867A6EF6C0EFA308 /* IQKeyboardManager+ToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA6FFAAA8D1615D51313B82AE95D7A0F /* IQKeyboardManager+ToolbarManager.swift */; }; + 2A8A225030C70D6832CF21149B56820A /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 46743810A3D4B51DE28F0DE3BB6D5497 /* PrivacyInfo.xcprivacy */; }; + 31FA5537FB0621C5A8A4AFE359CB4096 /* IQKeyboardToolbarManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F977EDAA0F36643B21D81D866F00325 /* IQKeyboardToolbarManager+Internal.swift */; }; + 3A0561008BBDB7CC5003F67D1ED67D53 /* UIView+Parent.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3B92976C10CBB84DC9EF347BDFC60CF /* UIView+Parent.swift */; }; + 3A6CF818BB50747C26A1C574B6ADCFF5 /* IQInvocation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14791DBACC3C3EBD8BF5D28B23927645 /* IQInvocation.swift */; }; + 3D95FD8AB8B46CBF113FBAE86FB8B059 /* UIView+Resign.swift in Sources */ = {isa = PBXBuildFile; fileRef = A389B2EDC5D1D81EF043A12391638BC1 /* UIView+Resign.swift */; }; + 4247E13AB347A07432756BB3A75A3DC6 /* UIView+ParentObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1B75F1D0D65299E5DC583CECA54FDAA /* UIView+ParentObjc.swift */; }; + 464100C3AAC75B5CA14AE36040292817 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 5DA99C08528E3C22E42D003865FEC09D /* PrivacyInfo.xcprivacy */; }; + 46769B00A3AF04C4F9AE2D87955658B9 /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; + 494B35A30767517DDF2768CE032A36F3 /* IQKeyboardToolbar-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9960FCCCFFE8F876FCDE0065C4FD6629 /* IQKeyboardToolbar-dummy.m */; }; + 4C73B683C1DE3DDA347772B0FE6738A4 /* IQKeyboardResignHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FA0B342A73D28669E2FA554F3636EDD /* IQKeyboardResignHandler.swift */; }; + 4C95F01EA9E552C45BBFF21C67D96571 /* IQTextView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0D5ABBC99F3391C6F9A634D663E75422 /* IQTextView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4E1921C623087691990B31EDBD52908D /* IQKeyboardManager+Appearance_Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4F1AACDDF2D1C20591B33DD8E2A5C38 /* IQKeyboardManager+Appearance_Deprecated.swift */; }; + 4F78DB926808F54F15EAE5150D08CD7F /* IQPlaceholderable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 265515AE6516C3B325D5961DCA814A4A /* IQPlaceholderable.swift */; }; + 4FA399C9233F2E75DF3C61FE71FE0162 /* UICollectionView+IndexPaths.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B2DC97D0BB8EBFBE037BB8888E5152A /* UICollectionView+IndexPaths.swift */; }; + 53AA6596E89D66A0DE2B630DC0C06F3B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 54CE02B6FF7C86515599D09F5AE97AC2 /* IQKeyboardReturnManager-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F2AB1871CDCA81B98E67F2845433559 /* IQKeyboardReturnManager-dummy.m */; }; + 5640D7719025E79E82B04FA0736D8F9E /* IQKeyboardCore-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D4F22BBAC26D59FA533BC3E2D6249904 /* IQKeyboardCore-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 572C619BF2E60BBCD0EC79B96F6F290F /* IQKeyboardConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1432B7B9FB7E007C7E5FD5F9AB24198B /* IQKeyboardConstants.swift */; }; 5C8D01AF68C2C9E27E510C10D8A0A28F /* Pods-suixinkanTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F70708431A20D2521270775E3BFCC3 /* Pods-suixinkanTests-dummy.m */; }; - 6426396B8E7B8854481D895B59EE2033 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 6C96447A8AE98F4D3BDF939F7266C57F /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 2A2F83D6955E3DA7E55E81A83CDD1633 /* PrivacyInfo.xcprivacy */; }; - 6F28DC7E3DFE272A55834DCAA3BC46E3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - 7140EFC50C715BE19C49D09F4E8B001E /* IQKeyboardToolbarManager-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C026F448EE161E5AA295F2DD8C00F78B /* IQKeyboardToolbarManager-dummy.m */; }; - 73E5FDFB080961A009BDB44B202BFB57 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = A3B399BF12010721D7606DE2C51AC0EF /* PrivacyInfo.xcprivacy */; }; - 74091D9359EC6AF9E1E93894F2F554F4 /* IQKeyboardManager+Appearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 407749166D56AC58042E7F89FDD486AD /* IQKeyboardManager+Appearance.swift */; }; - 753647E6489F2973A95CC4802972B4D5 /* Pods-suixinkan-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 52F75B5EC268243B9BFE349B05E52A20 /* Pods-suixinkan-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 789681091CE951D7A2AFAEDDB746D97E /* IQTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 097E3C45E430629A425D0B19A2A6E19C /* IQTextView.swift */; }; - 791C3A33D30AC700243D4685CAB59EA7 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 9517DFB02CF19FA4C175500597CC473D /* PrivacyInfo.xcprivacy */; }; - 794E0A6AE50125209FEB21F836F814A8 /* IQKeyboardNotification-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A9A9140CB6ADD033768BB60CEA72E7A /* IQKeyboardNotification-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 797C139C4DAD4AFC09C97E71C2457033 /* UIViewController+ParentContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF4AEB75D89FF3F06FDE6A004EA9A23 /* UIViewController+ParentContainer.swift */; }; - 7ABA54F3D307204A0413D0E117574E89 /* IQKeyboardAppearanceManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8ABCFBB8BDD11CFBF49406BF0165A41 /* IQKeyboardAppearanceManager+Internal.swift */; }; - 7B2AEE17FD04F5CC53CD6E52F25B63B6 /* UITableView+IndexPaths.swift in Sources */ = {isa = PBXBuildFile; fileRef = 244D954871A873D3E39E3064D852B516 /* UITableView+IndexPaths.swift */; }; - 7BF320447891FB83F74C8BC147F74898 /* IQTextInputViewNotification-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = ADB26D0335D3238C4C3CACC81077B951 /* IQTextInputViewNotification-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7CC5EC3E1C7BAD3A74DEDFD8D3E8FCD3 /* IQKeyboardAppearanceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73F4A4C2EB0A4E49EC7BFE3DACD2CCD5 /* IQKeyboardAppearanceManager.swift */; }; - 7CCA3371017E9A9E03A8BEB175DB8414 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 5EAF6B62A82569F4767893AB4F1DEEF4 /* PrivacyInfo.xcprivacy */; }; - 7D7049ABBC602DFAA8118688EDE0C5F9 /* IQKeyboardReturnManager-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AE62D9B077B5FC3AD4F95C8A43FB4558 /* IQKeyboardReturnManager-dummy.m */; }; - 7D9B1CAFA6BC311446E2EB4FB8FC05D6 /* IQKeyboardManager+Resign.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B684CF1599F22DF5238BEF46E8CD746 /* IQKeyboardManager+Resign.swift */; }; - 7DA65932A24360D599F10035119EA5E2 /* IQKeyboardToolbarConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B4EA2289D2B8316CE956FF2268D0114 /* IQKeyboardToolbarConfiguration.swift */; }; + 64FCAFDF9302AC4563973F3E65DDDA01 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 67E64022C5EA54D4143D421708FB4552 /* IQTextView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F9BF1DD8D3901D2CB56396040F28392 /* IQTextView-dummy.m */; }; + 6B091DC2D97D18146714D417F8493EE2 /* Pods-suixinkan-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 52F75B5EC268243B9BFE349B05E52A20 /* Pods-suixinkan-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6FC415C672CEECF110E3AE9293F370FB /* IQKeyboardReturnManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32933D0AEA1AF3988E2782401F17B221 /* IQKeyboardReturnManager.swift */; }; + 74091D9359EC6AF9E1E93894F2F554F4 /* IQKeyboardManager+Appearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CB214999237C638FFC3DB3AE121DAD5 /* IQKeyboardManager+Appearance.swift */; }; + 7627D9AB0E166EFB41F915C6335FAB38 /* IQKeyboardToolbar-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B15A89F8DECA647A9464E7868B3D9832 /* IQKeyboardToolbar-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 79392C6B2D1DDCB948DA3383908E91EF /* IQKeyboardToolbarManager+Toolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = B70C6CBF2C487B6296E36E4818045F76 /* IQKeyboardToolbarManager+Toolbar.swift */; }; + 7973C48AD6DC2FBEBF2D2CDD685AF8CF /* IQDeepResponderContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CBFDC425AA2C8AD908DA6ABC7D368DD /* IQDeepResponderContainerView.swift */; }; + 797C139C4DAD4AFC09C97E71C2457033 /* UIViewController+ParentContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3DCEB6C2B197ABE227932FEA2419037 /* UIViewController+ParentContainer.swift */; }; + 7ABA54F3D307204A0413D0E117574E89 /* IQKeyboardAppearanceManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10CB1E0D11EC51CC988C1E27607C73A7 /* IQKeyboardAppearanceManager+Internal.swift */; }; + 7AD979D5CC2083E382D296DE8B0A644D /* UIView+IQKeyboardExtensionDeprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F30991F76663516B678C382E5C3778C /* UIView+IQKeyboardExtensionDeprecated.swift */; }; + 7B2AEE17FD04F5CC53CD6E52F25B63B6 /* UITableView+IndexPaths.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22DE40CC56B3E094BCE71F0843177D6C /* UITableView+IndexPaths.swift */; }; + 7CC5EC3E1C7BAD3A74DEDFD8D3E8FCD3 /* IQKeyboardAppearanceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 025FF22A5001E60904C397A76E0C09B4 /* IQKeyboardAppearanceManager.swift */; }; + 7D9B1CAFA6BC311446E2EB4FB8FC05D6 /* IQKeyboardManager+Resign.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69234E4D1FF97AA77BC3546B03B96407 /* IQKeyboardManager+Resign.swift */; }; 7E60FD4609EDDF8E83DB794814DB7BC6 /* IQKeyboardManagerSwift-IQKeyboardManagerSwift in Resources */ = {isa = PBXBuildFile; fileRef = 8D8069D3964814114ACEC3084C010B59 /* IQKeyboardManagerSwift-IQKeyboardManagerSwift */; }; - 7E8892157548D3A549F0CB486B596277 /* IQScrollViewConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9EE58245D58F26549A7A8CCB434AC52E /* IQScrollViewConfiguration.swift */; }; - 7FD5748EB56A4E3BF6D2ED701B2D213D /* Array+Sort.swift in Sources */ = {isa = PBXBuildFile; fileRef = B476FC7E116754954EC384BBE70ECF92 /* Array+Sort.swift */; }; - 7FDC7630F10411A4DEB79549E69F5F5F /* IQKeyboardToolbarPlaceholderConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BEEC8D5C43F1F1BA28301F6F1167C87 /* IQKeyboardToolbarPlaceholderConfiguration.swift */; }; - 812AC92889B2ADB26628EC2A23707B05 /* UIView+RespondersObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3412D26E7AC83AF43C7017AB142B719D /* UIView+RespondersObjc.swift */; }; - 82D95B0853CA494D1C763438157DFBD4 /* IQKeyboardManager+Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5DD064141FD6D9585DDBFF2FE5EF228 /* IQKeyboardManager+Debug.swift */; }; - 85773133CDEE15E726293BDB7E7B2CF0 /* IQTextView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FC5970D36251A1390A17CF7571EF768 /* IQTextView-dummy.m */; }; - 85ED9426CDED97B9C5F563C4BBCE506D /* IQKeyboardReturnManager+UITextFieldDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0141CCE940C38D3566A83D1108E6A304 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */; }; - 876991BF59C2E072FCCAA538D58EE3E9 /* IQBarButtonItemConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD68AF4711DE3DCD592D096BC6577207 /* IQBarButtonItemConfiguration.swift */; }; - 894C85B6B68DC29E241159AD71D06391 /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; - 89B68F15FC6F3A096318B24F897ACE36 /* IQKeyboardManager+ActiveConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = E23A19CFE92D16E0C6DF4232CAE6BE95 /* IQKeyboardManager+ActiveConfiguration.swift */; }; - 8A4E21670B754CB36D5C537DDFF746B9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 7E8892157548D3A549F0CB486B596277 /* IQScrollViewConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C3C8E54ECDED1E0C05111FCCEBE7BD /* IQScrollViewConfiguration.swift */; }; + 8032C9E476F728B6BE252AADD5A46F48 /* IQTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2432EF98C1780CB63645C2E5DFBC4FE9 /* IQTextView.swift */; }; + 82D95B0853CA494D1C763438157DFBD4 /* IQKeyboardManager+Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C97F1279DE48FCF5536191CB5FDC744 /* IQKeyboardManager+Debug.swift */; }; + 83EEFF802E4CAF422F9C3BA57EE92721 /* IQKeyboardNotification-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A1D98DED6CFD3022E8FC075FA491615 /* IQKeyboardNotification-dummy.m */; }; + 84ADFCB3B5116D452F2283B2C93A6544 /* IQKeyboardToolbarConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2C3388662FA183F12DC5F47940D57DC /* IQKeyboardToolbarConfiguration.swift */; }; + 859DB2F7AED6E742BD5491C50234DA05 /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; + 87DBE1CA85B65864BA2BD8EE27B64F74 /* IQTextInputViewInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E3A1BD1F31324B93B3AD539F716E8F8 /* IQTextInputViewInfo.swift */; }; + 89B68F15FC6F3A096318B24F897ACE36 /* IQKeyboardManager+ActiveConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6638AB504D084AEDF76BD13D6B411686 /* IQKeyboardManager+ActiveConfiguration.swift */; }; + 8D20DCD225FDA85F616413E20B0A15E6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 8D536472BDF9BC28A40B2A6FD1CEEBA5 /* IQTextView+Placeholderable.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0DAEBB9CD1A3D230D46015714723231 /* IQTextView+Placeholderable.swift */; }; + 8F90006048BC08268AA81256349A0735 /* IQKeyboardNotification-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A96477B12A2B08512DEF851076308BFC /* IQKeyboardNotification-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 901486704FC0E988B9EE82D7A4C61F0F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - 91BBBA5792E4466D046C29B84142C2A7 /* UIView+ResignObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E1C0398739C8BEB724C448EE1DB0F6E /* UIView+ResignObjc.swift */; }; - 92E7912D1416834B306C09113D17A615 /* IQKeyboardManager+ToolbarManagerDeprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06A9F6948FD1CA41F3ACF9F3966A3888 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */; }; - 96D981E5A461F6945E18ACAEDB5AD9DA /* IQKeyboardManager+Position.swift in Sources */ = {isa = PBXBuildFile; fileRef = 736B201311554090BB7665BFF33F0B0D /* IQKeyboardManager+Position.swift */; }; - 9701D7F75D716DA6CF8F1D3693ADCFCD /* IQTextInputViewNotification-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7824F2A9F1A4882E8AC01FC525F509DA /* IQTextInputViewNotification-dummy.m */; }; - 9759B8BA30F41528B8D6C6D796D758BD /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4294DBAFDD1C869AB58195872ECBD63C /* PrivacyInfo.xcprivacy */; }; - 977A84A34F1D6C1A79A4C065146EBF36 /* IQTextInputView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E0A31927D7E41BFDD984506DC0F5E99 /* IQTextInputView.swift */; }; - 9C66887BAF39DDEC4615BB75A30EF766 /* IQKeyboardManagerSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D43C0E4C0ABC428E9D5A5AE717B658E /* IQKeyboardManagerSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9DF018FD9B2DA31BB1FF9830ED380650 /* IQTextInputViewInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41AE378E9210FE5D862A988433348E /* IQTextInputViewInfoModel.swift */; }; + 91BBBA5792E4466D046C29B84142C2A7 /* UIView+ResignObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 672521CE7AABAB88CAC5DA46DE3917EE /* UIView+ResignObjc.swift */; }; + 92E7912D1416834B306C09113D17A615 /* IQKeyboardManager+ToolbarManagerDeprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73BC53E8C93DDB8078EB3832DF5645C3 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */; }; + 93086CDECC1CF6172D5307CD731DDB69 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 96655B828BFC55F28DAC17E9E404CFEC /* IQKeyboardNotification-IQKeyboardNotification in Resources */ = {isa = PBXBuildFile; fileRef = 120BD4C670EF00F4D5A40AA4B863A7AE /* IQKeyboardNotification-IQKeyboardNotification */; }; + 96D981E5A461F6945E18ACAEDB5AD9DA /* IQKeyboardManager+Position.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8BC74EE1659FD64F176CD4BE256AF84 /* IQKeyboardManager+Position.swift */; }; + 977A84A34F1D6C1A79A4C065146EBF36 /* IQTextInputView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81662341279CC66CC14E37D7694CCCC3 /* IQTextInputView.swift */; }; + 9973B64437A151340E5531BEE1D96EDA /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4CDA0B7868683A656CA1A57A373E2844 /* PrivacyInfo.xcprivacy */; }; + 9C41BFFC33B98E3B4C0D604606517086 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + 9C66887BAF39DDEC4615BB75A30EF766 /* IQKeyboardManagerSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E8C6E85CBE09A894E15473B2ACFF25F /* IQKeyboardManagerSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 9DF3957B1206C0281930050EF1C58589 /* Pods-suixinkanTests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B4673E41D5AF372B424C758462A39ADE /* Pods-suixinkanTests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A199EBA4C308040DBF6D668F277AD380 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - A601EBA1BC3752EF7B49222A1C5F0D70 /* IQTextView-IQTextView in Resources */ = {isa = PBXBuildFile; fileRef = 847044E56CBBCE1235A6F3CEF3F9F607 /* IQTextView-IQTextView */; }; + 9DF4CAF5CDCEBF860D1E04475EBB8504 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + 9E2042CD11A31A6D96D06D20B7B44AE3 /* IQTextView-IQTextView in Resources */ = {isa = PBXBuildFile; fileRef = 847044E56CBBCE1235A6F3CEF3F9F607 /* IQTextView-IQTextView */; }; + A1F33D56C9A16A4A364BBC2BC6190FC8 /* IQKeyboardToolbarManager+Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1D32FAB7ECAEED292D25CAE95327CF0 /* IQKeyboardToolbarManager+Action.swift */; }; + A4F94A48BC77E0309D075DDE904D6F98 /* IQKeyboardToolbarManager+Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BDEFEECE64EE79440F94BD4C6F34682 /* IQKeyboardToolbarManager+Deprecated.swift */; }; A696BD409E03454DB248248486551336 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - A8D34B7B91FA733D2AED15AB04B892BD /* IQKeyboardToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 346216373F9BE3698F9AEFCF076F23D2 /* IQKeyboardToolbarManager.swift */; }; - AACCF3AA32BE2187677FD50706AD7476 /* UIView+IQKeyboardExtensionDeprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ED417277D89101687DEA83AAF66F65C /* UIView+IQKeyboardExtensionDeprecated.swift */; }; - AC2BDAA5ABD21D76EAAF213256C8B8E9 /* IQKeyboardReturnManager+UITextViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 484D6C3AFBCC01928BBCFE110C2A2F2C /* IQKeyboardReturnManager+UITextViewDelegate.swift */; }; - B532634861D24EDC85FABA261FDD0E35 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + A7559B934F8DCF87C3FE2BA4F5C4C95A /* Combine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */; }; + AB6CC3B98AFFD293CAE8AD23B0FC9AAE /* IQKeyboardInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8B9584100C63E03D75F12EF28FE46D8 /* IQKeyboardInfo.swift */; }; + AB800C9B59994C4897A2C4B4BB18A1A4 /* IQTextInputViewNotification-IQTextInputViewNotification in Resources */ = {isa = PBXBuildFile; fileRef = F956E149F5B195BB7833F97FC6211AE8 /* IQTextInputViewNotification-IQTextInputViewNotification */; }; + AB877946AF70E70BA6EC7FDAEB227012 /* Pods-suixinkan-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = ED291EE097723C1A6325544C2500E844 /* Pods-suixinkan-dummy.m */; }; + B1FD1C28976551248F427CC7E76FABDC /* UIView+IQKeyboardExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3AB3CAD98805C12A0303E5EEF02BA39 /* UIView+IQKeyboardExtensionObjc.swift */; }; + B66067B98F220793BA6B7E1FD8A500DD /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 2924FA1CCC272E301C4519279F9D672F /* PrivacyInfo.xcprivacy */; }; B82824181ED70910225DD0E25CDDC308 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - B8402636FDBC65B4E50D293F80616D6B /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = A372E26A2A397D202C662C0FD912FCA2 /* PrivacyInfo.xcprivacy */; }; - BF16B86E6246A1BAC62B945FC5B91D4B /* IQKeyboardReturnManager-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 527952C17AC8880F69799F25BAE08B43 /* IQKeyboardReturnManager-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BFC5DD1D47E9627393B920979F569A69 /* IQTitleBarButtonItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3583620D179FA09F78F1B6A29B53FD58 /* IQTitleBarButtonItem.swift */; }; - C5CB4120589DF8072F87D78E2BAE7BB0 /* IQKeyboardToolbar-IQKeyboardToolbar in Resources */ = {isa = PBXBuildFile; fileRef = A16FD016E18EACCF6B23F219F2E236FE /* IQKeyboardToolbar-IQKeyboardToolbar */; }; - C60607D4D2571A1535BECED712926730 /* UIView+Responders.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3AC9204F4307F3CEE2EA7B4755F2BA3 /* UIView+Responders.swift */; }; - CD02AEC4AE908A557E2DDEADFB5E75EA /* IQKeyboardToolbarManager-IQKeyboardToolbarManager in Resources */ = {isa = PBXBuildFile; fileRef = 80A40EDA3AF0499BDBCFF09467BB49AD /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */; }; - D1F3500436232D12E46F637F12E3799D /* IQKeyboardToolbarManager-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D6B6259CDECD85D674B168D3AF7C0101 /* IQKeyboardToolbarManager-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + B84FE0B28193A77BA1C0147CB12496DA /* IQTextInputViewNotification-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B19FAB17A68CCCA197D7890BED3BC1D2 /* IQTextInputViewNotification-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BABC1D696349718315EE287F779F7974 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; + BEF7421741D27DC0377B21A20DA375B0 /* IQKeyboardToolbarPlaceholderConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD07E0C05CA7DC462A51F4F90DD5AEE7 /* IQKeyboardToolbarPlaceholderConfiguration.swift */; }; + C8E0B1AB7F74F72DDCBB1B9854DC4621 /* IQKeyboardReturnManager+UITextFieldDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ECF9275B52B7B8B05B01B6D2E53EC02 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */; }; + C8F299839031777070C30485AD203821 /* IQKeyboardToolbarManager-IQKeyboardToolbarManager in Resources */ = {isa = PBXBuildFile; fileRef = 80A40EDA3AF0499BDBCFF09467BB49AD /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */; }; + CB8B874662D19B8230CFBED0583C8879 /* IQBarButtonItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = E924602982CB402C3DE49FAE6B4E86D7 /* IQBarButtonItem.swift */; }; + D1A61DF48588AFBD1986A22CCFDA8FE6 /* IQKeyboardToolbar-IQKeyboardToolbar in Resources */ = {isa = PBXBuildFile; fileRef = A16FD016E18EACCF6B23F219F2E236FE /* IQKeyboardToolbar-IQKeyboardToolbar */; }; D4D07C9CD27588E6B0F25C3B828E7A21 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */; }; - D7EDC1DE3A00099ECB44310E7C420B22 /* IQKeyboardNotification-IQKeyboardNotification in Resources */ = {isa = PBXBuildFile; fileRef = 120BD4C670EF00F4D5A40AA4B863A7AE /* IQKeyboardNotification-IQKeyboardNotification */; }; - D9C7F5D217BC3710874B9A0D70666A01 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - D9FD33E409638FCAD07C69B35A06ADC2 /* IQTextView+Placeholderable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 603C9655C429A8AFD3A2ABB90354F0D3 /* IQTextView+Placeholderable.swift */; }; - DB99760495689B430C2E2398C481C2FF /* IQDeepResponderContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D8517105921669A50D907EA797E1636 /* IQDeepResponderContainerView.swift */; }; - DEE306224FA4E5E02C858C42EE7131D4 /* IQRootControllerConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60631CBB35BA793CAA9E46A8F1CD243C /* IQRootControllerConfiguration.swift */; }; - E1E22D47863A8CB3B228B723772C8840 /* IQKeyboardResignHandler+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 930508646A6ED3948BD91D3EC83E0968 /* IQKeyboardResignHandler+Internal.swift */; }; - E20D69402A8EB87733D99631B63512F5 /* IQTextInputViewNotification-IQTextInputViewNotification in Resources */ = {isa = PBXBuildFile; fileRef = F956E149F5B195BB7833F97FC6211AE8 /* IQTextInputViewNotification-IQTextInputViewNotification */; }; - E262B2578F75C70185C656E333DF925F /* IQKeyboardInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD275A609F620EB41456FBE469BDA8C /* IQKeyboardInfo.swift */; }; - E2A7F3B197F20459F0941DCBF911D1D9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; - E344CBDDF7D01C3ED9F53E7D99D13EF5 /* IQKeyboardManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 532F94C9C97C09FF016A3ABB96B2DB11 /* IQKeyboardManager+Internal.swift */; }; - E758379D510D62830AFF306D4630B954 /* IQKeyboardToolbarManager+Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7876059E50A29A0D55B20586DAFF3B7D /* IQKeyboardToolbarManager+Action.swift */; }; - E78FE7B64DD24FFD6E4EC26F25124278 /* UIView+Hierarchy.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5F0A37891F1A7765B99C903153C0945 /* UIView+Hierarchy.swift */; }; - E8A74201D2F78C69C857A500D88D7F5D /* UIView+IQKeyboardExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDB04A2BDB7E068229CAF7A81165DD65 /* UIView+IQKeyboardExtension.swift */; }; - EBD56E9E283017BD6BAE73D17BB996BA /* Pods-suixinkan-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = ED291EE097723C1A6325544C2500E844 /* Pods-suixinkan-dummy.m */; }; - F1159F40EEA1623CB8F2CE94CC643BB4 /* UIScrollView+IQKeyboardManagerExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7FD69C0D8168D323ADC0A6EFD7FC1DD /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */; }; - F214E7966499A7E2BD10546C0D3EF62E /* IQKeyboardManagerSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 72047D59C9D0EA03C1447E76203105F5 /* IQKeyboardManagerSwift-dummy.m */; }; - F40A3F3B62CB395036B12C9291F395FD /* UIScrollView+IQKeyboardManagerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF84270BA52DE4FAC1678E99D700AA50 /* UIScrollView+IQKeyboardManagerExtension.swift */; }; - F830A4A9A9CBAA1D538F5B503D27E85E /* IQTextView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 35890C70D80685FA114966E7CFFC00A1 /* IQTextView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F83AB9BDBF91C11FCF608D35D84E7F78 /* IQTextInputViewNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97671A95678EAE5829CEE22F5A4ED288 /* IQTextInputViewNotification.swift */; }; - F8D4EB40DFA99B22113D750200A67F86 /* IQKeyboardAppearanceConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 095CB762599A53A99A9ACC8DBC8C0591 /* IQKeyboardAppearanceConfiguration.swift */; }; - F91DE04D9AFE6368A31CF627F06D1C05 /* IQKeyboardToolbar-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A528053628879455AB95D1D237A78AED /* IQKeyboardToolbar-dummy.m */; }; - FE50EC3004486FFA49C30D14FBBA606E /* UIView+IQKeyboardManagerExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB5660BB9799DC420CD4238B38ED357F /* UIView+IQKeyboardManagerExtensionObjc.swift */; }; - FEA09EA9224F5FE424E0B9FA2AE5B02F /* IQKeyboardNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DED2FF966D82D4283903008C1587F98 /* IQKeyboardNotification.swift */; }; + D7D00E5346E5508D9D53EC7481B5D506 /* UIView+IQKeyboardExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D876671EB044681F90C28875230D85 /* UIView+IQKeyboardExtension.swift */; }; + D85E7E38F35C5D58550C5D8E44705B20 /* IQKeyboardReturnManager-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F97FC488C52F8C83E3213105C4228613 /* IQKeyboardReturnManager-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + DA18C09E871D9EE49EF5AAAC18B0324E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */; }; + DEE306224FA4E5E02C858C42EE7131D4 /* IQRootControllerConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = D054D25DFF58C86E7DD00309158A9533 /* IQRootControllerConfiguration.swift */; }; + E1E22D47863A8CB3B228B723772C8840 /* IQKeyboardResignHandler+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 236F47C2E0820E91686A2967CD6F760F /* IQKeyboardResignHandler+Internal.swift */; }; + E344CBDDF7D01C3ED9F53E7D99D13EF5 /* IQKeyboardManager+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32A64F71DA55AE99B5E87755F8EB43D9 /* IQKeyboardManager+Internal.swift */; }; + E78FE7B64DD24FFD6E4EC26F25124278 /* UIView+Hierarchy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 059A2CB5D47914844323E42412B05E5D /* UIView+Hierarchy.swift */; }; + E8CD2C2FF3756F1E72ABA275868B8AC5 /* IQBarButtonItemConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FFCB3910600ECA6002BB878B30BA591 /* IQBarButtonItemConfiguration.swift */; }; + EB3D7CFBFECE122987E4BB05A670BD77 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E3532585B460CC985A9C1C9DAF3AEB1E /* PrivacyInfo.xcprivacy */; }; + EC1FAF704B6CCC979D6B0CA2078879AE /* IQTextInputViewNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C4C42FF3915092153F921CC192177D /* IQTextInputViewNotification.swift */; }; + EDBC65971BDA677118EA352344E2A651 /* IQKeyboardToolbarManager+Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A018EB4FFC926E5323B07BD2E9A0617 /* IQKeyboardToolbarManager+Debug.swift */; }; + EE8C318C9FE25194E1CC517C668E8C26 /* IQKeyboardReturnManager-IQKeyboardReturnManager in Resources */ = {isa = PBXBuildFile; fileRef = 110BD425B6CAD6801539E2C6AB6E0662 /* IQKeyboardReturnManager-IQKeyboardReturnManager */; }; + F00FA86A7B52D89294324E2F04BAC22A /* IQKeyboardNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 209A273DFA6CB48721E810D588DFD907 /* IQKeyboardNotification.swift */; }; + F1159F40EEA1623CB8F2CE94CC643BB4 /* UIScrollView+IQKeyboardManagerExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19730C7CF0F446CA5D115BD82BD2903E /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */; }; + F20AF39343CE3A9EE766946E551AF9E0 /* IQKeyboardToolbarManager-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BD5CE09F44FA76C300BAFE993574AC6 /* IQKeyboardToolbarManager-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F214E7966499A7E2BD10546C0D3EF62E /* IQKeyboardManagerSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F68AAFC87ADF8F019EE78C7BC767213 /* IQKeyboardManagerSwift-dummy.m */; }; + F40A3F3B62CB395036B12C9291F395FD /* UIScrollView+IQKeyboardManagerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2C181E4F940F09E297591DA565280F7 /* UIScrollView+IQKeyboardManagerExtension.swift */; }; + F72093BE3E74BB70AAE01BAC0915A6F5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = FD5AD0CFBB7A9E4F5B2A53DBC856B6E8 /* PrivacyInfo.xcprivacy */; }; + F8D4EB40DFA99B22113D750200A67F86 /* IQKeyboardAppearanceConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18C05366BC9A77BCD2D3B2E774D2B722 /* IQKeyboardAppearanceConfiguration.swift */; }; + FBB34EDA47D49D765C84087E6684097D /* UIView+RespondersObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3642570B5038C4A4B1B4F2D100D8D750 /* UIView+RespondersObjc.swift */; }; + FE50EC3004486FFA49C30D14FBBA606E /* UIView+IQKeyboardManagerExtensionObjc.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFDC64AA2A98DF6AB638AEDFE148C722 /* UIView+IQKeyboardManagerExtensionObjc.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 08160729EBF68D12D8DEF8050CD42989 /* PBXContainerItemProxy */ = { + 01D18C0819E8839BA684925E4171A531 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; - remoteGlobalIDString = 020993F16DA5986DACE118349EBCE9E5; - remoteInfo = IQKeyboardToolbarManager; + remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; + remoteInfo = IQKeyboardCore; }; - 08C0B54B9FA330846FEB6A183A5D6742 /* PBXContainerItemProxy */ = { + 0354D23C2A3B715A81EBF375A2C6111C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; - remoteGlobalIDString = F1E09035B7675D89EC69B16728E2833E; - remoteInfo = UMAPM; + remoteGlobalIDString = 40080C576D6EAF0D191988D3C110FE86; + remoteInfo = VolcEngineRTC; }; - 133C2EC85A61CDF06B89A71B3F3FB832 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5FB6AB0A09E7A2F2BE11AD6BAEFD9AED; - remoteInfo = JPush; - }; - 147ED37FE72D28DAFEC90706C048C6EA /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F4FE17428FD0E607723A44F17231B7A1; - remoteInfo = IQKeyboardToolbar; - }; - 168E86429E4140AB7AE450B6F636B64E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7F18C31A804695333763EEC303E265D7; - remoteInfo = "WechatOpenSDK-XCFramework"; - }; - 198F2A9B122C5AFDA9BA2CAD713C9CDF /* PBXContainerItemProxy */ = { + 072D6CAC4C4199F09765E95E9CADD3E7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = 12890DE3ABBC2CA295E108358D85EE69; remoteInfo = IQTextView; }; - 1E28E961A0B3C66B143F0D83DEAE38D8 /* PBXContainerItemProxy */ = { + 088FCAC994901FDB36023E93E94300FE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; - remoteGlobalIDString = 283C1F2EA88CD4413165801A6748A48E; - remoteInfo = IQTextInputViewNotification; + remoteGlobalIDString = A26E6FD851C20D652B2755C1464A9990; + remoteInfo = IQKeyboardNotification; }; - 1F093A748267B19E1B59DF90F454A7BC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 88810798DA63A2F6611B0970EA276DEC; - remoteInfo = "IQKeyboardReturnManager-IQKeyboardReturnManager"; - }; - 2D17082BDAA079066A9B2943E85BE982 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 020993F16DA5986DACE118349EBCE9E5; - remoteInfo = IQKeyboardToolbarManager; - }; - 37EA5367B185E8D73C585D76CFA12A67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4BD4E22D3419D68A85BDD6119CB37C6C; - remoteInfo = "AMapLocation-NO-IDFA"; - }; - 3A4000632C423DFB42EDDDE2ED54B0AE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F4FE17428FD0E607723A44F17231B7A1; - remoteInfo = IQKeyboardToolbar; - }; - 3C509F104E60FE2C27E0B3C891C979DA /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B490E7485944099E16C9CBD79119D1D4; - remoteInfo = IQKeyboardManagerSwift; - }; - 43375E8A7E5DEE972D5A3A7CC55C741F /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; - remoteInfo = IQKeyboardCore; - }; - 47CF81B26EE0AE51709688B148A7662A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; - remoteInfo = "AMapFoundation-NO-IDFA"; - }; - 4907ED9E73DED3B716A419CFFDDD78CF /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC; - remoteInfo = UMDevice; - }; - 4CB9062557A28267D22F4E20A2927AD4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; - remoteInfo = IQKeyboardCore; - }; - 4F8E9DD83779B38B70DC679422847A4C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7C5613175BBC4BF67E36DB4FBEBC01D0; - remoteInfo = "IQKeyboardToolbarManager-IQKeyboardToolbarManager"; - }; - 5B8957EC1CB8F95A847120AD59DDEFAB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0981F89DB5DA3FFCFFEBDE1F56287054; - remoteInfo = IQKeyboardReturnManager; - }; - 5F9AD0BD2225542820663819BA76D223 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 4502C7427440BEB17A50C0BF6E638A85; - remoteInfo = "IQTextInputViewNotification-IQTextInputViewNotification"; - }; - 62652A6D5809456307591E683A677266 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 09FABB7D06BB8D3958515FB15B4E7971; - remoteInfo = UMCommon; - }; - 713D4F0ABEA99574CA78A6A200B6E9F3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; - remoteInfo = "AMapFoundation-NO-IDFA"; - }; - 718E32BB22D5761863712D50A719B13E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; - remoteInfo = IQKeyboardCore; - }; - 77340A1E87646633F9EA52E66E57B674 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = D504B99928659EA67A1C3A9E981EB8FF; - remoteInfo = JCore; - }; - 8412429FAD3C39A715015569D46CB6CF /* PBXContainerItemProxy */ = { + 0C9E79873973D9E950237E695A8EE7FE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = A6602BCAA6F4F932A586C41D0B7E019C; remoteInfo = "IQTextView-IQTextView"; }; - 869CC868A322E78A78D6BBABA14E7C8C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 09FABB7D06BB8D3958515FB15B4E7971; - remoteInfo = UMCommon; - }; - 9A3A247AD57EFF42E6B410B78E061CF8 /* PBXContainerItemProxy */ = { + 0D8FE846DDF88044667D938580E2F373 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = F4FE17428FD0E607723A44F17231B7A1; remoteInfo = IQKeyboardToolbar; }; - 9F0C8DA2DAAB44671B01D41E79934E46 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 1DE17B7C77CD95CB67DF1197965B76AB; - remoteInfo = "Pods-suixinkan"; - }; - A2FC1D93AA2AE0116D85F839E3630642 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 283C1F2EA88CD4413165801A6748A48E; - remoteInfo = IQTextInputViewNotification; - }; - A68FC33FBFEBF6E0FC9A3004CD375308 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; - remoteInfo = "AMapFoundation-NO-IDFA"; - }; - A9B14D84173A1A00F4C4BA2CE94FCA5E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EEE261386011CDF271BE289F73FF5959; - remoteInfo = "IQKeyboardCore-IQKeyboardCore"; - }; - AD834305DA2DE95480DD793BAACDD5CB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 982A68D37F5DCBC1FC1FDC0BB2F0EB8E; - remoteInfo = "IQKeyboardManagerSwift-IQKeyboardManagerSwift"; - }; - C02B574389C3B5B10F5BF8E806AD24A3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2B8FF445A5162845FAB9EC00FC92B694; - remoteInfo = "IQKeyboardNotification-IQKeyboardNotification"; - }; - C1A38D27A9A8F1A9E472CCC307883FD0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = A26E6FD851C20D652B2755C1464A9990; - remoteInfo = IQKeyboardNotification; - }; - C5A9E170B59A24C216A060F404429E41 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0981F89DB5DA3FFCFFEBDE1F56287054; - remoteInfo = IQKeyboardReturnManager; - }; - C6AC669F30329ABDA94DBB8071DD78C3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 12890DE3ABBC2CA295E108358D85EE69; - remoteInfo = IQTextView; - }; - CF667262D25773528EC51D3D7DA7FCB9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B247F77A0CD5E19C8187A9BA1EB58C09; - remoteInfo = "IQKeyboardToolbar-IQKeyboardToolbar"; - }; - D07BB67961D258DFD6D4770BB99DE59A /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; - remoteInfo = "AMapFoundation-NO-IDFA"; - }; - D14881F3DD881DBB4CFEFFA8095A0E8F /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; - remoteInfo = IQKeyboardCore; - }; - EFBECFEAB6CF3583EF396FC63DA3AAB3 /* PBXContainerItemProxy */ = { + 104963582BC50C41EF70065E5258EB55 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = 4F1379598302C9160590B3650C10E1A5; remoteInfo = "AMapSearch-NO-IDFA"; }; - F094983E31D5376CF92A3C4ED2F97C3F /* PBXContainerItemProxy */ = { + 1129C0F5CD23D293033E4EAA5D1BD4C0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; - remoteGlobalIDString = A26E6FD851C20D652B2755C1464A9990; - remoteInfo = IQKeyboardNotification; + remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; + remoteInfo = IQKeyboardCore; }; - F608B4EA9716A1DF6EB5F14E89C57644 /* PBXContainerItemProxy */ = { + 1E572DA8CD240673FDA5DB3905A149D4 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = D504B99928659EA67A1C3A9E981EB8FF; remoteInfo = JCore; }; - F9D06F8A081789EC565FDAA1773A6650 /* PBXContainerItemProxy */ = { + 2E42166B1ED5EC0E474E973A4D28B957 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 88810798DA63A2F6611B0970EA276DEC; + remoteInfo = "IQKeyboardReturnManager-IQKeyboardReturnManager"; + }; + 32A57258A4AAEEF1E6305E7B310D0005 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F4FE17428FD0E607723A44F17231B7A1; + remoteInfo = IQKeyboardToolbar; + }; + 36117BA18D436FE6D0DE6B596B931149 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC; remoteInfo = UMDevice; }; - F9FB1958F0A6F81C94A74B5EF9C0350D /* PBXContainerItemProxy */ = { + 39DF2F1B454E7B7793443C38199EB0B7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = 283C1F2EA88CD4413165801A6748A48E; remoteInfo = IQTextInputViewNotification; }; - FA244E0E1C3D5E471F57BE915A6F2E14 /* PBXContainerItemProxy */ = { + 3F0020DA13C4BE480F10A0524490A4AB /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = B490E7485944099E16C9CBD79119D1D4; + remoteInfo = IQKeyboardManagerSwift; + }; + 405A63C2CBD0544A9007623125E06AE7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = EEE261386011CDF271BE289F73FF5959; + remoteInfo = "IQKeyboardCore-IQKeyboardCore"; + }; + 52E917FAA10BBBE17F522043CCD589A1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0981F89DB5DA3FFCFFEBDE1F56287054; + remoteInfo = IQKeyboardReturnManager; + }; + 67F7A60D7720446A869535A96F3545C0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; + remoteInfo = IQKeyboardCore; + }; + 6A637EE80FDCC14586BC4A2357809349 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = A26E6FD851C20D652B2755C1464A9990; + remoteInfo = IQKeyboardNotification; + }; + 725E75FD278AFD2F4826D8DDEAF4AC8F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2B8FF445A5162845FAB9EC00FC92B694; + remoteInfo = "IQKeyboardNotification-IQKeyboardNotification"; + }; + 793C2D3C9FEB330D539F7F26A32E632C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F4FE17428FD0E607723A44F17231B7A1; + remoteInfo = IQKeyboardToolbar; + }; + 79E52737FC3E90BFC787B43531CB0935 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 020993F16DA5986DACE118349EBCE9E5; + remoteInfo = IQKeyboardToolbarManager; + }; + 7A77A5B3886021A7107293AFFA6952B0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7F18C31A804695333763EEC303E265D7; + remoteInfo = "WechatOpenSDK-XCFramework"; + }; + 7E134C5A3ECB28A0092D93FDADCD88F6 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; + remoteInfo = "AMapFoundation-NO-IDFA"; + }; + 7FC3B94B59881CDB0C5AF28A2366839D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4502C7427440BEB17A50C0BF6E638A85; + remoteInfo = "IQTextInputViewNotification-IQTextInputViewNotification"; + }; + 807C83A3A6EE16C45CED3C72029B8BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F1E09035B7675D89EC69B16728E2833E; + remoteInfo = UMAPM; + }; + 85E234DCBE75440A7CD79BF12FF11C72 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = B247F77A0CD5E19C8187A9BA1EB58C09; + remoteInfo = "IQKeyboardToolbar-IQKeyboardToolbar"; + }; + 89FB9D8FBE659E0556840B05F9146FEB /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; + remoteInfo = "AMapFoundation-NO-IDFA"; + }; + 94FC7A64B621994C5E02C3C7B1C50D97 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 09FABB7D06BB8D3958515FB15B4E7971; + remoteInfo = UMCommon; + }; + A5DEF6E6B93482A0654D2EBF62442688 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7C5613175BBC4BF67E36DB4FBEBC01D0; + remoteInfo = "IQKeyboardToolbarManager-IQKeyboardToolbarManager"; + }; + A76A974111C4DF28BDEE9331043B5B15 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 1DE17B7C77CD95CB67DF1197965B76AB; + remoteInfo = "Pods-suixinkan"; + }; + B639DB1BCA73C9D02E5BE0CC18E69C5B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; + remoteInfo = "AMapFoundation-NO-IDFA"; + }; + BD6AFA6FE9B294C3A16AB8960B43D384 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; proxyType = 1; remoteGlobalIDString = B44FB02BD2D3FEAD1F36808AD405A543; remoteInfo = "AMap3DMap-NO-IDFA"; }; + BDBF652935F74D29067118B5FCCE9CC5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 020993F16DA5986DACE118349EBCE9E5; + remoteInfo = IQKeyboardToolbarManager; + }; + BEE3E2E0449835ECC392F9790745E3EA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC; + remoteInfo = UMDevice; + }; + C6430EDA286E309851C27140590779BF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 982A68D37F5DCBC1FC1FDC0BB2F0EB8E; + remoteInfo = "IQKeyboardManagerSwift-IQKeyboardManagerSwift"; + }; + D3AA7945DC9B9DA743437AFFE1EA88F2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4BD4E22D3419D68A85BDD6119CB37C6C; + remoteInfo = "AMapLocation-NO-IDFA"; + }; + DA172C18A690AAECA4B5A3D4C12D56AA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F9A1BF709B7BA4C24A83664EB1E1C7D4; + remoteInfo = IQKeyboardCore; + }; + E072D63C2E1B1FE4AD77BB97B7B340C2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5FB6AB0A09E7A2F2BE11AD6BAEFD9AED; + remoteInfo = JPush; + }; + E3D22E58F959CB9DF7B79C4E5D8175A2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = D504B99928659EA67A1C3A9E981EB8FF; + remoteInfo = JCore; + }; + E8EB0BAF47F22FD1C2A551B4318E2AE4 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 09FABB7D06BB8D3958515FB15B4E7971; + remoteInfo = UMCommon; + }; + ED17866C6B82B5FD1FFDB8382E1E23FF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 12890DE3ABBC2CA295E108358D85EE69; + remoteInfo = IQTextView; + }; + EE0C384FA001B636E43753E78E9CD110 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 283C1F2EA88CD4413165801A6748A48E; + remoteInfo = IQTextInputViewNotification; + }; + EE602595474CE7E67736CFB324228CB5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9B182CB4E1716E9070813D3C59736001; + remoteInfo = "AMapFoundation-NO-IDFA"; + }; + F595694C90F4FF142AD0682F79BC0066 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0981F89DB5DA3FFCFFEBDE1F56287054; + remoteInfo = IQKeyboardReturnManager; + }; + F7356744E89632201B581A2D5BCAF069 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 283C1F2EA88CD4413165801A6748A48E; + remoteInfo = IQTextInputViewNotification; + }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 0141CCE940C38D3566A83D1108E6A304 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardReturnManager+UITextFieldDelegate.swift"; path = "IQKeyboardReturnManager/Classes/Delegates/IQKeyboardReturnManager+UITextFieldDelegate.swift"; sourceTree = ""; }; - 01ACB31CCA98A0BA58C407BB759CBD44 /* MAOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlay.h; path = MAMapKit.framework/Headers/MAOverlay.h; sourceTree = ""; }; - 02DA1675D3DF93B18F8927862A7FDA75 /* MAHeatMapVectorOverlayRender.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorOverlayRender.h; path = MAMapKit.framework/Headers/MAHeatMapVectorOverlayRender.h; sourceTree = ""; }; + 0016DB9B9376D3CEDD92C0E35129967E /* MAOfflineItemMunicipality.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemMunicipality.h; path = MAMapKit.framework/Headers/MAOfflineItemMunicipality.h; sourceTree = ""; }; + 006784975D34D4F2841543B05EC4A195 /* UMAPM.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMAPM.release.xcconfig; sourceTree = ""; }; + 00D14718B29FD331A2247C81252659BE /* MAMapVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapVersion.h; path = MAMapKit.framework/Headers/MAMapVersion.h; sourceTree = ""; }; + 025FF22A5001E60904C397A76E0C09B4 /* IQKeyboardAppearanceManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardAppearanceManager.swift; path = IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceManager.swift; sourceTree = ""; }; 030EAF35766AF14A0C9409424A6C2B82 /* Combine.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Combine.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/Combine.framework; sourceTree = DEVELOPER_DIR; }; - 06A9F6948FD1CA41F3ACF9F3966A3888 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ToolbarManagerDeprecated.swift"; path = "IQKeyboardManagerSwift/IQKeyboardToolbarManager/IQKeyboardManager+ToolbarManagerDeprecated.swift"; sourceTree = ""; }; + 059A2CB5D47914844323E42412B05E5D /* UIView+Hierarchy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Hierarchy.swift"; path = "IQKeyboardCore/Classes/UIKitExtensions/UIView+Hierarchy.swift"; sourceTree = ""; }; + 05D5CE10D09B57E622283C0E3F584D8B /* AMapLocationCommonObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationCommonObj.h; path = AMapLocationKit.framework/Headers/AMapLocationCommonObj.h; sourceTree = ""; }; 06E5B413FEA5A600D76636DA132F8FB9 /* IQTextInputViewNotification */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQTextInputViewNotification; path = IQTextInputViewNotification.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 0765EFE771A4A4A2F0F58A914B4E21C2 /* MAMapView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapView.h; path = MAMapKit.framework/Headers/MAMapView.h; sourceTree = ""; }; - 07D967A1100CF811A66390D51EB5A6E2 /* MAOfflineCity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineCity.h; path = MAMapKit.framework/Headers/MAOfflineCity.h; sourceTree = ""; }; - 095CB762599A53A99A9ACC8DBC8C0591 /* IQKeyboardAppearanceConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardAppearanceConfiguration.swift; path = IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceConfiguration.swift; sourceTree = ""; }; - 097E3C45E430629A425D0B19A2A6E19C /* IQTextView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextView.swift; path = IQTextView/Classes/IQTextView.swift; sourceTree = ""; }; - 0A3628E425118DE571E2E1BE39F07123 /* MAPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolyline.h; path = MAMapKit.framework/Headers/MAPolyline.h; sourceTree = ""; }; - 0AA33750C13A35FA4DFFEA7D3E1D6F71 /* IQKeyboardToolbar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbar.swift; path = IQKeyboardToolbar/Classes/IQKeyboardToolbar.swift; sourceTree = ""; }; + 08B0092D87E9E61E28986DB591565BCF /* IQTextInputViewNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQTextInputViewNotification-Info.plist"; sourceTree = ""; }; + 0911AE053F5B9AE721FE34FCF6FF62F3 /* MAIndoorInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAIndoorInfo.h; path = MAMapKit.framework/Headers/MAIndoorInfo.h; sourceTree = ""; }; + 0A018EB4FFC926E5323B07BD2E9A0617 /* IQKeyboardToolbarManager+Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Debug.swift"; path = "IQKeyboardToolbarManager/Classes/Debug/IQKeyboardToolbarManager+Debug.swift"; sourceTree = ""; }; + 0AF4E684DF6CEBFE9C445B44A8ECFFF0 /* AMap3DMap-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMap3DMap-NO-IDFA.release.xcconfig"; sourceTree = ""; }; 0AFBD211AC6EFEB81A9519313236FABF /* Pods-suixinkanTests.simulatordebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkanTests.simulatordebug.xcconfig"; sourceTree = ""; }; - 0B4EA2289D2B8316CE956FF2268D0114 /* IQKeyboardToolbarConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarConfiguration.swift; path = IQKeyboardToolbarManager/Classes/Configuration/IQKeyboardToolbarConfiguration.swift; sourceTree = ""; }; - 0DE500824E8236FB34E7FC4EDF80F03E /* ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; sourceTree = ""; }; + 0BDEFEECE64EE79440F94BD4C6F34682 /* IQKeyboardToolbarManager+Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Deprecated.swift"; path = "IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager+Deprecated.swift"; sourceTree = ""; }; + 0C5373D6FEC052390EF0155BC139DA74 /* UMCommon.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMCommon.debug.xcconfig; sourceTree = ""; }; + 0CF2374471C2CEEC69E3FE0C9071A9D1 /* AMapNearbyUploadInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapNearbyUploadInfo.h; path = AMapSearchKit.framework/Headers/AMapNearbyUploadInfo.h; sourceTree = ""; }; + 0D48DDB2B1DA7335575EE4951A7C50B5 /* WechatOpenSDK-XCFramework-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "WechatOpenSDK-XCFramework-xcframeworks.sh"; sourceTree = ""; }; + 0D5ABBC99F3391C6F9A634D663E75422 /* IQTextView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextView-umbrella.h"; sourceTree = ""; }; 0DFD4541FF9DAA31A2FC2A7F6D03ED22 /* IQTextView */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQTextView; path = IQTextView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 0E3C72D0274B9F16DFC383EFE92E0ADD /* Pods-suixinkan-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-suixinkan-acknowledgements.markdown"; sourceTree = ""; }; - 0EFFE26759757EA17C439FCF5BC7A432 /* ResourceBundle-IQTextView-IQTextView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQTextView-IQTextView-Info.plist"; sourceTree = ""; }; - 0FDC889F8FBF31BC6E149B59F01A74FC /* IQKeyboardToolbarManager+Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Debug.swift"; path = "IQKeyboardToolbarManager/Classes/Debug/IQKeyboardToolbarManager+Debug.swift"; sourceTree = ""; }; - 10A7112588A375D793E11F0EB0414C81 /* AMapNearbySearchManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapNearbySearchManager.h; path = AMapSearchKit.framework/Headers/AMapNearbySearchManager.h; sourceTree = ""; }; - 10CADA6646C9AF13C983D13EAF7F5378 /* IQKeyboardToolbarManager.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbarManager.release.xcconfig; sourceTree = ""; }; + 0E768B108DBA5CC9149342EFAC582F86 /* MAMVTTileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMVTTileOverlay.h; path = MAMapKit.framework/Headers/MAMVTTileOverlay.h; sourceTree = ""; }; + 0EBDD9D77C00C1B6B42EF06289ED81E6 /* MAMVTTileOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMVTTileOverlayRenderer.h; path = MAMapKit.framework/Headers/MAMVTTileOverlayRenderer.h; sourceTree = ""; }; + 0F117F7702A857584C6E59BA2AEDDB42 /* MATerrainOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATerrainOverlay.h; path = MAMapKit.framework/Headers/MATerrainOverlay.h; sourceTree = ""; }; + 10A4A0EAA84E9607D6E867137638C0B7 /* IQKeyboardManager+Resign_Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Resign_Deprecated.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardManager+Resign_Deprecated.swift"; sourceTree = ""; }; + 10C3C8E54ECDED1E0C05111FCCEBE7BD /* IQScrollViewConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQScrollViewConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQScrollViewConfiguration.swift; sourceTree = ""; }; + 10CB1E0D11EC51CC988C1E27607C73A7 /* IQKeyboardAppearanceManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardAppearanceManager+Internal.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceManager+Internal.swift"; sourceTree = ""; }; + 10F845770A3EF5F5562CC88EA7BE4644 /* IQTextInputViewNotification.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextInputViewNotification.release.xcconfig; sourceTree = ""; }; 110BD425B6CAD6801539E2C6AB6E0662 /* IQKeyboardReturnManager-IQKeyboardReturnManager */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardReturnManager-IQKeyboardReturnManager"; path = IQKeyboardReturnManager.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 117548D53BE326B446EDB8C9CB64B68E /* MAParticleOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlayRenderer.h; path = MAMapKit.framework/Headers/MAParticleOverlayRenderer.h; sourceTree = ""; }; - 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbar.debug.xcconfig; sourceTree = ""; }; 120BD4C670EF00F4D5A40AA4B863A7AE /* IQKeyboardNotification-IQKeyboardNotification */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardNotification-IQKeyboardNotification"; path = IQKeyboardNotification.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 1290A656163D4189D4E745D4075B5FB9 /* IQTextInputViewNotification.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQTextInputViewNotification.modulemap; sourceTree = ""; }; + 140C24CF94B74B365353785AAD7781FE /* MAMapKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapKit.h; path = MAMapKit.framework/Headers/MAMapKit.h; sourceTree = ""; }; + 1432B7B9FB7E007C7E5FD5F9AB24198B /* IQKeyboardConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardConstants.swift; path = IQKeyboardCore/Classes/Constants/IQKeyboardConstants.swift; sourceTree = ""; }; + 14791DBACC3C3EBD8BF5D28B23927645 /* IQInvocation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQInvocation.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQInvocation.swift; sourceTree = ""; }; 15848DEC7727A809830E7F6FC1B6CE0F /* IQKeyboardReturnManager */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardReturnManager; path = IQKeyboardReturnManager.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 17275D4CF9F4D11ECE700DA0F9EFF0F8 /* AMapFoundationConst.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationConst.h; path = AMapFoundationKit.framework/Headers/AMapFoundationConst.h; sourceTree = ""; }; + 1677B1509CB109DB8CF29FB1D829AB16 /* AMapSearchObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchObj.h; path = AMapSearchKit.framework/Headers/AMapSearchObj.h; sourceTree = ""; }; + 18C05366BC9A77BCD2D3B2E774D2B722 /* IQKeyboardAppearanceConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardAppearanceConfiguration.swift; path = IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceConfiguration.swift; sourceTree = ""; }; + 196A9E4648F826867018FBE76BE4A27B /* MAPoiFilter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPoiFilter.h; path = MAMapKit.framework/Headers/MAPoiFilter.h; sourceTree = ""; }; + 19730C7CF0F446CA5D115BD82BD2903E /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+IQKeyboardManagerExtensionObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIScrollView+IQKeyboardManagerExtensionObjc.swift"; sourceTree = ""; }; + 1A3D978D914830388E3B2A7C1EC1B497 /* IQKeyboardToolbarManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardToolbarManager-Info.plist"; sourceTree = ""; }; + 1AC5BFA4C48724D90AA9C4DAB900E68B /* AMapCommonObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapCommonObj.h; path = AMapSearchKit.framework/Headers/AMapCommonObj.h; sourceTree = ""; }; + 1B199C4901242D30CD71A18A8E1D0008 /* AMapSearchKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapSearchKit.framework; sourceTree = ""; }; 1B7465A72120AF417FD5F1F34AD33AD4 /* Pods-suixinkanTests */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-suixinkanTests"; path = Pods_suixinkanTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 1C5A9BF8CC34F207CD736C514BE4E7A9 /* IQKeyboardToolbar-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbar-prefix.pch"; sourceTree = ""; }; - 1CCD1345A443E0DA94158F36DD898B5D /* MAMapCustomStyleOptions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapCustomStyleOptions.h; path = MAMapKit.framework/Headers/MAMapCustomStyleOptions.h; sourceTree = ""; }; - 1D1E7E265254C8003D8A5F7C75B7B539 /* AMapFoundation-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapFoundation-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; - 1E836A6EBA8DFB16F89B80B9E240181F /* MAAnnotationView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotationView.h; path = MAMapKit.framework/Headers/MAAnnotationView.h; sourceTree = ""; }; - 1EE9BE36A9708049EB256766BA9BA1C7 /* MAHeatMapVectorGridOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorGridOverlayRenderer.h; path = MAMapKit.framework/Headers/MAHeatMapVectorGridOverlayRenderer.h; sourceTree = ""; }; - 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbarManager.debug.xcconfig; sourceTree = ""; }; - 1FB7DE577ECCA1457268EA70E8DB4DAC /* JPush.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JPush.release.xcconfig; sourceTree = ""; }; - 205EB9340BF8698369EA925117E55975 /* MAOfflineItemCommonCity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemCommonCity.h; path = MAMapKit.framework/Headers/MAOfflineItemCommonCity.h; sourceTree = ""; }; - 2161AA772A6755F4D5D60BD723919D3B /* IQTextInputViewNotification.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextInputViewNotification.release.xcconfig; sourceTree = ""; }; - 21DDA7D033A7C2EC6807E087D05B8114 /* MARouteOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MARouteOverlay.h; path = MAMapKit.framework/Headers/MARouteOverlay.h; sourceTree = ""; }; - 22A1064CD5D18DA7AED4D67EE50B28CF /* MAOfflineItemMunicipality.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemMunicipality.h; path = MAMapKit.framework/Headers/MAOfflineItemMunicipality.h; sourceTree = ""; }; - 22FEBEF7276FDE9FC7112A3B40888E0D /* MAArcRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAArcRenderer.h; path = MAMapKit.framework/Headers/MAArcRenderer.h; sourceTree = ""; }; - 23AC67D8FE201A5D8B41262606782630 /* IQKeyboardToolbarManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardToolbarManager-Info.plist"; sourceTree = ""; }; - 244D954871A873D3E39E3064D852B516 /* UITableView+IndexPaths.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITableView+IndexPaths.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UITableView+IndexPaths.swift"; sourceTree = ""; }; - 24AB5750A05B063EA0DA3264D3001A19 /* IQKeyboardCore-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardCore-dummy.m"; sourceTree = ""; }; + 1E3A1BD1F31324B93B3AD539F716E8F8 /* IQTextInputViewInfo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewInfo.swift; path = IQTextInputViewNotification/Classes/IQTextInputViewInfo.swift; sourceTree = ""; }; + 1E8C6E85CBE09A894E15473B2ACFF25F /* IQKeyboardManagerSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardManagerSwift-umbrella.h"; sourceTree = ""; }; + 209A273DFA6CB48721E810D588DFD907 /* IQKeyboardNotification.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardNotification.swift; path = IQKeyboardNotification/Classes/IQKeyboardNotification.swift; sourceTree = ""; }; + 20C3CD12D4046B6427964786B1D7F200 /* AMapLocation-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapLocation-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; + 22536953ABA1BC0ED1B53F47CB71E415 /* AMapURLSearch.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearch.h; path = AMapFoundationKit.framework/Headers/AMapURLSearch.h; sourceTree = ""; }; + 22707E06938D36978342F7E04FBA3E33 /* MAMultiPointOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPointOverlay.h; path = MAMapKit.framework/Headers/MAMultiPointOverlay.h; sourceTree = ""; }; + 227609D6C20B15E2AF59CD06C201BD05 /* JPush-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "JPush-xcframeworks.sh"; sourceTree = ""; }; + 22DE40CC56B3E094BCE71F0843177D6C /* UITableView+IndexPaths.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UITableView+IndexPaths.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UITableView+IndexPaths.swift"; sourceTree = ""; }; + 233D93E73EE1D7FDB94D7B4E60B2F3E8 /* MAGroundOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGroundOverlayRenderer.h; path = MAMapKit.framework/Headers/MAGroundOverlayRenderer.h; sourceTree = ""; }; + 236F47C2E0820E91686A2967CD6F760F /* IQKeyboardResignHandler+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardResignHandler+Internal.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler+Internal.swift"; sourceTree = ""; }; + 2432EF98C1780CB63645C2E5DFBC4FE9 /* IQTextView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextView.swift; path = IQTextView/Classes/IQTextView.swift; sourceTree = ""; }; + 24B3915A78364E56EEE3E8AF146F6C8D /* MAUserLocation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAUserLocation.h; path = MAMapKit.framework/Headers/MAUserLocation.h; sourceTree = ""; }; + 24DA51F3F8BD4C7A91DADAC0C0F62284 /* MAMapAccessibilityIdentifier.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapAccessibilityIdentifier.h; path = MAMapKit.framework/Headers/MAMapAccessibilityIdentifier.h; sourceTree = ""; }; + 257BCE628592783EF9A5E519CCA2AC16 /* UIView+Responders.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Responders.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/UIView+Responders.swift"; sourceTree = ""; }; 259BA0551F8F105F54FDB30A416B26CF /* Pods-suixinkanTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-suixinkanTests-acknowledgements.plist"; sourceTree = ""; }; - 25A6DA65604634AA8B5F0DDCEEA348ED /* IQKeyboardReturnManager.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardReturnManager.modulemap; sourceTree = ""; }; - 2A2F83D6955E3DA7E55E81A83CDD1633 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardCore/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 2C0D83D64DA05F98461682B1107B1B4E /* MAPolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolylineRenderer.h; path = MAMapKit.framework/Headers/MAPolylineRenderer.h; sourceTree = ""; }; - 2C2A760C8FC191090821FFA8F92D1BA6 /* IQKeyboardManagerSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardManagerSwift.modulemap; sourceTree = ""; }; - 2C9513A9951DA3DCAB3F59B6DF22F7DE /* MATileOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATileOverlayRenderer.h; path = MAMapKit.framework/Headers/MATileOverlayRenderer.h; sourceTree = ""; }; - 2CEB1C0CC7AB3CE014A9DE0963476264 /* AMapSearchObjV1.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchObjV1.h; path = AMapSearchKit.framework/Headers/AMapSearchObjV1.h; sourceTree = ""; }; - 2E92D7304A8A78DAEF9943AB04A94116 /* MATerrainOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATerrainOverlay.h; path = MAMapKit.framework/Headers/MATerrainOverlay.h; sourceTree = ""; }; - 2EA10FEDDCB666E266D7A6F366B18E70 /* IQTextInputViewNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQTextInputViewNotification-Info.plist"; sourceTree = ""; }; - 30B02A6B0D6954EF43EFA3789887E608 /* AMapSearch-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapSearch-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; - 31D405B850F4246DA579A22B97251360 /* IQKeyboardToolbarManager+Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Deprecated.swift"; path = "IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager+Deprecated.swift"; sourceTree = ""; }; - 33005A729F5C775737278F40CCD77F9B /* AMapGeoFenceRegionObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceRegionObj.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceRegionObj.h; sourceTree = ""; }; + 260D101C410C813A89F178DA344A0C68 /* WechatOpenSDK.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = WechatOpenSDK.xcframework; sourceTree = ""; }; + 265515AE6516C3B325D5961DCA814A4A /* IQPlaceholderable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQPlaceholderable.swift; path = IQKeyboardToolbar/Placeholderable/IQPlaceholderable.swift; sourceTree = ""; }; + 2924FA1CCC272E301C4519279F9D672F /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQTextView/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 29CA1DFA0D80C1F474279442203CFED1 /* IQKeyboardCore-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardCore-Info.plist"; sourceTree = ""; }; + 2A0D3A9B9B1F461CCBB987BF6A148FF6 /* MATileOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATileOverlayRenderer.h; path = MAMapKit.framework/Headers/MATileOverlayRenderer.h; sourceTree = ""; }; + 2A1AAD1937CC0190BBCE194ABF7D67AF /* MAShape.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAShape.h; path = MAMapKit.framework/Headers/MAShape.h; sourceTree = ""; }; + 2AC0DACFAE7037AC2FF368ED2AA7CAF4 /* IQTextInputViewNotification.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQTextInputViewNotification.modulemap; sourceTree = ""; }; + 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardNotification.debug.xcconfig; sourceTree = ""; }; + 2EC7A621AB8CB362644A06190DB1224A /* MABaseEngineOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MABaseEngineOverlay.h; path = MAMapKit.framework/Headers/MABaseEngineOverlay.h; sourceTree = ""; }; + 301B8B14D78023F3DD043BCBFC93130A /* UIView+IQKeyboardManagerExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardManagerExtension.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIView+IQKeyboardManagerExtension.swift"; sourceTree = ""; }; + 302E2D627665AA33DFD324A6B9C22B43 /* IQTextInputViewNotification-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQTextInputViewNotification-dummy.m"; sourceTree = ""; }; + 30B0F6201C301BB01F37EE64F61B9983 /* MAPolygon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolygon.h; path = MAMapKit.framework/Headers/MAPolygon.h; sourceTree = ""; }; + 316ECFAE87C43CE3088F25F6FC8EF85F /* AMapSearchKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchKit.h; path = AMapSearchKit.framework/Headers/AMapSearchKit.h; sourceTree = ""; }; + 327DFA2871C3DF1F35DF6522BE6D856C /* MAOverlayPathRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlayPathRenderer.h; path = MAMapKit.framework/Headers/MAOverlayPathRenderer.h; sourceTree = ""; }; + 32933D0AEA1AF3988E2782401F17B221 /* IQKeyboardReturnManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardReturnManager.swift; path = IQKeyboardReturnManager/Classes/IQKeyboardReturnManager.swift; sourceTree = ""; }; + 32A64F71DA55AE99B5E87755F8EB43D9 /* IQKeyboardManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Internal.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Internal.swift"; sourceTree = ""; }; 3371B87E601C64001CB6429D6D94E799 /* Pods-suixinkanTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkanTests.debug.xcconfig"; sourceTree = ""; }; - 3412D26E7AC83AF43C7017AB142B719D /* UIView+RespondersObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+RespondersObjc.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/UIView+RespondersObjc.swift"; sourceTree = ""; }; - 346216373F9BE3698F9AEFCF076F23D2 /* IQKeyboardToolbarManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarManager.swift; path = IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager.swift; sourceTree = ""; }; - 34893074C574951651CAE0489239E848 /* IQInvocation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQInvocation.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQInvocation.swift; sourceTree = ""; }; - 357507030049F8711B5F2560C8BE96B0 /* AMapFoundation-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapFoundation-NO-IDFA.release.xcconfig"; sourceTree = ""; }; - 3583620D179FA09F78F1B6A29B53FD58 /* IQTitleBarButtonItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTitleBarButtonItem.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQTitleBarButtonItem.swift; sourceTree = ""; }; - 35890C70D80685FA114966E7CFFC00A1 /* IQTextView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextView-umbrella.h"; sourceTree = ""; }; - 36978964993FE13960686DDDD546D75B /* UMDevice-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMDevice-xcframeworks.sh"; sourceTree = ""; }; - 36FF598C0D9764E4AE87E840237BA75B /* AMapURLSearchType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearchType.h; path = AMapFoundationKit.framework/Headers/AMapURLSearchType.h; sourceTree = ""; }; - 3702B2DB8DB9F3674E7A72C7A38ED093 /* UMAPM.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMAPM.xcframework; path = UMAPM_2.0.7/UMAPM.xcframework; sourceTree = ""; }; - 3AAAF0891AEED7CA4AF20AE95070E340 /* AMapSearch-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapSearch-NO-IDFA.release.xcconfig"; sourceTree = ""; }; - 3BAA32FB751F6BB0FD65930595456ACA /* IQTextView.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextView.release.xcconfig; sourceTree = ""; }; - 3C48262702361091FBD5781B0F283DFE /* MAAnnotationMoveAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotationMoveAnimation.h; path = MAMapKit.framework/Headers/MAAnnotationMoveAnimation.h; sourceTree = ""; }; - 3E834D9058B55541C3FD1368754163BD /* MABaseOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MABaseOverlay.h; path = MAMapKit.framework/Headers/MABaseOverlay.h; sourceTree = ""; }; - 3E8FC0168ED476CD46810E7F95C0D5DD /* IQTextView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQTextView.modulemap; sourceTree = ""; }; - 3F2BA6FF47C66D4951D519C0085C948B /* AMapLocation-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapLocation-NO-IDFA.release.xcconfig"; sourceTree = ""; }; - 3F8A7B40939E68E709158AA51CF7B536 /* UMCommon.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMCommon.release.xcconfig; sourceTree = ""; }; - 401C0B5E9F8F1552898BFACFDEB8C41D /* IQKeyboardNotification.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardNotification.release.xcconfig; sourceTree = ""; }; - 407749166D56AC58042E7F89FDD486AD /* IQKeyboardManager+Appearance.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Appearance.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardManager+Appearance.swift"; sourceTree = ""; }; - 4250F6D1B4A49520719CF69AA9DB7171 /* IQTextView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextView-prefix.pch"; sourceTree = ""; }; - 4294DBAFDD1C869AB58195872ECBD63C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQTextView/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 45B6A705BCE14AB0BB965DAE2E740B34 /* MAMapStatus.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapStatus.h; path = MAMapKit.framework/Headers/MAMapStatus.h; sourceTree = ""; }; - 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardManagerSwift.debug.xcconfig; sourceTree = ""; }; - 484D6C3AFBCC01928BBCFE110C2A2F2C /* IQKeyboardReturnManager+UITextViewDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardReturnManager+UITextViewDelegate.swift"; path = "IQKeyboardReturnManager/Classes/Delegates/IQKeyboardReturnManager+UITextViewDelegate.swift"; sourceTree = ""; }; - 4AF4AEB75D89FF3F06FDE6A004EA9A23 /* UIViewController+ParentContainer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+ParentContainer.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIViewController+ParentContainer.swift"; sourceTree = ""; }; - 4BA1B67A9D955479AE8767AECFC1C544 /* WechatOpenSDK.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = WechatOpenSDK.xcframework; sourceTree = ""; }; - 4BEEC8D5C43F1F1BA28301F6F1167C87 /* IQKeyboardToolbarPlaceholderConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarPlaceholderConfiguration.swift; path = IQKeyboardToolbar/Classes/Placeholder/IQKeyboardToolbarPlaceholderConfiguration.swift; sourceTree = ""; }; - 4C0003B8890568226024C1462834BA44 /* UIView+Resign.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Resign.swift"; path = "IQKeyboardManagerSwift/Resign/UIKItExtensions/UIView+Resign.swift"; sourceTree = ""; }; - 4D43C0E4C0ABC428E9D5A5AE717B658E /* IQKeyboardManagerSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardManagerSwift-umbrella.h"; sourceTree = ""; }; - 4E1C0398739C8BEB724C448EE1DB0F6E /* UIView+ResignObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+ResignObjc.swift"; path = "IQKeyboardManagerSwift/Resign/UIKItExtensions/UIView+ResignObjc.swift"; sourceTree = ""; }; - 4F613BCF49ACE20A304727CA4EDA7E47 /* UICollectionView+IndexPaths.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UICollectionView+IndexPaths.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UICollectionView+IndexPaths.swift"; sourceTree = ""; }; - 4FEC114D3F1C5AE65CD441BD62650BB8 /* MATraceManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATraceManager.h; path = MAMapKit.framework/Headers/MATraceManager.h; sourceTree = ""; }; - 505941D186BD82B6E02B787E89B1C356 /* IQKeyboardCore-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardCore-Info.plist"; sourceTree = ""; }; - 50E0F97385361B4BF66AEF8C2A910F32 /* AMapCommonObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapCommonObj.h; path = AMapSearchKit.framework/Headers/AMapCommonObj.h; sourceTree = ""; }; - 50EEC35FAFA65B05F310CBA561C28927 /* AMapFoundationKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapFoundationKit.framework; sourceTree = ""; }; - 50F5A25E8047CF0286E9929854002827 /* MATileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATileOverlay.h; path = MAMapKit.framework/Headers/MATileOverlay.h; sourceTree = ""; }; - 51E60014F4AFF046CCAEFB326E631B53 /* IQKeyboardManagerSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardManagerSwift-Info.plist"; sourceTree = ""; }; - 527952C17AC8880F69799F25BAE08B43 /* IQKeyboardReturnManager-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardReturnManager-umbrella.h"; sourceTree = ""; }; + 3588749BFDB1A89C82B482E9E8C96622 /* MAParticleOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlayRenderer.h; path = MAMapKit.framework/Headers/MAParticleOverlayRenderer.h; sourceTree = ""; }; + 3642570B5038C4A4B1B4F2D100D8D750 /* UIView+RespondersObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+RespondersObjc.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/UIView+RespondersObjc.swift"; sourceTree = ""; }; + 3743F40B27DFFA0C0530479FFB587691 /* IQKeyboardReturnManager.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardReturnManager.release.xcconfig; sourceTree = ""; }; + 37ED2C21C1E1ACCC106AA7C2D98CD280 /* IQKeyboardToolbar.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbar.release.xcconfig; sourceTree = ""; }; + 38EBFCECEDF6B0177C19F36F20D9615F /* MAPolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolylineRenderer.h; path = MAMapKit.framework/Headers/MAPolylineRenderer.h; sourceTree = ""; }; + 391A9DEE79A34E4C8E57A0B9707F02BA /* jcore-noidfa-ios-5.4.2.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = "jcore-noidfa-ios-5.4.2.xcframework"; sourceTree = ""; }; + 3AF86EA711AAF037D15AB7371496C2A1 /* IQKeyboardToolbar-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbar-prefix.pch"; sourceTree = ""; }; + 3CB214999237C638FFC3DB3AE121DAD5 /* IQKeyboardManager+Appearance.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Appearance.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardManager+Appearance.swift"; sourceTree = ""; }; + 3DDF6B961018C08613D8A0D837046BF1 /* AMapLocationKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationKit.h; path = AMapLocationKit.framework/Headers/AMapLocationKit.h; sourceTree = ""; }; + 3EE1C67A22E73C71C54EF9A0E5E98061 /* MACustomBuildingOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomBuildingOverlay.h; path = MAMapKit.framework/Headers/MACustomBuildingOverlay.h; sourceTree = ""; }; + 3F4B4471F801A901C847415B11010539 /* AMapUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapUtility.h; path = AMapFoundationKit.framework/Headers/AMapUtility.h; sourceTree = ""; }; + 3F86ED90539606ECEE24AB70887270E4 /* IQKeyboardCore.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardCore.modulemap; sourceTree = ""; }; + 3FBF7D60272DE7F04F608847182770D1 /* MAMapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MAMapKit.framework; sourceTree = ""; }; + 40CABFE86EA5475F61478E0125A87C7B /* MAHeatMapVectorOverlayRender.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorOverlayRender.h; path = MAMapKit.framework/Headers/MAHeatMapVectorOverlayRender.h; sourceTree = ""; }; + 40D0A74BB726A2A8248C9847466D9CC1 /* Array+Sort.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Array+Sort.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/Array+Sort.swift"; sourceTree = ""; }; + 434E0C6C570DC80ADDE76B4EA8DDFB61 /* ResourceBundle-IQTextView-IQTextView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQTextView-IQTextView-Info.plist"; sourceTree = ""; }; + 43E338487B2FD0168DB6C36843190F0E /* MAAnnotationMoveAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotationMoveAnimation.h; path = MAMapKit.framework/Headers/MAAnnotationMoveAnimation.h; sourceTree = ""; }; + 46743810A3D4B51DE28F0DE3BB6D5497 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardToolbar/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 470A92D6F1D61939BF38409D63A4DD65 /* AMapLocationKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapLocationKit.framework; sourceTree = ""; }; + 47B29EC516D4DA9C641873A4E761DC16 /* MAHeatMapVectorGridOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorGridOverlayRenderer.h; path = MAMapKit.framework/Headers/MAHeatMapVectorGridOverlayRenderer.h; sourceTree = ""; }; + 48303C21DF2C6D474BE4A0AADEE9E16C /* AMapSearch-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapSearch-NO-IDFA.release.xcconfig"; sourceTree = ""; }; + 4BD5CE09F44FA76C300BAFE993574AC6 /* IQKeyboardToolbarManager-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbarManager-umbrella.h"; sourceTree = ""; }; + 4C97F1279DE48FCF5536191CB5FDC744 /* IQKeyboardManager+Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Debug.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/Debug/IQKeyboardManager+Debug.swift"; sourceTree = ""; }; + 4CA5E02432572BEC3D63E70BDFA76230 /* VolcEngineRTC.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = VolcEngineRTC.xcframework; sourceTree = ""; }; + 4CBFDC425AA2C8AD908DA6ABC7D368DD /* IQDeepResponderContainerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQDeepResponderContainerView.swift; path = IQKeyboardToolbarManager/Classes/IQDeepResponderContainerView.swift; sourceTree = ""; }; + 4CDA0B7868683A656CA1A57A373E2844 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardToolbarManager/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 4E1E716A01DDF5D7844AD4F6DD359924 /* UMAPM.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMAPM.debug.xcconfig; sourceTree = ""; }; + 51367A9A6774AE911676FEE589F4D4E9 /* AMap3DMap-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMap3DMap-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; 52F75B5EC268243B9BFE349B05E52A20 /* Pods-suixinkan-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-suixinkan-umbrella.h"; sourceTree = ""; }; - 532F94C9C97C09FF016A3ABB96B2DB11 /* IQKeyboardManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Internal.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Internal.swift"; sourceTree = ""; }; - 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardReturnManager.debug.xcconfig; sourceTree = ""; }; - 53B577B7CE9C0F08BED5686A89801EE4 /* IQKeyboardCore-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardCore-prefix.pch"; sourceTree = ""; }; - 54062D69C3F5F955058687496BC9B5C1 /* MAMapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MAMapKit.framework; sourceTree = ""; }; - 5411F5B198CFD957C9CD536AB2D54AA5 /* MAPinAnnotationView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPinAnnotationView.h; path = MAMapKit.framework/Headers/MAPinAnnotationView.h; sourceTree = ""; }; - 569001181B8BE3D065C344C62500F175 /* MAHeatMapVectorOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapVectorOverlay.h; sourceTree = ""; }; - 56E9537047D72ABA1C9695C95A4AF843 /* UMAPM.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMAPM.debug.xcconfig; sourceTree = ""; }; - 582CAD303F8413036F3444028D850F4B /* MAPoiFilter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPoiFilter.h; path = MAMapKit.framework/Headers/MAPoiFilter.h; sourceTree = ""; }; - 58653AFE6B358C639F97F8975BAB3FC7 /* MAMapVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapVersion.h; path = MAMapKit.framework/Headers/MAMapVersion.h; sourceTree = ""; }; - 59FC7750B336D68DAD91386AFEBB3AEF /* MAIndoorInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAIndoorInfo.h; path = MAMapKit.framework/Headers/MAIndoorInfo.h; sourceTree = ""; }; + 5596FE4C18E829ADBEECC5ACDF02EB31 /* MATraceLocation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATraceLocation.h; path = MAMapKit.framework/Headers/MATraceLocation.h; sourceTree = ""; }; + 562049081AA7BA85836F65F0154A41E8 /* MAMultiTexturePolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiTexturePolylineRenderer.h; path = MAMapKit.framework/Headers/MAMultiTexturePolylineRenderer.h; sourceTree = ""; }; + 5629E0F117BEA473144E2420C84A1A0D /* AMapFoundationKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapFoundationKit.framework; sourceTree = ""; }; + 57412EC3570F1A67F503074046DFE7F5 /* MAMapStatus.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapStatus.h; path = MAMapKit.framework/Headers/MAMapStatus.h; sourceTree = ""; }; + 5881F9C9310C4D9AFCE6C492C453F4E7 /* MABaseOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MABaseOverlay.h; path = MAMapKit.framework/Headers/MABaseOverlay.h; sourceTree = ""; }; + 5882792FE746E1E359A5AD3DB4483351 /* MAPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolyline.h; path = MAMapKit.framework/Headers/MAPolyline.h; sourceTree = ""; }; + 58DC8D42E44C8F1B5737553B617A916E /* IQKeyboardReturnManager-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardReturnManager-prefix.pch"; sourceTree = ""; }; + 5A1D98DED6CFD3022E8FC075FA491615 /* IQKeyboardNotification-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardNotification-dummy.m"; sourceTree = ""; }; + 5AF4FC451B12D40C36F4824295CF94E1 /* AMapURLSearchConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearchConfig.h; path = AMapFoundationKit.framework/Headers/AMapURLSearchConfig.h; sourceTree = ""; }; + 5B91072D08BB3F63162262295825C5FF /* IQKeyboardToolbarManager.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbarManager.release.xcconfig; sourceTree = ""; }; 5BD109278933E8C2F269E5DCEC3A5376 /* Pods-suixinkan */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-suixinkan"; path = Pods_suixinkan.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5EAF6B62A82569F4767893AB4F1DEEF4 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardManagerSwift/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 5F800AC82DC0EBE287853A0A0FB4F5DF /* AMapSearchAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchAPI.h; path = AMapSearchKit.framework/Headers/AMapSearchAPI.h; sourceTree = ""; }; - 603C9655C429A8AFD3A2ABB90354F0D3 /* IQTextView+Placeholderable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQTextView+Placeholderable.swift"; path = "IQTextView/Classes/IQTextView+Placeholderable.swift"; sourceTree = ""; }; - 60631CBB35BA793CAA9E46A8F1CD243C /* IQRootControllerConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQRootControllerConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQRootControllerConfiguration.swift; sourceTree = ""; }; - 606C5CFB2DD86DA601C36633BB6E9227 /* MAGeometry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGeometry.h; path = MAMapKit.framework/Headers/MAGeometry.h; sourceTree = ""; }; - 607850C8AE036A90433104E7F0697F47 /* MATerrainOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATerrainOverlayRenderer.h; path = MAMapKit.framework/Headers/MATerrainOverlayRenderer.h; sourceTree = ""; }; - 61334938998DD56FB7176AA67E7796CE /* MACustomBuildingOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomBuildingOverlay.h; path = MAMapKit.framework/Headers/MACustomBuildingOverlay.h; sourceTree = ""; }; - 629DD1DA2A6BB7211D4AA2CDC4ADE1BE /* IQKeyboardReturnManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardReturnManager.swift; path = IQKeyboardReturnManager/Classes/IQKeyboardReturnManager.swift; sourceTree = ""; }; - 6388414814252F565A677CD3D17EC014 /* UIView+IQKeyboardManagerExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardManagerExtension.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIView+IQKeyboardManagerExtension.swift"; sourceTree = ""; }; + 5D0EF49E78A574D04EBCC72388BC9337 /* IQKeyboardManagerSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardManagerSwift-prefix.pch"; sourceTree = ""; }; + 5DA99C08528E3C22E42D003865FEC09D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardManagerSwift/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 5DB63DD174AA36A665DF6EFDF91B9E37 /* IQKeyboardToolbarConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarConstants.swift; path = IQKeyboardToolbarManager/Classes/Constants/IQKeyboardToolbarConstants.swift; sourceTree = ""; }; + 5DD839E94220ED93D5D56D7325ACB4AF /* IQActiveConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQActiveConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQActiveConfiguration.swift; sourceTree = ""; }; + 608C4908E4BB55A6CB186C5C994459F5 /* AMapGeoFenceRegionObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceRegionObj.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceRegionObj.h; sourceTree = ""; }; + 61E7B525F895021509512D66E237C998 /* MATouchPoi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATouchPoi.h; path = MAMapKit.framework/Headers/MATouchPoi.h; sourceTree = ""; }; + 6243BFD239C17E85134CCB10FE9FAAC0 /* MARouteOverlayModel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MARouteOverlayModel.h; path = MAMapKit.framework/Headers/MARouteOverlayModel.h; sourceTree = ""; }; + 6359B1281832A0C2267C0D4A90CE1416 /* IQKeyboardNotification-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardNotification-prefix.pch"; sourceTree = ""; }; + 643D01EDC860F2BAF98169C2F246AC5C /* MAOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlayRenderer.h; path = MAMapKit.framework/Headers/MAOverlayRenderer.h; sourceTree = ""; }; 6464447070DB8A1E9C56338928A9DC0F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 647AECC2271497CFBB36311165FC0BF0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 649233ED6CEAD11508C3FEC87609ADF7 /* AMap3DMap-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMap3DMap-NO-IDFA.release.xcconfig"; sourceTree = ""; }; - 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardCore.debug.xcconfig; sourceTree = ""; }; - 6753350B51E82A0FE23F430A0B57E601 /* IQKeyboardToolbarManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Internal.swift"; path = "IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager+Internal.swift"; sourceTree = ""; }; - 6759C2C05A896EEF5A902F54ED815458 /* IQKeyboardManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardManager.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager.swift; sourceTree = ""; }; + 655D6F4504BA9F7B8E38F5DF66CEDA16 /* UMDevice-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMDevice-xcframeworks.sh"; sourceTree = ""; }; + 659D0CF1C22A308AA4BBC12C690EFF76 /* MACircleRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACircleRenderer.h; path = MAMapKit.framework/Headers/MACircleRenderer.h; sourceTree = ""; }; + 65C4C42FF3915092153F921CC192177D /* IQTextInputViewNotification.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewNotification.swift; path = IQTextInputViewNotification/Classes/IQTextInputViewNotification.swift; sourceTree = ""; }; + 6638AB504D084AEDF76BD13D6B411686 /* IQKeyboardManager+ActiveConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ActiveConfiguration.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+ActiveConfiguration.swift"; sourceTree = ""; }; + 66BB860BB0ACF1B74DF2E0C0EC1BFF82 /* ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; sourceTree = ""; }; + 672521CE7AABAB88CAC5DA46DE3917EE /* UIView+ResignObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+ResignObjc.swift"; path = "IQKeyboardManagerSwift/Resign/UIKItExtensions/UIView+ResignObjc.swift"; sourceTree = ""; }; + 679D26F54B1AA81CAB8B96B96A4E1340 /* IQKeyboardToolbar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbar.swift; path = IQKeyboardToolbar/Classes/IQKeyboardToolbar.swift; sourceTree = ""; }; 67DC68595F07F473A69296FC2DD4E016 /* Pods-suixinkan.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkan.debug.xcconfig"; sourceTree = ""; }; - 68C6374ADCD5FD0BC332791ABBCF4F8C /* AMapUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapUtility.h; path = AMapFoundationKit.framework/Headers/AMapUtility.h; sourceTree = ""; }; - 69121CFF53D9CEC42CE44CF34F36F7B5 /* IQKeyboardNotification.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardNotification.modulemap; sourceTree = ""; }; + 684810A159CC0F5F54EC89B87AC327C8 /* MAMapSnapshot.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapSnapshot.h; path = MAMapKit.framework/Headers/MAMapSnapshot.h; sourceTree = ""; }; + 6899E9B61D97F7A88D1AE73011313A21 /* MAGeodesicPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGeodesicPolyline.h; path = MAMapKit.framework/Headers/MAGeodesicPolyline.h; sourceTree = ""; }; + 69234E4D1FF97AA77BC3546B03B96407 /* IQKeyboardManager+Resign.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Resign.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardManager+Resign.swift"; sourceTree = ""; }; + 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextInputViewNotification.debug.xcconfig; sourceTree = ""; }; 696323FAE4B9FD026A77BAC09D3D5241 /* Pods-suixinkanTests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-suixinkanTests.modulemap"; sourceTree = ""; }; - 6AE1DF2DC452D2788B6E2B8392A48BF1 /* JCore-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "JCore-xcframeworks.sh"; sourceTree = ""; }; - 6AE8EF33DA600DB0EFAC9BBD00770D02 /* ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; sourceTree = ""; }; - 6AEC002400E17D448789C96C9A991A76 /* IQKeyboardToolbarConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarConstants.swift; path = IQKeyboardToolbarManager/Classes/Constants/IQKeyboardToolbarConstants.swift; sourceTree = ""; }; - 6CD275A609F620EB41456FBE469BDA8C /* IQKeyboardInfo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardInfo.swift; path = IQKeyboardNotification/Classes/IQKeyboardInfo.swift; sourceTree = ""; }; - 6D59C7309AD33EDAE93D4959CC364A32 /* IQKeyboardToolbarManager.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardToolbarManager.modulemap; sourceTree = ""; }; - 6E0BA3B04A92A056CAB8754E064C13C3 /* AMap.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = AMap.bundle; path = MAMapKit.framework/AMap.bundle; sourceTree = ""; }; - 6E17159F496580E082DD42D59F547B39 /* MAPathShowRange.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPathShowRange.h; path = MAMapKit.framework/Headers/MAPathShowRange.h; sourceTree = ""; }; + 69916FBCA731F366F9F2550E789E9D24 /* MATileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATileOverlay.h; path = MAMapKit.framework/Headers/MATileOverlay.h; sourceTree = ""; }; + 6B07A961A98509C930FDC98A9FA8544E /* AMapLocationRegionObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationRegionObj.h; path = AMapLocationKit.framework/Headers/AMapLocationRegionObj.h; sourceTree = ""; }; + 6B197BD93E8C7BDB71A2A0DDB792C0AE /* MAOfflineMap.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineMap.h; path = MAMapKit.framework/Headers/MAOfflineMap.h; sourceTree = ""; }; + 6B2DC97D0BB8EBFBE037BB8888E5152A /* UICollectionView+IndexPaths.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UICollectionView+IndexPaths.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UICollectionView+IndexPaths.swift"; sourceTree = ""; }; + 6B653B098FA73A44AE03CCB910AE8FBA /* MAPointAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPointAnnotation.h; path = MAMapKit.framework/Headers/MAPointAnnotation.h; sourceTree = ""; }; + 6BB647CC374FB13666973FCF51E8A4AC /* IQKeyboardToolbarManager-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardToolbarManager-dummy.m"; sourceTree = ""; }; + 6E3056FA5A7491EB6B9168F4DCB89CF8 /* MARouteOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MARouteOverlay.h; path = MAMapKit.framework/Headers/MARouteOverlay.h; sourceTree = ""; }; 6E897F35E5E27028AC58B14B552FBC8D /* IQKeyboardCore-IQKeyboardCore */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardCore-IQKeyboardCore"; path = IQKeyboardCore.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 6E9F7234A3BF2BFA0BC19D0319D62938 /* WechatOpenSDK-XCFramework-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "WechatOpenSDK-XCFramework-xcframeworks.sh"; sourceTree = ""; }; - 6EFF2F85A43C79FF157025B650597669 /* AMapSearchObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchObj.h; path = AMapSearchKit.framework/Headers/AMapSearchObj.h; sourceTree = ""; }; - 70AF23D692EBDAA8E2E52376A065A97C /* AMapServices.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapServices.h; path = AMapFoundationKit.framework/Headers/AMapServices.h; sourceTree = ""; }; - 70E7C93840EABBEDEEF083F6B142029D /* UIView+Parent.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Parent.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIView+Parent.swift"; sourceTree = ""; }; - 713CC318C38869C97FB47759DA618B4B /* MAOfflineMapViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineMapViewController.h; path = MAMapKit.framework/Headers/MAOfflineMapViewController.h; sourceTree = ""; }; - 72047D59C9D0EA03C1447E76203105F5 /* IQKeyboardManagerSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardManagerSwift-dummy.m"; sourceTree = ""; }; - 736B201311554090BB7665BFF33F0B0D /* IQKeyboardManager+Position.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Position.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift"; sourceTree = ""; }; - 73B4C7AD499AF7BCC14C3DC4248A326F /* IQKeyboardToolbarManager+Toolbar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Toolbar.swift"; path = "IQKeyboardToolbarManager/Classes/Toolbar/IQKeyboardToolbarManager+Toolbar.swift"; sourceTree = ""; }; - 73F4A4C2EB0A4E49EC7BFE3DACD2CCD5 /* IQKeyboardAppearanceManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardAppearanceManager.swift; path = IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceManager.swift; sourceTree = ""; }; + 6ECF9275B52B7B8B05B01B6D2E53EC02 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardReturnManager+UITextFieldDelegate.swift"; path = "IQKeyboardReturnManager/Classes/Delegates/IQKeyboardReturnManager+UITextFieldDelegate.swift"; sourceTree = ""; }; + 6FA0B342A73D28669E2FA554F3636EDD /* IQKeyboardResignHandler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardResignHandler.swift; path = IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift; sourceTree = ""; }; + 6FC842F5579AC5F9E36B02804980FBA5 /* AMapFoundationVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationVersion.h; path = AMapFoundationKit.framework/Headers/AMapFoundationVersion.h; sourceTree = ""; }; + 7035E4745377EBEB3C787811A19BCC0E /* AMapNearbySearchManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapNearbySearchManager.h; path = AMapSearchKit.framework/Headers/AMapNearbySearchManager.h; sourceTree = ""; }; + 7055CF7462CB8E3DDB9CB84914F0D047 /* MACustomCalloutView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomCalloutView.h; path = MAMapKit.framework/Headers/MACustomCalloutView.h; sourceTree = ""; }; + 7067197E3E18A6472D83E1BF20A2DF39 /* MACircle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACircle.h; path = MAMapKit.framework/Headers/MACircle.h; sourceTree = ""; }; + 707DA09A7E71877897FA79B5D0851453 /* MAMapView+Resource.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "MAMapView+Resource.h"; path = "MAMapKit.framework/Headers/MAMapView+Resource.h"; sourceTree = ""; }; + 7148DF765E0E3BDB3E1DA0BD4CDF9FAE /* IQKeyboardToolbarManager.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardToolbarManager.modulemap; sourceTree = ""; }; + 721D4CFBC2A333A24E9AFFB201CFE629 /* MAOfflineItemCommonCity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemCommonCity.h; path = MAMapKit.framework/Headers/MAOfflineItemCommonCity.h; sourceTree = ""; }; + 72F8FB18750917203BE32320D47C16AB /* MALineDrawType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MALineDrawType.h; path = MAMapKit.framework/Headers/MALineDrawType.h; sourceTree = ""; }; + 73BC53E8C93DDB8078EB3832DF5645C3 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ToolbarManagerDeprecated.swift"; path = "IQKeyboardManagerSwift/IQKeyboardToolbarManager/IQKeyboardManager+ToolbarManagerDeprecated.swift"; sourceTree = ""; }; + 74C0A97F8A621324A3DABEF21272551D /* MACustomBuildingOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomBuildingOverlayRenderer.h; path = MAMapKit.framework/Headers/MACustomBuildingOverlayRenderer.h; sourceTree = ""; }; 775B1614748F1EDCA3D01AFDD894BCC0 /* Pods-suixinkanTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-suixinkanTests-acknowledgements.markdown"; sourceTree = ""; }; - 778FA22D4BEBBF59A58346CBF997FEA5 /* IQKeyboardManager+Resign_Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Resign_Deprecated.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardManager+Resign_Deprecated.swift"; sourceTree = ""; }; - 77A5D875250BB2847A6580EEC009BA4F /* AMapLocationKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapLocationKit.framework; sourceTree = ""; }; - 7824F2A9F1A4882E8AC01FC525F509DA /* IQTextInputViewNotification-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQTextInputViewNotification-dummy.m"; sourceTree = ""; }; - 7876059E50A29A0D55B20586DAFF3B7D /* IQKeyboardToolbarManager+Action.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Action.swift"; path = "IQKeyboardToolbarManager/Classes/Toolbar/IQKeyboardToolbarManager+Action.swift"; sourceTree = ""; }; - 7AF35518DCE4701B077F7D5E23122BAD /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardToolbar/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 7BE8D3F5CFB6098660E108950BB18879 /* AMapNearbyUploadInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapNearbyUploadInfo.h; path = AMapSearchKit.framework/Headers/AMapNearbyUploadInfo.h; sourceTree = ""; }; - 7D9F044857F251A31321EF21554EB709 /* MAOfflineItem.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItem.h; path = MAMapKit.framework/Headers/MAOfflineItem.h; sourceTree = ""; }; - 7DFF1E9E404B66479E1C8127D024F8A5 /* MAPolygon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolygon.h; path = MAMapKit.framework/Headers/MAPolygon.h; sourceTree = ""; }; - 7E0A31927D7E41BFDD984506DC0F5E99 /* IQTextInputView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputView.swift; path = IQKeyboardCore/Classes/IQTextInputView.swift; sourceTree = ""; }; - 7E69BA4197634200C8605805B0C5F57A /* MABaseEngineOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MABaseEngineOverlay.h; path = MAMapKit.framework/Headers/MABaseEngineOverlay.h; sourceTree = ""; }; - 7ED417277D89101687DEA83AAF66F65C /* UIView+IQKeyboardExtensionDeprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtensionDeprecated.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtensionDeprecated.swift"; sourceTree = ""; }; - 7F8DC7287225EB89CFFDCA5DD231B629 /* IQKeyboardNotification-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardNotification-dummy.m"; sourceTree = ""; }; - 809AD13D76C4DBC1165D5E2F33B4A13A /* MAMultiPoint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPoint.h; path = MAMapKit.framework/Headers/MAMultiPoint.h; sourceTree = ""; }; + 78E5C4BC9F421F0030A47836705FE8C7 /* MAAnnotationView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotationView.h; path = MAMapKit.framework/Headers/MAAnnotationView.h; sourceTree = ""; }; + 798B5EDBEA0B0097A890F0F469E84E2E /* JCore-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "JCore-xcframeworks.sh"; sourceTree = ""; }; + 7B4F4930A148CCA0AFF2A6240DF36B28 /* IQTextView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextView-prefix.pch"; sourceTree = ""; }; + 7CE0E04517BD2363A893C1E85B4B248F /* IQKeyboardCore.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardCore.release.xcconfig; sourceTree = ""; }; + 7E638915ECBDA2C39BDCFBACBDC0E28C /* MAHeatMapVectorGridOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorGridOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapVectorGridOverlay.h; sourceTree = ""; }; + 7E9328F77C695432E06E224ECFC6F118 /* IQKeyboardManager+Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Deprecated.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/Deprecated/IQKeyboardManager+Deprecated.swift"; sourceTree = ""; }; + 7F2AB1871CDCA81B98E67F2845433559 /* IQKeyboardReturnManager-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardReturnManager-dummy.m"; sourceTree = ""; }; + 7F68AAFC87ADF8F019EE78C7BC767213 /* IQKeyboardManagerSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardManagerSwift-dummy.m"; sourceTree = ""; }; + 7F9148481791CA6ACA5381910B5FD141 /* MAPinAnnotationView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPinAnnotationView.h; path = MAMapKit.framework/Headers/MAPinAnnotationView.h; sourceTree = ""; }; + 7F9BF1DD8D3901D2CB56396040F28392 /* IQTextView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQTextView-dummy.m"; sourceTree = ""; }; + 7FC0495E836EAA9DCCF5B24BA4F96574 /* JCore.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JCore.debug.xcconfig; sourceTree = ""; }; + 8075CD247EEBD97388B72593387ED07E /* AMapURLSearchType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearchType.h; path = AMapFoundationKit.framework/Headers/AMapURLSearchType.h; sourceTree = ""; }; 80A40EDA3AF0499BDBCFF09467BB49AD /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardToolbarManager-IQKeyboardToolbarManager"; path = IQKeyboardToolbarManager.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; + 80B97563DD9EE42FB83F21CD7ECA8893 /* MAMapView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapView.h; path = MAMapKit.framework/Headers/MAMapView.h; sourceTree = ""; }; + 81662341279CC66CC14E37D7694CCCC3 /* IQTextInputView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputView.swift; path = IQKeyboardCore/Classes/IQTextInputView.swift; sourceTree = ""; }; + 83448C8FCF4765056F1A35E450B655E6 /* UMCommon.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMCommon.release.xcconfig; sourceTree = ""; }; + 836E8DA0AB39B894F56601BB518502FC /* AMapServices.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapServices.h; path = AMapFoundationKit.framework/Headers/AMapServices.h; sourceTree = ""; }; + 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextView.debug.xcconfig; sourceTree = ""; }; 847044E56CBBCE1235A6F3CEF3F9F607 /* IQTextView-IQTextView */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQTextView-IQTextView"; path = IQTextView.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 85547E7B6FFBB52AB98F82AEB49717FA /* JPush-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "JPush-xcframeworks.sh"; sourceTree = ""; }; - 86051726F35A59F1AD195C5B74BCB853 /* MAShape.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAShape.h; path = MAMapKit.framework/Headers/MAShape.h; sourceTree = ""; }; - 8608C61CF8BA1D5CA044FF84821D9635 /* MACircleRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACircleRenderer.h; path = MAMapKit.framework/Headers/MACircleRenderer.h; sourceTree = ""; }; - 87CC2842EDD9352F470FE692A9B91AA5 /* UIView+ParentObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+ParentObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIView+ParentObjc.swift"; sourceTree = ""; }; - 8A4955BD2D6B837C1AFE332DC02F229B /* MAGroundOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGroundOverlayRenderer.h; path = MAMapKit.framework/Headers/MAGroundOverlayRenderer.h; sourceTree = ""; }; - 8B634D0C8582340A26DF881074996135 /* IQKeyboardCore-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardCore-umbrella.h"; sourceTree = ""; }; - 8B684CF1599F22DF5238BEF46E8CD746 /* IQKeyboardManager+Resign.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Resign.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardManager+Resign.swift"; sourceTree = ""; }; - 8BE9B5D6111FAF1BBAD248C3AFE07C26 /* MACircle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACircle.h; path = MAMapKit.framework/Headers/MACircle.h; sourceTree = ""; }; - 8C3C1260F5F1828322AF349A37E45410 /* MAGeodesicPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGeodesicPolyline.h; path = MAMapKit.framework/Headers/MAGeodesicPolyline.h; sourceTree = ""; }; - 8CC78E637C86F7BC30C4C3A669049F79 /* AMapLocationManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationManager.h; path = AMapLocationKit.framework/Headers/AMapLocationManager.h; sourceTree = ""; }; - 8D6DCAE6D0330A20D29082667233E33C /* WechatOpenSDK-XCFramework.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "WechatOpenSDK-XCFramework.release.xcconfig"; sourceTree = ""; }; + 869DEE3EDA8F46435177FF98ED73A2B3 /* IQTextView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQTextView-Info.plist"; sourceTree = ""; }; + 86B6AC948C427FB67A9A40BF124DA621 /* MAArcRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAArcRenderer.h; path = MAMapKit.framework/Headers/MAArcRenderer.h; sourceTree = ""; }; + 871C4D1834D14518E50DD97F10BCD43C /* IQKeyboardReturnManager.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardReturnManager.modulemap; sourceTree = ""; }; + 8B6BEA1893E1C03156815824B5025A47 /* IQKeyboardManagerSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardManagerSwift-Info.plist"; sourceTree = ""; }; + 8CE213F570E6C96F86CBD8CBE081B8C9 /* AMapGeoFenceError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceError.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceError.h; sourceTree = ""; }; + 8D7C63D6DD7621AF727A8980247D8D0B /* UMAPM-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMAPM-xcframeworks.sh"; sourceTree = ""; }; 8D8069D3964814114ACEC3084C010B59 /* IQKeyboardManagerSwift-IQKeyboardManagerSwift */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardManagerSwift-IQKeyboardManagerSwift"; path = IQKeyboardManagerSwift.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - 8E593660B088EDD170E5B1B7CBEA3509 /* IQTextInputViewInfo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewInfo.swift; path = IQTextInputViewNotification/Classes/IQTextInputViewInfo.swift; sourceTree = ""; }; - 8EEE1F5B32FF5F35E4F7CC0F55C1B41F /* AMapFoundationKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationKit.h; path = AMapFoundationKit.framework/Headers/AMapFoundationKit.h; sourceTree = ""; }; - 930508646A6ED3948BD91D3EC83E0968 /* IQKeyboardResignHandler+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardResignHandler+Internal.swift"; path = "IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler+Internal.swift"; sourceTree = ""; }; - 930E9B1B194A403F3F0A4F95FAF2427A /* AMapLocation-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapLocation-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; - 94A40C00F73E0E81F1EC934D99316B7C /* MAMultiColoredPolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiColoredPolylineRenderer.h; path = MAMapKit.framework/Headers/MAMultiColoredPolylineRenderer.h; sourceTree = ""; }; - 9517DFB02CF19FA4C175500597CC473D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardReturnManager/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 95A231D1CAE57B03E3B3AAE66310ABC0 /* AMapGeoFenceManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceManager.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceManager.h; sourceTree = ""; }; - 96A7CDFC8C50B2921E48D845688BD449 /* MAGroundOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGroundOverlay.h; path = MAMapKit.framework/Headers/MAGroundOverlay.h; sourceTree = ""; }; - 97671A95678EAE5829CEE22F5A4ED288 /* IQTextInputViewNotification.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewNotification.swift; path = IQTextInputViewNotification/Classes/IQTextInputViewNotification.swift; sourceTree = ""; }; - 98A819F75A0DF55BD766887A9A43232E /* AMapLocationKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationKit.h; path = AMapLocationKit.framework/Headers/AMapLocationKit.h; sourceTree = ""; }; - 992554533A232CEC66E7397532159E20 /* IQKeyboardManager+ToolbarManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ToolbarManager.swift"; path = "IQKeyboardManagerSwift/IQKeyboardToolbarManager/IQKeyboardManager+ToolbarManager.swift"; sourceTree = ""; }; - 9A9A9140CB6ADD033768BB60CEA72E7A /* IQKeyboardNotification-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardNotification-umbrella.h"; sourceTree = ""; }; - 9AE61E9DC82B9FDCC6C66EA02C64CED7 /* IQKeyboardReturnManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardReturnManager-Info.plist"; sourceTree = ""; }; + 8F30991F76663516B678C382E5C3778C /* UIView+IQKeyboardExtensionDeprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtensionDeprecated.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtensionDeprecated.swift"; sourceTree = ""; }; + 90CEB809A08ADDFF65DE3E2CE6210120 /* MAOfflineItem.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItem.h; path = MAMapKit.framework/Headers/MAOfflineItem.h; sourceTree = ""; }; + 91EDAEAA8F13DC15EFC4DADC6261AD21 /* AMapSearchObjV1.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchObjV1.h; path = AMapSearchKit.framework/Headers/AMapSearchObjV1.h; sourceTree = ""; }; + 92531E37878C3A0E7B0535022EED3DFD /* MAMultiPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPolyline.h; path = MAMapKit.framework/Headers/MAMultiPolyline.h; sourceTree = ""; }; + 932F8EAA35C1D5F87D138C4006A1815F /* MAUserLocationRepresentation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAUserLocationRepresentation.h; path = MAMapKit.framework/Headers/MAUserLocationRepresentation.h; sourceTree = ""; }; + 939F8DEAB2123EC89A5DD098E96E191A /* IQTitleBarButtonItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTitleBarButtonItem.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQTitleBarButtonItem.swift; sourceTree = ""; }; + 948A9344898DCC2785FDDAD0699D6C1E /* IQKeyboardNotification.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardNotification.release.xcconfig; sourceTree = ""; }; + 949006AE50DFEC2AAC1413FF868AA779 /* IQTextInputViewNotification-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextInputViewNotification-prefix.pch"; sourceTree = ""; }; + 95839D8D8B2F23293EBF04B5730EA40E /* IQKeyboardManagerSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardManagerSwift.modulemap; sourceTree = ""; }; + 9614779050BB3EBD1097F039DEADD27B /* MATraceManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATraceManager.h; path = MAMapKit.framework/Headers/MATraceManager.h; sourceTree = ""; }; + 985288E47AE20118163007C6AFBB4174 /* AMapGeoFenceManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceManager.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceManager.h; sourceTree = ""; }; + 989E962A812F16459AFDEE6C7D323409 /* MAMultiColoredPolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiColoredPolylineRenderer.h; path = MAMapKit.framework/Headers/MAMultiColoredPolylineRenderer.h; sourceTree = ""; }; + 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardManagerSwift.debug.xcconfig; sourceTree = ""; }; + 9960FCCCFFE8F876FCDE0065C4FD6629 /* IQKeyboardToolbar-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardToolbar-dummy.m"; sourceTree = ""; }; + 99E675068425C5A9A5145CD79E3BCA08 /* AMapFoundation-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapFoundation-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; + 9B64B38CCC51FEC6E0F64ABFCE0D6BFF /* AMapFoundation-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapFoundation-NO-IDFA.release.xcconfig"; sourceTree = ""; }; + 9BDAC44E74D5AEA1FE9EF5B66759D030 /* UMDevice.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMDevice.xcframework; path = UMDevice_3.6.0/UMDevice.xcframework; sourceTree = ""; }; 9C16EBBD1A736D37F674242425B27F20 /* Pods-suixinkan.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkan.release.xcconfig"; sourceTree = ""; }; - 9CEDABC4D125BC75920E31F38A35A415 /* MAPolygonRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolygonRenderer.h; path = MAMapKit.framework/Headers/MAPolygonRenderer.h; sourceTree = ""; }; 9D83BB7679E7C8273476FE786BABAFF5 /* Pods-suixinkan-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-suixinkan-frameworks.sh"; sourceTree = ""; }; - 9D8517105921669A50D907EA797E1636 /* IQDeepResponderContainerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQDeepResponderContainerView.swift; path = IQKeyboardToolbarManager/Classes/IQDeepResponderContainerView.swift; sourceTree = ""; }; 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 9DED2FF966D82D4283903008C1587F98 /* IQKeyboardNotification.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardNotification.swift; path = IQKeyboardNotification/Classes/IQKeyboardNotification.swift; sourceTree = ""; }; - 9E358C28D730461F823AA142E176EB0C /* MARouteOverlayModel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MARouteOverlayModel.h; path = MAMapKit.framework/Headers/MARouteOverlayModel.h; sourceTree = ""; }; - 9EE58245D58F26549A7A8CCB434AC52E /* IQScrollViewConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQScrollViewConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQScrollViewConfiguration.swift; sourceTree = ""; }; - 9F44C0F5A31C9EFE79B6821581FC6A90 /* JCore.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JCore.debug.xcconfig; sourceTree = ""; }; - 9FC5970D36251A1390A17CF7571EF768 /* IQTextView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQTextView-dummy.m"; sourceTree = ""; }; - A12612B1AED7EE8CCD44571B43987BBB /* IQKeyboardResignHandler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardResignHandler.swift; path = IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift; sourceTree = ""; }; - A1654FBEF2ACF2D1C0F1AE8EFAB0EF17 /* ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; sourceTree = ""; }; + 9DE3CDAB45445DD7086D7CDC6F864A8D /* MAOfflineItemNationWide.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemNationWide.h; path = MAMapKit.framework/Headers/MAOfflineItemNationWide.h; sourceTree = ""; }; + 9F8AD8BB0EBEEF249761A914B37CAD8C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardReturnManager/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 9F977EDAA0F36643B21D81D866F00325 /* IQKeyboardToolbarManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Internal.swift"; path = "IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager+Internal.swift"; sourceTree = ""; }; + 9FE8BDE8B3028D4046E3ADFF6D71C2A4 /* AMapSearchVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchVersion.h; path = AMapSearchKit.framework/Headers/AMapSearchVersion.h; sourceTree = ""; }; + 9FFCB3910600ECA6002BB878B30BA591 /* IQBarButtonItemConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQBarButtonItemConfiguration.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQBarButtonItemConfiguration.swift; sourceTree = ""; }; + A07699BB79F9619E4B3CE5048F213790 /* VolcEngineRTC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = VolcEngineRTC.release.xcconfig; sourceTree = ""; }; A16FD016E18EACCF6B23F219F2E236FE /* IQKeyboardToolbar-IQKeyboardToolbar */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQKeyboardToolbar-IQKeyboardToolbar"; path = IQKeyboardToolbar.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - A1D1E63604F87F83BA8BFDF2B0C7720E /* AMapURLSearchConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearchConfig.h; path = AMapFoundationKit.framework/Headers/AMapURLSearchConfig.h; sourceTree = ""; }; - A23F97293C46916466F957A9639D75E3 /* ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist"; sourceTree = ""; }; - A372E26A2A397D202C662C0FD912FCA2 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardNotification/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - A3B399BF12010721D7606DE2C51AC0EF /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardToolbarManager/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - A3CDCD8BAD4E220D8D74F8D8D6DE8034 /* UMDevice.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMDevice.debug.xcconfig; sourceTree = ""; }; - A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextInputViewNotification.debug.xcconfig; sourceTree = ""; }; - A528053628879455AB95D1D237A78AED /* IQKeyboardToolbar-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardToolbar-dummy.m"; sourceTree = ""; }; - A55F0EA1CF98666CC54E6179EFEB3FEF /* MACustomBuildingOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomBuildingOverlayRenderer.h; path = MAMapKit.framework/Headers/MACustomBuildingOverlayRenderer.h; sourceTree = ""; }; - A5CAB9A0AF5C7D79C41E91058465C241 /* UMCommon-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMCommon-xcframeworks.sh"; sourceTree = ""; }; + A1836F952905D07E23AC756B411BE696 /* ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; sourceTree = ""; }; + A32A4C33E27F87863FB11AC3C9A09E0C /* RealXBase.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = RealXBase.xcframework; sourceTree = ""; }; + A389B2EDC5D1D81EF043A12391638BC1 /* UIView+Resign.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Resign.swift"; path = "IQKeyboardManagerSwift/Resign/UIKItExtensions/UIView+Resign.swift"; sourceTree = ""; }; + A3ADF11FAEAC8F80DA91E2D23F4F5C48 /* WechatOpenSDK-XCFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "WechatOpenSDK-XCFramework.debug.xcconfig"; sourceTree = ""; }; + A3B92976C10CBB84DC9EF347BDFC60CF /* UIView+Parent.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Parent.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIView+Parent.swift"; sourceTree = ""; }; + A4F538840D1231E9EE9946590DC1D919 /* ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; sourceTree = ""; }; A60612F837C72E04C6FBB22DF596D0FD /* Pods-suixinkanTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkanTests.release.xcconfig"; sourceTree = ""; }; - A6E0D731B6EAD62024190BA78D40D864 /* IQKeyboardReturnManager-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardReturnManager-prefix.pch"; sourceTree = ""; }; - A6EA67538179CD91CD56FFCAD0626066 /* MAMultiPointOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPointOverlayRenderer.h; path = MAMapKit.framework/Headers/MAMultiPointOverlayRenderer.h; sourceTree = ""; }; A793550DF057E02528E95AC40437943A /* Pods-suixinkan.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-suixinkan.modulemap"; sourceTree = ""; }; - A887BA5DD84AFB6405BA57323FCE8F0B /* MAMapView+Resource.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "MAMapView+Resource.h"; path = "MAMapKit.framework/Headers/MAMapView+Resource.h"; sourceTree = ""; }; - A8E60BFFD4A191EDF1872BE7E0FAE073 /* IQKeyboardReturnManager.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardReturnManager.release.xcconfig; sourceTree = ""; }; + A83A792738DA83E2D1119087D2778E1F /* ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; sourceTree = ""; }; + A8573CC4CF72940E255AF095FEA84D0E /* MAOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlay.h; path = MAMapKit.framework/Headers/MAOverlay.h; sourceTree = ""; }; A8E950A16D00F649C54FFB30F81D7842 /* IQKeyboardManagerSwift */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardManagerSwift; path = IQKeyboardManagerSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + A900C19FDD423A63EDB4890241E20444 /* AMapSearch-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapSearch-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; + A96477B12A2B08512DEF851076308BFC /* IQKeyboardNotification-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardNotification-umbrella.h"; sourceTree = ""; }; A98E61050764443945D42627C2F5BE35 /* Pods-suixinkan-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-suixinkan-acknowledgements.plist"; sourceTree = ""; }; - A9E48F379ACA8E9BCCAA467CA89ABF4A /* MAAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotation.h; path = MAMapKit.framework/Headers/MAAnnotation.h; sourceTree = ""; }; - AA518C79CF22771172370F62AF98D0ED /* ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; sourceTree = ""; }; - AAF4093F21688BF793E97C7EC0C3C48D /* AMapSearchError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchError.h; path = AMapSearchKit.framework/Headers/AMapSearchError.h; sourceTree = ""; }; - AC0FF26EF54F0D2CCEEC60FB7E97B123 /* UIView+IQKeyboardExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtensionObjc.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtensionObjc.swift"; sourceTree = ""; }; - ADB26D0335D3238C4C3CACC81077B951 /* IQTextInputViewNotification-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextInputViewNotification-umbrella.h"; sourceTree = ""; }; - AE62D9B077B5FC3AD4F95C8A43FB4558 /* IQKeyboardReturnManager-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardReturnManager-dummy.m"; sourceTree = ""; }; + AC6E594A0FD896EA5CDA3E6F190C0AB7 /* RTCFFmpeg.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = RTCFFmpeg.xcframework; sourceTree = ""; }; + AE545D7C7BC8717AD1293E91D09033F0 /* MAArc.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAArc.h; path = MAMapKit.framework/Headers/MAArc.h; sourceTree = ""; }; + AED971CC449F4593B117886F944152E7 /* ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; sourceTree = ""; }; + AEFD6F12ED3038D1F73D5ECBCA0A3CBF /* MAHeatMapVectorOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapVectorOverlay.h; sourceTree = ""; }; + AF2D49F00775A27DDCDF1AE909125185 /* IQKeyboardToolbarManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarManager.swift; path = IQKeyboardToolbarManager/Classes/IQKeyboardToolbarManager.swift; sourceTree = ""; }; + B15A89F8DECA647A9464E7868B3D9832 /* IQKeyboardToolbar-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbar-umbrella.h"; sourceTree = ""; }; + B184A8220FD8F49AFB9FA1C67C8F4085 /* UMDevice.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMDevice.debug.xcconfig; sourceTree = ""; }; + B19FAB17A68CCCA197D7890BED3BC1D2 /* IQTextInputViewNotification-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextInputViewNotification-umbrella.h"; sourceTree = ""; }; + B209820123663AF8D99EFF6912BF9F79 /* AMapFoundationConst.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationConst.h; path = AMapFoundationKit.framework/Headers/AMapFoundationConst.h; sourceTree = ""; }; + B2CF147BDD9EF2098912F69A7BFF89DD /* MAOfflineMapViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineMapViewController.h; path = MAMapKit.framework/Headers/MAOfflineMapViewController.h; sourceTree = ""; }; B2F70708431A20D2521270775E3BFCC3 /* Pods-suixinkanTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-suixinkanTests-dummy.m"; sourceTree = ""; }; - B3AE51D64EA8212082A2215BE56D852C /* MAOfflineProvince.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineProvince.h; path = MAMapKit.framework/Headers/MAOfflineProvince.h; sourceTree = ""; }; + B46217D14293E54C73A85F1BD3301FE8 /* MAOfflineCity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineCity.h; path = MAMapKit.framework/Headers/MAOfflineCity.h; sourceTree = ""; }; B4673E41D5AF372B424C758462A39ADE /* Pods-suixinkanTests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-suixinkanTests-umbrella.h"; sourceTree = ""; }; - B476FC7E116754954EC384BBE70ECF92 /* Array+Sort.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Array+Sort.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/Array+Sort.swift"; sourceTree = ""; }; B4B1A58096F15199A14069C5D6AA1C99 /* IQKeyboardToolbar */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardToolbar; path = IQKeyboardToolbar.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - B50BF2C383279DDB7880AF4C978116E2 /* IQKeyboardManager+Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Deprecated.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/Deprecated/IQKeyboardManager+Deprecated.swift"; sourceTree = ""; }; - B5A0A97D73FD94FDE81627BCEE94F1C4 /* IQKeyboardCore.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardCore.modulemap; sourceTree = ""; }; - B72C4055DD0AAE857AE24AA1B22D707A /* AMapSearchKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AMapSearchKit.framework; sourceTree = ""; }; - B79499F18F5215A6EF9F0698F1427102 /* IQKeyboardManagerSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardManagerSwift-prefix.pch"; sourceTree = ""; }; - B8442EDA82E520DD01BEACF61F58E60E /* MATouchPoi.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATouchPoi.h; path = MAMapKit.framework/Headers/MATouchPoi.h; sourceTree = ""; }; - B8A46592E83A53CA8AB70662CB8DF906 /* MAPointAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPointAnnotation.h; path = MAMapKit.framework/Headers/MAPointAnnotation.h; sourceTree = ""; }; - BC217F78CA99FD3D41A3303B824C278D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQTextInputViewNotification/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; - BD5EDDC96EA8A526C228C3ABF1B82399 /* IQPlaceholderable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQPlaceholderable.swift; path = IQKeyboardToolbar/Placeholderable/IQPlaceholderable.swift; sourceTree = ""; }; - BDB6452999256D2DF97D65A8AFE1FE44 /* MAHeatMapVectorGridOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapVectorGridOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapVectorGridOverlay.h; sourceTree = ""; }; - BDDEE926B156A69E8B915347853ECEC5 /* IQKeyboardManagerSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardManagerSwift.release.xcconfig; sourceTree = ""; }; - BF84270BA52DE4FAC1678E99D700AA50 /* UIScrollView+IQKeyboardManagerExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+IQKeyboardManagerExtension.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIScrollView+IQKeyboardManagerExtension.swift"; sourceTree = ""; }; - C026F448EE161E5AA295F2DD8C00F78B /* IQKeyboardToolbarManager-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardToolbarManager-dummy.m"; sourceTree = ""; }; - C416DF9C2C6D3B85FB383E91C18664DE /* UMCommon.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMCommon.xcframework; path = UMCommon_7.5.11/UMCommon.xcframework; sourceTree = ""; }; - C4C246899B9ADD76C47413CFC1900669 /* IQActiveConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQActiveConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQActiveConfiguration.swift; sourceTree = ""; }; - C582DCBB25F9FD804B0DD31A72557820 /* IQKeyboardToolbar.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardToolbar.modulemap; sourceTree = ""; }; - C5DD064141FD6D9585DDBFF2FE5EF228 /* IQKeyboardManager+Debug.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Debug.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/Debug/IQKeyboardManager+Debug.swift"; sourceTree = ""; }; - C615ED8173496D8C147DB28F59F9F67E /* MAAnimatedAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnimatedAnnotation.h; path = MAMapKit.framework/Headers/MAAnimatedAnnotation.h; sourceTree = ""; }; - C73A65DB570592414ACDAAF9091E3EEF /* AMapLocationRegionObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationRegionObj.h; path = AMapLocationKit.framework/Headers/AMapLocationRegionObj.h; sourceTree = ""; }; - C7C310CD68DF209957D60358329E9D5B /* AMap3DMap-NO-IDFA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMap3DMap-NO-IDFA.debug.xcconfig"; sourceTree = ""; }; - C93B314BF63192FFFEA853AD9BA8066A /* IQKeyboardToolbar-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbar-umbrella.h"; sourceTree = ""; }; - CA76A2A5EC61CC8B474C1A4551226332 /* IQKeyboardExtended.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardExtended.swift; path = IQKeyboardCore/Classes/IQKeyboardExtended.swift; sourceTree = ""; }; - CBE00B7180E351F1E2A6A92CC529B41F /* MAUserLocation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAUserLocation.h; path = MAMapKit.framework/Headers/MAUserLocation.h; sourceTree = ""; }; - CC2DA460622CB6B30A4B3F6B866725B8 /* ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; sourceTree = ""; }; + B70C6CBF2C487B6296E36E4818045F76 /* IQKeyboardToolbarManager+Toolbar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Toolbar.swift"; path = "IQKeyboardToolbarManager/Classes/Toolbar/IQKeyboardToolbarManager+Toolbar.swift"; sourceTree = ""; }; + B8476A96BE982F855EDE7EECC0AC906F /* MAConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAConfig.h; path = MAMapKit.framework/Headers/MAConfig.h; sourceTree = ""; }; + BBAB966289F13CCDA2FAD0652410E843 /* ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; sourceTree = ""; }; + BC22E9169FFEB3DDF58C844A9E7BC4DB /* IQKeyboardReturnManager-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardReturnManager-Info.plist"; sourceTree = ""; }; + BD07E0C05CA7DC462A51F4F90DD5AEE7 /* IQKeyboardToolbarPlaceholderConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarPlaceholderConfiguration.swift; path = IQKeyboardToolbar/Classes/Placeholder/IQKeyboardToolbarPlaceholderConfiguration.swift; sourceTree = ""; }; + BD88BA8FC4CDC4CDF011EE41273240C1 /* MAHeatMapTileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapTileOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapTileOverlay.h; sourceTree = ""; }; + C0A04393C6482B43D12F30B07E04748A /* IQKeyboardToolbarManager-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbarManager-prefix.pch"; sourceTree = ""; }; + C0BCD3AF604048516EAC8913C6A01273 /* MAMapCustomStyleOptions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapCustomStyleOptions.h; path = MAMapKit.framework/Headers/MAMapCustomStyleOptions.h; sourceTree = ""; }; + C1D32FAB7ECAEED292D25CAE95327CF0 /* IQKeyboardToolbarManager+Action.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardToolbarManager+Action.swift"; path = "IQKeyboardToolbarManager/Classes/Toolbar/IQKeyboardToolbarManager+Action.swift"; sourceTree = ""; }; + C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardCore.debug.xcconfig; sourceTree = ""; }; + C286CE80B5550AF484AF054CFE65DE2C /* MATerrainOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATerrainOverlayRenderer.h; path = MAMapKit.framework/Headers/MATerrainOverlayRenderer.h; sourceTree = ""; }; + C2A0B423670E836CA2EA43C41CB19811 /* WechatOpenSDK-XCFramework.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "WechatOpenSDK-XCFramework.release.xcconfig"; sourceTree = ""; }; + C2AAAB1B6731410C9D9EB1C5A6AC99DF /* IQKeyboardNotification.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardNotification.modulemap; sourceTree = ""; }; + C2C181E4F940F09E297591DA565280F7 /* UIScrollView+IQKeyboardManagerExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+IQKeyboardManagerExtension.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIScrollView+IQKeyboardManagerExtension.swift"; sourceTree = ""; }; + C5AD54145A409C1D7C94875810471BF1 /* IQKeyboardManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardManager.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager.swift; sourceTree = ""; }; + C6E5D9D64B6AABE6937DCEA19B46DD79 /* MAMultiPoint.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPoint.h; path = MAMapKit.framework/Headers/MAMultiPoint.h; sourceTree = ""; }; + C73BB9F448E56B49D4F5FE5D9987B78F /* UMAPM.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMAPM.xcframework; path = UMAPM_2.0.7/UMAPM.xcframework; sourceTree = ""; }; + C7F16FCE59EA776D68BCA96044AB643B /* MAAnimatedAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnimatedAnnotation.h; path = MAMapKit.framework/Headers/MAAnimatedAnnotation.h; sourceTree = ""; }; + C800E6213B65C17D9D650EFBA167370D /* IQKeyboardCore-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IQKeyboardCore-dummy.m"; sourceTree = ""; }; + C8BC74EE1659FD64F176CD4BE256AF84 /* IQKeyboardManager+Position.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Position.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+Position.swift"; sourceTree = ""; }; + C8D6630F56DE8A616BF4AF6A3E8FB586 /* MAMultiPointOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPointOverlayRenderer.h; path = MAMapKit.framework/Headers/MAMultiPointOverlayRenderer.h; sourceTree = ""; }; + CBD245733975A997CDE429A351AB1C6F /* JCore.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JCore.release.xcconfig; sourceTree = ""; }; + CCBC3902C2DD89F6B74BFE08F7A9DC48 /* MAGeometry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGeometry.h; path = MAMapKit.framework/Headers/MAGeometry.h; sourceTree = ""; }; + CD21C2E29DEBDED503E1CC5C84490B9D /* IQKeyboardToolbar-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardToolbar-Info.plist"; sourceTree = ""; }; CD25C568A7D214824F22DD1F8C8255BB /* Pods-suixinkanTests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-suixinkanTests-Info.plist"; sourceTree = ""; }; - CD831F6743DBA4A24C9265372979449E /* AMapLocationCommonObj.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationCommonObj.h; path = AMapLocationKit.framework/Headers/AMapLocationCommonObj.h; sourceTree = ""; }; - CDB04A2BDB7E068229CAF7A81165DD65 /* UIView+IQKeyboardExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtension.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtension.swift"; sourceTree = ""; }; - CE41AE378E9210FE5D862A988433348E /* IQTextInputViewInfoModel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewInfoModel.swift; path = IQKeyboardReturnManager/Classes/IQTextInputViewInfoModel.swift; sourceTree = ""; }; - CF87FBE2D4B19937F3E9A942696ECB5A /* MAMVTTileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMVTTileOverlay.h; path = MAMapKit.framework/Headers/MAMVTTileOverlay.h; sourceTree = ""; }; - D1086E217E4FD8CD9A1999C4CC605222 /* MAMultiPointOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPointOverlay.h; path = MAMapKit.framework/Headers/MAMultiPointOverlay.h; sourceTree = ""; }; + CD4FE136E9A99BAE0FA8EBFC4AC80FB4 /* MAOfflineProvince.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineProvince.h; path = MAMapKit.framework/Headers/MAOfflineProvince.h; sourceTree = ""; }; + CE4AE66CE966DE231E272316E63E53EC /* MAParticleOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlay.h; path = MAMapKit.framework/Headers/MAParticleOverlay.h; sourceTree = ""; }; + CED54F92E588775BEA7B38CECABD7702 /* JPush.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JPush.debug.xcconfig; sourceTree = ""; }; + CFC4986043F2FE7F33785D4D46CA5E4C /* IQKeyboardNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardNotification-Info.plist"; sourceTree = ""; }; + CFDC64AA2A98DF6AB638AEDFE148C722 /* UIView+IQKeyboardManagerExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardManagerExtensionObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIView+IQKeyboardManagerExtensionObjc.swift"; sourceTree = ""; }; + D054D25DFF58C86E7DD00309158A9533 /* IQRootControllerConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQRootControllerConfiguration.swift; path = IQKeyboardManagerSwift/IQKeyboardManager/Configuration/IQRootControllerConfiguration.swift; sourceTree = ""; }; + D195EE12A7242B6960BDA464D00CF39D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardNotification/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; D1D336475B683610A3803B2BDF0B662D /* Pods-suixinkan-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-suixinkan-resources.sh"; sourceTree = ""; }; - D2B0169030016DBD87F970A973A138AD /* IQKeyboardCore.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardCore.release.xcconfig; sourceTree = ""; }; - D376C98F66AE428B2165D3BFCA6CBB0A /* AMapSearchKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchKit.h; path = AMapSearchKit.framework/Headers/AMapSearchKit.h; sourceTree = ""; }; - D4ADD25EEB716A656CC0DBEDCC9790D4 /* IQKeyboardConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardConstants.swift; path = IQKeyboardCore/Classes/Constants/IQKeyboardConstants.swift; sourceTree = ""; }; - D6B6259CDECD85D674B168D3AF7C0101 /* IQKeyboardToolbarManager-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbarManager-umbrella.h"; sourceTree = ""; }; - D702515773E3DF4969443386C85C55CD /* MATraceLocation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MATraceLocation.h; path = MAMapKit.framework/Headers/MATraceLocation.h; sourceTree = ""; }; - D717049D0CC527FBADC7B8BFC423D331 /* IQTextView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQTextView-Info.plist"; sourceTree = ""; }; - D8ABCFBB8BDD11CFBF49406BF0165A41 /* IQKeyboardAppearanceManager+Internal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardAppearanceManager+Internal.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardAppearanceManager+Internal.swift"; sourceTree = ""; }; - D8ED740F9377F944E3895021F134AC68 /* IQBarButtonItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQBarButtonItem.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQBarButtonItem.swift; sourceTree = ""; }; - DA27C00D82366242724F675C7E3A6BFD /* IQKeyboardToolbar-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardToolbar-Info.plist"; sourceTree = ""; }; - DA598BC1826B04340DCAC8EF685201E7 /* MAUserLocationRepresentation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAUserLocationRepresentation.h; path = MAMapKit.framework/Headers/MAUserLocationRepresentation.h; sourceTree = ""; }; - DA603DEC8F9F9774A51A7EF0A9BB62EF /* jpush-ios-6.1.0.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = "jpush-ios-6.1.0.xcframework"; sourceTree = ""; }; - DB5660BB9799DC420CD4238B38ED357F /* UIView+IQKeyboardManagerExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardManagerExtensionObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIView+IQKeyboardManagerExtensionObjc.swift"; sourceTree = ""; }; - DD52E2C9D26643C4510332244B319F71 /* JPush.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JPush.debug.xcconfig; sourceTree = ""; }; - DD68AF4711DE3DCD592D096BC6577207 /* IQBarButtonItemConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQBarButtonItemConfiguration.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQBarButtonItemConfiguration.swift; sourceTree = ""; }; - DDABFE3773641DCA1393690ED61D8407 /* IQTextInputViewNotification-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQTextInputViewNotification-prefix.pch"; sourceTree = ""; }; - DFDC309A50F01E88696489F1677C3AA7 /* MAMultiPolyline.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiPolyline.h; path = MAMapKit.framework/Headers/MAMultiPolyline.h; sourceTree = ""; }; - DFE51D2405E1E217F50AA3BA1213B3AD /* UMDevice.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMDevice.release.xcconfig; sourceTree = ""; }; - E0F761FE0B098205EE12A869B3BB104B /* MAMapKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapKit.h; path = MAMapKit.framework/Headers/MAMapKit.h; sourceTree = ""; }; - E1B42881A884188A8DF9EAE068A6DC08 /* AMapFoundationVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationVersion.h; path = AMapFoundationKit.framework/Headers/AMapFoundationVersion.h; sourceTree = ""; }; - E23A19CFE92D16E0C6DF4232CAE6BE95 /* IQKeyboardManager+ActiveConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ActiveConfiguration.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManager+ActiveConfiguration.swift"; sourceTree = ""; }; - E26D520CBDC504839CC1C6D42B0B0B80 /* IQKeyboardToolbarManager-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardToolbarManager-prefix.pch"; sourceTree = ""; }; - E3AC9204F4307F3CEE2EA7B4755F2BA3 /* UIView+Responders.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Responders.swift"; path = "IQKeyboardToolbarManager/Classes/UIKitExtensions/UIView+Responders.swift"; sourceTree = ""; }; + D20C43E50A3476871B7384379068F972 /* UMCommon.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMCommon.xcframework; path = UMCommon_7.5.11/UMCommon.xcframework; sourceTree = ""; }; + D2442DAFEEABF11200E680955456504F /* AMapSearchAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchAPI.h; path = AMapSearchKit.framework/Headers/AMapSearchAPI.h; sourceTree = ""; }; + D2E3FD31E91683FDC0B22290FE74B7E2 /* ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist"; sourceTree = ""; }; + D30ADEE09F82DF19A1888B002A47FC21 /* IQKeyboardExtended.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardExtended.swift; path = IQKeyboardCore/Classes/IQKeyboardExtended.swift; sourceTree = ""; }; + D38BDB89CF929982D596C8C7390190C0 /* IQKeyboardReturnManager+UITextViewDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardReturnManager+UITextViewDelegate.swift"; path = "IQKeyboardReturnManager/Classes/Delegates/IQKeyboardReturnManager+UITextViewDelegate.swift"; sourceTree = ""; }; + D4441EC6FD7E6501CD6A029CC5547EB7 /* UMDevice.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMDevice.release.xcconfig; sourceTree = ""; }; + D4F22BBAC26D59FA533BC3E2D6249904 /* IQKeyboardCore-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardCore-umbrella.h"; sourceTree = ""; }; + D716492F07DEB42B388856692B6E843A /* AMapLocation-NO-IDFA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "AMapLocation-NO-IDFA.release.xcconfig"; sourceTree = ""; }; + D7ACFC49738FF4F612D385219B5A5498 /* UMCommon-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMCommon-xcframeworks.sh"; sourceTree = ""; }; + E0AC776726C388E12EFB4BFD36A72AB6 /* IQKeyboardCore-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardCore-prefix.pch"; sourceTree = ""; }; + E1B75F1D0D65299E5DC583CECA54FDAA /* UIView+ParentObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+ParentObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIView+ParentObjc.swift"; sourceTree = ""; }; + E2C3388662FA183F12DC5F47940D57DC /* IQKeyboardToolbarConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardToolbarConfiguration.swift; path = IQKeyboardToolbarManager/Classes/Configuration/IQKeyboardToolbarConfiguration.swift; sourceTree = ""; }; + E3532585B460CC985A9C1C9DAF3AEB1E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQTextInputViewNotification/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + E3AB3CAD98805C12A0303E5EEF02BA39 /* UIView+IQKeyboardExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtensionObjc.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtensionObjc.swift"; sourceTree = ""; }; E3B33A56AD414D84948526129E9D584C /* Pods-suixinkan.simulatordebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-suixinkan.simulatordebug.xcconfig"; sourceTree = ""; }; - E58F90C5C01D15A1D8477A2F76C55479 /* IQKeyboardToolbar.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbar.release.xcconfig; sourceTree = ""; }; - E5AEDD7F9FD976DFFF047A8BF9EEC6CC /* AMapGeoFenceError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapGeoFenceError.h; path = AMapLocationKit.framework/Headers/AMapGeoFenceError.h; sourceTree = ""; }; - E5F0A37891F1A7765B99C903153C0945 /* UIView+Hierarchy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+Hierarchy.swift"; path = "IQKeyboardCore/Classes/UIKitExtensions/UIView+Hierarchy.swift"; sourceTree = ""; }; - E64981F07E6AF8250D37F4D1295891B8 /* UMCommon.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMCommon.debug.xcconfig; sourceTree = ""; }; - E6B0E1AAA5225E113179D3AC9F989DF5 /* MAHeatMapTileOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAHeatMapTileOverlay.h; path = MAMapKit.framework/Headers/MAHeatMapTileOverlay.h; sourceTree = ""; }; - E78E48748C5DEEFFFD6E4469DA5EA2C1 /* AMapLocationVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationVersion.h; path = AMapLocationKit.framework/Headers/AMapLocationVersion.h; sourceTree = ""; }; - E7FD69C0D8168D323ADC0A6EFD7FC1DD /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIScrollView+IQKeyboardManagerExtensionObjc.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/IQKeyboardManagerExtension/UIScrollView+IQKeyboardManagerExtensionObjc.swift"; sourceTree = ""; }; - E8064F1ACE496CC1AE128FFDF32AF3E2 /* MAArc.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAArc.h; path = MAMapKit.framework/Headers/MAArc.h; sourceTree = ""; }; - E97A7F595151E2AD4F30897F4B748EA9 /* MAMapSnapshot.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapSnapshot.h; path = MAMapKit.framework/Headers/MAMapSnapshot.h; sourceTree = ""; }; - EA5ECDD2101FE053DF1B8A46BB43772C /* MALineDrawType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MALineDrawType.h; path = MAMapKit.framework/Headers/MALineDrawType.h; sourceTree = ""; }; - EAD4712612A5077FB71A6D13B7C6AB79 /* MAOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlayRenderer.h; path = MAMapKit.framework/Headers/MAOverlayRenderer.h; sourceTree = ""; }; - EBA5A2153A7B70835913DD6D1524E81E /* MACustomCalloutView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MACustomCalloutView.h; path = MAMapKit.framework/Headers/MACustomCalloutView.h; sourceTree = ""; }; - ED1ED4E7D70A14D1BD220D30119286E2 /* MAParticleOverlayOptions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlayOptions.h; path = MAMapKit.framework/Headers/MAParticleOverlayOptions.h; sourceTree = ""; }; + E4F6A8D9BA6DC9E9C42A77BC2E7F0AF3 /* AMap.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = AMap.bundle; path = MAMapKit.framework/AMap.bundle; sourceTree = ""; }; + E539D0B30D08031698030A03892FF590 /* MAPolygonRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPolygonRenderer.h; path = MAMapKit.framework/Headers/MAPolygonRenderer.h; sourceTree = ""; }; + E790BD090A1CD4A9A8D93AA43D92A380 /* AMapLocationVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationVersion.h; path = AMapLocationKit.framework/Headers/AMapLocationVersion.h; sourceTree = ""; }; + E8B9584100C63E03D75F12EF28FE46D8 /* IQKeyboardInfo.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQKeyboardInfo.swift; path = IQKeyboardNotification/Classes/IQKeyboardInfo.swift; sourceTree = ""; }; + E8E9C7FCBB1628F0AF444C2DB616C938 /* MAGroundOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAGroundOverlay.h; path = MAMapKit.framework/Headers/MAGroundOverlay.h; sourceTree = ""; }; + E8FD6F60EF688C5AC4A8B023D6D4196A /* JPush.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JPush.release.xcconfig; sourceTree = ""; }; + E924602982CB402C3DE49FAE6B4E86D7 /* IQBarButtonItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQBarButtonItem.swift; path = IQKeyboardToolbar/Classes/IQBarButtonItem/IQBarButtonItem.swift; sourceTree = ""; }; + EA6FFAAA8D1615D51313B82AE95D7A0F /* IQKeyboardManager+ToolbarManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+ToolbarManager.swift"; path = "IQKeyboardManagerSwift/IQKeyboardToolbarManager/IQKeyboardManager+ToolbarManager.swift"; sourceTree = ""; }; + EACBD6A19E0393FBFB741D6F1B5363BA /* jpush-ios-6.1.0.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = "jpush-ios-6.1.0.xcframework"; sourceTree = ""; }; ED291EE097723C1A6325544C2500E844 /* Pods-suixinkan-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-suixinkan-dummy.m"; sourceTree = ""; }; - EF17C02FB5EDE9DC941DACEB1BF37A67 /* MAOfflineItemNationWide.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineItemNationWide.h; path = MAMapKit.framework/Headers/MAOfflineItemNationWide.h; sourceTree = ""; }; - EF54B42FE0B021F5D3CDD98608D65DC8 /* ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; sourceTree = ""; }; - F0E323C689432F05D4DCE1478FE98A38 /* MAOfflineMap.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOfflineMap.h; path = MAMapKit.framework/Headers/MAOfflineMap.h; sourceTree = ""; }; - F152C09480DA43D313458EDBFD5135BF /* AMapURLSearch.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapURLSearch.h; path = AMapFoundationKit.framework/Headers/AMapURLSearch.h; sourceTree = ""; }; - F1EAE16DD95B4D774A7F33C84C92A987 /* MAOverlayPathRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAOverlayPathRenderer.h; path = MAMapKit.framework/Headers/MAOverlayPathRenderer.h; sourceTree = ""; }; - F235A21AFE7ECC646787D9C9313A8BC3 /* UMAPM-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "UMAPM-xcframeworks.sh"; sourceTree = ""; }; - F283224B76C1D6B83702001679439919 /* UMAPM.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UMAPM.release.xcconfig; sourceTree = ""; }; - F3B8F6CD0697840F54110DE73B4B45D2 /* IQKeyboardNotification-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "IQKeyboardNotification-Info.plist"; sourceTree = ""; }; - F4484DFD00A30223AFF26316F14A2723 /* AMapSearchVersion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchVersion.h; path = AMapSearchKit.framework/Headers/AMapSearchVersion.h; sourceTree = ""; }; - F46DE7CDE3412F4C9963058278E9A341 /* jcore-noidfa-ios-5.4.2.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; path = "jcore-noidfa-ios-5.4.2.xcframework"; sourceTree = ""; }; - F567609174F5904AE6D76ECD374854A6 /* IQKeyboardNotification-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardNotification-prefix.pch"; sourceTree = ""; }; - F7237538405836409CB43509E3388D83 /* MAMapAccessibilityIdentifier.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMapAccessibilityIdentifier.h; path = MAMapKit.framework/Headers/MAMapAccessibilityIdentifier.h; sourceTree = ""; }; - F743267069A8E822C12FD23476C2E60E /* UMDevice.xcframework */ = {isa = PBXFileReference; includeInIndex = 1; name = UMDevice.xcframework; path = UMDevice_3.6.0/UMDevice.xcframework; sourceTree = ""; }; + EDC68D4FCB048FBF2A45CC21B1638F80 /* VolcEngineRTC.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = VolcEngineRTC.debug.xcconfig; sourceTree = ""; }; + EFB63127C0E518CF38404A5A50137D63 /* AMapSearchError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapSearchError.h; path = AMapSearchKit.framework/Headers/AMapSearchError.h; sourceTree = ""; }; + F0DAEBB9CD1A3D230D46015714723231 /* IQTextView+Placeholderable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQTextView+Placeholderable.swift"; path = "IQTextView/Classes/IQTextView+Placeholderable.swift"; sourceTree = ""; }; + F1F98B961492E58401AF64822AA86791 /* IQTextView.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextView.release.xcconfig; sourceTree = ""; }; + F38BAFEE9D73F8D4DC3463EC036ABE11 /* MAPathShowRange.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAPathShowRange.h; path = MAMapKit.framework/Headers/MAPathShowRange.h; sourceTree = ""; }; + F3DCEB6C2B197ABE227932FEA2419037 /* UIViewController+ParentContainer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+ParentContainer.swift"; path = "IQKeyboardManagerSwift/IQKeyboardManager/UIKitExtensions/UIViewController+ParentContainer.swift"; sourceTree = ""; }; + F3E9C7798DF3A5EBBDEAF4FCD0515ECA /* IQTextView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQTextView.modulemap; sourceTree = ""; }; + F4023F00A614A00A57225A27D115BDB9 /* AMapLocationManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapLocationManager.h; path = AMapLocationKit.framework/Headers/AMapLocationManager.h; sourceTree = ""; }; + F4D876671EB044681F90C28875230D85 /* UIView+IQKeyboardExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIView+IQKeyboardExtension.swift"; path = "IQKeyboardToolbar/Classes/IQKeyboardExtension/UIView+IQKeyboardExtension.swift"; sourceTree = ""; }; + F4F1AACDDF2D1C20591B33DD8E2A5C38 /* IQKeyboardManager+Appearance_Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Appearance_Deprecated.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardManager+Appearance_Deprecated.swift"; sourceTree = ""; }; + F59F91AFD79784903BF8352CDFAF43B9 /* IQTextInputViewInfoModel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IQTextInputViewInfoModel.swift; path = IQKeyboardReturnManager/Classes/IQTextInputViewInfoModel.swift; sourceTree = ""; }; + F7E22135559ACE352548CFD9ABB79BCA /* MAParticleOverlayOptions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlayOptions.h; path = MAMapKit.framework/Headers/MAParticleOverlayOptions.h; sourceTree = ""; }; + F7EED4BF1095985650837ABEA0C99E74 /* AMapFoundationKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = AMapFoundationKit.h; path = AMapFoundationKit.framework/Headers/AMapFoundationKit.h; sourceTree = ""; }; F956E149F5B195BB7833F97FC6211AE8 /* IQTextInputViewNotification-IQTextInputViewNotification */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "IQTextInputViewNotification-IQTextInputViewNotification"; path = IQTextInputViewNotification.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardNotification.debug.xcconfig; sourceTree = ""; }; - FA43AA432E51DD3E160CB45F75EDD874 /* JCore.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JCore.release.xcconfig; sourceTree = ""; }; + F97FC488C52F8C83E3213105C4228613 /* IQKeyboardReturnManager-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IQKeyboardReturnManager-umbrella.h"; sourceTree = ""; }; FA727BF5D9541C98C22C9ECC911576E2 /* IQKeyboardToolbarManager */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardToolbarManager; path = IQKeyboardToolbarManager.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FAE352943F84CF1F87B4462638AE8F18 /* MAConfig.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAConfig.h; path = MAMapKit.framework/Headers/MAConfig.h; sourceTree = ""; }; - FBCA526A0BEFD238489E9050C4B47CB7 /* MAMVTTileOverlayRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMVTTileOverlayRenderer.h; path = MAMapKit.framework/Headers/MAMVTTileOverlayRenderer.h; sourceTree = ""; }; + FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardReturnManager.debug.xcconfig; sourceTree = ""; }; + FB3211C8AD4603F8397DE7ED0479BDAD /* MAAnnotation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAAnnotation.h; path = MAMapKit.framework/Headers/MAAnnotation.h; sourceTree = ""; }; FBEC2A4D669A5B0C6DF262C7C1A4E8A2 /* Pods-suixinkan-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-suixinkan-Info.plist"; sourceTree = ""; }; - FC4A4ED3AA953F5ADE3FA7EC8F671377 /* IQKeyboardManager+Appearance_Deprecated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "IQKeyboardManager+Appearance_Deprecated.swift"; path = "IQKeyboardManagerSwift/Appearance/IQKeyboardManager+Appearance_Deprecated.swift"; sourceTree = ""; }; - FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQTextView.debug.xcconfig; sourceTree = ""; }; FC7F0CF2EA5DF59C59D9995890DA5C47 /* IQKeyboardCore */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardCore; path = IQKeyboardCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FDF709D73DE1142AE1CF86A66274B9FC /* WechatOpenSDK-XCFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "WechatOpenSDK-XCFramework.debug.xcconfig"; sourceTree = ""; }; - FE9187432460BB6FE0DF674937D7E42E /* MAParticleOverlay.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAParticleOverlay.h; path = MAMapKit.framework/Headers/MAParticleOverlay.h; sourceTree = ""; }; + FD5AD0CFBB7A9E4F5B2A53DBC856B6E8 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = IQKeyboardCore/Assets/PrivacyInfo.xcprivacy; sourceTree = ""; }; + FE55B3A42666347457710420CE151AA6 /* IQKeyboardToolbar.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = IQKeyboardToolbar.modulemap; sourceTree = ""; }; FEF9AC89E9C4BD37AC0AB78B535D1CFC /* IQKeyboardNotification */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = IQKeyboardNotification; path = IQKeyboardNotification.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FF151EDD3DF75406929ACA6D262AA65C /* MAMultiTexturePolylineRenderer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MAMultiTexturePolylineRenderer.h; path = MAMapKit.framework/Headers/MAMultiTexturePolylineRenderer.h; sourceTree = ""; }; + FF1A51684BE9AD249695A507E8AE84BF /* IQKeyboardManagerSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardManagerSwift.release.xcconfig; sourceTree = ""; }; + FF3A7D5C821762023E797F50C2927440 /* VolcEngineRTC-xcframeworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "VolcEngineRTC-xcframeworks.sh"; sourceTree = ""; }; + FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbar.debug.xcconfig; sourceTree = ""; }; + FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IQKeyboardToolbarManager.debug.xcconfig; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 0B63EA4E1D3EA61D0E4AC4DE8422C4E8 /* Frameworks */ = { + 1168AB246AD776F63DD112F4BF1254B9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 46769B00A3AF04C4F9AE2D87955658B9 /* Combine.framework in Frameworks */, + 22BA2DB8232BB7DCF5B220D2C101A3B2 /* Foundation.framework in Frameworks */, + 139ACE54AA202BAD419CC5FB30BF5830 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 1AB23A258F502AF32AD2AF5C8087AA1C /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -887,13 +920,34 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 7A8C5A659560BF9E0CC487398B4E27CF /* Frameworks */ = { + 5E06627920B40924E21BA6A8C70B3619 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 894C85B6B68DC29E241159AD71D06391 /* Combine.framework in Frameworks */, - 1BE160B878A28F5FA898999E0805FCCE /* Foundation.framework in Frameworks */, - A199EBA4C308040DBF6D668F277AD380 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F65B215F9B42F7EC03DEB24F6871DFB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 028B34F60037C63915906C0ED6B79E64 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7D2E82DB5847681794F83B68E6CA40A5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8117EC3866EDF249CA8CE1376526A3DB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 11257CC87FF4D3453F57F94F9C131841 /* Foundation.framework in Frameworks */, + 9C41BFFC33B98E3B4C0D604606517086 /* UIKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -905,89 +959,76 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 902E85A742A01B8059EFA5B89DA66F7F /* Frameworks */ = { + 920BB55EA03141F9FEC988CF5499655C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 859DB2F7AED6E742BD5491C50234DA05 /* Combine.framework in Frameworks */, + 93086CDECC1CF6172D5307CD731DDB69 /* Foundation.framework in Frameworks */, + 53AA6596E89D66A0DE2B630DC0C06F3B /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 981D9774F54AB0E1C321D57321305E99 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - A6D81DF4CB996A5BEAA5DD9D77D0C0F3 /* Frameworks */ = { + A5B5101DC57939771E53F12E05DCEB38 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - B7AB75E5D475777E4C3BAD9B643ED838 /* Frameworks */ = { + B1C16E3CDD005904731374173E50A59E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A7559B934F8DCF87C3FE2BA4F5C4C95A /* Combine.framework in Frameworks */, + 9DF4CAF5CDCEBF860D1E04475EBB8504 /* Foundation.framework in Frameworks */, + 64FCAFDF9302AC4563973F3E65DDDA01 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B6BB62FFBD45C60D8F1FE570CC1DE3E0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - BE4F345025D2187B63FA2ED8E7233AED /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8A4E21670B754CB36D5C537DDFF746B9 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C5CF3AB4E319774E8EF43C96BE7E9D20 /* Frameworks */ = { + BDBD60A29BE8E581EB5EDCF60600BE9F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - D7A42CDC1C43250CB900E1FB74D8B092 /* Frameworks */ = { + C627275D6CBFEDB1B39AD4E3C7A62115 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - DCCD854A95878812F357EA2EBB20D31A /* Frameworks */ = { + C7391ABA2E8405F598E3AD115908ECC1 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 380C9A16512596163FFB339B98F75C16 /* Combine.framework in Frameworks */, - B532634861D24EDC85FABA261FDD0E35 /* Foundation.framework in Frameworks */, - 6F28DC7E3DFE272A55834DCAA3BC46E3 /* UIKit.framework in Frameworks */, + BABC1D696349718315EE287F779F7974 /* Foundation.framework in Frameworks */, + DA18C09E871D9EE49EF5AAAC18B0324E /* UIKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; - EB4C499E90100393A2F36CAA19DA0329 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EC2013DAC79463EF21C09D001A46CB40 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 549A919387FE08829094B5E6352603DF /* Combine.framework in Frameworks */, - 25EE6824CF8528BDE7A1F21B97A2936B /* Foundation.framework in Frameworks */, - D9C7F5D217BC3710874B9A0D70666A01 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EC4276E1E0D899ACABDF5030E302B8C5 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 48218E2CD382EF08D195E251C7DFC3DE /* Foundation.framework in Frameworks */, - E2A7F3B197F20459F0941DCBF911D1D9 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F36C7EF959F38C314D7D9C07F20214F9 /* Frameworks */ = { + D5423F9C2E19B190FF95082DAF712AF0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 249F48C24B2BF91AD52E41216BE2CC7A /* Foundation.framework in Frameworks */, + 8D20DCD225FDA85F616413E20B0A15E6 /* UIKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1000,80 +1041,9 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - FA5B37F87B05E58E873C97C8F4121D4E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 124BCB4411C266F74471632FEE411FDC /* Foundation.framework in Frameworks */, - 04BD4928C99B51A317B39CF5C0C3F780 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FC3987C09F835C384373CDD2FFD65186 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 6426396B8E7B8854481D895B59EE2033 /* Foundation.framework in Frameworks */, - 0E0C92029C63C476812AB8A5E69F1A0E /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 00BDB8452B08527967D9BF4BCE67160E /* Resign */ = { - isa = PBXGroup; - children = ( - 8B684CF1599F22DF5238BEF46E8CD746 /* IQKeyboardManager+Resign.swift */, - 778FA22D4BEBBF59A58346CBF997FEA5 /* IQKeyboardManager+Resign_Deprecated.swift */, - A12612B1AED7EE8CCD44571B43987BBB /* IQKeyboardResignHandler.swift */, - 930508646A6ED3948BD91D3EC83E0968 /* IQKeyboardResignHandler+Internal.swift */, - 4C0003B8890568226024C1462834BA44 /* UIView+Resign.swift */, - 4E1C0398739C8BEB724C448EE1DB0F6E /* UIView+ResignObjc.swift */, - ); - name = Resign; - sourceTree = ""; - }; - 033D0A6A59C1A74DDD7D6980C1AB24B9 /* Support Files */ = { - isa = PBXGroup; - children = ( - 25A6DA65604634AA8B5F0DDCEEA348ED /* IQKeyboardReturnManager.modulemap */, - AE62D9B077B5FC3AD4F95C8A43FB4558 /* IQKeyboardReturnManager-dummy.m */, - 9AE61E9DC82B9FDCC6C66EA02C64CED7 /* IQKeyboardReturnManager-Info.plist */, - A6E0D731B6EAD62024190BA78D40D864 /* IQKeyboardReturnManager-prefix.pch */, - 527952C17AC8880F69799F25BAE08B43 /* IQKeyboardReturnManager-umbrella.h */, - 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */, - A8E60BFFD4A191EDF1872BE7E0FAE073 /* IQKeyboardReturnManager.release.xcconfig */, - A1654FBEF2ACF2D1C0F1AE8EFAB0EF17 /* ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist */, - ); - name = "Support Files"; - path = "../Target Support Files/IQKeyboardReturnManager"; - sourceTree = ""; - }; - 033FC93B9EFE1CBEB43E1356F4387404 /* Support Files */ = { - isa = PBXGroup; - children = ( - 1290A656163D4189D4E745D4075B5FB9 /* IQTextInputViewNotification.modulemap */, - 7824F2A9F1A4882E8AC01FC525F509DA /* IQTextInputViewNotification-dummy.m */, - 2EA10FEDDCB666E266D7A6F366B18E70 /* IQTextInputViewNotification-Info.plist */, - DDABFE3773641DCA1393690ED61D8407 /* IQTextInputViewNotification-prefix.pch */, - ADB26D0335D3238C4C3CACC81077B951 /* IQTextInputViewNotification-umbrella.h */, - A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */, - 2161AA772A6755F4D5D60BD723919D3B /* IQTextInputViewNotification.release.xcconfig */, - AA518C79CF22771172370F62AF98D0ED /* ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist */, - ); - name = "Support Files"; - path = "../Target Support Files/IQTextInputViewNotification"; - sourceTree = ""; - }; - 03B91A177B2A7F65139A6D55296AAD68 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 3702B2DB8DB9F3674E7A72C7A38ED093 /* UMAPM.xcframework */, - ); - name = Frameworks; - sourceTree = ""; - }; 03C5C200A0787E300053CFA8F53CA094 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -1082,264 +1052,245 @@ name = Frameworks; sourceTree = ""; }; - 046B5F60AC34784A569BD49FA2092799 /* Resources */ = { + 04FDA7EB08893E90978EDA86E4F15024 /* IQKeyboardToolbar */ = { isa = PBXGroup; children = ( - 6E0BA3B04A92A056CAB8754E064C13C3 /* AMap.bundle */, + 83BE88F4AA11B51C3BC925D36E15C55B /* Core */, + 4D8D15BE86C6631EEBC53382A88B7043 /* Placeholderable */, + BC94656FB03B59B20DFF04A8C9C1C170 /* Resources */, + A4B90924C44E6B3D0B3AF91BE647EB2B /* Support Files */, + ); + name = IQKeyboardToolbar; + path = IQKeyboardToolbar; + sourceTree = ""; + }; + 1384110D481A014E1D91A25E7C544B95 /* Resources */ = { + isa = PBXGroup; + children = ( + 4CDA0B7868683A656CA1A57A373E2844 /* PrivacyInfo.xcprivacy */, ); name = Resources; sourceTree = ""; }; - 061787039B0BB942ED49998307180813 /* IQKeyboardToolbarManager */ = { + 1B38AC023F8FAD91C320BC949EB5D4BF /* Resources */ = { isa = PBXGroup; children = ( - B476FC7E116754954EC384BBE70ECF92 /* Array+Sort.swift */, - 9D8517105921669A50D907EA797E1636 /* IQDeepResponderContainerView.swift */, - 0B4EA2289D2B8316CE956FF2268D0114 /* IQKeyboardToolbarConfiguration.swift */, - 6AEC002400E17D448789C96C9A991A76 /* IQKeyboardToolbarConstants.swift */, - 346216373F9BE3698F9AEFCF076F23D2 /* IQKeyboardToolbarManager.swift */, - 7876059E50A29A0D55B20586DAFF3B7D /* IQKeyboardToolbarManager+Action.swift */, - 0FDC889F8FBF31BC6E149B59F01A74FC /* IQKeyboardToolbarManager+Debug.swift */, - 31D405B850F4246DA579A22B97251360 /* IQKeyboardToolbarManager+Deprecated.swift */, - 6753350B51E82A0FE23F430A0B57E601 /* IQKeyboardToolbarManager+Internal.swift */, - 73B4C7AD499AF7BCC14C3DC4248A326F /* IQKeyboardToolbarManager+Toolbar.swift */, - E3AC9204F4307F3CEE2EA7B4755F2BA3 /* UIView+Responders.swift */, - 3412D26E7AC83AF43C7017AB142B719D /* UIView+RespondersObjc.swift */, - BFCD941C9B7FCA2B37453EE02C274D7B /* Resources */, - 9F84599051C12EB2D8199BE4B9D266DA /* Support Files */, + E3532585B460CC985A9C1C9DAF3AEB1E /* PrivacyInfo.xcprivacy */, ); - name = IQKeyboardToolbarManager; - path = IQKeyboardToolbarManager; + name = Resources; sourceTree = ""; }; - 19A82AAA72ABA08948565E51B5A6FAFF /* IQKeyboardToolbarManager */ = { + 1CD1084BC0401D493658F56C10364EAF /* UMCommon */ = { isa = PBXGroup; children = ( - 992554533A232CEC66E7397532159E20 /* IQKeyboardManager+ToolbarManager.swift */, - 06A9F6948FD1CA41F3ACF9F3966A3888 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */, + A222616F5C1CD6715F1F6E7461B83C43 /* Frameworks */, + 512BB483EC5CCE9E048394226E889566 /* Support Files */, + ); + name = UMCommon; + path = UMCommon; + sourceTree = ""; + }; + 23EE4A08AC63F1F7C781697CCFE9866B /* IQKeyboardToolbarManager */ = { + isa = PBXGroup; + children = ( + EA6FFAAA8D1615D51313B82AE95D7A0F /* IQKeyboardManager+ToolbarManager.swift */, + 73BC53E8C93DDB8078EB3832DF5645C3 /* IQKeyboardManager+ToolbarManagerDeprecated.swift */, ); name = IQKeyboardToolbarManager; sourceTree = ""; }; - 1A19E6EA7CBD3082142C640567987EEF /* Frameworks */ = { + 24A25D5D6B13853B408AF50746501B89 /* RealXBase */ = { isa = PBXGroup; children = ( - F743267069A8E822C12FD23476C2E60E /* UMDevice.xcframework */, + A1098BCB6F71B70A6EB9C68038D5392C /* Frameworks */, ); - name = Frameworks; + name = RealXBase; sourceTree = ""; }; - 1BC2084ADA79C87C7F4A950A3D56FBA9 /* Frameworks */ = { + 25F14707FC4FA354EEEDE4E0F5910477 /* IQTextView */ = { isa = PBXGroup; children = ( - DA603DEC8F9F9774A51A7EF0A9BB62EF /* jpush-ios-6.1.0.xcframework */, + 2432EF98C1780CB63645C2E5DFBC4FE9 /* IQTextView.swift */, + F0DAEBB9CD1A3D230D46015714723231 /* IQTextView+Placeholderable.swift */, + 2E788BFB93B8906F10376811DA4DCCC0 /* Resources */, + F3FC9C7122817D805F5B407370ED6502 /* Support Files */, ); - name = Frameworks; + name = IQTextView; + path = IQTextView; sourceTree = ""; }; - 23803FF45F499BC02ACD274D0BFAD8A3 /* AMapFoundation-NO-IDFA */ = { + 26A86FB29D5950F8AFD06DFAC9E4A33D /* Resources */ = { isa = PBXGroup; children = ( - 17275D4CF9F4D11ECE700DA0F9EFF0F8 /* AMapFoundationConst.h */, - 8EEE1F5B32FF5F35E4F7CC0F55C1B41F /* AMapFoundationKit.h */, - E1B42881A884188A8DF9EAE068A6DC08 /* AMapFoundationVersion.h */, - 70AF23D692EBDAA8E2E52376A065A97C /* AMapServices.h */, - F152C09480DA43D313458EDBFD5135BF /* AMapURLSearch.h */, - A1D1E63604F87F83BA8BFDF2B0C7720E /* AMapURLSearchConfig.h */, - 36FF598C0D9764E4AE87E840237BA75B /* AMapURLSearchType.h */, - 68C6374ADCD5FD0BC332791ABBCF4F8C /* AMapUtility.h */, - 4C36C86C10746A523F335B07252AB15B /* Frameworks */, - 5D535959721623B27BFBFCBD8C205228 /* Support Files */, + D195EE12A7242B6960BDA464D00CF39D /* PrivacyInfo.xcprivacy */, ); - name = "AMapFoundation-NO-IDFA"; - path = "AMapFoundation-NO-IDFA"; + name = Resources; sourceTree = ""; }; - 2769E7F9A97E798E66B995219246DE7C /* WechatOpenSDK-XCFramework */ = { + 2E788BFB93B8906F10376811DA4DCCC0 /* Resources */ = { isa = PBXGroup; children = ( - 6B922FE864036FD7498A87F5024F2058 /* Frameworks */, - F8464A5C3EF711FD122774272378CF6E /* Support Files */, + 2924FA1CCC272E301C4519279F9D672F /* PrivacyInfo.xcprivacy */, ); - name = "WechatOpenSDK-XCFramework"; - path = "WechatOpenSDK-XCFramework"; + name = Resources; sourceTree = ""; }; - 2A351BF15AB623714B51C163D98C32F2 /* JCore */ = { + 33C949C4C2EBFCEE69AF566B1C7A06BA /* AMap3DMap-NO-IDFA */ = { isa = PBXGroup; children = ( - D44D87B1FCB6B5D7887C6F110AE17293 /* Frameworks */, - 4ABB20388FB9EDFBC2110B905014059F /* Support Files */, - ); - name = JCore; - path = JCore; - sourceTree = ""; - }; - 30D785C6AB9C62FE21F5E25D6CF89F9E /* Core */ = { - isa = PBXGroup; - children = ( - D8ED740F9377F944E3895021F134AC68 /* IQBarButtonItem.swift */, - DD68AF4711DE3DCD592D096BC6577207 /* IQBarButtonItemConfiguration.swift */, - 34893074C574951651CAE0489239E848 /* IQInvocation.swift */, - 0AA33750C13A35FA4DFFEA7D3E1D6F71 /* IQKeyboardToolbar.swift */, - 4BEEC8D5C43F1F1BA28301F6F1167C87 /* IQKeyboardToolbarPlaceholderConfiguration.swift */, - 3583620D179FA09F78F1B6A29B53FD58 /* IQTitleBarButtonItem.swift */, - CDB04A2BDB7E068229CAF7A81165DD65 /* UIView+IQKeyboardExtension.swift */, - 7ED417277D89101687DEA83AAF66F65C /* UIView+IQKeyboardExtensionDeprecated.swift */, - AC0FF26EF54F0D2CCEEC60FB7E97B123 /* UIView+IQKeyboardExtensionObjc.swift */, - ); - name = Core; - sourceTree = ""; - }; - 3279BEDED0C91F18EADFB032DE492746 /* Support Files */ = { - isa = PBXGroup; - children = ( - B5A0A97D73FD94FDE81627BCEE94F1C4 /* IQKeyboardCore.modulemap */, - 24AB5750A05B063EA0DA3264D3001A19 /* IQKeyboardCore-dummy.m */, - 505941D186BD82B6E02B787E89B1C356 /* IQKeyboardCore-Info.plist */, - 53B577B7CE9C0F08BED5686A89801EE4 /* IQKeyboardCore-prefix.pch */, - 8B634D0C8582340A26DF881074996135 /* IQKeyboardCore-umbrella.h */, - 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */, - D2B0169030016DBD87F970A973A138AD /* IQKeyboardCore.release.xcconfig */, - EF54B42FE0B021F5D3CDD98608D65DC8 /* ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist */, - ); - name = "Support Files"; - path = "../Target Support Files/IQKeyboardCore"; - sourceTree = ""; - }; - 3639459FE754ED7E623ABF3E8B9CEBD2 /* Placeholderable */ = { - isa = PBXGroup; - children = ( - BD5EDDC96EA8A526C228C3ABF1B82399 /* IQPlaceholderable.swift */, - ); - name = Placeholderable; - sourceTree = ""; - }; - 3A2168E47847B8483D459C9DE12A756D /* Support Files */ = { - isa = PBXGroup; - children = ( - C582DCBB25F9FD804B0DD31A72557820 /* IQKeyboardToolbar.modulemap */, - A528053628879455AB95D1D237A78AED /* IQKeyboardToolbar-dummy.m */, - DA27C00D82366242724F675C7E3A6BFD /* IQKeyboardToolbar-Info.plist */, - 1C5A9BF8CC34F207CD736C514BE4E7A9 /* IQKeyboardToolbar-prefix.pch */, - C93B314BF63192FFFEA853AD9BA8066A /* IQKeyboardToolbar-umbrella.h */, - 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */, - E58F90C5C01D15A1D8477A2F76C55479 /* IQKeyboardToolbar.release.xcconfig */, - 6AE8EF33DA600DB0EFAC9BBD00770D02 /* ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist */, - ); - name = "Support Files"; - path = "../Target Support Files/IQKeyboardToolbar"; - sourceTree = ""; - }; - 3BFA6C7763308FF08A2BB58AACE9566E /* AMap3DMap-NO-IDFA */ = { - isa = PBXGroup; - children = ( - C615ED8173496D8C147DB28F59F9F67E /* MAAnimatedAnnotation.h */, - A9E48F379ACA8E9BCCAA467CA89ABF4A /* MAAnnotation.h */, - 3C48262702361091FBD5781B0F283DFE /* MAAnnotationMoveAnimation.h */, - 1E836A6EBA8DFB16F89B80B9E240181F /* MAAnnotationView.h */, - E8064F1ACE496CC1AE128FFDF32AF3E2 /* MAArc.h */, - 22FEBEF7276FDE9FC7112A3B40888E0D /* MAArcRenderer.h */, - 7E69BA4197634200C8605805B0C5F57A /* MABaseEngineOverlay.h */, - 3E834D9058B55541C3FD1368754163BD /* MABaseOverlay.h */, - 8BE9B5D6111FAF1BBAD248C3AFE07C26 /* MACircle.h */, - 8608C61CF8BA1D5CA044FF84821D9635 /* MACircleRenderer.h */, - FAE352943F84CF1F87B4462638AE8F18 /* MAConfig.h */, - 61334938998DD56FB7176AA67E7796CE /* MACustomBuildingOverlay.h */, - A55F0EA1CF98666CC54E6179EFEB3FEF /* MACustomBuildingOverlayRenderer.h */, - EBA5A2153A7B70835913DD6D1524E81E /* MACustomCalloutView.h */, - 8C3C1260F5F1828322AF349A37E45410 /* MAGeodesicPolyline.h */, - 606C5CFB2DD86DA601C36633BB6E9227 /* MAGeometry.h */, - 96A7CDFC8C50B2921E48D845688BD449 /* MAGroundOverlay.h */, - 8A4955BD2D6B837C1AFE332DC02F229B /* MAGroundOverlayRenderer.h */, - E6B0E1AAA5225E113179D3AC9F989DF5 /* MAHeatMapTileOverlay.h */, - BDB6452999256D2DF97D65A8AFE1FE44 /* MAHeatMapVectorGridOverlay.h */, - 1EE9BE36A9708049EB256766BA9BA1C7 /* MAHeatMapVectorGridOverlayRenderer.h */, - 569001181B8BE3D065C344C62500F175 /* MAHeatMapVectorOverlay.h */, - 02DA1675D3DF93B18F8927862A7FDA75 /* MAHeatMapVectorOverlayRender.h */, - 59FC7750B336D68DAD91386AFEBB3AEF /* MAIndoorInfo.h */, - EA5ECDD2101FE053DF1B8A46BB43772C /* MALineDrawType.h */, - F7237538405836409CB43509E3388D83 /* MAMapAccessibilityIdentifier.h */, - 1CCD1345A443E0DA94158F36DD898B5D /* MAMapCustomStyleOptions.h */, - E0F761FE0B098205EE12A869B3BB104B /* MAMapKit.h */, - E97A7F595151E2AD4F30897F4B748EA9 /* MAMapSnapshot.h */, - 45B6A705BCE14AB0BB965DAE2E740B34 /* MAMapStatus.h */, - 58653AFE6B358C639F97F8975BAB3FC7 /* MAMapVersion.h */, - 0765EFE771A4A4A2F0F58A914B4E21C2 /* MAMapView.h */, - A887BA5DD84AFB6405BA57323FCE8F0B /* MAMapView+Resource.h */, - 94A40C00F73E0E81F1EC934D99316B7C /* MAMultiColoredPolylineRenderer.h */, - 809AD13D76C4DBC1165D5E2F33B4A13A /* MAMultiPoint.h */, - D1086E217E4FD8CD9A1999C4CC605222 /* MAMultiPointOverlay.h */, - A6EA67538179CD91CD56FFCAD0626066 /* MAMultiPointOverlayRenderer.h */, - DFDC309A50F01E88696489F1677C3AA7 /* MAMultiPolyline.h */, - FF151EDD3DF75406929ACA6D262AA65C /* MAMultiTexturePolylineRenderer.h */, - CF87FBE2D4B19937F3E9A942696ECB5A /* MAMVTTileOverlay.h */, - FBCA526A0BEFD238489E9050C4B47CB7 /* MAMVTTileOverlayRenderer.h */, - 07D967A1100CF811A66390D51EB5A6E2 /* MAOfflineCity.h */, - 7D9F044857F251A31321EF21554EB709 /* MAOfflineItem.h */, - 205EB9340BF8698369EA925117E55975 /* MAOfflineItemCommonCity.h */, - 22A1064CD5D18DA7AED4D67EE50B28CF /* MAOfflineItemMunicipality.h */, - EF17C02FB5EDE9DC941DACEB1BF37A67 /* MAOfflineItemNationWide.h */, - F0E323C689432F05D4DCE1478FE98A38 /* MAOfflineMap.h */, - 713CC318C38869C97FB47759DA618B4B /* MAOfflineMapViewController.h */, - B3AE51D64EA8212082A2215BE56D852C /* MAOfflineProvince.h */, - 01ACB31CCA98A0BA58C407BB759CBD44 /* MAOverlay.h */, - F1EAE16DD95B4D774A7F33C84C92A987 /* MAOverlayPathRenderer.h */, - EAD4712612A5077FB71A6D13B7C6AB79 /* MAOverlayRenderer.h */, - FE9187432460BB6FE0DF674937D7E42E /* MAParticleOverlay.h */, - ED1ED4E7D70A14D1BD220D30119286E2 /* MAParticleOverlayOptions.h */, - 117548D53BE326B446EDB8C9CB64B68E /* MAParticleOverlayRenderer.h */, - 6E17159F496580E082DD42D59F547B39 /* MAPathShowRange.h */, - 5411F5B198CFD957C9CD536AB2D54AA5 /* MAPinAnnotationView.h */, - 582CAD303F8413036F3444028D850F4B /* MAPoiFilter.h */, - B8A46592E83A53CA8AB70662CB8DF906 /* MAPointAnnotation.h */, - 7DFF1E9E404B66479E1C8127D024F8A5 /* MAPolygon.h */, - 9CEDABC4D125BC75920E31F38A35A415 /* MAPolygonRenderer.h */, - 0A3628E425118DE571E2E1BE39F07123 /* MAPolyline.h */, - 2C0D83D64DA05F98461682B1107B1B4E /* MAPolylineRenderer.h */, - 21DDA7D033A7C2EC6807E087D05B8114 /* MARouteOverlay.h */, - 9E358C28D730461F823AA142E176EB0C /* MARouteOverlayModel.h */, - 86051726F35A59F1AD195C5B74BCB853 /* MAShape.h */, - 2E92D7304A8A78DAEF9943AB04A94116 /* MATerrainOverlay.h */, - 607850C8AE036A90433104E7F0697F47 /* MATerrainOverlayRenderer.h */, - 50F5A25E8047CF0286E9929854002827 /* MATileOverlay.h */, - 2C9513A9951DA3DCAB3F59B6DF22F7DE /* MATileOverlayRenderer.h */, - B8442EDA82E520DD01BEACF61F58E60E /* MATouchPoi.h */, - D702515773E3DF4969443386C85C55CD /* MATraceLocation.h */, - 4FEC114D3F1C5AE65CD441BD62650BB8 /* MATraceManager.h */, - CBE00B7180E351F1E2A6A92CC529B41F /* MAUserLocation.h */, - DA598BC1826B04340DCAC8EF685201E7 /* MAUserLocationRepresentation.h */, - EC0B71710DB35FB187FC61098A2EB88E /* Frameworks */, - 046B5F60AC34784A569BD49FA2092799 /* Resources */, - 56A3C18F21113D96E70BB6C6C8C070FC /* Support Files */, + C7F16FCE59EA776D68BCA96044AB643B /* MAAnimatedAnnotation.h */, + FB3211C8AD4603F8397DE7ED0479BDAD /* MAAnnotation.h */, + 43E338487B2FD0168DB6C36843190F0E /* MAAnnotationMoveAnimation.h */, + 78E5C4BC9F421F0030A47836705FE8C7 /* MAAnnotationView.h */, + AE545D7C7BC8717AD1293E91D09033F0 /* MAArc.h */, + 86B6AC948C427FB67A9A40BF124DA621 /* MAArcRenderer.h */, + 2EC7A621AB8CB362644A06190DB1224A /* MABaseEngineOverlay.h */, + 5881F9C9310C4D9AFCE6C492C453F4E7 /* MABaseOverlay.h */, + 7067197E3E18A6472D83E1BF20A2DF39 /* MACircle.h */, + 659D0CF1C22A308AA4BBC12C690EFF76 /* MACircleRenderer.h */, + B8476A96BE982F855EDE7EECC0AC906F /* MAConfig.h */, + 3EE1C67A22E73C71C54EF9A0E5E98061 /* MACustomBuildingOverlay.h */, + 74C0A97F8A621324A3DABEF21272551D /* MACustomBuildingOverlayRenderer.h */, + 7055CF7462CB8E3DDB9CB84914F0D047 /* MACustomCalloutView.h */, + 6899E9B61D97F7A88D1AE73011313A21 /* MAGeodesicPolyline.h */, + CCBC3902C2DD89F6B74BFE08F7A9DC48 /* MAGeometry.h */, + E8E9C7FCBB1628F0AF444C2DB616C938 /* MAGroundOverlay.h */, + 233D93E73EE1D7FDB94D7B4E60B2F3E8 /* MAGroundOverlayRenderer.h */, + BD88BA8FC4CDC4CDF011EE41273240C1 /* MAHeatMapTileOverlay.h */, + 7E638915ECBDA2C39BDCFBACBDC0E28C /* MAHeatMapVectorGridOverlay.h */, + 47B29EC516D4DA9C641873A4E761DC16 /* MAHeatMapVectorGridOverlayRenderer.h */, + AEFD6F12ED3038D1F73D5ECBCA0A3CBF /* MAHeatMapVectorOverlay.h */, + 40CABFE86EA5475F61478E0125A87C7B /* MAHeatMapVectorOverlayRender.h */, + 0911AE053F5B9AE721FE34FCF6FF62F3 /* MAIndoorInfo.h */, + 72F8FB18750917203BE32320D47C16AB /* MALineDrawType.h */, + 24DA51F3F8BD4C7A91DADAC0C0F62284 /* MAMapAccessibilityIdentifier.h */, + C0BCD3AF604048516EAC8913C6A01273 /* MAMapCustomStyleOptions.h */, + 140C24CF94B74B365353785AAD7781FE /* MAMapKit.h */, + 684810A159CC0F5F54EC89B87AC327C8 /* MAMapSnapshot.h */, + 57412EC3570F1A67F503074046DFE7F5 /* MAMapStatus.h */, + 00D14718B29FD331A2247C81252659BE /* MAMapVersion.h */, + 80B97563DD9EE42FB83F21CD7ECA8893 /* MAMapView.h */, + 707DA09A7E71877897FA79B5D0851453 /* MAMapView+Resource.h */, + 989E962A812F16459AFDEE6C7D323409 /* MAMultiColoredPolylineRenderer.h */, + C6E5D9D64B6AABE6937DCEA19B46DD79 /* MAMultiPoint.h */, + 22707E06938D36978342F7E04FBA3E33 /* MAMultiPointOverlay.h */, + C8D6630F56DE8A616BF4AF6A3E8FB586 /* MAMultiPointOverlayRenderer.h */, + 92531E37878C3A0E7B0535022EED3DFD /* MAMultiPolyline.h */, + 562049081AA7BA85836F65F0154A41E8 /* MAMultiTexturePolylineRenderer.h */, + 0E768B108DBA5CC9149342EFAC582F86 /* MAMVTTileOverlay.h */, + 0EBDD9D77C00C1B6B42EF06289ED81E6 /* MAMVTTileOverlayRenderer.h */, + B46217D14293E54C73A85F1BD3301FE8 /* MAOfflineCity.h */, + 90CEB809A08ADDFF65DE3E2CE6210120 /* MAOfflineItem.h */, + 721D4CFBC2A333A24E9AFFB201CFE629 /* MAOfflineItemCommonCity.h */, + 0016DB9B9376D3CEDD92C0E35129967E /* MAOfflineItemMunicipality.h */, + 9DE3CDAB45445DD7086D7CDC6F864A8D /* MAOfflineItemNationWide.h */, + 6B197BD93E8C7BDB71A2A0DDB792C0AE /* MAOfflineMap.h */, + B2CF147BDD9EF2098912F69A7BFF89DD /* MAOfflineMapViewController.h */, + CD4FE136E9A99BAE0FA8EBFC4AC80FB4 /* MAOfflineProvince.h */, + A8573CC4CF72940E255AF095FEA84D0E /* MAOverlay.h */, + 327DFA2871C3DF1F35DF6522BE6D856C /* MAOverlayPathRenderer.h */, + 643D01EDC860F2BAF98169C2F246AC5C /* MAOverlayRenderer.h */, + CE4AE66CE966DE231E272316E63E53EC /* MAParticleOverlay.h */, + F7E22135559ACE352548CFD9ABB79BCA /* MAParticleOverlayOptions.h */, + 3588749BFDB1A89C82B482E9E8C96622 /* MAParticleOverlayRenderer.h */, + F38BAFEE9D73F8D4DC3463EC036ABE11 /* MAPathShowRange.h */, + 7F9148481791CA6ACA5381910B5FD141 /* MAPinAnnotationView.h */, + 196A9E4648F826867018FBE76BE4A27B /* MAPoiFilter.h */, + 6B653B098FA73A44AE03CCB910AE8FBA /* MAPointAnnotation.h */, + 30B0F6201C301BB01F37EE64F61B9983 /* MAPolygon.h */, + E539D0B30D08031698030A03892FF590 /* MAPolygonRenderer.h */, + 5882792FE746E1E359A5AD3DB4483351 /* MAPolyline.h */, + 38EBFCECEDF6B0177C19F36F20D9615F /* MAPolylineRenderer.h */, + 6E3056FA5A7491EB6B9168F4DCB89CF8 /* MARouteOverlay.h */, + 6243BFD239C17E85134CCB10FE9FAAC0 /* MARouteOverlayModel.h */, + 2A1AAD1937CC0190BBCE194ABF7D67AF /* MAShape.h */, + 0F117F7702A857584C6E59BA2AEDDB42 /* MATerrainOverlay.h */, + C286CE80B5550AF484AF054CFE65DE2C /* MATerrainOverlayRenderer.h */, + 69916FBCA731F366F9F2550E789E9D24 /* MATileOverlay.h */, + 2A0D3A9B9B1F461CCBB987BF6A148FF6 /* MATileOverlayRenderer.h */, + 61E7B525F895021509512D66E237C998 /* MATouchPoi.h */, + 5596FE4C18E829ADBEECC5ACDF02EB31 /* MATraceLocation.h */, + 9614779050BB3EBD1097F039DEADD27B /* MATraceManager.h */, + 24B3915A78364E56EEE3E8AF146F6C8D /* MAUserLocation.h */, + 932F8EAA35C1D5F87D138C4006A1815F /* MAUserLocationRepresentation.h */, + 4E773E245980E1ADEEBCABB098C04341 /* Frameworks */, + CFF64AB64E21524BF6A3019033D79E16 /* Resources */, + A2F6C398C06E89855411D63D0058B318 /* Support Files */, ); name = "AMap3DMap-NO-IDFA"; path = "AMap3DMap-NO-IDFA"; sourceTree = ""; }; - 3D18EA5122DA11E42DE9B7B0E71E3BE4 /* IQKeyboardCore */ = { + 39B81D6F9310BF4E5AEB58CD0AC74A1A /* AMapSearch-NO-IDFA */ = { isa = PBXGroup; children = ( - D4ADD25EEB716A656CC0DBEDCC9790D4 /* IQKeyboardConstants.swift */, - CA76A2A5EC61CC8B474C1A4551226332 /* IQKeyboardExtended.swift */, - 7E0A31927D7E41BFDD984506DC0F5E99 /* IQTextInputView.swift */, - E5F0A37891F1A7765B99C903153C0945 /* UIView+Hierarchy.swift */, - E42F6AA6B0BF64809371E39FF768BC7B /* Resources */, - 3279BEDED0C91F18EADFB032DE492746 /* Support Files */, + 1AC5BFA4C48724D90AA9C4DAB900E68B /* AMapCommonObj.h */, + 7035E4745377EBEB3C787811A19BCC0E /* AMapNearbySearchManager.h */, + 0CF2374471C2CEEC69E3FE0C9071A9D1 /* AMapNearbyUploadInfo.h */, + D2442DAFEEABF11200E680955456504F /* AMapSearchAPI.h */, + EFB63127C0E518CF38404A5A50137D63 /* AMapSearchError.h */, + 316ECFAE87C43CE3088F25F6FC8EF85F /* AMapSearchKit.h */, + 1677B1509CB109DB8CF29FB1D829AB16 /* AMapSearchObj.h */, + 91EDAEAA8F13DC15EFC4DADC6261AD21 /* AMapSearchObjV1.h */, + 9FE8BDE8B3028D4046E3ADFF6D71C2A4 /* AMapSearchVersion.h */, + 9BEA03AC0C1F5ACA6FF8438E65F34DA8 /* Frameworks */, + F448F353060513B50DC243E33071B811 /* Support Files */, ); - name = IQKeyboardCore; - path = IQKeyboardCore; + name = "AMapSearch-NO-IDFA"; + path = "AMapSearch-NO-IDFA"; sourceTree = ""; }; - 4ABB20388FB9EDFBC2110B905014059F /* Support Files */ = { + 3B1DACEA4B3325B4D89017569A1A2DCA /* IQKeyboardNotification */ = { isa = PBXGroup; children = ( - 6AE1DF2DC452D2788B6E2B8392A48BF1 /* JCore-xcframeworks.sh */, - 9F44C0F5A31C9EFE79B6821581FC6A90 /* JCore.debug.xcconfig */, - FA43AA432E51DD3E160CB45F75EDD874 /* JCore.release.xcconfig */, + E8B9584100C63E03D75F12EF28FE46D8 /* IQKeyboardInfo.swift */, + 209A273DFA6CB48721E810D588DFD907 /* IQKeyboardNotification.swift */, + 26A86FB29D5950F8AFD06DFAC9E4A33D /* Resources */, + EC4A02C8266D539615F8281A0713BA97 /* Support Files */, + ); + name = IQKeyboardNotification; + path = IQKeyboardNotification; + sourceTree = ""; + }; + 3B7BDC01C4C090C1F173641FAEC38477 /* Frameworks */ = { + isa = PBXGroup; + children = ( + C73BB9F448E56B49D4F5FE5D9987B78F /* UMAPM.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 4481CD82F037CAA82956AE0E2E47296E /* IQKeyboardManagerSwift */ = { + isa = PBXGroup; + children = ( + E114BC63459388CB2BFA23BF31BC1C71 /* Appearance */, + 74F707122E3E56EC209B54F1E9DB8024 /* Core */, + 23EE4A08AC63F1F7C781697CCFE9866B /* IQKeyboardToolbarManager */, + 6470B48A24923618B41FFB02D5BB253D /* Resign */, + AE79D9ABAE2FCE9F97081CF644AFBD3A /* Resources */, + 4DBE268BEA100724C87C063F3F82428B /* Support Files */, + ); + name = IQKeyboardManagerSwift; + path = IQKeyboardManagerSwift; + sourceTree = ""; + }; + 44BBB4BB04DA5469FD443584AABA8779 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 5629E0F117BEA473144E2420C84A1A0D /* AMapFoundationKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 46D541F82C815DFC6AAB662C924A819D /* Support Files */ = { + isa = PBXGroup; + children = ( + 655D6F4504BA9F7B8E38F5DF66CEDA16 /* UMDevice-xcframeworks.sh */, + B184A8220FD8F49AFB9FA1C67C8F4085 /* UMDevice.debug.xcconfig */, + D4441EC6FD7E6501CD6A029CC5547EB7 /* UMDevice.release.xcconfig */, ); name = "Support Files"; - path = "../Target Support Files/JCore"; + path = "../Target Support Files/UMDevice"; sourceTree = ""; }; 4AEBC9A0614C37290E19500398FB7CD9 /* Pods-suixinkan */ = { @@ -1361,73 +1312,75 @@ path = "Target Support Files/Pods-suixinkan"; sourceTree = ""; }; - 4C0F533B7756B11ECC262D9FFAF51282 /* UMAPM */ = { + 4D8D15BE86C6631EEBC53382A88B7043 /* Placeholderable */ = { isa = PBXGroup; children = ( - 03B91A177B2A7F65139A6D55296AAD68 /* Frameworks */, - C46A5FACF107BDA2938FF9CD084FFDA3 /* Support Files */, + 265515AE6516C3B325D5961DCA814A4A /* IQPlaceholderable.swift */, ); - name = UMAPM; - path = UMAPM; + name = Placeholderable; sourceTree = ""; }; - 4C36C86C10746A523F335B07252AB15B /* Frameworks */ = { + 4DBE268BEA100724C87C063F3F82428B /* Support Files */ = { isa = PBXGroup; children = ( - 50EEC35FAFA65B05F310CBA561C28927 /* AMapFoundationKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 4E8E1335F09602994B3CF0038FDF0547 /* Resources */ = { - isa = PBXGroup; - children = ( - 9517DFB02CF19FA4C175500597CC473D /* PrivacyInfo.xcprivacy */, - ); - name = Resources; - sourceTree = ""; - }; - 515F2E1A8214FBE2EDBA85B04C9F6A62 /* Support Files */ = { - isa = PBXGroup; - children = ( - 2C2A760C8FC191090821FFA8F92D1BA6 /* IQKeyboardManagerSwift.modulemap */, - 72047D59C9D0EA03C1447E76203105F5 /* IQKeyboardManagerSwift-dummy.m */, - 51E60014F4AFF046CCAEFB326E631B53 /* IQKeyboardManagerSwift-Info.plist */, - B79499F18F5215A6EF9F0698F1427102 /* IQKeyboardManagerSwift-prefix.pch */, - 4D43C0E4C0ABC428E9D5A5AE717B658E /* IQKeyboardManagerSwift-umbrella.h */, - 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */, - BDDEE926B156A69E8B915347853ECEC5 /* IQKeyboardManagerSwift.release.xcconfig */, - 0DE500824E8236FB34E7FC4EDF80F03E /* ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist */, + 95839D8D8B2F23293EBF04B5730EA40E /* IQKeyboardManagerSwift.modulemap */, + 7F68AAFC87ADF8F019EE78C7BC767213 /* IQKeyboardManagerSwift-dummy.m */, + 8B6BEA1893E1C03156815824B5025A47 /* IQKeyboardManagerSwift-Info.plist */, + 5D0EF49E78A574D04EBCC72388BC9337 /* IQKeyboardManagerSwift-prefix.pch */, + 1E8C6E85CBE09A894E15473B2ACFF25F /* IQKeyboardManagerSwift-umbrella.h */, + 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */, + FF1A51684BE9AD249695A507E8AE84BF /* IQKeyboardManagerSwift.release.xcconfig */, + 66BB860BB0ACF1B74DF2E0C0EC1BFF82 /* ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist */, ); name = "Support Files"; path = "../Target Support Files/IQKeyboardManagerSwift"; sourceTree = ""; }; - 520CDF7916D7BB0DFCBC420F6DB50D65 /* Pods */ = { + 4E773E245980E1ADEEBCABB098C04341 /* Frameworks */ = { isa = PBXGroup; children = ( - 3BFA6C7763308FF08A2BB58AACE9566E /* AMap3DMap-NO-IDFA */, - 23803FF45F499BC02ACD274D0BFAD8A3 /* AMapFoundation-NO-IDFA */, - 732F454E93A867365204D496FC6DF594 /* AMapLocation-NO-IDFA */, - 60F7E1FF3DDFF744C607AE341E94AB06 /* AMapSearch-NO-IDFA */, - 3D18EA5122DA11E42DE9B7B0E71E3BE4 /* IQKeyboardCore */, - 602E5681C7D3C9F2F8F9C479CBF09336 /* IQKeyboardManagerSwift */, - EB8B5B05F9AEE6EF38E78653B5A1AB95 /* IQKeyboardNotification */, - AB638B82CB2671C730E5541D1EF6C548 /* IQKeyboardReturnManager */, - 8B7D83B1AAA915E59ABF028B30082FE4 /* IQKeyboardToolbar */, - 061787039B0BB942ED49998307180813 /* IQKeyboardToolbarManager */, - CC0A28B4F081AD9BFEA173D4C3BAF653 /* IQTextInputViewNotification */, - 554E29F7253AB34E1FD096B6960ACD1F /* IQTextView */, - 2A351BF15AB623714B51C163D98C32F2 /* JCore */, - B7DD817AF7478DD1DAF2BF4F87698BAE /* JPush */, - 4C0F533B7756B11ECC262D9FFAF51282 /* UMAPM */, - 589E6061BECBD4714048A400F55721D1 /* UMCommon */, - AD3949A7EC8E24D927D4905755B04D6D /* UMDevice */, - 2769E7F9A97E798E66B995219246DE7C /* WechatOpenSDK-XCFramework */, + 3FBF7D60272DE7F04F608847182770D1 /* MAMapKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 4E8E73B0D95B9DF2DC613CF17FF94B61 /* Pods */ = { + isa = PBXGroup; + children = ( + 33C949C4C2EBFCEE69AF566B1C7A06BA /* AMap3DMap-NO-IDFA */, + 94AF0C1BF0637DE33C600A905B325AB0 /* AMapFoundation-NO-IDFA */, + A5195BD59A9DB6B60F1C27DC83714934 /* AMapLocation-NO-IDFA */, + 39B81D6F9310BF4E5AEB58CD0AC74A1A /* AMapSearch-NO-IDFA */, + B1078AE2E0BB31006606E09592168E39 /* IQKeyboardCore */, + 4481CD82F037CAA82956AE0E2E47296E /* IQKeyboardManagerSwift */, + 3B1DACEA4B3325B4D89017569A1A2DCA /* IQKeyboardNotification */, + E28CA03D952064FA8670CE57935D6253 /* IQKeyboardReturnManager */, + 04FDA7EB08893E90978EDA86E4F15024 /* IQKeyboardToolbar */, + E6CEF6838EE3006B0B001A0232541FC0 /* IQKeyboardToolbarManager */, + F5FCBF2314B4EB54739C2EF1B8A759B2 /* IQTextInputViewNotification */, + 25F14707FC4FA354EEEDE4E0F5910477 /* IQTextView */, + A0E6B48D23FB3AD594F90D1F242CF9AF /* JCore */, + 74FD86EEC758F5FA311C5373BEB086C0 /* JPush */, + CF4C1B7D1FAE518ABBF0AEF896CA488C /* UMAPM */, + 1CD1084BC0401D493658F56C10364EAF /* UMCommon */, + C5E0B71C1457F39AFA957A7F262C41C2 /* UMDevice */, + 559C377468C97D04B3B5D5CE96F4B224 /* VolcEngineRTC */, + B54B9468033BE23DAF5556C34EDE63F8 /* WechatOpenSDK-XCFramework */, ); name = Pods; sourceTree = ""; }; + 512BB483EC5CCE9E048394226E889566 /* Support Files */ = { + isa = PBXGroup; + children = ( + D7ACFC49738FF4F612D385219B5A5498 /* UMCommon-xcframeworks.sh */, + 0C5373D6FEC052390EF0155BC139DA74 /* UMCommon.debug.xcconfig */, + 83448C8FCF4765056F1A35E450B655E6 /* UMCommon.release.xcconfig */, + ); + name = "Support Files"; + path = "../Target Support Files/UMCommon"; + sourceTree = ""; + }; 5537570973B02316996F087DD3C28666 /* Pods-suixinkanTests */ = { isa = PBXGroup; children = ( @@ -1445,146 +1398,101 @@ path = "Target Support Files/Pods-suixinkanTests"; sourceTree = ""; }; - 554E29F7253AB34E1FD096B6960ACD1F /* IQTextView */ = { + 559C377468C97D04B3B5D5CE96F4B224 /* VolcEngineRTC */ = { isa = PBXGroup; children = ( - 097E3C45E430629A425D0B19A2A6E19C /* IQTextView.swift */, - 603C9655C429A8AFD3A2ABB90354F0D3 /* IQTextView+Placeholderable.swift */, - 9B0F3E052867A07902A6A2420D5485CE /* Resources */, - E53E71F1F1B8EDB0D00DCF8007422754 /* Support Files */, + 5BC5D4592AAAE4E3A19157C7AB191343 /* Core */, + 24A25D5D6B13853B408AF50746501B89 /* RealXBase */, + FE36BBF38DDAF33E23DD5465F236060F /* RTCFFmpeg */, + BD899D6BCB72FF24A2657897234D0E11 /* Support Files */, ); - name = IQTextView; - path = IQTextView; + name = VolcEngineRTC; + path = VolcEngineRTC; sourceTree = ""; }; - 56A3C18F21113D96E70BB6C6C8C070FC /* Support Files */ = { + 5B3C0813D128A45E751A0AC71DA3C895 /* Frameworks */ = { isa = PBXGroup; children = ( - C7C310CD68DF209957D60358329E9D5B /* AMap3DMap-NO-IDFA.debug.xcconfig */, - 649233ED6CEAD11508C3FEC87609ADF7 /* AMap3DMap-NO-IDFA.release.xcconfig */, + 391A9DEE79A34E4C8E57A0B9707F02BA /* jcore-noidfa-ios-5.4.2.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 5BC5D4592AAAE4E3A19157C7AB191343 /* Core */ = { + isa = PBXGroup; + children = ( + B3031E0D8DC315A2A4B0FA287EC402DC /* Frameworks */, + ); + name = Core; + sourceTree = ""; + }; + 6470B48A24923618B41FFB02D5BB253D /* Resign */ = { + isa = PBXGroup; + children = ( + 69234E4D1FF97AA77BC3546B03B96407 /* IQKeyboardManager+Resign.swift */, + 10A4A0EAA84E9607D6E867137638C0B7 /* IQKeyboardManager+Resign_Deprecated.swift */, + 6FA0B342A73D28669E2FA554F3636EDD /* IQKeyboardResignHandler.swift */, + 236F47C2E0820E91686A2967CD6F760F /* IQKeyboardResignHandler+Internal.swift */, + A389B2EDC5D1D81EF043A12391638BC1 /* UIView+Resign.swift */, + 672521CE7AABAB88CAC5DA46DE3917EE /* UIView+ResignObjc.swift */, + ); + name = Resign; + sourceTree = ""; + }; + 71246DF8BFC3526B5A8702F8FE003278 /* Support Files */ = { + isa = PBXGroup; + children = ( + 0D48DDB2B1DA7335575EE4951A7C50B5 /* WechatOpenSDK-XCFramework-xcframeworks.sh */, + A3ADF11FAEAC8F80DA91E2D23F4F5C48 /* WechatOpenSDK-XCFramework.debug.xcconfig */, + C2A0B423670E836CA2EA43C41CB19811 /* WechatOpenSDK-XCFramework.release.xcconfig */, ); name = "Support Files"; - path = "../Target Support Files/AMap3DMap-NO-IDFA"; + path = "../Target Support Files/WechatOpenSDK-XCFramework"; sourceTree = ""; }; - 589E6061BECBD4714048A400F55721D1 /* UMCommon */ = { + 71C7E423D3DEDE0819495B345A994FE5 /* Support Files */ = { isa = PBXGroup; children = ( - ACC27663C7D4373253B19FC29790ED5A /* Frameworks */, - 6A53867946ADBB60562D9EF2FFE2AAA7 /* Support Files */, - ); - name = UMCommon; - path = UMCommon; - sourceTree = ""; - }; - 59B51CCB97227B7CE340DCEBED7AA228 /* Resources */ = { - isa = PBXGroup; - children = ( - BC217F78CA99FD3D41A3303B824C278D /* PrivacyInfo.xcprivacy */, - ); - name = Resources; - sourceTree = ""; - }; - 5CCC928438331C779735013E7CEC4C1E /* Appearance */ = { - isa = PBXGroup; - children = ( - 095CB762599A53A99A9ACC8DBC8C0591 /* IQKeyboardAppearanceConfiguration.swift */, - 73F4A4C2EB0A4E49EC7BFE3DACD2CCD5 /* IQKeyboardAppearanceManager.swift */, - D8ABCFBB8BDD11CFBF49406BF0165A41 /* IQKeyboardAppearanceManager+Internal.swift */, - 407749166D56AC58042E7F89FDD486AD /* IQKeyboardManager+Appearance.swift */, - FC4A4ED3AA953F5ADE3FA7EC8F671377 /* IQKeyboardManager+Appearance_Deprecated.swift */, - ); - name = Appearance; - sourceTree = ""; - }; - 5D535959721623B27BFBFCBD8C205228 /* Support Files */ = { - isa = PBXGroup; - children = ( - 1D1E7E265254C8003D8A5F7C75B7B539 /* AMapFoundation-NO-IDFA.debug.xcconfig */, - 357507030049F8711B5F2560C8BE96B0 /* AMapFoundation-NO-IDFA.release.xcconfig */, + 99E675068425C5A9A5145CD79E3BCA08 /* AMapFoundation-NO-IDFA.debug.xcconfig */, + 9B64B38CCC51FEC6E0F64ABFCE0D6BFF /* AMapFoundation-NO-IDFA.release.xcconfig */, ); name = "Support Files"; path = "../Target Support Files/AMapFoundation-NO-IDFA"; sourceTree = ""; }; - 602E5681C7D3C9F2F8F9C479CBF09336 /* IQKeyboardManagerSwift */ = { + 74F707122E3E56EC209B54F1E9DB8024 /* Core */ = { isa = PBXGroup; children = ( - 5CCC928438331C779735013E7CEC4C1E /* Appearance */, - 8B01AA97E6DC3D5A0DE5696F64B7A21D /* Core */, - 19A82AAA72ABA08948565E51B5A6FAFF /* IQKeyboardToolbarManager */, - 00BDB8452B08527967D9BF4BCE67160E /* Resign */, - BD856CC8714F0E23D04C54D8E567B534 /* Resources */, - 515F2E1A8214FBE2EDBA85B04C9F6A62 /* Support Files */, + 5DD839E94220ED93D5D56D7325ACB4AF /* IQActiveConfiguration.swift */, + C5AD54145A409C1D7C94875810471BF1 /* IQKeyboardManager.swift */, + 6638AB504D084AEDF76BD13D6B411686 /* IQKeyboardManager+ActiveConfiguration.swift */, + 4C97F1279DE48FCF5536191CB5FDC744 /* IQKeyboardManager+Debug.swift */, + 7E9328F77C695432E06E224ECFC6F118 /* IQKeyboardManager+Deprecated.swift */, + 32A64F71DA55AE99B5E87755F8EB43D9 /* IQKeyboardManager+Internal.swift */, + C8BC74EE1659FD64F176CD4BE256AF84 /* IQKeyboardManager+Position.swift */, + D054D25DFF58C86E7DD00309158A9533 /* IQRootControllerConfiguration.swift */, + 10C3C8E54ECDED1E0C05111FCCEBE7BD /* IQScrollViewConfiguration.swift */, + 6B2DC97D0BB8EBFBE037BB8888E5152A /* UICollectionView+IndexPaths.swift */, + C2C181E4F940F09E297591DA565280F7 /* UIScrollView+IQKeyboardManagerExtension.swift */, + 19730C7CF0F446CA5D115BD82BD2903E /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */, + 22DE40CC56B3E094BCE71F0843177D6C /* UITableView+IndexPaths.swift */, + 301B8B14D78023F3DD043BCBFC93130A /* UIView+IQKeyboardManagerExtension.swift */, + CFDC64AA2A98DF6AB638AEDFE148C722 /* UIView+IQKeyboardManagerExtensionObjc.swift */, + A3B92976C10CBB84DC9EF347BDFC60CF /* UIView+Parent.swift */, + E1B75F1D0D65299E5DC583CECA54FDAA /* UIView+ParentObjc.swift */, + F3DCEB6C2B197ABE227932FEA2419037 /* UIViewController+ParentContainer.swift */, ); - name = IQKeyboardManagerSwift; - path = IQKeyboardManagerSwift; + name = Core; sourceTree = ""; }; - 60F7E1FF3DDFF744C607AE341E94AB06 /* AMapSearch-NO-IDFA */ = { + 74FD86EEC758F5FA311C5373BEB086C0 /* JPush */ = { isa = PBXGroup; children = ( - 50E0F97385361B4BF66AEF8C2A910F32 /* AMapCommonObj.h */, - 10A7112588A375D793E11F0EB0414C81 /* AMapNearbySearchManager.h */, - 7BE8D3F5CFB6098660E108950BB18879 /* AMapNearbyUploadInfo.h */, - 5F800AC82DC0EBE287853A0A0FB4F5DF /* AMapSearchAPI.h */, - AAF4093F21688BF793E97C7EC0C3C48D /* AMapSearchError.h */, - D376C98F66AE428B2165D3BFCA6CBB0A /* AMapSearchKit.h */, - 6EFF2F85A43C79FF157025B650597669 /* AMapSearchObj.h */, - 2CEB1C0CC7AB3CE014A9DE0963476264 /* AMapSearchObjV1.h */, - F4484DFD00A30223AFF26316F14A2723 /* AMapSearchVersion.h */, - 8EC70130CB3BEBE4354C699B81C8B53B /* Frameworks */, - 6681DC5D6F3E43859A692790D12D2FB4 /* Support Files */, + 8CF7280B91CC791C8414A4F10087597B /* Frameworks */, + B86E9C7076669987F4E23893F9B76308 /* Support Files */, ); - name = "AMapSearch-NO-IDFA"; - path = "AMapSearch-NO-IDFA"; - sourceTree = ""; - }; - 6681DC5D6F3E43859A692790D12D2FB4 /* Support Files */ = { - isa = PBXGroup; - children = ( - 30B02A6B0D6954EF43EFA3789887E608 /* AMapSearch-NO-IDFA.debug.xcconfig */, - 3AAAF0891AEED7CA4AF20AE95070E340 /* AMapSearch-NO-IDFA.release.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/AMapSearch-NO-IDFA"; - sourceTree = ""; - }; - 6A53867946ADBB60562D9EF2FFE2AAA7 /* Support Files */ = { - isa = PBXGroup; - children = ( - A5CAB9A0AF5C7D79C41E91058465C241 /* UMCommon-xcframeworks.sh */, - E64981F07E6AF8250D37F4D1295891B8 /* UMCommon.debug.xcconfig */, - 3F8A7B40939E68E709158AA51CF7B536 /* UMCommon.release.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/UMCommon"; - sourceTree = ""; - }; - 6B922FE864036FD7498A87F5024F2058 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 4BA1B67A9D955479AE8767AECFC1C544 /* WechatOpenSDK.xcframework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 732F454E93A867365204D496FC6DF594 /* AMapLocation-NO-IDFA */ = { - isa = PBXGroup; - children = ( - E5AEDD7F9FD976DFFF047A8BF9EEC6CC /* AMapGeoFenceError.h */, - 95A231D1CAE57B03E3B3AAE66310ABC0 /* AMapGeoFenceManager.h */, - 33005A729F5C775737278F40CCD77F9B /* AMapGeoFenceRegionObj.h */, - CD831F6743DBA4A24C9265372979449E /* AMapLocationCommonObj.h */, - 98A819F75A0DF55BD766887A9A43232E /* AMapLocationKit.h */, - 8CC78E637C86F7BC30C4C3A669049F79 /* AMapLocationManager.h */, - C73A65DB570592414ACDAAF9091E3EEF /* AMapLocationRegionObj.h */, - E78E48748C5DEEFFFD6E4469DA5EA2C1 /* AMapLocationVersion.h */, - EFC04CD4102AE37AED7A86B65EF1E60B /* Frameworks */, - 8C2BE863706DEF05145526386F0B68C5 /* Support Files */, - ); - name = "AMapLocation-NO-IDFA"; - path = "AMapLocation-NO-IDFA"; + name = JPush; + path = JPush; sourceTree = ""; }; 7693C00AD1B9CA6AD0EFB3FCC3C6CAEC /* iOS */ = { @@ -1597,129 +1505,138 @@ name = iOS; sourceTree = ""; }; - 77C012E3A227F889C3968E3ECD2C2F62 /* Support Files */ = { + 830D7654D3140A352D11F1AF914053BA /* Support Files */ = { isa = PBXGroup; children = ( - 36978964993FE13960686DDDD546D75B /* UMDevice-xcframeworks.sh */, - A3CDCD8BAD4E220D8D74F8D8D6DE8034 /* UMDevice.debug.xcconfig */, - DFE51D2405E1E217F50AA3BA1213B3AD /* UMDevice.release.xcconfig */, + 3F86ED90539606ECEE24AB70887270E4 /* IQKeyboardCore.modulemap */, + C800E6213B65C17D9D650EFBA167370D /* IQKeyboardCore-dummy.m */, + 29CA1DFA0D80C1F474279442203CFED1 /* IQKeyboardCore-Info.plist */, + E0AC776726C388E12EFB4BFD36A72AB6 /* IQKeyboardCore-prefix.pch */, + D4F22BBAC26D59FA533BC3E2D6249904 /* IQKeyboardCore-umbrella.h */, + C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */, + 7CE0E04517BD2363A893C1E85B4B248F /* IQKeyboardCore.release.xcconfig */, + AED971CC449F4593B117886F944152E7 /* ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist */, ); name = "Support Files"; - path = "../Target Support Files/UMDevice"; + path = "../Target Support Files/IQKeyboardCore"; sourceTree = ""; }; - 7C4781364ADF28BE6A5FD0B6A4417EFD /* Resources */ = { + 83BE88F4AA11B51C3BC925D36E15C55B /* Core */ = { isa = PBXGroup; children = ( - A372E26A2A397D202C662C0FD912FCA2 /* PrivacyInfo.xcprivacy */, - ); - name = Resources; - sourceTree = ""; - }; - 81644849A152D1E3F1A626F9045C756E /* Support Files */ = { - isa = PBXGroup; - children = ( - 69121CFF53D9CEC42CE44CF34F36F7B5 /* IQKeyboardNotification.modulemap */, - 7F8DC7287225EB89CFFDCA5DD231B629 /* IQKeyboardNotification-dummy.m */, - F3B8F6CD0697840F54110DE73B4B45D2 /* IQKeyboardNotification-Info.plist */, - F567609174F5904AE6D76ECD374854A6 /* IQKeyboardNotification-prefix.pch */, - 9A9A9140CB6ADD033768BB60CEA72E7A /* IQKeyboardNotification-umbrella.h */, - F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */, - 401C0B5E9F8F1552898BFACFDEB8C41D /* IQKeyboardNotification.release.xcconfig */, - A23F97293C46916466F957A9639D75E3 /* ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist */, - ); - name = "Support Files"; - path = "../Target Support Files/IQKeyboardNotification"; - sourceTree = ""; - }; - 8B01AA97E6DC3D5A0DE5696F64B7A21D /* Core */ = { - isa = PBXGroup; - children = ( - C4C246899B9ADD76C47413CFC1900669 /* IQActiveConfiguration.swift */, - 6759C2C05A896EEF5A902F54ED815458 /* IQKeyboardManager.swift */, - E23A19CFE92D16E0C6DF4232CAE6BE95 /* IQKeyboardManager+ActiveConfiguration.swift */, - C5DD064141FD6D9585DDBFF2FE5EF228 /* IQKeyboardManager+Debug.swift */, - B50BF2C383279DDB7880AF4C978116E2 /* IQKeyboardManager+Deprecated.swift */, - 532F94C9C97C09FF016A3ABB96B2DB11 /* IQKeyboardManager+Internal.swift */, - 736B201311554090BB7665BFF33F0B0D /* IQKeyboardManager+Position.swift */, - 60631CBB35BA793CAA9E46A8F1CD243C /* IQRootControllerConfiguration.swift */, - 9EE58245D58F26549A7A8CCB434AC52E /* IQScrollViewConfiguration.swift */, - 4F613BCF49ACE20A304727CA4EDA7E47 /* UICollectionView+IndexPaths.swift */, - BF84270BA52DE4FAC1678E99D700AA50 /* UIScrollView+IQKeyboardManagerExtension.swift */, - E7FD69C0D8168D323ADC0A6EFD7FC1DD /* UIScrollView+IQKeyboardManagerExtensionObjc.swift */, - 244D954871A873D3E39E3064D852B516 /* UITableView+IndexPaths.swift */, - 6388414814252F565A677CD3D17EC014 /* UIView+IQKeyboardManagerExtension.swift */, - DB5660BB9799DC420CD4238B38ED357F /* UIView+IQKeyboardManagerExtensionObjc.swift */, - 70E7C93840EABBEDEEF083F6B142029D /* UIView+Parent.swift */, - 87CC2842EDD9352F470FE692A9B91AA5 /* UIView+ParentObjc.swift */, - 4AF4AEB75D89FF3F06FDE6A004EA9A23 /* UIViewController+ParentContainer.swift */, + E924602982CB402C3DE49FAE6B4E86D7 /* IQBarButtonItem.swift */, + 9FFCB3910600ECA6002BB878B30BA591 /* IQBarButtonItemConfiguration.swift */, + 14791DBACC3C3EBD8BF5D28B23927645 /* IQInvocation.swift */, + 679D26F54B1AA81CAB8B96B96A4E1340 /* IQKeyboardToolbar.swift */, + BD07E0C05CA7DC462A51F4F90DD5AEE7 /* IQKeyboardToolbarPlaceholderConfiguration.swift */, + 939F8DEAB2123EC89A5DD098E96E191A /* IQTitleBarButtonItem.swift */, + F4D876671EB044681F90C28875230D85 /* UIView+IQKeyboardExtension.swift */, + 8F30991F76663516B678C382E5C3778C /* UIView+IQKeyboardExtensionDeprecated.swift */, + E3AB3CAD98805C12A0303E5EEF02BA39 /* UIView+IQKeyboardExtensionObjc.swift */, ); name = Core; sourceTree = ""; }; - 8B7D83B1AAA915E59ABF028B30082FE4 /* IQKeyboardToolbar */ = { + 855B3C2F89D8129E75F0872911CC0C5B /* Resources */ = { isa = PBXGroup; children = ( - 30D785C6AB9C62FE21F5E25D6CF89F9E /* Core */, - 3639459FE754ED7E623ABF3E8B9CEBD2 /* Placeholderable */, - CA3FB6538134EDC52E8EF41795943258 /* Resources */, - 3A2168E47847B8483D459C9DE12A756D /* Support Files */, - ); - name = IQKeyboardToolbar; - path = IQKeyboardToolbar; - sourceTree = ""; - }; - 8C2BE863706DEF05145526386F0B68C5 /* Support Files */ = { - isa = PBXGroup; - children = ( - 930E9B1B194A403F3F0A4F95FAF2427A /* AMapLocation-NO-IDFA.debug.xcconfig */, - 3F2BA6FF47C66D4951D519C0085C948B /* AMapLocation-NO-IDFA.release.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/AMapLocation-NO-IDFA"; - sourceTree = ""; - }; - 8EC70130CB3BEBE4354C699B81C8B53B /* Frameworks */ = { - isa = PBXGroup; - children = ( - B72C4055DD0AAE857AE24AA1B22D707A /* AMapSearchKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 9B0F3E052867A07902A6A2420D5485CE /* Resources */ = { - isa = PBXGroup; - children = ( - 4294DBAFDD1C869AB58195872ECBD63C /* PrivacyInfo.xcprivacy */, + 9F8AD8BB0EBEEF249761A914B37CAD8C /* PrivacyInfo.xcprivacy */, ); name = Resources; sourceTree = ""; }; - 9F84599051C12EB2D8199BE4B9D266DA /* Support Files */ = { + 87D55BB763384F632F7A4ECA33DF2B1E /* Support Files */ = { isa = PBXGroup; children = ( - 6D59C7309AD33EDAE93D4959CC364A32 /* IQKeyboardToolbarManager.modulemap */, - C026F448EE161E5AA295F2DD8C00F78B /* IQKeyboardToolbarManager-dummy.m */, - 23AC67D8FE201A5D8B41262606782630 /* IQKeyboardToolbarManager-Info.plist */, - E26D520CBDC504839CC1C6D42B0B0B80 /* IQKeyboardToolbarManager-prefix.pch */, - D6B6259CDECD85D674B168D3AF7C0101 /* IQKeyboardToolbarManager-umbrella.h */, - 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */, - 10CADA6646C9AF13C983D13EAF7F5378 /* IQKeyboardToolbarManager.release.xcconfig */, - CC2DA460622CB6B30A4B3F6B866725B8 /* ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist */, + 871C4D1834D14518E50DD97F10BCD43C /* IQKeyboardReturnManager.modulemap */, + 7F2AB1871CDCA81B98E67F2845433559 /* IQKeyboardReturnManager-dummy.m */, + BC22E9169FFEB3DDF58C844A9E7BC4DB /* IQKeyboardReturnManager-Info.plist */, + 58DC8D42E44C8F1B5737553B617A916E /* IQKeyboardReturnManager-prefix.pch */, + F97FC488C52F8C83E3213105C4228613 /* IQKeyboardReturnManager-umbrella.h */, + FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */, + 3743F40B27DFFA0C0530479FFB587691 /* IQKeyboardReturnManager.release.xcconfig */, + A83A792738DA83E2D1119087D2778E1F /* ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist */, ); name = "Support Files"; - path = "../Target Support Files/IQKeyboardToolbarManager"; + path = "../Target Support Files/IQKeyboardReturnManager"; sourceTree = ""; }; - A3BF0EF84B6B77093E25EB0B13F497FD /* Support Files */ = { + 8CF7280B91CC791C8414A4F10087597B /* Frameworks */ = { isa = PBXGroup; children = ( - 85547E7B6FFBB52AB98F82AEB49717FA /* JPush-xcframeworks.sh */, - DD52E2C9D26643C4510332244B319F71 /* JPush.debug.xcconfig */, - 1FB7DE577ECCA1457268EA70E8DB4DAC /* JPush.release.xcconfig */, + EACBD6A19E0393FBFB741D6F1B5363BA /* jpush-ios-6.1.0.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 90386ACFD30E43003B8F5C88423152A8 /* Frameworks */ = { + isa = PBXGroup; + children = ( + AC6E594A0FD896EA5CDA3E6F190C0AB7 /* RTCFFmpeg.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 94AF0C1BF0637DE33C600A905B325AB0 /* AMapFoundation-NO-IDFA */ = { + isa = PBXGroup; + children = ( + B209820123663AF8D99EFF6912BF9F79 /* AMapFoundationConst.h */, + F7EED4BF1095985650837ABEA0C99E74 /* AMapFoundationKit.h */, + 6FC842F5579AC5F9E36B02804980FBA5 /* AMapFoundationVersion.h */, + 836E8DA0AB39B894F56601BB518502FC /* AMapServices.h */, + 22536953ABA1BC0ED1B53F47CB71E415 /* AMapURLSearch.h */, + 5AF4FC451B12D40C36F4824295CF94E1 /* AMapURLSearchConfig.h */, + 8075CD247EEBD97388B72593387ED07E /* AMapURLSearchType.h */, + 3F4B4471F801A901C847415B11010539 /* AMapUtility.h */, + 44BBB4BB04DA5469FD443584AABA8779 /* Frameworks */, + 71C7E423D3DEDE0819495B345A994FE5 /* Support Files */, + ); + name = "AMapFoundation-NO-IDFA"; + path = "AMapFoundation-NO-IDFA"; + sourceTree = ""; + }; + 9BEA03AC0C1F5ACA6FF8438E65F34DA8 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1B199C4901242D30CD71A18A8E1D0008 /* AMapSearchKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A0E6B48D23FB3AD594F90D1F242CF9AF /* JCore */ = { + isa = PBXGroup; + children = ( + 5B3C0813D128A45E751A0AC71DA3C895 /* Frameworks */, + C6D9FE6F6DAC38FFBF24F266B48502BC /* Support Files */, + ); + name = JCore; + path = JCore; + sourceTree = ""; + }; + A1098BCB6F71B70A6EB9C68038D5392C /* Frameworks */ = { + isa = PBXGroup; + children = ( + A32A4C33E27F87863FB11AC3C9A09E0C /* RealXBase.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A222616F5C1CD6715F1F6E7461B83C43 /* Frameworks */ = { + isa = PBXGroup; + children = ( + D20C43E50A3476871B7384379068F972 /* UMCommon.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A2F6C398C06E89855411D63D0058B318 /* Support Files */ = { + isa = PBXGroup; + children = ( + 51367A9A6774AE911676FEE589F4D4E9 /* AMap3DMap-NO-IDFA.debug.xcconfig */, + 0AF4E684DF6CEBFE9C445B44A8ECFFF0 /* AMap3DMap-NO-IDFA.release.xcconfig */, ); name = "Support Files"; - path = "../Target Support Files/JPush"; + path = "../Target Support Files/AMap3DMap-NO-IDFA"; sourceTree = ""; }; A44383B435488DA9FDC1DB25CBBBCBA6 /* Products */ = { @@ -1747,93 +1664,169 @@ name = Products; sourceTree = ""; }; - AB638B82CB2671C730E5541D1EF6C548 /* IQKeyboardReturnManager */ = { + A4B90924C44E6B3D0B3AF91BE647EB2B /* Support Files */ = { isa = PBXGroup; children = ( - 629DD1DA2A6BB7211D4AA2CDC4ADE1BE /* IQKeyboardReturnManager.swift */, - 0141CCE940C38D3566A83D1108E6A304 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */, - 484D6C3AFBCC01928BBCFE110C2A2F2C /* IQKeyboardReturnManager+UITextViewDelegate.swift */, - CE41AE378E9210FE5D862A988433348E /* IQTextInputViewInfoModel.swift */, - 4E8E1335F09602994B3CF0038FDF0547 /* Resources */, - 033D0A6A59C1A74DDD7D6980C1AB24B9 /* Support Files */, + FE55B3A42666347457710420CE151AA6 /* IQKeyboardToolbar.modulemap */, + 9960FCCCFFE8F876FCDE0065C4FD6629 /* IQKeyboardToolbar-dummy.m */, + CD21C2E29DEBDED503E1CC5C84490B9D /* IQKeyboardToolbar-Info.plist */, + 3AF86EA711AAF037D15AB7371496C2A1 /* IQKeyboardToolbar-prefix.pch */, + B15A89F8DECA647A9464E7868B3D9832 /* IQKeyboardToolbar-umbrella.h */, + FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */, + 37ED2C21C1E1ACCC106AA7C2D98CD280 /* IQKeyboardToolbar.release.xcconfig */, + BBAB966289F13CCDA2FAD0652410E843 /* ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist */, ); - name = IQKeyboardReturnManager; - path = IQKeyboardReturnManager; + name = "Support Files"; + path = "../Target Support Files/IQKeyboardToolbar"; sourceTree = ""; }; - ACC27663C7D4373253B19FC29790ED5A /* Frameworks */ = { + A5195BD59A9DB6B60F1C27DC83714934 /* AMapLocation-NO-IDFA */ = { isa = PBXGroup; children = ( - C416DF9C2C6D3B85FB383E91C18664DE /* UMCommon.xcframework */, + 8CE213F570E6C96F86CBD8CBE081B8C9 /* AMapGeoFenceError.h */, + 985288E47AE20118163007C6AFBB4174 /* AMapGeoFenceManager.h */, + 608C4908E4BB55A6CB186C5C994459F5 /* AMapGeoFenceRegionObj.h */, + 05D5CE10D09B57E622283C0E3F584D8B /* AMapLocationCommonObj.h */, + 3DDF6B961018C08613D8A0D837046BF1 /* AMapLocationKit.h */, + F4023F00A614A00A57225A27D115BDB9 /* AMapLocationManager.h */, + 6B07A961A98509C930FDC98A9FA8544E /* AMapLocationRegionObj.h */, + E790BD090A1CD4A9A8D93AA43D92A380 /* AMapLocationVersion.h */, + B4861D8415FEA633B96102F595307A07 /* Frameworks */, + F1767B680BB1D7FFC620A6C4726A04D3 /* Support Files */, + ); + name = "AMapLocation-NO-IDFA"; + path = "AMapLocation-NO-IDFA"; + sourceTree = ""; + }; + A541D3DD8ADA33E48C211C7FADBAAF6D /* Frameworks */ = { + isa = PBXGroup; + children = ( + 9BDAC44E74D5AEA1FE9EF5B66759D030 /* UMDevice.xcframework */, ); name = Frameworks; sourceTree = ""; }; - AD3949A7EC8E24D927D4905755B04D6D /* UMDevice */ = { + AE79D9ABAE2FCE9F97081CF644AFBD3A /* Resources */ = { isa = PBXGroup; children = ( - 1A19E6EA7CBD3082142C640567987EEF /* Frameworks */, - 77C012E3A227F889C3968E3ECD2C2F62 /* Support Files */, + 5DA99C08528E3C22E42D003865FEC09D /* PrivacyInfo.xcprivacy */, + ); + name = Resources; + sourceTree = ""; + }; + B1078AE2E0BB31006606E09592168E39 /* IQKeyboardCore */ = { + isa = PBXGroup; + children = ( + 1432B7B9FB7E007C7E5FD5F9AB24198B /* IQKeyboardConstants.swift */, + D30ADEE09F82DF19A1888B002A47FC21 /* IQKeyboardExtended.swift */, + 81662341279CC66CC14E37D7694CCCC3 /* IQTextInputView.swift */, + 059A2CB5D47914844323E42412B05E5D /* UIView+Hierarchy.swift */, + B9B40197A9DC47177BAC36F8984211A1 /* Resources */, + 830D7654D3140A352D11F1AF914053BA /* Support Files */, + ); + name = IQKeyboardCore; + path = IQKeyboardCore; + sourceTree = ""; + }; + B3031E0D8DC315A2A4B0FA287EC402DC /* Frameworks */ = { + isa = PBXGroup; + children = ( + 4CA5E02432572BEC3D63E70BDFA76230 /* VolcEngineRTC.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + B4861D8415FEA633B96102F595307A07 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 470A92D6F1D61939BF38409D63A4DD65 /* AMapLocationKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + B54B9468033BE23DAF5556C34EDE63F8 /* WechatOpenSDK-XCFramework */ = { + isa = PBXGroup; + children = ( + EB111FD711B6F0742A7A0D70F151E8A8 /* Frameworks */, + 71246DF8BFC3526B5A8702F8FE003278 /* Support Files */, + ); + name = "WechatOpenSDK-XCFramework"; + path = "WechatOpenSDK-XCFramework"; + sourceTree = ""; + }; + B86E9C7076669987F4E23893F9B76308 /* Support Files */ = { + isa = PBXGroup; + children = ( + 227609D6C20B15E2AF59CD06C201BD05 /* JPush-xcframeworks.sh */, + CED54F92E588775BEA7B38CECABD7702 /* JPush.debug.xcconfig */, + E8FD6F60EF688C5AC4A8B023D6D4196A /* JPush.release.xcconfig */, + ); + name = "Support Files"; + path = "../Target Support Files/JPush"; + sourceTree = ""; + }; + B9B40197A9DC47177BAC36F8984211A1 /* Resources */ = { + isa = PBXGroup; + children = ( + FD5AD0CFBB7A9E4F5B2A53DBC856B6E8 /* PrivacyInfo.xcprivacy */, + ); + name = Resources; + sourceTree = ""; + }; + BC94656FB03B59B20DFF04A8C9C1C170 /* Resources */ = { + isa = PBXGroup; + children = ( + 46743810A3D4B51DE28F0DE3BB6D5497 /* PrivacyInfo.xcprivacy */, + ); + name = Resources; + sourceTree = ""; + }; + BD899D6BCB72FF24A2657897234D0E11 /* Support Files */ = { + isa = PBXGroup; + children = ( + FF3A7D5C821762023E797F50C2927440 /* VolcEngineRTC-xcframeworks.sh */, + EDC68D4FCB048FBF2A45CC21B1638F80 /* VolcEngineRTC.debug.xcconfig */, + A07699BB79F9619E4B3CE5048F213790 /* VolcEngineRTC.release.xcconfig */, + ); + name = "Support Files"; + path = "../Target Support Files/VolcEngineRTC"; + sourceTree = ""; + }; + C5E0B71C1457F39AFA957A7F262C41C2 /* UMDevice */ = { + isa = PBXGroup; + children = ( + A541D3DD8ADA33E48C211C7FADBAAF6D /* Frameworks */, + 46D541F82C815DFC6AAB662C924A819D /* Support Files */, ); name = UMDevice; path = UMDevice; sourceTree = ""; }; - B7DD817AF7478DD1DAF2BF4F87698BAE /* JPush */ = { + C6D9FE6F6DAC38FFBF24F266B48502BC /* Support Files */ = { isa = PBXGroup; children = ( - 1BC2084ADA79C87C7F4A950A3D56FBA9 /* Frameworks */, - A3BF0EF84B6B77093E25EB0B13F497FD /* Support Files */, - ); - name = JPush; - path = JPush; - sourceTree = ""; - }; - BD856CC8714F0E23D04C54D8E567B534 /* Resources */ = { - isa = PBXGroup; - children = ( - 5EAF6B62A82569F4767893AB4F1DEEF4 /* PrivacyInfo.xcprivacy */, - ); - name = Resources; - sourceTree = ""; - }; - BFCD941C9B7FCA2B37453EE02C274D7B /* Resources */ = { - isa = PBXGroup; - children = ( - A3B399BF12010721D7606DE2C51AC0EF /* PrivacyInfo.xcprivacy */, - ); - name = Resources; - sourceTree = ""; - }; - C46A5FACF107BDA2938FF9CD084FFDA3 /* Support Files */ = { - isa = PBXGroup; - children = ( - F235A21AFE7ECC646787D9C9313A8BC3 /* UMAPM-xcframeworks.sh */, - 56E9537047D72ABA1C9695C95A4AF843 /* UMAPM.debug.xcconfig */, - F283224B76C1D6B83702001679439919 /* UMAPM.release.xcconfig */, + 798B5EDBEA0B0097A890F0F469E84E2E /* JCore-xcframeworks.sh */, + 7FC0495E836EAA9DCCF5B24BA4F96574 /* JCore.debug.xcconfig */, + CBD245733975A997CDE429A351AB1C6F /* JCore.release.xcconfig */, ); name = "Support Files"; - path = "../Target Support Files/UMAPM"; + path = "../Target Support Files/JCore"; sourceTree = ""; }; - CA3FB6538134EDC52E8EF41795943258 /* Resources */ = { + CEDC043287CB6140214EA52A2C5D9B87 /* Support Files */ = { isa = PBXGroup; children = ( - 7AF35518DCE4701B077F7D5E23122BAD /* PrivacyInfo.xcprivacy */, + 2AC0DACFAE7037AC2FF368ED2AA7CAF4 /* IQTextInputViewNotification.modulemap */, + 302E2D627665AA33DFD324A6B9C22B43 /* IQTextInputViewNotification-dummy.m */, + 08B0092D87E9E61E28986DB591565BCF /* IQTextInputViewNotification-Info.plist */, + 949006AE50DFEC2AAC1413FF868AA779 /* IQTextInputViewNotification-prefix.pch */, + B19FAB17A68CCCA197D7890BED3BC1D2 /* IQTextInputViewNotification-umbrella.h */, + 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */, + 10F845770A3EF5F5562CC88EA7BE4644 /* IQTextInputViewNotification.release.xcconfig */, + A1836F952905D07E23AC756B411BE696 /* ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist */, ); - name = Resources; - sourceTree = ""; - }; - CC0A28B4F081AD9BFEA173D4C3BAF653 /* IQTextInputViewNotification */ = { - isa = PBXGroup; - children = ( - 8E593660B088EDD170E5B1B7CBEA3509 /* IQTextInputViewInfo.swift */, - 97671A95678EAE5829CEE22F5A4ED288 /* IQTextInputViewNotification.swift */, - 59B51CCB97227B7CE340DCEBED7AA228 /* Resources */, - 033FC93B9EFE1CBEB43E1356F4387404 /* Support Files */, - ); - name = IQTextInputViewNotification; - path = IQTextInputViewNotification; + name = "Support Files"; + path = "../Target Support Files/IQTextInputViewNotification"; sourceTree = ""; }; CF1408CF629C7361332E53B88F7BD30C = { @@ -1841,18 +1834,44 @@ children = ( 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 03C5C200A0787E300053CFA8F53CA094 /* Frameworks */, - 520CDF7916D7BB0DFCBC420F6DB50D65 /* Pods */, + 4E8E73B0D95B9DF2DC613CF17FF94B61 /* Pods */, A44383B435488DA9FDC1DB25CBBBCBA6 /* Products */, D7A8BE48E94D86687C7CC4946F493431 /* Targets Support Files */, ); sourceTree = ""; }; - D44D87B1FCB6B5D7887C6F110AE17293 /* Frameworks */ = { + CF4C1B7D1FAE518ABBF0AEF896CA488C /* UMAPM */ = { isa = PBXGroup; children = ( - F46DE7CDE3412F4C9963058278E9A341 /* jcore-noidfa-ios-5.4.2.xcframework */, + 3B7BDC01C4C090C1F173641FAEC38477 /* Frameworks */, + DA6E739585D53CDAC3E14A02FFAF5D6E /* Support Files */, ); - name = Frameworks; + name = UMAPM; + path = UMAPM; + sourceTree = ""; + }; + CFAC363D714B0D8B5FF2CE47FBF3407C /* Support Files */ = { + isa = PBXGroup; + children = ( + 7148DF765E0E3BDB3E1DA0BD4CDF9FAE /* IQKeyboardToolbarManager.modulemap */, + 6BB647CC374FB13666973FCF51E8A4AC /* IQKeyboardToolbarManager-dummy.m */, + 1A3D978D914830388E3B2A7C1EC1B497 /* IQKeyboardToolbarManager-Info.plist */, + C0A04393C6482B43D12F30B07E04748A /* IQKeyboardToolbarManager-prefix.pch */, + 4BD5CE09F44FA76C300BAFE993574AC6 /* IQKeyboardToolbarManager-umbrella.h */, + FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */, + 5B91072D08BB3F63162262295825C5FF /* IQKeyboardToolbarManager.release.xcconfig */, + A4F538840D1231E9EE9946590DC1D919 /* ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist */, + ); + name = "Support Files"; + path = "../Target Support Files/IQKeyboardToolbarManager"; + sourceTree = ""; + }; + CFF64AB64E21524BF6A3019033D79E16 /* Resources */ = { + isa = PBXGroup; + children = ( + E4F6A8D9BA6DC9E9C42A77BC2E7F0AF3 /* AMap.bundle */, + ); + name = Resources; sourceTree = ""; }; D7A8BE48E94D86687C7CC4946F493431 /* Targets Support Files */ = { @@ -1864,85 +1883,153 @@ name = "Targets Support Files"; sourceTree = ""; }; - E42F6AA6B0BF64809371E39FF768BC7B /* Resources */ = { + DA6E739585D53CDAC3E14A02FFAF5D6E /* Support Files */ = { isa = PBXGroup; children = ( - 2A2F83D6955E3DA7E55E81A83CDD1633 /* PrivacyInfo.xcprivacy */, + 8D7C63D6DD7621AF727A8980247D8D0B /* UMAPM-xcframeworks.sh */, + 4E1E716A01DDF5D7844AD4F6DD359924 /* UMAPM.debug.xcconfig */, + 006784975D34D4F2841543B05EC4A195 /* UMAPM.release.xcconfig */, ); - name = Resources; + name = "Support Files"; + path = "../Target Support Files/UMAPM"; sourceTree = ""; }; - E53E71F1F1B8EDB0D00DCF8007422754 /* Support Files */ = { + E114BC63459388CB2BFA23BF31BC1C71 /* Appearance */ = { isa = PBXGroup; children = ( - 3E8FC0168ED476CD46810E7F95C0D5DD /* IQTextView.modulemap */, - 9FC5970D36251A1390A17CF7571EF768 /* IQTextView-dummy.m */, - D717049D0CC527FBADC7B8BFC423D331 /* IQTextView-Info.plist */, - 4250F6D1B4A49520719CF69AA9DB7171 /* IQTextView-prefix.pch */, - 35890C70D80685FA114966E7CFFC00A1 /* IQTextView-umbrella.h */, - FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */, - 3BAA32FB751F6BB0FD65930595456ACA /* IQTextView.release.xcconfig */, - 0EFFE26759757EA17C439FCF5BC7A432 /* ResourceBundle-IQTextView-IQTextView-Info.plist */, + 18C05366BC9A77BCD2D3B2E774D2B722 /* IQKeyboardAppearanceConfiguration.swift */, + 025FF22A5001E60904C397A76E0C09B4 /* IQKeyboardAppearanceManager.swift */, + 10CB1E0D11EC51CC988C1E27607C73A7 /* IQKeyboardAppearanceManager+Internal.swift */, + 3CB214999237C638FFC3DB3AE121DAD5 /* IQKeyboardManager+Appearance.swift */, + F4F1AACDDF2D1C20591B33DD8E2A5C38 /* IQKeyboardManager+Appearance_Deprecated.swift */, + ); + name = Appearance; + sourceTree = ""; + }; + E28CA03D952064FA8670CE57935D6253 /* IQKeyboardReturnManager */ = { + isa = PBXGroup; + children = ( + 32933D0AEA1AF3988E2782401F17B221 /* IQKeyboardReturnManager.swift */, + 6ECF9275B52B7B8B05B01B6D2E53EC02 /* IQKeyboardReturnManager+UITextFieldDelegate.swift */, + D38BDB89CF929982D596C8C7390190C0 /* IQKeyboardReturnManager+UITextViewDelegate.swift */, + F59F91AFD79784903BF8352CDFAF43B9 /* IQTextInputViewInfoModel.swift */, + 855B3C2F89D8129E75F0872911CC0C5B /* Resources */, + 87D55BB763384F632F7A4ECA33DF2B1E /* Support Files */, + ); + name = IQKeyboardReturnManager; + path = IQKeyboardReturnManager; + sourceTree = ""; + }; + E6CEF6838EE3006B0B001A0232541FC0 /* IQKeyboardToolbarManager */ = { + isa = PBXGroup; + children = ( + 40D0A74BB726A2A8248C9847466D9CC1 /* Array+Sort.swift */, + 4CBFDC425AA2C8AD908DA6ABC7D368DD /* IQDeepResponderContainerView.swift */, + E2C3388662FA183F12DC5F47940D57DC /* IQKeyboardToolbarConfiguration.swift */, + 5DB63DD174AA36A665DF6EFDF91B9E37 /* IQKeyboardToolbarConstants.swift */, + AF2D49F00775A27DDCDF1AE909125185 /* IQKeyboardToolbarManager.swift */, + C1D32FAB7ECAEED292D25CAE95327CF0 /* IQKeyboardToolbarManager+Action.swift */, + 0A018EB4FFC926E5323B07BD2E9A0617 /* IQKeyboardToolbarManager+Debug.swift */, + 0BDEFEECE64EE79440F94BD4C6F34682 /* IQKeyboardToolbarManager+Deprecated.swift */, + 9F977EDAA0F36643B21D81D866F00325 /* IQKeyboardToolbarManager+Internal.swift */, + B70C6CBF2C487B6296E36E4818045F76 /* IQKeyboardToolbarManager+Toolbar.swift */, + 257BCE628592783EF9A5E519CCA2AC16 /* UIView+Responders.swift */, + 3642570B5038C4A4B1B4F2D100D8D750 /* UIView+RespondersObjc.swift */, + 1384110D481A014E1D91A25E7C544B95 /* Resources */, + CFAC363D714B0D8B5FF2CE47FBF3407C /* Support Files */, + ); + name = IQKeyboardToolbarManager; + path = IQKeyboardToolbarManager; + sourceTree = ""; + }; + EB111FD711B6F0742A7A0D70F151E8A8 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 260D101C410C813A89F178DA344A0C68 /* WechatOpenSDK.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; + EC4A02C8266D539615F8281A0713BA97 /* Support Files */ = { + isa = PBXGroup; + children = ( + C2AAAB1B6731410C9D9EB1C5A6AC99DF /* IQKeyboardNotification.modulemap */, + 5A1D98DED6CFD3022E8FC075FA491615 /* IQKeyboardNotification-dummy.m */, + CFC4986043F2FE7F33785D4D46CA5E4C /* IQKeyboardNotification-Info.plist */, + 6359B1281832A0C2267C0D4A90CE1416 /* IQKeyboardNotification-prefix.pch */, + A96477B12A2B08512DEF851076308BFC /* IQKeyboardNotification-umbrella.h */, + 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */, + 948A9344898DCC2785FDDAD0699D6C1E /* IQKeyboardNotification.release.xcconfig */, + D2E3FD31E91683FDC0B22290FE74B7E2 /* ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist */, + ); + name = "Support Files"; + path = "../Target Support Files/IQKeyboardNotification"; + sourceTree = ""; + }; + F1767B680BB1D7FFC620A6C4726A04D3 /* Support Files */ = { + isa = PBXGroup; + children = ( + 20C3CD12D4046B6427964786B1D7F200 /* AMapLocation-NO-IDFA.debug.xcconfig */, + D716492F07DEB42B388856692B6E843A /* AMapLocation-NO-IDFA.release.xcconfig */, + ); + name = "Support Files"; + path = "../Target Support Files/AMapLocation-NO-IDFA"; + sourceTree = ""; + }; + F3FC9C7122817D805F5B407370ED6502 /* Support Files */ = { + isa = PBXGroup; + children = ( + F3E9C7798DF3A5EBBDEAF4FCD0515ECA /* IQTextView.modulemap */, + 7F9BF1DD8D3901D2CB56396040F28392 /* IQTextView-dummy.m */, + 869DEE3EDA8F46435177FF98ED73A2B3 /* IQTextView-Info.plist */, + 7B4F4930A148CCA0AFF2A6240DF36B28 /* IQTextView-prefix.pch */, + 0D5ABBC99F3391C6F9A634D663E75422 /* IQTextView-umbrella.h */, + 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */, + F1F98B961492E58401AF64822AA86791 /* IQTextView.release.xcconfig */, + 434E0C6C570DC80ADDE76B4EA8DDFB61 /* ResourceBundle-IQTextView-IQTextView-Info.plist */, ); name = "Support Files"; path = "../Target Support Files/IQTextView"; sourceTree = ""; }; - EB8B5B05F9AEE6EF38E78653B5A1AB95 /* IQKeyboardNotification */ = { + F448F353060513B50DC243E33071B811 /* Support Files */ = { isa = PBXGroup; children = ( - 6CD275A609F620EB41456FBE469BDA8C /* IQKeyboardInfo.swift */, - 9DED2FF966D82D4283903008C1587F98 /* IQKeyboardNotification.swift */, - 7C4781364ADF28BE6A5FD0B6A4417EFD /* Resources */, - 81644849A152D1E3F1A626F9045C756E /* Support Files */, - ); - name = IQKeyboardNotification; - path = IQKeyboardNotification; - sourceTree = ""; - }; - EC0B71710DB35FB187FC61098A2EB88E /* Frameworks */ = { - isa = PBXGroup; - children = ( - 54062D69C3F5F955058687496BC9B5C1 /* MAMapKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - EFC04CD4102AE37AED7A86B65EF1E60B /* Frameworks */ = { - isa = PBXGroup; - children = ( - 77A5D875250BB2847A6580EEC009BA4F /* AMapLocationKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - F8464A5C3EF711FD122774272378CF6E /* Support Files */ = { - isa = PBXGroup; - children = ( - 6E9F7234A3BF2BFA0BC19D0319D62938 /* WechatOpenSDK-XCFramework-xcframeworks.sh */, - FDF709D73DE1142AE1CF86A66274B9FC /* WechatOpenSDK-XCFramework.debug.xcconfig */, - 8D6DCAE6D0330A20D29082667233E33C /* WechatOpenSDK-XCFramework.release.xcconfig */, + A900C19FDD423A63EDB4890241E20444 /* AMapSearch-NO-IDFA.debug.xcconfig */, + 48303C21DF2C6D474BE4A0AADEE9E16C /* AMapSearch-NO-IDFA.release.xcconfig */, ); name = "Support Files"; - path = "../Target Support Files/WechatOpenSDK-XCFramework"; + path = "../Target Support Files/AMapSearch-NO-IDFA"; + sourceTree = ""; + }; + F5FCBF2314B4EB54739C2EF1B8A759B2 /* IQTextInputViewNotification */ = { + isa = PBXGroup; + children = ( + 1E3A1BD1F31324B93B3AD539F716E8F8 /* IQTextInputViewInfo.swift */, + 65C4C42FF3915092153F921CC192177D /* IQTextInputViewNotification.swift */, + 1B38AC023F8FAD91C320BC949EB5D4BF /* Resources */, + CEDC043287CB6140214EA52A2C5D9B87 /* Support Files */, + ); + name = IQTextInputViewNotification; + path = IQTextInputViewNotification; + sourceTree = ""; + }; + FE36BBF38DDAF33E23DD5465F236060F /* RTCFFmpeg */ = { + isa = PBXGroup; + children = ( + 90386ACFD30E43003B8F5C88423152A8 /* Frameworks */, + ); + name = RTCFFmpeg; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 05D78C584C2B8A3C76EF585B10467D34 /* Headers */ = { + 1E6E2CA34B371C55DF220BDFD3000AF2 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - BF16B86E6246A1BAC62B945FC5B91D4B /* IQKeyboardReturnManager-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0CB5CF52B65F48F49ECDBD41DDEB761B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - F830A4A9A9CBAA1D538F5B503D27E85E /* IQTextView-umbrella.h in Headers */, + D85E7E38F35C5D58550C5D8E44705B20 /* IQKeyboardReturnManager-umbrella.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1954,27 +2041,11 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 4331D75657E8348B798DB10DB702B73E /* Headers */ = { + 2EA7C5163B6EFABCF51CFE191B9505C0 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 7BF320447891FB83F74C8BC147F74898 /* IQTextInputViewNotification-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BC391D43E41534AA430750EB6B1A7F3 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - D1F3500436232D12E46F637F12E3799D /* IQKeyboardToolbarManager-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4F50052A170BD3C433BCDC9871047347 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C924236B7292794AE10E4BBFABC8448 /* IQKeyboardToolbar-umbrella.h in Headers */, + B84FE0B28193A77BA1C0147CB12496DA /* IQTextInputViewNotification-umbrella.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1986,11 +2057,19 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 7680254C28B426011095084CBB09EA2A /* Headers */ = { + 7276EB2E5AA40AC97805906DEA7CD7FD /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 794E0A6AE50125209FEB21F836F814A8 /* IQKeyboardNotification-umbrella.h in Headers */, + 8F90006048BC08268AA81256349A0735 /* IQKeyboardNotification-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 94751B9471D29004E7DE4CCD38EEE5F2 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + F20AF39343CE3A9EE766946E551AF9E0 /* IQKeyboardToolbarManager-umbrella.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2002,11 +2081,27 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - DD075277F3BC8ABF62494D69FCB6F6BE /* Headers */ = { + E7505021B0E826CB2951EA1B17806239 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 753647E6489F2973A95CC4802972B4D5 /* Pods-suixinkan-umbrella.h in Headers */, + 4C95F01EA9E552C45BBFF21C67D96571 /* IQTextView-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F1A788CB175CEB46CC2D355801709508 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7627D9AB0E166EFB41F915C6335FAB38 /* IQKeyboardToolbar-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F66D9C38D882B817B63F6C16ACEF16B3 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 6B091DC2D97D18146714D417F8493EE2 /* Pods-suixinkan-umbrella.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2015,19 +2110,19 @@ /* Begin PBXNativeTarget section */ 020993F16DA5986DACE118349EBCE9E5 /* IQKeyboardToolbarManager */ = { isa = PBXNativeTarget; - buildConfigurationList = BCB9D19D2F10472241947B3E83FFA193 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager" */; + buildConfigurationList = 909E3FC7201534B950D3B53E3A6E76C6 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager" */; buildPhases = ( - 4BC391D43E41534AA430750EB6B1A7F3 /* Headers */, - 7F8A34EF840A89732F331227732CE6A3 /* Sources */, - EC2013DAC79463EF21C09D001A46CB40 /* Frameworks */, - AFB9D90B0819926ED1C202A31C2A8FB9 /* Resources */, + 94751B9471D29004E7DE4CCD38EEE5F2 /* Headers */, + 16FB8B1524EE90D9270AC5FCD1D8560D /* Sources */, + B1C16E3CDD005904731374173E50A59E /* Frameworks */, + 44A091017D212907E98A049763DC7AC9 /* Resources */, ); buildRules = ( ); dependencies = ( - 257C046139A332001B37EC1DC9581A88 /* PBXTargetDependency */, - 423901BB0BC7656034EFDA6B76B2414C /* PBXTargetDependency */, - 40B551A587D49784793075111A2B43DA /* PBXTargetDependency */, + 40E019D5F164716D9B37FF8FD2E3CAC0 /* PBXTargetDependency */, + 4F986259884CF9231BAD66B79A8367CA /* PBXTargetDependency */, + C850F73D0CD4FF748E4E30860AAFB932 /* PBXTargetDependency */, ); name = IQKeyboardToolbarManager; productName = IQKeyboardToolbarManager; @@ -2036,18 +2131,18 @@ }; 0981F89DB5DA3FFCFFEBDE1F56287054 /* IQKeyboardReturnManager */ = { isa = PBXNativeTarget; - buildConfigurationList = DBA22BA64605C2BEE511FFFAC16EEBF9 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager" */; + buildConfigurationList = CA8B8095420E4C741A74C6526E47B837 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager" */; buildPhases = ( - 05D78C584C2B8A3C76EF585B10467D34 /* Headers */, - 2AAF5011D324DFA6F8DF4F369E9112D7 /* Sources */, - EC4276E1E0D899ACABDF5030E302B8C5 /* Frameworks */, - F864370B46A2030CD2D29BB63BF9964C /* Resources */, + 1E6E2CA34B371C55DF220BDFD3000AF2 /* Headers */, + 1F6ADB788CA64307098F2D30CE014BDC /* Sources */, + 8117EC3866EDF249CA8CE1376526A3DB /* Frameworks */, + EA9C42E6F04A4AD059D55FFEC56C5A79 /* Resources */, ); buildRules = ( ); dependencies = ( - D8E393A29EF660C4A48ACF8426C25D32 /* PBXTargetDependency */, - 4A686003582098B259DDA20E5FC9D323 /* PBXTargetDependency */, + 2EAF3D32B47629317952DB929164BAB2 /* PBXTargetDependency */, + F99C25A65D58FB66226D4571D404B903 /* PBXTargetDependency */, ); name = IQKeyboardReturnManager; productName = IQKeyboardReturnManager; @@ -2056,18 +2151,18 @@ }; 12890DE3ABBC2CA295E108358D85EE69 /* IQTextView */ = { isa = PBXNativeTarget; - buildConfigurationList = 24187E637FC68EF68B8A7A6028C0073F /* Build configuration list for PBXNativeTarget "IQTextView" */; + buildConfigurationList = 9BBC50C6E9EFEF51C68190E6CCBD8E98 /* Build configuration list for PBXNativeTarget "IQTextView" */; buildPhases = ( - 0CB5CF52B65F48F49ECDBD41DDEB761B /* Headers */, - 645C6BEE5C5F8EA94CA1B8A824E0A223 /* Sources */, - FC3987C09F835C384373CDD2FFD65186 /* Frameworks */, - 0EFFDC53F19C2A4DEDEE2103D0643E93 /* Resources */, + E7505021B0E826CB2951EA1B17806239 /* Headers */, + 7C5B5B7060E55C22BBA5A2C7540066B8 /* Sources */, + C7391ABA2E8405F598E3AD115908ECC1 /* Frameworks */, + 318B6D1BB40994CE8CFA616C671A7AFD /* Resources */, ); buildRules = ( ); dependencies = ( - 57354DDB8E699721C452977695B263FD /* PBXTargetDependency */, - C6B684446AAB0C7A81EF869A2830679A /* PBXTargetDependency */, + C206BE584D88B37ECDC3054891961C63 /* PBXTargetDependency */, + 706EF92721F065D187D2BB79F574C847 /* PBXTargetDependency */, ); name = IQTextView; productName = IQTextView; @@ -2076,34 +2171,35 @@ }; 1DE17B7C77CD95CB67DF1197965B76AB /* Pods-suixinkan */ = { isa = PBXNativeTarget; - buildConfigurationList = 875BEC2BC17CFCC0F5056A3B395DA258 /* Build configuration list for PBXNativeTarget "Pods-suixinkan" */; + buildConfigurationList = 9A49A90044DDEEF3E6FCA42DE3192D0E /* Build configuration list for PBXNativeTarget "Pods-suixinkan" */; buildPhases = ( - DD075277F3BC8ABF62494D69FCB6F6BE /* Headers */, - 34C275CAECED9D6901747FC1405E6B98 /* Sources */, - BE4F345025D2187B63FA2ED8E7233AED /* Frameworks */, - 1E3389B13F3713DABCD48373D5D98914 /* Resources */, + F66D9C38D882B817B63F6C16ACEF16B3 /* Headers */, + 450A4DC21C0978C791026911634DB62D /* Sources */, + 6F65B215F9B42F7EC03DEB24F6871DFB /* Frameworks */, + EE67AA31D2D3A2BE153A3FCC903369FA /* Resources */, ); buildRules = ( ); dependencies = ( - 559B5DC039C8981EEE9696C323082915 /* PBXTargetDependency */, - 93501992D2687169C9D64ECF593AAFB5 /* PBXTargetDependency */, - 91835F72D032F3FBDE03F331CD1BE842 /* PBXTargetDependency */, - 7E7528850A1FDD26B1FE2E8099A38A91 /* PBXTargetDependency */, - 04FCE446D622C5939DA314959342DC88 /* PBXTargetDependency */, - BC8F860A2D02AB8F29AA5B639971E84A /* PBXTargetDependency */, - 78F427895C6768AC1AB392721DAE9200 /* PBXTargetDependency */, - D75775B1CDD4D1DBFD4D66F94CD5CF03 /* PBXTargetDependency */, - 5FE0DAE0602EB758297B19F4328BC38D /* PBXTargetDependency */, - D9FB833B6E0D570E62522324BCDCB420 /* PBXTargetDependency */, - 87C4B1E7F9C8681284EF020BA2CE7232 /* PBXTargetDependency */, - 9878FADAAA880FFB5292FEA6B7285FF5 /* PBXTargetDependency */, - 82D472A757E3AE733E285863E4FF7C29 /* PBXTargetDependency */, - EBDABB0A79F03526A3A3A7726153BCC6 /* PBXTargetDependency */, - B4ED9F2608DCFF0DE645E679F965467F /* PBXTargetDependency */, - 43D53F6BFEB39F4503F44F84FBEC23F7 /* PBXTargetDependency */, - EEB39FDC8A236AB428E4BA853F5A9139 /* PBXTargetDependency */, - EBF5E69FEE7E49D4E80788A055AE67C5 /* PBXTargetDependency */, + B6E8DB3BD84A7E9508C6CF96915F005B /* PBXTargetDependency */, + 66DF1AD9D3E97349A96E5F5C90757C68 /* PBXTargetDependency */, + 204FD388CFB176C0766F60CB1CAEBA86 /* PBXTargetDependency */, + 0E01BAE168991620CF6F48B3D188BA53 /* PBXTargetDependency */, + 4BDB84F42661A88DB4AE7F506CD672F4 /* PBXTargetDependency */, + 9E9BD81B51490D7C334A5A60FE1111D0 /* PBXTargetDependency */, + 52A718AAC261E51A6EE91D1E3D571C27 /* PBXTargetDependency */, + 57C5226AB4AFFE43C654081EC80A85B8 /* PBXTargetDependency */, + 041E2CC6DFE2A6B560D8CFA2B4D906B8 /* PBXTargetDependency */, + 20F0375C486E250BB5232F4758D576A4 /* PBXTargetDependency */, + A3132469DDB9CC498C41B9FCD5ED3A2A /* PBXTargetDependency */, + 337C96201808509507CA774D119D9AD8 /* PBXTargetDependency */, + 75C7A3492D85446BC94DFAD73EF4FF03 /* PBXTargetDependency */, + 11F9B04ED25D4D44F2064FBB7DE683D6 /* PBXTargetDependency */, + D712A40A6F15B03849EDADE61B68DB39 /* PBXTargetDependency */, + 5C5D15AAD292B83C1872ABD6D6AC563D /* PBXTargetDependency */, + AE5B9CB6019FDEFD3C68ECD10629DCD0 /* PBXTargetDependency */, + C642A9DA4392C05C201A535CDBA4D0B7 /* PBXTargetDependency */, + 27FAD84781762A448335ECCCDDC9E42E /* PBXTargetDependency */, ); name = "Pods-suixinkan"; productName = Pods_suixinkan; @@ -2112,18 +2208,18 @@ }; 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */ = { isa = PBXNativeTarget; - buildConfigurationList = 2B3292CB0DE7D6CE46A077AA7A98827F /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification" */; + buildConfigurationList = 6F2F8E9223CA64429D3DA4A35BBF385E /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification" */; buildPhases = ( - 4331D75657E8348B798DB10DB702B73E /* Headers */, - 425CEB81B0796AC6015FF81B68024078 /* Sources */, - 7A8C5A659560BF9E0CC487398B4E27CF /* Frameworks */, - 6485D775A89B9D841B3B0E53490A947D /* Resources */, + 2EA7C5163B6EFABCF51CFE191B9505C0 /* Headers */, + B229D9E15F75A5D7AB8DDE0C39302879 /* Sources */, + 1168AB246AD776F63DD112F4BF1254B9 /* Frameworks */, + 387F246A1485E8339A81D080337D433D /* Resources */, ); buildRules = ( ); dependencies = ( - D1BAD58FB1961F1DB3B113E93A03AF29 /* PBXTargetDependency */, - 0289564FC881345A79BD1B6531FF3219 /* PBXTargetDependency */, + 0D0ACD494A09D4697A9F058A054B15B9 /* PBXTargetDependency */, + D86848614F0E20BC8CF8ED6E512BD7A0 /* PBXTargetDependency */, ); name = IQTextInputViewNotification; productName = IQTextInputViewNotification; @@ -2132,11 +2228,11 @@ }; 2B8FF445A5162845FAB9EC00FC92B694 /* IQKeyboardNotification-IQKeyboardNotification */ = { isa = PBXNativeTarget; - buildConfigurationList = 63DAAE1B3C844547AB6B4E9490D7C979 /* Build configuration list for PBXNativeTarget "IQKeyboardNotification-IQKeyboardNotification" */; + buildConfigurationList = E6679707463E9734F1AA92E686D468A3 /* Build configuration list for PBXNativeTarget "IQKeyboardNotification-IQKeyboardNotification" */; buildPhases = ( - 64C9A2B5DDBB99DEAF940C9FE46F858F /* Sources */, - C5CF3AB4E319774E8EF43C96BE7E9D20 /* Frameworks */, - 59908003F5EB4C560351C9F4057F6FDF /* Resources */, + 137EC40D310D4704B880AD14CE694EEC /* Sources */, + 7D2E82DB5847681794F83B68E6CA40A5 /* Frameworks */, + 6E5BFB4FCBA146BA6D109E9A1D9669A6 /* Resources */, ); buildRules = ( ); @@ -2149,11 +2245,11 @@ }; 4502C7427440BEB17A50C0BF6E638A85 /* IQTextInputViewNotification-IQTextInputViewNotification */ = { isa = PBXNativeTarget; - buildConfigurationList = F823D0D17289E29C0912BA8CB04F4429 /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification-IQTextInputViewNotification" */; + buildConfigurationList = A69E6688B29DDB5B863FC738C3DC943C /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification-IQTextInputViewNotification" */; buildPhases = ( - DED4AD5DD92DDDC160258A036A443D26 /* Sources */, - 0B63EA4E1D3EA61D0E4AC4DE8422C4E8 /* Frameworks */, - B4564AE26629C32AD6A5634EBBF6062D /* Resources */, + 1C059343D1ECF3932E37BC8394B7FE01 /* Sources */, + 981D9774F54AB0E1C321D57321305E99 /* Frameworks */, + 9A6507B4E9026411FBA0D8BE5E84438F /* Resources */, ); buildRules = ( ); @@ -2176,7 +2272,7 @@ buildRules = ( ); dependencies = ( - 36CDBF917A60EEFE38DD2F7C79B0B9B4 /* PBXTargetDependency */, + E0A5F7B02F9BC271A1362F5B57FB045F /* PBXTargetDependency */, ); name = "Pods-suixinkanTests"; productName = Pods_suixinkanTests; @@ -2185,11 +2281,11 @@ }; 7C5613175BBC4BF67E36DB4FBEBC01D0 /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */ = { isa = PBXNativeTarget; - buildConfigurationList = EC63F6687A4C84131E235AAD4D9D25AC /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager-IQKeyboardToolbarManager" */; + buildConfigurationList = FB14A79E9663C6618BBD2C76C46813E0 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager-IQKeyboardToolbarManager" */; buildPhases = ( - 630C2621E6B31FD05FB8AC311E0B4A07 /* Sources */, - F36C7EF959F38C314D7D9C07F20214F9 /* Frameworks */, - 60539C5AB084616CA15632C0F8EDB3D5 /* Resources */, + 99AB743E6CD0E3D59DC85D1D3EB09F58 /* Sources */, + B6BB62FFBD45C60D8F1FE570CC1DE3E0 /* Frameworks */, + 4FFFE3948D9FFAB79CAAF0F200D0E6E5 /* Resources */, ); buildRules = ( ); @@ -2202,11 +2298,11 @@ }; 88810798DA63A2F6611B0970EA276DEC /* IQKeyboardReturnManager-IQKeyboardReturnManager */ = { isa = PBXNativeTarget; - buildConfigurationList = E83D8F80B1FA8720A2E4132EFD404E69 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager-IQKeyboardReturnManager" */; + buildConfigurationList = 735C3EDC6E7EC2865AEDDDA1F2D19E8C /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager-IQKeyboardReturnManager" */; buildPhases = ( - 7BD0F092F53B46BD1CB6DE279ABBEC11 /* Sources */, - D7A42CDC1C43250CB900E1FB74D8B092 /* Frameworks */, - 8B575E871296BDF9E39B3A8DE6B08BFE /* Resources */, + 307995AFC08F0822D092E5D5758B3973 /* Sources */, + BDBD60A29BE8E581EB5EDCF60600BE9F /* Frameworks */, + D131BD6782772FFA2ECC8F582F04D18F /* Resources */, ); buildRules = ( ); @@ -2219,11 +2315,11 @@ }; 982A68D37F5DCBC1FC1FDC0BB2F0EB8E /* IQKeyboardManagerSwift-IQKeyboardManagerSwift */ = { isa = PBXNativeTarget; - buildConfigurationList = 9F2F12FF04A1DC0E7F0AF5684CA34C93 /* Build configuration list for PBXNativeTarget "IQKeyboardManagerSwift-IQKeyboardManagerSwift" */; + buildConfigurationList = 3403F131765FEBB242F76306FC5D0BB7 /* Build configuration list for PBXNativeTarget "IQKeyboardManagerSwift-IQKeyboardManagerSwift" */; buildPhases = ( - 2F0C79D724BB39D93125904136A41EA4 /* Sources */, - A6D81DF4CB996A5BEAA5DD9D77D0C0F3 /* Frameworks */, - C25114EED101FACEF0B204F6B67C34B8 /* Resources */, + 65F425CC367616BA8B92F0995F6C3106 /* Sources */, + C627275D6CBFEDB1B39AD4E3C7A62115 /* Frameworks */, + 5248776DEC427F90EDE5D5DA9CD00872 /* Resources */, ); buildRules = ( ); @@ -2236,17 +2332,17 @@ }; A26E6FD851C20D652B2755C1464A9990 /* IQKeyboardNotification */ = { isa = PBXNativeTarget; - buildConfigurationList = A4028273DF78599D569A697F515473BC /* Build configuration list for PBXNativeTarget "IQKeyboardNotification" */; + buildConfigurationList = 4E0C012C8888905B35911F70B1AC5AEF /* Build configuration list for PBXNativeTarget "IQKeyboardNotification" */; buildPhases = ( - 7680254C28B426011095084CBB09EA2A /* Headers */, - AD657BBD076081C4A57DB51B94542EF2 /* Sources */, - DCCD854A95878812F357EA2EBB20D31A /* Frameworks */, - 0E8A55941FBC56DFC2E1C8A1A076B7BA /* Resources */, + 7276EB2E5AA40AC97805906DEA7CD7FD /* Headers */, + 49A9263C40EAD1BD3295493C86F21618 /* Sources */, + 920BB55EA03141F9FEC988CF5499655C /* Frameworks */, + 889236CE0180F0C43842F1E2F4794D5F /* Resources */, ); buildRules = ( ); dependencies = ( - D510D6FDF9862C3FCAAAAA313D2BC549 /* PBXTargetDependency */, + B5C3DC4EC4CE4420FBA9801FCD1E6270 /* PBXTargetDependency */, ); name = IQKeyboardNotification; productName = IQKeyboardNotification; @@ -2255,11 +2351,11 @@ }; A6602BCAA6F4F932A586C41D0B7E019C /* IQTextView-IQTextView */ = { isa = PBXNativeTarget; - buildConfigurationList = 6988CE622F6ED709924CC52474D5D523 /* Build configuration list for PBXNativeTarget "IQTextView-IQTextView" */; + buildConfigurationList = E809C3838042546E636F2DB053A09E2B /* Build configuration list for PBXNativeTarget "IQTextView-IQTextView" */; buildPhases = ( - B9D284BA0BB1236DC3A6EA6CAA96F4BE /* Sources */, - B7AB75E5D475777E4C3BAD9B643ED838 /* Frameworks */, - 4AF9AACCDFC05B073702ED7FB0DD5D7B /* Resources */, + 56E30DE3D6A933A5BE21E6BC28F1394B /* Sources */, + A5B5101DC57939771E53F12E05DCEB38 /* Frameworks */, + 113A64BB798FD7C080C95BA6FD1541FC /* Resources */, ); buildRules = ( ); @@ -2272,11 +2368,11 @@ }; B247F77A0CD5E19C8187A9BA1EB58C09 /* IQKeyboardToolbar-IQKeyboardToolbar */ = { isa = PBXNativeTarget; - buildConfigurationList = 7B7782119E69124DD3565965BD15A882 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar-IQKeyboardToolbar" */; + buildConfigurationList = 77FFA3C6B014C764A235677BDA74421B /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar-IQKeyboardToolbar" */; buildPhases = ( - F20137CEA44AB166235CB3761C2E57F3 /* Sources */, - 902E85A742A01B8059EFA5B89DA66F7F /* Frameworks */, - A9820E377B74EAB51B6FF79FB1861197 /* Resources */, + 277D68DBEEA89C258D279027D7E243CE /* Sources */, + 1AB23A258F502AF32AD2AF5C8087AA1C /* Frameworks */, + 49110040D7B8222D83854A3154E78544 /* Resources */, ); buildRules = ( ); @@ -2299,12 +2395,12 @@ buildRules = ( ); dependencies = ( - A18D468817B057A7642DD6597AD5D57D /* PBXTargetDependency */, - 13CE0F457F6753EE32E8FB88BF7DD7F8 /* PBXTargetDependency */, - B0B1F438A4FD9457C082686C151CF10E /* PBXTargetDependency */, - 7A1E9DA85ECA063CAF07B94CC789DFC7 /* PBXTargetDependency */, - 2CCAC78656F98DEE5167C9844BA79CC7 /* PBXTargetDependency */, - C84A9864ABE031E2E302ADDB0E0BB052 /* PBXTargetDependency */, + D92D635FFCBAC07B10A2EF03F063A27A /* PBXTargetDependency */, + DB6A9F07CDE331CEF3799CE3A6CCF5F8 /* PBXTargetDependency */, + 6B3DC3EE73395FEEFA2D07353D24DBA9 /* PBXTargetDependency */, + FD08A4809C49D9071F6F4165742F73B5 /* PBXTargetDependency */, + FA7383946254CE1ED576095763780D1A /* PBXTargetDependency */, + 573E8B431E8BF8D16944F13F1C0DE9F5 /* PBXTargetDependency */, ); name = IQKeyboardManagerSwift; productName = IQKeyboardManagerSwift; @@ -2313,11 +2409,11 @@ }; EEE261386011CDF271BE289F73FF5959 /* IQKeyboardCore-IQKeyboardCore */ = { isa = PBXNativeTarget; - buildConfigurationList = 86208BF7557334C34C88E861EF42FB46 /* Build configuration list for PBXNativeTarget "IQKeyboardCore-IQKeyboardCore" */; + buildConfigurationList = 743BAE4B6D3212011B29C6FBCEF3F1CA /* Build configuration list for PBXNativeTarget "IQKeyboardCore-IQKeyboardCore" */; buildPhases = ( - 3AA94ED8AD41859B1F4CD14E8883BFEE /* Sources */, - EB4C499E90100393A2F36CAA19DA0329 /* Frameworks */, - CF075F936468EEC91F6597F94C2E9804 /* Resources */, + 6CBB0768541BAD89B84BFE14F9BA7373 /* Sources */, + 5E06627920B40924E21BA6A8C70B3619 /* Frameworks */, + F2BA76ACE865986489BBD73AB7A351FF /* Resources */, ); buildRules = ( ); @@ -2330,18 +2426,18 @@ }; F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */ = { isa = PBXNativeTarget; - buildConfigurationList = 9326D899006F80FE158FC378373C8595 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar" */; + buildConfigurationList = 42FF906DA5AB7C83C901286B2DEBB04E /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar" */; buildPhases = ( - 4F50052A170BD3C433BCDC9871047347 /* Headers */, - D0D52338359DD125AC23F4CD8D4E0026 /* Sources */, - FA5B37F87B05E58E873C97C8F4121D4E /* Frameworks */, - 80DF7293498270D65E9E60379E94D96E /* Resources */, + F1A788CB175CEB46CC2D355801709508 /* Headers */, + 37E96FED9DF757F885D6E1BBA237DA39 /* Sources */, + D5423F9C2E19B190FF95082DAF712AF0 /* Frameworks */, + 225822ECE15A96248D69E6F46CE56B3E /* Resources */, ); buildRules = ( ); dependencies = ( - 87027F7C2B24D7389E5ED0D1D7EB0FF3 /* PBXTargetDependency */, - E769300308672AE66F4679E79ABF421C /* PBXTargetDependency */, + 5375AE20C152FDE6AB69C04F0F29046F /* PBXTargetDependency */, + 66142B6A1CD90BF9F7AB3C00AC03D81A /* PBXTargetDependency */, ); name = IQKeyboardToolbar; productName = IQKeyboardToolbar; @@ -2360,7 +2456,7 @@ buildRules = ( ); dependencies = ( - 0A265E976551A0CE5B038DD60F48405F /* PBXTargetDependency */, + BC53EB257EF96B5B530977BB7E71E8CD /* PBXTargetDependency */, ); name = IQKeyboardCore; productName = IQKeyboardCore; @@ -2418,40 +2514,58 @@ F1E09035B7675D89EC69B16728E2833E /* UMAPM */, 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */, CEB9AD2C3CFC208BFBE1F22F5EC3E1FC /* UMDevice */, + 40080C576D6EAF0D191988D3C110FE86 /* VolcEngineRTC */, 7F18C31A804695333763EEC303E265D7 /* WechatOpenSDK-XCFramework */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 0E8A55941FBC56DFC2E1C8A1A076B7BA /* Resources */ = { + 113A64BB798FD7C080C95BA6FD1541FC /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - D7EDC1DE3A00099ECB44310E7C420B22 /* IQKeyboardNotification-IQKeyboardNotification in Resources */, + B66067B98F220793BA6B7E1FD8A500DD /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 0EFFDC53F19C2A4DEDEE2103D0643E93 /* Resources */ = { + 225822ECE15A96248D69E6F46CE56B3E /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - A601EBA1BC3752EF7B49222A1C5F0D70 /* IQTextView-IQTextView in Resources */, + D1A61DF48588AFBD1986A22CCFDA8FE6 /* IQKeyboardToolbar-IQKeyboardToolbar in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 1E3389B13F3713DABCD48373D5D98914 /* Resources */ = { + 318B6D1BB40994CE8CFA616C671A7AFD /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9E2042CD11A31A6D96D06D20B7B44AE3 /* IQTextView-IQTextView in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 4AF9AACCDFC05B073702ED7FB0DD5D7B /* Resources */ = { + 387F246A1485E8339A81D080337D433D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9759B8BA30F41528B8D6C6D796D758BD /* PrivacyInfo.xcprivacy in Resources */, + AB800C9B59994C4897A2C4B4BB18A1A4 /* IQTextInputViewNotification-IQTextInputViewNotification in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 44A091017D212907E98A049763DC7AC9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C8F299839031777070C30485AD203821 /* IQKeyboardToolbarManager-IQKeyboardToolbarManager in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49110040D7B8222D83854A3154E78544 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2A8A225030C70D6832CF21149B56820A /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2463,43 +2577,35 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 59908003F5EB4C560351C9F4057F6FDF /* Resources */ = { + 4FFFE3948D9FFAB79CAAF0F200D0E6E5 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - B8402636FDBC65B4E50D293F80616D6B /* PrivacyInfo.xcprivacy in Resources */, + 9973B64437A151340E5531BEE1D96EDA /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 60539C5AB084616CA15632C0F8EDB3D5 /* Resources */ = { + 5248776DEC427F90EDE5D5DA9CD00872 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 73E5FDFB080961A009BDB44B202BFB57 /* PrivacyInfo.xcprivacy in Resources */, + 464100C3AAC75B5CA14AE36040292817 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 6485D775A89B9D841B3B0E53490A947D /* Resources */ = { + 6E5BFB4FCBA146BA6D109E9A1D9669A6 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - E20D69402A8EB87733D99631B63512F5 /* IQTextInputViewNotification-IQTextInputViewNotification in Resources */, + 24EE27EE96C2BB5CF8F92DC351D9DCC3 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 80DF7293498270D65E9E60379E94D96E /* Resources */ = { + 889236CE0180F0C43842F1E2F4794D5F /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - C5CB4120589DF8072F87D78E2BAE7BB0 /* IQKeyboardToolbar-IQKeyboardToolbar in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8B575E871296BDF9E39B3A8DE6B08BFE /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 791C3A33D30AC700243D4685CAB59EA7 /* PrivacyInfo.xcprivacy in Resources */, + 96655B828BFC55F28DAC17E9E404CFEC /* IQKeyboardNotification-IQKeyboardNotification in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2510,51 +2616,42 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - A9820E377B74EAB51B6FF79FB1861197 /* Resources */ = { + 9A6507B4E9026411FBA0D8BE5E84438F /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 2C730EA2EAA103C35CBEFAB503879980 /* PrivacyInfo.xcprivacy in Resources */, + EB3D7CFBFECE122987E4BB05A670BD77 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - AFB9D90B0819926ED1C202A31C2A8FB9 /* Resources */ = { + D131BD6782772FFA2ECC8F582F04D18F /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - CD02AEC4AE908A557E2DDEADFB5E75EA /* IQKeyboardToolbarManager-IQKeyboardToolbarManager in Resources */, + 2334750B311385DD4A7F9114AA555605 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - B4564AE26629C32AD6A5634EBBF6062D /* Resources */ = { + EA9C42E6F04A4AD059D55FFEC56C5A79 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 1EDF6B321C32F18C59FF1A110F1A7542 /* PrivacyInfo.xcprivacy in Resources */, + EE8C318C9FE25194E1CC517C668E8C26 /* IQKeyboardReturnManager-IQKeyboardReturnManager in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - C25114EED101FACEF0B204F6B67C34B8 /* Resources */ = { + EE67AA31D2D3A2BE153A3FCC903369FA /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 7CCA3371017E9A9E03A8BEB175DB8414 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - CF075F936468EEC91F6597F94C2E9804 /* Resources */ = { + F2BA76ACE865986489BBD73AB7A351FF /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 6C96447A8AE98F4D3BDF939F7266C57F /* PrivacyInfo.xcprivacy in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F864370B46A2030CD2D29BB63BF9964C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 20AA7AC737EFD9101D0CA80E389B88ED /* IQKeyboardReturnManager-IQKeyboardReturnManager in Resources */, + F72093BE3E74BB70AAE01BAC0915A6F5 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2586,23 +2683,6 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/WechatOpenSDK-XCFramework/WechatOpenSDK-XCFramework-xcframeworks.sh\"\n"; showEnvVarsInLog = 0; }; - 22BE81B1621BDC2850C4141134417CBC /* [CP] Copy XCFrameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks-input-files.xcfilelist", - ); - name = "[CP] Copy XCFrameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks.sh\"\n"; - showEnvVarsInLog = 0; - }; 329295F5A096E0819713CBB5799FA87B /* [CP] Copy XCFrameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -2620,7 +2700,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/JPush/JPush-xcframeworks.sh\"\n"; showEnvVarsInLog = 0; }; - 49D5D275B9638EA1DE91DD3E23193CB6 /* [CP] Copy XCFrameworks */ = { + 687BC05C1C9FCCA798AEC343D76C61BA /* [CP] Copy XCFrameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -2671,71 +2751,147 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/UMAPM/UMAPM-xcframeworks.sh\"\n"; showEnvVarsInLog = 0; }; + ECDA6B91060A6384A59E2057D1742B26 /* [CP] Copy XCFrameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-input-files.xcfilelist", + ); + name = "[CP] Copy XCFrameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + EF59C84659DB739B12DAAEEB8A35993A /* [CP] Copy XCFrameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks-input-files.xcfilelist", + ); + name = "[CP] Copy XCFrameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/UMDevice/UMDevice-xcframeworks.sh\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 2AAF5011D324DFA6F8DF4F369E9112D7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4514FAA3C174519C3DB0A39CCE329F2B /* IQKeyboardReturnManager.swift in Sources */, - 85ED9426CDED97B9C5F563C4BBCE506D /* IQKeyboardReturnManager+UITextFieldDelegate.swift in Sources */, - AC2BDAA5ABD21D76EAAF213256C8B8E9 /* IQKeyboardReturnManager+UITextViewDelegate.swift in Sources */, - 7D7049ABBC602DFAA8118688EDE0C5F9 /* IQKeyboardReturnManager-dummy.m in Sources */, - 9DF018FD9B2DA31BB1FF9830ED380650 /* IQTextInputViewInfoModel.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2F0C79D724BB39D93125904136A41EA4 /* Sources */ = { + 137EC40D310D4704B880AD14CE694EEC /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - 34C275CAECED9D6901747FC1405E6B98 /* Sources */ = { + 16FB8B1524EE90D9270AC5FCD1D8560D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - EBD56E9E283017BD6BAE73D17BB996BA /* Pods-suixinkan-dummy.m in Sources */, + 16EC398493578D82A603A74BBEDF61DE /* Array+Sort.swift in Sources */, + 7973C48AD6DC2FBEBF2D2CDD685AF8CF /* IQDeepResponderContainerView.swift in Sources */, + 84ADFCB3B5116D452F2283B2C93A6544 /* IQKeyboardToolbarConfiguration.swift in Sources */, + 023968E1994C2A76DED24E2225272452 /* IQKeyboardToolbarConstants.swift in Sources */, + 1EEBBF88610B1114E92B5B2C3CB0CD3A /* IQKeyboardToolbarManager.swift in Sources */, + A1F33D56C9A16A4A364BBC2BC6190FC8 /* IQKeyboardToolbarManager+Action.swift in Sources */, + EDBC65971BDA677118EA352344E2A651 /* IQKeyboardToolbarManager+Debug.swift in Sources */, + A4F94A48BC77E0309D075DDE904D6F98 /* IQKeyboardToolbarManager+Deprecated.swift in Sources */, + 31FA5537FB0621C5A8A4AFE359CB4096 /* IQKeyboardToolbarManager+Internal.swift in Sources */, + 79392C6B2D1DDCB948DA3383908E91EF /* IQKeyboardToolbarManager+Toolbar.swift in Sources */, + 1914F573E861800FD3E11C47F385F514 /* IQKeyboardToolbarManager-dummy.m in Sources */, + 0D09F2E4090347B87C0D1233FA5DA053 /* UIView+Responders.swift in Sources */, + FBB34EDA47D49D765C84087E6684097D /* UIView+RespondersObjc.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 3AA94ED8AD41859B1F4CD14E8883BFEE /* Sources */ = { + 1C059343D1ECF3932E37BC8394B7FE01 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - 425CEB81B0796AC6015FF81B68024078 /* Sources */ = { + 1F6ADB788CA64307098F2D30CE014BDC /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 50B903F6549D7A6DDA2DF594829F24C0 /* IQTextInputViewInfo.swift in Sources */, - F83AB9BDBF91C11FCF608D35D84E7F78 /* IQTextInputViewNotification.swift in Sources */, - 9701D7F75D716DA6CF8F1D3693ADCFCD /* IQTextInputViewNotification-dummy.m in Sources */, + 6FC415C672CEECF110E3AE9293F370FB /* IQKeyboardReturnManager.swift in Sources */, + C8E0B1AB7F74F72DDCBB1B9854DC4621 /* IQKeyboardReturnManager+UITextFieldDelegate.swift in Sources */, + 25F07A0332F0686B4D52E0430ACA4050 /* IQKeyboardReturnManager+UITextViewDelegate.swift in Sources */, + 54CE02B6FF7C86515599D09F5AE97AC2 /* IQKeyboardReturnManager-dummy.m in Sources */, + 105766C76A96ECCBD2CC894D747781C7 /* IQTextInputViewInfoModel.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 630C2621E6B31FD05FB8AC311E0B4A07 /* Sources */ = { + 277D68DBEEA89C258D279027D7E243CE /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - 645C6BEE5C5F8EA94CA1B8A824E0A223 /* Sources */ = { + 307995AFC08F0822D092E5D5758B3973 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 789681091CE951D7A2AFAEDDB746D97E /* IQTextView.swift in Sources */, - D9FD33E409638FCAD07C69B35A06ADC2 /* IQTextView+Placeholderable.swift in Sources */, - 85773133CDEE15E726293BDB7E7B2CF0 /* IQTextView-dummy.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 64C9A2B5DDBB99DEAF940C9FE46F858F /* Sources */ = { + 37E96FED9DF757F885D6E1BBA237DA39 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CB8B874662D19B8230CFBED0583C8879 /* IQBarButtonItem.swift in Sources */, + E8CD2C2FF3756F1E72ABA275868B8AC5 /* IQBarButtonItemConfiguration.swift in Sources */, + 3A6CF818BB50747C26A1C574B6ADCFF5 /* IQInvocation.swift in Sources */, + 263FE1F43F1D8E1B46C6313B5641FE3B /* IQKeyboardToolbar.swift in Sources */, + 494B35A30767517DDF2768CE032A36F3 /* IQKeyboardToolbar-dummy.m in Sources */, + BEF7421741D27DC0377B21A20DA375B0 /* IQKeyboardToolbarPlaceholderConfiguration.swift in Sources */, + 4F78DB926808F54F15EAE5150D08CD7F /* IQPlaceholderable.swift in Sources */, + 1C2C67EA4C7B2B68FC4589BDCCD3B533 /* IQTitleBarButtonItem.swift in Sources */, + D7D00E5346E5508D9D53EC7481B5D506 /* UIView+IQKeyboardExtension.swift in Sources */, + 7AD979D5CC2083E382D296DE8B0A644D /* UIView+IQKeyboardExtensionDeprecated.swift in Sources */, + B1FD1C28976551248F427CC7E76FABDC /* UIView+IQKeyboardExtensionObjc.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 450A4DC21C0978C791026911634DB62D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AB877946AF70E70BA6EC7FDAEB227012 /* Pods-suixinkan-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49A9263C40EAD1BD3295493C86F21618 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AB6CC3B98AFFD293CAE8AD23B0FC9AAE /* IQKeyboardInfo.swift in Sources */, + F00FA86A7B52D89294324E2F04BAC22A /* IQKeyboardNotification.swift in Sources */, + 83EEFF802E4CAF422F9C3BA57EE92721 /* IQKeyboardNotification-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56E30DE3D6A933A5BE21E6BC28F1394B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 65F425CC367616BA8B92F0995F6C3106 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( @@ -2750,30 +2906,27 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 7BD0F092F53B46BD1CB6DE279ABBEC11 /* Sources */ = { + 6CBB0768541BAD89B84BFE14F9BA7373 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; - 7F8A34EF840A89732F331227732CE6A3 /* Sources */ = { + 7C5B5B7060E55C22BBA5A2C7540066B8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8032C9E476F728B6BE252AADD5A46F48 /* IQTextView.swift in Sources */, + 8D536472BDF9BC28A40B2A6FD1CEEBA5 /* IQTextView+Placeholderable.swift in Sources */, + 67E64022C5EA54D4143D421708FB4552 /* IQTextView-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99AB743E6CD0E3D59DC85D1D3EB09F58 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 7FD5748EB56A4E3BF6D2ED701B2D213D /* Array+Sort.swift in Sources */, - DB99760495689B430C2E2398C481C2FF /* IQDeepResponderContainerView.swift in Sources */, - 7DA65932A24360D599F10035119EA5E2 /* IQKeyboardToolbarConfiguration.swift in Sources */, - 31EF2638094D4B4F5927495A2B7D798B /* IQKeyboardToolbarConstants.swift in Sources */, - A8D34B7B91FA733D2AED15AB04B892BD /* IQKeyboardToolbarManager.swift in Sources */, - E758379D510D62830AFF306D4630B954 /* IQKeyboardToolbarManager+Action.swift in Sources */, - 1369B279D519A23EADFE21DC37795BF7 /* IQKeyboardToolbarManager+Debug.swift in Sources */, - 152B0D3FD8A2881CB69B710D55974FB9 /* IQKeyboardToolbarManager+Deprecated.swift in Sources */, - 339BEA53AF28A59C4663E40B91D9B370 /* IQKeyboardToolbarManager+Internal.swift in Sources */, - 0A44FCC4CCED0CBED8CC3FED0B036F21 /* IQKeyboardToolbarManager+Toolbar.swift in Sources */, - 7140EFC50C715BE19C49D09F4E8B001E /* IQKeyboardToolbarManager-dummy.m in Sources */, - C60607D4D2571A1535BECED712926730 /* UIView+Responders.swift in Sources */, - 812AC92889B2ADB26628EC2A23707B05 /* UIView+RespondersObjc.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2828,328 +2981,330 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - AD657BBD076081C4A57DB51B94542EF2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - E262B2578F75C70185C656E333DF925F /* IQKeyboardInfo.swift in Sources */, - FEA09EA9224F5FE424E0B9FA2AE5B02F /* IQKeyboardNotification.swift in Sources */, - 3EAF4037851BF1BBAB5916DB7F601763 /* IQKeyboardNotification-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B9D284BA0BB1236DC3A6EA6CAA96F4BE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D0D52338359DD125AC23F4CD8D4E0026 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1262CF3C963C0DA764124961D439B49F /* IQBarButtonItem.swift in Sources */, - 876991BF59C2E072FCCAA538D58EE3E9 /* IQBarButtonItemConfiguration.swift in Sources */, - 20302EF7FDF8788C2A52BEC837617E24 /* IQInvocation.swift in Sources */, - 2F0C1DF6BCC18175DF00FA36A403917E /* IQKeyboardToolbar.swift in Sources */, - F91DE04D9AFE6368A31CF627F06D1C05 /* IQKeyboardToolbar-dummy.m in Sources */, - 7FDC7630F10411A4DEB79549E69F5F5F /* IQKeyboardToolbarPlaceholderConfiguration.swift in Sources */, - 126F042D4B2F340DE3138253C1BD9C99 /* IQPlaceholderable.swift in Sources */, - BFC5DD1D47E9627393B920979F569A69 /* IQTitleBarButtonItem.swift in Sources */, - E8A74201D2F78C69C857A500D88D7F5D /* UIView+IQKeyboardExtension.swift in Sources */, - AACCF3AA32BE2187677FD50706AD7476 /* UIView+IQKeyboardExtensionDeprecated.swift in Sources */, - 0B711521C37380AB3ED0C13EF0FAF9A6 /* UIView+IQKeyboardExtensionObjc.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - DED4AD5DD92DDDC160258A036A443D26 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F20137CEA44AB166235CB3761C2E57F3 /* Sources */ = { + B229D9E15F75A5D7AB8DDE0C39302879 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 87DBE1CA85B65864BA2BD8EE27B64F74 /* IQTextInputViewInfo.swift in Sources */, + EC1FAF704B6CCC979D6B0CA2078879AE /* IQTextInputViewNotification.swift in Sources */, + 1AF7EC23421E175ACC93A42C105CEA49 /* IQTextInputViewNotification-dummy.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 0289564FC881345A79BD1B6531FF3219 /* PBXTargetDependency */ = { + 041E2CC6DFE2A6B560D8CFA2B4D906B8 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "IQTextInputViewNotification-IQTextInputViewNotification"; - target = 4502C7427440BEB17A50C0BF6E638A85 /* IQTextInputViewNotification-IQTextInputViewNotification */; - targetProxy = 5F9AD0BD2225542820663819BA76D223 /* PBXContainerItemProxy */; + name = IQKeyboardToolbar; + target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; + targetProxy = 32A57258A4AAEEF1E6305E7B310D0005 /* PBXContainerItemProxy */; }; - 04FCE446D622C5939DA314959342DC88 /* PBXTargetDependency */ = { + 05A1AEC02A423CBCC2DFC09F9D4FFB74 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMapFoundation-NO-IDFA"; + target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; + targetProxy = EE602595474CE7E67736CFB324228CB5 /* PBXContainerItemProxy */; + }; + 0D0ACD494A09D4697A9F058A054B15B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = IQKeyboardCore; target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; - targetProxy = D14881F3DD881DBB4CFEFFA8095A0E8F /* PBXContainerItemProxy */; + targetProxy = 1129C0F5CD23D293033E4EAA5D1BD4C0 /* PBXContainerItemProxy */; }; - 0A265E976551A0CE5B038DD60F48405F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardCore-IQKeyboardCore"; - target = EEE261386011CDF271BE289F73FF5959 /* IQKeyboardCore-IQKeyboardCore */; - targetProxy = A9B14D84173A1A00F4C4BA2CE94FCA5E /* PBXContainerItemProxy */; - }; - 13CE0F457F6753EE32E8FB88BF7DD7F8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardNotification; - target = A26E6FD851C20D652B2755C1464A9990 /* IQKeyboardNotification */; - targetProxy = C1A38D27A9A8F1A9E472CCC307883FD0 /* PBXContainerItemProxy */; - }; - 1B8EC6C3953225A69E2312C224DD5150 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = JCore; - target = D504B99928659EA67A1C3A9E981EB8FF /* JCore */; - targetProxy = 77340A1E87646633F9EA52E66E57B674 /* PBXContainerItemProxy */; - }; - 257C046139A332001B37EC1DC9581A88 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardToolbar; - target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; - targetProxy = 3A4000632C423DFB42EDDDE2ED54B0AE /* PBXContainerItemProxy */; - }; - 2CCAC78656F98DEE5167C9844BA79CC7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQTextInputViewNotification; - target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; - targetProxy = F9FB1958F0A6F81C94A74B5EF9C0350D /* PBXContainerItemProxy */; - }; - 36CDBF917A60EEFE38DD2F7C79B0B9B4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "Pods-suixinkan"; - target = 1DE17B7C77CD95CB67DF1197965B76AB /* Pods-suixinkan */; - targetProxy = 9F0C8DA2DAAB44671B01D41E79934E46 /* PBXContainerItemProxy */; - }; - 40B551A587D49784793075111A2B43DA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQTextInputViewNotification; - target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; - targetProxy = 1E28E961A0B3C66B143F0D83DEAE38D8 /* PBXContainerItemProxy */; - }; - 423901BB0BC7656034EFDA6B76B2414C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardToolbarManager-IQKeyboardToolbarManager"; - target = 7C5613175BBC4BF67E36DB4FBEBC01D0 /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */; - targetProxy = 4F8E9DD83779B38B70DC679422847A4C /* PBXContainerItemProxy */; - }; - 43B6F441EC86468D6C229FFE788CFF86 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMapFoundation-NO-IDFA"; - target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; - targetProxy = A68FC33FBFEBF6E0FC9A3004CD375308 /* PBXContainerItemProxy */; - }; - 43D53F6BFEB39F4503F44F84FBEC23F7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = UMCommon; - target = 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */; - targetProxy = 869CC868A322E78A78D6BBABA14E7C8C /* PBXContainerItemProxy */; - }; - 4A686003582098B259DDA20E5FC9D323 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardReturnManager-IQKeyboardReturnManager"; - target = 88810798DA63A2F6611B0970EA276DEC /* IQKeyboardReturnManager-IQKeyboardReturnManager */; - targetProxy = 1F093A748267B19E1B59DF90F454A7BC /* PBXContainerItemProxy */; - }; - 4D7527C0D0F449074058BC407459B048 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMapFoundation-NO-IDFA"; - target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; - targetProxy = 713D4F0ABEA99574CA78A6A200B6E9F3 /* PBXContainerItemProxy */; - }; - 559B5DC039C8981EEE9696C323082915 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMap3DMap-NO-IDFA"; - target = B44FB02BD2D3FEAD1F36808AD405A543 /* AMap3DMap-NO-IDFA */; - targetProxy = FA244E0E1C3D5E471F57BE915A6F2E14 /* PBXContainerItemProxy */; - }; - 57354DDB8E699721C452977695B263FD /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardToolbar; - target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; - targetProxy = 9A3A247AD57EFF42E6B410B78E061CF8 /* PBXContainerItemProxy */; - }; - 5FE0DAE0602EB758297B19F4328BC38D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardToolbar; - target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; - targetProxy = 147ED37FE72D28DAFEC90706C048C6EA /* PBXContainerItemProxy */; - }; - 65ACB98E7ACF99994DC0973B228171CD /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = UMDevice; - target = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC /* UMDevice */; - targetProxy = 4907ED9E73DED3B716A419CFFDDD78CF /* PBXContainerItemProxy */; - }; - 73511E9AA76ADF17F178F12B12FB430A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = UMCommon; - target = 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */; - targetProxy = 62652A6D5809456307591E683A677266 /* PBXContainerItemProxy */; - }; - 78F427895C6768AC1AB392721DAE9200 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardNotification; - target = A26E6FD851C20D652B2755C1464A9990 /* IQKeyboardNotification */; - targetProxy = F094983E31D5376CF92A3C4ED2F97C3F /* PBXContainerItemProxy */; - }; - 7A1E9DA85ECA063CAF07B94CC789DFC7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardToolbarManager; - target = 020993F16DA5986DACE118349EBCE9E5 /* IQKeyboardToolbarManager */; - targetProxy = 08160729EBF68D12D8DEF8050CD42989 /* PBXContainerItemProxy */; - }; - 7E7528850A1FDD26B1FE2E8099A38A91 /* PBXTargetDependency */ = { + 0E01BAE168991620CF6F48B3D188BA53 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = "AMapSearch-NO-IDFA"; target = 4F1379598302C9160590B3650C10E1A5 /* AMapSearch-NO-IDFA */; - targetProxy = EFBECFEAB6CF3583EF396FC63DA3AAB3 /* PBXContainerItemProxy */; + targetProxy = 104963582BC50C41EF70065E5258EB55 /* PBXContainerItemProxy */; }; - 82D472A757E3AE733E285863E4FF7C29 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = JCore; - target = D504B99928659EA67A1C3A9E981EB8FF /* JCore */; - targetProxy = F608B4EA9716A1DF6EB5F14E89C57644 /* PBXContainerItemProxy */; - }; - 87027F7C2B24D7389E5ED0D1D7EB0FF3 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardCore; - target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; - targetProxy = 718E32BB22D5761863712D50A719B13E /* PBXContainerItemProxy */; - }; - 87C4B1E7F9C8681284EF020BA2CE7232 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQTextInputViewNotification; - target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; - targetProxy = A2FC1D93AA2AE0116D85F839E3630642 /* PBXContainerItemProxy */; - }; - 91835F72D032F3FBDE03F331CD1BE842 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMapLocation-NO-IDFA"; - target = 4BD4E22D3419D68A85BDD6119CB37C6C /* AMapLocation-NO-IDFA */; - targetProxy = 37EA5367B185E8D73C585D76CFA12A67 /* PBXContainerItemProxy */; - }; - 93501992D2687169C9D64ECF593AAFB5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMapFoundation-NO-IDFA"; - target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; - targetProxy = D07BB67961D258DFD6D4770BB99DE59A /* PBXContainerItemProxy */; - }; - 9878FADAAA880FFB5292FEA6B7285FF5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQTextView; - target = 12890DE3ABBC2CA295E108358D85EE69 /* IQTextView */; - targetProxy = C6AC669F30329ABDA94DBB8071DD78C3 /* PBXContainerItemProxy */; - }; - A18D468817B057A7642DD6597AD5D57D /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardManagerSwift-IQKeyboardManagerSwift"; - target = 982A68D37F5DCBC1FC1FDC0BB2F0EB8E /* IQKeyboardManagerSwift-IQKeyboardManagerSwift */; - targetProxy = AD834305DA2DE95480DD793BAACDD5CB /* PBXContainerItemProxy */; - }; - B0B1F438A4FD9457C082686C151CF10E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardReturnManager; - target = 0981F89DB5DA3FFCFFEBDE1F56287054 /* IQKeyboardReturnManager */; - targetProxy = C5A9E170B59A24C216A060F404429E41 /* PBXContainerItemProxy */; - }; - B4ED9F2608DCFF0DE645E679F965467F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = UMAPM; - target = F1E09035B7675D89EC69B16728E2833E /* UMAPM */; - targetProxy = 08C0B54B9FA330846FEB6A183A5D6742 /* PBXContainerItemProxy */; - }; - BC8F860A2D02AB8F29AA5B639971E84A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardManagerSwift; - target = B490E7485944099E16C9CBD79119D1D4 /* IQKeyboardManagerSwift */; - targetProxy = 3C509F104E60FE2C27E0B3C891C979DA /* PBXContainerItemProxy */; - }; - C6B684446AAB0C7A81EF869A2830679A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQTextView-IQTextView"; - target = A6602BCAA6F4F932A586C41D0B7E019C /* IQTextView-IQTextView */; - targetProxy = 8412429FAD3C39A715015569D46CB6CF /* PBXContainerItemProxy */; - }; - C84A9864ABE031E2E302ADDB0E0BB052 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQTextView; - target = 12890DE3ABBC2CA295E108358D85EE69 /* IQTextView */; - targetProxy = 198F2A9B122C5AFDA9BA2CAD713C9CDF /* PBXContainerItemProxy */; - }; - D1BAD58FB1961F1DB3B113E93A03AF29 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardCore; - target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; - targetProxy = 4CB9062557A28267D22F4E20A2927AD4 /* PBXContainerItemProxy */; - }; - D4853B8A651ECA6D156A2EF893BAA13A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "AMapFoundation-NO-IDFA"; - target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; - targetProxy = 47CF81B26EE0AE51709688B148A7662A /* PBXContainerItemProxy */; - }; - D510D6FDF9862C3FCAAAAA313D2BC549 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardNotification-IQKeyboardNotification"; - target = 2B8FF445A5162845FAB9EC00FC92B694 /* IQKeyboardNotification-IQKeyboardNotification */; - targetProxy = C02B574389C3B5B10F5BF8E806AD24A3 /* PBXContainerItemProxy */; - }; - D75775B1CDD4D1DBFD4D66F94CD5CF03 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardReturnManager; - target = 0981F89DB5DA3FFCFFEBDE1F56287054 /* IQKeyboardReturnManager */; - targetProxy = 5B8957EC1CB8F95A847120AD59DDEFAB /* PBXContainerItemProxy */; - }; - D8E393A29EF660C4A48ACF8426C25D32 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardCore; - target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; - targetProxy = 43375E8A7E5DEE972D5A3A7CC55C741F /* PBXContainerItemProxy */; - }; - D9FB833B6E0D570E62522324BCDCB420 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = IQKeyboardToolbarManager; - target = 020993F16DA5986DACE118349EBCE9E5 /* IQKeyboardToolbarManager */; - targetProxy = 2D17082BDAA079066A9B2943E85BE982 /* PBXContainerItemProxy */; - }; - E769300308672AE66F4679E79ABF421C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "IQKeyboardToolbar-IQKeyboardToolbar"; - target = B247F77A0CD5E19C8187A9BA1EB58C09 /* IQKeyboardToolbar-IQKeyboardToolbar */; - targetProxy = CF667262D25773528EC51D3D7DA7FCB9 /* PBXContainerItemProxy */; - }; - EBDABB0A79F03526A3A3A7726153BCC6 /* PBXTargetDependency */ = { + 11F9B04ED25D4D44F2064FBB7DE683D6 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = JPush; target = 5FB6AB0A09E7A2F2BE11AD6BAEFD9AED /* JPush */; - targetProxy = 133C2EC85A61CDF06B89A71B3F3FB832 /* PBXContainerItemProxy */; + targetProxy = E072D63C2E1B1FE4AD77BB97B7B340C2 /* PBXContainerItemProxy */; }; - EBF5E69FEE7E49D4E80788A055AE67C5 /* PBXTargetDependency */ = { + 13504B3EA0645BC1C860440A351676E5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = JCore; + target = D504B99928659EA67A1C3A9E981EB8FF /* JCore */; + targetProxy = 1E572DA8CD240673FDA5DB3905A149D4 /* PBXContainerItemProxy */; + }; + 204FD388CFB176C0766F60CB1CAEBA86 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMapLocation-NO-IDFA"; + target = 4BD4E22D3419D68A85BDD6119CB37C6C /* AMapLocation-NO-IDFA */; + targetProxy = D3AA7945DC9B9DA743437AFFE1EA88F2 /* PBXContainerItemProxy */; + }; + 20F0375C486E250BB5232F4758D576A4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardToolbarManager; + target = 020993F16DA5986DACE118349EBCE9E5 /* IQKeyboardToolbarManager */; + targetProxy = BDBF652935F74D29067118B5FCCE9CC5 /* PBXContainerItemProxy */; + }; + 27FAD84781762A448335ECCCDDC9E42E /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = "WechatOpenSDK-XCFramework"; target = 7F18C31A804695333763EEC303E265D7 /* WechatOpenSDK-XCFramework */; - targetProxy = 168E86429E4140AB7AE450B6F636B64E /* PBXContainerItemProxy */; + targetProxy = 7A77A5B3886021A7107293AFFA6952B0 /* PBXContainerItemProxy */; }; - EEB39FDC8A236AB428E4BA853F5A9139 /* PBXTargetDependency */ = { + 2EAF3D32B47629317952DB929164BAB2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardCore; + target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; + targetProxy = 67F7A60D7720446A869535A96F3545C0 /* PBXContainerItemProxy */; + }; + 337C96201808509507CA774D119D9AD8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQTextView; + target = 12890DE3ABBC2CA295E108358D85EE69 /* IQTextView */; + targetProxy = ED17866C6B82B5FD1FFDB8382E1E23FF /* PBXContainerItemProxy */; + }; + 40E019D5F164716D9B37FF8FD2E3CAC0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardToolbar; + target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; + targetProxy = 793C2D3C9FEB330D539F7F26A32E632C /* PBXContainerItemProxy */; + }; + 4BDB84F42661A88DB4AE7F506CD672F4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardCore; + target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; + targetProxy = 01D18C0819E8839BA684925E4171A531 /* PBXContainerItemProxy */; + }; + 4F6360FC32BA6CA3C9D8A7A764A273B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = UMDevice; target = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC /* UMDevice */; - targetProxy = F9D06F8A081789EC565FDAA1773A6650 /* PBXContainerItemProxy */; + targetProxy = BEE3E2E0449835ECC392F9790745E3EA /* PBXContainerItemProxy */; + }; + 4F986259884CF9231BAD66B79A8367CA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardToolbarManager-IQKeyboardToolbarManager"; + target = 7C5613175BBC4BF67E36DB4FBEBC01D0 /* IQKeyboardToolbarManager-IQKeyboardToolbarManager */; + targetProxy = A5DEF6E6B93482A0654D2EBF62442688 /* PBXContainerItemProxy */; + }; + 52A718AAC261E51A6EE91D1E3D571C27 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardNotification; + target = A26E6FD851C20D652B2755C1464A9990 /* IQKeyboardNotification */; + targetProxy = 6A637EE80FDCC14586BC4A2357809349 /* PBXContainerItemProxy */; + }; + 5375AE20C152FDE6AB69C04F0F29046F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardCore; + target = F9A1BF709B7BA4C24A83664EB1E1C7D4 /* IQKeyboardCore */; + targetProxy = DA172C18A690AAECA4B5A3D4C12D56AA /* PBXContainerItemProxy */; + }; + 573E8B431E8BF8D16944F13F1C0DE9F5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQTextView; + target = 12890DE3ABBC2CA295E108358D85EE69 /* IQTextView */; + targetProxy = 072D6CAC4C4199F09765E95E9CADD3E7 /* PBXContainerItemProxy */; + }; + 57C5226AB4AFFE43C654081EC80A85B8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardReturnManager; + target = 0981F89DB5DA3FFCFFEBDE1F56287054 /* IQKeyboardReturnManager */; + targetProxy = 52E917FAA10BBBE17F522043CCD589A1 /* PBXContainerItemProxy */; + }; + 5C5D15AAD292B83C1872ABD6D6AC563D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCommon; + target = 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */; + targetProxy = 94FC7A64B621994C5E02C3C7B1C50D97 /* PBXContainerItemProxy */; + }; + 66142B6A1CD90BF9F7AB3C00AC03D81A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardToolbar-IQKeyboardToolbar"; + target = B247F77A0CD5E19C8187A9BA1EB58C09 /* IQKeyboardToolbar-IQKeyboardToolbar */; + targetProxy = 85E234DCBE75440A7CD79BF12FF11C72 /* PBXContainerItemProxy */; + }; + 66DF1AD9D3E97349A96E5F5C90757C68 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMapFoundation-NO-IDFA"; + target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; + targetProxy = 89FB9D8FBE659E0556840B05F9146FEB /* PBXContainerItemProxy */; + }; + 6B3DC3EE73395FEEFA2D07353D24DBA9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardReturnManager; + target = 0981F89DB5DA3FFCFFEBDE1F56287054 /* IQKeyboardReturnManager */; + targetProxy = F595694C90F4FF142AD0682F79BC0066 /* PBXContainerItemProxy */; + }; + 706EF92721F065D187D2BB79F574C847 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQTextView-IQTextView"; + target = A6602BCAA6F4F932A586C41D0B7E019C /* IQTextView-IQTextView */; + targetProxy = 0C9E79873973D9E950237E695A8EE7FE /* PBXContainerItemProxy */; + }; + 75C7A3492D85446BC94DFAD73EF4FF03 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = JCore; + target = D504B99928659EA67A1C3A9E981EB8FF /* JCore */; + targetProxy = E3D22E58F959CB9DF7B79C4E5D8175A2 /* PBXContainerItemProxy */; + }; + 7A9D23AB68ABBF5DE686EF168016478D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCommon; + target = 09FABB7D06BB8D3958515FB15B4E7971 /* UMCommon */; + targetProxy = E8EB0BAF47F22FD1C2A551B4318E2AE4 /* PBXContainerItemProxy */; + }; + 7B659A53BDE555DBF687F9AF5C5363FC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMapFoundation-NO-IDFA"; + target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; + targetProxy = 7E134C5A3ECB28A0092D93FDADCD88F6 /* PBXContainerItemProxy */; + }; + 9E9BD81B51490D7C334A5A60FE1111D0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardManagerSwift; + target = B490E7485944099E16C9CBD79119D1D4 /* IQKeyboardManagerSwift */; + targetProxy = 3F0020DA13C4BE480F10A0524490A4AB /* PBXContainerItemProxy */; + }; + A29280CF0ECF52479D7F88904ED009B8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMapFoundation-NO-IDFA"; + target = 9B182CB4E1716E9070813D3C59736001 /* AMapFoundation-NO-IDFA */; + targetProxy = B639DB1BCA73C9D02E5BE0CC18E69C5B /* PBXContainerItemProxy */; + }; + A3132469DDB9CC498C41B9FCD5ED3A2A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQTextInputViewNotification; + target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; + targetProxy = F7356744E89632201B581A2D5BCAF069 /* PBXContainerItemProxy */; + }; + AE5B9CB6019FDEFD3C68ECD10629DCD0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMDevice; + target = CEB9AD2C3CFC208BFBE1F22F5EC3E1FC /* UMDevice */; + targetProxy = 36117BA18D436FE6D0DE6B596B931149 /* PBXContainerItemProxy */; + }; + B5C3DC4EC4CE4420FBA9801FCD1E6270 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardNotification-IQKeyboardNotification"; + target = 2B8FF445A5162845FAB9EC00FC92B694 /* IQKeyboardNotification-IQKeyboardNotification */; + targetProxy = 725E75FD278AFD2F4826D8DDEAF4AC8F /* PBXContainerItemProxy */; + }; + B6E8DB3BD84A7E9508C6CF96915F005B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "AMap3DMap-NO-IDFA"; + target = B44FB02BD2D3FEAD1F36808AD405A543 /* AMap3DMap-NO-IDFA */; + targetProxy = BD6AFA6FE9B294C3A16AB8960B43D384 /* PBXContainerItemProxy */; + }; + BC53EB257EF96B5B530977BB7E71E8CD /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardCore-IQKeyboardCore"; + target = EEE261386011CDF271BE289F73FF5959 /* IQKeyboardCore-IQKeyboardCore */; + targetProxy = 405A63C2CBD0544A9007623125E06AE7 /* PBXContainerItemProxy */; + }; + C206BE584D88B37ECDC3054891961C63 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardToolbar; + target = F4FE17428FD0E607723A44F17231B7A1 /* IQKeyboardToolbar */; + targetProxy = 0D8FE846DDF88044667D938580E2F373 /* PBXContainerItemProxy */; + }; + C642A9DA4392C05C201A535CDBA4D0B7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = VolcEngineRTC; + target = 40080C576D6EAF0D191988D3C110FE86 /* VolcEngineRTC */; + targetProxy = 0354D23C2A3B715A81EBF375A2C6111C /* PBXContainerItemProxy */; + }; + C850F73D0CD4FF748E4E30860AAFB932 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQTextInputViewNotification; + target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; + targetProxy = 39DF2F1B454E7B7793443C38199EB0B7 /* PBXContainerItemProxy */; + }; + D712A40A6F15B03849EDADE61B68DB39 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMAPM; + target = F1E09035B7675D89EC69B16728E2833E /* UMAPM */; + targetProxy = 807C83A3A6EE16C45CED3C72029B8BE5 /* PBXContainerItemProxy */; + }; + D86848614F0E20BC8CF8ED6E512BD7A0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQTextInputViewNotification-IQTextInputViewNotification"; + target = 4502C7427440BEB17A50C0BF6E638A85 /* IQTextInputViewNotification-IQTextInputViewNotification */; + targetProxy = 7FC3B94B59881CDB0C5AF28A2366839D /* PBXContainerItemProxy */; + }; + D92D635FFCBAC07B10A2EF03F063A27A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardManagerSwift-IQKeyboardManagerSwift"; + target = 982A68D37F5DCBC1FC1FDC0BB2F0EB8E /* IQKeyboardManagerSwift-IQKeyboardManagerSwift */; + targetProxy = C6430EDA286E309851C27140590779BF /* PBXContainerItemProxy */; + }; + DB6A9F07CDE331CEF3799CE3A6CCF5F8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardNotification; + target = A26E6FD851C20D652B2755C1464A9990 /* IQKeyboardNotification */; + targetProxy = 088FCAC994901FDB36023E93E94300FE /* PBXContainerItemProxy */; + }; + E0A5F7B02F9BC271A1362F5B57FB045F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "Pods-suixinkan"; + target = 1DE17B7C77CD95CB67DF1197965B76AB /* Pods-suixinkan */; + targetProxy = A76A974111C4DF28BDEE9331043B5B15 /* PBXContainerItemProxy */; + }; + F99C25A65D58FB66226D4571D404B903 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "IQKeyboardReturnManager-IQKeyboardReturnManager"; + target = 88810798DA63A2F6611B0970EA276DEC /* IQKeyboardReturnManager-IQKeyboardReturnManager */; + targetProxy = 2E42166B1ED5EC0E474E973A4D28B957 /* PBXContainerItemProxy */; + }; + FA7383946254CE1ED576095763780D1A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQTextInputViewNotification; + target = 283C1F2EA88CD4413165801A6748A48E /* IQTextInputViewNotification */; + targetProxy = EE0C384FA001B636E43753E78E9CD110 /* PBXContainerItemProxy */; + }; + FD08A4809C49D9071F6F4165742F73B5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = IQKeyboardToolbarManager; + target = 020993F16DA5986DACE118349EBCE9E5 /* IQKeyboardToolbarManager */; + targetProxy = 79E52737FC3E90BFC787B43531CB0935 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ - 006ECEB934E36E2BAC3C338BB61530B2 /* Debug */ = { + 00880EDC05269801C446ED8C41643AEE /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */; + baseConfigurationReference = 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; + IBSC_MODULE = IQTextInputViewNotification; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = SimulatorDebug; + }; + 0128796E1FAE80CFE8E84E81CBB57B04 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardManagerSwift"; + IBSC_MODULE = IQKeyboardManagerSwift; + INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardManagerSwift; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Debug; + }; + 01566EB080B5D3116D54A00F7BBFC796 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 948A9344898DCC2785FDDAD0699D6C1E /* IQKeyboardNotification.release.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -3180,31 +3335,15 @@ SWIFT_INSTALL_OBJC_HEADER = YES; SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; - name = Debug; - }; - 00E826101F8ECF726DC994CEF0D6722C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = D2B0169030016DBD87F970A973A138AD /* IQKeyboardCore.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; - IBSC_MODULE = IQKeyboardCore; - INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardCore; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; name = Release; }; 046607F7F70BF6ADBE3CC5FB84191FB7 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 930E9B1B194A403F3F0A4F95FAF2427A /* AMapLocation-NO-IDFA.debug.xcconfig */; + baseConfigurationReference = 20C3CD12D4046B6427964786B1D7F200 /* AMapLocation-NO-IDFA.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -3219,103 +3358,60 @@ }; name = SimulatorDebug; }; - 099143098447CA7F8B58F10A500B8F4A /* Debug */ = { + 080BBC6931C827C0F4E5E44F8547C0C3 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */; + baseConfigurationReference = 5B91072D08BB3F63162262295825C5FF /* IQKeyboardToolbarManager.release.xcconfig */; buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardReturnManager; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 09C31970175B907E646C8274BAB9E057 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardToolbar; - PRODUCT_NAME = IQKeyboardToolbar; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 0C48E272FEFCEBBFB916BC49AD53DB8B /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardManagerSwift"; - IBSC_MODULE = IQKeyboardManagerSwift; - INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; + IBSC_MODULE = IQKeyboardToolbarManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardManagerSwift; + PRODUCT_NAME = IQKeyboardToolbarManager; SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = bundle; }; - name = SimulatorDebug; + name = Release; + }; + 08613EB11B5EFEB7B2ED6252F22D824B /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 10F845770A3EF5F5562CC88EA7BE4644 /* IQTextInputViewNotification.release.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; + IBSC_MODULE = IQTextInputViewNotification; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Release; + }; + 0B27BEAA7FF522CAE968C9E460146386 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B184A8220FD8F49AFB9FA1C67C8F4085 /* UMDevice.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; }; 0CBBD15A4F485A23067401CA54BAB2A2 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */; + baseConfigurationReference = 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -3351,6 +3447,41 @@ }; name = SimulatorDebug; }; + 0E2DB34C8255944824CBA5C7C163AC2B /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; + IBSC_MODULE = IQKeyboardToolbarManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardToolbarManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = SimulatorDebug; + }; + 1162EE88C2B4989F77488A101084A430 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3743F40B27DFFA0C0530479FFB587691 /* IQKeyboardReturnManager.release.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; + IBSC_MODULE = IQKeyboardReturnManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardReturnManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Release; + }; 1256C974196FF130605BCB900B8E4CF2 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = A60612F837C72E04C6FBB22DF596D0FD /* Pods-suixinkanTests.release.xcconfig */; @@ -3391,7 +3522,120 @@ }; name = Release; }; - 15E5D635811DE4DDEF79E7C0D7C02EE5 /* Release */ = { + 1548EA2F2CBEC9CE28DC21F855105996 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 67DC68595F07F473A69296FC2DD4E016 /* Pods-suixinkan.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = "Target Support Files/Pods-suixinkan/Pods-suixinkan-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-suixinkan/Pods-suixinkan.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 19F92A39CD5E1730023173E7FB07EAB7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7FC0495E836EAA9DCCF5B24BA4F96574 /* JCore.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 1FE8B9B19BDB828D1D6E2BAB12520D85 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D716492F07DEB42B388856692B6E843A /* AMapLocation-NO-IDFA.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2129046C72E3699C1A5CB89DEA1D79A5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 10F845770A3EF5F5562CC88EA7BE4644 /* IQTextInputViewNotification.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; + PRODUCT_MODULE_NAME = IQTextInputViewNotification; + PRODUCT_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 239EC0DD9DE95C2A8CA208AE47184167 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9C16EBBD1A736D37F674242425B27F20 /* Pods-suixinkan.release.xcconfig */; buildSettings = { @@ -3431,9 +3675,9 @@ }; name = Release; }; - 19F92A39CD5E1730023173E7FB07EAB7 /* Debug */ = { + 26A29A509262176CC4B40AD784E0062E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9F44C0F5A31C9EFE79B6821581FC6A90 /* JCore.debug.xcconfig */; + baseConfigurationReference = 0C5373D6FEC052390EF0155BC139DA74 /* UMCommon.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -3448,97 +3692,47 @@ }; name = Debug; }; - 1B03E27940D9DB99696B499239061A26 /* Release */ = { + 2AA75EE79F5096D732F5C8740CDAC26E /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = E58F90C5C01D15A1D8477A2F76C55479 /* IQKeyboardToolbar.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; - IBSC_MODULE = IQKeyboardToolbar; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbar; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 1EE3CBE979432D435B81CBAA8BACEBBF /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3F8A7B40939E68E709158AA51CF7B536 /* UMCommon.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 1FE8B9B19BDB828D1D6E2BAB12520D85 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3F2BA6FF47C66D4951D519C0085C948B /* AMapLocation-NO-IDFA.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 2251E044D8EF017D45F9D3DEBBE7E37A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; - IBSC_MODULE = IQTextInputViewNotification; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQTextInputViewNotification; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 2A9DF9EAE34E515C55D0F836B17B0CC9 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */; + baseConfigurationReference = FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; - IBSC_MODULE = IQKeyboardCore; - INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardCore; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardToolbarManager; + PRODUCT_NAME = IQKeyboardToolbarManager; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; }; name = SimulatorDebug; }; 2C54CBB64D554D5B12FCC966401A3CD5 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */; + baseConfigurationReference = C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -3675,98 +3869,9 @@ }; name = Release; }; - 33570970A5E44A907921BFC5D3CDFC52 /* SimulatorDebug */ = { + 3226B13A536555E89D2D07085D304F4F /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 56E9537047D72ABA1C9695C95A4AF843 /* UMAPM.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - 35BB84CEDBA5C1476D858453DE3FC701 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1D1E7E265254C8003D8A5F7C75B7B539 /* AMapFoundation-NO-IDFA.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 374BDDC1B25527BE81775EB8627C15CD /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A8E60BFFD4A191EDF1872BE7E0FAE073 /* IQKeyboardReturnManager.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; - IBSC_MODULE = IQKeyboardReturnManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 3D69CA0B1695293FBA0009EA7E34F1F5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; - PRODUCT_MODULE_NAME = IQTextInputViewNotification; - PRODUCT_NAME = IQTextInputViewNotification; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 3DE59E452D8974494117DF1C303917B3 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E58F90C5C01D15A1D8477A2F76C55479 /* IQKeyboardToolbar.release.xcconfig */; + baseConfigurationReference = 37ED2C21C1E1ACCC106AA7C2D98CD280 /* IQKeyboardToolbar.release.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -3803,9 +3908,9 @@ }; name = Release; }; - 427A15AAEF63818FAA1CAC6300810564 /* SimulatorDebug */ = { + 33570970A5E44A907921BFC5D3CDFC52 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9F44C0F5A31C9EFE79B6821581FC6A90 /* JCore.debug.xcconfig */; + baseConfigurationReference = 4E1E716A01DDF5D7844AD4F6DD359924 /* UMAPM.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -3820,82 +3925,9 @@ }; name = SimulatorDebug; }; - 45B43439F28EA2D1004B2EE36A4E63DC /* Release */ = { + 35923A58C1D039604461FB7ED7C9D300 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D2B0169030016DBD87F970A973A138AD /* IQKeyboardCore.release.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardCore/IQKeyboardCore-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/IQKeyboardCore-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardCore/IQKeyboardCore.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardCore; - PRODUCT_NAME = IQKeyboardCore; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 46F98087C8D84310CDE4A60C95BB50E4 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 10CADA6646C9AF13C983D13EAF7F5378 /* IQKeyboardToolbarManager.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; - IBSC_MODULE = IQKeyboardToolbarManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbarManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 4A63680095D13AFE8AADC2DD651ED1DF /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E64981F07E6AF8250D37F4D1295891B8 /* UMCommon.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 51A5AA0D4A6EA7B3DEE27239C671F20C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = BDDEE926B156A69E8B915347853ECEC5 /* IQKeyboardManagerSwift.release.xcconfig */; + baseConfigurationReference = FF1A51684BE9AD249695A507E8AE84BF /* IQKeyboardManagerSwift.release.xcconfig */; buildSettings = { CODE_SIGNING_ALLOWED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardManagerSwift"; @@ -3910,119 +3942,11 @@ }; name = Release; }; - 5462C869E62F6E27C1B8B088F9859726 /* SimulatorDebug */ = { + 3632907CCAEFC18F7310607AEFFF8593 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */; + baseConfigurationReference = 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; - IBSC_MODULE = IQKeyboardReturnManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = SimulatorDebug; - }; - 54E5F780F370BCDEBF4A70F5FA2DE9FF /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F283224B76C1D6B83702001679439919 /* UMAPM.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 57F30DED93690F3F73FC85C798F6920A /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA43AA432E51DD3E160CB45F75EDD874 /* JCore.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 586B0D9EBD67B3D385760CD014900637 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3BAA32FB751F6BB0FD65930595456ACA /* IQTextView.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextView"; - IBSC_MODULE = IQTextView; - INFOPLIST_FILE = "Target Support Files/IQTextView/ResourceBundle-IQTextView-IQTextView-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQTextView; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 5D2D3B802F1C540631553C6626C51D77 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardToolbar; - PRODUCT_NAME = IQKeyboardToolbar; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = SimulatorDebug; - }; - 5D65C20480CD1638A64822CF819348BB /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */; - buildSettings = { CODE_SIGNING_ALLOWED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardNotification"; IBSC_MODULE = IQKeyboardNotification; @@ -4034,231 +3958,11 @@ TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = bundle; }; - name = Debug; - }; - 5EBEDA379F0CDF486B8F287C13BFE013 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1FB7DE577ECCA1457268EA70E8DB4DAC /* JPush.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 5FAC6598990735686A996D7E70DF3EA8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A8E60BFFD4A191EDF1872BE7E0FAE073 /* IQKeyboardReturnManager.release.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardReturnManager; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 610FF798BB5843B0008389B878CF0E3E /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 2161AA772A6755F4D5D60BD723919D3B /* IQTextInputViewNotification.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; - IBSC_MODULE = IQTextInputViewNotification; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQTextInputViewNotification; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 614855485F99BBA9DA1E29197646AA99 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = BDDEE926B156A69E8B915347853ECEC5 /* IQKeyboardManagerSwift.release.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardManagerSwift; - PRODUCT_NAME = IQKeyboardManagerSwift; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 66B8ED63760B2E1782BC65C56BB81A23 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; - IBSC_MODULE = IQKeyboardReturnManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 68894A46ED94B1B55EDBC8E5B7F16A4A /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; - PRODUCT_MODULE_NAME = IQTextView; - PRODUCT_NAME = IQTextView; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; name = SimulatorDebug; }; - 6A12D2FD2E860D435F801E231808847B /* Release */ = { + 3809015D1911D42EADEE1B4CC8FA42C9 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 401C0B5E9F8F1552898BFACFDEB8C41D /* IQKeyboardNotification.release.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardNotification"; - IBSC_MODULE = IQKeyboardNotification; - INFOPLIST_FILE = "Target Support Files/IQKeyboardNotification/ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardNotification; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; - 6B39FC5F68684EDE8E1156AEFCE888C6 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E64981F07E6AF8250D37F4D1295891B8 /* UMCommon.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - 6FD6B6F43063FD5FCCE14F70DA9A5B69 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DFE51D2405E1E217F50AA3BA1213B3AD /* UMDevice.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 72A219A8FC63CFB344DBE3451FA1313D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 10CADA6646C9AF13C983D13EAF7F5378 /* IQKeyboardToolbarManager.release.xcconfig */; + baseConfigurationReference = FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -4289,68 +3993,15 @@ SWIFT_INSTALL_OBJC_HEADER = YES; SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; - name = Release; - }; - 7A2AE90C14DDF3F5EA98F38A54A09F39 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; - IBSC_MODULE = IQKeyboardToolbar; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbar; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; name = Debug; }; - 7AB411313E0E948C032AC6FACEC06029 /* Debug */ = { + 39B94A7458BBA2A3F1E43B8E67C71532 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */; + baseConfigurationReference = F1F98B961492E58401AF64822AA86791 /* IQTextView.release.xcconfig */; buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; - IBSC_MODULE = IQKeyboardToolbarManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbarManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 7CCF3C55E3884B7D6BAA7A7B5A200CE1 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DD52E2C9D26643C4510332244B319F71 /* JPush.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - 80ECF48F68A3A075A2A0D8B392C30F84 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGNING_ALLOWED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextView"; IBSC_MODULE = IQTextView; @@ -4362,64 +4013,9 @@ TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = bundle; }; - name = SimulatorDebug; + name = Release; }; - 8114091CF46E116D123C7DFC8F3175BF /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 533B31BFC1F29651016A4CED40C41C45 /* IQKeyboardReturnManager.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardReturnManager; - PRODUCT_NAME = IQKeyboardReturnManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = SimulatorDebug; - }; - 87F708D71356EA1183EF5535D5FA83FE /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */; - buildSettings = { - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; - IBSC_MODULE = IQKeyboardCore; - INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardCore; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - 89A05ED16BE7F147E0B2C1D88345B7B6 /* SimulatorDebug */ = { + 3B3B37F221BCE09B66833AA9B02EA981 /* SimulatorDebug */ = { isa = XCBuildConfiguration; baseConfigurationReference = E3B33A56AD414D84948526129E9D584C /* Pods-suixinkan.simulatordebug.xcconfig */; buildSettings = { @@ -4458,66 +4054,10 @@ }; name = SimulatorDebug; }; - 93211965B43F0CB2B08107959A929B0F /* SimulatorDebug */ = { + 3B4750357F3A04F91A015E6BFB7F9837 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */; + baseConfigurationReference = 948A9344898DCC2785FDDAD0699D6C1E /* IQKeyboardNotification.release.xcconfig */; buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardToolbarManager; - PRODUCT_NAME = IQKeyboardToolbarManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = SimulatorDebug; - }; - 93DF1B4C8EA7BE813A9B7A8CC33CC6F6 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C7C310CD68DF209957D60358329E9D5B /* AMap3DMap-NO-IDFA.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - 946384BF19448D77AF04CB5114DBCF14 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGNING_ALLOWED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardNotification"; IBSC_MODULE = IQKeyboardNotification; @@ -4529,18 +4069,112 @@ TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = bundle; }; + name = Release; + }; + 3F012ECECF9942D6D26FEF28931A9054 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardToolbar; + PRODUCT_NAME = IQKeyboardToolbar; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; name = SimulatorDebug; }; - 975FEEA40A8C8BD46300095E53BD15EE /* Debug */ = { + 427A15AAEF63818FAA1CAC6300810564 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */; + baseConfigurationReference = 7FC0495E836EAA9DCCF5B24BA4F96574 /* JCore.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 45B43439F28EA2D1004B2EE36A4E63DC /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7CE0E04517BD2363A893C1E85B4B248F /* IQKeyboardCore.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardCore/IQKeyboardCore-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/IQKeyboardCore-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardCore/IQKeyboardCore.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardCore; + PRODUCT_NAME = IQKeyboardCore; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 47DD8A67554FA0CFEF75EB443BA908E8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */; buildSettings = { CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardManagerSwift"; - IBSC_MODULE = IQKeyboardManagerSwift; - INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; + IBSC_MODULE = IQKeyboardCore; + INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardManagerSwift; + PRODUCT_NAME = IQKeyboardCore; SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -4548,98 +4182,249 @@ }; name = Debug; }; - 988225462B092B5D7926A95A1A21B24D /* SimulatorDebug */ = { + 4A68D42D85F2983A8CBA83B44C45A5E1 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FDF709D73DE1142AE1CF86A66274B9FC /* WechatOpenSDK-XCFramework.debug.xcconfig */; + baseConfigurationReference = FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CLANG_ENABLE_OBJC_WEAK = NO; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - 993C8EF2D62C050B1B18AE2E75654CEB /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 357507030049F8711B5F2560C8BE96B0 /* AMapFoundation-NO-IDFA.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - A05DB17AED4D51BD93C7666E23ABD90D /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 30B02A6B0D6954EF43EFA3789887E608 /* AMapSearch-NO-IDFA.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = SimulatorDebug; - }; - A093432E64AA520BF0DA955291A9475D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3AAAF0891AEED7CA4AF20AE95070E340 /* AMapSearch-NO-IDFA.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - AC920FCB33A41A7879A8121BC9971074 /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; - IBSC_MODULE = IQTextInputViewNotification; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; + IBSC_MODULE = IQKeyboardReturnManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQTextInputViewNotification; + PRODUCT_NAME = IQKeyboardReturnManager; SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = bundle; }; + name = Debug; + }; + 51C86BFF64DA5BE9F5C09D7EB4537156 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F1F98B961492E58401AF64822AA86791 /* IQTextView.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; + PRODUCT_MODULE_NAME = IQTextView; + PRODUCT_NAME = IQTextView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 525FBC7B3A1F92004D696A96314B1688 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; + IBSC_MODULE = IQKeyboardToolbar; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardToolbar; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Debug; + }; + 52D243A8CBB51EAA0D78B04925AA39A4 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EDC68D4FCB048FBF2A45CC21B1638F80 /* VolcEngineRTC.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_OBJC_WEAK = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 54E5F780F370BCDEBF4A70F5FA2DE9FF /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 006784975D34D4F2841543B05EC4A195 /* UMAPM.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 57F30DED93690F3F73FC85C798F6920A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = CBD245733975A997CDE429A351AB1C6F /* JCore.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 598E3828E2FACEEFF930BA2BC880BBEE /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardReturnManager; + PRODUCT_NAME = IQKeyboardReturnManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; name = SimulatorDebug; }; - AD0AB773E05696871E507C0BA3F182CB /* Debug */ = { + 5EBEDA379F0CDF486B8F287C13BFE013 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */; + baseConfigurationReference = E8FD6F60EF688C5AC4A8B023D6D4196A /* JPush.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 614855485F99BBA9DA1E29197646AA99 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FF1A51684BE9AD249695A507E8AE84BF /* IQKeyboardManagerSwift.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardManagerSwift; + PRODUCT_NAME = IQKeyboardManagerSwift; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 61FC45D8AF3A48089D539804BB74FDC6 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9B64B38CCC51FEC6E0F64ABFCE0D6BFF /* AMapFoundation-NO-IDFA.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 65BED541222A9C5AB802EC59453C0FF2 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */; buildSettings = { CODE_SIGNING_ALLOWED = NO; CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextView"; @@ -4654,26 +4439,65 @@ }; name = Debug; }; - AF0A1E4E43090E7D99AEE73C05A36AC4 /* Debug */ = { + 674EC62E70F9A09829AD9B38B3E57581 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 930E9B1B194A403F3F0A4F95FAF2427A /* AMapLocation-NO-IDFA.debug.xcconfig */; + baseConfigurationReference = FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", + "@loader_path/Frameworks", ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbar/IQKeyboardToolbar.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardToolbar; + PRODUCT_NAME = IQKeyboardToolbar; SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; }; name = Debug; }; - B0C58F24582EC0647BB0D8EC658E7C3B /* Release */ = { + 6B56EAC318C09E4BBF9E34AC89BEDCC1 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 401C0B5E9F8F1552898BFACFDEB8C41D /* IQKeyboardNotification.release.xcconfig */; + baseConfigurationReference = FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardReturnManager"; + IBSC_MODULE = IQKeyboardReturnManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/ResourceBundle-IQKeyboardReturnManager-IQKeyboardReturnManager-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardReturnManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = SimulatorDebug; + }; + 6C8D478A408C8091D5776CF9B83B7EAA /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -4704,12 +4528,446 @@ SWIFT_INSTALL_OBJC_HEADER = YES; SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; + name = Debug; + }; + 704EF8B93B8BDAD0A59561D55C7976E2 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EDC68D4FCB048FBF2A45CC21B1638F80 /* VolcEngineRTC.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_OBJC_WEAK = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 72D9B0E972F8A19A3FBAD2059C39C4D7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7CE0E04517BD2363A893C1E85B4B248F /* IQKeyboardCore.release.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; + IBSC_MODULE = IQKeyboardCore; + INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardCore; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; name = Release; }; + 75199AD2E2B123A0604ECE956585D169 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; + PRODUCT_MODULE_NAME = IQTextView; + PRODUCT_NAME = IQTextView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = SimulatorDebug; + }; + 7CCF3C55E3884B7D6BAA7A7B5A200CE1 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = CED54F92E588775BEA7B38CECABD7702 /* JPush.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 7D73F4B8E7AFDB1FDC79F3FD901DA850 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardManagerSwift"; + IBSC_MODULE = IQKeyboardManagerSwift; + INFOPLIST_FILE = "Target Support Files/IQKeyboardManagerSwift/ResourceBundle-IQKeyboardManagerSwift-IQKeyboardManagerSwift-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardManagerSwift; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = SimulatorDebug; + }; + 80433F2CA55A715C9B9804750BEFD39D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; + PRODUCT_MODULE_NAME = IQTextView; + PRODUCT_NAME = IQTextView; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 831BD8993867792A3BB79CFA691C2047 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D4441EC6FD7E6501CD6A029CC5547EB7 /* UMDevice.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 835213B0CD4B72C47ADC8B6CD0D341D5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA8405454F857A83074F7A861FD13878 /* IQKeyboardReturnManager.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardReturnManager; + PRODUCT_NAME = IQKeyboardReturnManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 8B4FAD23565D3E04F3B3281EBD5357D1 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B184A8220FD8F49AFB9FA1C67C8F4085 /* UMDevice.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 8C216CCE60522B2E9813D34CCD890C2D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 99E675068425C5A9A5145CD79E3BCA08 /* AMapFoundation-NO-IDFA.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 91FC7178B53A17E4EDFBAFD2FCF69126 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 83448C8FCF4765056F1A35E450B655E6 /* UMCommon.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 92982B7A6C682CF5DCAFBEC4827314F8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; + PRODUCT_MODULE_NAME = IQTextInputViewNotification; + PRODUCT_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 93DF1B4C8EA7BE813A9B7A8CC33CC6F6 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 51367A9A6774AE911676FEE589F4D4E9 /* AMap3DMap-NO-IDFA.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 988225462B092B5D7926A95A1A21B24D /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A3ADF11FAEAC8F80DA91E2D23F4F5C48 /* WechatOpenSDK-XCFramework.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_OBJC_WEAK = NO; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + 9C3E3AE1E1B56155996EDBFCB40C72DC /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; + PRODUCT_MODULE_NAME = IQTextInputViewNotification; + PRODUCT_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = SimulatorDebug; + }; + A05DB17AED4D51BD93C7666E23ABD90D /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A900C19FDD423A63EDB4890241E20444 /* AMapSearch-NO-IDFA.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + A093432E64AA520BF0DA955291A9475D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 48303C21DF2C6D474BE4A0AADEE9E16C /* AMapSearch-NO-IDFA.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + AF0A1E4E43090E7D99AEE73C05A36AC4 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 20C3CD12D4046B6427964786B1D7F200 /* AMapLocation-NO-IDFA.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + B04DD2E1E6CC154979A493AC1223363A /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardCore"; + IBSC_MODULE = IQKeyboardCore; + INFOPLIST_FILE = "Target Support Files/IQKeyboardCore/ResourceBundle-IQKeyboardCore-IQKeyboardCore-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardCore; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = SimulatorDebug; + }; B52FE32909A379BCBB8A0A31C91FC490 /* SimulatorDebug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 0AFBD211AC6EFEB81A9519313236FABF /* Pods-suixinkanTests.simulatordebug.xcconfig */; @@ -4750,9 +5008,26 @@ }; name = SimulatorDebug; }; + B959E24DFDF96888F01F178AAA9D4401 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FFC2E336F5D035028DAA138A1A5C4F2E /* IQKeyboardToolbarManager.debug.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; + IBSC_MODULE = IQKeyboardToolbarManager; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardToolbarManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Debug; + }; BAC71FA334650D78F8E815FFDA1DB086 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8D6DCAE6D0330A20D29082667233E33C /* WechatOpenSDK-XCFramework.release.xcconfig */; + baseConfigurationReference = C2A0B423670E836CA2EA43C41CB19811 /* WechatOpenSDK-XCFramework.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -4769,104 +5044,9 @@ }; name = Release; }; - BC62923F49BA0AC24F803CF4CE8FA864 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FC4CD6A2AB7E8F21DDF47AE3878B13B4 /* IQTextView.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; - PRODUCT_MODULE_NAME = IQTextView; - PRODUCT_NAME = IQTextView; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - BD10A3EFC96C5630E8B5AEC4C641679F /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbarManager"; - IBSC_MODULE = IQKeyboardToolbarManager; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/ResourceBundle-IQKeyboardToolbarManager-IQKeyboardToolbarManager-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbarManager; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; - }; - name = SimulatorDebug; - }; - BF65BDF3CFEB40B655601B9C7CFE2F9E /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 67DC68595F07F473A69296FC2DD4E016 /* Pods-suixinkan.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - INFOPLIST_FILE = "Target Support Files/Pods-suixinkan/Pods-suixinkan-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-suixinkan/Pods-suixinkan.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; C0864040DF7B74E1F31D9D1107560BAF /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = DD52E2C9D26643C4510332244B319F71 /* JPush.debug.xcconfig */; + baseConfigurationReference = CED54F92E588775BEA7B38CECABD7702 /* JPush.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -4883,7 +5063,7 @@ }; C0A3367DEECA243FFB6381711E119612 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FDF709D73DE1142AE1CF86A66274B9FC /* WechatOpenSDK-XCFramework.debug.xcconfig */; + baseConfigurationReference = A3ADF11FAEAC8F80DA91E2D23F4F5C48 /* WechatOpenSDK-XCFramework.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -4899,47 +5079,9 @@ }; name = Debug; }; - C85614EF79473B47C339BE432AEF69EF /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = A5009A8DB6C64B30425E121DEC607B95 /* IQTextInputViewNotification.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; - PRODUCT_MODULE_NAME = IQTextInputViewNotification; - PRODUCT_NAME = IQTextInputViewNotification; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = SimulatorDebug; - }; C9F495D594D104438C53E96A18D74E5E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 47A354AE76F39CD50DF8DE8D5F744498 /* IQKeyboardManagerSwift.debug.xcconfig */; + baseConfigurationReference = 9931FEC2838C55EB9415330553D7C98B /* IQKeyboardManagerSwift.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -4977,7 +5119,7 @@ }; D15D7E129385054A649F014F167DD205 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = C7C310CD68DF209957D60358329E9D5B /* AMap3DMap-NO-IDFA.debug.xcconfig */; + baseConfigurationReference = 51367A9A6774AE911676FEE589F4D4E9 /* AMap3DMap-NO-IDFA.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -4992,12 +5134,13 @@ }; name = Debug; }; - D17A5F9FE4EE86C216ACE61D6FB58CE7 /* SimulatorDebug */ = { + D25BF0870C13B46E92683CB09CA3E8E1 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 1D1E7E265254C8003D8A5F7C75B7B539 /* AMapFoundation-NO-IDFA.debug.xcconfig */; + baseConfigurationReference = A07699BB79F9619E4B3CE5048F213790 /* VolcEngineRTC.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_ENABLE_OBJC_WEAK = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -5006,30 +5149,51 @@ ); SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; }; - name = SimulatorDebug; + name = Release; }; - D768CD154ED12F7BE1D6BB9E873A6911 /* SimulatorDebug */ = { + D570FF355C47048E4CEF4D94773CAA74 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 11B38E077C1F133396EB0CF305E0EF6B /* IQKeyboardToolbar.debug.xcconfig */; + baseConfigurationReference = 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGNING_ALLOWED = NO; - CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; - IBSC_MODULE = IQKeyboardToolbar; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - PRODUCT_NAME = IQKeyboardToolbar; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardNotification; + PRODUCT_NAME = IQKeyboardNotification; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - WRAPPER_EXTENSION = bundle; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; }; name = SimulatorDebug; }; D8C82D4A0DB38BA42139C9D3619C3B6C /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 56E9537047D72ABA1C9695C95A4AF843 /* UMAPM.debug.xcconfig */; + baseConfigurationReference = 4E1E716A01DDF5D7844AD4F6DD359924 /* UMAPM.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -5044,26 +5208,26 @@ }; name = Debug; }; - DDB0B8C1800EF25E633E9EF05D74FD72 /* SimulatorDebug */ = { + DBE26A3A19E49FBBF92C2614580D42E0 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = A3CDCD8BAD4E220D8D74F8D8D6DE8034 /* UMDevice.debug.xcconfig */; + baseConfigurationReference = 2D2C9E82DF51CA26E12725621714E090 /* IQKeyboardNotification.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardNotification"; + IBSC_MODULE = IQKeyboardNotification; + INFOPLIST_FILE = "Target Support Files/IQKeyboardNotification/ResourceBundle-IQKeyboardNotification-IQKeyboardNotification-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); + PRODUCT_NAME = IQKeyboardNotification; SDKROOT = iphoneos; + SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; }; - name = SimulatorDebug; + name = Debug; }; E10C1F80C3E9A1D246A4D102C7806348 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 649233ED6CEAD11508C3FEC87609ADF7 /* AMap3DMap-NO-IDFA.release.xcconfig */; + baseConfigurationReference = 0AF4E684DF6CEBFE9C445B44A8ECFFF0 /* AMap3DMap-NO-IDFA.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -5079,6 +5243,79 @@ }; name = Release; }; + E10CEEB1C1490644FA02CF1F52B38D15 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 37ED2C21C1E1ACCC106AA7C2D98CD280 /* IQKeyboardToolbar.release.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; + IBSC_MODULE = IQKeyboardToolbar; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + PRODUCT_NAME = IQKeyboardToolbar; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + WRAPPER_EXTENSION = bundle; + }; + name = Release; + }; + E14DC8D4EF06AD110D901EA1905F83E9 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5B91072D08BB3F63162262295825C5FF /* IQKeyboardToolbarManager.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = NO; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-prefix.pch"; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardToolbarManager; + PRODUCT_NAME = IQKeyboardToolbarManager; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_INSTALL_OBJC_HEADER = YES; + SWIFT_VERSION = 5.9; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + E352FDAA39A5427F13D2750ADB1D0B86 /* SimulatorDebug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 99E675068425C5A9A5145CD79E3BCA08 /* AMapFoundation-NO-IDFA.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; E756D4F85371E4C3B99D3BEC6CD5207F /* SimulatorDebug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -5145,103 +5382,45 @@ }; name = SimulatorDebug; }; - E91CE575290BC3A080E4391DC0E93244 /* Debug */ = { + E8252A303DE806530C9337DFC9C81084 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = A3CDCD8BAD4E220D8D74F8D8D6DE8034 /* UMDevice.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - EAB3DCC5A63DFB2910DB5131BA8617AB /* SimulatorDebug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F9CB2239F63422E991F6FEF9D9A32967 /* IQKeyboardNotification.debug.xcconfig */; + baseConfigurationReference = FF5A7F51FAADA1E1B5FC260E1B632D6C /* IQKeyboardToolbar.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQKeyboardToolbar"; + IBSC_MODULE = IQKeyboardToolbar; + INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbar/ResourceBundle-IQKeyboardToolbar-IQKeyboardToolbar-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardNotification/IQKeyboardNotification.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardNotification; - PRODUCT_NAME = IQKeyboardNotification; + PRODUCT_NAME = IQKeyboardToolbar; SDKROOT = iphoneos; SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; + WRAPPER_EXTENSION = bundle; }; name = SimulatorDebug; }; - ECFE8EE882A8E0E8F1F88A2CED71761D /* Release */ = { + EA8DCB40DF90E640476FFD1ECAE29C32 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3BAA32FB751F6BB0FD65930595456ACA /* IQTextView.release.xcconfig */; + baseConfigurationReference = 84308DE86AAB2CCBAA19904F494B555E /* IQTextView.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextView/IQTextView-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextView/IQTextView-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextView"; + IBSC_MODULE = IQTextView; + INFOPLIST_FILE = "Target Support Files/IQTextView/ResourceBundle-IQTextView-IQTextView-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/IQTextView/IQTextView.modulemap"; - PRODUCT_MODULE_NAME = IQTextView; PRODUCT_NAME = IQTextView; SDKROOT = iphoneos; SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; + WRAPPER_EXTENSION = bundle; }; - name = Release; + name = SimulatorDebug; }; ED20D572033C5607EC8FF9D4C2B16843 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 65E1594E46F076BA8A8528BF7CD2E5DB /* IQKeyboardCore.debug.xcconfig */; + baseConfigurationReference = C22127072FC804B46594EFEEA2162330 /* IQKeyboardCore.debug.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -5279,7 +5458,7 @@ }; F0545B6F999FF16FA19AA34E787CC0D6 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 30B02A6B0D6954EF43EFA3789887E608 /* AMapSearch-NO-IDFA.debug.xcconfig */; + baseConfigurationReference = A900C19FDD423A63EDB4890241E20444 /* AMapSearch-NO-IDFA.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -5294,9 +5473,9 @@ }; name = Debug; }; - F0E1E72ABB5DF0FF9232765B8F59FAE6 /* Debug */ = { + F4A26ADA800ACEBFCFDC225CA809EB4C /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 1FADC993D884553299A227B2F37F270B /* IQKeyboardToolbarManager.debug.xcconfig */; + baseConfigurationReference = 3743F40B27DFFA0C0530479FFB587691 /* IQKeyboardReturnManager.release.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; @@ -5308,9 +5487,9 @@ DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-prefix.pch"; + GCC_PREFIX_HEADER = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-prefix.pch"; GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager-Info.plist"; + INFOPLIST_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -5318,19 +5497,20 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MODULEMAP_FILE = "Target Support Files/IQKeyboardToolbarManager/IQKeyboardToolbarManager.modulemap"; - PRODUCT_MODULE_NAME = IQKeyboardToolbarManager; - PRODUCT_NAME = IQKeyboardToolbarManager; + MODULEMAP_FILE = "Target Support Files/IQKeyboardReturnManager/IQKeyboardReturnManager.modulemap"; + PRODUCT_MODULE_NAME = IQKeyboardReturnManager; + PRODUCT_NAME = IQKeyboardReturnManager; SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; SWIFT_INSTALL_OBJC_HEADER = YES; SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; - name = Debug; + name = Release; }; F4FF6A0D1970CA9705974E3CB2134802 /* Debug */ = { isa = XCBuildConfiguration; @@ -5398,68 +5578,43 @@ }; name = Debug; }; - FF360B7D4473A88DC4CD81C9815F7F75 /* Release */ = { + F640C5B4011BA70DB05F6FCB692AA170 /* SimulatorDebug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 2161AA772A6755F4D5D60BD723919D3B /* IQTextInputViewNotification.release.xcconfig */; + baseConfigurationReference = 0C5373D6FEC052390EF0155BC139DA74 /* UMCommon.debug.xcconfig */; buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = NO; - GCC_PREFIX_HEADER = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-prefix.pch"; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ENABLE_USER_SCRIPT_SANDBOXING = NO; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", - "@loader_path/Frameworks", ); - MODULEMAP_FILE = "Target Support Files/IQTextInputViewNotification/IQTextInputViewNotification.modulemap"; - PRODUCT_MODULE_NAME = IQTextInputViewNotification; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = SimulatorDebug; + }; + F9F629D371199F6FD4180A160B119827 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69373ECBF83F317CAA7C02D3B536BA78 /* IQTextInputViewNotification.debug.xcconfig */; + buildSettings = { + CODE_SIGNING_ALLOWED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/IQTextInputViewNotification"; + IBSC_MODULE = IQTextInputViewNotification; + INFOPLIST_FILE = "Target Support Files/IQTextInputViewNotification/ResourceBundle-IQTextInputViewNotification-IQTextInputViewNotification-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; PRODUCT_NAME = IQTextInputViewNotification; SDKROOT = iphoneos; SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_INSTALL_OBJC_HEADER = YES; - SWIFT_VERSION = 5.9; TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; + WRAPPER_EXTENSION = bundle; }; - name = Release; + name = Debug; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 16042111B26CDDA811DEA06D014F8608 /* Build configuration list for PBXAggregateTarget "UMCommon" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4A63680095D13AFE8AADC2DD651ED1DF /* Debug */, - 1EE3CBE979432D435B81CBAA8BACEBBF /* Release */, - 6B39FC5F68684EDE8E1156AEFCE888C6 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 24187E637FC68EF68B8A7A6028C0073F /* Build configuration list for PBXNativeTarget "IQTextView" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BC62923F49BA0AC24F803CF4CE8FA864 /* Debug */, - ECFE8EE882A8E0E8F1F88A2CED71761D /* Release */, - 68894A46ED94B1B55EDBC8E5B7F16A4A /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 2502DBFD94504E58AACFE09B0E8730C7 /* Build configuration list for PBXAggregateTarget "JCore" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -5470,12 +5625,32 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2B3292CB0DE7D6CE46A077AA7A98827F /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification" */ = { + 2F6FDA2B7AE29776104CCA1C5E80F704 /* Build configuration list for PBXAggregateTarget "AMapFoundation-NO-IDFA" */ = { isa = XCConfigurationList; buildConfigurations = ( - 3D69CA0B1695293FBA0009EA7E34F1F5 /* Debug */, - FF360B7D4473A88DC4CD81C9815F7F75 /* Release */, - C85614EF79473B47C339BE432AEF69EF /* SimulatorDebug */, + 8C216CCE60522B2E9813D34CCD890C2D /* Debug */, + 61FC45D8AF3A48089D539804BB74FDC6 /* Release */, + E352FDAA39A5427F13D2750ADB1D0B86 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3359FFF96FDC1E39EBC821362A8761CD /* Build configuration list for PBXAggregateTarget "UMDevice" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0B27BEAA7FF522CAE968C9E460146386 /* Debug */, + 831BD8993867792A3BB79CFA691C2047 /* Release */, + 8B4FAD23565D3E04F3B3281EBD5357D1 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3403F131765FEBB242F76306FC5D0BB7 /* Build configuration list for PBXNativeTarget "IQKeyboardManagerSwift-IQKeyboardManagerSwift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0128796E1FAE80CFE8E84E81CBB57B04 /* Debug */, + 35923A58C1D039604461FB7ED7C9D300 /* Release */, + 7D73F4B8E7AFDB1FDC79F3FD901DA850 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5490,6 +5665,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 3CBF9BFF072845753899694FE4E10ADD /* Build configuration list for PBXAggregateTarget "UMCommon" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 26A29A509262176CC4B40AD784E0062E /* Debug */, + 91FC7178B53A17E4EDFBAFD2FCF69126 /* Release */, + F640C5B4011BA70DB05F6FCB692AA170 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 42640293F3A3C60B57F8E8CB6A88B983 /* Build configuration list for PBXAggregateTarget "JPush" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -5510,6 +5695,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 42FF906DA5AB7C83C901286B2DEBB04E /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 674EC62E70F9A09829AD9B38B3E57581 /* Debug */, + 3226B13A536555E89D2D07085D304F4F /* Release */, + 3F012ECECF9942D6D26FEF28931A9054 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -5520,22 +5715,52 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 63DAAE1B3C844547AB6B4E9490D7C979 /* Build configuration list for PBXNativeTarget "IQKeyboardNotification-IQKeyboardNotification" */ = { + 4E0C012C8888905B35911F70B1AC5AEF /* Build configuration list for PBXNativeTarget "IQKeyboardNotification" */ = { isa = XCConfigurationList; buildConfigurations = ( - 5D65C20480CD1638A64822CF819348BB /* Debug */, - 6A12D2FD2E860D435F801E231808847B /* Release */, - 946384BF19448D77AF04CB5114DBCF14 /* SimulatorDebug */, + 6C8D478A408C8091D5776CF9B83B7EAA /* Debug */, + 01566EB080B5D3116D54A00F7BBFC796 /* Release */, + D570FF355C47048E4CEF4D94773CAA74 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 6988CE622F6ED709924CC52474D5D523 /* Build configuration list for PBXNativeTarget "IQTextView-IQTextView" */ = { + 6F2F8E9223CA64429D3DA4A35BBF385E /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification" */ = { isa = XCConfigurationList; buildConfigurations = ( - AD0AB773E05696871E507C0BA3F182CB /* Debug */, - 586B0D9EBD67B3D385760CD014900637 /* Release */, - 80ECF48F68A3A075A2A0D8B392C30F84 /* SimulatorDebug */, + 92982B7A6C682CF5DCAFBEC4827314F8 /* Debug */, + 2129046C72E3699C1A5CB89DEA1D79A5 /* Release */, + 9C3E3AE1E1B56155996EDBFCB40C72DC /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 735C3EDC6E7EC2865AEDDDA1F2D19E8C /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager-IQKeyboardReturnManager" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4A68D42D85F2983A8CBA83B44C45A5E1 /* Debug */, + 1162EE88C2B4989F77488A101084A430 /* Release */, + 6B56EAC318C09E4BBF9E34AC89BEDCC1 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 743BAE4B6D3212011B29C6FBCEF3F1CA /* Build configuration list for PBXNativeTarget "IQKeyboardCore-IQKeyboardCore" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 47DD8A67554FA0CFEF75EB443BA908E8 /* Debug */, + 72D9B0E972F8A19A3FBAD2059C39C4D7 /* Release */, + B04DD2E1E6CC154979A493AC1223363A /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 77FFA3C6B014C764A235677BDA74421B /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar-IQKeyboardToolbar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 525FBC7B3A1F92004D696A96314B1688 /* Debug */, + E10CEEB1C1490644FA02CF1F52B38D15 /* Release */, + E8252A303DE806530C9337DFC9C81084 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5550,42 +5775,12 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 7B7782119E69124DD3565965BD15A882 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar-IQKeyboardToolbar" */ = { + 909E3FC7201534B950D3B53E3A6E76C6 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager" */ = { isa = XCConfigurationList; buildConfigurations = ( - 7A2AE90C14DDF3F5EA98F38A54A09F39 /* Debug */, - 1B03E27940D9DB99696B499239061A26 /* Release */, - D768CD154ED12F7BE1D6BB9E873A6911 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 86208BF7557334C34C88E861EF42FB46 /* Build configuration list for PBXNativeTarget "IQKeyboardCore-IQKeyboardCore" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 87F708D71356EA1183EF5535D5FA83FE /* Debug */, - 00E826101F8ECF726DC994CEF0D6722C /* Release */, - 2A9DF9EAE34E515C55D0F836B17B0CC9 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 875BEC2BC17CFCC0F5056A3B395DA258 /* Build configuration list for PBXNativeTarget "Pods-suixinkan" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - BF65BDF3CFEB40B655601B9C7CFE2F9E /* Debug */, - 15E5D635811DE4DDEF79E7C0D7C02EE5 /* Release */, - 89A05ED16BE7F147E0B2C1D88345B7B6 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9326D899006F80FE158FC378373C8595 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbar" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 09C31970175B907E646C8274BAB9E057 /* Debug */, - 3DE59E452D8974494117DF1C303917B3 /* Release */, - 5D2D3B802F1C540631553C6626C51D77 /* SimulatorDebug */, + 3809015D1911D42EADEE1B4CC8FA42C9 /* Debug */, + E14DC8D4EF06AD110D901EA1905F83E9 /* Release */, + 2AA75EE79F5096D732F5C8740CDAC26E /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5600,22 +5795,32 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 9F2F12FF04A1DC0E7F0AF5684CA34C93 /* Build configuration list for PBXNativeTarget "IQKeyboardManagerSwift-IQKeyboardManagerSwift" */ = { + 9A49A90044DDEEF3E6FCA42DE3192D0E /* Build configuration list for PBXNativeTarget "Pods-suixinkan" */ = { isa = XCConfigurationList; buildConfigurations = ( - 975FEEA40A8C8BD46300095E53BD15EE /* Debug */, - 51A5AA0D4A6EA7B3DEE27239C671F20C /* Release */, - 0C48E272FEFCEBBFB916BC49AD53DB8B /* SimulatorDebug */, + 1548EA2F2CBEC9CE28DC21F855105996 /* Debug */, + 239EC0DD9DE95C2A8CA208AE47184167 /* Release */, + 3B3B37F221BCE09B66833AA9B02EA981 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - A4028273DF78599D569A697F515473BC /* Build configuration list for PBXNativeTarget "IQKeyboardNotification" */ = { + 9BBC50C6E9EFEF51C68190E6CCBD8E98 /* Build configuration list for PBXNativeTarget "IQTextView" */ = { isa = XCConfigurationList; buildConfigurations = ( - 006ECEB934E36E2BAC3C338BB61530B2 /* Debug */, - B0C58F24582EC0647BB0D8EC658E7C3B /* Release */, - EAB3DCC5A63DFB2910DB5131BA8617AB /* SimulatorDebug */, + 80433F2CA55A715C9B9804750BEFD39D /* Debug */, + 51C86BFF64DA5BE9F5C09D7EB4537156 /* Release */, + 75199AD2E2B123A0604ECE956585D169 /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A69E6688B29DDB5B863FC738C3DC943C /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification-IQTextInputViewNotification" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F9F629D371199F6FD4180A160B119827 /* Debug */, + 08613EB11B5EFEB7B2ED6252F22D824B /* Release */, + 00880EDC05269801C446ED8C41643AEE /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5630,22 +5835,12 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - B02BDB8270BB7783F0A9C8763864097B /* Build configuration list for PBXAggregateTarget "UMDevice" */ = { + B8512451BF5D7A50FA5BBF381F5C922B /* Build configuration list for PBXAggregateTarget "VolcEngineRTC" */ = { isa = XCConfigurationList; buildConfigurations = ( - E91CE575290BC3A080E4391DC0E93244 /* Debug */, - 6FD6B6F43063FD5FCCE14F70DA9A5B69 /* Release */, - DDB0B8C1800EF25E633E9EF05D74FD72 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - BCB9D19D2F10472241947B3E83FFA193 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F0E1E72ABB5DF0FF9232765B8F59FAE6 /* Debug */, - 72A219A8FC63CFB344DBE3451FA1313D /* Release */, - 93211965B43F0CB2B08107959A929B0F /* SimulatorDebug */, + 52D243A8CBB51EAA0D78B04925AA39A4 /* Debug */, + D25BF0870C13B46E92683CB09CA3E8E1 /* Release */, + 704EF8B93B8BDAD0A59561D55C7976E2 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5660,12 +5855,12 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DBA22BA64605C2BEE511FFFAC16EEBF9 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager" */ = { + CA8B8095420E4C741A74C6526E47B837 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager" */ = { isa = XCConfigurationList; buildConfigurations = ( - 099143098447CA7F8B58F10A500B8F4A /* Debug */, - 5FAC6598990735686A996D7E70DF3EA8 /* Release */, - 8114091CF46E116D123C7DFC8F3175BF /* SimulatorDebug */, + 835213B0CD4B72C47ADC8B6CD0D341D5 /* Debug */, + F4A26ADA800ACEBFCFDC225CA809EB4C /* Release */, + 598E3828E2FACEEFF930BA2BC880BBEE /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5680,42 +5875,22 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - E3CD454E946A968A8CC1F29529A26395 /* Build configuration list for PBXAggregateTarget "AMapFoundation-NO-IDFA" */ = { + E6679707463E9734F1AA92E686D468A3 /* Build configuration list for PBXNativeTarget "IQKeyboardNotification-IQKeyboardNotification" */ = { isa = XCConfigurationList; buildConfigurations = ( - 35BB84CEDBA5C1476D858453DE3FC701 /* Debug */, - 993C8EF2D62C050B1B18AE2E75654CEB /* Release */, - D17A5F9FE4EE86C216ACE61D6FB58CE7 /* SimulatorDebug */, + DBE26A3A19E49FBBF92C2614580D42E0 /* Debug */, + 3B4750357F3A04F91A015E6BFB7F9837 /* Release */, + 3632907CCAEFC18F7310607AEFFF8593 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - E83D8F80B1FA8720A2E4132EFD404E69 /* Build configuration list for PBXNativeTarget "IQKeyboardReturnManager-IQKeyboardReturnManager" */ = { + E809C3838042546E636F2DB053A09E2B /* Build configuration list for PBXNativeTarget "IQTextView-IQTextView" */ = { isa = XCConfigurationList; buildConfigurations = ( - 66B8ED63760B2E1782BC65C56BB81A23 /* Debug */, - 374BDDC1B25527BE81775EB8627C15CD /* Release */, - 5462C869E62F6E27C1B8B088F9859726 /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EC63F6687A4C84131E235AAD4D9D25AC /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager-IQKeyboardToolbarManager" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7AB411313E0E948C032AC6FACEC06029 /* Debug */, - 46F98087C8D84310CDE4A60C95BB50E4 /* Release */, - BD10A3EFC96C5630E8B5AEC4C641679F /* SimulatorDebug */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - F823D0D17289E29C0912BA8CB04F4429 /* Build configuration list for PBXNativeTarget "IQTextInputViewNotification-IQTextInputViewNotification" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2251E044D8EF017D45F9D3DEBBE7E37A /* Debug */, - 610FF798BB5843B0008389B878CF0E3E /* Release */, - AC920FCB33A41A7879A8121BC9971074 /* SimulatorDebug */, + 65BED541222A9C5AB802EC59453C0FF2 /* Debug */, + 39B94A7458BBA2A3F1E43B8E67C71532 /* Release */, + EA8DCB40DF90E640476FFD1ECAE29C32 /* SimulatorDebug */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -5730,6 +5905,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + FB14A79E9663C6618BBD2C76C46813E0 /* Build configuration list for PBXNativeTarget "IQKeyboardToolbarManager-IQKeyboardToolbarManager" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B959E24DFDF96888F01F178AAA9D4401 /* Debug */, + 080BBC6931C827C0F4E5E44F8547C0C3 /* Release */, + 0E2DB34C8255944824CBA5C7C163AC2B /* SimulatorDebug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.markdown b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.markdown index 29d95ee..3a0e4c1 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.markdown +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.markdown @@ -242,6 +242,10 @@ Copyright 2011 - 2021 umeng.com. All rights reserved. Copyright 2011 - 2021 umeng.com. All rights reserved. +## VolcEngineRTC + +Bytedance copyright + ## WechatOpenSDK-XCFramework Copyright 2020 tencent.com. All rights reserved. diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.plist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.plist index 64c102e..ce7b4b6 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.plist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-acknowledgements.plist @@ -355,6 +355,16 @@ SOFTWARE. Type PSGroupSpecifier + + FooterText + Bytedance copyright + License + Copyright + Title + VolcEngineRTC + Type + PSGroupSpecifier + FooterText Copyright 2020 tencent.com. All rights reserved. diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-input-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-input-files.xcfilelist index d1e0b2b..cbf841d 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-input-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-input-files.xcfilelist @@ -6,4 +6,7 @@ ${BUILT_PRODUCTS_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework ${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework -${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework \ No newline at end of file +${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework/VolcEngineRTC +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework/RTCFFmpeg +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework/RealXBase \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-output-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-output-files.xcfilelist index 438c080..7f02aab 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-output-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Debug-output-files.xcfilelist @@ -5,4 +5,7 @@ ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardReturnManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbar.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbarManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextInputViewNotification.framework -${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework \ No newline at end of file +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/VolcEngineRTC.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RTCFFmpeg.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RealXBase.framework \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-input-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-input-files.xcfilelist index d1e0b2b..cbf841d 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-input-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-input-files.xcfilelist @@ -6,4 +6,7 @@ ${BUILT_PRODUCTS_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework ${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework -${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework \ No newline at end of file +${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework/VolcEngineRTC +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework/RTCFFmpeg +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework/RealXBase \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-output-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-output-files.xcfilelist index 438c080..7f02aab 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-output-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-Release-output-files.xcfilelist @@ -5,4 +5,7 @@ ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardReturnManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbar.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbarManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextInputViewNotification.framework -${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework \ No newline at end of file +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/VolcEngineRTC.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RTCFFmpeg.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RealXBase.framework \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-input-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-input-files.xcfilelist index d1e0b2b..cbf841d 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-input-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-input-files.xcfilelist @@ -6,4 +6,7 @@ ${BUILT_PRODUCTS_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework ${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework ${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework -${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework \ No newline at end of file +${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework/VolcEngineRTC +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework/RTCFFmpeg +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework/RealXBase \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-output-files.xcfilelist b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-output-files.xcfilelist index 438c080..7f02aab 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-output-files.xcfilelist +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-SimulatorDebug-output-files.xcfilelist @@ -5,4 +5,7 @@ ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardReturnManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbar.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardToolbarManager.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextInputViewNotification.framework -${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework \ No newline at end of file +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQTextView.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/VolcEngineRTC.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RTCFFmpeg.framework +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RealXBase.framework \ No newline at end of file diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks.sh b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks.sh index d6f878e..382c898 100755 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks.sh +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks.sh @@ -184,6 +184,9 @@ if [[ "$CONFIGURATION" == "Debug" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework" fi if [[ "$CONFIGURATION" == "Release" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/IQKeyboardCore/IQKeyboardCore.framework" @@ -194,6 +197,9 @@ if [[ "$CONFIGURATION" == "Release" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework" fi if [[ "$CONFIGURATION" == "SimulatorDebug" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/IQKeyboardCore/IQKeyboardCore.framework" @@ -204,6 +210,9 @@ if [[ "$CONFIGURATION" == "SimulatorDebug" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework" install_framework "${BUILT_PRODUCTS_DIR}/IQTextView/IQTextView.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework" + install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework" fi if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then wait diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.debug.xcconfig b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.debug.xcconfig index a501f0d..8bd758d 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.debug.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.debug.xcconfig @@ -3,13 +3,13 @@ ARCHS = $(ARCHS_STANDARD) CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush" "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift -OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AMapFoundationKit" -framework "AMapLocationKit" -framework "AMapSearchKit" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "MAMapKit" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" -OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/AMap3DMap-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapFoundation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapLocation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapSearch-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" +OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AMapFoundationKit" -framework "AMapLocationKit" -framework "AMapSearchKit" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "MAMapKit" -framework "OpenGLES" -framework "QuartzCore" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "VolcEngineRTC" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/AMap3DMap-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapFoundation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapLocation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapSearch-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/VolcEngineRTC" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.release.xcconfig b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.release.xcconfig index a501f0d..8bd758d 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.release.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.release.xcconfig @@ -3,13 +3,13 @@ ARCHS = $(ARCHS_STANDARD) CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush" "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift -OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AMapFoundationKit" -framework "AMapLocationKit" -framework "AMapSearchKit" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "MAMapKit" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" -OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/AMap3DMap-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapFoundation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapLocation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapSearch-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" +OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AMapFoundationKit" -framework "AMapLocationKit" -framework "AMapSearchKit" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "MAMapKit" -framework "OpenGLES" -framework "QuartzCore" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "VolcEngineRTC" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/AMap3DMap-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapFoundation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapLocation-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/AMapSearch-NO-IDFA" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/VolcEngineRTC" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) diff --git a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.simulatordebug.xcconfig b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.simulatordebug.xcconfig index 28236a8..2f32434 100644 --- a/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.simulatordebug.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkan/Pods-suixinkan.simulatordebug.xcconfig @@ -1,13 +1,13 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush" "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift -OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "Foundation" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" -OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" +OTHER_LDFLAGS = $(inherited) -ObjC -l"JCore" -l"JPush" -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "Foundation" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "UMAPM" -framework "UMCommon" -framework "UMDevice" -framework "VolcEngineRTC" -framework "WebKit" -framework "WechatOpenSDK" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_MODULE_VERIFIER_FLAGS = $(inherited) "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "-F${PODS_CONFIGURATION_BUILD_DIR}/JCore" "-F${PODS_CONFIGURATION_BUILD_DIR}/JPush" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMAPM" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMCommon" "-F${PODS_CONFIGURATION_BUILD_DIR}/UMDevice" "-F${PODS_CONFIGURATION_BUILD_DIR}/VolcEngineRTC" "-F${PODS_CONFIGURATION_BUILD_DIR}/WechatOpenSDK-XCFramework" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) diff --git a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.debug.xcconfig b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.debug.xcconfig index 44ef691..5cdd3c8 100644 --- a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.debug.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.debug.xcconfig @@ -2,10 +2,10 @@ ARCHS = $(ARCHS_STANDARD) CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" -OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "OpenGLES" -framework "QuartzCore" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "VolcEngineRTC" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. diff --git a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.release.xcconfig b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.release.xcconfig index 44ef691..5cdd3c8 100644 --- a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.release.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.release.xcconfig @@ -2,10 +2,10 @@ ARCHS = $(ARCHS_STANDARD) CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/AMap3DMap-NO-IDFA" "${PODS_ROOT}/AMapFoundation-NO-IDFA" "${PODS_ROOT}/AMapLocation-NO-IDFA" "${PODS_ROOT}/AMapSearch-NO-IDFA" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" -OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "ExternalAccessory" -framework "Foundation" -framework "GLKit" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "OpenGLES" -framework "QuartzCore" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "VolcEngineRTC" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. diff --git a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.simulatordebug.xcconfig b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.simulatordebug.xcconfig index 6d816be..d1cf259 100644 --- a/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.simulatordebug.xcconfig +++ b/Pods/Target Support Files/Pods-suixinkanTests/Pods-suixinkanTests.simulatordebug.xcconfig @@ -2,10 +2,10 @@ ARCHS = $(ARCHS_STANDARD) CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO ENABLE_USER_SCRIPT_SANDBOXING = NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView" "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/UMAPM/UMAPM_2.0.7" "${PODS_ROOT}/UMCommon/UMCommon_7.5.11" "${PODS_ROOT}/UMDevice/UMDevice_3.6.0" "${PODS_ROOT}/VolcEngineRTC" "${PODS_ROOT}/WechatOpenSDK-XCFramework" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMAPM" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMCommon" "${PODS_XCFRAMEWORKS_BUILD_DIR}/UMDevice" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" "${PODS_XCFRAMEWORKS_BUILD_DIR}/WechatOpenSDK-XCFramework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore/IQKeyboardCore.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification/IQKeyboardNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager/IQKeyboardReturnManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar/IQKeyboardToolbar.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager/IQKeyboardToolbarManager.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification/IQTextInputViewNotification.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/IQTextView/IQTextView.framework/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JCore/Headers" "${PODS_XCFRAMEWORKS_BUILD_DIR}/JPush/Headers" -OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "Foundation" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" +OTHER_LDFLAGS = $(inherited) -l"c++" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "CFNetwork" -framework "Combine" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "Foundation" -framework "IQKeyboardCore" -framework "IQKeyboardManagerSwift" -framework "IQKeyboardNotification" -framework "IQKeyboardReturnManager" -framework "IQKeyboardToolbar" -framework "IQKeyboardToolbarManager" -framework "IQTextInputViewNotification" -framework "IQTextView" -framework "RTCFFmpeg" -framework "RealXBase" -framework "Security" -framework "SystemConfiguration" -framework "UIKit" -framework "VolcEngineRTC" -framework "WebKit" -weak_framework "Network" -weak_framework "UserNotifications" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. diff --git a/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-input-files.xcfilelist b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-input-files.xcfilelist new file mode 100644 index 0000000..3e51548 --- /dev/null +++ b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-input-files.xcfilelist @@ -0,0 +1,4 @@ +${PODS_ROOT}/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks.sh +${PODS_ROOT}/VolcEngineRTC/VolcEngineRTC.xcframework +${PODS_ROOT}/VolcEngineRTC/RTCFFmpeg.xcframework +${PODS_ROOT}/VolcEngineRTC/RealXBase.xcframework \ No newline at end of file diff --git a/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-output-files.xcfilelist b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-output-files.xcfilelist new file mode 100644 index 0000000..08f1aba --- /dev/null +++ b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks-output-files.xcfilelist @@ -0,0 +1,3 @@ +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core/VolcEngineRTC.framework +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg/RTCFFmpeg.framework +${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase/RealXBase.framework \ No newline at end of file diff --git a/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks.sh b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks.sh new file mode 100755 index 0000000..108786d --- /dev/null +++ b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC-xcframeworks.sh @@ -0,0 +1,146 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +function on_error { + echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" +} +trap 'on_error $LINENO' ERR + + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + + +variant_for_slice() +{ + case "$1" in + "VolcEngineRTC.xcframework/ios-arm64") + echo "" + ;; + "VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator") + echo "simulator" + ;; + "RTCFFmpeg.xcframework/ios-arm64") + echo "" + ;; + "RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator") + echo "simulator" + ;; + "RealXBase.xcframework/ios-arm64") + echo "" + ;; + "RealXBase.xcframework/ios-arm64_x86_64-simulator") + echo "simulator" + ;; + esac +} + +archs_for_slice() +{ + case "$1" in + "VolcEngineRTC.xcframework/ios-arm64") + echo "arm64" + ;; + "VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator") + echo "arm64 x86_64" + ;; + "RTCFFmpeg.xcframework/ios-arm64") + echo "arm64" + ;; + "RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator") + echo "arm64 x86_64" + ;; + "RealXBase.xcframework/ios-arm64") + echo "arm64" + ;; + "RealXBase.xcframework/ios-arm64_x86_64-simulator") + echo "arm64 x86_64" + ;; + esac +} + +copy_dir() +{ + local source="$1" + local destination="$2" + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" \"${source}*\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" "${source}"/* "${destination}" +} + +SELECT_SLICE_RETVAL="" + +select_slice() { + local xcframework_name="$1" + xcframework_name="${xcframework_name##*/}" + local paths=("${@:2}") + # Locate the correct slice of the .xcframework for the current architectures + local target_path="" + + # Split archs on space so we can find a slice that has all the needed archs + local target_archs=$(echo $ARCHS | tr " " "\n") + + local target_variant="" + if [[ "$PLATFORM_NAME" == *"simulator" ]]; then + target_variant="simulator" + fi + if [[ ! -z ${EFFECTIVE_PLATFORM_NAME+x} && "$EFFECTIVE_PLATFORM_NAME" == *"maccatalyst" ]]; then + target_variant="maccatalyst" + fi + for i in ${!paths[@]}; do + local matched_all_archs="1" + local slice_archs="$(archs_for_slice "${xcframework_name}/${paths[$i]}")" + local slice_variant="$(variant_for_slice "${xcframework_name}/${paths[$i]}")" + for target_arch in $target_archs; do + if ! [[ "${slice_variant}" == "$target_variant" ]]; then + matched_all_archs="0" + break + fi + + if ! echo "${slice_archs}" | tr " " "\n" | grep -F -q -x "$target_arch"; then + matched_all_archs="0" + break + fi + done + + if [[ "$matched_all_archs" == "1" ]]; then + # Found a matching slice + echo "Selected xcframework slice ${paths[$i]}" + SELECT_SLICE_RETVAL=${paths[$i]} + break + fi + done +} + +install_xcframework() { + local basepath="$1" + local name="$2" + local package_type="$3" + local paths=("${@:4}") + + # Locate the correct slice of the .xcframework for the current architectures + select_slice "${basepath}" "${paths[@]}" + local target_path="$SELECT_SLICE_RETVAL" + if [[ -z "$target_path" ]]; then + echo "warning: [CP] $(basename ${basepath}): Unable to find matching slice in '${paths[@]}' for the current build architectures ($ARCHS) and platform (${EFFECTIVE_PLATFORM_NAME-${PLATFORM_NAME}})." + return + fi + local source="$basepath/$target_path" + + local destination="${PODS_XCFRAMEWORKS_BUILD_DIR}/${name}" + + if [ ! -d "$destination" ]; then + mkdir -p "$destination" + fi + + copy_dir "$source/" "$destination" + echo "Copied $source to $destination" +} + +install_xcframework "${PODS_ROOT}/VolcEngineRTC/VolcEngineRTC.xcframework" "VolcEngineRTC/Core" "framework" "ios-arm64" "ios-arm64_x86_64-simulator" +install_xcframework "${PODS_ROOT}/VolcEngineRTC/RTCFFmpeg.xcframework" "VolcEngineRTC/RTCFFmpeg" "framework" "ios-arm64" "ios-arm64_x86_64-simulator" +install_xcframework "${PODS_ROOT}/VolcEngineRTC/RealXBase.xcframework" "VolcEngineRTC/RealXBase" "framework" "ios-arm64" "ios-arm64_x86_64-simulator" diff --git a/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.debug.xcconfig b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.debug.xcconfig new file mode 100644 index 0000000..669d927 --- /dev/null +++ b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.debug.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/VolcEngineRTC +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/VolcEngineRTC" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/VolcEngineRTC +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.release.xcconfig b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.release.xcconfig new file mode 100644 index 0000000..669d927 --- /dev/null +++ b/Pods/Target Support Files/VolcEngineRTC/VolcEngineRTC.release.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/VolcEngineRTC +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/VolcEngineRTC" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/Core" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RTCFFmpeg" "${PODS_XCFRAMEWORKS_BUILD_DIR}/VolcEngineRTC/RealXBase" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/VolcEngineRTC +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/Info.plist b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/Info.plist new file mode 100644 index 0000000..7697468 --- /dev/null +++ b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/Info.plist @@ -0,0 +1,40 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + RTCFFmpeg.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64 + LibraryPath + RTCFFmpeg.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/Info.plist b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/Info.plist new file mode 100644 index 0000000..2343a93 --- /dev/null +++ b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/Info.plist @@ -0,0 +1,47 @@ + + + + + BuildMachineOSBuild + 20F71 + CFBundleDevelopmentRegion + English + CFBundleExecutable + RTCFFmpeg + CFBundleIdentifier + com.bytedance.RTCFFmpeg + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + 1.0.0 + CFBundleName + RTCFFmpeg + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18E182 + DTPlatformName + iphonesimulator + DTPlatformVersion + 14.5 + DTSDKBuild + 18E182 + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/RTCFFmpeg b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/RTCFFmpeg new file mode 100755 index 0000000..fc841ae Binary files /dev/null and b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64/RTCFFmpeg.framework/RTCFFmpeg differ diff --git a/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/Info.plist b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/Info.plist new file mode 100644 index 0000000..2343a93 --- /dev/null +++ b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/Info.plist @@ -0,0 +1,47 @@ + + + + + BuildMachineOSBuild + 20F71 + CFBundleDevelopmentRegion + English + CFBundleExecutable + RTCFFmpeg + CFBundleIdentifier + com.bytedance.RTCFFmpeg + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + 1.0.0 + CFBundleName + RTCFFmpeg + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18E182 + DTPlatformName + iphonesimulator + DTPlatformVersion + 14.5 + DTSDKBuild + 18E182 + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/RTCFFmpeg b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/RTCFFmpeg new file mode 100755 index 0000000..2d0c1a3 Binary files /dev/null and b/Pods/VolcEngineRTC/RTCFFmpeg.xcframework/ios-arm64_x86_64-simulator/RTCFFmpeg.framework/RTCFFmpeg differ diff --git a/Pods/VolcEngineRTC/RealXBase.xcframework/Info.plist b/Pods/VolcEngineRTC/RealXBase.xcframework/Info.plist new file mode 100644 index 0000000..bf9eb6d --- /dev/null +++ b/Pods/VolcEngineRTC/RealXBase.xcframework/Info.plist @@ -0,0 +1,40 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + ios-arm64 + LibraryPath + RealXBase.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + RealXBase.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/Info.plist b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/Info.plist new file mode 100644 index 0000000..2b2aec8 --- /dev/null +++ b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 22H730 + CFBundleDevelopmentRegion + en + CFBundleExecutable + RealXBase + CFBundleIdentifier + com.bytedance.realx.RealXBase + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + RealXBase + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 20B71 + DTPlatformName + iphonesimulator + DTPlatformVersion + 16.1 + DTSDKBuild + 20B71 + DTSDKName + iphonesimulator16.1 + DTXcode + 1410 + DTXcodeBuild + 14B47b + MinimumOSVersion + 11.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/RealXBase b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/RealXBase new file mode 100755 index 0000000..b2bb12a Binary files /dev/null and b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64/RealXBase.framework/RealXBase differ diff --git a/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/Info.plist b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/Info.plist new file mode 100644 index 0000000..2b2aec8 --- /dev/null +++ b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 22H730 + CFBundleDevelopmentRegion + en + CFBundleExecutable + RealXBase + CFBundleIdentifier + com.bytedance.realx.RealXBase + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + RealXBase + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 20B71 + DTPlatformName + iphonesimulator + DTPlatformVersion + 16.1 + DTSDKBuild + 20B71 + DTSDKName + iphonesimulator16.1 + DTXcode + 1410 + DTXcodeBuild + 14B47b + MinimumOSVersion + 11.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/RealXBase b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/RealXBase new file mode 100755 index 0000000..e3bb91c Binary files /dev/null and b/Pods/VolcEngineRTC/RealXBase.xcframework/ios-arm64_x86_64-simulator/RealXBase.framework/RealXBase differ diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/Info.plist b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/Info.plist new file mode 100644 index 0000000..606bd08 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/Info.plist @@ -0,0 +1,40 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + VolcEngineRTC.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64 + LibraryPath + VolcEngineRTC.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/VolcEngineRTC.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/VolcEngineRTC.h new file mode 100644 index 0000000..5c97a58 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/VolcEngineRTC.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Advance API + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine.h new file mode 100644 index 0000000..e24d327 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine.h @@ -0,0 +1,3219 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_room.h" +#include "bytertc_game_room.h" +#include "rtc/bytertc_video_device_manager.h" +#include "rtc/bytertc_audio_frame.h" +#include "rtc/bytertc_audio_mixing_manager.h" +#include "rtc/bytertc_audio_effect_player.h" +#include "rtc/bytertc_media_player.h" +#include "rtc/bytertc_video_processor_interface.h" +#include "rtc/bytertc_camera_control_interface.h" +#include "bytertc_engine_event_handler.h" +#include "rtc/bytertc_sing_scoring_interface.h" +#include "rtc/bytertc_ktv_manager_interface.h" +#include "rtc/bytertc_wtn_stream_interface.h" + +namespace bytertc { + +/** + * + * @type api + * @brief 引擎 API + * @list + */ + +class IRTCEngine { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTCEngine() { + } + /** + * + * @valid since 3.58.1 + * @type api + * @brief 设置是否将录音信号静音(不改变本端硬件)。 + * @param mute 是否静音音频采集。
+ * - True:静音(关闭麦克风) + * - False:(默认)开启麦克风 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 Windows 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 方法说明。 + * - 静音后通过 setCaptureVolume{@link #IRTCEngine#setCaptureVolume} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + + virtual int muteAudioCapture(bool mute) = 0; + /** + * + * @valid since 3.60. + * @type api + * @brief 静音/取消静音屏幕共享时采集的音频。
+ * 调用此方法后,SDK 将发送静音数据来代替真实的屏幕音频数据,不影响本端音频设备的采集状态和 SDK 音频流的采集发布状态。 + * @param mute 是否静音屏幕音频。
+ * - True:静音。远端用户听不到来自你屏幕共享的声音。 + * - False:(默认)取消静音。恢复发送屏幕共享的音频。 + * @return + * - 0:调用成功。 + * - < 0:调用失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 静音后通过 setCaptureVolume{@link #IRTCEngine#setCaptureVolume} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 屏幕共享 + */ + + virtual int muteScreenAudioCapture(bool mute) = 0; + + /** + * + * @type api + * @brief 调节麦克风音频采集音量。
+ * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
+ * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
+ * - 0:静音 + * - 100:原始音量 + * - 400:原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 在开启音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + + virtual int setCaptureVolume(int volume) = 0; + /** + * + * @type api + * @valid Available since 3.60. + * @brief 调节屏幕共享时采集的音频音量。
+ * 只改变音频数据的音量信息,不影响麦克风采集的音量,也不会改变本端音频设备本身的音量。 + * @param volume 采集音量与原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
+ * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
+ * - 0: 静音 + * - 100: 原始音量 + * - 400: 原始音量的 4 倍(自带溢出保护) + * + * @return + * + 0: 调用成功。
+ * + < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 在开启屏幕音频采集前后,你都可以使用此接口设定采集音量。 + * @list 屏幕共享 + */ + + virtual int setScreenCaptureVolume(int volume) = 0; + /** + * + * @type api + * @brief 调节本地播放的所有远端用户音频混音后的音量,混音内容包括远端人声、音乐、音效等。
+ * 播放音频前或播放音频时,你都可以使用此接口设定播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
+ * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
+ * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
+ * - 0: 静音 + * - 100: 原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,当该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 或 setRemoteRoomAudioPlaybackVolume{@link #IRTCRoom#setRemoteRoomAudioPlaybackVolume} 共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setPlaybackVolume(const int volume) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启/关闭耳返功能 + * @param mode 是否开启耳返功能,参看 EarMonitorMode{@link #EarMonitorMode} + * @return + * - 0:调用成功。 + * - < 0:调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorMode(EarMonitorMode mode) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 开启/关闭耳返功能,并控制是否对耳返音频应用本地音频处理。 + * @param mode 是否开启耳返功能,参看 EarMonitorMode{@link #EarMonitorMode}。默认关闭。 + * @param filter 是否对耳返音频应用本地音频处理,参看 EarMonitorAudioFilter{@link #EarMonitorAudioFilter}。默认不经过音频处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorMode(EarMonitorMode mode, int filter) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置耳返的音量 + * @param volume 耳返的音量相对原始音量的比值,取值范围:[0,100],单位:% + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 设置耳返音量前,你必须先调用 setEarMonitorMode{@link #IRTCEngine#setEarMonitorMode} 打开耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorVolume(const int volume) = 0; + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @type api + * @brief 设置蓝牙模式 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在媒体场景下生效。 + * @list 高级功能 + */ + + virtual int setBluetoothMode(BluetoothMode mode) = 0; + /** + * + * @type api + * @brief 开启内部音频采集。默认为关闭状态。
+ * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
+ * 调用该方法开启后,本地用户会收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 的回调。
+ * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStartAudioCapture{@link #IRTCEngineEventHandler#onUserStartAudioCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 若未取得当前设备的麦克风权限,调用该方法后会触发 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 回调,对应的错误码为 `MediaDeviceError.kMediaDeviceErrorDeviceNoPermission = 1`。 + * - 调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 可以关闭音频采集设备,否则,SDK 只会在销毁引擎的时候自动关闭设备。 + * - 由于不同硬件设备初始化响应时间不同,频繁调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 和本接口闭麦/开麦可能出现短暂无声问题,建议使用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 实现临时闭麦和重新开麦。 + * - 创建引擎后,无论是否发布音频数据,你都可以调用该方法开启音频采集,并且调用后方可发布音频。 + * - 对于 Windows SDK,如果需要从自定义音频采集切换为内部音频采集,你必须先停止发布流,调用 setAudioSourceType{@link #IRTCEngine#setAudioSourceType} 关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 音频管理 + */ + + virtual int startAudioCapture() = 0; + /** + * + * @type api + * @brief 立即关闭内部音频采集。默认为关闭状态。
+ * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
+ * 调用该方法,本地用户会收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 的回调。
+ * 非隐身用户进房后调用该方法后,房间中的其他用户会收到 onUserStopAudioCapture{@link #IRTCEngineEventHandler#onUserStopAudioCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 可以开启音频采集设备。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部音频采集才会停止。 + * @list 音频管理 + */ + + virtual int stopAudioCapture() = 0; + + /** + * + * @hidden(macOS,Windows,Linux) + * @valid since 3.60. + * @type api + * @brief 设置音频场景类型。
+ * 选择音频场景后,SDK 会自动根据场景切换对应的音量模式(通话音量/媒体音量)和该场景下的最佳音频配置。
+ * @param scenario 音频场景类型,参看 AudioScenarioType{@link #AudioScenarioType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 此接口必须在加入 RTC 房间前调用。 + * - 通话音量更适合通话、会议等对信息准确度更高的场景。通话音量会激活系统硬件信号处理,使通话声音更清晰。同时,音量无法降低到 0。 + * - 媒体音量更适合娱乐场景,因其声音的表现力会更强。媒体音量下,最低音量可以为 0。 + * @list Audio Management + */ + + virtual int setAudioScenario(AudioScenarioType scenario) = 0; + + /** + * + * @hidden(Linux) + * @type api + * @brief 设置变声特效类型 + * @param voice_changer 变声特效类型,参看 VoiceChangerType{@link #VoiceChangerType}。 + * @return 方法调用结果:
+ * - 0:成功; + * - !0:失败。 + * @note + * - 如需使用该功能,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceReverbType{@link #IRTCEngine#setVoiceReverbType} 互斥,后设置的特效会覆盖先设置的特效。 + * - 在 Windows 端使用此功能前,必须额外接入 [音频技术](https: + * @list 音频处理 + */ + + virtual int setVoiceChangerType(VoiceChangerType voice_changer) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置混响特效类型 + * @param voice_reverb 混响特效类型,参看 VoiceReverbType{@link #VoiceReverbType}。 + * @return 方法调用结果:
+ * - 0:成功; + * - !0:失败。 + * @note + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 只在包含美声特效能力的 SDK 中有效。 + * - 与 setVoiceChangerType{@link #IRTCEngine#setVoiceChangerType} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + + virtual int setVoiceReverbType(VoiceReverbType voice_reverb) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置本地采集语音的均衡效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param config 语音均衡效果,参看 VoiceEqualizationConfig{@link #VoiceEqualizationConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 根据奈奎斯特采样率,音频采样率必须大于等于设置的中心频率的两倍,否则,设置不生效。 + * @list 音频处理 + */ + + virtual int setLocalVoiceEqualization(VoiceEqualizationConfig config) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置本地采集音频的混响效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param param 混响效果,参看 VoiceReverbConfig{@link #VoiceReverbConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用 enableLocalVoiceReverb{@link #IRTCEngine#enableLocalVoiceReverb} 开启混响效果。 + * @list 音频处理 + */ + + virtual int setLocalVoiceReverbParam(VoiceReverbConfig param) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启本地音效混响效果 + * @param enable 是否开启 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用 setLocalVoiceReverbParam{@link #IRTCEngine#setLocalVoiceReverbParam} 设置混响效果。 + * @list 音频处理 + */ + + virtual int enableLocalVoiceReverb(bool enable) = 0; + /** + * + * @type api + * @brief 设置音质档位。
+ * 当所选的 RoomProfileType{@link #RoomProfileType} 中的音频参数无法满足你的场景需求时,调用本接口切换的音质档位。 + * @param audio_profile 音质档位,参看 AudioProfileType{@link #AudioProfileType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法在进房前后均可调用; + * - 支持通话过程中动态切换音质档位。 + * @list 音频管理 + */ + + virtual int setAudioProfile(AudioProfileType audio_profile) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 支持根据业务场景,设置通话中的音频降噪模式。 + * @param ans_mode 降噪模式。具体参见 AnsMode{@link #AnsMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该接口进房前后均可调用,可重复调用,仅最后一次调用生效。 + * - 降噪算法包含传统降噪和 AI 降噪。传统降噪主要是抑制平稳噪声,比如空调声、风扇声等。而 AI 降噪主要是抑制非平稳噪声,比如键盘敲击声、桌椅碰撞声等。 + * - 只有以下 RoomProfileType{@link #RoomProfileType} 场景时,调用本接口可以开启 AI 降噪。其余场景的 AI 降噪不会生效。 + * - 游戏语音模式:kRoomProfileTypeGame + * - 高音质游戏模式:kRoomProfileTypeGameHD + * - 云游戏模式:kRoomProfileTypeCloudGame + * - 1 vs 1 音视频通话:kRoomProfileTypeChat + * - 多端同步播放音视频:kRoomProfileTypeLwTogether + * - 云端会议中的个人设备:kRoomProfileTypeMeeting + * - 课堂互动模式:kRoomProfileTypeClassroom + * - 云端会议中的会议室终端:kRoomProfileTypeMeetingRoom + * @list 高级功能 + */ + + virtual int setAnsMode(AnsMode ans_mode) = 0; + /** + * + * @valid since 3.51 + * @type api + * @brief 打开/关闭 AAGC(Analog Automatic Gain Control)模拟自动增益控制功能。
+ * 开启该功能后,SDK 会自动调节麦克风的采集音量,确保音量稳定。 + * @param enable 是否打开 AAGC 功能:
+ * - true: 打开 AAGC 功能。 + * - false: 关闭 AAGC 功能。 + * @return + * - 0: 调用成功。 + * - -1: 调用失败。 + * @note + * 该方法在进房前后均可调用。如果你需要在进房前使用 AAGC 功能,请联系技术支持获得私有参数,传入对应 RoomProfileType{@link #RoomProfileType} 。
+ * 要想在进房后开启 AAGC 功能,你需要把 RoomProfileType{@link #RoomProfileType} 设置为 `kRoomProfileTypeMeeting` 、`kRoomProfileTypeMeetingRoom` 或 `kRoomProfileTypeClassroom` 。
+ * AAGC 功能生效后,不建议再调用 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 来调节设备麦克风的采集音量。 + * @list 音频管理 + */ + + virtual int enableAGC(bool enable) = 0; + /** + * + * @type api + * @brief 切换音频采集方式 + * @param type 音频数据源,详见 AudioSourceType{@link #AudioSourceType}。
+ * 默认使用内部音频采集。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
+ * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法由内部采集切换至自定义采集,SDK 会自动关闭内部采集。然后,调用 pushExternalAudioFrame{@link #IRTCEngine#pushExternalAudioFrame} 推送自定义采集的音频数据到 RTC SDK 用于传输。 + * - 如果你调用此方法由自定义采集切换至内部采集,你必须再调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 手动开启内部采集。 + * @list 自定义流处理 + */ + + virtual int setAudioSourceType (AudioSourceType type) = 0; + /** + * + * @type api + * @brief 切换音频渲染方式 + * @param type 音频输出类型,详见 AudioRenderType{@link #AudioRenderType}
+ * 默认使用内部音频渲染。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
+ * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法切换至自定义渲染,调用 pullExternalAudioFrame{@link #IRTCEngine#pullExternalAudioFrame} 获取音频数据。 + * @list 自定义流处理 + */ + + virtual int setAudioRenderType (AudioRenderType type) = 0; + /** + * + * @type api + * @brief 推送自定义采集的音频数据到 RTC SDK。 + * @param audio_frame 10 ms 对应的音频数据。详见 IAudioFrame{@link #IAudioFrame}。
+ * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
+ * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 推送自定义采集的音频数据前,必须先调用 setAudioSourceType{@link #IRTCEngine#setAudioSourceType} 开启自定义采集。 + * - 你必须每 10 ms 推送一次数据。 + * @list 自定义流处理 + */ + + virtual int pushExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @region 自定义音频采集渲染 + * @brief 拉取下行音频数据用于自定义音频渲染。
+ * 调用该方法后,SDK 会主动拉取待播放的音频数据,包括远端已解码和混音后的音频数据,用于外部播放。 + * @param audio_frame 获取的 10 ms 内的音频数据。详见 IAudioFrame{@link #IAudioFrame}。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 获取音频数据用于自定义渲染前,必须先调用 setAudioRenderType{@link #IRTCEngine#setAudioRenderType} 开启自定义渲染。 + * - 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒拉取一次音频数据。确保音频采样点数(sample)x 拉取频率等于 audio_frame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口拉取数据,每次应拉取 480 个采样点。 + * - 该函数运行在用户调用线程内,是一个同步函数。 + * @list 自定义流处理 + * @order 9 + */ + + virtual int pullExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @hidden(Linux) + * @type api + * @region 自定义音频回声消除参考信号 + * @brief 向 SDK 发送由自定义处理后的 PCM 音频数据,作为回声消除的参考信号 + * @param audio_frame 10 ms 对应的音频数据。详见 IAudioFrame{@link #IAudioFrame}。 + * @return 方法调用结果
+ * + 0:方法调用成功
+ * + <-1:方法调用失败
+ * + <-302:警告,配置下发了无效的aec场景
+ * + <-303:警告,配置下发了错误的aec类型
+ * @note 你必须每 10 ms 推送一次数据。 + * @list 自定义流处理 + */ + + virtual int pushReferenceAudioPCMData(IAudioFrame* audio_frame) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 推送opus编码音频数据到 RTC SDK,RTC SDK纯转发。 + * @param audio_stream 对应的opus音频数据。详见 EncodedAudioFrameData{@link #EncodedAudioFrameData}。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 推送音频数据前,必须先调用 enableAudioEncoding{@link #IRTCEngine#enableAudioEncoding} 关闭音频编码。 + * @list 自定义流处理 + */ + + virtual int pushExternalEncodedAudioFrame(const EncodedAudioFrameData& audio_stream) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频编码功能。 + * @param enable 是否使用sdk音频编码功能。 + * true: 打开音频编码(默认) + * false: 关闭音频编码直接转推。 + * @note + * - 在pushExternalEncodedAudioFrame{@link #IRTCEngine#pushExternalEncodedAudioFrame}之前调用。 + * @list 自定义流处理 + */ + + virtual void enableAudioEncoding(bool enable) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频解码功能。 + * @param enable 是否使用sdk音频解码功能。 + * true: 打开音频解码功能(默认) + * false: 关闭音频解码功能直接转推。 + * @note + * - 在registerRemoteEncodedAudioFrameObserver 之前调用。 + * @list 自定义流处理 + */ + + virtual void enableAudioDecoding(bool enable) = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 注册远端音频帧监测器。
+ * 调用该方法后,SDK 每监测到一帧远端音频帧时,都会将音频帧信息通过 OnRemoteEncodedAudioFrame{@link #IRemoteEncodedAudioFrameObserver#OnRemoteEncodedAudioFrame} 回调给用户 + * @param observer 远端音频帧监测器,参看 IRemoteEncodedAudioFrameObserver{@link #IRemoteEncodedAudioFrameObserver} + * @note + * - 该方法建议在进房前调用。 + * - 将参数设置为 nullptr 则取消注册。 + * - 调用前,必须先调用 enableAudioDecoding{@link #IRTCEngine#enableAudioDecoding} 关闭音频解码功能。 + * @list 自定义流处理 + */ + + virtual void registerRemoteEncodedAudioFrameObserver(IRemoteEncodedAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即开启内部视频采集。默认为关闭状态。
+ * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
+ * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
+ * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 onUserStartVideoCapture{@link #IRTCEngineEventHandler#onUserStartVideoCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 stopVideoCapture{@link #IRTCEngine#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。 + * - 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。 + * - 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 视频管理 + */ + + virtual int startVideoCapture() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即关闭内部视频采集。默认为关闭状态。
+ * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
+ * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
+ * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStopVideoCapture{@link #IRTCEngineEventHandler#onUserStopVideoCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 可以开启内部视频采集。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + * @list 视频管理 + */ + + virtual int stopVideoCapture() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
+ * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param video_capture_config 视频采集参数。参看: VideoCaptureConfig{@link #VideoCaptureConfig}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 前调用本接口。 + * - 建议同一设备上的不同引擎使用相同的视频采集参数。 + * - 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + * @list 视频管理 + */ + + virtual int setVideoCaptureConfig(const VideoCaptureConfig& video_capture_config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本端采集的视频帧的旋转角度。
+ * 当摄像头倒置或者倾斜安装时,可调用本接口进行调整。 + * @param rotation 相机朝向角度,默认为 `VIDEO_ROTATION_0(0)`,无旋转角度。详见 VideoRotation{@link #VideoRotation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口也将对自定义采集视频画面生效,在原有的旋转角度基础上叠加本次设置。 + * - 对于 Windows SDK,视频贴纸特效或通过 enableVirtualBackground{@link #IVideoEffect#enableVirtualBackground} 增加的虚拟背景,也会跟随本接口的设置进行旋转。 + * @list 视频处理 + */ + + virtual int setVideoCaptureRotation(VideoRotation rotation) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置期望发布的最大分辨率视频流参数,包括分辨率、帧率、码率、网络不佳时的回退策略等(包含摄像头和屏幕的编码配置)。 + * @param encoder_config 期望发布的最大分辨率视频流参数。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * @return 方法调用结果: + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 本接口仅设置一路视频流参数。默认状态下只有单流,如需开启多路小流请使用:setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode}。 + * - 调用该方法前,SDK 默认仅发布一路视频流,分辨率为 640px × 360px @15fps,编码偏好为帧率优先。 + * - 使用自定义采集时,必须调用该方法设置编码参数,以保证远端收到画面的完整性。 + * @list 视频管理 + */ + + virtual int setVideoEncoderConfig(const VideoEncoderConfig& encoder_config) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端进行大小流(simulcast)设置。 + * @param mode 详见 VideoSimulcastMode{@link #VideoSimulcastMode}。默认为只发送单流。你应在进房前调用修改本参数。 + * @param stream_config 小流参数。分辨率按照从小到大顺序,且每路流参数分辨率需小于大流 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置参数。否则可能会设置失败。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @param num 自定义小流路数。与 stream_config 指向的数组长度一致。最大值为 3。 + * @return 方法调用结果:
+ * - 0:成功 + * - !0:失败 + * @note + * - 调用本方法前,SDK 默认仅发布一条分辨率为 640px × 360px @15fps 的视频流。 + * - 本方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + + virtual int setLocalSimulcastMode(VideoSimulcastMode mode, const VideoEncoderConfig* stream_config, int num) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @brief 发布端开启大小流(simulcast)功能。 + * @param mode 详见 VideoSimulcastMode{@link #VideoSimulcastMode}。默认为只发送单流。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
+ * - 0:成功 + * - !0:失败 + * @note + * - 你应在进房前调用本接口。 + * - 调用该方法前,SDK 默认仅发布一条分辨率为 640px × 360px,帧率为 15fps 的视频流。 + * - 如需自定义小流参数请查看它的重载方法 setLocalSimulcastMode(VideoSimulcastMode mode, const VideoEncoderConfig* stream_config, int num)。 + * - 该方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + + virtual int setLocalSimulcastMode(VideoSimulcastMode mode) = 0; + + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置全景视频,包括分辨率、高清视野和低清背景分辨率、Tile 大小,以及其他常规编码参数。 + * @param encoder_config 期望发布的最大分辨率视频流参数。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。
+ * 支持 8K 和 4K 两种分辨率的全景视频。 + * @param parameters 全景视频的编码参数,JSON 字符串格式
+ * - 8K: HD: 7680x3840, LD: 2560x1280, Tile: 640x640 + * - 4K: HD: 3840x1920, LD: 1280x640, Tile: 320x320 + * {
+ * ```rtc.fov_config":{ + * "mode":0, + * "hd_width":3840, + * "hd_height":1920, + * "ld_width":1280, + * "ld_height":640, + * "tile_width":320, + * "tile_height":320, + * "framerate":30, + * "max_kbps":40000} + * }``` + * @return 方法调用结果:
+ * - 0:成功 + * - !0:失败 + * @note + * - 发布全景视频前,绑定自定义采集器,必须调用该方法设置编码参数。支持的视频格式包括 YUV 或者 Texture 纹理。 + * - 通过 onFrame{@link #IVideoSink#onFrame} ,接收端获取到视频帧和解码需要的信息,传给自定义渲染器进行渲染。 + * @list 视频管理 + */ + + virtual int setVideoEncoderConfig(const VideoEncoderConfig& encoder_config, const char* parameters) = 0; + /** + * + * @hidden(Linux, macOS) + * @valid since 3.58 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启自定义采集视频帧的 Alpha 通道编码功能。
+ * 适用于需要分离推流端视频主体与背景,且在拉流端可自定义渲染背景的场景。 + + * @param alpha_layout 分离后的 Alpha 通道相对于 RGB 通道信息的排列位置。当前仅支持 `AlphaLayout.kAlphaLayoutTop`,即置于 RGB 通道信息上方。 + * @return 方法调用结果:
+ * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该接口仅作用于自定义采集的、并且使用 RGBA 色彩模型的视频帧,包括: + * - Windows:VideoPixelFormat.kVideoPixelFormatRGBA; + * - Android:VideoPixelFormat.TEXTURE_2D、VideoPixelFormat.TEXTURE_OES、VideoPixelFormat.RGBA; + * - iOS:ByteRTCVideoPixelFormat.ByteRTCVideoPixelFormatCVPixelBuffer。 + * - 该接口须在发布视频流之前调用。 + * - 调用本接口开启 Alpha 通道编码后,你需调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 把自定义采集的视频帧推送至 RTC SDK。若推送了不支持的视频帧格式,则调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 时会返回错误码 ReturnStatus.kReturnStatusParameterErr。 + * @list 视频管理 + */ + + virtual int enableAlphaChannelVideoEncode(AlphaLayout alpha_layout) = 0; + /** + * + * @valid since 3.58 + * @hidden(Linux, macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭外部采集视频帧的 Alpha 通道编码功能。 + + * @return 方法调用结果:
+ * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 该接口须在停止发布视频流之后调用。 + * @list 视频管理 + */ + + virtual int disableAlphaChannelVideoEncode() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地视频渲染时使用的视图,并设置渲染模式。 + + * @param canvas 视图信息和渲染模式,参看:VideoCanvas{@link #VideoCanvas} + * @return + * - 0:成功。 + * - -2: 参数错误。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 你应在加入房间前,绑定本地视图。退出房间后,此设置仍然有效。 + * - 如果需要解除绑定,你可以调用本方法传入空视图。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 视频管理 + */ + + virtual int setLocalVideoCanvas(const VideoCanvas& canvas) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 修改本地视频渲染模式和背景色。 + + * @param render_mode 渲染模式,参看 RenderMode{@link #RenderMode} + * @param background_color 背景颜色,参看 VideoCanvas{@link #VideoCanvas}.background_color + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 你可以在本地视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateLocalVideoCanvas(const enum RenderMode render_mode, const uint32_t background_color) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置渲染指定视频流 `stream_key` 时,使用的视图和渲染模式。
+ * 如果需要解除某个用户的绑定视图,你可以把 `canvas` 设置为空。 + * @param stream_id 流标识 + * @param canvas 视图信息和渲染模式,参看:VideoCanvas{@link #VideoCanvas} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本地用户离开房间时,会解除调用此 API 建立的绑定关系;远端用户离开房间则不会影响。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 视频管理 + */ + + virtual int setRemoteVideoCanvas(const char* stream_id, const VideoCanvas& canvas) = 0; + /** + * + * @deprecated since 3.56, and will be deleted in 3.62. + * @type api + * @hiddensdk(audiosdk) + * @brief 修改远端视频帧的渲染设置,包括渲染模式和背景颜色。 + * @param stream_id 流标识 + * @param render_mode 渲染模式,参看 RenderMode{@link #RenderMode}。 + * @param background_color 背景颜色,参看 VideoCanvas{@link #VideoCanvas}.background_color + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 你可以在远端视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateRemoteStreamVideoCanvas(const char* stream_id, const enum RenderMode render_mode, const uint32_t background_color) = 0; + /** + * + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 SDK 内部渲染时,修改远端视频帧的渲染设置,包括渲染模式、背景颜色和旋转角度。 + * @param stream_id 流标识 + * @param remote_video_render_config 视频帧渲染设置。具体参看 RemoteVideoRenderConfig{@link #RemoteVideoRenderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 setRemoteVideoCanvas{@link #IRTCEngine#setRemoteVideoCanvas} 设置了远端视频渲染模式后,你可以调用此接口更新渲染模式、背景颜色、旋转角度的设置。 + * - 该接口可以在远端视频渲染过程中调用,调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateRemoteStreamVideoCanvas(const char* stream_id, const RemoteVideoRenderConfig& remote_video_render_config) = 0; + /** + * + * @deprecated since 3.60, use setLocalVideoSink(IVideoSink* video_sink, LocalVideoSinkConfig& config) instead. + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param required_format video_sink 适用的视频帧编码格式,参看 PixelFormat{@link #PixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 如果需要解除绑定,必须将 video_sink 设置为 null。退房时将清除绑定状态。 + * - 一般在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * - 本方法获取的是前处理后的视频帧。 + * @list 自定义流处理 + */ + + BYTERTC_DEPRECATED virtual int setLocalVideoSink(IVideoSink* video_sink, IVideoSink::PixelFormat required_format) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param config 本地视频帧回调配置,参看 LocalVideoSinkConfig{@link #LocalVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 video_sink 设置为 null。 + * - 一般在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * @list 自定义流处理 + */ + + virtual int setLocalVideoSink(IVideoSink* video_sink, LocalVideoSinkConfig& config) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setRemoteVideoSink{@link #IRTCEngine#setRemoteVideoSink} instead. + * @region 自定义视频采集渲染 + * @brief 将远端视频流与自定义渲染器绑定。 + * @param stream_id 流标识 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param required_format video_sink 适用的视频帧编码格式,参看 PixelFormat{@link #PixelFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取到远端流信息之后,再调用该方法。 + * - 如果需要解除绑定,必须将 video_sink 设置为 null。退房时将清除绑定状态。 + * - 本方法获取的是后处理后的视频帧。 + * @list 自定义流处理 + */ + + BYTERTC_DEPRECATED virtual int setRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, IVideoSink::PixelFormat required_format) = 0; + + /** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @region 自定义视频帧回调 + * @brief 将远端视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param stream_id 流标识 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param config 远端视频帧回调配置,参看 RemoteVideoSinkConfig{@link #RemoteVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取到远端流信息之后,再调用该方法。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 video_sink 设置为 null。 + * @list 自定义流处理 + * @order 3 + */ + + + virtual int setRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, RemoteVideoSinkConfig& config) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 切换视频内部采集时使用的前置/后置摄像头
+ * 调用此接口后,在本地会触发 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 回调。 + * @param camera_id 参看 CameraID {@link #CameraID}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 默认使用前置摄像头。 + * - 如果你正在使用相机进行视频采集,切换操作当即生效;如果相机未启动,后续开启内部采集时,会打开设定的摄像头。 + * - 如果本地有多个摄像头且想选择特定工作摄像头可通过 IVideoDeviceManager{@link #IVideoDeviceManager} 来控制。 + * @list 视频管理 + */ + + virtual int switchCamera(CameraID camera_id) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新采集区域。仅用于采集源为显示器屏幕时。 + * @param region_rect 采集区域。参见 Rectangle{@link #Rectangle}
+ * 此参数描述了调用此接口后的采集区域,和 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 中 `source_info` 设定区域的相对关系。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 5 + */ + + virtual int updateScreenCaptureRegion(const Rectangle& region_rect) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 采集屏幕视频流,用于共享。屏幕视频流包括:应用窗口中显示的内容,或虚拟屏幕中显示的内容。
+ * 其中,虚拟屏幕中显示的内容仅在 Windows 平台上支持。 + * @param source_info 待共享的屏幕源,参看 ScreenCaptureSourceInfo{@link #ScreenCaptureSourceInfo}。
+ * 你可以调用 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 获得所有可以共享的屏幕源。 + * @param capture_params 共享参数。参看 ScreenCaptureParameters{@link #ScreenCaptureParameters}。 + * @return + * - 0: 成功 + * - -1: 失败 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onVideoDeviceWarning{@link #IRTCEngineEventHandler#onVideoDeviceWarning} 回调。 + * - 调用此方法仅开启屏幕流视频采集,不会发布采集到的视频。发布屏幕流视频需要调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo}。 + * - 调用 stopScreenVideoCapture{@link #IRTCEngine#stopScreenVideoCapture} 关闭屏幕视频源采集。 + * - 本地用户通过 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调获取屏幕采集状态,包括开始、暂停、恢复、错误等。 + * - 调用成功后,本端会收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调。 + * - 调用此接口前,你可以调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置屏幕视频流的采集帧率和编码分辨率。 + * - 在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调后通过调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 或 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 函数设置本地屏幕共享视图。 + * - 可以调用 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 将本地视频流与自定义渲染器绑定,通过回调 onFrame{@link #IVideoSink#onFrame} 获取采集成功的本地视频帧。 + * - 对于 Windows SDK,再开启采集屏幕视频流后,你可以调用 updateScreenCaptureHighlightConfig{@link #IRTCEngine#updateScreenCaptureHighlightConfig} 更新边框高亮设置,调用 updateScreenCaptureMouseCursor{@link #IRTCEngine#updateScreenCaptureMouseCursor} 更新对鼠标的处理设置,调用 updateScreenCaptureFilterConfig{@link #IRTCEngine#updateScreenCaptureFilterConfig} 设置需要过滤的窗口。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 1 + */ + + virtual int startScreenVideoCapture(const ScreenCaptureSourceInfo& source_info, const ScreenCaptureParameters& capture_params) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止屏幕视频流采集。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onVideoDeviceWarning{@link #IRTCEngineEventHandler#onVideoDeviceWarning} 回调。 + * - 要开启屏幕视频流采集,调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture}。 + * - 调用后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。 + * - 调用此接口不影响屏幕视频流发布。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 6 + */ + + virtual int stopScreenVideoCapture() = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新边框高亮设置。默认展示边框。 + * @param highlight_config 边框高亮设置。参见 HighlightConfig{@link #HighlightConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 2 + */ + + virtual int updateScreenCaptureHighlightConfig(const HighlightConfig& highlight_config) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新对鼠标的处理设置。默认采集鼠标。 + * @param capture_mouse_cursor 参看 MouseCursorCaptureState{@link #MouseCursorCaptureState} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 3 + */ + + virtual int updateScreenCaptureMouseCursor(MouseCursorCaptureState capture_mouse_cursor) = 0; + /** + * + * @hidden(Linux,iOS,Android) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,设置需要过滤的窗口。 + * @param filter_config 窗口过滤设置,参看 ScreenFilterConfig{@link #ScreenFilterConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 本函数在屏幕源类别是屏幕而非应用窗体时才起作用。详见:ScreenCaptureSourceType{@link #ScreenCaptureSourceType}。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 4 + */ + + virtual int updateScreenCaptureFilterConfig(const ScreenFilterConfig& filter_config) = 0; + + /** + * + * @hidden(Android,iOS) + * @brief 获取共享对象列表。 + * @return 共享对象列表,包括应用窗口和屏幕。详见 IScreenCaptureSourceList{@link #IScreenCaptureSourceList}。用户选择后,可调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 进行共享。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。采用 Wayland 协议,调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 时,系统会通过弹窗供用户选择共享对象。 + * - 使用完之后需要调用 release{@link #IScreenCaptureSourceList#release} 接口释放。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 0 + */ + + virtual IScreenCaptureSourceList* getScreenCaptureSourceList() = 0; + + /** + * + * @hidden(Android,iOS) + * @brief 获取共享对象缩略图 + * @region 屏幕共享 + * @param type 屏幕采集对象的类型。详见 ScreenCaptureSourceType{@link #ScreenCaptureSourceType}。 + * @param source_id 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 枚举共享对象列表中获取。详见 view_t{@link #view_t}。 + * @param max_width 最大宽度。保持采集对象本身的宽高比不变,将缩略图缩放到指定范围内的最大宽高。如果给出的尺寸与共享对象比例不同,得到的缩略图会有黑边。 + * @param max_height 最大高度。参见 max_width 的说明。 + * @return 共享对象缩略图,详见 IVideoFrame{@link #IVideoFrame}。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 9 + */ + + virtual IVideoFrame* getThumbnail( + ScreenCaptureSourceType type, view_t source_id, int max_width, int max_height) = 0; + /** + * + * @hidden(Android,iOS) + * @region 屏幕共享 + * @brief 获取应用窗体所属应用的图标。 + * @param source_id 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 枚举共享对象列表中获取。 + * @param max_width 最大宽度。返回的图标将是宽高相等的,输入宽高不等时,取二者较小值。宽高范围为 [32,256],超出该范围将返回 nullptr,默认输出 100 x 100 的图像。 + * @param max_height 最大高度。参见 max_width 的说明。 + * @return 详见 IVideoFrame{@link #IVideoFrame}。当屏幕共享对象为应用窗体,且有图标时有效,否则返回 nullptr。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 10 + */ + + virtual IVideoFrame* getWindowAppIcon(view_t source_id, int max_width = 100, int max_height = 100) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置向 SDK 输入的视频源,包括屏幕流
+ * 默认使用内部采集。内部采集指:使用 RTC SDK 内置的视频采集机制进行视频采集。 + + * @param type 视频输入源类型,参看 VideoSourceType{@link #VideoSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法进房前后均可调用。 + * - 当你已调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集后,再调用此方法切换至自定义采集时,SDK 会自动关闭内部采集。 + * - 当你调用此方法开启自定义采集后,想要切换至内部采集,你必须先调用此方法关闭自定义采集,然后调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 手动开启内部采集。 + * - 当你需要向 SDK 推送自定义编码后的视频帧,你需调用该方法将视频源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + + virtual int setVideoSourceType(VideoSourceType type) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送外部视频帧。 + * @param frame 设置视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 支持格式:I420, NV12, RGBA, BGRA, ARGB。不支持 RGB24。 + * - 该函数运行在用户调用线程内。 + * - 推送外部视频帧前,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 开启外部视频源采集。 + * @list 自定义流处理 + */ + + virtual int pushExternalVideoFrame(const VideoFrameData& frame) = 0; + + /** + * + * @hidden(Windows,Linux,macOS) + * @type api + * @brief 设置音频播放设备。默认使用通过 setDefaultAudioRoute{@link #IRTCEngine#setDefaultAudioRoute} 设置的默认音频路由。
+ * 音频播放设备发生变化时,会收到 onAudioRouteChanged{@link #IRTCEngineEventHandler#onAudioRouteChanged} 回调。 + * @param device 音频播放设备。参看 AudioRoute{@link #AudioRoute}。仅支持听筒或者扬声器。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 对于绝大多数音频场景,推荐使用 setDefaultAudioRoute{@link #IRTCEngine#setDefaultAudioRoute} 设置默认音频路由,并借助 RTC SDK 的音频路由自动切换逻辑即可完成。切换逻辑参见[移动端设置音频路由](https: + * - 本接口在 Android 端仅支持在通话模式下使用;在 iOS 端支持在通话模式和媒体模式下使用,但切换的目标路由仅支持内置扬声器。 + * @list 音频管理 + */ + + virtual int setAudioRoute(AudioRoute route) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 将默认的音频播放设备设置为听筒或扬声器。 + * @param route 音频播放设备。参看 AudioRoute{@link #AudioRoute} + * @return 方法调用结果
+ * - 0: 方法调用成功。立即生效。当所有音频外设移除后,音频路由将被切换到默认设备。 + * - < 0: 方法调用失败。指定除扬声器和听筒以外的设备将会失败。 + * @note 对于音频路由切换逻辑,参见[移动端设置音频路由](https: + * @list 音频管理 + */ + + virtual int setDefaultAudioRoute(AudioRoute route) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 获取当前音频播放设备
+ * 音频播放设备发生变化时,会收到 onAudioRouteChanged{@link #IRTCEngineEventHandler#onAudioRouteChanged} 回调。 + * @return device 当前音频播放设备。参看 AudioRoute{@link #AudioRoute} + * @note + * - 1. 该接口仅适用于移动设备。 + * - 2. 通话前和通话中都可以调用该方法。 + * @list 音频管理 + */ + + virtual AudioRoute getAudioRoute() = 0; + /** + * + * @type api + * @brief 创建 RTC 房间实例。
+ * 调用此方法仅返回一个 RTC 房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。
+ * 多次调用此方法以创建多个 IRTCRoom{@link #IRTCRoom} 实例。分别调用各 IRTCRoom 实例中的 joinRoom{@link #IRTCRoom#joinRoom} 方法,同时加入多个房间。
+ * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTCRoom{@link #IRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTCRoom 实例,再调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * - 如果你需要在多个房间发布音视频流,无须创建多房间,直接调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 开始跨房间转发媒体流。 + * @list 房间管理 + */ + + virtual IRTCRoom* createRTCRoom(const char* room_id) = 0; + + /** + * + * @type api + * @brief 创建游戏语音房间实例。
+ * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IGameRoom#joinRoom} 才能真正地创建/加入游戏房间。
+ * 多次调用此方法以创建多个 IGameRoom{@link #IGameRoom} 实例。分别调用各 IGameRoom 实例中的 joinRoom{@link #IGameRoom#joinRoom} 方法,同时加入多个房间。
+ * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @param room_config 游戏语音房间配置。参看 GameRoomConfig{@link #GameRoomConfig}。 + * @return 创建的 IGameRoom{@link #IGameRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误或当前场景是否是游戏场景。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IGameRoom 实例,再调用 joinRoom{@link #IGameRoom#joinRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + + virtual IGameRoom* createGameRoom(const char* room_id, const GameRoomConfig& room_config) = 0; + /** + * + * @type api + * @brief 创建 RTS 房间实例。
+ * 调用此方法仅返回一个 RTS 房间实例,你仍需调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 才能真正地创建/加入房间。
+ * 多次调用此方法以创建多个 IRTSRoom{@link #IRTSRoom} 实例。分别调用各 IRTSRoom 实例中的 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 方法,同时加入多个房间。
+ * 多房间模式下,用户可以同时收发各房间的消息。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTSRoom{@link #IRTSRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTSRoom 实例,再调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + + virtual IRTSRoom* createRTSRoom(const char* room_id) = 0; + /** + * + * @type api + * @brief 设置发布的音视频流的回退选项。
+ * 你可以调用该接口设置网络不佳或设备性能不足时从大流起进行降级处理,以保证通话质量。 + * @param option 本地发布的音视频流回退选项,参看 PublishFallbackOption{@link #PublishFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅在调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效。 + * - 该方法必须在进房前设置,进房后设置或更改设置无效。 + * - 调用该方法后,如因性能或网络不佳产生发布性能回退或恢复,本端会提前收到 onPerformanceAlarms{@link #IRTCEngineEventHandler#onPerformanceAlarms} 回调发出的告警,以便采集设备配合调整。 + * - 设置回退后,本地发布的音视频流发生回退或从回退中恢复后,远端会收到 onSimulcastSubscribeFallback{@link #IRTCEngineEventHandler#onSimulcastSubscribeFallback} 回调,通知该情况。 + * - 你可以调用客户端 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + + virtual int setPublishFallbackOption(PublishFallbackOption option) = 0; + /** + * + * @type api + * @brief 设置订阅的音视频流的回退选项。
+ * 你可调用该接口设置网络不佳或设备性能不足时允许订阅流进行降级或只订阅音频流,以保证通话流畅。 + * @param option 订阅的音视频流回退选项,参看 SubscribeFallbackOption{@link #SubscribeFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 你必须在进房前设置,进房后设置或更改设置无效。 + * - 设置回退选项后,订阅的音视频流发生回退或从回退中恢复时,会收到 onSimulcastSubscribeFallback{@link #IRTCEngineEventHandler#onSimulcastSubscribeFallback} 和 onRemoteVideoSizeChanged{@link #IRTCEngineEventHandler#onRemoteVideoSizeChanged} 回调通知。 + * - 你可以调用 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + + virtual int setSubscribeFallbackOption(SubscribeFallbackOption option) = 0; + /** + * + * @type api + * @brief 设置用户优先级。 + * @param room_id 房间 ID + * @param user_id 远端用户的 ID + * @param priority 远端用户的需求优先级,详见枚举类型 RemoteUserPriority{@link #RemoteUserPriority} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 1. 该方法与 setSubscribeFallbackOption{@link #IRTCEngine#setSubscribeFallbackOption} 搭配使用。 + * - 2. 如果开启了订阅流回退选项,弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + * - 3. 该方法在进房前后都可以使用,可以修改远端用户的优先级。 + * @list 网络管理 + */ + + virtual int setRemoteUserPriority(const char* room_id, const char* user_id, RemoteUserPriority priority) = 0; + /** + * + * @type api + * @brief 设置业务标识参数
+ * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param business_id
+ * 用户设置的自己的 businessId 值
+ * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return + * - 0: 成功。 + * - -2: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符,分别是:英文句号,短横线,下划线和 @ 。 + * @note + * - 需要在调用 joinRoom{@link #IRTCRoom#joinRoom} 之前调用,joinRoom{@link #IRTCRoom#joinRoom} 之后调用该方法无效。 + * @list 引擎管理 + */ + + virtual int setBusinessId(const char* business_id) = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置采集视频的旋转模式。默认以 App 方向为旋转参考系。
+ * 接收端渲染视频时,将按照和发送端相同的方式进行旋转。 + * @param rotation_mode 视频旋转参考系为 App 方向或重力方向,参看 VideoRotationMode{@link #VideoRotationMode} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 旋转仅对内部视频采集生效,不适用于外部视频源和屏幕源。 + * - 调用该接口时已开启视频采集,将立即生效;调用该接口时未开启视频采集,则将在采集开启后生效。 + * - 更多信息请参考[视频采集方向](https: + * @list Engine Management + */ + + virtual int setVideoRotationMode(VideoRotationMode rotation_mode) = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 为采集到的视频流开启镜像 + * @param mirror_type 镜像类型,参看 MirrorType{@link #MirrorType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 切换视频源不影响镜像设置。 + * - 屏幕视频流始终不受镜像设置影响。 + * - 使用外部渲染器时,`mirrorType` 支持设置为 `0`(无镜像)和 `3`(本地预览和编码传输镜像),不支持设置为 `1`(本地预览镜像)。 + * - 该接口调用前,各视频源的初始状态如下: + * + * + * + * + *
前置摄像头后置摄像头自定义采集视频源 桌面端摄像头
移动端本地预览镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 /
桌面端// 本地预览不镜像,编码传输不镜像 本地预览镜像,编码传输不镜像
+ * @list 视频处理 + */ + + virtual int setLocalVideoMirrorType(MirrorType mirror_type) = 0; + /** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用内部渲染时,为远端流开启镜像。 + * @param stream_id 流标识 + * @param mirror_type 远端流的镜像类型,参看 RemoteMirrorType{@link #RemoteMirrorType}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败,参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list 视频处理 + */ + + virtual int setRemoteVideoMirrorType(const char* stream_id, RemoteMirrorType mirror_type) = 0; + /** + * + * @type api + * @brief 获取视频特效接口。 + * @return 视频特效接口,参看 IVideoEffect{@link #IVideoEffect}。 + * @list 视频处理 + */ + + virtual IVideoEffect* getVideoEffectInterface() = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 开启/关闭基础美颜。 + * @param enable 基础美颜开关
+ * - true: 开启基础美颜 + * - false: 关闭基础美颜(默认) + * @return + * - 0: 调用成功。 + * - –1001: RTC SDK 版本不支持此功能。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 本方法不能与高级视频特效接口共用。如已购买高级视频特效,建议参看[集成指南](https: + * - 使用此功能需要集成特效 SDK,建议使用特效 SDK v4.4.2+ 版本。更多信息参看 [Native 端基础美颜](https: + * - 调用 setBeautyIntensity{@link #IRTCEngine#setBeautyIntensity} 设置基础美颜强度。若在调用本方法前没有设置美颜强度,则使用默认强度。各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * - 本方法仅适用于视频源,不适用于屏幕源。 + * @list 视频处理 + */ + + virtual int enableEffectBeauty(bool enable) = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 调整基础美颜强度。 + * @param beauty_mode 基础美颜模式,参看 EffectBeautyMode{@link #EffectBeautyMode}。 + * @param intensity 美颜强度,取值范围为 [0,1]。强度为 0 表示关闭。
+ * 各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * @return + * - 0: 调用成功。 + * - –2: `intensity` 范围超限。 + * - –1001: RTC SDK 版本不支持此功能。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 若在调用 enableEffectBeauty{@link #IRTCEngine#enableEffectBeauty} 前设置美颜强度,则对应美颜功能的强度初始值会根据设置更新。 + * - 销毁引擎后,美颜功能强度恢复默认值。 + * @list 视频处理 + */ + + virtual int setBeautyIntensity(EffectBeautyMode beauty_mode, float intensity) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置远端视频超分模式。 + * @param stream_id 流标识 + * @param mode 超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + * @return + * - 0: kReturnStatusSuccess,SDK 调用成功,并不代表超分模式实际状态,需要根据回调 onRemoteVideoSuperResolutionModeChanged{@link #IRTCEngineEventHandler#onRemoteVideoSuperResolutionModeChanged} 判断实际状态。 + * - -1: kReturnStatusNativeInvalid,native library 未加载。 + * - -2: kReturnStatusParameterErr,参数非法,指针为空或字符串为空。 + * - -9: kReturnStatusScreenNotSupport,不支持对屏幕流开启超分。 + * @note + * - 该方法须进房后调用。 + * - 远端用户视频流的原始分辨率不能超过 640 × 360 px。 + * - 支持对一路远端流开启超分,不支持对多路流开启超分。 + * @list 视频处理 + */ + + virtual int setRemoteVideoSuperResolution(const char* stream_id, VideoSuperResolutionMode mode) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置视频降噪模式。 + * @param mode 视频降噪模式,启用后能够增强视频画质,但同时会增加性能负载。参看 VideoDenoiseMode{@link #VideoDenoiseMode}。 + * @return + * - 0: API 调用成功。 用户可以根据回调函数 onVideoDenoiseModeChanged{@link #IRTCEngineEventHandler#onVideoDenoiseModeChanged} 判断视频降噪是否开启。 + * - < 0:API 调用失败。 + * @list 视频处理 + */ + + virtual int setVideoDenoiser(VideoDenoiseMode mode) = 0; + /** + * + * @hidden(Windows, Linux, macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在自定义视频前处理及编码前,设置 RTC 链路中的视频帧朝向,默认为 Adaptive 模式。
+ * 移动端开启视频特效贴纸,或使用自定义视频前处理时,建议固定视频帧朝向为 Portrait 模式。单流转推场景下,建议根据业务需要固定视频帧朝向为 Portrait 或 Landscape 模式。不同模式的具体显示效果参看[视频帧朝向](https: + * @param orientation 视频帧朝向,参看 VideoOrientation{@link #VideoOrientation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 视频帧朝向设置仅适用于内部采集视频源。对于自定义采集视频源,设置视频帧朝向可能会导致错误,例如宽高对调。屏幕源不支持设置视频帧朝向。 + * - 编码分辨率的更新与视频帧处理是异步操作,进房后切换视频帧朝向可能导致画面出现短暂的裁切异常,因此建议在进房前设置视频帧朝向,且不在进房后进行切换。 + * @list 自定义流处理 + */ + + virtual int setVideoOrientation(VideoOrientation orientation) = 0; + /** + * + * @hidden(macOS, Windows,Linux) + * @type api + * @brief 获取相机控制接口 + * @return 相机控制接口指针,参看 ICameraControl{@link #ICameraControl} + * @list 视频管理 + */ + + virtual ICameraControl* getCameraControl() = 0; + /** + * + * @type api + * @brief 设置传输时使用内置加密的方式。 + * @param encrypt_type 内置加密算法,详见 EncryptType{@link #EncryptType} + * @param key 加密密钥,长度限制为 36 位,超出部分将会被截断 + * @param key_size 参数 key 的长度 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 使用传输时内置加密时,使用此方法;如果需要使用传输时自定义加密,参看 onEncryptData{@link #IEncryptHandler#onEncryptData}。 内置加密和自定义加密互斥,根据最后一个调用的方法确定传输是加密的方案。 + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * @list 通话加密 + */ + + virtual int setEncryptInfo(EncryptType encrypt_type, const char* key, int key_size) = 0; + /** + * + * @type api + * @brief 设置自定义加密和解密方式。 + * @param handler 自定义加密 handler,需要实现 handler 的加密和解密方法。参看 IEncryptHandler{@link #IEncryptHandler}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法与 setEncryptInfo{@link #IRTCEngine#setEncryptInfo} 为互斥关系,只能选择自定义加密方式或者默认加密方式。最终生效的加密方式取决于最后一个调用的方法。 + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * - 无论加密或者解密,其对原始数据的长度修改,需要控制在 180% 之间,即如果输入数据为 100 字节,则处理完成后的数据必须不超过 180 字节,如果加密或解密结果超出该长度限制,则该音视频帧可能会被丢弃。 + * - 数据加密/解密为串行执行,因而视实现方式不同,可能会影响到最终渲染效率。是否使用该方法,需要由使用方谨慎评估。 + * @list 通话加密 + */ + + virtual int setCustomizeEncryptHandler(IEncryptHandler* handler) = 0; + /** + * + * @type api + * @brief 设置并开启指定的音频数据帧回调 + * @param method 音频回调方法,参看 AudioFrameCallbackMethod{@link #AudioFrameCallbackMethod}。
+ * 当音频回调方法设置为 `kRecord`、`kPlayback`、`kMixed`、`kRecordScreen`、`kCaptureMixed`时,你需要在参数 `format` 中指定准确的采样率和声道,暂不支持设置为自动。
+ * 当音频回调方法设置为 `kRemoteUser`时,将 `format` 中的各个字段设置为默认值。 + * @param format 音频参数格式,参看 AudioFormat{@link #AudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 开启音频回调并调用 registerAudioFrameObserver{@link #IRTCEngine#registerAudioFrameObserver} 后,IAudioFrameObserver{@link #IAudioFrameObserver} 会收到对应的音频回调。两者调用顺序没有限制且相互独立。 + * @list 自定义流处理 + */ + + virtual int enableAudioFrameCallback(AudioFrameCallbackMethod method, AudioFormat format) = 0; + /** + * + * @type api + * @brief 关闭音频回调 + * @param method 音频回调方法,参看 AudioFrameCallbackMethod{@link #AudioFrameCallbackMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该方法需要在调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 之后调用。 + * @list 自定义流处理 + */ + + virtual int disableAudioFrameCallback(AudioFrameCallbackMethod method) = 0; + /** + * + * @type api + * @brief 注册音频数据回调观察者。 + * @param observer 音频数据观察者,参看 IAudioFrameObserver{@link #IAudioFrameObserver}。如果传入 null,则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 注册音频数据回调观察者并调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 后,IAudioFrameObserver{@link #IAudioFrameObserver} 会收到对应的音频回调。对回调中收到的音频数据进行处理,不会影响 RTC 的编码发送或渲染。 + * @list 自定义流处理 + */ + + virtual int registerAudioFrameObserver(IAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @brief 注册自定义音频处理器。
+ * 注册完成后,你可以调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},对本地采集到的音频进行处理,RTC SDK 将对处理后的音频进行编码和发送。也可以对接收到的远端音频进行自定义处理,RTC SDK 将对处理后的音频进行渲染。 + * @param processor 自定义音频处理器,详见 IAudioFrameProcessor{@link #IAudioFrameProcessor}。
+ * SDK 只持有 processor 的弱引用,你应保证其生命周期。需要取消注册时,设置此参数为 nullptr。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 重复调用此接口时,仅最后一次调用生效。 + * - 更多相关信息,详见[音频自定义处理](https: + * @list 自定义流处理 + */ + + virtual int registerAudioProcessor(IAudioFrameProcessor* processor) = 0; + /** + * + * @type api + * @brief 设置并开启指定的音频帧回调,进行自定义处理。 + * @param method 音频帧类型,参看 AudioProcessorMethod{@link #AudioProcessorMethod}。可多次调用此接口,处理不同类型的音频帧。
+ * 选择不同类型的音频帧将收到对应的回调:
+ * - 选择本地采集的音频时,会收到 onProcessRecordAudioFrame{@link #IAudioFrameProcessor#onProcessRecordAudioFrame}。 + * - 选择远端音频流的混音音频时,会收到 onProcessPlayBackAudioFrame{@link #IAudioFrameProcessor#onProcessPlayBackAudioFrame}。 + * - 选择远端音频流时,会收到 onProcessRemoteUserAudioFrame{@link #IAudioFrameProcessor#onProcessRemoteUserAudioFrame}。 + * - 选择屏幕共享音频流时,会收到 onProcessScreenAudioFrame{@link #IAudioFrameProcessor#onProcessScreenAudioFrame}。(Linux 不适用) + * @param format 设定自定义处理时获取的音频帧格式,参看 AudioFormat{@link #AudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在调用此接口前,你需要调用 registerAudioProcessor{@link #IRTCEngine#registerAudioProcessor} 注册自定义音频处理器。 + * - 要关闭音频自定义处理,调用 disableAudioProcessor{@link #IRTCEngine#disableAudioProcessor}。 + * @list 自定义流处理 + */ + + virtual int enableAudioProcessor(AudioProcessorMethod method, AudioFormat format) = 0; + /** + * + * @type api + * @brief 关闭自定义音频处理。 + * @param method 音频帧类型,参看 AudioProcessorMethod{@link #AudioProcessorMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 自定义流处理 + */ + + virtual int disableAudioProcessor(AudioProcessorMethod method) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置自定义视频前处理器。
+ * 使用这个视频前处理器,你可以调用 processVideoFrame{@link #IVideoProcessor#processVideoFrame} 对 RTC SDK 采集得到的视频帧进行前处理,并将处理后的视频帧用于 RTC 音视频通信。 + * @param processor 自定义视频处理器,详见 IVideoProcessor{@link #IVideoProcessor}。如果传入 null,则不对 RTC SDK 采集得到的视频帧进行前处理。
+ * SDK 只持有 processor 的弱引用,你应保证其生命周期。 + * @param config 自定义视频前处理器适用的设置,详见 VideoPreprocessorConfig{@link #VideoPreprocessorConfig}。
+ * 当前,`config` 中的 `required_pixel_format` 仅支持:`kVideoPixelFormatI420` 和 `kVideoPixelFormatUnknown`:
+ * - 设置为 `kVideoPixelFormatUnknown` 时,RTC SDK 给出供 processor 处理的视频帧格式即采集的格式。 + * 你可以通过 VideoBufferType{@link #VideoBufferType} 和 VideoPixelFormat{@link #VideoPixelFormat} 获取实际采集的视频帧格式和像素类型。
+ * - 设置为 `kVideoPixelFormatI420` 时,RTC SDK 会将采集得到的视频帧转变为对应的格式,供前处理使用。 + * - 设置为其他值时,此方法调用失败。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 对于 Windows 平台,经前处理返回的视频帧格式仅支持 `kVideoPixelFormatI420` + * - 对于 Windows 平台,将 `config` 中的 required_pixel_format 设置为 `kVideoPixelFormatI420`,可以通过避免格式转换带来一些性能优化。 + * - 重复调用此接口时,仅最后一次调用生效。效果不会叠加。 + * @list 自定义流处理 + */ + + virtual int registerLocalVideoProcessor(IVideoProcessor* processor, VideoPreprocessorConfig config) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地摄像头数码变焦参数,包括缩放倍数,移动步长。 + * @param type 数码变焦参数类型,缩放系数或移动步长。参看 ZoomConfigType{@link #ZoomConfigType}。必填。 + * @param size 缩放系数或移动步长,保留到小数点后三位。默认值为 0。必填。
+ * 选择不同 `type` 时有不同的取值范围。当计算后的结果超过缩放和移动边界时,取临界值。
+ * - `kZoomConfigTypeFocusOffset`:缩放系数增量,范围为 [0, 7]。例如,设置为 0.5 时,如果调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 选择 Zoom in,则缩放系数增加 0.5。缩放系数范围 [1,8],默认为 `1`,原始大小。 + * - `kZoomConfigTypeMoveOffset`:移动百分比,范围为 [0, 0.5],默认为 0,不移动。如果调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 选择的是左右移动,则移动距离为 size x 原始视频宽度;如果选择的是上下移动,则移动距离为 size x 原始视频高度。例如,视频帧边长为 1080 px,设置为 0.5 时,实际移动距离为 0.5 x 1080 px = 540 px。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 每次调用本接口只能设置一种参数。如果缩放系数和移动步长都需要设置,分别调用本接口传入相应参数。 + * - 由于移动步长的默认值为 `0` ,在调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 或 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl} 进行数码变焦操作前,应先调用本接口。 + * @list 视频处理 + */ + + virtual int setVideoDigitalZoomConfig(ZoomConfigType type, float size) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 控制本地摄像头数码变焦,缩放或移动一次。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ZoomDirectionType{@link #ZoomDirectionType}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig{@link #IRTCEngine#setVideoDigitalZoomConfig} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 如果你希望实现持续数码变焦操作,调用 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio`。 + * @list 视频处理 + */ + + virtual int setVideoDigitalZoomControl(ZoomDirectionType direction) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地摄像头持续数码变焦,缩放或移动。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ZoomDirectionType{@link #ZoomDirectionType}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig{@link #IRTCEngine#setVideoDigitalZoomConfig} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值并停止操作。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 你也可以调用 stopVideoDigitalZoomControl{@link #IRTCEngine#stopVideoDigitalZoomControl} 手动停止控制。 + * - 如果你希望实现单次数码变焦操作,调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio`。 + * @list 视频处理 + */ + + virtual int startVideoDigitalZoomControl(ZoomDirectionType direction) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地摄像头持续数码变焦。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 关于开始数码变焦,参看 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl}。 + * @list 视频处理 + */ + + virtual int stopVideoDigitalZoomControl() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 通过视频帧发送 SEI 数据。
+ * 在视频通话场景下,SEI 数据会随视频帧发送;在语音通话场景下,SDK 会自动生成一路 16px × 16px 的黑帧视频流用来发送 SEI 数据。 + + * 语音通话场景下,该值需设为 `kStreamIndexMain`,否则 SEI 数据会被丢弃从而无法送达远端。 + * @param message SEI 消息。 + * @param length SEI 消息长度,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeat_count 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
+ * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 SEICountPerFrame{@link #SEICountPerFrame}。 + * @return + * - >= 0: 将被添加到视频帧中的 SEI 的数量。 + * - < 0: 发送失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。在语音通话场景下,黑帧帧率为 15 fps。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 语音通话场景中,仅支持在内部采集模式下调用该接口发送 SEI 数据。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据;语音通话场景下,若调用此接口后 1min 内未有 SEI 数据发送,则 SDK 会自动取消发布视频黑帧。 + * - 消息发送成功后,远端会收到 onSEIMessageReceived{@link #IRTCEngineEventHandler#onSEIMessageReceived} 回调。 + * - 语音通话切换至视频通话时,会停止使用黑帧发送 SEI 数据,自动转为用采集到的正常视频帧发送 SEI 数据。 + * @list 消息 + */ + + virtual int sendSEIMessage(const uint8_t* message, int length, int repeat_count, SEICountPerFrame mode) = 0; + /** + * + * @type api + * @list 消息 + * @brief 以 Key-Value 格式通过视频帧发送 SEI 数据。 + * 调用此接口前,必须在调用 setLiveMode{@link #IRTCRoom#setLiveMode} 时将房间模式设置为 `kRoomLiveModeSoloHost` 开启单人直播模式。 + * @param json_string JSON 格式的键值对,例如 `{"key1":"value1","key2":"value2"}`: + * - 如果某个 Key 对应的 Value 为空(例如 `""` 或 `null`),则会从 SEI 字典中删除该 Key。 + * - 所有 Key-Value 合并后的总 SEI 数据大小不能超过 10KB。 + * @param count 连续发送该 SEI 数据的次数。 + * - 当 `is_key_frame_only` 为 true 时,代表伴随 `count` 个关键帧(I 帧)发送。 + * - 当 `is_key_frame_only` 为 false 时,代表伴随 `count` 个视频帧发送。 + * @param is_key_frame_only 是否只随关键帧(I 帧)发送: + * - true:只在关键帧发送。 + * - false:所有帧都会发送。 + * @param allow_overwrite 设置该 Key 写入后,后续请求是否允许覆盖它: + * - true:后续请求可覆盖该 Key 的 Value,且 `count` 也会更新为新值; + * - false:后续请求会忽略该 Key 的新值,保持原样。对于已存在的 Key,是否允许本次覆盖取决于该 Key 已保存的覆盖策略。 + * @return + * - 0: 调用成功。 + * - < 0: 发送失败。 + * - -1: 视频模块未启用。 + * - -2: 参数错误(JSON 为空或 count <= 0)。 + * - -3: JSON 格式错误。 + * - -4: SEI 数据总大小超过限制。 + */ + + virtual int sendLivePushSEIMessage(std::string json_string, int count, bool is_key_frame_only, bool allow_overwrite) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief WTN 流视频帧发送 SEI 数据。 + * @param channel_id SEI 消息传输通道,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message SEI 消息。 + * @param length SEI 消息长度,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeat_count 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
+ * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 SEICountPerFrame{@link #SEICountPerFrame}。 + * @return + * - < 0:说明调用失败 + * - = 0:说明当前发送队列已满,无法发送 + * - > 0: 说明调用成功,该数值为已经发送 SEI 的数量 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据。 + * - 消息发送成功后,远端会收到 onPublicStreamSEIMessageReceivedWithChannel 回调。 + * - 调用失败时,本地及远端都不会收到回调。 + * @list 消息 + */ + + virtual int sendPublicStreamSEIMessage(int channel_id, const uint8_t* message, int length, + int repeat_count, SEICountPerFrame mode) = 0; + /** + * + * @type api + * @brief 创建视频设备管理实例 + * @return 视频设备管理实例,详见 IVideoDeviceManager{@link #IVideoDeviceManager} + * @list 视频管理 + */ + + virtual IVideoDeviceManager* getVideoDeviceManager() = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @brief 设备音频管理接口创建 + * @return 音频设备管理接口,详见 IAudioDeviceManager{@link #IAudioDeviceManager} + * @list 音频管理 + */ + + virtual IAudioDeviceManager* getAudioDeviceManager() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 录制通话过程中的音视频数据到本地的文件中。 + * @param type 流属性,指定录制主流还是屏幕流,参看 StreamIndex{@link #StreamIndex} + * @param config 本地录制参数配置,参看 RecordingConfig{@link #RecordingConfig} + * @param recording_type 本地录制的媒体类型,参看 RecordingType{@link #RecordingType}
+ * 注意:屏幕流仅支持录制视频(kRecordingTypeVideoOnl);主流支持录制所有类型。 + * @return + * - 0: 正常 + * - -1: 参数设置异常 + * - -2: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 该方法需在进房后调用。 + * - 调用该方法后,你会收到 onRecordingStateUpdate{@link #IRTCEngineEventHandler#onRecordingStateUpdate} 回调。 + * - 如果录制正常,系统每秒钟会通过 onRecordingProgressUpdate{@link #IRTCEngineEventHandler#onRecordingProgressUpdate} 回调通知录制进度。 + * @list 高级功能 + */ + + virtual int startFileRecording(RecordingConfig config, RecordingType recording_type) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地录制 + * @param type 流属性,指定停止主流或者屏幕流录制,参看 StreamIndex{@link #StreamIndex} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startFileRecording{@link #IRTCEngine#startFileRecording} 开启本地录制后,你必须调用该方法停止录制。 + * - 调用该方法后,你会收到 onRecordingStateUpdate{@link #IRTCEngineEventHandler#onRecordingStateUpdate} 回调提示录制结果。 + * @list 高级功能 + */ + + virtual int stopFileRecording() = 0; + /** + * + * @type api + * @brief 开始音频录制,并生成录音文件保存到本地。 + * @param config 参看 AudioRecordingConfig{@link #AudioRecordingConfig} + * @return + * - 0: 正常 + * - -2: 参数设置异常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 调用该方法后,会立即启动录制任务并创建录音文件。 + * - 录制包含各种音频效果。但不包含背景音乐。 + * - 录制本地麦克风的音频时,请确保已调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 接口打开麦克风采集。 + * - 调用 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 关闭录制。 + * - 加入房间前后均可调用。在进房前调用该方法,退房之后,录制任务不会自动停止,需调用 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 关闭录制。在进房后调用该方法,退房之后,录制任务会自动被停止。如果加入了多个房间,录制的文件中会包含各个房间的音频。 + * - 调用该方法后,你会收到 onAudioRecordingStateUpdate{@link #IRTCEngineEventHandler#onAudioRecordingStateUpdate} 回调。 + * @list 高级功能 + */ + + virtual int startAudioRecording(AudioRecordingConfig& config) = 0; + /** + * + * @type api + * @brief 停止音频文件录制 + * @return + * - 0: 正常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note 调用 startAudioRecording{@link #IRTCEngine#startAudioRecording} 开启本地录制。 + * @list 高级功能 + */ + + virtual int stopAudioRecording() = 0; + /** + * + * @type api + * @brief 启用匹配外置声卡的音频处理模式 + * @param enable
+ * - true: 开启 + * - false: 不开启(默认) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 当采用外接声卡进行音频采集时,建议开启此模式,以获得更好的音质。 + * - 开启此模式时,仅支持耳机播放。如果需要使用扬声器或者外置音箱播放,关闭此模式。 + * @list 音频管理 + */ + + virtual int enableExternalSoundCard(bool enable) = 0; + /** + * + * @type api + * @brief 设置运行时的参数 + * @param json_string json 序列化之后的字符串 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口需在 joinRoom{@link #IRTCRoom#joinRoom} 和 startAudioCapture{@link #IRTCEngine#startAudioCapture} 之前调用。 + * @list 引擎管理 + */ + + virtual int setRuntimeParameters(const char * json_string) = 0; + /** + * + * @type api + * @brief 将用户反馈的问题上报到 RTC。 + * @param type 预设问题列表,参看 ProblemFeedbackOption{@link #ProblemFeedbackOption} + * @param info 预设问题以外的其他问题的具体描述,房间信息。 参看 ProblemFeedbackInfo{@link #ProblemFeedbackInfo} + * @return + * - 0: 成功。 + * - -3: 失败。 + * @note + * - 你可以在 [RTC 控制台](https: + * - 如果用户上报时在房间内,那么问题会定位到用户当前所在的一个或多个房间;如果用户上报时不在房间内,那么问题会定位到引擎此前退出的房间。 + * @list 引擎管理 + */ + + virtual int feedback(uint64_t type, const ProblemFeedbackInfo* info) = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音效播放器实例。 + * @return 音效播放器。详见 IAudioEffectPlayer{@link #IAudioEffectPlayer}。 + * @list 混音 + */ + + virtual IAudioEffectPlayer* getAudioEffectPlayer() = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音乐播放器实例。 + * @param player_id 音乐播放器实例 id。取值范围为 `[0, 3]`。最多同时存在 4 个实例,超出取值范围时返回 nullptr。 + * @return 音乐播放器实例,详见 IMediaPlayer{@link #IMediaPlayer} + * @list 混音 + */ + + virtual IMediaPlayer* getMediaPlayer(int player_id) = 0; + /** + * + * @type api + * @brief 登陆 RTS 服务器。
+ * 必须先登录,才能调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 和 sendServerMessage{@link #IRTCEngine#sendServerMessage} 发送房间外点对点消息和向应用服务器发送消息
+ * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #IRTCEngine#logout}。 + * @param token 用户登录必须携带的 Token,用于鉴权验证。
+ * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid
+ * 用户 ID
+ * 用户 ID 在 appid 的维度下是唯一的。 + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 本地用户调用此方法登录后,会收到 onLoginResult{@link #IRTCEngineEventHandler#onLoginResult} 回调通知登录结果,远端用户不会收到通知。 + * @list 消息 + */ + + virtual int login(const char* token, const char* uid) = 0; + /** + * + * @type api + * @brief 登出 RTS 服务器。
+ * 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口登出前,必须先调用 login{@link #IRTCEngine#login} 登录。 + * - 本地用户调用此方法登出后,会收到 onLogout{@link #IRTCEngineEventHandler#onLogout} 回调通知结果,远端用户不会收到通知。 + * @list 消息 + */ + + virtual int logout() = 0; + /** + * + * @type api + * @brief 更新用户用于登录的 Token
+ * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
+ * 调用 login{@link #IRTCEngine#login} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 onLoginResult{@link #IRTCEngineEventHandler#onLoginResult} 回调通知,错误码为 kLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
+ * 更新的动态密钥 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login{@link #IRTCEngine#login} 方法。 + * - Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + * @list 消息 + */ + + virtual int updateLoginToken(const char* token) = 0; + /** + * + * @type api + * @brief 设置应用服务器参数
+ * 客户端调用 sendServerMessage{@link #IRTCEngine#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTCEngine#sendServerBinaryMessage} 发送消息给应用服务器之前,必须设置有效签名和应用服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
+ * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
+ * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 用户必须调用 login{@link #IRTCEngine#login} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 onServerParamsSetResult{@link #IRTCEngineEventHandler#onServerParamsSetResult} 返回相应结果。 + * @list 消息 + */ + + virtual int setServerParams(const char* signature, const char* url) = 0; + /** + * + * @type api + * @brief 查询对端用户或本端用户的登录状态 + * @param peer_user_id
+ * 需要查询的用户 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 必须调用 login{@link #IRTCEngine#login} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 onGetPeerOnlineStatus{@link #IRTCEngineEventHandler#onGetPeerOnlineStatus} 回调通知查询结果。 + * - 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + * @list 消息 + */ + + virtual int getPeerOnlineStatus(const char* peer_user_id) = 0; + /** + * + * @type api + * @brief 给房间外指定的用户发送文本消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的文本消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外文本消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录。 + * - 用户调用本接口发送文本信息后,会收到一次 onUserMessageSendResultOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageSendResultOutsideRoom} 回调,得知消息是否成功发送。 + * - 若文本消息发送成功,则 uid 所指定的用户会通过 onUserMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageReceivedOutsideRoom} 回调收到该消息。 + * @list 消息 + */ + + virtual int64_t sendUserMessageOutsideRoom(const char* uid, const char* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 给房间外指定的用户发送二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param length 二进制字符串的长度 + * @param message 发送的二进制消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外二进制消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录。 + * - 用户调用本接口发送二进制消息后,会收到一次 onUserMessageSendResultOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageSendResultOutsideRoom} 回调,通知消息是否发送成功。 + * - 若二进制消息发送成功,则 uid 所指定的用户会通过 onUserBinaryMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserBinaryMessageReceivedOutsideRoom} 回调收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendUserBinaryMessageOutsideRoom(const char* uid, int length, const uint8_t* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 客户端给应用服务器发送文本消息(P2Server)。 + * @param message 发送的文本消息内容。消息不超过 64 KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送文本消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录,随后调用 setServerParams{@link #IRTCEngine#setServerParams} 设置应用服务器。 + * - 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTCEngineEventHandler#onServerMessageSendResult} 回调,通知消息发送方是否发送成功。 + * - 若文本消息发送成功,则之前调用 setServerParams{@link #IRTCEngine#setServerParams} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendServerMessage(const char* message) = 0; + /** + * + * @type api + * @brief 客户端给应用服务器发送二进制消息(P2Server)。 + * @param length 二进制字符串的长度 + * @param message 发送的二进制消息内容。消息不超过 64KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送二进制消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录,随后调用 setServerParams{@link #IRTCEngine#setServerParams} 设置应用服务器。 + * - 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTCEngineEventHandler#onServerMessageSendResult} 回调,通知消息发送方发送成功或失败。 + * - 若二进制消息发送成功,则之前调用 setServerParams{@link #IRTCEngine#setServerParams} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendServerBinaryMessage(int length, const uint8_t* message) = 0; + /** + * + * @type api + * @brief 开启通话前网络探测 + * @param is_test_uplink 是否探测上行带宽 + * @param expected_uplink_bitrate 期望上行带宽,单位:kbps
范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @param is_test_downlink 是否探测下行带宽 + * @param expected_downlink_biterate 期望下行带宽,单位:kbps
范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 成功调用本接口后,会在 3s 内收到一次 onNetworkDetectionResult{@link #IRTCEngineEventHandler#onNetworkDetectionResult} 回调,此后每 2s 会收到一次该回调,通知探测结果; + * - 若探测停止,则会收到一次 onNetworkDetectionStopped{@link #IRTCEngineEventHandler#onNetworkDetectionStopped} 通知探测停止。 + * @list 网络管理 + */ + + virtual int startNetworkDetection(bool is_test_uplink, int expected_uplink_bitrate, bool is_test_downlink, int expected_downlink_biterate) = 0; + /** + * + * @type api + * @brief 停止通话前网络探测 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口后,会收到一次 onNetworkDetectionStopped{@link #IRTCEngineEventHandler#onNetworkDetectionStopped} 回调通知探测停止。 + * @list 网络管理 + */ + + virtual int stopNetworkDetection() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 在屏幕共享时,设置屏幕音频的采集方式(内部采集/自定义采集) + * @param source_type 屏幕音频输入源类型, 参看 AudioSourceType{@link #AudioSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 默认采集方式是 RTC SDK 内部采集。 + * - 如果设定为内部采集,你必须再调用 startScreenAudioCapture{@link #IRTCEngine#startScreenAudioCapture} 开始采集。 + * - 如果设定为自定义采集,你必须再调用 pushScreenAudioFrame{@link #IRTCEngine#pushScreenAudioFrame} 将自定义采集到的屏幕音频帧推送到 RTC SDK。 + * - 无论是内部采集还是自定义采集,你都必须调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * @list 屏幕共享 + * @order 11 + */ + + virtual int setScreenAudioSourceType(AudioSourceType source_type) = 0; + + /** + * + * @hidden(iOS,Android,Linux) + * @type api + * @brief 在屏幕共享时,设置屏幕音频流的声道数 + * @param channel 声道数,参看 AudioChannel{@link #AudioChannel} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 屏幕共享 + */ + + virtual int setScreenAudioChannel(AudioChannel channel) = 0; + /** + * + * @hidden(Android,iOS,macOS,Windows) + * @deprecated on Windows since 3.59, use `startScreenAudioCapture` with the "device_id" parameter as a replacement. + * @type api + * @brief 在屏幕共享时,开始使用 RTC SDK 内部采集方式,采集屏幕音频 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。对于 Windows SDK,若已调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 将音频输入源设置为 `kAudioSourceTypeExternal` 自定义采集,需先切换为 `kAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #IRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int startScreenAudioCapture() = 0; + /** + * + * @hidden(Linux,Android,iOS) + * @valid since 3.59 + * @type api + * @brief 使用 RTC SDK 内部采集方式,采集桌面端系统声音,用于屏幕共享。
+ * 该接口会采集桌面端系统声卡的音频数据,采集到的音频会混入本地音频流中。 + * @param device_id
+ * - 对于 Windows 平台,该参数用于设置采集本地指定音频进程的音频。例如可将该参数设为某应用程序可执行文件的文件名(如 QQMusic.exe),此时 SDK 只会采集该应用程序的音频。传入 nullptr 或置空时即代表采集整个系统除本进程之外的所有应用程序的音频。当前,应用程序仅支持 QQ 音乐、网易云音乐和酷狗音乐,采集其他进程可能会导致未知行为。 + * - 对于 macOS 平台,该参数表示虚拟设备 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。若已调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 将音频输入源设置为 `kAudioSourceTypeExternal` 自定义采集,需先切换为 `kAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #IRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int startScreenAudioCapture(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式,采集屏幕音频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 本接口仅对内部采集生效。如果为外部采集模式,调用本接口失败。你需要在外部采集器中实现停止采集的逻辑。 + * - 要开始屏幕音频内部采集,调用 startScreenAudioCapture{@link #IRTCEngine#startScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int stopScreenAudioCapture() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 使用自定义采集方式,采集屏幕共享时的屏幕音频时,将音频帧推送至 RTC SDK 处进行编码等处理。 + * @param frame 音频数据帧,参见 IAudioFrame{@link #IAudioFrame}
+ * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 samples × frame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
+ * - 0: 设置成功。 + * - < 0: 设置失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用此接口推送屏幕共享时的自定义采集的音频数据前,必须调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 开启屏幕音频自定义采集。 + * - 你应每隔 10 毫秒,调用一次此方法推送一次自定义采集的音频帧。一次推送的音频帧中应包含 frame.sample_rate / 100 个音频采样点。比如,假如采样率为 48000Hz,则每次应该推送 480 个采样点。 + * - 调用此接口将自定义采集的音频帧推送到 RTC SDK 后,你必须调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。在调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 前,推送到 RTC SDK 的音频帧信息会丢失。 + * @list 屏幕共享 + * @order 14 + */ + + virtual int pushScreenAudioFrame(IAudioFrame* frame) = 0; + /** + * + * @type api + * @hidden internal use only + * @brief 在听众端,设置订阅的所有远端音频流精准对齐后播放。 + * @param stream_id 流标识 + * 一般选择主唱的音频流。
+ * 你必须在收到 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio},确认此音频流已发布后,调用此 API。 + * @param mode 是否对齐,默认不对齐。参看 AudioAlignmentMode{@link #AudioAlignmentMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 你必须在实时合唱场景下使用此功能。在加入房间时,所有人应设置 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeChorus`。 + * - 订阅的所有远端流必须通过 startAudioMixing 开启了背景音乐混音,并将 AudioMixingConfig 中的 `sync_progress_to_record_frame` 设置为 `true`。 + * - 如果订阅的某个音频流延迟过大,可能无法实现精准对齐。 + * - 合唱的参与者不应调用此 API,因为调用此 API 会增加延迟。如果希望从听众变为合唱参与者,应关闭对齐功能。 + * @list 在线 KTV + */ + + virtual int setAudioAlignmentProperty(const char* stream_id, AudioAlignmentMode mode) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 Extension 配置项 + * @param group_id App 和 Extension 应该归属于同一个 App Group,此处需要传入 Group Id + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该函数必须在 sharedEngineWithAppId 函数之后立即调用。如果不调用或者调用时机比较晚,本地用户会收到 onMediaDeviceStateChanged 的回调。
+ * - 参数 device_state 值为 ByteRTCMediaDeviceStateStopped,device_error 值为 `ByteRTCMediaDeviceErrorNotFindGroupId` + * @list 屏幕共享 + */ + + virtual int setExtensionConfig(const char* group_id) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 发送屏幕共享 Extension 程序消息 + * @param message 发送给 Extension 程序的消息内容 + * @param size 消息内容大小 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该函数必须在 startScreenCapture 函数之后调用 + * @list 屏幕共享 + */ + + virtual int sendScreenCaptureExtensionMessage(const char* message, size_t size) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地屏幕共享数据采集 + * @param type 屏幕共享数据采集类型 + * @param bundle_id 传入 Broadcast Upload Extension 的 Bundle Id,用于在设置中优先展示 Extension + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 当从 iOS 控制中心异常启动 Extension 时可以不用调用本函数
+ * 本地用户会收到 onMediaDeviceStateChanged 的回调。
+ * 参数 device_state 值为 ByteRTCMediaDeviceStateStarted,device_error 值为 ByteRTCMediaDeviceErrorOK + * @list 屏幕共享 + */ + + virtual int startScreenCapture(ScreenMediaType type, const char* bundle_id) = 0; + /** + * + * @hidden(macOS,Windows,iOS,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过传入的 Type 和 Context 开启屏幕音视频内部采集。 + * @param type 指定的屏幕媒体采集类型,参看 ScreenMediaType{@link #ScreenMediaType} + * @param context Android 平台传入 Intent 对象,由业务方申请系统录屏权限后获得。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 或 publishStreamVideo{@link #IRTCRoom#publishStreamVideo} 将采集到的屏幕音视频推送到远端。 + * - 开启屏幕音视频内部采集,Android 专用接口。 + * @list 屏幕共享 + */ + + virtual int startScreenCapture(ScreenMediaType type, void* context) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地屏幕共享数据采集 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 屏幕共享 + */ + + virtual int stopScreenCapture() = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @region 转推直播 + * @brief 推送客户端合流外部视频帧。
+ * @param uid
+ * 外部视频帧对应的合流布局中的uid + * @param frame
+ * 用于合流的外部视频帧 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int pushClientMixedStreamExternalVideoFrame(const char* uid, const VideoFrameData& frame) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief 设置转推直播观察者。 + * @param observer + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int setClientMixedStreamObserver(IClientMixedStreamObserver* observer) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief 客户端合流转推 CDN。 + * @param task_id 任务 ID。 + * @param config 合流转推 CDN 任务配置。 + * @param extra_config + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list Pushing Streams to CDN + */ + + virtual int startClientMixedStream(const char* task_id, IMixedStreamConfig* config, ClientMixedStreamConfig extra_config) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief + * @param task_id + * @param config + * @param extra_config + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int updateClientMixedStream(const char* task_id, IMixedStreamConfig* config, ClientMixedStreamConfig extra_config) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief + * @param task_id + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int stopClientMixedStream(const char* task_id) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushMixedStreamToCDN` 和 `startPushPublicStream` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 指定房间中的媒体流,合成后一路流发布到 CDN 或发布一路 WTN 流。 + * @param task_id 转推直播任务 ID,长度不超过 127 字节。 当 IMixedStreamConfig{@link #IMixedStreamConfig} 中的 `PushTargetType = 0` 时, 用于标识转推直播任务。你可以在同一房间内发起多个转推直播任务,并用不同的 ID 加以区分。当你需要发起多个转推直播任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * 当 `PushTargetType = 1` 时,设置无效,传空即可。 + * @param push_target_config 推流目标配置参数,比如设置推流地址、WTN 流 ID。参看 MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}。 + * @param config 合流转推配置参数,比如设置合流的图片、视频视图布局和音频属性。参看 IMixedStreamConfig{@link #IMixedStreamConfig}。 + * @return + * - 0: 成功。你可以通过 onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} 回调获取启动结果和推流过程中的事件。 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 在[控制台](https: + * - 调用 stopPushMixedStream{@link #IRTCEngine#stopPushMixedStream} 可以停止转推任务。 + * - 调用 updatePushMixedStream{@link #IRTCEngine#updatePushMixedStream} 可以更新部分任务参数。 + * @list CDN 推流 + */ + + virtual int startPushMixedStream(const char* task_id, MixedStreamPushTargetConfig push_target_config, IMixedStreamConfig* config) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `updatePushMixedStreamToCDN` 和 `updatePublicStreamParam` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 更新由 startPushMixedStream{@link #IRTCEngine#startPushMixedStream} 启动的任务参数,会收到 onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} 回调。 + * @param task_id 转推直播任务 ID。指定想要更新参数设置的转推直播任务。仅当 IMixedStreamConfig{@link #IMixedStreamConfig} 中的 `PushTargetType = 0` 时有效。 + * @param push_target_config 推流目标配置参数,比如设置推流地址、WTN 流 ID。参看 MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}。 + * @param config 转推直播配置参数,参看 IMixedStreamConfig{@link #IMixedStreamConfig}。除特殊说明外,均支持过程中更新。
+ * 调用时,结构体中没有传入值的属性,会被更新为默认值。 + * @return + * - 0: 成功。 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int updatePushMixedStream(const char* task_id, MixedStreamPushTargetConfig push_target_config, IMixedStreamConfig* config) = 0; + /** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN` 方法来停止合流转推任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hidden(Linux) + * @hiddensdk(audiosdk) + * @brief 停止由 startPushMixedStream{@link #IRTCEngine#startPushMixedStream} 启动的任务。 + * @param task_id 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param target_type 参看 MixedStreamPushTargetType{@link #MixedStreamPushTargetType}。 + * @return + * - 0: 成功 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int stopPushMixedStream(const char* task_id, MixedStreamPushTargetType target_type) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自版本 3.60 起,该接口取代了 `startPushSingleStreamToCDN` 方法。如果您已升级到版本 3.60 或更高版本,且仍在使用此方法,请迁移到该接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 将房间内某一路音视频流,推送到指定的 RTC 房间或 CDN 地址。此过程不涉及编解码。 + * @param task_id 任务 ID。
+ * 你可以发起多个单流转推任务,并用不同的任务 ID 加以区分。当你需要发起多个单流转推任务时,应使用多个 ID;当你仅需发起一个单流转推任务时,建议使用空字符串。 + * @param param 单流转推配置参数。详见 PushSingleStreamParam{@link #PushSingleStreamParam}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 在调用该接口前,你需要在[控制台](https: + * - 调用该方法后,关于启动结果和推流过程中的错误,会收到 onSingleStreamEvent{@link #IRTCEngineEventHandler#onSingleStreamEvent} 回调。 + * - 在[控制台](https: + * - 调用 stopPushSingleStream{@link #IRTCEngine#stopPushSingleStream} 停止任务。 + * - 由于本功能不进行编解码,所以推到 RTMP 的视频流会根据推流端的分辨率、编码方式、关闭摄像头等变化而变化。 + * @list CDN 推流 + */ + + virtual int startPushSingleStream(const char* task_id, PushSingleStreamParam& param) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN` 方法来停止单流转推直播任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止由 startPushSingleStream{@link #IRTCEngine#startPushSingleStream} 启动的单流转推任务。 + * @param task_id 任务 ID。可以指定想要停止的单流转推任务。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int stopPushSingleStream(const char* task_id) = 0; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 开启缓存同步功能。开启后,会缓存收到的实时音视频数据,并对齐不同数据中的时间戳完成同步。此功能会影响音视频数据消费的实时性。 + * @param config 参看 ChorusCacheSyncConfig{@link #ChorusCacheSyncConfig}。 + * @param observer 事件和数据观察者,参看 IChorusCacheSyncObserver{@link #IChorusCacheSyncObserver}。 + * @return 查看 ReturnStatus{@link #ReturnStatus}。 + * @note 要关闭缓存同步功能,调用 stopChorusCacheSync{@link #IRTCEngine#stopChorusCacheSync}。 + * @list Pushing Streams to CDN + */ + + virtual int startChorusCacheSync(ChorusCacheSyncConfig * config, IChorusCacheSyncObserver* observer) = 0; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭缓存同步功能。 + * @return 查看 ReturnStatus{@link #ReturnStatus}。 + * @list Pushing Streams to CDN + */ + + virtual int stopChorusCacheSync() = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新屏幕采集数据类型 + * @param type 屏幕采集数据类型 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该函数必须在 startScreenCapture 函数之后调用。本地用户会收到 onMediaDeviceStateChanged 的回调。
+ * 参数 device_state 值为 ByteRTCMediaDeviceStateStarted 或 ByteRTCMediaDeviceStateStopped,device_error 值为 ByteRTCMediaDeviceErrorOK。 + * @list 屏幕共享 + */ + + virtual int updateScreenCapture(ScreenMediaType type) = 0; + + /** + * + * @type api + * @brief 启用音频信息提示。开启提示后,你会收到 onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport},onRemoteAudioPropertiesReport{@link #IRTCEngineEventHandler#onRemoteAudioPropertiesReport} 和 onActiveSpeaker{@link #IRTCEngineEventHandler#onActiveSpeaker}。 + * @param config 详见 AudioPropertiesConfig{@link #AudioPropertiesConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioPropertiesReport(const AudioPropertiesConfig& config) = 0; + + /** + * + * @type api + * @hidden 3.60 for internal use only + * @brief Enable audio voice detection. After that, you will receive onAudioVADStateUpdate{@link #IRTCEngineEventHandler#onAudioVADStateUpdate}. + * @param interval 回调间隔,单位毫秒。
+ * + `<= 0`: 关闭人声识别能力回调。 + * + `[100, 3000]`: 开启人声识别能力回调,并将信息提示间隔设置为此值。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioVADReport(int interval) = 0; + /** + * + * @hidden 3.60 for internal use only + * @type api + * @brief Enable audio music detection. After that, you will receive onAudioAEDStateUpdate{@link #IRTCEngineEventHandler#onAudioAEDStateUpdate}. + * @param interval 回调间隔,单位毫秒。
+ * + `<= 0`: 关闭回调。 + * + `[100, 3000]`: 开启回调并将信息提示间隔设置为此值。推荐设置为 2000。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioAEDReport(int interval) = 0; + + /** + * + * @type api + * @brief 调节本端播放收到的远端流时的音量。你必须在进房后进行设置。流的发布状态改变不影响设置生效。 + * @param stream_id 流标识 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
+ * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内:
+ * - 当该方法与 setRemoteRoomAudioPlaybackVolume{@link #IRTCRoom#setRemoteRoomAudioPlaybackVolume} 共同使用时,本地收听用户 A 的音量为后调用的方法设置的音量; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * - 当你调用该方法设置远端流音量后,如果远端退房,接口设置失效。 + * @list 音频管理 + */ + + virtual int setRemoteAudioPlaybackVolume(const char* stream_id, int volume) = 0; + /** + * + * @type api + * @brief 开启/关闭音量均衡功能。
+ * 开启音量均衡功能后,人声的响度会调整为 -16lufs。如果已调用 setAudioMixingLoudness 传入了混音音乐的原始响度,此音乐播放时,响度会调整为 -20lufs。(Linux 不支持) + * @param enable 是否开启音量均衡功能:
+ * - true: 是 + * - false: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口须在调用 start{@link #IAudioEffectPlayer#start} 开始播放音频文件之前调用。 + * @list 音频管理 + */ + + virtual int enableVocalInstrumentBalance(bool enable) = 0; + /** + * + * @type api + * @brief 打开/关闭音量闪避功能,适用于在 RTC 通话过程中会同时播放短视频或音乐的场景,如“一起看”等。
+ * 开启该功能后,当检测到远端人声时,RTC 本地的媒体播放音量会自动减弱,从而保证远端人声的清晰可辨;当远端人声消失时,RTC 的本地媒体音量会恢复到闪避前的音量水平。 + * @param enable 是否开启音量闪避:
+ * - true: 是 + * - false: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enablePlaybackDucking(bool enable) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册本地视频帧监测器。
+ * 无论使用内部采集还是自定义采集,调用该方法后,SDK 每监测到一帧本地视频帧时,都会将视频帧信息通过 onLocalEncodedVideoFrame{@link #ILocalEncodedVideoFrameObserver#onLocalEncodedVideoFrame} 回调给用户 + * @param observer 本地视频帧监测器,参看 ILocalEncodedVideoFrameObserver{@link #ILocalEncodedVideoFrameObserver}。将参数设置为 nullptr 则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该方法可在进房前后的任意时间调用,在进房前调用可保证尽可能早地监测视频帧并触发回调 + * @list 自定义流处理 + */ + + virtual int registerLocalEncodedVideoFrameObserver(ILocalEncodedVideoFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册远端编码后视频数据回调。
+ * 完成注册后,当 SDK 监测到远端编码后视频帧时,会触发 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame} 回调 + * @param observer 远端编码后视频数据监测器,参看 IRemoteEncodedVideoFrameObserver{@link #IRemoteEncodedVideoFrameObserver} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 更多自定义解码功能说明参看 [自定义视频编解码](https: + * - 该方法适用于手动订阅,并且进房前后均可调用,建议在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + + virtual int registerRemoteEncodedVideoFrameObserver(IRemoteEncodedVideoFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册自定义编码帧推送事件回调 + * @param encoder_handler 自定义编码帧回调类,参看 IExternalVideoEncoderEventHandler{@link #IExternalVideoEncoderEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法需在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + + virtual int setExternalVideoEncoderEventHandler(IExternalVideoEncoderEventHandler* encoder_handler) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送自定义编码后的视频流 + + * @param video_index 对应的编码流下标,从 0 开始,如果调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置了多路流,此处数量须与之保持一致 + * @param video_stream 编码流视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame}。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 目前仅支持推送 H264 和 ByteVC1 格式的视频帧,且视频流协议格式须为 Annex B 格式。 + * - 该函数运行在用户调用线程内 + * - 推送自定义编码视频帧前,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 将视频输入源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + + virtual int pushExternalEncodedVideoFrame(int video_index, IEncodedVideoFrame* video_stream) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之前,设置远端视频数据解码方式 + * @param stream_id 远端流 ID,指定对哪一路视频流进行解码方式设置 + * @param config 视频解码方式,参看 VideoDecoderConfig{@link #VideoDecoderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 当你想要对远端流进行自定义解码时,你需要先调用 registerRemoteEncodedVideoFrameObserver{@link #IRTCEngine#registerRemoteEncodedVideoFrameObserver} 注册远端视频流监测器,然后再调用该接口将解码方式设置为自定义解码。监测到的视频数据会通过 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame} 回调出来。 + * - 自 3.56 起,要用于自动订阅场景下,你可以设置 `key` 中的 `RoomId` 和 `UserId` 为 `nullptr`,此时,通过此接口设置的解码方式根据 `key` 中的 `StreamIndex` 值,适用于所有的远端主流或屏幕流的解码方式。 + * @list 自定义流处理 + */ + + virtual int setVideoDecoderConfig(const char* stream_id, VideoDecoderConfig config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之后,向远端请求关键帧 + * @param stream_id 远端流 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 + * - 该方法适用于调用 setVideoDecoderConfig{@link #IRTCEngine#setVideoDecoderConfig} 开启自定义解码功能后,并且自定义解码失败的情况下使用 + * @list 音视频传输 + */ + + virtual int requestRemoteVideoKeyFrame(const char* stream_id) = 0; + /** + * + * @type api + * @brief 发送音频流同步信息。将消息通过音频流发送到远端,并实现与音频流同步,该接口调用成功后,远端用户会收到 onStreamSyncInfoReceived{@link #IRTCEngineEventHandler#onStreamSyncInfoReceived} 回调。 + * @param data 消息内容。 + * @param length 消息长度。取值范围是 [1,255] 字节,建议小于 16 字节,否则可能占用较大带宽。 + * @param config 媒体流信息同步的相关配置,详见 StreamSyncInfoConfig{@link #StreamSyncInfoConfig} 。 + * @return + * - >=0: 消息发送成功。返回成功发送的次数。 + * - -1: 消息发送失败。消息长度大于 255 字节。 + * - -2: 消息发送失败。传入的消息内容为空。 + * - -3: 消息发送失败。通过屏幕流进行消息同步时,此屏幕流还未发布。 + * - -4: 消息发送失败。通过用麦克风或自定义设备采集到的音频流进行消息同步时,此音频流还未发布,详见错误码 ErrorCode{@link #ErrorCode}。 + * @note + * - 调用本接口的频率建议不超过 50 次每秒。 + * - 在 `kRoomProfileTypeInteractivePodcast` 房间模式下,此消息一定会送达。在其他房间模式下,如果本地用户未说话,此消息不一定会送达。 + * @list 消息 + */ + + virtual int sendStreamSyncInfo(const uint8_t* data, int32_t length, const StreamSyncInfoConfig& config) = 0; + /** + * + * @type api + * @brief 开启本地语音变调功能,多用于 K 歌场景。
+ * 使用该方法,你可以对本地语音的音调进行升调或降调等调整。 + * @param pitch 相对于语音原始音调的升高/降低值,取值范围[-12,12],默认值为 0,即不做调整。
+ * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。
+ * 超出取值范围则设置失败,并且会触发 onWarning{@link #IRTCEngineEventHandler#onWarning} 回调,提示 WarningCode{@link #WarningCode} 错误码为 `WARNING_CODE_SET_SCREEN_STREAM_INVALID_VOICE_PITCH` 设置语音音调不合法 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频处理 + */ + + virtual int setLocalVoicePitch(int pitch) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在指定视频流上添加水印。 + * @param image_path 水印图片路径,仅支持本地文件绝对路径,长度限制为 512 字节。
+ * 水印图片为 PNG 或 JPG 格式。 + * @param config 水印参数,参看 RTCWatermarkConfig{@link #RTCWatermarkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 clearVideoWatermark{@link #IRTCEngine#clearVideoWatermark} 移除指定视频流的水印。 + * - 同一路流只能设置一个水印,新设置的水印会代替上一次的设置。你可以多次调用本方法来设置不同流的水印。 + * - 若开启本地预览镜像,或开启本地预览和编码传输镜像,则远端水印均不镜像;在开启本地预览水印时,本端水印会镜像。 + * - 开启大小流后,水印对大小流均生效,且针对小流进行等比例缩小。 + * @list 视频处理 + */ + + virtual int setVideoWatermark(const char* image_path, RTCWatermarkConfig config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 移除指定视频流的水印。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 视频处理 + */ + + virtual int clearVideoWatermark() = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 截取本地视频画面 + * @param callback 本地截图的回调。参看 ISnapshotResultCallback{@link #ISnapshotResultCallback}。 + * @return 本地截图任务的编号,从 `1` 开始递增。 + * @note + * - 对截取的画面,包含本地视频处理的全部效果,包含旋转,镜像,美颜等。 + * - 不管采用 SDK 内部采集,还是自定义采集,都可以进行截图。 + * @list 高级功能 + */ + + virtual long takeLocalSnapshot(ISnapshotResultCallback* callback) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 截取远端视频画面 + * @param stream_id 流标识 + * @param callback 参看 ISnapshotResultCallback{@link #ISnapshotResultCallback}。 + * @return 远端截图任务的编号,从 `1` 开始递增。 + * @list 高级功能 + */ + + virtual long takeRemoteSnapshot(const char* stream_id, ISnapshotResultCallback* callback) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 截取远端的视频流画面,生成 JPG 文件,并保存到本地指定路径。
+ * 调用该方法后,SDK 会触发回调 onRemoteSnapshotTakenToFile{@link #IRTCEngineEventHandler#onRemoteSnapshotTakenToFile} 报告截图是否成功,以及截取的图片信息。 + * @param stream_id 待截取的远端视频流 ID。 + * @param file_path 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。以 Windows 为例:`C:\\Users\\YourName\\Pictures\\snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + + virtual long takeRemoteSnapshotToFile(const char* stream_id, const char* file_path) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 截取本地视频流画面,生成 JPG 文件,并保存到本地指定路径。
+ * 调用该方法后,SDK 会触发回调 onLocalSnapshotTakenToFile{@link #IRTCEngineEventHandler#onLocalSnapshotTakenToFile} 报告截图是否成功,以及截取的图片信息。 + * @param file_path 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。以 Windows 为例:`C:\\Users\\YourName\\Pictures\\snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + + virtual long takeLocalSnapshotToFile(const char* file_path) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 摄像头处于关闭状态时,使用静态图片填充本地推送的视频流。
+ * 调用 `stopVideoCapture` 接口时,会开始推静态图片。若要停止发送图片,可传入空字符串或启用内部摄像头采集。
+ * 可重复调用该接口来更新图片。 + * @param file_path 设置静态图片的路径。
+ * 支持本地文件绝对路径,不支持网络链接,长度限制为 512 字节。
+ * 静态图片支持类型为 JPEG/JPG、PNG、BMP。
+ * 若图片宽高比与设置的编码宽高比不一致,图片会按编码高宽等比缩放,并裁剪长边。推流帧率与码率与设置的编码参数一致。 + * @return + * - 0: 成功。 + * - -2: 失败。确保传入的 file_path 为有效路径。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 该接口只适用于 SDK 内部摄像头采集,不适用于自定义视频采集。 + * - 本地预览无法看到静态图片。 + * - 进入房间前后均可调用此方法。在多房间场景中,静态图片仅在发布的房间中生效。 + * - 针对该静态图片,滤镜和镜像效果不生效,水印效果生效。 + * - 只有主流能设置静态图片,屏幕流不支持设置。 + * - 开启大小流后,静态图片对大小流均生效,且针对小流进行等比例缩小。 + * @list 音视频传输 + */ + + virtual int setDummyCaptureImagePath(const char* file_path) = 0; + /** + * + * @type api + * @brief 开启云代理 + * @param configuration 云代理服务器信息列表。参看 CloudProxyConfiguration{@link #CloudProxyConfiguration}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在加入房间前调用此接口 + * - 在开启云代理后,进行通话前网络探测 + * - 开启云代理后,并成功连接云代理服务器后,会收到 onCloudProxyConnected{@link #IRTCEngineEventHandler#onCloudProxyConnected}。 + * - 要关闭云代理,调用 stopCloudProxy{@link #IRTCEngine#stopCloudProxy}。 + * @list 通话加密 + */ + + virtual int startCloudProxy(const CloudProxyConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 关闭云代理 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 要开启云代理,调用 startCloudProxy{@link #IRTCEngine#startCloudProxy}。 + * @list 通话加密 + */ + + virtual int stopCloudProxy() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启音视频回路测试。
+ * 在进房前,用户可调用该接口对音视频通话全链路进行检测,包括对音视频设备以及用户上下行网络的检测,从而帮助用户判断是否可以正常发布和接收音视频流。
+ * 开始检测后,SDK 会录制你的声音或视频。如果你在设置的延时范围内收到了回放,则视为音视频回路测试正常。 + * @param echo_test_config 回路测试参数设置,参看 EchoTestConfig{@link #EchoTestConfig}。 + * @param play_delay_time 音视频延迟播放的时间间隔,用于指定在开始检测多长时间后期望收到回放。取值范围为 [2,10],单位为秒,默认为 2 秒。 + * @return 方法调用结果:
+ * - 0:成功 + * - -2:失败,参数异常 + * - -4:失败,用户已进房 + * - -6:失败,当前用户已经在检测中 + * - -7:失败,音视频均不检查 + * - -8:失败,已经存在相同 roomId 的房间 + * @note + * - 调用该方法开始音视频回路检测后,你可以调用 stopEchoTest{@link #IRTCEngine#stopEchoTest} 立即结束测试,也可等待测试 60s 后自动结束,以更换设备进行下一次测试,或进房。 + * - 在该方法之前调用的所有跟设备控制、流控制相关的方法均在开始检测时失效,在结束检测后恢复生效。 + * - 在调用 startEchoTest{@link #IRTCEngine#startEchoTest} 和 stopEchoTest{@link #IRTCEngine#stopEchoTest} 之间调用的所有跟设备采集、流控制、进房相关的方法均不生效,并会收到 onWarning{@link #IRTCEngineEventHandler#onWarning} 回调,提示警告码为 `kWarningCodeInEchoTestMode`。 + * - 音视频回路检测的结果会通过 onEchoTestResult{@link #IRTCEngineEventHandler#onEchoTestResult} 回调通知。 + * @list 网络管理 + */ + + virtual int startEchoTest(EchoTestConfig echo_test_config, unsigned int play_delay_time) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 停止音视频回路测试。
+ * 调用 startEchoTest{@link #IRTCEngine#startEchoTest} 开启音视频回路检测后,你必须调用该方法停止检测。 + * @return 方法调用结果:
+ * - 0:成功。 + * - -3:失败,未开启回路检测。 + * @note 音视频回路检测结束后,所有对系统设备及音视频流的控制均会恢复到开始检测前的状态。 + * @list 网络管理 + */ + + virtual int stopEchoTest() = 0; + /** + * + * @hidden + * @type api + * @brief 创建 K 歌评分管理接口。 + * @return K 歌评分管理接口,详见 ISingScoringManager{@link #ISingScoringManager#ISingScoringManager}。 + * @note 如需使用 K 歌评分功能,即调用该方法以及 `ISingScoringManager` 类下全部方法,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * @list 在线 KTV + */ + + virtual ISingScoringManager* getSingScoringManager() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 通过 NTP 协议,获取网络时间。 + * @return 网络时间。参看 NetworkTimeInfo{@link #NetworkTimeInfo}。 + * @note + * 第一次调用此接口会启动网络时间同步功能,并返回 `0`。同步完成后,会收到 onNetworkTimeSynchronized{@link #IRTCEngineEventHandler#onNetworkTimeSynchronized},此后,再次调用此 API,即可获取准确的网络时间。 + * @list 网络管理 + */ + + virtual NetworkTimeInfo getNetworkTimeInfo() = 0; + /** + * + * @hidden currently not available + * @type api + * @brief 创建 KTV 管理接口。 + * @return KTV 管理接口,参看 IKTVManager{@link #IKTVManager}。 + * @list 在线 KTV + */ + + virtual IKTVManager* getKTVManager() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启通话前回声检测 + * @param test_audio_file_path 用于回声检测的音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。
+ * 音频文件不为静音文件,推荐时长为 10 ~ 20 秒。 + * @return 方法调用结果:
+ * - 0: 成功。 + * - -1:失败。上一次检测未结束,请先调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测 后重新调用本接口。 + * - -2:失败。路径不合法或音频文件格式不支持。 + * @note + * - 只有当 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeMeeting` 和 `kRoomProfileTypeMeetingRoom` 时支持开启本功能。 + * - 开启检测前,你需要向用户获取音频设备的使用权限。 + * - 开启检测前,请确保音频设备没有被静音,采集和播放音量正常。 + * - 调用本接口后监听 onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult} 获取检测结果。 + * - 检测期间,进程将独占音频设备,无法使用其他音频设备测试接口 startEchoTest{@link #IRTCEngine#startEchoTest}。 + * - 调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * @list 音频管理 + */ + + virtual int startHardwareEchoDetection(const char* test_audio_file_path) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 停止通话前回声检测 + * @return 方法调用结果:
+ * - 0: 成功。 + * - -1:失败。 + * @note + * - 关于开启通话前回声检测,参看 startHardwareEchoDetection{@link #IRTCEngine#startHardwareEchoDetection} 。 + * - 建议在收到 onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult} 通知的检测结果后,调用本接口停止检测。 + * - 在用户进入房间前结束回声检测,释放对音频设备的占用,以免影响正常通话。 + * @list 音频管理 + */ + + virtual int stopHardwareEchoDetection() = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param config 参看 MediaTypeEnhancementConfig{@link #MediaTypeEnhancementConfig}。 + * @return 方法调用结果:
+ * - 0: 成功。 + * - -1:失败,内部错误。 + * - -2: 失败,输入参数错误。 + * @note 此功能默认不开启。 + * @list Audio Management + */ + + virtual int setCellularEnhancement(const MediaTypeEnhancementConfig& config) = 0; + /** + * + * @type api + * @brief 设置本地代理。 + * @param configurations 本地代理配置参数。参看 LocalProxyConfiguration{@link #LocalProxyConfiguration}。
+ * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
+ * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @param configuration_num 本地代理配置参数的数量。 + * @note + * - 该方法需要在进房前调用。 + * - 调用该方法设置本地代理后,SDK 会触发 onLocalProxyStateChanged{@link #IRTCEngineEventHandler#onLocalProxyStateChanged} ,返回代理连接的状态。 + * @list 通话加密 + */ + + virtual int setLocalProxy(const LocalProxyConfiguration* configurations, int configuration_num) = 0; + /** + * + * @hidden(Android,iOS) + * @valid since 3.57 + * @type api + * @brief 设置视频暗光增强模式。
+ * 对于光线不足、照明不均匀或背光等场景下推荐开启,可有效改善画面质量。 + * @param mode 默认不开启。参看 VideoEnhancementMode{@link #VideoEnhancementMode}。 + * @return + * - 0: API 调用成功。会立即生效,但需要等待下载和检测完成后才能看到增强后的效果。 + * - < 0: API 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 开启后会影响设备性能,应根据实际需求和设备性能决定是否开启。 + * - 对 RTC SDK 内部采集的视频和自定义采集的视频都生效。 + * @list 视频处理 + */ + + virtual int setLowLightAdjusted(VideoEnhancementMode mode) = 0; + + /** + * + * @valid since 3.60 + * @type api + * @brief 获取 WTN 流对象。
+ * 你可以通过此方法获取 WTN 流对象,以实现自定义的视频渲染和处理。
+ * 调用此方法后,可以通过调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 或 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 订阅指定的 WTN 流。
+ * 如需发布 WTN 流,调用 startPushMixedStream{@link #IRTCEngine#startPushMixedStream}。 + * @return WTN 流对象。参看 IWTNStream{@link #IWTNStream}。 + * @list WTN + */ + + virtual IWTNStream* getWTNStream() = 0; + + /** + * + * @type api + * @brief 创建 IRTCEngine 实例。
+ * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
+ * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Handler,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} + * @return + * - IRTCEngine:创建成功。返回一个可用的 IRTCEngine{@link #IRTCEngine} 实例 + * - Null:app_id 或者 event_handler 为空, event_handler 为空。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API IRTCEngine* createRTCEngine(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + /** + * + * @hidden internal use only + * @type api + * @brief 创建多实例引擎对象
+ * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
+ * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param handler SDK 回调给应用层的 Handler,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} + * @return + * - RTCEngine:创建成功。返回一个可用的 IRTCEngine{@link #IRTCEngine} 实例 + * - Null:.so 文件加载失败,创建失败。 + * @note 你应注意保持 handler 的生命周期必须大于 IRTCEngine{@link #IRTCEngine} 的生命周期,即 handler 必须在调用 destroyRTCEngine{@link #IRTCEngine#destroyRTCEngine} 之后销毁。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API IRTCEngine* createRTCEngineMulti(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + /** + * + * @type api + * @brief 销毁由 createRTCEngine{@link #IRTCEngine#createRTCEngine} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngine{@link #IRTCEngine} 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 IRTCEngine{@link #IRTCEngine} 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 IRTCEngine{@link #IRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互。 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API void destroyRTCEngine(); + /** + * + * @hidden internal use only + * @type api + * @brief 销毁由 createRTCEngineMulti{@link #IRTCEngine#createRTCEngineMulti} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngine{@link #IRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 IRTCEngine{@link #IRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API void destroyRTCEngineMulti(IRTCEngine* instance_multi); + /** + * + * @type api + * @brief 获取当前 SDK 版本信息。 + * @return 当前 SDK 版本信息。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API const char* getSDKVersion(); + /** + * + * @type api + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param log_config 本地日志参数,参看 LogConfig{@link #LogConfig}。 + * @return + * - 0:成功。 + * - –1:失败,本方法必须在创建引擎前调用。 + * - –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTCEngine{@link #IRTCEngine#createRTCEngine} 之前调用。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API int setLogConfig(const LogConfig& log_config); +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h new file mode 100644 index 0000000..a80a1d3 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h @@ -0,0 +1,1292 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Event Handler Lite +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @hidden + * @brief 该接口为预留接口,还未实现。 + */ + +class IVideoSource; +/** + * + * @type keytype + * @hidden + * @brief 该接口为预留接口,还未实现。 + */ + +class IAudioSource; +/** + * + * @type callback + * @brief 音视频引擎事件回调接口
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class IRTCEngineEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTCEngineEventHandler() { + } + /** + * + * @type callback + * @brief 发生警告回调。
+ * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。
+ * 你可能需要干预。 + * @param warn 警告标识码,详见:WarningCode{@link #WarningCode} + * @list 引擎管理 + */ + + virtual void onWarning(int warn) { + (void)warn; + } + /** + * + * @type callback + * @brief 发生错误回调。
+ * SDK 运行时出现了网络或媒体相关的错误,且无法自动恢复时触发此回调。 + * @param err 错误标识码,参看 ErrorCode{@link #ErrorCode} + * @list 引擎管理 + */ + + virtual void onError(int err) { + (void)err; + } + /** + * + * @hidden internal use only + * @valid since 3.57 + * @type callback + * @brief 当内部线程发生 block 时,将收到此回调。 + * @param msg block 线程的线程名和 block 检测次数。参看 DeadLockMsg{#DeadLockMsg}。 + * @list Engine Management + */ + + virtual void onDeadLockError(const DeadLockMsg& msg) { + (void)msg; + } + /** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。
+ * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param extension_name 插件名字 + * @param msg 失败说明 + * @list 高级功能 + */ + + virtual void onExtensionAccessError(const char* extension_name, const char* msg) { + + } + /** + * + * @type callback + * @deprecated since 3.54, use onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} instead. + * @brief 混音音频文件播放进度回调 + * @param mix_id 混音 ID + * @param progress 当前混音音频文件播放进度,单位毫秒 + * @note 调用 setAudioMixingProgressInterval 将时间间隔设为大于 0 的值后,或调用 startAudioMixing 将 AudioMixingConfig 中的时间间隔设为大于 0 的值后,SDK 会按照设置的时间间隔回调该事件。 + * @list 混音 + */ + + virtual void onAudioMixingPlayingProgress(int mix_id, int64_t progress) { + } + /** + * + * @type callback + * @brief 上报日志时回调该事件。 + * @param log_type
+ * 事件类型。目前类型固定为 "live_webrtc_monitor_log"。 + * @param log_content
+ * 端监控日志内容。 + * @list 引擎管理 + */ + + virtual void onLogReport(const char* log_type, const char* log_content) { + (void)log_type; + (void)log_content; + } + /** + * + * @hidden(macOS,Windows,Linux) + * @type callback + * @brief 音频播放设备变化时回调该事件。 + * @param device 变化后的音频播放设备,参看 AudioRoute{@link #AudioRoute}。 + * @list 音频管理 + */ + + virtual void onAudioRouteChanged(AudioRoute route) { + (void)route; + }; + /** + * + * @type callback + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ConnectionState{@link #ConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + * @list 网络管理 + */ + + virtual void onConnectionStateChanged(bytertc::ConnectionState state) { + } + /** + * + * @type callback + * @brief SDK 当前网络连接类型改变回调。当 SDK 的当前网络连接类型发生改变时回调该事件。 + * @param type
+ * SDK 当前的网络连接类型,详见:NetworkType{@link #NetworkType} 。 + * @list 网络管理 + */ + + virtual void onNetworkTypeChanged(bytertc::NetworkType type) { + } + /** + * + * @type callback + * @brief 音视频流因网络环境变化等原因发生回退,或从回退中恢复时,触发该回调。 + * @param stream_id 流 ID + * @param stream_info 流信息, 参看 StreamInfo{@link #StreamInfo}。 + * @param event 音视频流发生变化的信息。参看 RemoteStreamSwitch{@link #RemoteStreamSwitch}。 + * @list 网络管理 + */ + + virtual void onSimulcastSubscribeFallback(const char* stream_id, const StreamInfo& stream_info, const bytertc::RemoteStreamSwitch& event) { + (void)stream_id; + (void)stream_info; + (void)event; + } + /** + * + * @type callback + * @brief 本地未通过 setPublishFallbackOption{@link #IRTCEngine#setPublishFallbackOption} 开启发布性能回退,检测到设备性能不足时,收到此回调。
+ * 本地通过 setPublishFallbackOption{@link #IRTCEngine#setPublishFallbackOption} 开启发布性能回退,因设备性能/网络原因,造成发布性能回退/恢复时,收到此回调。 + * @param stream_id 流 ID + * @param stream_info 流信息,参看 StreamInfo{@link #StreamInfo} + * @param mode 指示本地是否开启发布性能回退功能。参看 PerformanceAlarmMode{@link #PerformanceAlarmMode}
+ * - 当发布端未开启发布性能回退时,mode 值为 kPerformanceAlarmModeNormal。 + * - 当发布端开启发布性能回退时,mode 值为 kPerformanceAlarmModeSimulcast。 + * @param room_id 房间 ID
+ * - 未开启发布性能回退时,room_id 为空。 + * - 开启发布性能回退时,room_id 是告警影响的房间 ID。 + * @param reason 告警原因,参看 PerformanceAlarmReason{@link #PerformanceAlarmReason} + * @param data 性能回退相关数据,详见 SourceWantedData{@link #SourceWantedData}。 + * @list 网络管理 + */ + + virtual void onPerformanceAlarms(const char* stream_id, const StreamInfo& stream_info, bytertc::PerformanceAlarmMode mode, + bytertc::PerformanceAlarmReason reason, const bytertc::SourceWantedData& data) { + (void)stream_id; + (void)stream_info; + (void)mode; + (void)reason; + (void)data; + } + /** + * + * @type callback + * @brief 音频设备状态回调。提示音频采集、音频播放等设备的状态。 + * @param device_id 设备 ID。 + * @param device_type 设备类型,详见 RTCAudioDeviceType{@link #RTCAudioDeviceType} + * @param device_state 设备状态,详见 MediaDeviceState{@link #MediaDeviceState} + * @param device_error 设备错误类型,详见 MediaDeviceError{@link #MediaDeviceError} + * @list 音频管理 + */ + + virtual void onAudioDeviceStateChanged(const char* device_id, bytertc::RTCAudioDeviceType device_type, + bytertc::MediaDeviceState device_state, bytertc::MediaDeviceError device_error) { + (void)device_id; + (void)device_type; + (void)device_state; + (void)device_error; + } + /** + * + * @type callback + * @brief 视频设备状态回调。提示摄像头视频采集、屏幕视频采集等设备的状态。 + * @param device_id 设备 ID。采集屏幕共享流时,设备 ID 为固定字符串 `screen_capture_video` + * @param device_type 设备类型,详见 RTCVideoDeviceType{@link #RTCVideoDeviceType} + * @param device_state 设备状态,详见 MediaDeviceState{@link #MediaDeviceState} + * @param device_error 设备错误类型,详见 MediaDeviceError{@link #MediaDeviceError} + * @list 视频管理 + */ + + virtual void onVideoDeviceStateChanged(const char* device_id, bytertc::RTCVideoDeviceType device_type, + bytertc::MediaDeviceState device_state, bytertc::MediaDeviceError device_error) { + (void)device_id; + (void)device_type; + (void)device_state; + (void)device_error; + } + /** + * + * @type callback + * @brief 音频设备警告回调。音频设备包括音频采集设备和音频渲染设备。 + * @param device_id 设备 ID + * @param device_type 详见 RTCAudioDeviceType{@link #RTCAudioDeviceType} + * @param device_warning 详见 MediaDeviceWarning{@link #MediaDeviceWarning} + * @list 音频管理 + */ + + virtual void onAudioDeviceWarning(const char* device_id, bytertc::RTCAudioDeviceType device_type, + bytertc::MediaDeviceWarning device_warning) { + (void)device_id; + (void)device_type; + (void)device_warning; + } + /** + * + * @type callback + * @brief 视频设备警告回调,包括视频采集设备等。 + * @param device_id 设备 ID + * @param device_type 详见 RTCVideoDeviceType{@link #RTCVideoDeviceType} + * @param device_warning 详见 MediaDeviceWarning{@link #MediaDeviceWarning} + * @list 视频管理 + */ + + virtual void onVideoDeviceWarning(const char* device_id, bytertc::RTCVideoDeviceType device_type, + bytertc::MediaDeviceWarning device_warning) { + (void)device_id; + (void)device_type; + (void)device_warning; + } + /** + * + * @type callback + * @brief 周期性(2s)发出回调,报告当前 CPU 与内存的相关信息。 + * @param stats 包含当前 CPU 与内存相关信息的结构体。详见 SysStats{@link #SysStats}。 + * @list 引擎管理 + */ + + virtual void onSysStats(const bytertc::SysStats& stats) { + } + /** + * + * @type callback + * @brief 获取本地录制状态回调。
+ * 该回调由 startFileRecording{@link #IRTCEngine#startFileRecording} 或 stopFileRecording{@link #IRTCEngine#stopFileRecording} 触发。 + * @param video_source 预留参数 + * @param state 录制状态,参看 RecordingState{@link #RecordingState} + * @param error_code 录制错误码,参看 RecordingErrorCode{@link #RecordingErrorCode} + * @param info 录制文件的详细信息,参看 RecordingInfo{@link #RecordingInfo} + * @list 高级功能 + */ + + virtual void onRecordingStateUpdate( + IVideoSource* video_source, RecordingState state, RecordingErrorCode error_code, RecordingInfo info) { + } + /** + * + * @type callback + * @brief 本地录制进度回调。
+ * 该回调由 startFileRecording{@link #IRTCEngine#startFileRecording} 触发,录制状态正常时,系统每秒钟都会通过该回调提示录制进度。 + * @param video_source 预留参数。 + * @param process 录制进度,参看 RecordingProgress{@link #RecordingProgress} + * @param info 录制文件的详细信息,参看 RecordingInfo{@link #RecordingInfo} + * @list 高级功能 + */ + + virtual void onRecordingProgressUpdate(IVideoSource* video_source, RecordingProgress process, RecordingInfo info) { + } + /** + * + * @type callback + * @brief 调用 startAudioRecording{@link #IRTCEngine#startAudioRecording} 或 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 改变音频文件录制状态时,收到此回调。 + * @param state 录制状态,参看 AudioRecordingState{@link #AudioRecordingState} + * @param error_code 录制错误码,参看 AudioRecordingErrorCode{@link #AudioRecordingErrorCode} + * @list 高级功能 + */ + + virtual void onAudioRecordingStateUpdate(AudioRecordingState state, AudioRecordingErrorCode error_code) { + } + /** + * + * @type callback + * @brief 登录结果回调 + * @param uid
+ * 登录用户 ID + * @param error_code
+ * 登录结果
+ * 详见 LoginErrorCode{@link #LoginErrorCode}。 + * @param elapsed
+ * 从调用 login{@link #IRTCEngine#login} 接口开始到返回结果所用时长
+ * 单位为 ms。 + * @note 调用 login{@link #IRTCEngine#login} 后,会收到此回调。 + * @list 消息 + */ + + virtual void onLoginResult(const char* uid, int error_code, int elapsed) { + (void)uid; + (void)error_code; + (void)elapsed; + } + /** + * + * @type callback + * @brief 登出结果回调 + * @param reason 用户登出的原因,参看 LogoutReason{@link #LogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #IRTCEngine#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + * @list 消息 + */ + + virtual void onLogout(LogoutReason reason) { + } + /** + * + * @type callback + * @brief 设置应用服务器参数的返回结果 + * @param error
+ * 设置结果
+ * - 返回 200,设置成功 + * - 返回其他,设置失败,详见 UserMessageSendResult{@link #UserMessageSendResult} + * @note 调用 setServerParams{@link #IRTCEngine#setServerParams} 后,会收到此回调。 + * @list 消息 + */ + + virtual void onServerParamsSetResult(int error) { + (void)error; + } + /** + * + * @type callback + * @brief 查询对端或本端用户登录状态的返回结果 + * @param peer_user_id
+ * 需要查询的用户 ID + * @param status
+ * 查询的用户登录状态
+ * 详见 UserOnlineStatus{@link #UserOnlineStatus}. + * @note 必须先调用 getPeerOnlineStatus{@link #IRTCEngine#getPeerOnlineStatus},才能收到此回调。 + * @list 消息 + */ + + virtual void onGetPeerOnlineStatus(const char* peer_user_id, int status) { + (void)peer_user_id; + (void)status; + } + /** + * + * @type callback + * @brief > 该接口将于 3.64 版本废弃,请使用 onUserMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageReceivedOutsideRoom-2} 代替。 + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 发来的文本消息时,会收到此回调。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + + virtual void onUserMessageReceivedOutsideRoom(const char* uid, const char* message) { + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserBinaryMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserBinaryMessageReceivedOutsideRoom-2} 代替。 + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发来的二进制消息时,会收到此回调 + * @param uid 消息发送者 ID。 + * @param size 收到的二进制消息长度。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceivedOutsideRoom(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + /** + * + * @type callback + * @brief 给房间外指定的用户发送消息的结果回调。
+ * 当调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 或 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发送消息后,会收到此回调。 + * @param msgid 本条消息的 ID。
+ * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @list 消息 + */ + + virtual void onUserMessageSendResultOutsideRoom(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + /** + * + * @type callback + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 发来的文本消息时,会收到此回调。 + * @param msgid 收到的文本消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息的内容。 + * @list 消息 + */ + + virtual void onUserMessageReceivedOutsideRoom(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 当收到来自房间外用户通过 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发送的二进制消息时,触发此回调。 + * @param msgid 本条消息的 ID。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @param size 二进制消息的长度,单位为字节。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceivedOutsideRoom(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } + /** + * + * @type callback + * @brief 给应用服务器发送消息的回调。 + * @param msgid 本条消息的 ID。
+ * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @param msg 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。消息不超过 64 KB。 + * @note 本回调为异步回调。当调用 sendServerMessage{@link #IRTCEngine#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTCEngine#sendServerBinaryMessage} 接口发送消息后,会收到此回调。 + * @list 消息 + */ + + virtual void onServerMessageSendResult(int64_t msgid, int error, const bytertc::ServerACKMsg& msg) { + (void)msgid; + (void)error; + (void)msg; + } + /** + * + * @type callback + * @brief 收到通过调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 发送带有 SEI 消息的视频帧时,收到此回调。 + * @param stream_id 收到 SEI 消息的视频流 ID + * @param stream_info 包含 SEI 发送者的用户名,所在的房间名和媒体流, 参看 StreamInfo{@link #StreamInfo} + * @param message 收到的 SEI 消息内容 + * @param length 收到的 SEI 消息长度 + * @list 网络管理 + */ + + virtual void onSEIMessageReceived(const char* stream_id, const StreamInfo& stream_info, const uint8_t* message, int length){ + (void)stream_id; + (void)stream_info; + (void)message; + (void)length; + } + /** + * + * @type callback + * @brief 黑帧视频流发布状态回调。
+ * 在语音通话场景下,本地用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 通过黑帧视频流发送 SEI 数据时,流的发送状态会通过该回调通知远端用户。
+ * 你可以通过此回调判断携带 SEI 数据的视频帧为黑帧,从而不对该视频帧进行渲染。 + * @param stream_id 收到 SEI 消息的视频流 ID + * @param stream_info 包含 SEI 发送者的用户名,所在的房间名和媒体流, 参看 StreamInfo{@link #StreamInfo} + * @param type 黑帧视频流状态,参看 SEIStreamEventType{@link #SEIStreamEventType} + * @list 消息 + */ + + virtual void onSEIStreamUpdate(const char* stream_id, const StreamInfo& stream_info, SEIStreamEventType type) { + (void)stream_id; + (void)stream_info; + (void)type; + } + + /** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 音乐场景检测结果回调。
+ * 调用 enableAudioAEDReport{@link #IRTCEngine#enableAudioAEDReport} 后,根据设置的interval值,本地会周期性地收到此回调
+ * @param state 音乐场景检测结果,参看 AudioAEDType{@link #AudioAEDType}。 + * @list 音频管理 + */ + + virtual void onAudioAEDStateUpdate(const AudioAEDType state) { + (void)state; + } + + /** + * + * @type callback + * @brief 远端用户进房后,本地调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport},根据设置的 interval 值,本地会周期性地收到此回调,了解订阅的远端用户的瞬时音频信息。
+ * 远端用户的音频包括使用 RTC SDK 内部机制/自定义机制采集的麦克风音频和屏幕音频。 + * @param audio_properties_infos 远端音频信息,其中包含音频流属性、房间 ID、用户 ID ,详见 RemoteAudioPropertiesInfo{@link #RemoteAudioPropertiesInfo}。 + * @param audio_properties_info_number 数组长度 + * @param total_remote_volume 所有订阅的远端流混音后的音量,范围是 [0,255]。
+ * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @list 音频管理 + */ + + virtual void onRemoteAudioPropertiesReport(const RemoteAudioPropertiesInfo* audio_properties_infos, int audio_properties_info_number, int total_remote_volume) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + (void)total_remote_volume; + } + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport} 后,根据设置的 interval 值,你会周期性地收到此回调,了解本地音频的瞬时相关信息。
+ * 本地音频包括使用 RTC SDK 内部机制采集的麦克风音频,屏幕音频和本地混音音频信息。 + * @param audio_properties_infos 本地音频信息,详见 LocalAudioPropertiesInfo{@link #LocalAudioPropertiesInfo}。本地音量可通过 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 设置。 + * @param audio_properties_info_number 数组长度 + * @list 音频管理 + */ + + virtual void onLocalAudioPropertiesReport(const LocalAudioPropertiesInfo * audio_properties_infos, int audio_properties_info_number) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief 音量调节前的音量大小 + * @list Audio Management + */ + + virtual void onRemoteAudioPropertiesReportEx(const RemoteAudioPropertiesInfo* audio_properties_infos, int audio_properties_info_number) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + } + + /** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 人声检测结果回调。
+ * 调用 enableAudioVADReport{@link #IRTCEngine#enableAudioVADReport} 后,根据设置的interval值,本地会周期性地收到此回调
+ * @param state 人声检测结果,参看 AudioVADType{@link #AudioVADType}。 + * @list 音频管理 + */ + + virtual void onAudioVADStateUpdate(AudioVADType state) { + (void)state; + } + /** + * + * @type callback + * @brief 回调音频设备测试时的播放音量 + * @param volume 音频设备测试播放音量。取值范围:[0,255] + * @note 调用 startAudioPlaybackDeviceTest{@link #IAudioDeviceManager#startAudioPlaybackDeviceTest} 或 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest},开始播放音频文件或录音时,将开启该回调。本回调为周期性回调,回调周期由上述接口的 `interval` 参数指定。 + * @list 音频管理 + */ + + virtual void onAudioPlaybackDeviceTestVolume(int volume) { + (void)volume; + } + /** + * + * @hidden(Android,iOS) + * @type callback + * @brief 音频设备音量改变回调。当通过系统设置,改变音频设备音量或静音状态时,触发本回调。本回调无需手动开启。 + * @param device_type 设备类型,包括麦克风和扬声器,参阅 RTCAudioDeviceType{@link #RTCAudioDeviceType}。 + * @param volume 音量值,[0, 255]。当 volume 变为 0 时,muted 会变为 True。注意:在 Windows 端,当麦克风 volume 变为 0 时,muted 值不变。 + * @param muted 是否禁音状态。扬声器被设置为禁音时,muted 为 True,但 volume 保持不变。 + * @list 音频管理 + */ + + virtual void onAudioDeviceVolumeChanged(bytertc::RTCAudioDeviceType device_type, int volume, bool muted) { + (void)device_type; + (void)volume; + (void)muted; + } + /** + * + * @type callback + * @brief 本地音频流的状态发生改变时,收到此回调。 + * @param audio_source 本地音频流对象,详见:IAudioSource{@link #IAudioSource} + * @param state 本地音频流的状态,详见: LocalAudioStreamState{@link #LocalAudioStreamState} + * @param error 本地音频状态改变时的错误码,详见:LocalAudioStreamError{@link #LocalAudioStreamError} + * @list 音频管理 + */ + + virtual void onLocalAudioStateChanged(IAudioSource* audio_source, LocalAudioStreamState state, LocalAudioStreamError error) { + (void)audio_source; + (void)state; + (void)error; + } + /** + * + * @type callback + * @brief 房间内的用户调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集时,房间内其他用户会收到此回调。 + * @param stream_id 开启音频采集的远端用户发布的流 ID + * @param stream_info 开启音频采集的远端流信息,详见 StreamInfo{@link #StreamInfo} + * @list 音频管理 + */ + + virtual void onUserStartAudioCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 房间内的用户调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 关闭音频采集时,房间内其他用户会收到此回调。 + * @param stream_id 关闭音频采集的远端用户发布的流 ID + * @param stream_info 关闭音频采集的远端流信息,详见 StreamInfo{@link #StreamInfo} + * @list 音频管理 + */ + + virtual void onUserStopAudioCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport} 后,根据设置的 `config.interval`,你会周期性地收到此回调,获取房间内的最活跃用户信息。 + * @param room_id 房间 ID + * @param uid 最活跃用户(ActiveSpeaker)的用户 ID + * @list 音频管理 + */ + + virtual void onActiveSpeaker(const char* room_id, const char* uid) { + (void)room_id; + (void)uid; + } + /** + * + * @type callback + * @brief 音频流同步信息回调。可以通过此回调,在远端用户调用 sendStreamSyncInfo{@link #IRTCEngine#sendStreamSyncInfo} 发送音频流同步消息后,收到远端发送的音频流同步信息。 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,详见 StreamInfo{@link #StreamInfo}。 + * @param stream_type 媒体流类型,详见 SyncInfoStreamType{@link #SyncInfoStreamType} 。 + * @param data 消息内容。 + * @param length 消息长度。 + * @list 音频管理 + */ + + virtual void onStreamSyncInfoReceived(const char* stream_id, const StreamInfo& stream_info, SyncInfoStreamType stream_type, + const uint8_t* data, int32_t length) { + (void)stream_id; + (void)stream_info; + (void)stream_type; + (void)data; + (void)length; + } + /** + * + * @type callback + * @brief 通话前网络探测结果。
+ * 成功调用 startNetworkDetection{@link #IRTCEngine#startNetworkDetection} 接口开始探测后,会在 3s 内首次收到该回调,之后每 2s 收到一次该回调。 + * @param type 探测网络类型为上行/下行 + * @param quality 探测网络的质量,参看 NetworkQuality{@link #NetworkQuality}。 + * @param rtt 探测网络的 RTT,单位:ms + * @param lost_rate 探测网络的丢包率 + * @param bitrate 探测网络的带宽,单位:kbps + * @param jitter 探测网络的抖动,单位:ms + * @list 网络管理 + */ + + virtual void onNetworkDetectionResult(NetworkDetectionLinkType type, NetworkQuality quality, int rtt, double lost_rate, + int bitrate, int jitter){ + (void)type; + (void)quality; + (void)rtt; + (void)lost_rate; + (void)bitrate; + (void)jitter; + } + /** + * + * @type callback + * @brief 通话前网络探测结束
+ * 以下情况将停止探测并收到一次本回调:
+ * 1. 当调用 stopNetworkDetection{@link #IRTCEngine#stopNetworkDetection} 接口停止探测后,会收到一次该回调;
+ * 2. 当收到远端/本端音频首帧后,停止探测;
+ * 3. 当探测超过 3 分钟后,停止探测;
+ * 4. 当探测链路断开一定时间之后,停止探测。 + * @param reason
+ * 停止探测的原因类型,参考 NetworkDetectionStopReason{@link #NetworkDetectionStopReason} + * @list 网络管理 + */ + + virtual void onNetworkDetectionStopped(NetworkDetectionStopReason reason){ + (void)reason; + } + /** + * + * @type callback + * @brief 房间内的可见用户调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部视频采集时,房间内其他用户会收到此回调。 + * @param stream_id 视频流 ID + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo}。 + * @list 视频管理 + */ + + virtual void onUserStartVideoCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 房间内的可见用户调用 stopVideoCapture{@link #IRTCEngine#stopVideoCapture} 关闭内部视频采集时,房间内其他用户会收到此回调。
+ * 若发布视频数据前未开启采集,房间内所有可见用户会收到此回调。 + * @param stream_id 视频流 ID + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo}。 + * @list 视频管理 + */ + + virtual void onUserStopVideoCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 本地视频大小或旋转信息发生改变时,收到此回调。 + * @param video_source 预留参数。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list 音视频传输 + */ + + virtual void onLocalVideoSizeChanged(IVideoSource* video_source, const VideoFrameInfo& info) { + (void)video_source; + (void)info; + } + /** + * + * @type callback + * @brief 远端视频大小或旋转信息发生改变时,房间内订阅此视频流的用户会收到此回调。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list 音视频传输 + */ + + virtual void onRemoteVideoSizeChanged(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief RTC SDK 在本地完成第一帧视频帧或屏幕视频帧采集时,收到此回调。 + * @param video_source 视频源对象。参看 IVideoSource{@link #IVideoSource}。 + * @param info 视频信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note 对于采集到的本地视频帧,你可以调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 或 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 在本地渲染。 + * @list 音视频传输 + */ + + virtual void onFirstLocalVideoFrameCaptured(IVideoSource* video_source, const VideoFrameInfo& info) { + (void)video_source; + (void)info; + } + /** + * + * @type callback + * @brief 订阅端接收并解码远端音频流首帧时,收到此回调。包含以下情况:
+ * 1. 发布端发布音频,包含首次发布和取消后再次发布。取消发布还包括发布端主动退房后或掉线。
+ * 2. 发布端关闭音频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
+ * 3. 发布端发布音频后,订阅端取消订阅音频后,又再次订阅音频。 + * @param stream_id 远端音频流 ID。 + * @param stream_info 远端音频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @note + * - 用户刚收到房间内每一路音频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源、自动订阅和手动订阅的音频流,都符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteAudioFrame(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 用户订阅来自远端的音频流状态发生改变时,会收到此回调,了解当前的远端音频流状态。 + * @param stream_id 远端音频流 ID。 + * @param stream_info 远端音频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param state 远端音频流状态,参看 RemoteAudioState{@link #RemoteAudioState} + * @param reason 远端音频流状态改变的原因,参看 RemoteAudioStateChangeReason{@link #RemoteAudioStateChangeReason} + * @list 音视频传输 + */ + + virtual void onRemoteAudioStateChanged( + const char* stream_id, const StreamInfo& stream_info, RemoteAudioState state, RemoteAudioStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + /** + * + * @type callback + * @brief 本地视频流的状态发生改变时,收到该事件。 + * @param video_source 本地视频流对象。参看 IVideoSource{@link #IVideoSource}。 + * @param state 本地视频流状态,参看 LocalVideoStreamState{@link #LocalVideoStreamState} + * @param error 本地视频状态改变时的错误码,参看 LocalVideoStreamError{@link #LocalVideoStreamError} + * @list 视频管理 + */ + + virtual void onLocalVideoStateChanged(IVideoSource* video_source, LocalVideoStreamState state, LocalVideoStreamError error) { + (void)video_source; + (void)state; + (void)error; + } + /** + * + * @type callback + * @brief 远端视频流的状态发生改变时,房间内订阅此流的用户会收到该事件。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息,包括房间 ID、用户 ID、流属性,等。参看 StreamInfo{@link #StreamInfo}。 + * @param state 远端视频流状态,参看 RemoteVideoState{@link #RemoteVideoState}。 + * @param reason 远端视频流状态改变的原因,参看 RemoteVideoStateChangeReason{@link #RemoteVideoStateChangeReason}。 + * @note 本回调仅适用于主流,不适用于屏幕流。 + * @list 音视频传输 + */ + + virtual void onRemoteVideoStateChanged( + const char* stream_id, const StreamInfo& stream_info, RemoteVideoState state, RemoteVideoStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type callback + * @brief 远端视频流的超分状态发生改变时,房间内订阅此流的用户会收到该回调。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息,包括房间 ID、用户 ID、流属性,等。参看 StreamInfo{@link #StreamInfo}。 + * @param mode 超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + * @param reason 超分模式改变原因,参看 VideoSuperResolutionModeChangedReason{@link #VideoSuperResolutionModeChangedReason}。 + * @list 视频处理 + */ + + virtual void onRemoteVideoSuperResolutionModeChanged( + const char* stream_id, const StreamInfo& stream_info, VideoSuperResolutionMode mode, VideoSuperResolutionModeChangedReason reason) { + (void)stream_id; + (void)stream_info; + (void)mode; + (void)reason; + } + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type callback + * @brief 降噪模式状态变更回调。当降噪模式的运行状态发生改变,SDK 会触发该回调,提示用户降噪模式改变后的运行状态及状态发生改变的原因。 + * @param mode 视频降噪模式,参看 VideoDenoiseMode{@link #VideoDenoiseMode}。 + * @param reason 视频降噪模式改变的原因,参看 VideoDenoiseModeChangedReason{@link #VideoDenoiseModeChangedReason}。 + * @list 视频处理 + */ + + virtual void onVideoDenoiseModeChanged(VideoDenoiseMode mode, VideoDenoiseModeChangedReason reason) { + (void)mode; + (void)reason; + } + /** + * + * @type callback + * @brief 本地音频首帧发送状态发生改变时,收到此回调。 + * @param stream_id 音频发布用户所在的房间 ID + * @param stream_info 音频流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 本地用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧发送状态,详见 FirstFrameSendState{@link #FirstFrameSendState} + * @list 音视频传输 + */ + + virtual void onAudioFrameSendStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFrameSendState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 本地视频首帧发送状态发生改变时,收到此回调。 + * @param stream_id 流 ID。 + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 本地用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧发送状态,详见 FirstFrameSendState{@link #FirstFrameSendState} + * @list 音视频传输 + */ + + virtual void onVideoFrameSendStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFrameSendState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief SDK 内部渲染成功远端视频流首帧后,收到此回调。包含以下情况:
+ * 1. 发布端首次发布视频
+ * 2. 在 1 条件下,发布端取消发布视频后,再次发布视频
+ * 3. 在 1 条件下,发布端关闭视频采集后,再次打开采集(或使用外部源时,停止推流后再次推流)
+ * 4. 在 1 条件下,订阅端取消订阅视频后,再次订阅视频(调用接口包括 subscribeAllStreamsVideo{@link #IRTCRoom#subscribeallstreamsVideo},pauseAllSubscribedStreamVideo{@link #IRTCRoom#pauseAllSubscribedStreamVideo}/resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}) + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note 仅在采用内部渲染时,符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteVideoFrameRendered(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief 订阅端接收并解码远端视频流首帧时,收到此回调。包含以下情况:
+ * 1. 发布端发布视频,包含首次发布和取消后再次发布。取消发布还包括发布端主动退房后或掉线。
+ * 2. 发布端关闭视频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
+ * 3. 发布端发布视频后,订阅端取消订阅视频后,又再次订阅视频。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note + * - 用户刚收到房间内订阅的每一路视频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源,自动订阅和手动订阅的视频流,都符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteVideoFrameDecoded(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief 音频首帧播放状态发生改变时,收到此回调。 + * @param stream_id 音频首帧播放状态发生改变的流 ID + * @param stream_info 音频首帧播放状态发生改变的流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 远端用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧播放状态,详见 FirstFramePlayState{@link #FirstFramePlayState} + * @list 音视频传输 + */ + + virtual void onAudioFramePlayStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFramePlayState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 远端视频流的首帧播放状态改变时,收到此回调。 + * @param stream_id 视频首帧播放状态发生改变的流 ID + * @param stream_info 视频首帧播放状态发生改变的流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 远端用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧播放状态,详见 FirstFramePlayState{@link #FirstFramePlayState} + * @list 音视频传输 + */ + + virtual void onVideoFramePlayStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFramePlayState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 发布音频流时,采集到第一帧音频帧,收到该回调。 + * @param audio_source 音频源,详见 IAudioSource{@link #IAudioSource}。 + * @note 如果发布音频流时,未开启本地音频采集,SDK 会推送静音帧,也会收到此回调。 + * @list 音视频传输 + */ + + virtual void onFirstLocalAudioFrame(IAudioSource* audio_source) { + (void)audio_source; + } + /** + * + * @deprecated since 3.60, use onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} instead. + * @type callback + * @hidden(Linux) + * @brief WTN 流发布结果回调。
+ * 调用 startPushMixedStream 接口发布 WTN 流后,启动结果通过此回调方法通知用户。 + * @param room_id WTN 流的发布房间的 ID + * @param public_streamid WTN 流 ID + * @param error_code WTN 流发布结果状态码。详见 PublicStreamErrorCode{@link #PublicStreamErrorCode} + * @list 音视频传输 + * @order 24 + */ + + virtual void onPushPublicStreamResult(const char* room_id, const char* public_streamid, PublicStreamErrorCode error_code) { + (void)room_id; + (void)public_streamid; + (void)error_code; + } + + /** + * + * @type callback + * @brief 调用 startCloudProxy{@link #IRTCEngine#startCloudProxy} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + * @list 通话加密 + */ + + virtual void onCloudProxyConnected(int interval) { + (void)interval; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 关于音视频回路测试结果的回调。 + * @param result 测试结果,参看 EchoTestResult{@link #EchoTestResult} + * @note 该回调触发的时机包括:
+ * - 检测过程中采集设备发生错误时; + * - 检测成功后; + * - 非设备原因导致检测过程中未接收到音/视频回放,停止检测后。 + * @list 网络管理 + */ + + virtual void onEchoTestResult(EchoTestResult result) { + (void)result; + }; + /** + * + * @hidden for internal use only + * @type callback + * @brief 音频 dump 状态改变回调 + * @param status 音频 dump 状态,参见 AudioDumpStatus{@link #AudioDumpStatus} + * @note 本回调用于内部排查音质相关异常问题,开发者无需关注。 + * @list Network Processing + */ + + virtual void onAudioDumpStateChanged(AudioDumpStatus status) { + (void)status; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 首次调用 getNetworkTimeInfo{@link #IRTCEngine#getNetworkTimeInfo} 后,SDK 内部启动网络时间同步,同步完成时会触发此回调。 + * @list 网络管理 + */ + + virtual void onNetworkTimeSynchronized() { + } + /** + * + * @hidden internal use only + * @type callback + * @brief license 过期提醒。在剩余天数低于 30 天时,收到此回调。 + * @param days license 剩余有效天数 + * @list Network Processing + */ + + virtual void onLicenseWillExpire(int days) { + (void)days; + } + /** + * + * @type callback + * @brief AIGC(AI 音视频互动方案)使用 License 计费的场景下,当 License 配额用尽时,会收到该回调。收到该回调时,AIGC 服务会中止,请及时续费,并且建议离开房间、销毁 SDK。 + * @param message 回调消息 + * @list 高级功能 + */ + + virtual void onLicenseQuotaExceeded(const char* message) { + (void)message; + } + /** + * + * @hidden + * @type callback + * @brief 外部采集时,调用 setOriginalScreenVideoInfo设置屏幕或窗口大小改变前的分辨率后,若屏幕采集模式为智能模式,你将收到此回调,根据 RTC 智能决策合适的帧率和分辨率积(宽*高)重新采集。 + * @param frame_update_info RTC 智能决策后合适的帧率和分辨率积(宽*高)。参看 FrameUpdateInfo{@link #FrameUpdateInfo}。 + * @list 屏幕共享 + */ + + virtual void onExternalScreenFrameUpdate(FrameUpdateInfo frame_update_info) { + (void)frame_update_info; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 通话前回声检测结果回调。 + * @param hardware_echo_detection_result 参见 HardwareEchoDetectionResult{@link #HardwareEchoDetectionResult} + * @note + * - 通话前调用 startHardwareEchoDetection{@link #IRTCEngine#startHardwareEchoDetection} 后,将触发本回调返回检测结果。 + * - 建议在收到检测结果后,调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * - 如果 SDK 在通话中检测到回声,将通过 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调 `kMediaDeviceWarningDetectLeakEcho`。 + * @list 音频管理 + */ + + virtual void onHardwareEchoDetectionResult(HardwareEchoDetectionResult hardware_echo_detection_result) { + (void)hardware_echo_detection_result; + } + /** + * + * @type callback + * @brief 本地代理状态发生改变回调。调用 setLocalProxy{@link #IRTCEngine#setLocalProxy} 设置本地代理后,SDK 会触发此回调,返回代理连接的状态。 + * @param local_proxy_type 本地代理类型。参看 LocalProxyType{@link #LocalProxyType}。 + * @param local_proxy_state 本地代理状态。参看 LocalProxyState{@link #LocalProxyState}。 + * @param local_proxy_error 本地代理错误。参看 LocalProxyError{@link #LocalProxyError}。 + * @list 通话加密 + */ + + virtual void onLocalProxyStateChanged(LocalProxyType local_proxy_type, LocalProxyState local_proxy_state, LocalProxyError local_proxy_error) { + (void)local_proxy_type; + (void)local_proxy_state; + (void)local_proxy_error; + } + /** + * + * @hidden internal use only + * @type callback + * @brief 当特效设置失败时,收到此回调。 + * @param error 特效错误类型。参看 EffectErrorType{@link #EffectErrorType}。 + * @param msg 错误信息。 + * @list Encryption + */ + + virtual void onEffectError(EffectErrorType error, const char* msg) { + (void)error; + (void)msg; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief SDK 远端视频渲染发生错误时收到此回调 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param error 渲染错误类型。参看 RenderError{@link #RenderError}。 + * @param message 错误信息。 + * @note 本回调暂时仅内部使用,开发者无需关注。 + * @list 视频管理 + */ + + virtual void onRemoteRenderError(const char* stream_id, const StreamInfo& stream_info, RenderError error, const char* message) { + (void)stream_id; + (void)stream_info; + (void)error; + (void)message; + } + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该回调替代了 `onStreamMixingEvent` 和 `onPushPublicStreamResult` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此回调。 + * @type callback + * @brief 合流转推 CDN / WTN 流状态回调 + * @param info 任务详情,参看 MixedStreamTaskInfo{@link #MixedStreamTaskInfo}。 + * @param event 任务事件,参看 MixedStreamTaskEvent{@link #MixedStreamTaskEvent}。 + * @param error_code 任务错误码,参看 MixedStreamTaskErrorCode{@link #MixedStreamTaskErrorCode} + * @list CDN 推流 + */ + + virtual void onMixedStreamEvent(MixedStreamTaskInfo info, MixedStreamTaskEvent event, MixedStreamTaskErrorCode error_code) { + (void)info; + (void)event; + (void)error_code; + } + /** + * + * @valid since 3.60. + * @type callback + * @hidden(Linux) + * @brief 单流转推 CDN 状态回调 + * @param task_id 任务 ID + * @param event 任务状态, 参看 SingleStreamTaskEvent{@link #SingleStreamTaskEvent} + * @param error_code 错误码,参看 SingleStreamTaskErrorCode{@link #SingleStreamTaskErrorCode} + * @list CDN 推流 + */ + + virtual void onSingleStreamEvent(const char *task_id, SingleStreamTaskEvent event, SingleStreamTaskErrorCode error_code) { + (void)task_id; + (void)event; + (void)error_code; + } + /** + * + * @hidden internal use only + * @valid since 3.60. + * @type callback + * @brief 试验性接口回调 + * @param param 回调内容(JSON string) + * @list 引擎管理 + */ + + virtual void onExperimentalCallback(const char* param) { + (void)param; + } + + /** + * + * @valid since 3.60. + * @hidden(Linux) + * @type callback + * @brief 调用 takeLocalSnapshotToFile{@link #IRTCEngine#takeLocalSnapshotToFile} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param video_source 被截图的视频流,参看 IVideoSource{@link #IVideoSource}。 + * @param file_path 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param error_code 截图错误码。请参看 SnapshotErrorCode{@link #SnapshotErrorCode}。 + * @param task_id 截图任务的编号,和 takeLocalSnapshotToFile{@link #IRTCEngine#takeLocalSnapshotToFile} 的返回值一致。 + * @list 高级功能 + */ + + virtual void onLocalSnapshotTakenToFile(IVideoSource* video_source, const char* file_path, int width, int height, SnapshotErrorCode error_code, long task_id) { + (void)video_source; + (void)file_path; + (void)width; + (void)height; + (void)error_code; + (void)task_id; + } + + /** + * + * @type callback + * @hidden(Linux) + * @valid since 3.60. + * @brief 调用 takeRemoteSnapshotToFile{@link #IRTCEngine#takeRemoteSnapshotToFile} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param stream_id 被截图的视频流 ID。 + * @param stream_info 被截图的视频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param file_path 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param error_code 截图错误码。请参看 SnapshotErrorCode{@link #SnapshotErrorCode}。 + * @param task_id 截图任务的编号,和 takeRemoteSnapshotToFile{@link #IRTCEngine#takeRemoteSnapshotToFile} 的返回值一致。 + * @list 高级功能 + */ + + virtual void onRemoteSnapshotTakenToFile(const char* stream_id, const StreamInfo& stream_info, const char* file_path, int width, int height, SnapshotErrorCode error_code, long task_id) { + (void)stream_id; + (void)stream_info; + (void)file_path; + (void)width; + (void)height; + (void)error_code; + (void)task_id; + } + +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h new file mode 100644 index 0000000..3d78b82 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h @@ -0,0 +1,231 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_engine.h" +#include "rtc/bytertc_defines.h" +#include "rtc/bytertc_video_defines_ex.h" +#include "bytertc_engine_event_handler.h" + +namespace bytertc { + +/** + * + * @hidden + */ +class IRTCRoomEx; +/** + * + * @hidden + */ +class IVideoSource; +/** + * + * @hidden + */ +class IPublisher; +/** + * + * @type api + * @brief IRTCEngineEx class + */ +class IRTCEngineEx : public IRTCEngine { +public: + /** + * + * @type api + * @brief 创建 IRTCRoomEx{@link #IRTCRoomEx} 实例。
+ * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTCRoomEx{@link #IRTCRoomEx} 房间实例。 + * @note 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + */ + virtual IRTCRoomEx* createRTCRoomEx(const char* room_id) = 0; + /** + * + * @type api + * @brief 设置视频源的相关配置。 + * @param stream_index 源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 参看 VideoSourceConfig{@link #VideoSourceConfig}。 + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setVideoSource(StreamIndex stream_index, const VideoSourceConfig& config) = 0; + /** + * + * @type api + * @brief 推送外部视频帧。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param frame 设置视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 支持格式:I420, NV12, RGBA, BGRA, ARGB
+ * + 该函数运行在用户调用线程内
+ * + 推送外部视频帧前,必须调用 setVideoSource{@link #IRTCEngineEx#setVideoSource} 开启外部视频源采集。 + */ + virtual int pushExternalVideoFrame(StreamIndex stream_index, const VideoFrameData& frame) = 0; + /** + * + * @type api + * @brief 设置流的优先级。
+ * 在网络条件有限的情况下,优先保障高优先级视频流的清晰度和流畅度,优先保障高优先级流的音频流畅度和音质。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param priority 参看 StreamPriority{@link #StreamPriority}。 + */ + virtual int setLocalStreamPriority(StreamIndex stream_index, StreamPriority priority) = 0; + /** + * + * @type api + * @brief 立即开启内部视频采集。默认为关闭状态。
+ * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
+ * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
+ * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 onUserStartVideoCapture{@link #IRTCEngineEventHandler#onUserStartVideoCapture} 的回调。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param device_id 设备 ID + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 stopVideoCapture{@link #IRTCEngineEx#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。
+ * + 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。
+ * + 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + */ + virtual int startVideoCapture(StreamIndex stream_index, const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 立即关闭内部视频采集。默认为关闭状态。
+ * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
+ * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
+ * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStopVideoCapture{@link #IRTCEngineEventHandler#onUserStopVideoCapture} 的回调。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 可以开启内部视频采集。
+ * + 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + */ + virtual int stopVideoCapture(StreamIndex stream_index) = 0; + /** + * + * @type api + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
+ * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param video_capture_config 视频采集参数。参看: VideoCaptureConfig{@link #VideoCaptureConfig}。 + * @return + * + 0: 成功;
+ * + < 0: 失败; + * @note + * + 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #IRTCEngineEx#startVideoCapture} 前调用本接口。
+ * + 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + */ + virtual int setVideoCaptureConfig(StreamIndex stream_index, const VideoCaptureConfig& video_capture_config) = 0; + + /** + * + * @type api + * @brief 设置音频源的整体音量。 + * @param stream_index 音频源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
+ * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
+ * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioSourceVolume(StreamIndex stream_index, int volume) = 0; + /** + * + * @type api + * @brief 设置音频源的内容。单个音频源的内容可以包含一个或多个原始音频来源。 + * @param stream_index 音频源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 内容构成。参看 AudioContentTypeConfig{@link #AudioContentTypeConfig}。 + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioContentType(StreamIndex stream_index, const AudioContentTypeConfig& config) = 0; + /** + * + * @type api + * @brief 设置音频流的编码配置。 + * @param stream_index 音频流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 编码设置。参看 AudioEncodeConfig{@link #AudioEncodeConfig}。 + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioEncodeConfig(StreamIndex stream_index, const AudioEncodeConfig& config) = 0; + + + /** + * + * @type api + * @brief 设置多路流编码配置,在开启simulcast功能下可同时设置4路分辨率的流 + * @param stream_index 视频频流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param solutions 编码设置。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * @param solution_num 需要传入的solutions数组大小。 + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setVideoEncoderConfig(StreamIndex stream_index, const VideoEncoderConfig* solutions, + int solution_num) = 0; + + /** + * + * @type api + * @brief 创建 IRTCEngineEx 实例。
+ * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
+ * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} 。 + * @return IRTCEngineEx:创建成功。返回一个可用的 IRTCEngineEx{@link #IRTCEngineEx} 实例 + */ + static BYTERTC_STATIC_API IRTCEngineEx* createRTCEngineEx(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + + /** +* +* @type api +* @brief 创建 IRTCEngineEx 实例。
+* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
+* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新的引擎实例。 +* @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} +* @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} 。 +* @return IRTCEngineEx:创建成功。返回一个可用的 IRTCEngineEx{@link #IRTCEngineEx} 实例 +*/ + static BYTERTC_STATIC_API IRTCEngineEx* createRTCEngineExMulti(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + + /** + * + * @type api + * @brief 销毁由 IRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 IRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 IRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 IRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
+ * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ + static BYTERTC_STATIC_API void destroyRTCEngineEx(); + + /** + * + * @hidden internal use only + * @type apx + * @brief 销毁由 createRTCEngineExMulti{@link #IRTCEngine#createRTCEngineExMulti} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngineEx{@link #IRTCEngineEx} 实例相关的业务场景全部结束后,才调此方法 + * - 该方法在调用之后,会销毁所有和此 IRTCEngineEx{@link #IRTCEngineEx} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + static BYTERTC_STATIC_API void destroyRTCEngineExMulti(IRTCEngineEx* instance_multi); +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h new file mode 100644 index 0000000..95c9a6b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2024 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_video_effect_interface.h" +#include "rtc/bytertc_defines.h" +#include "bytertc_room_event_handler.h" +#include "rtc/bytertc_range_audio_interface.h" +#include "rtc/bytertc_spatial_audio_interface.h" +#include "rtc/bytertc_panoramic_video_interface.h" +namespace bytertc { +/** + * + * @type api + * @brief 游戏房间接口 + */ + +class IGameRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IGameRoom() { + } + /** + * + * @type api + * @brief 退出并销毁调用 createGameRoom{@link #IRTCEngine#createGameRoom} 所创建的游戏房间实例。 + * @list 房间管理 + */ + + virtual void destroy() = 0; + /** + * + * @type api + * @brief 加入游戏房间。
+ * 调用 createGameRoom{@link #IRTCEngine#createGameRoom} 创建房间实例后,调用此方法加入房间,同房间内其他用户进行音频通话。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
+ * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
+ * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 回调通知。 + * - -1:room_id/user_info.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #IGameRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 onConnectionStateChanged{@link #IRTCEngineEventHandler#onConnectionStateChanged} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。 + * @list 房间管理 + */ + + virtual int joinRoom(const char* token, const UserInfo& user_info) = 0; + /** + * + * @type api + * @brief 离开游戏房间。
+ * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,远端用户收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。 + * - < 0: 调用失败,参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。你必须在收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调后,再销毁房间或引擎,或调用 joinRoom{@link #IGameRoom#joinRoom} 再次加入房间。 + * @list 房间管理 + */ + + virtual int leaveRoom() = 0; + /** + * + * @type api + * @brief 更新游戏房间 Token。
+ * 收到 onTokenWillExpire{@link #IRTCRoomEventHandler#onTokenWillExpire},onPublishPrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onPublishPrivilegeTokenWillExpire},或 onSubscribePrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onSubscribePrivilegeTokenWillExpire} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
+ * 如果 Token 无效,你会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged},错误码是 `-1010`。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 请勿同时调用 updateToken{@link #IGameRoom#updateToken} 和 joinRoom{@link #IGameRoom#joinRoom} 方法更新 Token。若因 Token 过期或无效导致加入房间失败或已被移出房间,你应该在获取新的有效 Token 后调用 joinRoom{@link #IGameRoom#joinRoom} 重新加入房间。 + * @list 房间管理 + */ + + virtual int updateToken(const char* token) = 0; + /** + * + * @type api + * @brief 通过设置 IGameRoom{@link #IGameRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandler{@link #IRTCRoomEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + virtual int setRTCRoomEventHandler(IRTCRoomEventHandler* room_event_handler) = 0; + /** + * + * @type api + * @brief 获取游戏房间范围语音接口实例。 + * @return 方法调用结果:
+ * - IRangeAudio:成功,返回一个 IRangeAudio{@link #IRangeAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + + virtual IRangeAudio* getRangeAudio() = 0; + /** + * + * @type api + * @brief 开始讲话或者停止讲话时调用,调用该接口启动或停止音频采集。同房间其他用户会收到 + * 回调 OnAudioDeviceStateChanged{@link #IRTCEngineEventHandler#OnAudioDeviceStateChanged} + * @param [in] enable + * true 表示开启采集 + * false 表示关闭采集,默认设置 + * @return + * 0: 表示参数检查通过,不代表打开麦克风会成功,比如房间不存在 + * -2: 传入的room_id为空导致失败 + * @note 不可与 EnableAudioSend{@link #IGameRoom#EnableAudioSend} 同时调用。 + * @list 音频管理 + */ + + virtual int enableMicrophone(bool enable) = 0; + /** + * + * @type api + * @brief 开启或关闭扬声器。 + * @param enable 是否开启扬声器:
+ * - true:开启扬声器,订阅所有远端用户的音频流。 + * - false:默认设置。关闭扬声器,取消订阅所有远端用户的音频流。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @list 音频管理 + */ + + virtual int enableSpeakerphone(bool enable) = 0; + /** + * + * @type api + * @brief 开始或停止发送音频流。调用此接口不影响音频采集。同房间其他用户会收到相应的回调。 + * @param enable 是否发送音频流:
+ * - true:发送音频流。 + * - false:默认设置。停止发送音频流(不会关闭麦克风)。 + * @return + * 0: 表示参数检查通过,不代表打开麦克风会成功,比如房间不存在 + * -2: 传入的room_id为空导致失败 + * @note 不可与 EnableMicrophone{@link #IGameRoom#EnableMicrophone} 同时调用。 + * @list 音频管理 + */ + + virtual int enableAudioSend(bool enable) = 0; + /** + * + * @type api + * @brief 是否接收某个特定用户的音频流。关闭声音接收不会影响扬声器或其他音频输出设备的状态。 + * @param user_id 用户 ID,最大长度为128字节的非空字符串。支持的字符集范围为:
+ * 1. 26个大写字母 A ~ Z
+ * 2. 26个小写字母 a ~ z
+ * 3. 10个数字 0 ~ 9
+ * 4. 下划线"_", at符"@", 减号"-" + * @param enable 是否接收指定用户的音频流:
+ * - true:接收该用户的音频流。即允许该用户的音频数据被传递到本地设备并播放。 + * - false:默认设置,不接收该用户的音频流,即不播放该用户的声音。但不会关闭扬声器,扬声器仍可用于其他音频输出。 + * @return + * - 0:接口调用成功。 + * - -2:传入的用户 ID 为空字符串。 + * @list 音频管理 + */ + + virtual int enableAudioReceive(const char* user_id, bool enable) = 0; + /** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
+ * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
+ * - 该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setRemoteRoomAudioPlaybackVolume(int volume) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room.h new file mode 100644 index 0000000..eb7283a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room.h @@ -0,0 +1,649 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_video_effect_interface.h" +#include "rtc/bytertc_defines.h" +#include "bytertc_room_event_handler.h" +#include "bytertc_rts_room.h" +#include "rtc/bytertc_range_audio_interface.h" +#include "rtc/bytertc_spatial_audio_interface.h" +#include "rtc/bytertc_panoramic_video_interface.h" +namespace bytertc { +/** + * + * @type api + * @brief 房间接口 + */ + +class IRTCRoom : public IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTCRoom() { + } + /** + * + * @type api + * @brief 退出并销毁调用 createRTCRoom{@link #IRTCEngine#createRTCRoom} 所创建的 RTC 房间实例。 + * @list 房间管理 + */ + + virtual void destroy() = 0; + /** + * + * @type api + * @brief 设置用户可见性。未调用该接口前,本地用户默认对他人可见。
+ * 默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,最多 30 人可同时上麦。更多信息参看[用户和媒体流上限](https: + * @param enable 设置用户是否对房间内其他用户可见:
+ * - true: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - false: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * 设置用户可见性,会收到设置成功/失败回调 onUserVisibilityChanged{@link #IRTCRoomEventHandler#onUserVisibilityChanged}。(v3.54 新增) + * - 在加入房间前设置用户可见性,若设置的可见性与默认值不同,将在加入房间时触发本回调。 + * - 在加入房间后设置用户可见性,若可见性前后不同,会触发本回调。 + * - 断网重连后,若可见性发生改变,会触发本回调。 + * @note + * - 在加入房间前后,用户均可调用此方法设置用户可见性。 + * - 在房间内,调用此方法成功切换用户可见性后,房间内其他用户会收到相应的回调。 + * - 从可见换至不可见时,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave}。 + * - 从不可见切换至可见时,房间内其他用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + * - 若调用该方法将可见性设为 `false`,此时尝试发布流会收到 `kWarningCodePublishStreamForbidden` 警告。 + * @list 房间管理 + */ + + virtual int setUserVisibility(bool enable) = 0; + /** + * + * @type api + * @brief 通过设置 IRTCRoom{@link #IRTCRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandler{@link #IRTCRoomEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + virtual int setRTCRoomEventHandler(IRTCRoomEventHandler* room_event_handler) = 0; + /** + * + * @type api + * @brief 加入 RTC 房间。
+ * 调用 createRTCRoom{@link #IRTCEngine#createRTCRoom} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。
+ * > 用户(包括后端机器人)成功进入 RTC 房间后便开始计费。即使房间内只有 1 个用户,也会计算音频计费时长。具体计费说明,请参见[音视频通话计费](69871)。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
+ * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
+ * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @param user_visibility 用户可见性。建议在进房时将用户可见性都设置为 `false`,并在用户需要发送音视频流时再通过 setUserVisibility{@link #IRTCRoom#setUserVisibility} 设置为 `true`。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * @param config 房间参数配置,设置房间模式以及是否自动发布或订阅流。具体配置模式参看 RTCRoomConfig{@link #RTCRoomConfig}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + * - 本端收到本地流发布状态通知 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。 + * - 本端收到流订阅状态通知 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。 + * - 本端收到房间内已发布流的通知 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 回调通知。 + * - -1:room_id / user_info.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #IRTSRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 onConnectionStateChanged{@link #IRTCEngineEventHandler#onConnectionStateChanged} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。 + * @list 房间管理 + */ + + virtual int joinRoom(const char* token, const UserInfo& user_info, bool user_visibility, const RTCRoomConfig& config) = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @region 房间管理 + * @brief 发布/取消发布视频流。 + * @param publish 是否发布视频流。
+ * - `true`: 发布。 + * - `false`: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头视频流。 + * - 如果你需要发布麦克风采集到的音频流,调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。 + * - 调用此方法后,房间中的所有远端用户会收到 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调通知,订阅了视频流的远端用户会收到 onFirstRemoteVideoFrameDecoded{@link #IRTCEngineEventHandler#onFirstRemoteVideoFrameDecoded} 回调。 + * @list 音视频传输 + */ + + virtual int publishStreamVideo(bool publish) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @region 房间管理 + * @brief 发布/取消发布音频流。 + * @param publish 是否发布音频流。
+ * - `true`: 发布。 + * - `false`: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布音频流。 + * - 如果你需要发布摄像头采集到的视频流,调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。 + * - 调用此方法后,房间中的所有远端用户会收到 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调通知,其中成功收到了音频流的远端用户会收到 onFirstRemoteAudioFrame{@link #IRTCEngineEventHandler#onFirstRemoteAudioFrame} 回调。 + * @list 音视频传输 + * @order 0 + */ + + virtual int publishStreamAudio(bool publish) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream`、`unsubscribeStream`、`subscribeScreen` 和 `unsubscribeScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端视频流。 + * @param stream_id 目标远端视频流 ID。 + * @param subscribe 是否订阅该视频流。
+ * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端视频流(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取当前房间里的远端摄像头流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged} 回调通知,具体异常原因参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + + virtual int subscribeStreamVideo(const char *stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream`, `unsubscribeStream`, `subscribeScreen` 和 `unsubscribeScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端音频流。 + * @param stream_id 目标远端音频流 ID。 + * @param subscribe 是否订阅该音频流。
+ * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调获取当前房间里的远端麦克风流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知,具体异常原因参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @list 音视频传输 + */ + + virtual int subscribeStreamAudio(const char *stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. + * @brief 设置期望订阅的远端视频流类型。比如大流、中流、小流等。 + * @param stream_id 目标要订阅的远端视频流 ID。 + * @param stream_type 远端视频流类型,参看 SimulcastStreamType{@link #SimulcastStreamType}。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 该方法仅在发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效。 + * - 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。该方法可在进房后调用。 + * @list 视频管理 + * @order 1 + */ + + virtual int setRemoteSimulcastStreamType(const char* stream_id, SimulcastStreamType stream_type) = 0; + + /** + * + * @type api + * @list 视频管理 + * @brief 设置期望订阅的远端视频流的参数。 + * @param stream_id 期望配置订阅参数的远端视频流 ID。 + * @param remote_video_config 期望配置的远端视频流参数,参看 RemoteVideoConfig{@link #RemoteVideoConfig}。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
+ * + 该方法需在进房后调用。 + * + 该方法仅在发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
+ * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
+ * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + */ + + virtual int setRemoteVideoConfig(const char *stream_id, const RemoteVideoConfig &remote_video_config) = 0; + /** + * + * @type api + * @valid Available since 3.60 + * @brief 设置当前推流的流附加信息。 + * @param extra_info 流附加信息。长度不超过1024的字符串。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + !0:失败。 + * @note + * + 可通过此函数设置当前推流的流附加信息。流附加信息是流 ID 的附加信息标识,不同于流 ID 在推流过程中不可修改,流附加信息可以在对应流 ID 的推流中途修改。开发者可根据流附加信息来实现流 ID 相关的可变内容的同步。 + * + 该方法在进房前后均可调用 + * + 相同房间内的其他用户会通过 onRoomStreamExtraInfoUpdate{@link #IRTCRoomEventHandler#onRoomStreamExtraInfoUpdate} 回调函数获得通知。 + * @list 音视频传输 + */ + + virtual int setStreamExtraInfo(const char* extra_info) = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内所有远端视频流(通过摄像头采集的)。 + * @param subscribe 是否订阅所有远端视频流。
+ * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置:subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio}。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用单流订阅接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果,包含异常原因。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * @list 音视频传输 + */ + + virtual int subscribeAllStreamsVideo(bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @region 房间管理 + * @brief 订阅/取消订阅房间内所有远端音频流(通过麦克风采集的)。 + * @param subscribe 是否订阅所有远端音频流。
+ * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
+ * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置:subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio}。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用单流订阅接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果,包含异常原因。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * @list 音视频传输 + * + */ + + virtual int subscribeAllStreamsAudio(bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStreamAudio` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + + virtual int pauseAllSubscribedStreamVideo() = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + + virtual int pauseAllSubscribedStreamAudio() = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + + virtual int resumeAllSubscribedStreamVideo() = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + + virtual int resumeAllSubscribedStreamAudio() = 0; + /** + * + * @hidden for internal use only. + */ + + virtual int enableSubscribeLocalStream(bool enable) = 0; + /** + * + * @type api + * @brief 设置发流端音画同步。
+ * 当同一用户同时使用两个通话设备分别采集发送音频和视频时,有可能会因两个设备所处的网络环境不一致而导致发布的流不同步,此时你可以在视频发送端调用该接口,SDK 会根据音频流的时间戳自动校准视频流,以保证接收端听到音频和看到视频在时间上的同步性。 + * @param audio_user_id 音频发送端的用户 ID,将该参数设为空则可解除当前音视频的同步关系。 + * @return + * - 0: 调用成功。调用该接口后音画同步状态发生改变时,你会收到 onAVSyncStateChange{@link #IRTCRoomEventHandler#onAVSyncStateChange} 回调。 + * - < 0 : 调用失败。你也可以通过监听 onAVSyncEvent{@link #IRTCRoomEventHandler#onAVSyncEvent} 获取错误详情。同一 RTC 房间内允许存在多个音视频同步关系,但需注意单个音频源不支持与多个视频源同时同步。 + * @note + * - 该方法在进房前后均可调用。 + * - 进行音画同步的音频发布用户 ID 和视频发布用户 ID 须在同一个 RTC 房间内。 + * - 如需更换同步音频源,再次调用该接口传入新的 `audio_user_id` 即可;如需更换同步视频源,需先解除当前的同步关系,后在新视频源端开启同步。 + * @list 音视频传输 + */ + + virtual int setMultiDeviceAVSync(const char* audio_user_id) = 0; + + /** + * + * @hidden for internal use only. + */ + + virtual int setCustomUserRole(const char* role) = 0; + /** + * + * @type api + * @brief 开始跨房间转发媒体流。
+ * 在调用 joinRoom{@link #IRTCRoom#joinRoom} 后调用本接口,实现向多个房间转发媒体流,适用于跨房间连麦等场景。 + * @param configuration 跨房间媒体流转发指定房间的信息。参看 ForwardStreamConfiguration{@link #ForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调。 + * - 调用本方法后,你可以通过监听 onForwardStreamEvent{@link #IRTCRoomEventHandler#onForwardStreamEvent} 回调来获取各个目标房间在转发媒体流过程中的相关事件。 + * - 开始转发后,目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发流 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * - 调用本方法后,可以调用 updateForwardStreamToRooms{@link #IRTCRoom#updateForwardStreamToRooms} 更新目标房间信息,例如,增加或减少目标房间等。 + * - 调用本方法后,可以调用 stopForwardStreamToRooms{@link #IRTCRoom#stopForwardStreamToRooms} 停止向所有房间转发媒体流。 + * - 调用本方法后,可以调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms} 暂停向所有房间转发媒体流。 + * @list 音视频传输 + */ + + virtual int startForwardStreamToRooms(const ForwardStreamConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 更新跨房间媒体流转发信息。
+ * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法增加或者减少目标房间,或更新房间密钥。
+ * 调用本方法增加或删减房间后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调,包含发生了变动的目标房间中媒体流转发状态。 + * @param configuration 跨房间媒体流转发目标房间信息。参看 ForwardStreamConfiguration{@link #ForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * 增加或删减目标房间后,新增目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * @list 音视频传输 + */ + + virtual int updateForwardStreamToRooms(const ForwardStreamConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 停止跨房间媒体流转发。
+ * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法停止向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调。 + * - 调用本方法后,原目标房间中的用户将接收到本地用户停止发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调和退房 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 的回调。 + * - 如果需要停止向指定的房间转发媒体流,请调用 updateForwardStreamToRooms{@link #IRTCRoom#updateForwardStreamToRooms} 更新房间信息。 + * - 如果需要暂停转发,请调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms},并在之后随时调用 resumeForwardStreamToAllRooms{@link #IRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @list 音视频传输 + */ + + virtual int stopForwardStreamToRooms() = 0; + /** + * + * @type api + * @brief 暂停跨房间媒体流转发。
+ * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法暂停向所有目标房间转发媒体流。
+ * 调用本方法暂停向所有目标房间转发后,你可以随时调用 resumeForwardStreamToAllRooms{@link #IRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用本方法后,目标房间中的用户将接收到本地用户停止发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调和退房 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 的回调。 + * @list 音视频传输 + */ + + virtual int pauseForwardStreamToAllRooms() = 0; + /** + * + * @type api + * @brief 恢复跨房间媒体流转发。
+ * 调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms} 暂停转发之后,调用本方法恢复向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * 目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * @list 音视频传输 + */ + + virtual int resumeForwardStreamToAllRooms() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 获取范围语音接口实例。 + * @return 方法调用结果:
+ * - IRangeAudio:成功,返回一个 IRangeAudio{@link #IRangeAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + + virtual IRangeAudio* getRangeAudio() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 获取空间音频接口实例。 + * @return 方法调用结果:
+ * - ISpatialAudio:成功,返回一个 ISpatialAudio{@link #ISpatialAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持空间音频功能。 + * @note + * - 首次调用该方法须在创建房间后、加入房间前。空间音频相关 API 和调用时序详见[空间音频](https: + * - 只有在使用支持真双声道播放的设备时,才能开启空间音频效果; + * - 机型性能不足可能会导致音频卡顿,使用低端机时,不建议开启空间音频效果; + * - SDK 最多支持 30 个用户同时开启空间音频功能。 + * @list 高级功能 + */ + + virtual ISpatialAudio* getSpatialAudio() = 0; + /** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
+ * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
+ * - 该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setRemoteRoomAudioPlaybackVolume(int volume) = 0; + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @brief 接收端调用本接口获取全景视频接口引擎。 + * @return 方法调用结果:
+ * - IPanoramicVideo:成功,返回一个 IPanoramicVideo{@link #IPanoramicVideo} 实例。 + * - null:失败,当前 SDK 不支持全景视频功能。 + * @note + * - 接收端的调用时序为 createRTCEngine{@link #IRTCEngine#createRTCEngine} > createRTCRoom{@link #IRTCEngine#createRTCRoom} > 本接口 > joinRoom{@link #IRTCRoom#joinRoom}。 + * - 获取 IPanoramicVideo 实例后,再调用 updateQuaternionf{@link #IPanoramicVideo#updateQuaternionf} 更新头位姿四元数。 + * - 你需要使用外部渲染器对接收到的全景视频进行渲染,参见 setRemoteVideoSink{@link #IRTCEngine#setRemoteVideoSink}。 + * @list 视频管理 + */ + + virtual IPanoramicVideo* getPanoramicVideo() = 0; + /** + * + * @valid since 3.52. + * @type api + * @brief 设置本端发布流在音频选路中的优先级。 + * @param audio_selection_priority 本端发布流在音频选路中的优先级,默认正常参与音频选路。参见 AudioSelectionPriority{@link #AudioSelectionPriority}。 + * @note + * - 在控制台上为本 appId 开启音频选路后,调用本接口才会生效。进房前后调用均可生效。更多信息参见[音频选路](https: + * - 如果本端用户同时加入不同房间,使用本接口进行的设置相互独立。 + * @list 音频管理 + */ + + virtual int setAudioSelectionConfig(AudioSelectionPriority audio_selection_priority) = 0; + /** + * + * @valid since 3.52. + * @type api + * @brief 设置/更新房间附加信息,可用于标识房间状态或属性,或灵活实现各种业务逻辑。 + * @param key 房间附加信息键值,长度小于 10 字节。
+ * 同一房间内最多可存在 5 个 key,超出则会从第一个 key 起进行替换。 + * @param value 房间附加信息内容,长度小于 128 字节。 + * @return + * - 0: 方法调用成功,返回本次调用的任务编号; + * - <0: 方法调用失败,具体原因详见 SetRoomExtraInfoResult{@link #SetRoomExtraInfoResult}。 + * @note + * - 在设置房间附加信息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * - 调用该方法后,会收到一次 onSetRoomExtraInfoResult{@link #IRTCRoomEventHandler#onSetRoomExtraInfoResult} 回调,提示设置结果。 + * - 调用该方法成功设置附加信息后,同一房间内的其他用户会收到关于该信息的回调 onRoomExtraInfoUpdate{@link #IRTCRoomEventHandler#onRoomExtraInfoUpdate}。 + * - 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual int64_t setRoomExtraInfo(const char*key,const char*value) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 识别或翻译房间内所有用户的语音,形成字幕。
+ * 调用该方法时,可以在 SubtitleMode{@link #SubtitleMode} 中选择语音识别或翻译模式。如果选择识别模式,语音识别文本会通过 onSubtitleMessageReceived{@link #IRTCRoomEventHandler#onSubtitleMessageReceived} 事件回调给你;
+ * 如果选择翻译模式,你会同时收到两个 onSubtitleMessageReceived{@link #IRTCRoomEventHandler#onSubtitleMessageReceived} 回调,分别包含字幕原文及字幕译文。
+ * 调用该方法后,用户会收到 onSubtitleStateChanged{@link #IRTCRoomEventHandler#onSubtitleStateChanged} 回调,通知字幕是否开启。 + * @param subtitle_config 字幕配置信息。参看 SubtitleConfig{@link #SubtitleConfig}。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @note + * - 使用字幕功能前,你需要在 [RTC 控制台](https: + * - 如果你需要使用流式语音识别模式,你应在 [豆包语音控制台](https: + * - 如果你需要使用实时语音翻译模式,你应开通机器翻译服务,参考 [开通服务](https: + * - 此方法需要在进房后调用。 + * - 如需指定源语言,你需要在调用 `joinRoom` 接口进房时,通过 extraInfo 参数传入格式为`"语种英文名": "语种代号"` JSON 字符串,例如设置源语言为英文时,传入 `"source_language": "en"`。如未指定源语言,SDK 会将系统语种设定为源语言。如果你的系统语种不是中文、英文和日文,此时 SDK 会自动将中文设为源语言。 + * - 识别模式下,你可以传入 [RTC 控制台](https: + * - 翻译模式下,你需要传入机器翻译规定的语种英文名和语种代号。翻译模式下支持的语言及对应的代号参看[翻译模式语言支持](https: + * @list 字幕翻译服务 + */ + + virtual int startSubtitle(const SubtitleConfig& subtitle_config) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 关闭字幕。
+ * 调用该方法后,用户会收到 onSubtitleStateChanged{@link #IRTCRoomEventHandler#onSubtitleStateChanged} 回调,通知字幕是否关闭。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 字幕翻译服务 + */ + + virtual int stopSubtitle() = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 获取房间 ID。 + * @return 房间 ID。 + * @list 房间管理 + */ + + virtual const char* getRoomId() = 0; + + /** + * + * @type api + * @valid since 3.60. + * @brief 获取通话 ID。
+ * 该方法需要在加入房间后调用。当创建一个房间开启音视频通话后,系统会为该房间生成一个对应的通话 ID,标识此房间的通话。 + * @return 通话 ID。 + * @list 房间管理 + */ + + virtual const char* getCallId() = 0; + + /** + * + * @valid since 3.60. + * @type api + * @brief 设置房间直播模式。
+ * 该方法需要在加入房间后调用。 + * @param live_mode 直播模式。参看 RoomLiveMode{@link #RoomLiveMode} 。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 房间管理 + */ + + virtual int setLiveMode(RoomLiveMode live_mode) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h new file mode 100644 index 0000000..1833721 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h @@ -0,0 +1,582 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" +#include "bytertc_rts_room_event_handler.h" + +namespace bytertc { +/** + * + * @type callback + * @brief RTS房间事件回调接口
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class IRTCRoomEventHandler : public IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTCRoomEventHandler() { + } + /** + * + * @hidden + * @type callback + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
+ * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参见 RoomStateChangeReason{@link #RoomStateChangeReason}。 + * @list 房间管理 + */ + + virtual void onRoomStateChangedWithReason( + const char* room_id, const char* uid, RoomState state, RoomStateChangeReason reason) { + (void)room_id; + (void)uid; + (void)state; + (void)reason; + } + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调取代 `onStreamStateChanged` 回调,用于报告视频发布状态改变。如果您已升级 SDK 至版本 3.60 或以上,仍在使用 `onStreamStateChanged` 回调,请迁移至该回调。 + * @region 房间管理 + * @brief 视频发布状态改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 发布状态码,参看 PublishState{@link #PublishState}。 + * @param reason 本地视频流发布状态改变的具体原因,参看 PublishStateChangeReason{@link #PublishStateChangeReason}。 + * @note 除了本地视频流发布状态改变时触发,本端用户进房时也会收到本回调。 + * @list 音视频传输 + */ + + virtual void onVideoPublishStateChanged( + const char* stream_id, const StreamInfo& stream_info, PublishState state, PublishStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. + * @region 房间管理 + * @brief 音频发布状态改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 发布状态码,参看 PublishState{@link #PublishState}。 + * @param reason 本地音频流发布状态改变的具体原因,参看 PublishStateChangeReason{@link #PublishStateChangeReason}。 + * @note 除了状态改变时触发,本端用户进房时也会收到本回调。 + * @list 音视频传输 + */ + + virtual void onAudioPublishStateChanged( + const char* stream_id, const StreamInfo& stream_info, PublishState state, PublishStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onStreamStateChanged` 和 `onStreamSubscribed` 方法,用于报告视频流订阅状态的改变。如果您已升级到 SDK 版本 3.60 或以上,仍在使用这两个方法,请迁移到该回调。 + * @region 房间管理 + * @brief 视频订阅状态发生改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 订阅状态码,参看 SubscribeState{@link #SubscribeState}。 + * @param reason 视频流订阅状态改变的具体原因,参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 后会收到该通知。 + * @list 音视频传输 + */ + + virtual void onVideoSubscribeStateChanged( + const char* stream_id, const StreamInfo& stream_info, SubscribeState state, SubscribeStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. + * @region 房间管理 + * @brief 音频订阅状态发生改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 订阅状态码,参看 SubscribeState{@link #SubscribeState}。 + * @param reason 音频订阅状态改变的具体原因,参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 后会收到该通知。 + * @list 音视频传输 + */ + + virtual void onAudioSubscribeStateChanged( + const char* stream_id, const StreamInfo& stream_info, SubscribeState state, SubscribeStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @hidden + * @deprecated since 3.41 and will be deleted in 3.51, use onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} and onStreamStateChanged instead. + * @type callback + * @brief SDK 发生警告回调。
+ * SDK 内部遇到可恢复错误时,在尝试自动恢复的同时,会通过此回调通知用户。此回调事件仅用作通知。 + * @param warn 警告码,参看 WarningCode{@link #WarningCode}。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onRoomWarning(int warn) { + (void)warn; + } + /** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 进房权限。 + * @note 若未能及时更新 Token 进房权限导致其过期而失效:
+ * - 用户此时尝试进房会收到 回调,提示错误码为 `-1000` Token 过期; + * - 用户已在房间内则会被移出房间,本地用户会收到 回调,提示错误码为 `-1009` Token 过期,同时远端用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调,提示原因为 `2` Token 进房权限过期。 + * @list 引擎管理 + */ + + virtual void onTokenWillExpire() { + + } + /** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
+ * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 发布权限。 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调,提示该流已停止发布。 + * @list 引擎管理 + */ + + virtual void onPublishPrivilegeTokenWillExpire() { + + } + /** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
+ * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 订阅权限有效期。 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调,提示`kSubscribeStateChangeReasonNoSubscribePermission`,没有订阅权限。 + * @list 引擎管理 + */ + + virtual void onSubscribePrivilegeTokenWillExpire() { + + } + /** + * + * @type callback + * @brief 房间内通话统计信息回调。
+ * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param stats 当前 RtcEngine 统计数据,详见 RtcRoomStats{@link #RtcRoomStats} + * @list 房间管理 + */ + + virtual void onRoomStats(const RtcRoomStats& stats) { + (void)stats; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief 房间事件回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 RoomEvent{@link #RoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 RoomEventInfo{@link #RoomEventInfo}。 + * @list 房间管理 + */ + + virtual void onRoomEvent(const char* room_id, const char* uid, RoomEvent state, const RoomEventInfo& info) { + (void)room_id; + (void)uid; + (void)state; + (void)info; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 本地流数据统计以及网络质量回调。
+ * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
+ * 统计信息通过 LocalStreamStats{@link #LocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param stats 当前 RtcEngine 统计数据,详见 LocalStreamStats{@link #LocalStreamStats}。 + * @list 音视频传输 + */ + + virtual void onLocalStreamStats(const char* stream_id, const bytertc::StreamInfo& stream_info, const LocalStreamStats& stats) { + (void)stream_id; + (void)stream_info; + (void)stats; + } + /** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
+ * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param stats 当前 RtcEngine 统计数据,详见 RemoteStreamStats{@link #RemoteStreamStats} + * @list 音视频传输 + */ + + virtual void onRemoteStreamStats(const char* stream_id, const bytertc::StreamInfo& stream_info, const RemoteStreamStats& stats) { + (void)stream_id; + (void)stream_info; + (void)stats; + } + /** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
+ * 1. 远端用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设为可见后加入房间时,房间内其他用户将收到该事件。
+ * 2. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
+ * 3. 房间内隐身远端用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法切换至可见时,房间内其他用户将收到该事件。
+ * 4. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param user_info 用户信息,详见 UserInfo{@link #UserInfo} + * @list 房间管理 + */ + + virtual void onUserJoined(const UserInfo& user_info) { + (void)user_info; + } + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use onUserUnpublishStream and onUserUnpublishScreen instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调。 + * @param stream 流的属性。参看 MediaStreamInfo{@link #MediaStreamInfo} 。 + * @param reason 远端流移除的原因。参看 StreamRemoveReason{@link #StreamRemoveReason} 。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onStreamRemove(const MediaStreamInfo& stream, StreamRemoveReason reason) { + (void)stream; + } + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use onUserPublishStream and onUserPublishScreen instead. + * @type callback + * @brief 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调。包括移除后又重新发布的流。 + * @param stream 流属性,参看 MediaStreamInfo{@link #MediaStreamInfo} 。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onStreamAdd(const MediaStreamInfo& stream) { + (void)stream; + } + + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream` 、`onUserUnpublishStream` 、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param is_publish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo} 成功发布采集的视频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 订阅此流。 + * @list 音视频传输 + */ + + virtual void onUserPublishStreamVideo(const char* stream_id, const StreamInfo& stream_info, bool is_publish){ + (void)stream_id; + (void)stream_info; + (void)is_publish; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这些方法,请迁移至该回调。 + * @brief 房间内远端用户发布或取消发布音频流的回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param is_publish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 成功发布音频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + + virtual void onUserPublishStreamAudio(const char* stream_id, const StreamInfo& stream_info, bool is_publish){ + (void)stream_id; + (void)stream_info; + (void)is_publish; + } + + /** + * + * @hidden for internal use only + * @type callback + * @brief 当发布流成功的时候回调该事件。 + * @param user_id 发布流的用户 ID。 + * @param is_screen 该流是否为屏幕流。
+ * - Ture: 屏幕流。 + * - False: 非屏幕流。 + * @list 音视频传输 + */ + + virtual void onStreamPublishSuccess(const char* user_id, bool is_screen) { + (void)is_screen; + } + + /** + * + * @hidden for internal use only + */ + + virtual void onRoomModeChanged(RtcRoomMode mode) { + (void)mode; + } + + /** + * + * @hidden for internal use only + * @brief callback when the maximum screen share fps is changed + * @param fps maximum screen share fps + */ + + virtual void onMaximumScreenShareFpsUpdated(int fps) { + (void)fps; + } + + /** + * + * @hidden for internal use only + * @brief 最大屏幕共享帧率改变时的回调 + * @param screen_pixels 为了保持帧率而推荐的最大视频宽度×高度的值。 + */ + + virtual void onMaximumScreenSharePixelsUpdated(int screen_pixels) { + (void)screen_pixels; + } + /** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
+ * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + + virtual void onVideoStreamBanned(const char* uid, bool banned) { + (void)uid; + (void)banned; + } + /** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync{@link #IRTCRoom#setMultiDeviceAVSync} 后音视频同步状态发生改变时,会收到此回调。 + * @param state 音视频同步状态,参看 AVSyncState{@link #AVSyncState}。 + * @list 音视频传输 + */ + + virtual void onAVSyncStateChange(AVSyncState state) { + (void)state; + } + /** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
+ * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + + virtual void onAudioStreamBanned(const char* uid, bool banned) { + (void)uid; + (void)banned; + } + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ForwardStreamStateInfo{@link #ForwardStreamStateInfo} + * @param info_count 数组长度,代表目标房间数 + * @list 音视频传输 + */ + + virtual void onForwardStreamStateChanged(ForwardStreamStateInfo* infos, int info_count) { + } + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ForwardStreamEventInfo{@link #ForwardStreamEventInfo} + * @param info_count 数组长度,代表目标房间数 + * @list 音视频传输 + */ + + virtual void onForwardStreamEvent(ForwardStreamEventInfo* infos, int info_count) { + } + /** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param local_quality 本端网络质量,详见 NetworkQualityStats{@link #NetworkQualityStats}。 + * @param remote_qualities 已订阅用户的网络质量,详见 NetworkQualityStats{@link #NetworkQualityStats}。 + * @param remote_quality_num `remoteQualities` 数组长度 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + + virtual void onNetworkQuality(const NetworkQualityStats& local_quality, const NetworkQualityStats* remote_qualities, int remote_quality_num) { + } + /** + * + * @valid since 3.52. + * @type callback + * @brief 调用 setRoomExtraInfo{@link #IRTCRoom#setRoomExtraInfo} 设置房间附加信息结果的回调。 + * @param task_id 调用 setRoomExtraInfo 的任务编号。 + * @param result 设置房间附加信息的结果,详见 SetRoomExtraInfoResult{@link #SetRoomExtraInfoResult} + * @list 房间管理 + */ + + virtual void onSetRoomExtraInfoResult(int64_t task_id, SetRoomExtraInfoResult result) { + (void)task_id; + (void)result; + } + /** + * + * @valid since 3.52. + * @type callback + * @brief 接收同一房间内,其他用户调用 setRoomExtraInfo{@link #IRTCRoom#setRoomExtraInfo} 设置的房间附加信息的回调。 + * @param key 房间附加信息的键值 + * @param value 房间附加信息的内容 + * @param last_update_user_id 最后更新本条信息的用户 ID。 + * @param last_update_time_ms 最后更新本条信息的 Unix 时间,单位:毫秒。 + * @note 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual void onRoomExtraInfoUpdate(const char*key, const char* value, const char* last_update_user_id, int64_t last_update_time_ms) { + (void)key; + (void)value; + (void)last_update_user_id; + (void)last_update_time_ms; + } + /** + * + * @valid since 3.60. + * @type callback + * @brief 接收同一房间内,其他用户调用 setStreamExtraInfo{@link #IRTCRoom#setStreamExtraInfo} 设置的流附加信息的回调。 + * @param stream_id 流 ID + * @param stream_info 流信息,详见 StreamInfo{@link #StreamInfo} + * @param extra_info 流附加信息的内容 + * @note 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual void onRoomStreamExtraInfoUpdate(const char* stream_id, const StreamInfo& stream_info, const char* extra_info) { + (void)stream_id; + (void)stream_info; + (void)extra_info; + } + /** + * + * @valid since 3.54 + * @type callback + * @brief 用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 设置用户可见性的回调。 + * @param current_user_visibility 当前用户的可见性。
+ * - true: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - false: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param error_code 设置用户可见性错误码,参看 UserVisibilityChangeError{@link #UserVisibilityChangeError}。 + * @list 房间管理 + */ + + virtual void onUserVisibilityChanged(bool current_user_visibility, UserVisibilityChangeError error_code) { + (void)current_user_visibility; + (void)error_code; + } + /** + * + * @type callback + * @brief 字幕状态发生改变回调。
+ * 当用户调用 startSubtitle{@link #IRTCRoom#startSubtitle} 和 stopSubtitle{@link #IRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param state 字幕状态。参看 SubtitleState{@link #SubtitleState}。 + * @param error_code 字幕任务错误码。参看 SubtitleErrorCode{@link #SubtitleErrorCode}。 + * @param error_message 与第三方服务有关的错误信息。 + * @list 字幕翻译服务 + */ + + virtual void onSubtitleStateChanged(SubtitleState state, SubtitleErrorCode error_code, const char* error_message) { + } + /** + * + * @type callback + * @brief 字幕相关内容回调。
+ * 当用户调用 startSubtitle{@link #IRTCRoom#startSubtitle} 后会收到此回调,通知字幕的相关信息。 + * @param subtitles 字幕消息内容。参看 SubtitleMessage{@link #SubtitleMessage}。 + * @param cnt 字幕消息个数。 + * @list 字幕翻译服务 + */ + + virtual void onSubtitleMessageReceived(const SubtitleMessage* subtitles, int cnt) { + } + + /** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync{@link #IRTCRoom#setMultiDeviceAVSync} 后音视频同步状态发生错误时,会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param event 音视频同步状态错误,参看 AVSyncEvent{@link #AVSyncEvent}。 + * @list 音视频传输 + */ + + virtual void onAVSyncEvent(const char* room_id, const char* uid, AVSyncEvent event) { + } +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h new file mode 100644 index 0000000..fee9556 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_room.h" + +namespace bytertc { + +class IRTCRoomEventHandlerEx; +/** + * + * @type api + * @brief IRTCRoomEx Class + */ +class IRTCRoomEx : public IRTCRoom { +public: + /** + * + * @type api + * @region 房间管理 + * @brief 在当前所在房间内发布媒体流 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 MediaStreamType{@link #MediaStreamType} + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。
+ * + 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头音视频流。
+ * + 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。
+ * + 调用此方法后,房间中的所有远端用户会收到 onUserPublishStream{@link #IRTCRoomEventHandler#onUserPublishStream} 回调通知,其中成功收到了音频流的远端用户会收到 onFirstRemoteAudioFrame{@link #IRTCEngineEventHandler#onFirstRemoteAudioFrame} 回调,订阅了视频流的远端用户会收到 onFirstRemoteVideoFrameDecoded{@link #IRTCEngineEventHandler#onFirstRemoteVideoFrameDecoded} 回调。
+ * + 调用 unpublishStream{@link #IRTCRoom#unpublishStream} 取消发布。 + */ + virtual int publishStream(StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 停止将本地摄像头/麦克风采集的媒体流发布到当前所在房间中 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定停止发布音频/视频,参看 MediaStreamType{@link #MediaStreamType} + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 publishStream{@link #IRTCRoomEx#publishStream} 手动发布摄像头音视频流后,你需调用此接口停止发布。
+ * + 调用此方法停止发布音视频流后,房间中的其他用户将会收到 onUserUnpublishStream{@link #IRTCRoomEventHandler#onUserUnpublishStream} 回调通知。 + */ + virtual int unpublishStream(StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 订阅房间内指定的媒体流,或更新对指定媒体流的订阅选项 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param user_id 指定订阅的远端发布音视频流的用户 ID。 + * @param type 媒体流类型,用于指定订阅音频/视频。参看 MediaStreamType{@link #MediaStreamType}。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。
+ * + 你必须先通过 onUserPublishStream{@link #IRTCRoomEventHandler#onUserPublishStream} 回调获取当前房间里的远端摄像头音视频流信息,然后调用本方法按需订阅。
+ * + 调用该方法后,你会收到 onStreamSubscribed{@link #IRTCRoomEventHandler#onStreamSubscribed} 通知方法调用结果。
+ * + 成功订阅远端用户的媒体流后,订阅关系将持续到调用 unsubscribeStream{@link #IRTCRoom#unsubscribeStream} 取消订阅或本端用户退房。
+ * + 关于其他调用异常,你会收到 onStreamStateChanged{@link #IRTCRoomEventHandler#onStreamStateChanged} 回调通知,具体异常原因参看 ErrorCode{@link #ErrorCode}。 + */ + virtual int subscribeStream(const char *user_id, StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 取消订阅房间内指定的媒体流。
+ * 该方法对自动订阅和手动订阅模式均适用。 + * @param user_id 指定取消订阅的远端发布音视频流的用户 ID。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定取消订阅音频/视频。参看 MediaStreamType{@link #MediaStreamType}。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 调用该方法后,你会收到 onStreamSubscribed{@link #IRTCRoomEventHandler#onStreamSubscribed} 通知方法调用结果。
+ * + 关于其他调用异常,你会收到 onStreamStateChanged{@link #IRTCRoomEventHandler#onStreamStateChanged} 回调通知,具体失败原因参看 ErrorCode{@link #ErrorCode}。 + */ + virtual int unsubscribeStream(const char *user_id, StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 通过设置 IRTCRoomEx{@link #IRTCRoomEx} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandlerEx{@link #IRTCRoomEventHandlerEx} + * @return + * + 0: 调用成功。
+ * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + + /** + * + * @type api + * @region 视频管理 + * @brief 设置期望订阅的远端视频流的参数。 + * @param userId 期望配置订阅参数的远端视频流发布用户的 ID。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param remoteVideoConfig 期望配置的远端视频流参数,参看 ByteRTCRemoteVideoConfig{@link #ByteRTCRemoteVideoConfig}。 + * @return 方法调用结果:
+ * + 0:成功;
+ * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
+ * + 该方法仅在发布端调用 setLocalSimulcastMode:{@link #IRTCEngine#setLocalSimulcastMode:} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
+ * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
+ * + 该方法需在进房后调用,若想进房前设置,你需调用 joinRoom:userInfo:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:roomConfig:},并对 `roomConfig` 中的 `remoteVideoConfig` 进行设置。
+ * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + */ + +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h new file mode 100644 index 0000000..ef6a8f8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h @@ -0,0 +1,175 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" +#include "rtc/bytertc_media_defines.h" +#include "bytertc_rts_room_event_handler.h" + +namespace bytertc { + +/** + * + * @type api + * @brief RTS 房间接口 + */ + +class IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoom() { + } + + /** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRTSRoom{@link #IRTCEngine#createRTSRoom} 所创建的 RTS 房间实例。 + */ + + virtual void destroy() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 离开 RTC 或 RTS 房间。
+ * 用户调用此方法离开房间,结束通话过程,释放所有通话相关的资源。
+ * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调通知。
+ * + 可见的用户离开房间后,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。
+ * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调。
+ * + 调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 方法加入房间后,必须调用此方法离开房间,否则无法进入下一个房间。无论当前是否在房间内,都可以调用此方法。重复调用此方法没有负面影响。
+ */ + + virtual int leaveRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 设置 IRTSRoom{@link #IRTSRoom} 对象的事件句柄。 + * 通过设置事件句柄可以监听此 IRTSRoom{@link #IRTSRoom} 对象对应的房间的回调事件。 + * @param room_event_handler 回调处理器,详见 IRTSRoomEventHandler{@link #IRTSRoomEventHandler} + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int setRTSRoomEventHandler(IRTSRoomEventHandler* room_event_handler) = 0; + + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param message 用户发送的广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
+ * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。 + * + 同一房间内的其他用户会收到 onRoomMessageReceived{@link #IRTSRoomEventHandler#onRoomMessageReceived} 回调。 + */ + + virtual int64_t sendRoomMessage(const char* message) = 0; + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param size 发送的二进制消息长度 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。
+ * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
+ * + 同一房间内的其他用户会收到 onRoomBinaryMessageReceived{@link #IRTSRoomEventHandler#onRoomBinaryMessageReceived} 回调。 + */ + + virtual int64_t sendRoomBinaryMessage(int size, const uint8_t* message) = 0; + /** + * + * @type api + * @list 房间管理 + * @brief 创建/加入 RTS 房间。
+ * 同一房间内的用户间可以相互通话。
+ * 进房后重复调用无效,用户必须调用 `leaveRoom` 退出当前房间后,才能加入下一个房间。 + * @param token 用户登录必须携带的 Token,用于鉴权验证。
+ * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,roomId 置为空字符串(即 roomId:""),Token 有效期及生成方式参看[使用 Token 完成鉴权](https: + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @return + * + 0: 成功
+ * + -1:token / user_info 包含了无效的参数。
+ * + -2:已经在房间内。 + * @note
+ * + 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 OnError{@link #IRTCEngineEventHandler#OnError} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。
+ * + 本地用户调用此方法加入房间成功后,会收到回调通知。
+ * + 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,此时 SDK 将会自动重连。重连成功后,本地会收到 回调通知。如果加入房间的用户可见,远端用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + */ + + virtual int joinRTSRoom(const char* token, const UserInfo& user_info) = 0; + /** + * + * @type api + * @brief 更新 Token。
+ * 收到 onTokenWillExpire{@link #IRTCRoomEventHandler#onTokenWillExpire},onPublishPrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onPublishPrivilegeTokenWillExpire}, 或 onSubscribePrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onSubscribePrivilegeTokenWillExpire} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
+ * 如果 Token 无效,你会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged},错误码是 `-1010`。 + * @return 方法调用结果:
+ * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 3.50(不含)以前的版本中,Token 中的发布和订阅权限为保留参数,无实际控制权限;3.50 及以后版本开放 Token 发布订阅控制权限,如需通过 Token 控制连麦权限,请联系技术支持团队开通白名单后支持。 + * - 请勿同时调用 updateToken{@link #IRTSRoom#updateToken} 和 joinRoom{@link #IRTCRoom#joinRoom} 方法更新 Token。若因 Token 过期或无效导致加入房间失败或已被移出房间,你应该在获取新的有效 Token 后调用 joinRoom{@link #IRTCRoom#joinRoom} 重新加入房间。 + * @list 房间管理 + */ + + virtual int updateToken(const char* token) = 0; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点文本消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 调用该函数后会收到一次 onUserMessageSendResult{@link #IRTSRoomEventHandler#onUserMessageSendResult} 回调,通知消息发送方发送成功或失败; + * - 若文本消息发送成功,则 uid 所指定的用户会收到 onUserMessageReceived{@link #IRTSRoomEventHandler#onUserMessageReceived} 回调。 + * @list 消息 + */ + + virtual int64_t sendUserMessage(const char* uid, const char* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param length 二进制字符串的长度。 + * @param message 二进制消息的内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 调用该函数后会收到一次 onUserMessageSendResult{@link #IRTSRoomEventHandler#onUserMessageSendResult} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则 uid 所指定的用户会收到 onUserBinaryMessageReceived{@link #IRTSRoomEventHandler#onUserBinaryMessageReceived} 回调。 + * @list 消息 + */ + + virtual int64_t sendUserBinaryMessage(const char* uid, int length, const uint8_t* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h new file mode 100644 index 0000000..7e9c70d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" + +namespace bytertc { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoomEventHandler() {} + + /** + * + * @type callback + * @region 房间管理 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
+ * + 0: 加入房间成功。
+ * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ErrorCode{@link #ErrorCode} 及 WarningCode{@link #WarningCode}。 + * @param extra_info 额外信息,如 `{"elapsed":1187,"join_type":0}`。 + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。 + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom{@link #IRTCRoom#joinRoom} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + */ + + virtual void onRoomStateChanged(const char* room_id, const char* uid, + int state, const char* extra_info) { + (void)room_id; + (void)state; + (void)extra_info; + } + + /** + * + * @type callback + * @brief 离开房间回调。
+ * 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并在释放所有与通话相关的音频资源后,通过此回调通知用户离开房间成功。
+ * @param stats 保留参数,目前为空。 + * @note
+ * + 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #IRTSRoom#destroy} 销毁房间实例方法销毁 RTS 引擎,则将无法收到此回调事件。
+ * + 离开房间后,如果 App 需要使用系统音频设备,则建议收到此回调后再初始化音频设备,否则可能由于 SDK 占用音频设备而导致初始化失败。
+ * @list 房间管理 + */ + + virtual void onLeaveRoom(const RtcRoomStats& stats) { + (void)stats; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 远端用户加入房间的回调。 + * @param user_info 用户信息,详见 UserInfo{@link #UserInfo} + * @list 房间管理 + */ + + virtual void onUserJoined(const UserInfo& user_info) { + (void)user_info; + } + + /** + * + * @type callback + * @brief 远端用户离开房间时,本地用户会收到此事件 + * @param uid 离开房间的远端用户 ID。
+ * @param reason 用户离开房间的原因。参看 UserOfflineReason{@link #UserOfflineReason}。 + * @list 房间管理 + */ + + virtual void onUserLeave(const char* uid, UserOfflineReason reason) { + (void)uid; + (void)reason; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内广播消息的回调。 + * @param uid 消息发送者 ID。 + * @param message 收到的消息内容。 + * @note 同一房间内其他用户调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 发送广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内二进制广播消息的回调。 + * @param uid 消息发送者 ID。 + * @param size
+ * 收到的二进制消息长度 + * @param message 收到的二进制消息内容。 + * @note 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 当调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 函数发送消息后,回调此条消息的发送结果(反馈)。 + * @param msgid 消息的 ID。 + * @param error 消息发送结果。详见 RoomMessageSendResult{@link #RoomMessageSendResult}。 + * @list 消息 + */ + + virtual void onRoomMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserMessageReceived{@link #IRTSRoomEventHandler#onUserMessageReceived-2} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发来的点对点文本消息时,会收到此回调。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 方法,才能收到该回调。 + * @list 消息 + */ + + virtual void onUserMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 发来的点对点二进制消息时,会收到此回调。
+ * > 该接口将于 3.64 被 onUserBinaryMessageReceived{@link #IRTSRoomEventHandler#onUserBinaryMessageReceived-2} 代替。 + * @param uid 消息发送者 ID。 + * @param size 收到的消息长度。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param msgid 消息的 ID。 + * @param error 文本或二进制消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult} + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 或 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 接口,才能收到此回调。 + * @list 消息 + */ + + virtual void onUserMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @brief 接收到房间内广播消息的回调。
+ * 同一房间内其他用户调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发送广播消息时会收到该回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者的 ID。 + * @param message 收到的消息内容。 + * @list 消息 + */ + + virtual void onRoomMessageReceived(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
+ * 房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送广播二进制消息时,收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @param size 收到的二进制消息长度。 + * @note 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomBinaryMessageReceived(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发来的点对点文本消息时,会收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 方法,才能收到该回调。 + * @list 消息 + */ + + virtual void onUserMessageReceived(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 发来的点对点二进制消息时,会收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @param size 消息长度。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceived(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts.h new file mode 100644 index 0000000..8b0d88a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts.h @@ -0,0 +1,356 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface + */ + +#pragma once + +#include +#include +#include +#include +#include "rtc/bytertc_rts_defines.h" +#include "byterts_event_handler.h" +#include "byterts_room.h" + +namespace byterts { + +class IRTSRoomEventHandler; +/** + * + * @type api + * @brief 引擎API + * IRtcEngine用IRTSEventHandler 注册接口类方法向应用程序发送回调通知 + */ + +class IRTS { +public: + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTS() { + } + + /** + * + * @type api + * @region 引擎管理 + * @brief 设置业务标识参数
+ * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param business_id
+ * 用户设置的自己的 businessId 值 + * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return
+ * + 0: 成功
+ * + < 0: 失败,具体原因参照 BusinessCheckCode{@link #BusinessCheckCode} 。
+ * + -6001: 用户已经在房间中。
+ * + -6002: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符,分别是:英文句号,短横线,下划线和 @ 。 + * @note
+ * + 需要在进房之前调用,进房之后调用该方法无效。 + */ + + virtual int setBusinessId(const char* business_id) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 登录 RTS 服务器。 + * 必须先登录,才能发送点对点消息和向应用服务器发送消息
+ * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #IRTS#logout}。
+ * @param [in]token 用户登录必须携带的 Token,用于鉴权验证。 + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid
+ * 用户 ID
+ * 用户 ID 在 appid 的维度下是唯一的。 + * @return
+ * + `0`:成功
+ * + `-1`:失败。无效参数
+ * + `-2`:无效调用。用户已经登录。成功登录后再次调用本接口将收到此返回值
+ * @note 本地用户调用此方法登录后,会收到 onLoginResult{@link #IRTSEventHandler#onLoginResult} 回调通知登录结果,远端用户不会收到通知。 + */ + + virtual int login(const char* token, const char* uid) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 调用本接口登出前,必须先调用 login{@link #IRTS#login} 登录。
+ * + 本地用户调用此方法登出后,会收到 onLogout{@link #IRTSEventHandler#onLogout} 回调通知结果,远端用户不会收到通知。 + */ + + virtual int logout() = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 更新用户用于登录的 Token
+ * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
+ * 调用 login{@link #IRTS#login} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 onLoginResult{@link #IRTSEventHandler#onLoginResult} 回调通知,错误码为 kLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
+ * 更新的动态密钥 + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login{@link #IRTS#login} 方法。
+ * + Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + */ + + virtual int updateLoginToken(const char* token) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 设置应用服务器参数
+ * 客户端调用 sendServerMessage{@link #IRTS#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTS#sendServerBinaryMessage} 发送消息给业务服务器之前,必须设置有效签名和业务服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
+ * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
+ * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 用户必须调用 login{@link #IRTS#login} 登录后,才能调用本接口。
+ * + 调用本接口后,SDK 会使用 onServerParamsSetResult{@link #IRTSEventHandler#onServerParamsSetResult} 返回相应结果。 + */ + + virtual int setServerParams(const char* signature, const char* url) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 查询对端用户或本端用户的登录状态 + * @param peer_user_id
+ * 需要查询的用户 ID + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 必须调用 login{@link #IRTS#login} 登录后,才能调用本接口。
+ * + 调用本接口后,SDK 会使用 onGetPeerOnlineStatus{@link #IRTSEventHandler#onGetPeerOnlineStatus} 回调通知查询结果。
+ * + 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + */ + + virtual int getPeerOnlineStatus(const char* peer_user_id) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 给房间外指定的用户发送文本消息(P2P) + * @param uid
+ * 消息接收用户的 ID + * @param message
+ * 发送的文本消息内容
+ * 消息不超过 62KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return
+ * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
+ * + -1:发送失败,RtcEngine 实例未创建
+ * + -2:发送失败,uid 为空 + * @note
+ * + 在发送点对点文本消息,必须先调用 login{@link #IRTS#login} 完成登录。
+ * + 用户调用本接口发送文本信息后,会收到一次 onMessageSendResult{@link #IRTSEventHandler#onMessageSendResult} 回调,得知消息是否成功发送。
+ * + 若文本消息发送成功,则 uid 所指定的用户会通过 onMessageReceived{@link #IRTSEventHandler#onMessageReceived} 回调收到该消息。 + */ + + virtual int64_t sendMessage(const char* uid, const char* message, bytertc::MessageConfig config) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 给房间外指定的用户发送二进制消息(P2P) + * @param uid
+ * 消息接收用户的 ID + * @param length
+ * 二进制字符串的长度 + * @param message
+ * 发送的二进制消息内容
+ * 消息不超过 64KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return
+ * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
+ * + -1:发送失败,RtcEngine 实例未创建
+ * + -2:发送失败,uid 为空 + * @note
+ * + 在发送点对点二进制消息前,必须先调用 login{@link #IRTS#login} 完成登录。
+ * + 用户调用本接口发送二进制消息后,会收到一次 onMessageSendResult{@link #IRTSEventHandler#onMessageSendResult} 回调,通知消息是否发送成功。
+ * + 若二进制消息发送成功,则 uid 所指定的用户会通过 onBinaryMessageReceived{@link #IRTSEventHandler#onBinaryMessageReceived} 回调收到该条消息。 + */ + + virtual int64_t sendBinaryMessage(const char* uid, int length, const uint8_t* message, bytertc::MessageConfig config) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 客户端给应用服务器发送文本消息(P2Server) + * @param message
+ * 发送的文本消息内容
+ * 消息不超过 62KB。 + * @return
+ * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
+ * + -1:发送失败,RtcEngine 实例未创建 + * @note
+ * + 在向业务服务器发送文本消息前,必须先调用 login{@link #IRTS#login} 完成登录,随后调用 setServerParams{@link #IRTS#setServerParams} 设置业务服务器。
+ * + 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTSEventHandler#onServerMessageSendResult} 回调,通知消息发送方是否发送成功。
+ * + 若文本消息发送成功,则之前调用 setServerParams{@link #IRTS#setServerParams} 设置的业务服务器会收到该条消息。 + */ + + virtual int64_t sendServerMessage(const char* message) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 客户端给应用服务器发送二进制消息(P2Server) + * @param length
+ * 二进制字符串的长度 + * @param message
+ * 发送的二进制消息内容
+ * 消息不超过 64KB。 + * @return
+ * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
+ * + -1:发送失败,RtcEngine 实例未创建 + * @note
+ * + 在向业务服务器发送二进制消息前,必须先调用 login{@link #IRTS#login} 完成登录,随后调用 setServerParams{@link #IRTS#setServerParams} 设置业务服务器。
+ * + 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTSEventHandler#onServerMessageSendResult} 回调,通知消息发送方发送成功或失败。
+ * + 若二进制消息发送成功,则之前调用 setServerParams{@link #IRTS#setServerParams} 设置的业务服务器会收到该条消息。 + */ + + virtual int64_t sendServerBinaryMessage(int length, const uint8_t* message) = 0; + + /** + * + * @type api + * @region 房间管理 + * @brief 创建房间实例。 + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。 + * 多次调用此方法以创建多个 IRTSRoom{@link #IRTSRoom} 实例。分别调用各 IRTSRoom 实例中的 joinRoom{@link #IRTCRoom#joinRoom} 方法,同时加入多个房间。 + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTSRoom{@link #IRTSRoom} 房间实例。 + * @note
+ * + 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTSRoom 实例,再调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * + 多房间模式下,创建多个房间实例需要使用不同的 room_id,否则会导致创建房间失败。 + */ + + virtual IRTSRoom* createRoom(const char* room_id) = 0; + + /** + * + * @type api + * @region 引擎管理 + * @brief 设置运行时的参数 + * @param json_string json 序列化之后的字符串 + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + */ + + virtual int setRuntimeParameters(const char * json_string) = 0; + + /** + * + * @hidden(macOS, Windows, Linux) + * @type api + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param enhance 是否开启。默认不开启。 + * @return 方法调用结果:
+ * + 0: 成功。
+ * + -1:失败,内部错误。
+ */ + + virtual int setCellularEnhancement(bool enhance) = 0; + + /** + * + * @type api + * @region 代理 + * @brief 设置本地代理 + * @param configurations 本地代理配置参数。参看 LocalProxyConfiguration{@link #LocalProxyConfiguration}。
+ * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
+ * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @param configuration_num 本地代理配置参数的数量。 + * @note 要设置本地代理,调用 setLocalProxy{@link #IRTS#setLocalProxy}。 + */ + + virtual int setLocalProxy( + const bytertc::LocalProxyConfiguration* configurations, + int configuration_num) = 0; + + /** + * + * @type api + * @region 引擎管理 + * @brief 创建 RTCEngine 实例。
+ * 如果当前线程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
+ * 如果当前线程中已创建了引擎实例,再次调用此方法时,会创建另一个独立的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTSEventHandler{@link #IRTSEventHandler} 。 + * @return
+ * + IRTS:创建成功。返回一个可用的 IRTS{@link #IRTS} 实例
+ * + Null:创建失败。 + * @note
+ * + 如果你在同一个线程中创建了多个引擎实例,这些实例必须分别调用 destroyRTS{@link #destroyRTS} 销毁。 + * + 在 Linux 平台上创建引擎实例的数量取决于系统的硬件性能。 + */ + + static BYTERTC_STATIC_API IRTS* createRTS(const bytertc::EngineConfig& config, IRTSEventHandler* event_handler); + + /** + * + * @type api + * @region 引擎管理 + * @brief 销毁由 createRTS{@link #createRTS} 创建的 RTCEngine 实例,并释放所有相关资源。 + * @param engine createRTS{@link #createRTS} 时,返回的实例。 + * @note
+ * + 请确保和需要销毁的 IRTS{@link #IRTS} 实例相关的业务场景全部结束后,才调用此方法。
+ * + 该方法在调用之后,会销毁所有和此 IRTS{@link #IRTS} 实例相关的内存,并且停止与媒体服务器的任何交互。
+ * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ + + static BYTERTC_STATIC_API void destroyRTS(); + + /** + * + * @type api + * @region 引擎管理 + * @brief 获取当前 SDK 版本信息。 + * @return 当前 SDK 版本信息。 + */ + + static BYTERTC_STATIC_API const char* getSDKVersion(); + + /** + * + * @type api + * @region 引擎管理 + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param log_config 本地日志参数,参看 LogConfig{@link #LogConfig}。 + * @return
+ * + 0:成功。 + * + –1:失败,本方法必须在创建引擎前调用。 + * + –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTS{@link #createRTS} 之前调用。 + */ + + static BYTERTC_STATIC_API int setLogConfig(const bytertc::LogConfig& log_config); +}; +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h new file mode 100644 index 0000000..f121d32 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Event Handler Lite +*/ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" + +namespace byterts { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSEventHandler { +public: + + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTSEventHandler() { + } + + /** + * + * @type callback + * @region 警告码 + * @brief 当内部发生警告事件时触发该回调 + * @param warn + * 警告标识码,详见:WarningCode{@link #WarningCode} + */ + + virtual void onWarning(int warn) { + (void)warn; + } + + /** + * + * @type callback + * @region 错误码 + * @brief 当 SDK 内部发生不可逆转错误时触发该回调。 + * @param err 错误标识码,参看 ErrorCode{@link #ErrorCode} + */ + + virtual void onError(int err) { + (void)err; + } + + /** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。 + * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param extension_name 插件名字 + * @param msg 失败说明 + */ + + void onExtensionAccessError(const char* extension_name, const char* msg) { + (void)extension_name; + (void)msg; + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 端监控日志回调。当产生一个端监控事件时触发该回调。 + * @param log_type
+ * 事件类型。目前类型固定为 "live_webrtc_monitor_log"。 + * @param log_content
+ * 端监控日志内容。 + */ + + virtual void onLogReport(const char* log_type, const char* log_content) { + (void)log_type; + (void)log_content; + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ConnectionState{@link #ConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + */ + + virtual void onConnectionStateChanged(bytertc::ConnectionState state) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief SDK 当前网络连接类型改变回调。当 SDK 的当前网络连接类型发生改变时回调该事件。 + * @param type
+ * SDK 当前的网络连接类型,详见:NetworkType{@link #NetworkType} 。 + */ + + virtual void onNetworkTypeChanged(bytertc::NetworkType type) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 周期性(2s)地发出回调,报告当前cpu与memory使用率 + * @param stats 返回包含当前系统状态信息的结构体,详见 SysStats{@link #SysStats} + */ + + virtual void onSysStats(const bytertc::SysStats& stats) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 创建房间失败回调。 + * @param room_id 房间 ID。 + * @param error_code 创建房间错误码,具体原因参看 ErrorCode{@link #ErrorCode}。 + */ + + virtual void onCreateRoomStateChanged(const char* room_id, int error_code) { + (void)room_id; + (void)error_code; + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief HTTP 代理连接状态改变时,收到该回调。 + * @param state 当前 HTTP 代理连接状态,详见 HttpProxyState{@link #HttpProxyState} + */ + + virtual void onHttpProxyState(int state) { + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief HTTPS 代理连接状态改变时,收到该回调。 + * @param state 当前 HTTPS 代理连接状态,详见 HttpProxyState{@link #HttpProxyState} + */ + + virtual void onHttpsProxyState(int state) { + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief Socks5 代理状态改变时,收到该回调。 + * @param state SOCKS5 代理连接状态,详见 Socks5ProxyState{@link #Socks5ProxyState} + * @param cmd 代理连接的每一步操作命令 + * @param proxy_address 代理地址信息 + * @param local_address 当前连接使用的本地地址 + * @param remote_address 远端的连接地址 + */ + + virtual void onSocks5ProxyState(int state, + const char* cmd, + const char* proxy_address, + const char* local_address, + const char* remote_address) { + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 登录结果回调 + * @param uid
+ * 登录用户 ID + * @param error_code
+ * 登录结果
+ * 详见 LoginErrorCode{@link #LoginErrorCode}。 + * @param elapsed
+ * 从调用 login{@link #IRTS#login} 接口开始到返回结果所用时长
+ * 单位为 ms。 + * @note 调用 login{@link #IRTS#login} 后,会收到此回调。 + */ + + virtual void onLoginResult(const char* uid, int error_code, int elapsed) { + (void)uid; + (void)error_code; + (void)elapsed; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 登出结果回调 + * @param reason 用户登出的原因,参看 LogoutReason{@link #LogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #IRTS#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + */ + + virtual void onLogout(bytertc::LogoutReason reason) { + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 设置应用服务器参数的返回结果 + * @param error
+ * 设置结果
+ * + 返回 200,设置成功
+ * + 返回其他,设置失败 + * @note 调用 setServerParams{@link #IRTS#setServerParams} 后,会收到此回调。 + */ + + virtual void onServerParamsSetResult(int error) { + (void)error; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 查询对端或本端用户登录状态的返回结果 + * @param peer_user_id 需要查询的用户 ID。 + * @param status 查询的用户登录状态。详见 UserOnlineStatus{@link #UserOnlineStatus}。 + * @note 必须先调用 getPeerOnlineStatus{@link #IRTS#getPeerOnlineStatus},才能收到此回调。 + */ + + virtual void onGetPeerOnlineStatus(const char* peer_user_id, int status) { + (void)peer_user_id; + (void)status; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 收到房间外用户调用 sendMessage{@link #IRTS#sendMessage} 发来的文本消息时,会收到此回调 + * @param uid 消息发送者 ID。 + * @param message
+ * 收到的文本消息内容 + */ + + virtual void onMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 收到房间外用户调用 sendBinaryMessage{@link #IRTS#sendBinaryMessage} 发来的二进制消息时,会收到此回调。 + * @param uid 消息发送者 ID。 + * @param size 二进制消息长度。 + * @param message 收到的二进制消息内容。 + */ + + virtual void onBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 给房间外指定的用户发送消息的回调。 + * @param msgid 消息的 ID。
+ * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @note 当调用 sendMessage{@link #IRTS#sendMessage} 或 sendBinaryMessage{@link #IRTS#sendBinaryMessage} 发送消息后,会收到此回调。 + */ + + virtual void onMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 给应用服务器发送消息的回调 + * @param msgid 本条消息的 ID
+ * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @param message 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。 + * @note 当调用 sendServerMessage{@link #IRTS#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTS#sendServerBinaryMessage} 发送消息后,会收到此回调。 + */ + + virtual void onServerMessageSendResult(int64_t msgid, int error, const bytertc::ServerACKMsg& msg) { + (void)msgid; + (void)error; + (void)msg; + } + + /** + * + * @type callback + * @brief 调用 StartCloudProxy{@link #IRtcEngineLite#StartCloudProxy} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + */ + + virtual void onCloudProxyConnected(int interval) { + (void)interval; + } + + /** + * + * @type callback + * @brief 调用 setLocalProxy{@link #IRTS#setLocalProxy} 设置本地代理,SDK对代理连接的状态 + * 回调此接口。 + * @param local_proxy_type 本地代理类型:sock5 或 httptunnel + * @param local_proxy_state 本地代理状态。参看 LocalProxyState{@link #LocalProxyState}。
+ * @param local_proxy_error 本地代理错误。参看 LocalProxyError{@link #LocalProxyError}。
+ */ + + virtual void onLocalProxyStateChanged(bytertc::LocalProxyType local_proxy_type, bytertc::LocalProxyState local_proxy_state, bytertc::LocalProxyError local_proxy_error) { + (void)local_proxy_type; + (void)local_proxy_state; + (void)local_proxy_error; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room.h new file mode 100644 index 0000000..5c8952e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" +#include "byterts_room_event_handler.h" + +namespace byterts { + +/** + * + * @type api + * @brief 房间接口 + */ + +class IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoom() { + } + + /** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRoom{@link #IRTS#createRoom} 所创建的房间实例。 + */ + + virtual void destroy() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 创建/加入 RTS 房间:房间不存在时即创建房间;房间存在时,未加入房间的用户可加入这个房间。
+ * 同一房间内的用户间可以相互通话。
+ * 进房后重复调用无效,用户必须调用 `leaveRoom` 退出当前房间后,才能加入下一个房间。 + * @return
+ * + 0: 成功
+ * + -1:room_id / user_info.uid 包含了无效的参数。
+ * + -2:已经在房间内。 + * @note
+ * + 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 OnError{@link #IRTCAudioEventHandler#OnError} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。
+ * + 本地用户调用此方法加入房间成功后,会收到 回调通知。
+ * + 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,此时 SDK 将会自动重连。重连成功后,本地会收到 回调通知。如果加入房间的用户可见,远端用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + */ + + virtual int joinRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 离开 RTS 房间。
+ * 用户调用此方法离开房间,结束通话过程,释放所有通话相关的资源。
+ * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
+ * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调通知。
+ * + 可见的用户离开房间后,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。
+ * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调。
+ * + 调用 joinRoom{@link #IRTCRoom#joinRoom} 方法加入房间后,必须调用此方法离开房间,否则无法进入下一个房间。无论当前是否在房间内,都可以调用此方法。重复调用此方法没有负面影响。
+ */ + + virtual int leaveRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 设置 IRTSRoom{@link #IRTSRoom} 对象的事件句柄。 + * 通过设置事件句柄可以监听此 IRTSRoom{@link #IRTSRoom} 对象对应的房间的回调事件。 + * @param room_event_handler 回调处理器,详见 IRTSRoomEventHandler{@link #IRTSRoomEventHandler} + * @return
+ * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int setRTSRoomEventHandler(IRTSRoomEventHandler* room_event_handler) = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param message 用户发送的广播消息,消息不超过 62KB。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
+ * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
+ * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
+ * + 同一房间内的其他用户会收到 onRoomMessageReceived{@link #IRTSRoomEventHandler#onRoomMessageReceived} 回调。 + */ + + virtual int64_t sendRoomMessage(const char* message) = 0; + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param size 发送的二进制消息长度 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
+ * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
+ * + 同一房间内的其他用户会收到 onRoomBinaryMessageReceived{@link #IRTSRoomEventHandler#onRoomBinaryMessageReceived} 回调。 + */ + + virtual int64_t sendRoomBinaryMessage(int size, const uint8_t* message) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h new file mode 100644 index 0000000..dcf9351 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +namespace byterts { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoomEventHandler() {} + + /** + * + * @type callback + * @region 房间管理 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
+ * + 0: 加入房间成功。
+ * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ErrorCode{@link #ErrorCode} 及 WarningCode{@link #WarningCode}。 + * @param extra_info 额外信息,如 `{"elapsed":1187,"join_type":0}`。 + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。 + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom{@link #IRTCRoom#joinRoom} 到加入房间成功所经历的时间间隔,单位为 ms。 + */ + + virtual void onRoomStateChanged(const char* room_id, const char* uid, + int state, const char* extra_info) { + (void)room_id; + (void)state; + (void)extra_info; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 离开房间回调。
+ * 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并在释放所有与通话相关的音频资源后,通过此回调通知用户离开房间成功。
+ * @note
+ * + 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #IRTSRoom#destroy} 销毁房间实例方法销毁 RTS 引擎,则将无法收到此回调事件。
+ * + 离开房间后,如果 App 需要使用系统音频设备,则建议收到此回调后再初始化音频设备,否则可能由于 SDK 占用音频设备而导致初始化失败。
+ */ + + virtual void onLeaveRoom() { + } + + /** + * + * @deprecated since 3.41 and will be deleted in 3.51, user instead. + * @type callback + * @region 房间管理 + * @brief SDK 发生警告回调。
+ * SDK内部遇到可恢复错误时,在尝试自动恢复的同时,会通过此回调通知用户。此回调事件仅用作通知。
+ * @param warn 警告码,参看 WarningCode{@link #WarningCode}。
+ */ + + virtual void onRoomWarning(int warn) { + (void)warn; + } + + /** + * + * @deprecated since 3.41 and will be deleted in 3.51. + * @type callback + * @region 房间管理 + * @brief SDK 发生错误回调。
+ * SDK 内部遇到不可恢复错误时,会通过此回调通知 App,需要 App 根据错误码进行操作或提示用户。
+ * @param err 错误码,参看 ErrorCode{@link #ErrorCode}。
+ */ + + virtual void onRoomError(int err) { + (void)err; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 远端用户加入房间的回调。 + * @param uid 加入房间的用户 ID
+ * @param elapsed 此参数无意义 + */ + + virtual void onUserJoined(const char* uid, int elapsed) { + (void)uid; + (void)elapsed; + } + + /** + * + * @type callback + * @brief 远端用户离开房间时,本地用户会收到此事件 + * @param uid 离开房间的远端用户 ID。 + * @param reason 用户离开房间的原因。参看 UserOfflineReason{@link #UserOfflineReason}。 + */ + + virtual void onUserLeave(const char* uid, bytertc::UserOfflineReason reason) { + (void)uid; + (void)reason; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内广播消息的回调。
+ * 当房间内的其他用户调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 时,你会收到此回调。 + * @param uid 发送该消息的用户的 ID。 + * @param message 收到的消息内容。 + */ + + virtual void onRoomMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内二进制广播消息的回调。
+ * 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @param uid 发送该消息的用户的 ID。 + * @param size 收到的二进制消息长度。 + * @param message 收到的二进制消息内容。 + */ + + virtual void onRoomBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 当调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 函数发送消息后,回调此条消息的发送结果(反馈)。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果。详见 RoomMessageSendResult{@link #RoomMessageSendResult}。 + */ + + virtual void onRoomMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h new file mode 100644 index 0000000..0c81547 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h @@ -0,0 +1,273 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Advance API +*/ + +#pragma once + +#include "../bytertc_engine.h" + +#include +#ifdef __ANDROID__ +#include "jni.h" +#endif + + +#ifdef __GNUC__ +# define attribute_deprecated __attribute__((deprecated)) +#elif defined(_MSC_VER) +# define attribute_deprecated __declspec(deprecated) +#else +# define attribute_deprecated +#endif + +namespace bytertc { +/** + * + * @hidden for internal use only + * @brief 设置应用的状态 + * @param engine
+ * 要通知的引擎 + * @param app_state 应用状态字符串 + */ + +BYTERTC_API void setAppState(void* engine, const char* app_state); +/** + * + * @hidden(iOS,macOS,Windows,Linux) for internal use only + * @type api + * @brief 用于设置 Android 的 ApplicationContext 给 Engine 使用,
+ * 如果 Android 使用纯 C++接口,则该方法必须在引擎创建前设置 + * @param j_egl_context
+ * 传入 Java 的 android.content.Context 类型的 EGLContext + * @list 引擎管理 + */ + +BYTERTC_API void setApplicationContext(void* j_application_context); +BYTERTC_API int setLogConfig(const LogConfig& log_config); + +/** + * + * @region 视频管理 + * @type keytype + * @brief 硬件加速设备类型 + */ + +enum HWDeviceType { + /** + * + * @brief 未知的设备类型 + */ + + kHWDeviceTypeNone, + + /** + * + * @brief direct3d 11 视频加速设备 + */ + + kHWDeviceTypeD3D11, + + /** + * + * @brief cuda 硬件加速设备 + * @note cuda 是 nvidia 平台下硬件加速设备 + */ + + kHWDeviceTypeCuda, + + /** + * + * @brief intel 平台下 qsv 加速设备 + */ + + kHWDeviceTypeQsv, + + /** + * + * @brief windows 平台 dx 硬件加速设备 + */ + + kHWDeviceTypeDxva2, + + /** + * + * @brief Android 平台下硬件加速设备 mediacodec + */ + + kHWDeviceTypeMediaCodec, + + /** + * + * @brief IOS、MACOS 平台下硬件加速设备 VideoToolbox + */ + + kHWDeviceTypeVideoToolbox, + /** + * + * @brief android、linux 平台下硬件加速设备 egl context + */ + + kHWDeviceTypeEglContext, + + /** + * + * @brief linux、windows 平台下硬件加速设备 va context + */ + + kHWDeviceTypeVaapi, +}; + +/** + * + * @hidden(macOS, Linux, iOS, Android) + * @type keytype + * @brief 硬编码设备 context + */ + +enum HWDeviceContextKey { + /** + * + * @brief cuda context + */ + + kHWDeviceContextKeyCudaContext, + /** + * + * @brief derict3D11 设备 + */ + + kHWDeviceContextKeyD3D11Device, + /** + * + * @brief derict3D11 设备 context + */ + + kHWDeviceContextKeyD3D11DeviceContext, + /** + * + * @brief egl 设备 context + */ + + kHWDeviceContextKeyEglContext, + /** + * + * @brief vadisplay 设备 context + */ + + kHWDeviceContextKeyVADisplay, +}; + +/** + * + * @hidden(macOS, Linux, iOS, Android) + * @type keytype + * @brief 硬件加速设备 context + */ + +class IHWDeviceContext { +public: + virtual ~IHWDeviceContext() = default; + /** + * + * @brief 获取硬件加速设备 context 类型 + * @return 硬件加速设备类型,详见 HWDeviceType{@link #HWDeviceType} + */ + + virtual HWDeviceType deviceType() const = 0; + /** + * + * @brief 设置属性 + * @param key 硬件加速设备 context 类型,详见 HWDeviceContextKey{@link #HWDeviceContextKey} + * @param value 指向硬件加速设备 context 地址的指针 + */ + + virtual void setProperty(HWDeviceContextKey key, void* value) = 0; + /** + * + * @brief 获取属性 + * @param key 硬件加速设备 context 类型,详见 HWDeviceContextKey{@link #HWDeviceContextKey} + * @return 返回硬件加速设备 context 地址的指针 + */ + + virtual void* getProperty(HWDeviceContextKey key) = 0; + /** + * + * @brief 内部 context 是否由该实例拥有 + * @return + * - true: 硬件设备 context 被实例对象拥有 + * - false: 硬件设备上 context 文不被实例对象拥有 + */ + + virtual bool ownContext() const = 0; + /** + * + * @brief 设置 context 是否被实例对象拥有 + * @param own_context
+ * - true: context 被实例对象拥有 + * - false: context 不被实例对象拥有 + */ + + virtual void setOwnContext(bool own_context) = 0; + /** + * + * @brief 转移硬件设备 context, + * @return 指向硬件设备 context 的指针 + */ + + virtual IHWDeviceContext* moveContext() = 0; + /** + * + * @brief 释放实例对象 + */ + + virtual void release() = 0; +}; + +/** + * + * @hidden for internal use only + * @brief 创建一个具有指定设备类型的硬件设备上下文 + */ + + +BYTERTC_API IHWDeviceContext* createHwDeviceContext(HWDeviceType device_type); + +/** + * + * @hidden for internal use only + * @brief 设置视频源的设备上下文信息 + * @param engine
+ * 要设置的引擎,详见 IRTCEngine{@link #IRTCEngine} + * @param hw_context
+ * 设置视频帧,详见:IHWDeviceContext{@link #IHWDeviceContext} + * @note 用于硬件编码传入 GPU 内存时使用 + */ + +BYTERTC_API void setVideoSourceHWDeviceContext(void* engine, IHWDeviceContext* hw_context); + +/** + * + * @hidden for internal use only + * @type callback + * @brief 本地音频帧监测器 + * @list 自定义流处理 + */ + +class ILocalEncodedAudioFrameObserver { +public: + virtual ~ILocalEncodedAudioFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 RegisterLocalEncodedAudioFrameObserver 后,SDK 收到本地音频帧信息时,回调该事件 + * @param audio_source 本地音频源类型,详见 IAudioSource{@link #IAudioSource} + * @param audio_stream 本地音频帧信息,参看 IEncodedAudioFrame + * @list 自定义流处理 + */ + + virtual void onLocalEncodedAudioFrame(IAudioSource* audio_source, const EncodedAudioFrameData& audio_stream) = 0; +}; +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h new file mode 100644 index 0000000..1a35cd8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h @@ -0,0 +1,2275 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Defines + */ + +#pragma once + +#include "bytertc_media_defines.h" +#include +#include + +#define SPECTRUM_SIZE 257 + +namespace bytertc { +/** + * + * @type keytype + * @brief 音频采样率,单位为 Hz。 + */ + +enum AudioSampleRate { + /** + * + * @brief 默认设置。48000Hz。 + */ + + kAudioSampleRateAuto = -1, + /** + * + * @brief 8000Hz + */ + + kAudioSampleRate8000 = 8000, + /** + * + * @brief 11025Hz + */ + + kAudioSampleRate11025 = 11025, + /** + * + * @brief 16000Hz + */ + + kAudioSampleRate16000 = 16000, + /** + * + * @brief 22050Hz + */ + + kAudioSampleRate22050 = 22050, + /** + * + * @brief 24000Hz + */ + + kAudioSampleRate24000 = 24000, + /** + * + * @brief 32000Hz + */ + + kAudioSampleRate32000 = 32000, + /** + * + * @brief 44100Hz + */ + + kAudioSampleRate44100 = 44100, + /** + * + * @brief 48000Hz + */ + + kAudioSampleRate48000 = 48000 +}; +/** + * + * @type keytype + * @brief 音频声道。 + */ + +enum AudioChannel { + /** + * + * @brief 默认设置。 + */ + + kAudioChannelAuto = -1, + /** + * + * @brief 单声道 + */ + + kAudioChannelMono = 1, + /** + * + * @brief 双声道 + */ + + kAudioChannelStereo = 2 +}; + +/** + * + * @type keytype + * @brief 音频格式 + */ + +struct AudioFormat { + /** + * + * @brief 音频采样率,详见 AudioSampleRate{@link #AudioSampleRate} + */ + + AudioSampleRate sample_rate = kAudioSampleRateAuto; + /** + * + * @brief 音频声道,详见 AudioChannel{@link #AudioChannel} + */ + + AudioChannel channel = kAudioChannelAuto; + /** + * + * @brief 单次回调的音频帧中包含的采样点数。默认值为 `0`,此时,采样点数取最小值。
+ * 最小值为回调间隔是 0.01s 时的值,即 `sampleRate * channel * 0.01s`。
+ * 最大值是 `2048`。超出取值范围时,采样点数取默认值。
+ * 该参数仅在设置读写回调时生效,调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 开启只读模式回调时设置该参数不生效。 + */ + + int samples_per_call = 0; +}; +/** + * + * @type keytype + * @brief 返回给音频处理器的音频类型。 + */ + +enum AudioProcessorMethod{ + /** + * + * @brief 本地采集的音频。 + */ + + kAudioProcessorMethodRecord = 0, + /** + * + * @brief 远端音频流的混音音频。 + */ + + kAudioProcessorMethodPlayback = 1, + /** + * + * @brief 各个远端音频流。 + */ + + kAudioProcessorMethodRemoteUser = 2, + /** + * + * @hidden(Windows,Linux,macOS) + * @brief 软件耳返音频。 + */ + + kAudioProcessorMethodEarMonitor = 3, + /** + * + * @hidden(Linux) + * @brief 屏幕共享音频。 + */ + + kAudioProcessorMethodScreen = 4, +}; +/** + * + * @type keytype + * @brief 音频设备类型 + */ + +enum RTCAudioDeviceType { + /** + * + * @brief 未知设备类型 + */ + + kRTCAudioDeviceTypeUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + kRTCAudioDeviceTypeRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + kRTCAudioDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流音频设备 + */ + + kRTCAudioDeviceTypeScreenCaptureDevice = 2, +}; + +/** + * + * @type keytype + * @brief 音频播放设备 + */ + +enum AudioRoute { + /** + * + * @brief 默认设备 + */ + + kAudioRouteDefault = -1, + /** + * + * @brief 有线耳机 + */ + + kAudioRouteHeadset = 1, + /** + * + * @brief 听筒 + */ + + kAudioRouteEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + kAudioRouteSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + kAudioRouteHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + kAudioRouteHeadsetUSB = 5 +}; + +/** + * + * @type keytype + * @brief 音频播放设备 + */ + +enum AudioPlaybackDevice { + /** + * + * @brief 有线耳机 + */ + + kAudioPlaybackDeviceHeadset = 1, + /** + * + * @brief 听筒 + */ + + kAudioPlaybackDeviceEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + kAudioPlaybackDeviceSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + kAudioPlaybackDeviceHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + kAudioPlaybackDeviceHeadsetUSB = 5 +}; + +/** + * + * @type keytype + * @brief 音频场景类型。
+ * 选择音频场景后,SDK 会根据操作系统和开麦、闭麦状态,应用通话音量或媒体音量。参看[通话音量与媒体音量](https: + * 你可以调用 `setAudioScenario` 设置音频场景。
+ * 如果以下音频场景类型无法满足你的业务需要,请联系技术支持人员。 + */ + +enum AudioScenarioType { + /** + * + * @brief 默认场景,适用大部分场景。 + */ + + kAudioScenarioTypeDefault = 0, + /** + * + * @brief 聊天室场景。通话清晰度较高,适用于会议,聊天室场景。 + */ + + kAudioScenarioTypeChatRoom = 1, + /** + * + * @brief 高音质场景。适用于音乐为主的场景,如 KTV,音乐聊天室等。 + */ + + kAudioScenarioTypeGameStreaming = 2, + /** + * + * @brief 合唱场景。延迟较低。 + */ + + kAudioScenarioTypeChorus = 3, + /** + * + * @brief 教育场景。适用于以人声教学内容为主的高音质场景。 + */ + + kAudioScenarioTypeEducation = 4, + /** + * + * @brief AI 对话场景。适用于真人与 AI 智能体互动的场景。使用此场景时,还需在通过 `createRTCEngine` 创建引擎时,通过 parameters 字段传入私有参数 `"rtc.fg_config":"aigc_media_360=true"`。 + */ + + kAudioScenarioTypeAiClient = 5, + +}; + +/** + * + * @type keytype + * @brief 变声特效类型。如需更多类型,联系技术支持。 + */ + +enum VoiceChangerType { + /** + * + * @brief 原声,不含特效 + */ + + kVoiceChangerTypeOriginal = 0, + /** + * + * @brief 巨人 + */ + + kVoiceChangerTypeGiant = 1, + /** + * + * @brief 花栗鼠 + */ + + kVoiceChangerTypeChipmunk = 2, + /** + * + * @brief 小黄人 + */ + + kVoiceChangerTypeMinionst = 3, + /** + * + * @brief 颤音 + */ + + kVoiceChangerTypeVibrato = 4, + /** + * + * @brief 机器人 + */ + + kVoiceChangerTypeRobot = 5, +}; + +/** + * + * @type keytype + * @brief 混响特效类型 + */ + +enum VoiceReverbType { + /** + * + * @brief 原声,不含特效 + */ + + kVoiceReverbTypeOriginal = 0, + /** + * + * @brief 回声 + */ + + kVoiceReverbTypeEcho = 1, + /** + * + * @brief 演唱会 + */ + + kVoiceReverbTypeConcert = 2, + /** + * + * @brief 空灵 + */ + + kVoiceReverbTypeEthereal = 3, + /** + * + * @brief KTV + */ + + kVoiceReverbTypeKTV = 4, + /** + * + * @brief 录音棚 + */ + + kVoiceReverbTypeStudio = 5, + /** + * + * @brief 虚拟立体声 + */ + + kVoiceReverbTypeVirtualStereo = 6, + /** + * + * @brief 空旷 + */ + + kVoiceReverbTypeSpacious = 7, + /** + * + * @brief 3D 人声 + */ + + kVoiceReverbType3D = 8, + /** + * + * @hidden for internal use only + * @brief 流行 + */ + + kVoiceReverbTypePop = 9, + /** + * + * @hidden for internal use only + * @brief 蹦迪 + */ + + kVoiceReverbTypeDisco = 10, + /** + * + * @hidden for internal use only + * @brief 老唱片 + */ + + kVoiceReverbTypeOldRecord = 11, + /** + * + * @hidden for internal use only + * @brief 和声 + */ + + kVoiceReverbTypeHarmony = 12, + /** + * + * @hidden for internal use only + * @brief 摇滚 + */ + + kVoiceReverbTypeRock = 13, + /** + * + * @hidden for internal use only + * @brief 蓝调 + */ + + kVoiceReverbTypeBlues = 14, + /** + * + * @hidden for internal use only + * @brief 爵士 + */ + + kVoiceReverbTypeJazz = 15, + /** + * + * @hidden for internal use only + * @brief 电子 + */ + + kVoiceReverbTypeElectronic = 16, + /** + * + * @hidden for internal use only + * @brief 黑胶 + */ + + kVoiceReverbTypeVinyl = 17, + /** + * + * @hidden for internal use only + * @brief 密室 + */ + + kVoiceReverbTypeChamber = 18, + /** + * + * @hidden for internal use only + * @brief 增强原声 + */ + + kVoiceReverbTypeEnhanceOriginal = 19, + /** + * + * @hidden for internal use only + * @brief 浴室 + */ + + kVoiceReverbTypeBathroom = 20, + /** + * + * @hidden for internal use only + * @brief 自然 + */ + + kVoiceReverbTypeNatural = 21, + + /** + * + * @hidden for internal use only + * @brief 楼道 + */ + + kVoiceReverbTypeHallway = 22, +}; +/** + * + * @type keytype + * @brief 音频均衡效果。 + */ + +enum VoiceEqualizationBandFrequency { + /** + * + * @brief 中心频率为 31Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency31 = 0, + /** + * + * @brief 中心频率为 62Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency62 = 1, + /** + * + * @brief 中心频率为 125Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency125 = 2, + /** + * + * @brief 中心频率为 250Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency250 = 3, + /** + * + * @brief 中心频率为 500Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency500 = 4, + /** + * + * @brief 中心频率为 1kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency1k = 5, + /** + * + * @brief 中心频率为 2kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency2k = 6, + /** + * + * @brief 中心频率为 4kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency4k = 7, + /** + * + * @brief 中心频率为 8kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency8k = 8, + /** + * + * @brief 中心频率为 16kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency16k = 9, +}; +/** + * + * @type keytype + * @brief 语音均衡效果。 + */ + +struct VoiceEqualizationConfig { + /** + * + * @brief 频带。参看 VoiceEqualizationBandFrequency{@link #VoiceEqualizationBandFrequency}。 + */ + + VoiceEqualizationBandFrequency frequency; + /** + * + * @brief 频带增益(dB)。取值范围是 `[-15, 15]`。 + */ + + int gain; +}; +/** + * + * @type keytype + * @brief 音频混响效果。 + */ + +struct VoiceReverbConfig { + /** + * + * @brief 混响模拟的房间大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。房间越大,混响越强。 + */ + + float room_size = 50.0f; + /** + * + * @brief 混响的拖尾长度,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + + float decay_time = 50.0f; + /** + * + * @brief 混响的衰减阻尼大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + + float damping = 50.0f; + /** + * + * @brief 早期反射信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + + float wet_gain = 0.0f; + /** + * + * @brief 原始信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + + float dry_gain = 0.0f; + /** + * + * @brief 早期反射信号的延迟。取值范围 `[0.0, 200.0]`,单位为 ms。默认值为 `0.0f`。 + */ + + float pre_delay = 0.0f; +}; + +/** + * + * @type keytype + * @brief 音频流来源的用户 ID 及对应的音量。 + */ + +struct AudioVolumeInfo { + /** + * + * @brief 线性音量,取值范围是:[0, 255],与原始音量呈线性关系,数值越大,音量越大。
+ * 无声为 25 以下(绝对无声为 0,25 以下可视为无声),低音量为 25~76,中音量为 76~204,高音量为 204 以上。 + */ + + int linear_volume; + /** + * + * @brief 非线性音量,取值范围是:[–127, 0],单位 dB。此音量范围是将原始音量进行对数转化,在中低音量时分辨更为灵敏,适用于 Active Speaker(房间内最活跃用户)的识别。
+ * 高音量为 0~–20 dB,中音量为 –20~–40dB,低音量为 –40~–60dB,若低于 –60 dB,则为无声。 + */ + + int nonlinear_volume; + /** + * + * @brief 音频流来源的用户 ID + */ + + const char* uid; +}; + +/** + * + * @type keytype + * @brief 音频混音文件播放状态。 + */ + +enum AudioMixingState { + /** + * + * @brief 混音已加载 + */ + + kAudioMixingStatePreloaded = 0, + /** + * + * @brief 混音正在播放 + */ + + kAudioMixingStatePlaying, + /** + * + * @brief 混音暂停 + */ + + kAudioMixingStatePaused, + /** + * + * @brief 混音停止 + */ + + kAudioMixingStateStopped, + /** + * + * @brief 混音播放失败 + */ + + kAudioMixingStateFailed, + /** + * + * @brief 混音播放结束 + */ + + kAudioMixingStateFinished, + /** + * + * @brief 准备 PCM 混音 + */ + + kAudioMixingStatePCMEnabled, + /** + * + * @brief PCM 混音播放结束 + */ + + kAudioMixingStatePCMDisabled, +}; +/** + * + * @type keytype + * @brief 混音错误码。 + */ + +enum AudioMixingError { + /** + * + * @brief 正常 + */ + + kAudioMixingErrorOk = 0, + /** + * + * @brief 预加载失败。找不到混音文件或者文件长度超出 20s + */ + + kAudioMixingErrorPreloadFailed, + /** + * + * @brief 混音开启失败。找不到混音文件或者混音文件打开失败 + */ + + kAudioMixingErrorStartFailed, + /** + * + * @brief 混音 ID 异常 + */ + + kAudioMixingErrorIdNotFound, + /** + * + * @brief 设置混音文件的播放位置出错 + */ + + kAudioMixingErrorSetPositionFailed, + /** + * + * @brief 音量参数不合法,仅支持设置的音量值为[0, 400] + */ + + kAudioMixingErrorInValidVolume, + /** + * + * @brief 播放的文件与预加载的文件不一致。请先使用 unloadAudioMixing 卸载此前的文件。 + */ + + kAudioMixingErrorLoadConflict, + /** + * + * @brief 不支持此混音类型。 + */ + + kAudioMixingErrorIdTypeNotMatch, + /** + * + * @brief 设置混音文件的音调不合法 + */ + + kAudioMixingErrorInValidPitch, + /** + * + * @brief 设置混音文件的音轨不合法 + */ + + kAudioMixingErrorInValidAudioTrack, + /** + * + * @brief 混音文件正在启动中 + */ + + kAudioMixingErrorIsStarting, + /** + * + * @brief 设置混音文件的播放速度不合法 + */ + + kAudioMixingErrorInValidPlaybackSpeed, + /** + * + * @deprecated since 3.25 and will be deleted in 3.51 + * @brief 混音错误码,失败,已废弃 + */ + + kAudioMixingErrorCanNotOpen = 701, +}; +/** + * + * @type keytype + * @brief 播放状态。 + */ + +enum PlayerState { + /** + * + * @brief 播放未启动 + */ + + kPlayerStateIdle = 0, + /** + * + * @brief 已加载 + */ + + kPlayerStatePreloaded, + /** + * + * @brief 已打开 + */ + + kPlayerStateOpened, + /** + * + * @brief 正在播放 + */ + + kPlayerStatePlaying, + /** + * + * @brief 播放已暂停 + */ + + kPlayerStatePaused, + /** + * + * @brief 播放已被主动停止 + */ + + kPlayerStateStopped, + /** + * + * @brief 播放失败 + */ + + kPlayerStateFailed, + /** + * + * @brief 播放自然结束 + */ + + kPlayerStateFinished, + /** + * + * @brief 循环播放结束 + */ + + kPlayerStateLoopFinished, +}; + +/** + * + * @type keytype + * @brief 播放事件 + */ + +enum PlayerEvent { + /** + * + * @brief 开始切换音轨
+ * 开始调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 时,返回此状态。 + */ + + kPlayerEventSelectAudioTrackBegin, + /** + * + * @brief 切换音轨成功
+ * 调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 成功后,播放器切换到指定音轨播放,返回此状态。 + */ + + kPlayerEventSelectAudioTrackCompleted, + /** + * + * @brief 切换音轨失败
+ * 调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 失败后,播放器无法切换到指定音轨,继续之前的音轨播放过程,返回此状态。 + */ + + kPlayerEventSelectAudioTrackFailed, + /** + * + * @brief 试图移动播放位置
+ * 开始调用 `setPosition`{@link #IMediaPlayer#setPosition} 时,返回此状态。 + */ + + kPlayerEventSeekBegin, + /** + * + * @brief 移动播放位置成功
+ * 调用 `setPosition`{@link #IMediaPlayer#setPosition} 成功后,返回此状态。 + */ + + kPlayerEventSeekCompleted, + /** + * + * @brief 移动播放位置失败
+ * 调用 `setPosition`{@link #IMediaPlayer#setPosition} 失败时,返回此状态。 + */ + + kPlayerEventSeekFailed, +}; + +/** + * + * @type keytype + * @brief 播放错误码。 + */ + +enum PlayerError { + /** + * + * @brief 正常 + */ + + kPlayerErrorOK = 0, + /** + * + * @brief 不支持此类型 + */ + + kPlayerErrorFormatNotSupport, + /** + * + * @brief 无效的播放路径 + */ + + kPlayerErrorInvalidPath, + /** + * + * @brief 未满足前序接口调用的要求。请查看具体接口文档。 + */ + + kPlayerErrorInvalidState, + /** + * + * @brief 设置播放位置出错。 + */ + + kPlayerErrorInvalidPosition, + /** + * + * @brief 音量参数不合法。 + */ + + kPlayerErrorInvalidVolume, + /** + * + * @brief 音调参数设置不合法。 + */ + + kPlayerErrorInvalidPitch, + /** + * + * @brief 音轨参数设置不合法。 + */ + + kPlayerErrorInvalidAudioTrackIndex, + /** + * + * @brief 播放速度参数设置不合法 + */ + + kPlayerErrorInvalidPlaybackSpeed, + /** + * + * @brief 音效 ID 异常。还未加载或播放文件,就调用其他 API。 + */ + + kPlayerErrorInvalidEffectId, + /** + * + * @brief 资源正在播放中 + */ + + kPlayerErrorCurrentlyPlaying, +}; + +/** + * + * @type keytype + * @brief 是否开启耳返功能。 + */ + +enum EarMonitorMode { + /** + * + * @brief 关闭 + */ + + kEarMonitorModeOff = 0, + /** + * + * @brief 开启 + */ + + kEarMonitorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 耳返音频是否经过本地音频处理。 + */ + +enum EarMonitorAudioFilter { + /** + * + * @brief 无音频处理。 + */ + + kEarMonitorAudioFilterNone = 0x1, + /** + * + * @brief 经本地音频处理后的音频,包括 3A、变声、混响等 SDK 提供处理能力以及自定义音频处理。 + */ + + kEarMonitorAudioFilterReuseAudioProcessing = 0x8000 +}; + +/** + * + * @hidden currently not available + * @type keytype + * @region 音频管理 + * @brief 音频编码类型 + */ + +enum AudioCodecType { + /** + * + * @brief 未知编码类型 + */ + + kAudioCodecTypeNone = 0, + /** + * + * @brief Opus 编码类型 + */ + + kAudioCodecTypeOpus, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAAC, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACLC = 2, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACHEv1, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACHEv2, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACLCadts, +}; +/** + * + * @type keytype + * @brief 音频输入格式 + */ + +enum class AudioFormatType { + /** + * + * @brief PCM_S16 + */ + + kRawPCMs16 = 0, + /** + * + * @brief PCM_S32 + */ + + kRawPCMs32 = 1, +}; + +/** + * + * @type keytype + * @brief 蓝牙模式, 仅能在媒体模式下被设置 + */ + +enum BluetoothMode { + /** + * + * @brief 自动选择模式 + */ + + kBluetoothModeAuto = 0, + /** + * + * @brief 使用 A2DP 模式 + */ + + kBluetoothModeA2DP, + /** + * + * @brief HFP 模式 + */ + + kBluetoothModeHFP +}; + +/** + * + * @type keytype + * @brief 音频输入源类型 + */ + +enum AudioSourceType { + /** + * + * @brief 自定义采集音频源 + */ + + kAudioSourceTypeExternal = 0, + /** + * + * @brief RTC SDK 内部采集音频源 + */ + + kAudioSourceTypeInternal, +}; + +/** + * + * @type keytype + * @brief 音频输出类型 + */ + +enum AudioRenderType { + /** + * + * @brief 自定义渲染 + */ + + kAudioRenderTypeExternal = 0, + /** + * + * @brief RTC SDK 内部渲染 + */ + + kAudioRenderTypeInternal, +}; + +/** + * + * @type keytype + * @brief 混音播放类型 + */ + +enum AudioMixingType { + /** + * + * @brief 仅本地播放 + */ + + kAudioMixingTypePlayout, + /** + * + * @brief 仅远端播放 + */ + + kAudioMixingTypePublish, + /** + * + * @brief 本地和远端同时播放 + */ + + kAudioMixingTypePlayoutAndPublish +}; + +/** + * + * @type keytype + * @brief 混音播放声道类型 + */ + +enum AudioMixingDualMonoMode{ + /** + * + * @brief 和音频文件一致 + */ + + kAudioMixingDualMonoModeAuto, + /** + * + * @brief 只能听到音频文件中左声道的音频 + */ + + kAudioMixingDualMonoModeL, + /** + * + * @brief 只能听到音频文件中右声道的音频 + */ + + kAudioMixingDualMonoModeR, + /** + * + * @brief 能同时听到音频文件中左右声道的音频 + */ + + kAudioMixingDualMonoModeMix +}; +/** + * + * @type keytype + * @brief 混音配置 + */ + +struct AudioEffectPlayerConfig { + /** + * + * @brief 混音播放类型,详见 AudioMixingType{@link #AudioMixingType} + */ + + AudioMixingType type = kAudioMixingTypePlayoutAndPublish; + /** + * + * @brief 混音播放次数
+ * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + + int play_count = 1; + /** + * + * @brief 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + */ + + int pitch = 0; + /** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + + int start_pos = 0; +}; +/** + * + * @type keytype + * @brief 混音配置 + */ + +struct MediaPlayerConfig { + /** + * + * @brief 混音播放次数
+ * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + + int play_count = 1; + /** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + + int start_pos = 0; + /** + * + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} 的间隔。单位毫秒。
+ * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + */ + + int64_t callback_on_progress_interval = 0; + /** + * + * @brief 在采集音频数据时,附带本地混音文件播放进度的时间戳。启用此功能会提升远端人声和音频文件混音播放时的同步效果。
+ * - 仅在单个音频文件混音时使用有效。 + * - `true` 时开启此功能,`false` 时关闭此功能,默认为关闭。 + */ + + bool sync_progress_to_record_frame = false; + /** + * + * @brief 是否自动播放。如果不自动播放,调用 start{@link #IMediaPlayer#start} 播放音乐文件。 + */ + + bool auto_play = true; + /** + * + * @brief 混音播放类型,详见 AudioMixingType{@link #AudioMixingType} + */ + + AudioMixingType type = kAudioMixingTypePlayoutAndPublish; +}; + +/** + * + * @type keytype + * @brief 音量回调模式。 + */ + +enum AudioReportMode { + /** + * + * @brief 默认始终开启音量回调。 + */ + + kAudioReportModeNormal, + /** + * + * @brief 可见用户进房并停止推流后,关闭音量回调。 + */ + + kAudioReportModeDisconnect, + /** + * + * @brief 可见用户进房并停止推流后,开启音量回调,回调值重置为 0。 + */ + + kAudioReportModeReset, +}; + +/** + * + * @type keytype + * @brief onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 中包含的音频信息的范围。 + */ + +enum AudioPropertiesMode { + /** + * + * @brief 仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + kAudioPropertiesModeMicrophone, + /** + * + * @brief 包含以下信息:
+ * - 本地麦克风采集的音频数据和本地屏幕音频采集数据; + * - 本地混音的音频数据。 + */ + + kAudioPropertiesModeAudioMixing +}; + +/** + * + * @type keytype + * @brief 音频属性信息提示的相关配置。 + */ + +struct AudioPropertiesConfig { + /** + * + * @brief 信息提示间隔,单位:ms
+ * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + + int interval = 0; + + /** + * + * @brief 是否开启音频频谱检测。 + */ + + bool enable_spectrum = false; + + /** + * + * @brief 是否开启人声检测 (VAD)。 + */ + + bool enable_vad = false; + + /** + * + * @brief 音量回调配置模式。详见 AudioReportMode{@link #AudioReportMode}。 + */ + + AudioReportMode local_main_report_mode = kAudioReportModeNormal; + + /** + * + * @brief 适用于音频属性信息提示的平滑系数。取值范围是 `(0.0, 1.0]`。
+ * 默认值为 `1.0`,不开启平滑效果;值越小,提示音量平滑效果越明显。如果要开启平滑效果,可以设置为 `0.3`。 + */ + + float smooth = 1.0f; + + /** + * + * @brief onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 中包含音频数据的范围。参看 AudioPropertiesMode{@link #AudioPropertiesMode}。
+ * 默认仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + AudioPropertiesMode audio_report_mode = kAudioPropertiesModeMicrophone; + /** + * + * @brief 是否回调本地用户的人声基频。 + */ + + bool enable_voice_pitch = false; +}; +/** + * + * @type keytype + * @brief 音频属性信息 + */ + +struct AudioPropertiesInfo { + /** + * + * @brief 线性音量,与原始音量呈线性关系,数值越大,音量越大。取值范围是:[0,255]。
+ * - [0, 25]:近似无声 + * - [26, 75]:低音量 + * - [76, 204]:中音量 + * - [205, 255]:高音量 + */ + + int linear_volume = 0; + /** + * + * @brief 非线性音量。由原始音量的对数值转化而来,因此在中低音量时更灵敏,可以用作 Active Speaker(房间内最活跃用户)的识别。取值范围是:[-127,0],单位 dB。
+ * - [-127, -60]:无声 + * - [-59, -40]:低音量 + * - [-39, -20]:中音量 + * - [-19, 0]:高音量 + */ + + int nonlinear_volume = 0; + /** + * + * @brief 频谱数组。默认长度为 257。 + */ + + float spectrum[SPECTRUM_SIZE] = {0}; + /** + * + * @brief 人声检测(VAD)结果
+ * - 1: 检测到人声。 + * - 0: 未检测到人声。 + * - -1: 未开启 VAD。 + */ + + int vad = -1; + + /** + * + * @brief 本地用户的人声基频,单位为赫兹。
+ * 同时满足以下两个条件时,返回的值为本地用户的人声基频:
+ * - 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport},并设置参数 enable_voice_pitch 的值为 `true`。 + * - 本地采集的音频中包含本地用户的人声。 + * 其他情况下返回 `0`。 + */ + + double voice_pitch = 0; +}; + +/** + * + * @type keytype + * @brief 远端音频属性信息 + */ + +struct RemoteAudioPropertiesInfo { + /** + * + * @type keytype + * @brief 流 ID + */ + + const char* stream_id; + /** + * + * @brief 流信息。参看 StreamInfo{@link #StreamInfo} + */ + + StreamInfo stream_info; + /** + * + * @type keytype + * @brief 音频属性信息,详见 AudioPropertiesInfo{@link #AudioPropertiesInfo} + */ + + AudioPropertiesInfo audio_properties_info; +}; + +/** + * + * @type keytype + * @brief 本地音频属性信息 + */ + +struct LocalAudioPropertiesInfo { + /** + * + * @type keytype + * @brief 音频源 + */ + + IAudioSource* audio_source; + /** + * + * @type keytype + * @brief 音频属性信息,详见 AudioPropertiesInfo{@link #AudioPropertiesInfo} + */ + + AudioPropertiesInfo audio_properties_info; +}; + +/** + * + * @type keytype + * @brief 音质档位 + */ + +enum AudioProfileType { + /** + * + * @brief 默认音质
+ * 服务器下发或客户端已设置的 RoomProfileType{@link #RoomProfileType} 的音质配置 + */ + + kAudioProfileTypeDefault = 0, + /** + * + * @brief 流畅
+ * 单声道,采样率为 16 kHz,编码码率为 32 Kbps。
+ * 流畅优先、低功耗、低流量消耗,适用于大部分游戏场景,如小队语音、组队语音、国战语音等。 + */ + + kAudioProfileTypeFluent = 1, + /** + * + * @brief 单声道标准音质。
+ * 采样率为 24 kHz,编码码率为 48 Kbps。
+ * 适用于对音质有一定要求的场景,同时延时、功耗和流量消耗相对适中,适合教育场景和狼人杀等游戏。 + */ + + kAudioProfileTypeStandard = 2, + /** + * + * @brief 双声道音乐音质
+ * 采样率为 48 kHz,编码码率为 128 kbps。
+ * 超高音质,同时延时、功耗和流量消耗相对较大,适用于连麦 PK 等音乐场景。
+ * 游戏场景不建议使用。 + */ + + kAudioProfileTypeHD = 3, + /** + * + * @brief 双声道标准音质。采样率为 48 KHz,编码码率最大值为 80 Kbps + */ + + kAudioProfileTypeStandardStereo = 4, + /** + * + * @brief 单声道音乐音质。采样率为 48 kHz,编码码率最大值为 64 Kbps + */ + + kAudioProfileTypeHDMono = 5, +}; + +/** + * + * @type keytype + * @brief 降噪模式。降噪算法受调用 joinRoom{@link #IRTCRoom#joinRoom} 时设置的房间模式影响。 + */ + +enum AnsMode { + /** + * + * @brief 禁用音频降噪。 + */ + + kAnsModeDisable = 0, + /** + * + * @brief 适用于微弱降噪。 + */ + + kAnsModeLow = 1, + /** + * + * @brief 适用于抑制中度平稳噪音,如空调声、风扇声。 + */ + + kAnsModeMedium = 2, + /** + * + * @brief 适用于抑制嘈杂非平稳噪音,如键盘声、敲击声、碰撞声、动物叫声。 + */ + + kAnsModeHigh = 3, + /** + * + * @brief 启用音频降噪能力。具体的降噪算法由 RTC 决定。 + */ + + kAnsModeAutomatic = 4, +}; + +/** + * + * @type keytype + * @brief 本地用户在房间内的位置坐标,需自行建立空间直角坐标系 + */ + +struct Position { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const Position& pos) const { + return (fabs(x - pos.x) < 1e-2) && + (fabs(y - pos.y) < 1e-2) && + (fabs(z - pos.z) < 1e-2); + } +}; + +/** + * + * @type keytype + * @brief 方向朝向信息 + */ + +struct Orientation { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const Orientation& orientation) const { + return x == orientation.x && y == orientation.y && z == orientation.z; + } +}; + +/** + * + * @type keytype + * @brief 三维朝向信息,三个向量需要两两垂直。参看 Orientation{@link #Orientation}。 + */ + +struct HumanOrientation { + /** + * + * @brief 正前方朝向,默认值为 {1,0,0},即正前方朝向 x 轴正方向 + */ + + Orientation forward = { 1, 0, 0 }; + /** + * + * @brief 正右方朝向,默认值为 {0,1,0},即右手朝向 y 轴正方向 + */ + + Orientation right = { 0, 1, 0 }; + /** + * + * @brief 正上方朝向,默认值为 {0,0,1},即头顶朝向 z 轴正方向 + */ + + Orientation up = { 0, 0, 1 }; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const HumanOrientation& human_orientation) const { + return forward.isEqual(human_orientation.forward) && right.isEqual(human_orientation.right) && up.isEqual(human_orientation.up); + } +}; + +/** + * + * @type keytype + * @brief 音频音量是否可设置 + */ + +enum AudioAbilityType { + /** + * + * @brief 未知 + */ + + kAudioAbilityTypeUnknown = -1, + /** + * + * @brief 音量可设置 + */ + + kAudioAbilityTypeAble = 0, + /** + * + * @brief 音量不可设置 + */ + + kAudioAbilityTypeUnable = 1, +}; +/** + * + * @type keytype + * @brief 远端音频流精准对齐模式 + */ + +enum AudioAlignmentMode { + /** + * + * @brief 不对齐 + */ + + kAudioAlignmentModeOff, + /** + * + * @brief 远端音频流都对齐伴奏进度同步播放 + */ + + kAudioAlignmentModeAudioMixing, +}; + +/** + * + * @type keytype + * @brief 音频设备信息 + */ + +struct AudioDeviceInfo { + /** + * + * @brief 设备 ID + */ + + char device_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备全称,包含设备类型与设备名称。例如 "扬声器 (XYZ Audio Adapter)" + */ + + char device_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备名称,不含设备类型。例如 "XYZ Audio Adapter" + */ + + char device_short_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备所连接的声卡 ID,便于选择使用同一声卡的扬声器和麦克风。 + */ + + char device_container_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备的厂商 ID + */ + + int64_t device_vid; + /** + * + * @brief 设备的产品编码 + */ + + int64_t device_pid; + /** + * + * @brief 设备的传输方式 + */ + + DeviceTransportType transport_type; + /** + * + * @brief 是否支持设置音量 + */ + + AudioAbilityType volume_settable; + /** + * + * @brief 是否系统默认设备 + */ + + bool is_system_default; + /** + * + * @hidden constructor/destructor + */ + + AudioDeviceInfo() { + memset(device_id, 0, MAX_DEVICE_ID_LENGTH); + memset(device_name, 0, MAX_DEVICE_ID_LENGTH); + memset(device_short_name, 0, MAX_DEVICE_ID_LENGTH); + memset(device_container_id, 0, MAX_DEVICE_ID_LENGTH); + this->device_vid = 0; + this->device_pid = 0; + this->transport_type = DeviceTransportType::kDeviceTransportTypeUnknown; + this->volume_settable = AudioAbilityType::kAudioAbilityTypeUnknown; + this->is_system_default = false; + } + /** + * + * @hidden constructor/destructor + */ + + AudioDeviceInfo& operator=(const AudioDeviceInfo& src) { + if (this != &src) { + strncpy(device_id, src.device_id, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_name, src.device_name, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_short_name, src.device_short_name, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_container_id, src.device_container_id, MAX_DEVICE_ID_LENGTH - 1); + device_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_short_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_container_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_vid = src.device_vid; + device_pid = src.device_pid; + transport_type = src.transport_type; + volume_settable = src.volume_settable; + is_system_default = src.is_system_default; + } + + return *this; + } +}; +/** + * + * @type keytype + * @brief 标准音高数据 + */ + +struct StandardPitchInfo { + /** + * + * @brief 开始时间,单位 ms。 + */ + + int start_time; + /** + * + * @brief 持续时间,单位 ms。 + */ + + int duration; + /** + * + * @brief 音高。 + */ + + int pitch; +}; +/** + * + * @type keytype + * @hidden + * @brief K 歌打分维度。 + */ + +enum MulDimSingScoringMode { + /** + * + * @brief 按照音高进行评分。 + */ + + kMulDimSingScoringModeNote = 0 +}; +/** + * + * @type keytype + * @hidden + * @brief K 歌评分配置。 + */ + +struct SingScoringConfig { + /** + * + * @brief 音频采样率。仅支持 44100 Hz、48000 Hz。 + */ + + AudioSampleRate sample_rate; + /** + * + * @brief 打分维度,详见 MulDimSingScoringMode{@link #MulDimSingScoringMode}。 + */ + + MulDimSingScoringMode mode; + /** + * + * @brief 歌词文件路径。打分功能仅支持 KRC 歌词文件。 + */ + + const char* lyrics_filepath; + /** + * + * @brief 歌曲 midi 文件路径。 + */ + + const char* midi_filepath; +}; +/** + * + * @type keytype + * @hidden + * @brief 实时评分信息。 + */ + +struct SingScoringRealtimeInfo { + /** + * + * @brief 当前播放进度。 + */ + + int current_position; + /** + * + * @brief 演唱者的音高。 + */ + + int user_pitch; + /** + * + * @brief 标准音高。 + */ + + int standard_pitch; + /** + * + * @brief 歌词分句索引。 + */ + + int sentence_index; + /** + * + * @brief 上一句歌词的评分。 + */ + + int sentence_score; + /** + * + * @brief 当前演唱的累计分数。 + */ + + int total_score; + /** + * + * @brief 当前演唱的平均分数。 + */ + + int average_score; +}; +/** + * + * @type keytype + * @brief 音频文件录制内容来源。 + */ + +enum AudioFrameSource { + /** + * + * @brief 本地麦克风采集的音频数据。 + */ + + kAudioFrameSourceMic = 0, + /** + * + * @brief 远端所有用户混音后的数据 + */ + + kAudioFrameSourcePlayback = 1, + /** + * + * @brief 本地麦克风和所有远端用户音频流的混音后的数据 + */ + + kAudioFrameSourceMixed = 2, +}; +/** + * + * @type keytype + * @brief 音频质量。 + */ + +enum AudioQuality { + /** + * + * @brief 低音质 + */ + + kAudioQualityLow = 0, + /** + * + * @brief 中音质 + */ + + kAudioQualityMedium = 1, + /** + * + * @brief 高音质 + */ + + kAudioQualityHigh = 2, + /** + * + * @brief 超高音质 + */ + + kAudioQualityUltraHigh = 3, +}; +/** + * + * @type keytype + * @brief 录音配置 + */ + +struct AudioRecordingConfig { + /** + * + * @hidden constructor/destructor + */ + + AudioRecordingConfig() { + absolute_file_name = nullptr; + frame_source = kAudioFrameSourceMixed; + sample_rate = kAudioSampleRateAuto; + channel = kAudioChannelAuto; + quality = kAudioQualityMedium; + } + /** + * + * @brief 录制文件路径。一个有读写权限的绝对路径,包含文件名和文件后缀。
+ * 录制文件的格式仅支持 .aac 和 .wav。 + */ + + const char* absolute_file_name; + /** + * + * @brief 录音内容来源,参看 AudioFrameSource{@link #AudioFrameSource}。
+ * 默认为 kAudioFrameSourceMixed = 2。 + */ + + AudioFrameSource frame_source; + /** + * + * @brief 录音采样率。参看 AudioSampleRate{@link #AudioSampleRate}。 + */ + + AudioSampleRate sample_rate; + /** + * + * @brief 录音音频声道。参看 AudioChannel{@link #AudioChannel}。
+ * 如果录制时设置的音频声道数与采集时的音频声道数不同:
+ * - 如果采集的声道数为 1,录制的声道数为 2,那么,录制的音频为经过单声道数据拷贝后的双声道数据,而不是立体声。 + * - 如果采集的声道数为 2,录制的声道数为 1,那么,录制的音频为经过双声道数据混合后的单声道数据。 + */ + + AudioChannel channel; + /** + * + * @brief 录音音质。仅在录制文件格式为 .aac 时可以设置。参看 AudioQuality{@link #AudioQuality}。
+ * 采样率为 32kHz 时,不同音质录制文件(时长为 10min)的大小分别是:
+ * - 低音质:1.2MB; + * - 【默认】中音质:2MB; + * - 高音质:3.75MB; + * - 超高音质:7.5MB。 + */ + + AudioQuality quality; +}; +/** + * + * @type keytype + * @brief 录音配置 + */ + +enum AudioRecordingState { + /** + * + * @brief 录制异常 + */ + + kAudioRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + kAudioRecordingStateProcessing = 1, + /** + * + * @brief 已结束录制,并且录制文件保存成功。 + */ + + kAudioRecordingStateSuccess = 2, +}; +/** + * + * @type errorcode + * @brief 音频文件录制的错误码 + */ + +enum AudioRecordingErrorCode { + /** + * + * @brief 录制正常 + */ + + kAudioRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + kAudioRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 没有进入房间 + */ + + kAudioRecordingErrorCodeNotInRoom = -2, + /** + * + * @brief 录制已经开始 + */ + + kAudioRecordingErrorCodeAlreadyStarted = -3, + /** + * + * @brief 录制还未开始 + */ + + kAudioRecordingErrorCodeNotStarted = -4, + /** + * + * @brief 录制失败。文件格式不支持。 + */ + + kAudioRecordingErrorCodeNotSupport = -5, + /** + * + * @brief 其他异常 + */ + + kAudioRecordingErrorCodeOther = -6, +}; +/** + * + * @hidden(macOS, Windows, Linux) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +struct AudioEnhancementConfig { + /** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_signaling = false; + /** + * + * @brief 对音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_audio = false; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h new file mode 100644 index 0000000..7922bc3 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Device Manager +*/ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @deprecated since 3.42 and will be deleted in 3.51, use IAudioDeviceCollection{@link #IAudioDeviceCollection} and IVideoDeviceCollection{@link #IVideoDeviceCollection} instead. + * @type api + * @brief 音视频设备相关的信息 + * @list 引擎管理 + */ + +class IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IDeviceCollection() { + } + /** + * + * @type api + * @brief 获取当前系统内音视频设备数量 + * @return 音视频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() = 0; + /** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 释放当前 IAudioDeviceCollection{@link #IAudioDeviceCollection} 对象占用的资源。 + * @note 不需要返回音视频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release() = 0; +/** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IDeviceCollection() { + } +}; +/** + * + * @hidden(Android,iOS) + * @type api + * @brief 音频设备相关的信息 + * @list 引擎管理 + */ + +class IAudioDeviceCollection : public IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IAudioDeviceCollection() {}; + /** + * + * @type api + * @brief 获取当前系统内音频设备数量 + * @return 音频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() override {return 0;}; + /** + * + * @type api + * @brief 根据索引号,获取设备信息 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) override {return 0;}; + /** + * + * @type api + * @brief 释放当前 IAudioDeviceCollection{@link #IAudioDeviceCollection} 对象占用的资源。 + * @note 不需要返回音频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release()override {}; + /** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备信息(ID、设备的产品编码等)获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param audio_device_info 设备信息,详见 AudioDeviceInfo{@link #AudioDeviceInfo} + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, AudioDeviceInfo* audio_device_info) = 0; +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioDeviceCollection() {}; +}; +/** + * + * @hidden(Android,iOS) + * @type api + * @brief 音频设备管理类 + * @list 引擎管理 + */ + +class IAudioDeviceManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IAudioDeviceManager() { + } + /** + * + * @type api + * @brief 获取当前系统内音频播放设备列表。如果后续设备有变更,你会收到 `onAudioMediaDeviceStateChanged` 回调通知,然后需要重新调用本接口以获得新的设备列表。 + * @return 包含系统中所有音频播放设备的列表,参看 IAudioDeviceCollection{@link #IAudioDeviceCollection}。
+ * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 音频管理 + */ + + virtual IAudioDeviceCollection* enumerateAudioPlaybackDevices() = 0; + /** + * + * @type api + * @brief 获取当前系统内音频采集设备列表。如果后续设备有变更,你需要重新调用本接口以获得新的设备列表。 + * @return 一个包含系统中所有音频采集设备列表的对象,详见 IAudioDeviceCollection{@link #IAudioDeviceCollection}。
+ * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note + * - 你可以在收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual IAudioDeviceCollection* enumerateAudioCaptureDevices() = 0; + /** + * + * @type api + * @brief 设置音频播放路由是否跟随系统。 + * @param followed
+ * - true: 跟随。此时,调用 setAudioPlaybackDevice{@link #IAudioDeviceManager#setAudioPlaybackDevice} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioPlaybackDevice{@link #IAudioDeviceManager#setAudioPlaybackDevice} 进行设置。 + * @list 音频管理 + */ + + virtual void followSystemPlaybackDevice(bool followed) = 0; + /** + * + * @type api + * @brief 设置音频采集路由是否跟随系统。 + * @param followed
+ * - true: 跟随。此时,调用 setAudioCaptureDevice{@link #IAudioDeviceManager#setAudioCaptureDevice} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioCaptureDevice{@link #IAudioDeviceManager#setAudioCaptureDevice} 进行设置。 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual void followSystemCaptureDevice(bool followed) = 0; + /** + * + * @type api + * @brief 设置音频播放设备。 + * @param device_id 音频播放设备 ID,可通过 enumerateAudioPlaybackDevices{@link #IAudioDeviceManager#enumerateAudioPlaybackDevices}
+ * 获取。 + * @return + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemPlaybackDevice{@link #IAudioDeviceManager#followSystemPlaybackDevice} 设置音频播放设备跟随系统后,将无法调用此接口设置音频播放设备。 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 设置音频采集设备。 + * @param device_id 音频采集设备 ID,可通过 enumerateAudioCaptureDevices{@link #IAudioDeviceManager#enumerateAudioCaptureDevices} 获取。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 当你调用 followSystemCaptureDevice{@link #IAudioDeviceManager#followSystemCaptureDevice} 设置音频采集设备跟随系统后,将无法调用此接口设置音频采集设备。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 设置当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围为 [0,255], 超出此范围设置无效。
+ * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDeviceVolume(unsigned int volume) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备音量 + * @param volume 音频播放设备音量,范围应在 [0,255] 内。
+ * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDeviceVolume(unsigned int* volume) = 0; + /** + * + * @type api + * @brief 设置当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围为 [0,255], 超出此范围设置无效。
+ * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
+ * - 0:方法调用成功。将影响 onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 回调的音量信息。 + * - < 0:方法调用失败。 + * @note + * + 对于已静音设备,音量设置会在调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 取消静音后生效。 + * + 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDeviceVolume(unsigned int volume) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备音量 + * @param volume 音频采集设备音量,范围应在 [0,255] 内。
+ * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDeviceVolume(unsigned int* volume) = 0; + /** + * + * @type api + * @brief 设置当前音频播放设备静音状态,默认为非静音。 + * @param mute
+ * - true:静音 + * - false:非静音 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDeviceMute(bool mute) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备是否静音的信息。 + * @param mute
+ * - true:静音 + * - false:非静音 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDeviceMute(bool* mute) = 0; + /** + * + * @type api + * @brief 设置当前音频采集设备静音状态,默认为非静音。 + * @param mute
+ * - true:静音 + * - false:非静音 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法用于静音整个系统的音频采集。你也可以仅对麦克风采集到的音频信号做静音处理,而不影响媒体播放器的音乐声音,具体参看 muteAudioCapture{@link #IRTCEngine#muteAudioCapture} 方法说明。 + * - 设该方法为 `true` 静音后仍可通过 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 调整采集音量,调整后的音量会在取消静音后生效。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDeviceMute(bool mute) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备是否静音的信息。 + * @param mute
+ * - true:静音 + * - false:非静音 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDeviceMute(bool* mute) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备 ID。 + * @param device_id 音频播放设备 ID + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备 ID。 + * @param device_id 音频采集设备 ID,使用方负责按 MAX_DEVICE_ID_LENGTH 大小,分配与释放内存 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 尝试初始化音频播放设备,可检测出设备不存在、权限被拒绝/禁用等异常问题。 + * @param device_id 设备索引号 + * @return 设备状态错误码
+ * - 0: 设备检测结果正常 + * - -1: 接口状态不正确,例如在正常启动采集后再调用该接口进行检测 + * - -2: 采集设备无麦克风权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note 1. 该接口需在进房前调用;
+ * 2. 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + + virtual int initAudioPlaybackDeviceForTest(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 尝试初始化音频采集设备,可检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param device_id 设备索引 + * @return 设备状态错误码
+ * - 0: 设备检测结果正常 + * - -1: 接口状态不正确,例如在正常启动采集后再调用该接口进行检测 + * - -2: 采集设备无麦克风权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用;
+ * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int initAudioCaptureDeviceForTest(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 启动音频播放设备检测。测试启动后,循环播放指定的音频文件,同时将通过 `onAudioPlaybackDeviceTestVolume` 回调播放时的音量信息。 + * @param test_audio_file_path 指定播放设备检测的音频文件网络地址。支持的格式包括 mp3,aac,m4a,3gp 和 wav。 + * @param indication_interval 设置 `onAudioPlaybackDeviceTestVolume` 音量回调的时间间隔,推荐设置为 200 毫秒或以上。单位为毫秒。最小值为 10 毫秒。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法可在进房前和进房后调用,不可与其它音频设备测试功能同时应用。 + * - 调用 stopAudioPlaybackDeviceTest{@link #IAudioDeviceManager#stopAudioPlaybackDeviceTest} 可以停止测试。 + * @list 音频管理 + */ + + virtual int startAudioPlaybackDeviceTest(const char* test_audio_file_path, int indication_interval) = 0; + /** + * + * @type api + * @brief 停止音频播放测试。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 调用 startAudioPlaybackDeviceTest{@link #IAudioDeviceManager#startAudioPlaybackDeviceTest} 后,调用本方法停止测试。 + * @list 音频管理 + */ + + virtual int stopAudioPlaybackDeviceTest() = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 开始音频采集设备和音频播放设备测试。 + * @param indication_interval 测试中会收到 `onLocalAudioPropertiesReport` 回调,本参数指定了该周期回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法在进房前后均可调用。且不可与其它音频设备测试功能同时应用。 + * - 调用本接口 30 s 后,采集自动停止,并开始播放采集到的声音。录音播放完毕后,设备测试流程自动结束。你也可以在 30 s 内调用 stopAudioDeviceRecordAndPlayTest{@link #IAudioDeviceManager#stopAudioDeviceRecordAndPlayTest} 来停止采集并开始播放此前采集到的声音。 + * - 调用 stopAudioDevicePlayTest{@link #IAudioDeviceManager#stopAudioDevicePlayTest} 可以停止音频设备采集和播放测试。 + * - 你不应在测试过程中,调用 `enableAudioPropertiesReport` 注册音量提示回调。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int startAudioDeviceRecordTest(int indication_interval) = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 停止采集本地音频,并开始播放采集到的声音。录音播放完毕后,设备测试流程结束。
+ * 调用 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest} 30 s 内调用本接口来停止采集并开始播放此前采集到的声音。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 调用本接口开始播放录音后,可以在播放过程中调用 stopAudioDevicePlayTest{@link #IAudioDeviceManager#stopAudioDevicePlayTest} 停止播放。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int stopAudioDeviceRecordAndPlayTest() = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 停止由调用 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest} 开始的音频播放设备测试。
+ * 在音频播放设备测试自动结束前,可调用本接口停止音频采集与播放测试。 + * @return 方法调用结果
+ * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int stopAudioDevicePlayTest() = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioDeviceManager() { + } +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h new file mode 100644 index 0000000..b914a5e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h @@ -0,0 +1,307 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Effect Player +*/ +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type callback + * @brief IAudioEffectPlayer{@link #IAudioEffectPlayer} 对应的回调句柄。你必须调用 setEventHandler{@link #IAudioEffectPlayer#setEventHandler} 完成设置后,才能收到对应回调。 + * @list 混音 + */ + +class IAudioEffectPlayerEventHandler { +public: + virtual ~IAudioEffectPlayerEventHandler() {} + /** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param effect_id IAudioEffectPlayer{@link #IAudioEffectPlayer} 的 ID。通过 getAudioEffectPlayer{@link #IRTCEngine#getAudioEffectPlayer} 设置。 + * @param state 混音状态。参考 PlayerState{@link #PlayerState}。 + * @param error 错误码。参考 PlayerError{@link #PlayerError}。 + * @list 混音 + */ + + virtual void onAudioEffectPlayerStateChanged(int effect_id, PlayerState state, PlayerError error) = 0; +}; +/** + * + * @valid since 3.53 + * @type api + * @brief 音效播放器
+ * 调用 setEventHandler{@link #IAudioEffectPlayer#setEventHandler} 设置回调句柄以获取相关回调。 + * @list 混音 + */ + +class IAudioEffectPlayer { +public: + IAudioEffectPlayer(){} + virtual ~IAudioEffectPlayer() {} + /** + * + * @type api + * @brief 开始播放音效文件。
+ * 可以通过传入不同的 ID 和 filepath 多次调用本方法,以实现同时播放多个音效文件,实现音效叠加。 + * @param effect_id 音效 ID。用于标识音效,请保证音效 ID 唯一性。
+ * 如果使用相同的 ID 重复调用本方法后,上一个音效会停止,下一个音效开始,并收到 onAudioEffectPlayerStateChanged{@link #IAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged}。 + * @param file_path 音效文件路径。
+ * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
+ * 推荐的音效文件采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
+ * 不同平台支持的本地音效文件格式:
+ * + * + * + * + * + *
mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYYYY
iOS/macOSYYYYYY
WindowsYYYYYYYY
+ * 不同平台支持的在线音效文件格式:
+ * + * + * + * + * + *
mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYY
iOS/macOSYYYY
WindowsYYYYYYY
+ * @param config 音效配置,详见 AudioEffectPlayerConfig{@link #AudioEffectPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果已经通过 preload{@link #IAudioEffectPlayer#preload} 将文件加载至内存,确保此处的 ID 与 preload{@link #IAudioEffectPlayer#preload} 设置的 ID 相同。 + * - 开始播放音效文件后,可以调用 stop{@link #IAudioEffectPlayer#stop} 方法停止播放音效文件。 + * @list 混音 + */ + + virtual int start(int effect_id, const char* file_path, const AudioEffectPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 停止播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以调用本方法停止播放音效文件。 + * - 调用本方法停止播放音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + + virtual int stop(int effect_id) = 0; + /** + * + * @type api + * @brief 停止播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以调用本方法停止播放所有音效文件。 + * - 调用本方法停止播放所有音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + + virtual int stopAll() = 0; + /** + * + * @type api + * @brief 预加载指定音乐文件到内存中,以避免频繁播放同一文件时的重复加载,减少 CPU 占用。 + * @param effect_id 音效 ID。用于标识音效,请保证音效 ID 唯一性。
+ * 如果使用相同的 ID 重复调用本方法,后一次会覆盖前一次。
+ * 如果先调用 start{@link #IAudioEffectPlayer#start},再使用相同的 ID 调用本方法 ,会收到回调 onAudioEffectPlayerStateChanged{@link #IAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged} ,通知前一个音效停止,然后加载下一个音效。
+ * 调用本方法预加载 A.mp3 后,如果需要使用相同的 ID 调用 start{@link #IAudioEffectPlayer#start} 播放 B.mp3,请先调用 unload{@link #IAudioEffectPlayer#unload} 卸载 A.mp3 ,否则会报错 AUDIO_MIXING_ERROR_LOAD_CONFLICT。 + * @param file_path 音效文件路径。支持本地文件的 URI。
+ * 预加载的文件长度不得超过 20s。
+ * 不同平台支持的音效文件格式和 start{@link #IAudioEffectPlayer#start} 一致。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本方法只是预加载指定音效文件,只有调用 start{@link #IAudioEffectPlayer#start} 方法才开始播放指定音效文件。 + * - 调用本方法预加载的指定音效文件可以通过 unload{@link #IAudioEffectPlayer#unload} 卸载。 + * @list 混音 + */ + + virtual int preload(int effect_id, const char* file_path) = 0; + /** + * + * @type api + * @brief 卸载指定音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 或 preload{@link #IAudioEffectPlayer#preload} 后调用此接口。 + * @list 混音 + */ + + virtual int unload(int effect_id) = 0; + /** + * + * @type api + * @brief 卸载所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int unloadAll() = 0; + /** + * + * @type api + * @brief 暂停播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以通过调用本方法暂停播放音效文件。 + * - 调用本方法暂停播放音效文件后,可调用 resume{@link #IAudioEffectPlayer#resume} 方法恢复播放。 + * @list 混音 + */ + + virtual int pause(int effect_id) = 0; + /** + * + * @type api + * @brief 暂停播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以通过调用本方法暂停播放所有音效文件。 + * - 调用本方法暂停播放所有音效文件后,可调用 resumeAll{@link #IAudioEffectPlayer#resumeAll} 方法恢复所有播放。 + * @list 混音 + */ + + virtual int pauseAll() = 0; + /** + * + * @type api + * @brief 恢复播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 调用 pause{@link #IAudioEffectPlayer#pause} 方法暂停播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + + virtual int resume(int effect_id) = 0; + /** + * + * @type api + * @brief 恢复播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 调用 pauseAll{@link #IAudioEffectPlayer#pauseAll} 方法暂停所有正在播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + + virtual int resumeAll() = 0; + /** + * + * @type api + * @brief 设置音效文件的起始播放位置。 + * @param effect_id 音效 ID + * @param pos 音效文件起始播放位置,单位为毫秒。
+ * 你可以通过 getDuration{@link #IAudioEffectPlayer#getDuration} 获取音效文件总时长,pos 的值应小于音效文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int setPosition(int effect_id, int pos) = 0; + /** + * + * @type api + * @brief 获取音效文件播放进度。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 音效文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getPosition(int effect_id) = 0; + /** + * + * @type api + * @brief 调节指定音效的音量大小,包括音效文件和 PCM 音频。 + * @param effect_id 音效 ID + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int setVolume(int effect_id, int volume) = 0; + /** + * + * @type api + * @brief 设置所有音效的音量大小,包括音效文件和 PCM 音效。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口的优先级低于 setVolume{@link #IAudioEffectPlayer#setVolume},即通过 setVolume{@link #IAudioEffectPlayer#setVolume} 单独设置了音量的音效 ID,不受该接口设置的影响。 + * @list 混音 + */ + + virtual int setVolumeAll(int volume) = 0; + /** + * + * @type api + * @brief 获取当前音量。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getVolume(int effect_id) = 0; + /** + * + * @type api + * @brief 获取音效文件时长。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 音效文件时长,单位为毫秒。 + * - < 0: 失败 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getDuration(int effect_id) = 0; + /** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 IAudioEffectPlayerEventHandler{@link #IAudioEffectPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + + virtual int setEventHandler(IAudioEffectPlayerEventHandler* handler) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h new file mode 100644 index 0000000..7da1a8b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h @@ -0,0 +1,528 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC audio Frame + */ + +#pragma once + +#include +#include +#include +#include "bytertc_audio_defines.h" + +namespace bytertc { + +/** + * + * @type keytype + * @region 音频管理 + * @brief 音频帧类型 + */ + +enum AudioFrameType { + /** + * + * @brief PCM 16bit + */ + + kAudioFrameTypePCM16 = 0 +}; + +/** + * + * @type keytype + * @region 音频管理 + * @brief 音频帧构建类 + */ + +typedef struct AudioFrameBuilder { + /** + * + * @brief 音频采样率 + */ + + AudioSampleRate sample_rate; + + /** + * + * @brief 音频通道数 + */ + + AudioChannel channel; + + /** + * + * @brief 音频帧时间戳,单位:微秒 + * @note 此时间戳不是 Linux 时间戳,只是 SDK 内部时间戳,仅保证帧之间时间戳的相对关系。 + */ + + int64_t timestamp_us = 0; + + /** + * + * @brief 音频帧数据 + */ + + uint8_t* data; + + /** + * + * @brief 音频帧数据大小 + */ + + int64_t data_size = 0; + + /** + * + * @brief 是否深拷贝 + */ + + bool deep_copy = true; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据 + */ + + uint8_t* extra_info = nullptr; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据大小 + */ + + int64_t extra_info_size = 0; +} AudioFrameBuilder; +/** + * + * @type keytype + * @brief 音频帧 + */ + +class IAudioFrame { +public: + /** + * + * @type api + * @brief 获取音频帧时间戳。 + * @return 音频帧时间戳,单位:微秒 + * @list Screen Sharing + */ + + virtual int64_t timestampUs() const = 0; + /** + * + * @type api + * @brief 获取音频采样率。参看 AudioSampleRate{@link #AudioSampleRate} + * @return 音频采样率,单位:Hz + * @list 音频管理 + */ + + virtual AudioSampleRate sampleRate() const = 0; + /** + * + * @type api + * @brief 获取音频通道数。参看 AudioChannel{@link #AudioChannel} + * @return 音频通道数 + * @note 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + * @list 音频管理 + */ + + virtual AudioChannel channel() const = 0; + /** + * + * @type api + * @brief 获取音频帧内存块地址 + * @return 音频帧内存块地址 + * @list 音频管理 + */ + + virtual uint8_t* data() const = 0; + /** + * + * @type api + * @brief 获取音频帧数据大小 + * @return 音频帧数据大小,单位:字节。 + * @list 音频管理 + */ + + virtual int dataSize() const = 0; + /** + * + * @type api + * @brief 获取音频帧类型 + * @return 音频帧类型,目前只支持 PCM,详见 AudioFrameType{@link #AudioFrameType} + * @list 音频管理 + */ + + virtual AudioFrameType frameType() const = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 获取音频帧额外信息内存块地址 + * @return 音频帧额外信息内存块地址 + * @list 音频管理 + */ + + virtual uint8_t* extraInfo() const = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 获取音频帧额外信息大小 + * @return 音频帧数据额外信息大小,单位:字节。 + * @list 音频管理 + */ + + virtual int extraInfoSize() const = 0; + /** + * + * @type api + * @brief 释放音频帧 + * @list 音频管理 + */ + + virtual void release() = 0; + /** + * + * @type api + * @brief 获取音频静音标志 + * @return 是否静音数据
+ * - true: 是 + * - false: 否 + * @list 音频管理 + */ + + virtual bool isMutedData() const = 0; + /** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrame() = default; +}; +/** + * + * @type api + * @brief 创建 IAudioFrame + * @param builder 音频帧构建实例,参看 AudioFrameBuilder{@link #AudioFrameBuilder} + * @return 详见 IAudioFrame{@link #IAudioFrame} + * @list 音频管理 + */ + +BYTERTC_API IAudioFrame* buildAudioFrame(const AudioFrameBuilder& builder); + +/** + * + * @type keytype + * @brief 音频回调方法 + */ + +enum class AudioFrameCallbackMethod{ + /** + * + * @brief 本地麦克风录制的音频数据回调 + */ + + kRecord, + /** + * + * @brief 订阅的远端所有用户混音后的音频数据回调 + */ + + kPlayback, + /** + * + * @brief 本地麦克风录制和订阅的远端所有用户混音后的音频数据回调 + */ + + kMixed, + /** + * + * @brief 订阅的远端每个用户混音前的音频数据回调 + */ + + kRemoteUser, + /** + * + * @brief 本地屏幕录制的音频数据回调 + */ + + kRecordScreen, + /** + * + * @brief 本地麦克风录制和本地 `MediaPlayer`, `EffectPlayer` 播放的音频混音后的音频数据回调 + */ + + kCaptureMixed, +}; +/** + * + * @type callback + * @brief 音频数据回调观察者
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
+ * 本接口类中的回调周期均为 20 ms。 + * @list 自定义流处理 + */ + +class IAudioFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrameObserver() { + } + /** + * + * @hidden for internal use only + * @valid since 3.50 + */ + + virtual void onRecordAudioFrameOriginal(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回麦克风录制的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onRecordAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回订阅的所有远端用户混音后的音频数据。 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onPlaybackAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回远端单个用户的音频数据 + * @param stream_id 远端流 ID。 + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param audio_frame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。 + * @note 此回调在播放线程调用。不要在此回调中做任何耗时的事情,否则可能会影响整个音频播放链路。 + * @list 自定义流处理 + */ + + virtual void onRemoteUserAudioFrame(const char* stream_id, const StreamInfo& stream_info, const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回本地麦克风录制和订阅的所有远端用户混音后的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onMixedAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回本地屏幕录制的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onRecordScreenAudioFrame(const IAudioFrame& audio_frame) { + } + /** + * + * @type callback + * @brief 返回本地麦克风录制的音频数据,本地 `MediaPlayer` / `EffectPlayer` 播放音频文件混音后的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onCaptureMixedAudioFrame(const IAudioFrame& audio_frame) = 0; + +}; +/** + * + * @type callback + * @brief 自定义音频处理器。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +class IAudioFrameProcessor{ +public: + /** + * + * @type callback + * @brief 回调本地采集的音频帧地址,供自定义音频处理。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note + * - 完成自定义音频处理后,SDK 会对处理后的音频帧进行编码,并传输到远端。 + * - 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择本地采集的音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessRecordAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 回调远端音频混音的音频帧地址,供自定义音频处理。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择远端音频流的混音音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessPlayBackAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 回调单个远端用户的音频帧地址,供自定义音频处理。 + * @param stream_id 远端流 ID。 + * @param stream_info 远端流信息, 参看 StreamInfo{@link #StreamInfo}。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择各个远端音频流时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessRemoteUserAudioFrame(const char* stream_id, const StreamInfo& stream_info, IAudioFrame& audio_frame) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 3.50 + * @type callback + * @brief 软件耳返音频数据的回调。你可根据此回调自定义处理音频。
+ * 耳返音频中包含通过调用 `setVoiceReverbType` 和 `setVoiceChangerType` 设置的音频特效。 + * @param audio_frame 音频帧地址。参看 IAudioFrame{@link #IAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 此数据处理只影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并选择耳返音频,每 10 ms 收到此回调。 + * @list Custom Stream Processing + */ + + virtual int onProcessEarMonitorAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 屏幕共享的音频帧地址回调。你可根据此回调自定义处理音频。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame}。 + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},把返回给音频处理器的音频类型设置为屏幕共享音频后,每 10 ms 收到此回调。 + * @list 屏幕共享 + */ + + virtual int onProcessScreenAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrameProcessor() { + } +}; +/** + * + * @type keytype + * @hidden for internal use only + * @region 音频管理 + * @brief 音频帧构建类 + */ + +typedef struct EncodedAudioFrameData { + /** + * + * @brief 音频编码类型 + */ + + AudioCodecType codec_type = kAudioCodecTypeNone; + /** + * + * @brief 音频数据 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 音频数据大小 + */ + + int size = 0; + /** + * + * @brief 音频时间戳,单位:微秒 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 音频采样率 + */ + + int sample_rate = 0; + /** + * + * @brief 音频通道数 + */ + + int channel_num = 0; + /** + * + * @brief 音频帧大小,单位:毫秒 + */ + + int frame_size_ms = 0; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据 + */ + + uint8_t* extra_info = nullptr; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据大小 + */ + + int extra_info_size = 0; +} EncodedAudioFrameData; + +/** + * + * @type callback + * @hidden for internal use only + * @brief 远端音频帧监测器 + * @list 自定义流处理 + */ + +class IRemoteEncodedAudioFrameObserver { +public: + virtual ~IRemoteEncodedAudioFrameObserver () { + } + /** + * + * @type callback + * @hidden for internal use only + * @brief 调用 RegisterRemoteEncodedAudioFrameObserver 后,SDK 收到远端音频帧信息时,回调该事件 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo} + * @param audio_stream 远端音频帧信息,参看 EncodedAudioFrameData{@link #EncodedAudioFrameData} + * @list 自定义流处理 + */ + + virtual void onRemoteEncodedAudioFrame(const char* stream_id, + const StreamInfo& stream_info, const EncodedAudioFrameData& audio_stream) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h new file mode 100644 index 0000000..e443668 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Mixing Manager +*/ + +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @hidden(Linux) + * @type callback + * @brief 本地音频文件混音的音频帧观察者。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +class IAudioFileFrameObserver { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IAudioFileFrameObserver(){} + /** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param mix_id 混音 ID。 + * @param audio_frame 参看 IAudioFrame{@link #IAudioFrame}。 + * @list 自定义流处理 + */ + + virtual void onAudioFileFrame(int mix_id, const IAudioFrame& audio_frame) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h new file mode 100644 index 0000000..a4ca364 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. +*/ + +#pragma once + +#include + +namespace bytertc { +/** + * + * @type keytype + * @brief 相机补光灯状态 + */ + +enum TorchState{ + + /** + * + * @brief 相机补光灯关闭 + */ + + kTorchStateOff=0, + /** + * + * @brief 相机补光灯打开 + */ + + kTorchStateOn=1, +}; +/** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 相机控制接口 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能使用这个接口。 + */ + +class ICameraControl { +public: + virtual ~ICameraControl() = default; + /** + * + * @type api + * @brief 设置当前使用的摄像头(前置/后置)的变焦倍数 + * @param zoom_val 变焦倍数。取值范围是 [1, <最大变焦倍数>]。
+ * 最大变焦倍数可以通过调用 getCameraZoomMaxRatio{@link #ICameraControl#getCameraZoomMaxRatio} 获取。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置摄像头变焦倍数。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraZoomRatio(float zoom_val) = 0; + /** + * + * @type api + * @brief 获取当前使用的摄像头(前置/后置)的最大变焦倍数 + * @return 最大变焦倍数 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头最大变焦倍数。 + */ + + virtual float getCameraZoomMaxRatio() = 0; + /** + * + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持变焦(数码/光学变焦)。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头变焦能力。 + */ + + virtual bool isCameraZoomSupported() = 0; + /** + * + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持闪光灯。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测闪光能力。 + */ + + virtual bool isCameraTorchSupported() = 0; + /** + * + * @type api + * @brief 打开/关闭当前使用的摄像头(前置/后置)的闪光灯 + * @param torch_state 打开/关闭。参看 TorchState{@link #TorchState}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置闪光灯。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraTorch(TorchState torch_state) = 0; + /** + * + * @type api + * @brief 检查当前使用的摄像头是否支持对焦点设置 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查对焦点设置能力。 + */ + + virtual bool isCameraFocusPositionSupported() = 0; + /** + * + * @type api + * @brief 设置当前使用的摄像头的对焦点 + * @param x 对焦点水平方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最左边,1 为最右边。 + * @param y 对焦点垂直方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最上边,1 为最下边。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置对焦点。 + * - 对焦点设置为画布中央(即[0.5, 0.5]) 时,恢复系统默认值。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraFocusPosition(float x, float y) = 0; + /** + * + * @type api + * @brief 检查当前使用的摄像头是否支持曝光点设置 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。 + */ + + virtual bool isCameraExposurePositionSupported() = 0; + /** + * + * @type api + * @brief 设置当前使用的摄像头的曝光点 + * @param x 曝光点水平方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最左边,1 为最右边。 + * @param y 曝光点垂直方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最上边,1 为最下边。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 + * - 曝光点设置为画布中央(即[0.5, 0.5]) 时,恢复系统默认值。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraExposurePosition(float x, float y) = 0; + /** + * + * @type api + * @brief Sets the exposure point of the currently used camera. + * @param val 曝光补偿值,取值范围[-1, 1],0 为系统默认值(没有曝光补偿)。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraExposureCompensation(float val) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 353 + * @type api + * @brief 启用或禁用内部采集时人脸自动曝光模式。此模式会改善强逆光下,脸部过暗的问题;但也会导致 ROI 以外区域过亮/过暗的问题。 + * @param enable 是否启用。iOS默认开启,Android默认关闭。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 对 Android,你必须在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 对 iOS,在采集前或采集中调用此接口均可生效。 + * @list 视频管理 + */ + + virtual int enableCameraAutoExposureFaceMode(bool enable) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 353 + * @type api + * @brief 设置内部采集适用动态帧率时,帧率的最小值。 + * @param framerate 最小值。单位为 fps。默认值是 7。
+ * 动态帧率的最大帧率是通过 setVideoCaptureConfig{@link #IRTCEngine#setVideoCaptureConfig} 设置的帧率值。当传入参数大于最大帧率时,使用固定帧率模式,帧率为最大帧率;当传入参数小于最大帧率时,使用动态帧率。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 你必须在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 如果由于性能降级、静态适配等原因导致采集最大帧率变化时,已设置的最小帧率值会与新的采集最大帧率值重新比较。比较结果变化可能导致固定/动态帧率模式切换。 + * - 对 Android,默认开启动态帧率模式 + * - 对 iOS,默认使用固定帧率模式 + * @list 视频管理 + */ + + virtual int setCameraAdaptiveMinimumFrameRate(int framerate) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h new file mode 100644 index 0000000..6779d62 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Defines + */ + +#pragma once + +#include "bytertc_rts_defines.h" +#include "bytertc_media_defines.h" +#include "bytertc_audio_defines.h" +#include "bytertc_video_defines.h" +#include "bytertc_transcoder_define.h" diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h new file mode 100644 index 0000000..1cef74b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Internal API +*/ + +#pragma once + +#include "bytertc_defines.h" +#include +#include + +namespace bytertc { + +/** + * @brief 设置 ByteRTC SDK 默认开启使用QUIC获取配置 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableQuicGetAccess(); + +/** + * @brief 设置 ByteRTC SDK 默认开启使用KCP获取配置 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableKcpGetAccess(); + +/** + * @brief 设置 ByteRTC SDK 默认开启通话前网络探测 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableNetworkDetect(); + +/** + * @brief 设置 ByteRTC SDK 默认开启使用KCP消息通道 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableKcpDataChannel(); + +struct VideoStreamDescription { + unsigned int width; + unsigned int height; + unsigned int frame_rate; + unsigned int max_kbps; +}; + +enum class PixelFormat { + kDefault = 0, + kI420 = 1, + kRGBA = 2, + kTexture = 3, +}; + +enum class NetworkFamily { + kNetworkFamilyNone = 0, + kNetworkFamilyIPv4 = 1, + kNetworkFamilyIPv6 = 2, + kNetworkFamilyBoth = 3, +}; + +enum StreamFlag { + kStreamFlagNone = 0, + kStreamFlagNormal = 1 << 0, + kStreamFlagDocShare = 1 << 1, + kStreamFlagMCU = 1 << 2, + kStreamFlagMeetTogether = 1 << 3, + + kStreamFlagIntelligentStream = 1 << 6, +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h new file mode 100644 index 0000000..5f162fa --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h @@ -0,0 +1,586 @@ +#pragma once + +#include + +namespace bytertc { + +/** + * + * @type keytype + * @brief 歌曲过滤方式。 + */ + +enum MusicFilterType { + /** + * + * @brief 不过滤。 + */ + + kMusicFilterTypeNone = 0, + /** + * + * @brief 过滤没有歌词的歌曲。 + */ + + kMusicFilterTypeWithoutLyric = 1 << 0, + /** + * + * @brief 过滤不支持打分的歌曲。 + */ + + kMusicFilterTypeUnsupportedScore = 1 << 1, + /** + * + * @brief 过滤不支持伴唱切换的歌曲。 + */ + + kMusicFilterTypeUnsupportedAccopmay = 1 << 2, + /** + * + * @brief 过滤没有高潮片段的歌曲。 + */ + + kMusicFilterTypeUnsupportedClimx = 1 << 3, +}; + +/** + * + * @type keytype + * @brief 原唱伴唱类型。 + */ + +enum class AudioTrackType { + /** + * + * @brief 播放原唱。 + */ + + kOriginal = 1, + /** + * + * @brief 播放伴唱。 + */ + + kAccompy = 2 +}; + +/** + * + * @type keytype + * @brief 音乐播放类型。 + */ + +enum class AudioPlayType { + /** + * + * @brief 仅本地播放。 + */ + + kLocal, + /** + * + * @brief 仅远端播放。 + */ + + kRemote, + /** + * + * @brief 本地、远端同时播放。 + */ + + kLocalAndRemote +}; + +/** + * + * @type keytype + * @brief 音乐播放状态。 + */ + +enum class PlayState { + /** + * + * @brief 播放中。 + */ + + kPlaying = 1, + /** + * + * @brief 暂停中。 + */ + + kPaused = 2, + /** + * + * @brief 已停止。 + */ + + kStoped = 3, + /** + * + * @brief 播放失败。 + */ + + kFailed = 4, + /** + * + * @brief 播放结束。 + */ + + kFinished = 5, +}; + +/** + * + * @type keytype + * @brief 歌词格式类型。 + */ + +enum class LyricStatus { + /** + * + * @brief 无歌词。 + */ + + kNone = 0, + /** + * + * @brief KRC 歌词。 + */ + + kKRC = 1, + /** + * + * @brief LRC 歌词。 + */ + + kLRC = 2, + /** + * + * @brief KRC 歌词和 LRC 歌词均有。 + */ + + kKRCAndLRC = 3 +}; + +/** + * + * @type keytype + * @brief 歌词文件类型。 + */ + +enum class DownloadLyricType { + /** + * + * @brief KRC 歌词文件。 + */ + + kKRC, + /** + * + * @brief LRC 歌词文件。 + */ + + kLRC +}; + + + +/** + * + * @type keytype + * @brief 歌曲数据。 + */ + +struct MusicInfo +{ + /** + * + * @brief 音乐 ID。 + */ + + const char* music_id; + /** + * + * @brief 音乐名称。 + */ + + const char* music_name; + /** + * + * @brief 歌手。 + */ + + const char* singer; + /** + * + * @brief 版权商 ID。 + */ + + const char* vendor_id; + /** + * + * @brief 版权商名称。 + */ + + const char* vendor_name; + /** + * + * @brief 最新更新时间戳,单位为毫秒。 + */ + + int64_t update_timestamp; + /** + * + * @brief 封面地址。 + */ + + const char* poster_url; + /** + * + * @brief 歌词格式类型,参看 LyricStatus{@link #LyricStatus}。 + */ + + LyricStatus lyric_status; + /** + * + * @brief 歌曲长度,单位为毫秒。 + */ + + int duration; + /** + * + * @brief 歌曲是否支持打分。 + */ + + bool enable_score; + /** + * + * @brief 歌曲高潮片段开始时间,单位为毫秒。 + */ + + int climax_start_time; + /** + * + * @brief 歌曲高潮片段停止时间,单位为毫秒。 + */ + + int climax_stop_time; + +}; + +/** + * + * @type keytype + * @brief 热榜歌曲数据。 + */ + +struct HotMusicInfo { + /** + * + * @brief 热榜名称。 + */ + + const char* hot_name; + /** + * + * @brief 歌曲数据,参看 MusicInfo{@link #MusicInfo}。 + */ + + MusicInfo* musics; + /** + * + * @brief 歌曲列表的数量。 + */ + + int music_count; +}; + +/** + * + * @type keytype + * @brief 下载文件类型。 + */ + +enum DownloadFileType { + /** + * + * @brief 音频文件。 + */ + + kDownloadFileTypeMusic = 1, + /** + * + * @brief KRC 歌词文件。 + */ + + kDownloadFileTypeKRC = 2, + /** + * + * @brief LRC 歌词文件。 + */ + + kDownloadFileTypeLRC = 3, + /** + * + * @brief MIDI 文件。 + */ + + kDownloadFileTypeMIDI = 4 + +} ; + +/** + * + * @type keytype + * @brief 歌曲下载信息。 + */ + +struct DownloadResult { + /** + * + * @brief 文件存放路径。 + */ + + const char* local_file_path; + /** + * + * @brief 音乐 ID。 + */ + + const char* music_id; + /** + * + * @brief 下载文件类型,参看 DownloadFileType{@link #DownloadFileType}。 + */ + + DownloadFileType type; +}; + + +/** + * + * @type errorcode + * @brief KTV 错误码。 + */ + +enum KTVErrorCode { + /** + * + * @brief 成功。 + */ + + kKTVErrorCodeOK = 0, + /** + * + * @brief AppID 异常。 + */ + + kKTVErrorCodeAppidInValid = -3000, + /** + * + * @brief 非法参数,传入的参数不正确。 + */ + + kKTVErrorCodeParasInValid = -3001, + /** + * + * @brief 获取歌曲资源失败。 + */ + + kKTVErrorCodeGetMusicFailed = -3002, + /** + * + * @brief 获取歌词失败。 + */ + + kKTVErrorCodeGetLyricFailed = -3003, + /** + * + * @brief 歌曲下架。 + */ + + kKTVErrorCodeMusicTakedown = -3004, + /** + * + * @brief 歌曲文件下载失败。 + */ + + kKTVErrorCodeMusicDownload = -3005, + /** + * + * @brief MIDI 文件下载失败。 + */ + + kKTVErrorCodeMidiDownloadFailed = -3006, + /** + * + * @brief 系统繁忙。 + */ + + kKTVErrorCodeSystemBusy = -3007, + /** + * + * @brief 网络异常。 + */ + + kKTVErrorCodeNetwork = -3008, + /** + * + * @brief KTV 功能未加入房间。 + */ + + kKTVErrorCodeNotJoinRoom = -3009, + /** + * + * @brief 解析数据失败。 + */ + + kKTVErrorCodeParseData = -3010, + /** + * + * @hidden + * @deprecated 从 353 开始。 + * @brief 下载失败。 + */ + + kKTVErrorCodeDownload = -3011, + /** + * + * @brief 已在下载中。 + */ + + kKTVErrorCodeDownloading = -3012, + /** + * + * @brief 内部错误,联系技术支持人员。 + */ + + kKTVErrorCodeInternalDomain = -3013, + /** + * + * @brief 下载失败,磁盘空间不足。清除缓存后重试。 + */ + + kKTVErrorCodeInsufficientDiskSpace = -3014, + /** + * + * @brief 下载失败,音乐文件解密失败,联系技术支持人员。 + */ + + kKTVErrorCodeMusicDecryptionFailed = -3015, + /** + * + * @brief 下载失败,音乐文件重命名失败,请重试。 + */ + + kKTVErrorCodeFileRenameFailed = -3016, + /** + * + * @brief 下载失败,下载超时,请重试。 + */ + + kKTVErrorCodeDownloadTimeOut = -3017, + /** + * + * @brief 清除缓存失败,可能原因是文件被占用或者系统异常,请重试。 + */ + + kKTVErrorCodeClearCacheFailed = -3018, + /** + * + * @brief 取消下载。 + */ + + kKTVErrorCodeDownloadCanceled = -3019 +}; + +/** + * + * @type keytype + * @brief KTV 播放器错误码。 + */ + +enum KTVPlayerErrorCode { + /** + * + * @brief 成功。 + */ + + kKTVPlayerErrorCodeOK = 0, + /** + * + * @brief 播放错误,请下载后播放。 + */ + + kKTVPlayerErrorCodeFileNotExist = -3020, + /** + * + * @brief 播放错误,请确认文件播放格式。 + */ + + kKTVPlayerErrorCodeFileError = -3021, + /** + * + * @brief 播放错误,未进入房间。 + */ + + kKTVPlayerErrorCodeNotJoinRoom = -3022, + /** + * + * @brief 参数错误。 + */ + + kKTVPlayerErrorCodeParam = -3023, + /** + * + * @brief 播放失败,找不到文件或文件打开失败。 + */ + + kKTVPlayerErrorCodeStartError = -3024, + /** + * + * @brief 混音 ID 异常。 + */ + + kKTVPlayerErrorCodeMixIdError = -3025, + /** + * + * @brief 设置播放位置出错。 + */ + + kKTVPlayerErrorCodePositionError = -3026, + /** + * + * @brief 音量参数不合法,可设置的取值范围为 [0,400]。 + */ + + kKTVPlayerErrorCodeAudioVolumeError = -3027, + /** + * + * @brief 不支持此混音类型。 + */ + + kKTVPlayerErrorCodeTypeError = -3028, + /** + * + * @brief 音调文件不合法。 + */ + + kKTVPlayerErrorCodePitchError = -3029, + /** + * + * @brief 音轨不合法。 + */ + + kKTVPlayerErrorCodeAudioTrackError = -3030, + /** + * + * @brief 混音启动中。 + */ + + kKTVPlayerErrorCodeStartingError = -3031 +}; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h new file mode 100644 index 0000000..053a139 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h @@ -0,0 +1,483 @@ +#pragma once + +#include "bytertc_ktv_defines.h" +namespace bytertc { +/** + * + * @type callback + * @brief KTV 事件回调接口。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 在线 KTV + */ + +class IKTVManagerEventHandler { + +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVManagerEventHandler() { + } + /** + * + * @type callback + * @brief 歌曲列表回调。 + * @param music_infos 歌曲数据数组,参看 MusicInfo{@link #MusicInfo}。 + * @param music_count 当前查询的数据条目数。 + * @param total_musics_size 数据条目总数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onMusicListResult(MusicInfo* music_infos, int music_count, int total_musics_size, KTVErrorCode error_code) { + (void)music_infos; + (void)music_count; + (void)total_musics_size; + (void)error_code; + } + /** + * + * @type callback + * @brief 搜索歌曲结果回调。 + * @param music_infos 歌曲数据数组,参看 MusicInfo{@link #MusicInfo}。 + * @param music_count 当前查询的数据条目数。 + * @param total_musics_size 数据条目总数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onSearchMusicResult(MusicInfo* music_infos, int music_count, int total_musics_size, KTVErrorCode error_code) { + (void)music_infos; + (void)music_count; + (void)total_musics_size; + (void)error_code; + } + /** + * + * @type callback + * @brief 热榜歌曲结果回调。 + * @param hot_infos 热榜歌曲数据数组,参看 HotMusicInfo{@link #HotMusicInfo}。 + * @param hot_count 当前查询的热榜歌曲数据条目数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onHotMusicResult(HotMusicInfo* hot_infos, int hot_count, KTVErrorCode error_code) { + (void)hot_infos; + (void)hot_count; + (void)error_code; + } + /** + * + * @type callback + * @brief 歌曲详细信息回调。 + * @param music_info 歌曲数据,参看 MusicInfo{@link #MusicInfo}。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。
+ * @list 在线 KTV + */ + + virtual void onMusicDetailResult(MusicInfo* music_info, KTVErrorCode error_code) { + (void)music_info; + (void)error_code; + } + /** + * + * @type callback + * @brief 下载成功回调。 + * @param download_id 下载任务 ID。 + * @param download_info 下载信息,参看 DownloadResult{@link #DownloadResult}。 + * @list 在线 KTV + */ + + virtual void onDownloadSuccess(int download_id, DownloadResult* download_info) { + (void)download_id; + (void)download_info; + } + /** + * + * @type callback + * @brief 下载失败回调。 + * @param download_id 下载任务 ID。 + * @param error_code 错误码,参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onDownloadFailed(int download_id, KTVErrorCode error_code) { + (void)download_id; + (void)error_code; + } + /** + * + * @type callback + * @brief 歌曲文件下载进度回调。 + * @param download_id 下载任务 ID。 + * @param download_percentage 下载进度百分比,取值范围 [0,100]。 + * @list 在线 KTV + */ + + virtual void onDownloadMusicProgress(int download_id, int download_percentage) { + (void)download_id; + (void)download_percentage; + } + /** + * + * @type callback + * @brief 清理文件缓存结果回调。 + * @param error_code 错误码,非 0 为失败,参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list Online Karaoke + */ + + virtual void onClearCacheResult(KTVErrorCode error_code) { + (void)error_code; + } +}; +/** + * + * @type callback + * @brief KTV 播放器回调接口。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Online Karaoke + */ + +class IKTVPlayerEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVPlayerEventHandler() { + } + /** + * + * @type callback + * @brief 音乐播放进度回调。 + * @param music_id 音乐 ID。 + * @param progress 音乐播放进度,单位为毫秒。 + * @list 在线 KTV + */ + + virtual void onPlayProgress(const char *music_id, int64_t progress) { + (void)music_id; + (void)progress; + } + /** + * + * @type callback + * @brief 音乐播放状态改变回调。 + * @param music_id 音乐 ID。 + * @param play_state 音乐播放状态,参看 PlayState{@link #PlayState}。 + * @param error_code 错误码,参看 KTVPlayerErrorCode{@link #KTVPlayerErrorCode}。 + * @note + * 此回调被触发的时机汇总如下:
+ * - 调用 playMusic{@link #IKTVPlayer#playMusic} 成功后,会触发 playState 值为 PlayStatePlaying 的回调;否则会触发 playState 值为 PlayStateFailed 的回调。 + * - 使用相同的音乐 ID 重复调用 playMusic{@link #IKTVPlayer#playMusic} 后,后一次播放会覆盖前一次,且会触发 playState 值为 PlayStatePlaying 的回调,表示后一次音乐播放已开始。 + * - 调用 pauseMusic{@link #IKTVPlayer#pauseMusic} 方法暂停播放成功后,会触发 playState 值为 PlayStatePaused 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 调用 resumeMusic{@link #IKTVPlayer#resumeMusic} 方法恢复播放成功后,会触发 playState 值为 PlayStatePlaying 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 调用 stopMusic{@link #IKTVPlayer#stopMusic} 方法停止播放成功后,会触发 playState 值为 PlayStateStoped 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 音乐播放结束会触发 playState 值为 PlayStateFinished 的回调。 + * @list 在线 KTV + */ + + virtual void onPlayStateChanged(const char* music_id, PlayState play_state, bytertc::KTVPlayerErrorCode error_code) { + (void)music_id; + (void)play_state; + (void)error_code; + } +}; +/** + * + * @type api + * @brief KTV 播放器接口。 + * @list Online Karaoke + */ + +class IKTVPlayer { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVPlayer() = default; + /** + * + * @type api + * @brief 设置 KTV 播放器进度及状态回调接口。 + * @param handler KTV 播放器回调类,参看 IKTVPlayerEventHandler{@link #IKTVPlayerEventHandler}。 + * @list 在线 KTV + */ + + virtual void setPlayerEventHandler(IKTVPlayerEventHandler *handler) = 0; + /** + * + * @type api + * @brief 播放歌曲。 + * @param music_id 音乐 ID。
+ * 若同一 music_id 的歌曲正在播放,再次调用接口会从开始位置重新播放。若 music_id 对应的音频文件不存在会触发报错。 + * @param track_type 原唱伴唱类型,参看 AudioTrackType{@link #AudioTrackType}。 + * @param play_type 音乐播放类型。参看 AudioPlayType{@link #AudioPlayType}。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * - 若音乐文件不存在,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3020,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void playMusic(const char* music_id, AudioTrackType track_type, AudioPlayType play_type) = 0; + /** + * + * @type api + * @brief 暂停播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void pauseMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 继续播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void resumeMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 停止播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void stopMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param music_id 音乐 ID。 + * @param position 音乐起始位置,单位为毫秒,取值小于音乐文件总时长。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void seekMusic(const char *music_id, int position) = 0; + /** + * + * @type api + * @brief 设置歌曲播放音量,只能在开始播放后进行设置。 + * @param music_id 音乐 ID。 + * @param volume 歌曲播放音量,调节范围:[0,400]。
+ * - 0:静音。 + * - 100:原始音量。 + * - 400: 原始音量的 4 倍(自带溢出保护)。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的音量大于 400,则按最大值 400 进行调整;若设置的音量小于 0,则按最小值 0 进行调整。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void setMusicVolume(const char *music_id, int volume) = 0; + /** + * + * @type api + * @brief 切换歌曲原唱伴唱。 + * @param music_id 音乐 ID。 + * @note 调用本接口时音乐必须处于播放中状态。 + * @list 在线 KTV + */ + + virtual void switchAudioTrackType(const char *music_id) = 0; + /** + * + * @type api + * @brief 对播放中的音乐设置升降调信息。 + * @param music_id 音乐 ID。 + * @param pitch 相对于音乐文件原始音调的升高/降低值,取值范围 [-12,12],默认值为 0,即不做调整。
+ * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的 pitch 大于 12,则按最大值 12 进行调整;若设置的 pitch 小于 –12,则按最小值 –12 进行调整。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void setMusicPitch(const char* music_id, int pitch) = 0; + +}; +/** + * + * @type api + * @brief KTV 管理接口。 + * @list Online Karaoke + */ + +class IKTVManager { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVManager() = default; + /** + * + * @type api + * @brief 设置歌曲文件最大占用的本地缓存。 + * @param max_cache_size_mb 本地缓存,单位 MB。
+ * 设置值小于等于 0 时,使用默认值 1024 MB。 + * @list 在线 KTV + */ + + virtual void setMaxCacheSize(int max_cache_size_mb) = 0; + /** + * + * @type api + * @brief 设置 KTV 回调接口。 + * @param ktv_manager_event_handler KTV 回调类,参看 IKTVManagerEventHandler{@link #IKTVManagerEventHandler}。 + * @list 在线 KTV + */ + + virtual void setKTVManagerEventHandler(IKTVManagerEventHandler *ktv_manager_event_handler) = 0; + /** + * + * @type api + * @brief 获取歌曲列表。 + * @param page_num 页码,默认从 1 开始。 + * @param page_size 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onMusicListResult{@link #IKTVManagerEventHandler#onMusicListResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void getMusicList(int page_num, int page_size, int filters) = 0; + /** + * + * @type api + * @brief 根据关键词搜索歌曲。 + * @param key_word 关键词,字符串长度最大为 20 个字符。 + * @param page_num 页码,默认从 1 开始。 + * @param page_size 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onSearchMusicResult{@link #IKTVManagerEventHandler#onSearchMusicResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void searchMusic(const char* key_word, int page_num, int page_size, int filters) = 0; + /** + * + * @type api + * @brief 指定歌曲榜单,并获取其歌曲列表。 + * @param custom_hotlist_id 榜单 ID。
+ * 默认榜单 ID 有:`ContentCenter` 和 `Project`,分别是火山内容中心热歌榜和项目热歌榜。如果你需要其他榜单,请联系技术支持人员。 + * @param id_num 榜单 ID 的个数。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onHotMusicResult{@link #IKTVManagerEventHandler#onHotMusicResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void getHotMusic(const char** custom_hotlist_id, int id_num, int filters) = 0; + /** + * + * @type api + * @brief 获取音乐详细信息。 + * @param music_id 音乐 ID。 + * @note 调用接口后,你会收到 onMusicDetailResult{@link #IKTVManagerEventHandler#onMusicDetailResult} 回调。 + * @list 在线 KTV + */ + + virtual void getMusicDetail(const char* music_id) = 0; + /** + * + * @type api + * @brief 下载音乐。 + * @param music_id 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若音乐下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若音乐下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * - 音乐下载进度更新时,你会收到 onDownloadMusicProgress{@link #IKTVManagerEventHandler#onDownloadMusicProgress} 回调。 + * @list 在线 KTV + */ + + virtual int downloadMusic(const char* music_id) = 0; + /** + * + * @type api + * @brief 下载歌词。 + * @param music_id 音乐 ID。 + * @param type 歌词文件类型,参看 DownloadLyricType{@link #DownloadLyricType}。 + * @return 下载任务 ID。 + * @note + * - 若歌词下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若歌词下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * @list 在线 KTV + */ + + virtual int downloadLyric(const char* music_id, DownloadLyricType type) = 0; + /** + * + * @type api + * @brief 下载 MIDI 文件。 + * @param music_id 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若文件下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若文件下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * @list 在线 KTV + */ + + virtual int downloadMidi(const char* music_id) = 0; + /** + * + * @type api + * @brief 取消下载任务。 + * @param download_id 下载任务 ID。 + * @list 在线 KTV + */ + + virtual void cancelDownload(int download_id) = 0; + /** + * + * @type api + * @brief 清除当前音乐缓存文件,包括音乐音频和歌词。 + * @list 在线 KTV + */ + + virtual void clearCache() = 0; + /** + * + * @type api + * @brief 获取 KTV 播放器。 + * @return KTV 播放器接口,参看 IKTVPlayer{@link #IKTVPlayer}。 + * @list 在线 KTV + */ + + virtual IKTVPlayer *getKTVPlayer() = 0; + +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h new file mode 100644 index 0000000..f5979c0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h @@ -0,0 +1,5285 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Stream Defines + */ + +#pragma once + +#include +#include + +#include "bytertc_rts_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 方法调用结果。 + */ + +enum ReturnStatus { + /** + * + * @brief 成功。 + */ + + kReturnStatusSuccess = 0, + /** + * + * @brief 失败。 + */ + + kReturnStatusFailure = -1, + /** + * + * @brief 参数错误。 + */ + + kReturnStatusParameterErr = -2, + /** + * + * @brief 接口状态错误。 + */ + + kReturnStatusWrongState = -3, + /** + * + * @brief 失败,用户已在房间内。 + */ + + kReturnStatusHasInRoom = -4, + /** + * + * @brief 失败,用户已登录。 + */ + + kReturnStatusHasInLogin = -5, + /** + * + * @brief 失败,用户已经在进行通话回路测试中。 + */ + + kReturnStatusHasInEchoTest = -6, + /** + * + * @brief 失败,音视频均未采集。 + */ + + kReturnStatusNeitherVideoNorAudio = -7, + /** + * + * @brief 失败,该 roomId 已被使用。 + */ + + kReturnStatusRoomIdInUse = -8, + /** + * + * @brief 失败,屏幕流不支持。 + */ + + kReturnStatusScreenNotSupport = -9, + /** + * + * @brief 失败,不支持该操作。 + */ + + kReturnStatusNotSupport = -10, + /** + * + * @brief 失败,资源已占用。 + */ + + kReturnStatusResourceOverflow = -11, + /** + * + * @brief 失败,不支持视频接口调用。 + */ + + kReturnStatusVideoNotSupport = -12, + /** + * + * @brief 游戏场景不支持调用该接口,会与游戏房间模块的 enableMicrophone{@link #IGameRoom#enableMicrophone} 接口互相冲突 + */ + + kReturnStatusGameSceneNotSupport = -13, + /** + * + * @brief 失败,没有音频帧。 + */ + + kReturnStatusAudioNoFrame = -101, + /** + * + * @brief 失败,未实现。 + */ + + kReturnStatusAudioNotImplemented = -102, + /** + * + * @brief 失败,采集设备无麦克风权限,尝试初始化设备失败。 + */ + + kReturnStatusAudioNoPermission = -103, + /** + * + * @brief 失败,设备不存在。当前没有设备或设备被移除时返回该值。 + */ + + kReturnStatusAudioDeviceNotExists = -104, + /** + * + * @brief 失败,设备音频格式不支持。 + */ + + kReturnStatusAudioDeviceFormatNotSupport = -105, + /** + * + * @brief 失败,系统无可用设备。 + */ + + kReturnStatusAudioDeviceNoDevice = -106, + /** + * + * @brief 失败,当前设备不可用,需更换设备。 + */ + + kReturnStatusAudioDeviceCannotUse = -107, + /** + * + * @brief 系统错误,设备初始化失败。 + */ + + kReturnStatusAudioDeviceInitFailed = -108, + /** + * + * @brief 系统错误,设备开启失败。 + */ + + kReturnStatusAudioDeviceStartFailed = -109, + /** + * + * @brief 指定的音频进程不存在,采集失败。 + */ + + kReturnStatusAudioDeviceProcessNotExist = -110, + /** + * + * @brief 不支持指定进程采集音频 + */ + + kReturnStatusAudioDeviceSpecifyingProcessUnsupport = -111, + /** + * + * @brief 失败,无效对象。 + */ + + kReturnStatusNativeInvalid = -201, + /** + * + * @brief 警告。推送视频帧到 RTC SDK 时,相邻视频帧的时间戳差异应当和推帧操作的间隔相同。如果不同,会收到此警告。 + */ + + kReturnStatusVideoTimeStampWarning = -202, + /** + * + * @brief 告警,配置下发了无效的aec场景。 + */ + + kReturnStatusAecSceneWarning = -302, + /** + * + * @brief 警告,配置下发了错误的aec类型。 + */ + + kReturnStatusAecTypeWarning = -303, +}; + +/** + * + * @type keytype + * @brief 房间内远端流被移除的原因。 + */ + +enum StreamRemoveReason { + /** + * + * @brief 远端用户停止发布流。 + */ + + kStreamRemoveReasonUnpublish = 0, + /** + * + * @brief 远端用户发布流失败。 + */ + + kStreamRemoveReasonPublishFailed = 1, + /** + * + * @brief 媒体服务器 10s 没收到客户端的媒体数据。 + */ + + kStreamRemoveReasonKeepLiveFailed = 2, + /** + * + * @brief 远端用户断网。 + */ + + kStreamRemoveReasonClientDisconnected = 3, + /** + * + * @brief 远端用户重新发布流。 + */ + + kStreamRemoveReasonRepublish = 4, + /** + * + * @brief 其他原因。 + */ + + kStreamRemoveReasonOther = 5, + /** + * + * @brief 远端用户 Token 发布权限过期。 + */ + + kStreamRemoveReasonPrivilegeTokenExpired = 6, + /** + * + * @brief 远端用户流被踢。 + */ + + kStreamRemoveReasonStreamKickedByOther = 7, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 用户角色。 + */ + +enum UserRoleType { + /** + * + * @brief 主播角色。该角色用户可在房间内发布和订阅音视频流,房间中的其他用户可以感知到该用户的存在。 + */ + + kUserRoleTypeBroadcaster = 1, + /** + * + * @brief 隐身用户角色。此角色用户只可在房间内订阅音视频流,房间中的其他用户无法感知到该用户的存在。 + */ + + kUserRoleTypeSilentAudience = 2, +}; + +/** + * + * @type keytype + * @brief 用户可见性状态改变错误码。 + */ + +enum UserVisibilityChangeError { + /** + * + * @brief 成功。 + */ + + kUserVisibilityChangeErrorOk = 0, + /** + * + * @brief 未知错误。 + */ + + kUserVisibilityChangeErrorUnknown = 1, + /** + * + * @brief 房间内可见用户达到上限。 + */ + + kUserVisibilityChangeErrorTooManyVisibleUser = 2, +}; + +/** + * + * @type keytype + * @brief 数据消息来源 + */ + +enum DataMessageSourceType { + /** + * + * @brief 通过客户端或服务端的插入的自定义消息。 + */ + + kDataMessageSourceTypeDefault = 0, + /** + * + * @brief 系统数据,包含音量指示信息。 + */ + + kDataMessageSourceTypeSystem, +}; + +/** + * + * @type keytype + * @brief SEI 发送模式。 + */ + +enum SEICountPerFrame { + /** + * + * @brief 单发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,SEI 数据会按顺序跟随连续的视频帧逐帧发送,单个视频帧最多只有一个 SEI 数据。 + * 例如,假设在某一帧间隔内需要发送 3 个 SEI 数据,那么第 1 个 SEI 会在当前帧发送,第 2 个 SEI 会在下一帧发送,第 3 个 SEI 会在再下一帧发送。 + */ + + kSEICountPerFrameSingle = 0, + /** + * + * @brief 多发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,这些 SEI 数据会全部在下一个视频帧上发送。这种模式可以降低发送延迟,但单个视频帧会携带多个 SEI 数据。 + * 例如,假设在某一帧间隔内有 3 个 SEI 数据需要发送,这 3 个 SEI 数据将全部在下一个视频帧上发送。 + */ + + kSEICountPerFrameMulti, +}; + +/** + * + * @type keytype + * @brief 上行/下行网络质量 + */ + +struct NetworkQualityStats { + /** + * + * @brief 用户 ID + */ + + const char* uid; + /** + * + * @brief 本端的上行/下行的丢包率,范围 [0.0,1.0]
+ * 当 `uid` 为本地用户时,代表发布流的上行丢包率。
+ * 当 `uid` 为远端用户时,代表接收所有订阅流的下行丢包率。 + */ + + double fraction_lost; + /** + * + * @brief 当 `uid` 为本地用户时有效,客户端到服务端的往返延时(RTT),单位:ms + */ + + int rtt; + /** + * + * @brief 本端的音视频 RTP 包 2 秒内的平均传输速率,单位:bps
+ * 当 `uid` 为本地用户时,代表发送速率。
+ * 当 `uid` 为远端用户时,代表所有订阅流的接收速率。 + */ + + int total_bandwidth; + /** + * + * @brief 上行网络质量评分,详见 NetworkQuality{@link #NetworkQuality}。 + */ + + NetworkQuality tx_quality; + /** + * + * @brief 下行网络质量评分,详见 NetworkQuality{@link #NetworkQuality}。 + */ + + NetworkQuality rx_quality; + /** + * + * @hidden constructor/destructor + */ + + NetworkQualityStats() : uid(""), fraction_lost(0.), rtt(0), total_bandwidth(0), + tx_quality(kNetworkQualityUnknown), rx_quality(kNetworkQualityUnknown) { + } +}; + +/** + * + * @type keytype + * @brief 房间模式
+ * 根据所需场景,选择合适的房间模式,应用不同的音视频算法、视频参数和网络配置
+ * 调用 `setAudioProfile` 改变音频参数配置 + */ + +enum RoomProfileType : int { + /** + * + * @brief 默认场景,通用模式
+ * 与 `kRoomProfileTypeMeeting = 16` 配置相同。
+ * 你可以联系技术支持更换默认配置参数。 + */ + + kRoomProfileTypeCommunication = 0, + /** + * + * @brief 游戏语音模式,低功耗、低流量消耗。
+ * 低端机在此模式下运行时,进行了额外的性能优化:
+ * - 部分低端机型配置编码帧长 40/60 + * - 部分低端机型关闭软件 3A 音频处理 + * 增强对 iOS 其他屏幕录制进行的兼容性,避免音频录制被 RTC 打断。 + */ + + kRoomProfileTypeGame = 2, + /** + * + * @brief 云游戏模式。
+ * 如果你的游戏场景需要低延迟的配置,使用此设置。
+ * 此设置下,弱网抗性较差。 + */ + + kRoomProfileTypeCloudGame = 3, + /** + * + * @brief 云渲染模式。超低延时配置。
+ * 如果你的应用并非游戏但又对延时要求较高时,选用此模式
+ * 该模式下,音视频通话延时会明显降低,但同时弱网抗性、通话音质等均会受到一定影响。 + */ + + kRoomProfileTypeLowLatency = 4, + /** + * + * @brief 适用于 3 人及以上纯语音通话。
+ * 通话中,闭麦时是媒体模式,上麦后切换为通话模式。 + */ + + kRoomProfileTypeChatRoom = 6, + /** + * + * @brief 适用于单主播和观众进行音视频互动的直播。通话模式,上下麦不会有模式切换,避免音量突变现象 + */ + + kRoomProfileTypeInteractivePodcast = 10, + /** + * + * @brief 适合在线实时合唱场景,高音质,超低延迟。使用本配置前请联系技术支持进行协助完成其他配置。 + */ + + kRoomProfileTypeChorus = 12, + /** + * + * @brief 适用于 1 vs 1 游戏串流,支持公网或局域网。 + */ + + kRoomProfileTypeGameStreaming = 14, + /** + * + * @brief 适用于云端会议中的个人设备 + */ + + kRoomProfileTypeMeeting = 16, + /** + * + * @brief 适用于云端会议中的会议室终端设备,例如 Rooms,投屏盒子等。 + */ + + kRoomProfileTypeMeetingRoom = 17, + /** + * + * @brief 适用于课堂互动,房间内所有成员都可以进行音视频互动
+ * 当你的场景中需要同时互动的成员超过 10 人时使用此模式 + */ + + kRoomProfileTypeClassroom = 18, + /** + * + * @brief 注重流畅性,缺省码率相对低。适用于通话。 + */ + + kRoomProfileTypeCall = 19, + /** + * + * @brief 直播模式。更注重画质,视频缺省码率相对高。适用于直播互动。 + */ + + kRoomProfileTypeLive = 20, +}; +/** + * + * @type keytype + * @brief 直播模式。 + */ + +enum RoomLiveMode : int { + /** + * + * @brief 多人直播、连麦直播等模式。 + */ + + kRoomLiveModeCoHost = 1, + /** + * + * @brief 单人直播。 + */ + + kRoomLiveModeSoloHost = 2, +}; + +/** + * + * @type keytype + * @brief 多房间参数配置 + */ + +struct AudioRoomConfig { + /** + * + * @brief 房间模式,参看 RoomProfileType{@link #RoomProfileType},默认为 `kRoomProfileTypeCommunication`,进房后不可更改。 + */ + + RoomProfileType room_profile_type = kRoomProfileTypeCommunication; + /** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_audio = true; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。
+ * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_audio = true; +}; + +/** + * + * @type keytype + * @brief 媒体设备类型 + */ + +enum MediaDeviceType { + /** + * + * @brief 未知设备 + */ + + kMediaDeviceTypeAudioUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + kMediaDeviceTypeAudioRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + kMediaDeviceTypeAudioCaptureDevice = 1, + /** + * + * @hidden currently not available + * @brief 视频渲染设备类型,该类型暂无使用 + */ + + kMediaDeviceTypeVideoRenderDevice = 2, + /** + * + * @brief 视频采集设备 + */ + + kMediaDeviceTypeVideoCaptureDevice = 3, + /** + * + * @brief 屏幕流视频设备 + */ + + kMediaDeviceTypeScreenVideoCaptureDevice = 4, + /** + * + * @brief 屏幕流音频设备 + */ + + kMediaDeviceTypeScreenAudioCaptureDevice = 5, +}; + +/** + * + * @type keytype + * @brief 媒体设备状态。 + */ + +enum MediaDeviceState { + /** + * + * @brief 设备已开启 + */ + + kMediaDeviceStateStarted = 1, + /** + * + * @brief 设备已停止 + */ + + kMediaDeviceStateStopped = 2, + /** + * + * @brief 设备运行时错误
+ * 例如,当媒体设备的预期行为是正常采集,但没有收到采集数据时,将回调该状态。 + */ + + kMediaDeviceStateRuntimeError = 3, + /** + * + * @brief 设备已暂停。包括:
+ * - 采集过程中,目标应用窗体最小化到任务栏。 + * - 开启采集或采集过程中,目标应用窗体被隐藏。 + * - 采集过程中,目标应用窗体正在被拉伸。 + * - 采集过程中,目标应用窗体正在被拖动。 + */ + + kMediaDeviceStatePaused = 4, + /** + * + * @brief 设备已恢复 + */ + + kMediaDeviceStateResumed = 5, + /** + * + * @brief 设备已插入
+ * 你可以调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateAdded = 10, + /** + * + * @brief 设备被移除
+ * 你可以调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateRemoved = 11, + /** + * + * @brief 用户合盖打断了视频通话。如果系统未休眠或关机,将在开盖后自动恢复视频通话。 + */ + + kMediaDeviceStateInterruptionBegan = 12, + /** + * + * @brief 视频通话已从合盖打断中恢复 + */ + + kMediaDeviceStateInterruptionEnded = 13, + /** + * + * @brief 设备成为系统默认 + */ + + kMediaDeviceStateBecomeSystemDefault = 14, + /** + * + * @brief 设备不再是系统默认 + */ + + kMediaDeviceStateResignSystemDefault = 15, + + /** + * + * @brief 获取设备列表超时后,收到设备列表通知。
+ * 再次调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateListUpdated = 16, +}; + +/** + * + * @type keytype + * @brief 媒体设备错误类型 + */ + +enum MediaDeviceError { + /** + * + * @brief 媒体设备正常 + */ + + kMediaDeviceErrorOK = 0, + /** + * + * @brief 没有权限启动媒体设备 + */ + + kMediaDeviceErrorDeviceNoPermission = 1, + /** + * + * @brief 媒体设备已经在使用中 + */ + + kMediaDeviceErrorDeviceBusy = 2, + /** + * + * @brief 媒体设备错误 + */ + + kMediaDeviceErrorDeviceFailure = 3, + /** + * + * @brief 未找到指定的媒体设备 + */ + + kMediaDeviceErrorDeviceNotFound = 4, + /** + * + * @brief 媒体设备被移除。
+ * 对象为采集屏幕流时,表明窗体被关闭或显示器被移除。 + */ + + kMediaDeviceErrorDeviceDisconnected = 5, + /** + * + * @brief 设备没有数据回调 + */ + + kMediaDeviceErrorDeviceNoCallback = 6, + /** + * + * @brief 设备采样率不支持 + */ + + kMediaDeviceErrorDeviceUNSupportFormat = 7, + /** + * + * @hidden(Android,macOS,Windows,Linux) + * @brief ios 屏幕采集没有 group id 参数 + */ + + kMediaDeviceErrorDeviceNotFindGroupId = 8, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:使用 camera 过程中被送到后台 + */ + + kMediaDeviceErrorDeviceNotAvailableInBackground = 9, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:被其他客户端打断,比如一个正在使用 capture session 的 app + */ + + kMediaDeviceErrorDeviceVideoInUseByAnotherClient = 10, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:使用 Slide Over,、Split View 或者 PIP 时被中断,比如台前调度,画中画 + */ + + kMediaDeviceErrorDeviceNotAvailableWithMultipleForegroundApps = 11, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:系统压力,比如过热 + */ + + kMediaDeviceErrorDeviceNotAvailableDueToSystemPressure = 12, + /** + * + * @hidden(Android, iOS, Linux) + * @brief 系统服务错误或长时间不响应,建议重启音频服务进程或重启设备。 + */ + + kMediaDeviceErrorAudioServerNeedRestart = 13, +}; + +/** + * + * @type keytype + * @brief 媒体设备警告 + */ + +enum MediaDeviceWarning { + /** + * + * @brief 无警告 + */ + + kMediaDeviceWarningOK = 0, + /** + * + * @brief 非法设备操作。在使用外部设备时,调用了 SDK 内部设备 API。 + */ + + kMediaDeviceWarningOperationDenied = 1, + /** + * + * @brief 采集静音。 + */ + + kMediaDeviceWarningCaptureSilence = 2, + /** + * + * @hidden(iOS,macOS,Windows,Linux) + * @brief Android 特有的静音,系统层面的静音上报 + */ + + kMediaDeviceWarningAndroidSysSilence = 3, + /** + * + * @hidden(iOS,macOS,Windows,Linux) + * @brief Android 特有的静音消失 + */ + + kMediaDeviceWarningAndroidSysSilenceDisappear = 4, + + /** + * + * @hidden for internal use only + * @brief 音量过大,超过设备采集范围。建议降低麦克风音量或者降低声源音量。 + */ + + kMediaDeviceWarningDetectClipping = 10, + /** + * + * @brief 通话中出现回声现象。
+ * 当 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeMeeting` 和
+ * `kRoomProfileTypeMeetingRoom`,且 AEC 关闭时,SDK 自动启动回声检测,如果检测到回声问题,将通过
+ * `onAudioDeviceWarning` 返回本枚举值。 + */ + + kMediaDeviceWarningDetectLeakEcho = 11, + /** + * + * @hidden for internal use only + * @brief 低信噪比 + */ + + kMediaDeviceWarningDetectLowSNR = 12, + /** + * + * @hidden for internal use only + * @brief 采集插零现象 + */ + + kMediaDeviceWarningDetectInsertSilence = 13, + /** + * + * @hidden for internal use only + * @brief 设备采集静音(算法层) + */ + + kMediaDeviceWarningCaptureDetectSilence = 14, + /** + * + * @hidden for internal use only + * @brief 设备采集静音消失 + */ + + kMediaDeviceWarningCaptureDetectSilenceDisappear = 15, + /** + * + * @hidden(Linux) + * @brief 啸叫。
+ * 触发该回调的情况如下:
+ * - 不支持啸叫抑制的房间模式下,检测到啸叫; + * - 支持啸叫抑制的房间模式下,检测到未被抑制的啸叫。仅 kRoomProfileTypeCommunication、kRoomProfileTypeMeeting、kRoomProfileTypeMeetingRoom 三种房间模式支持啸叫抑制。 建议提醒用户检查客户端的距离或将麦克风和扬声器调至静音。 + */ + + kMediaDeviceWarningCaptureDetectHowling = 16, + + /** + * + * @hidden for internal use only + * @brief 检测到突发脉冲噪声 + */ + + kMediaDeviceWarningSuddenImpluseDetected = 17, + + /** + * + * @hidden for internal use only + * @brief 检测到方波声音 + */ + + kMediaDeviceWarningSquareWavSoundDetected = 18, + + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 该 scenario 下不支持设置 + */ + + kMediaDeviceWarningSetAudioRouteInvalidScenario = 20, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, routing device 不存在 (Android) + */ + + kMediaDeviceWarningSetAudioRouteNotExists = 21, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 系统高优先级路由占用 (IOS) + */ + + kMediaDeviceWarningSetAudioRouteFailedByPriority = 22, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief 当前非通话模式 kAudioScenarioTypeCommunication,不支持设置音频路由 + */ + + kMediaDeviceWarningSetAudioRouteNotVoipMode = 23, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 设备没有启动 + */ + + kMediaDeviceWarningSetAudioRouteDeviceNotStart = 24, + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @brief setBluetoothMode 结果回调, 当前场景不会立即生效 + */ + + kMediaDeviceWarningSetBluetoothModeScenarioUnsupport = 25, + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @brief setBluetoothMode 结果回调, 当前不支持设置蓝牙模式 + */ + + kMediaDeviceWarningSetBluetoothModeUnsupport = 26, + /** + * + * @hidden currently not available + * @brief 使用无声的采集设备 + */ + + kMediaDeviceWarningRecordingUseSilentDevice = 27, + /** + * + * @hidden(Linux) + * @brief 使用无声的播放设备 + */ + + kMediaDeviceWarningPlayoutUseSilentDevice = 28, + /** + * + * @hidden(macOS,Linux,Android,iOS) + * @brief 不支持排除本进程采集,当前采集全部进程音频 + */ + + kMediaDeviceWarningRecordingAllProcess = 29, + /** + * + * @hidden(macOS,Linux,Android,iOS) + * @brief 全部进程采集开启失败 + */ + + kMediaDeviceWarningRecordingAllProcessFailed = 30, +}; + +/** + * + * @type keytype + * @brief 订阅媒体流状态 + */ + +enum StreamSubscribeState { + /** + * + * @brief 订阅/取消订阅流成功 + */ + + kStreamSubscribeStateSuccess, + /** + * + * @brief 订阅/取消订阅流失败,本地用户未在房间中 + */ + + kStreamSubscribeStateFailedNotInRoom, + /** + * + * @brief 订阅/取消订阅流失败,房间内未找到指定的音视频流 + */ + + kStreamSubscribeStateFailedStreamNotFound, + /** + * + * @brief 超过订阅流数上限 + */ + + kStreamSubscribeStateFailedOverLimit, +}; + +/** + * + * @type keytype + * @brief 发布状态 + */ + +enum PublishState { + /** + * + * @brief 发布成功 + */ + + kPublishStatePublished, + /** + * + * @brief 发布失败 + */ + + kPublishStateUnpublished, +}; + +/** + * + * @type keytype + * @brief 订阅状态 + */ + +enum SubscribeState { + /** + * + * @brief 订阅成功 + */ + + kSubscribeStateSubscribed, + /** + * + * @brief 订阅失败 + */ + + kSubscribeStateUnsubscribed, +}; + +/** + * + * @type keytype + * @brief 发布状态变化原因 + */ + +enum PublishStateChangeReason { + /** + * + * @brief 用户调用发布 + */ + + kPublishStateChangeReasonPublish, + /** + * + * @brief 用户取消发布 + */ + + kPublishStateChangeReasonUnpublish, + /** + * + * @brief 发布 token 没有权限 + */ + + kPublishStateChangeReasonNoPublishPermission, + /** + * + * @brief 发布流总数超过上限 + */ + + kPublishStateChangeReasonOverStreamPublishLimit, + /** + * + * @brief 将一路流发布到多个房间时,其中一个房间取消发布失败。 + */ + + kPublishStateChangeReasonMultiRoomUnpublishFailed, + /** + * + * @brief 服务器错误导致发布失败 + */ + + kPublishStateChangeReasonPublishStreamFailed, + /** + * + * @brief 观众尝试发布操作 + */ + + kPublishStateChangeReasonPublishStreamForbidden, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布。 + */ + + kPublishStateChangeReasonUserInPublish, + /** + * + * @brief 其他用户发布了相同 streamid 的流,导致本端发布的流被踢掉。 + */ + + kPublishStateChangeReasonStreamPublishByOther, + /** + * + * @brief 流 ID 校验失败。 + */ + + kPublishStateChangeReasonStreamIdInvalid +}; + +/** + * + * @type keytype + * @brief 订阅状态变化原因 + */ + +enum SubscribeStateChangeReason { + /** + * + * @brief 本端调用订阅 + */ + + kSubscribeStateChangeReasonSubscribe, + /** + * + * @brief 本端取消订阅 + */ + + kSubscribeStateChangeReasonUnsubscribe, + /** + * + * @brief 远端发布流 + */ + + kSubscribeStateChangeReasonRemotePublish, + /** + * + * @brief 远端取消发布流 + */ + + kSubscribeStateChangeReasonRemoteUnpublish, + /** + * + * @brief 由于服务器错误导致订阅失败。SDK 会自动重试订阅 + */ + + kSubscribeStateChangeReasonStreamFailed5xx, + /** + * + * @brief 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + kSubscribeStateChangeReasonStreamFailed404, + /** + * + * @brief 当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + kSubscribeStateChangeReasonOverStreamSubscribeLimit, + /** + * + * @brief 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + kSubscribeStateChangeReasonNoSubscribePermission +}; + +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use RoomConfig in joinRoom{@link #IRTCRoom#joinRoom} instead. + * @type keytype + * @brief 订阅模式选项。 + */ + +enum SubscribeMode { + /** + * + * @brief 自动订阅模式。SDK 会自动为你订阅房间中的每一路流。 + */ + + kSubscribeModeAuto = 0, + /** + * + * @brief 手动订阅模式。SDK 不会自动订阅房间内的音视频流,你应根据根据需要手动订阅其他用户发布的音视频流。 + */ + + kSubscribeModeManual = 1 +}; + +/** + * + * @type keytype + * @brief 远端用户优先级,在性能不足需要回退时,会优先回退优先级低的用户的音视频流 + */ + +enum RemoteUserPriority { + /** + * + * @brief 用户优先级为低(默认值) + */ + + kRemoteUserPriorityLow = 0, + /** + * + * @brief 用户优先级为正常 + */ + + kRemoteUserPriorityMedium = 100, + /** + * + * @brief 用户优先级为高 + */ + + kRemoteUserPriorityHigh = 200, +}; +/** + * + * @type keytype + * @brief 发布端音视频流回退选项 + */ + +enum PublishFallbackOption { + /** + * + * @brief 上行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + kPublishFallbackOptionDisabled = 0, + /** + * + * @brief 上行网络不佳或设备性能不足时,发布的视频流会从大流到小流依次降级,直到与当前网络性能匹配,具体降级规则参看[性能回退](https: + */ + + kPublishFallbackOptionSimulcast = 1, +}; +/** + * + * @type keytype + * @brief 订阅端音视频流回退选项。 + */ + +enum SubscribeFallbackOption { + /** + * + * @brief 下行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + kSubscribeFallbackOptionDisable = 0, + /** + * + * @brief 下行网络不佳或设备性能不足时,对视频流做降级处理,具体降级规则参看[音视频流回退](70137)。
+ * 该设置仅对发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setlocalsimulcastmode-2} 开启发送多路流功能的情况生效。 + */ + + kSubscribeFallbackOptionVideoStreamLow = 1, + /** + * + * @brief 下行网络不佳或设备性能不足时,先对视频流做回退处理。当网络状况不满足接收弱流时,则自动取消接收视频,仅接收音频。
+ * 该设置仅对发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setlocalsimulcastmode-2} 开启发送多路流功能的情况生效。 + */ + + kSubscribeFallbackOptionAudioOnly = 2, +}; + +/** + * + * @type keytype + * @brief 远端订阅流发生回退或恢复的原因 + */ + +enum FallbackOrRecoverReason { + /** + * + * @brief 其他原因,非带宽和性能原因引起的回退或恢复。默认值 + */ + + kFallbackOrRecoverReasonUnknown = -1, + /** + * + * @brief 由带宽不足导致的订阅端音视频流回退。 + */ + + kFallbackOrRecoverReasonSubscribeFallbackByBandwidth = 0, + /** + * + * @brief 由性能不足导致的订阅端音视频流回退。 + */ + + kFallbackOrRecoverReasonSubscribeFallbackByPerformance = 1, + /** + * + * @brief 由带宽恢复导致的订阅端音视频流恢复。 + */ + + kFallbackOrRecoverReasonSubscribeRecoverByBandwidth = 2, + /** + * + * @brief 由性能恢复导致的订阅端音视频流恢复。 + */ + + kFallbackOrRecoverReasonSubscribeRecoverByPerformance = 3, + /** + * + * @brief 由带宽不足导致的发布端音视频流回退。 + */ + + kFallbackOrRecoverReasonPublishFallbackByBandwidth = 4, + /** + * + * @brief 由性能不足导致的发布端音视频流回退。 + */ + + kFallbackOrRecoverReasonPublishFallbackByPerformance = 5, + /** + * + * @brief 由带宽恢复导致的发布端音视频流恢复。 + */ + + kFallbackOrRecoverReasonPublishRecoverByBandwidth = 6, + /** + * + * @brief 由性能恢复导致的发布端音视频流恢复。 + */ + + kFallbackOrRecoverReasonPublishRecoverByPerformance = 7, +}; + +/** + * + * @type keytype + * @brief 性能相关告警的原因 + */ + +enum PerformanceAlarmReason { + /** + * + * @brief 网络原因差,造成了发送性能回退。仅在开启发送性能回退时,会收到此原因。 + */ + + kPerformanceAlarmReasonBandwidthFallbacked = 0, + /** + * + * @brief 网络性能恢复,发送性能回退恢复。仅在开启发送性能回退时,会收到此原因。 + */ + + kPerformanceAlarmReasonBandwidthResumed = 1, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足;
+ * 如果开启了发送性能回退,收到此告警时,意味着性能不足,且已发生发送性能回退。 + */ + + kPerformanceAlarmReasonPerformanceFallbacked = 2, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足已恢复;
+ * 如果开启了发送性能回退,收到此告警时,意味着性能不足已恢复,且已发生发送性能回退恢复。 + */ + + kPerformanceAlarmReasonPerformanceResumed = 3, +}; + +/** + * + * @type keytype + * @brief 是否开启发布性能回退 + */ + +enum PerformanceAlarmMode { + /** + * + * @brief 未开启发布性能回退 + */ + + kPerformanceAlarmModeNormal = 0, + /** + * + * @brief 已开启发布性能回退 + */ + + kPerformanceAlarmModeSimulcast = 1, +}; + +/** + * + * @type keytype + * @brief 房间状态码。 + */ + +enum RoomState { + /** + * + * @brief 加入房间成功 + */ + + kRoomStateJoinSuccess = 0, + /** + * + * @brief 加入房间失败 + */ + + kRoomStateJoinFailed = 1, + /** + * + * @brief 离开房间 + */ + + kRoomStateLeft = 2, +}; + +/** + * + * @type keytype + * @brief 房间状态变化原因。 + */ + +enum RoomStateChangeReason { + /** + * + * @brief 首次进房成功。 + */ + + kRoomStateChangeReasonJoinRoom = 0, + /** + * + * @brief 重新进房,比如断网重连。 + */ + + kRoomStateChangeReasonReconnect = 1, + /** + * + * @brief 离开房间。 + */ + + kRoomStateChangeReasonLeaveRoom = 2, + + /** + * + * @brief 进房失败。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kRoomStateChangeReasonJoinRoomFailed = -2001, + + /** + * + * @brief Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 调用 joinRoom{@link #IRTCRoom#joinRoom} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken{@link #IRTSRoom#updateToken} 方法更新 Token。 + */ + + kRoomStateChangeReasonInvalidToken = -1000, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 房间被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonUserForbidden = -1026, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonKickedOut = -1006, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonRoomDismiss = -1011, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonDuplicateLogin = -1004, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kRoomStateChangeReasonWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonServerLicenseExpired = -1017, + + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseNotMatchWithCache = -1024, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseFunctionNotFound = -1027, + /** + * + * @brief 服务端异常状态导致退出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kRoomStateChangeReasonStateAbnormalServerStatus = -1084, + /** + * + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kRoomStateChangeReasonUnknown = -1001 +}; +/** + * + * @type keytype + * @brief 房间事件码。 + */ + +enum RoomEvent { + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomEventUserNotifyStop = -2013, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + kRoomEventForbidden = -2012, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + kRoomEventRetryOnServerError = -2014 +}; + +/** + * + * @type keytype + * @brief 房间事件信息 + */ + +struct RoomEventInfo { + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + int64_t forbidden_time = 0; +}; + +/** + * + * @type errorcode + * @brief 回调错误码。 + */ + +enum ErrorCode { + /** + * + * @brief Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 调用 joinRoom{@link #IRTCRoom#joinRoom} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken{@link #IRTSRoom#updateToken} 方法更新 Token。 + */ + + kErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kErrorCodeJoinRoom = -1001, + /** + * + * @brief 没有发布音视频流权限。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。
+ * 用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。 + */ + + kErrorCodeNoPublishPermission = -1002, + /** + * + * @brief 没有订阅音视频流权限。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
+ * 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + kErrorCodeNoSubscribePermission = -1003, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeDuplicateLogin = -1004, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeKickedOut = -1006, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomErrorTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomErrorUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeRoomDismiss = -1011, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kErrorCodeJoinRoomWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeRoomAlreadyExist = -1013, + /** + * + * @brief 加入多个房间时使用了不同的 uid。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + kErrorCodeUserIDDifferent = -1014, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseNotMatchWithCache = -1024, + /** + * + * @brief 房间被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomUserForbidden = -1026, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseFunctionNotFound = -1027, + /** + * + * @brief 订阅音视频流失败,订阅音视频流总数超过上限。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
+ * 游戏场景下,为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + kErrorCodeOverStreamSubscribeLimit = -1070, + /** + * + * @brief 发布流失败,发布流总数超过上限。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。
+ * RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。 + */ + + kErrorCodeOverStreamPublishLimit = -1080, + /** + * + * @deprecated since 3.52, use kErrorCodeOverStreamPublishLimit(-1080)instead + * @brief 发布视频流总数超过上限。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。 + */ + + kErrorCodeOverVideoPublishLimit = -1082, + /** + * + * @deprecated since 3.60, use kAVSyncEventInvalidUidRepeated carried by onAVSyncEvent{@link #IRTCRoomEventHandler#onAVSyncEvent} instead. + * @brief 音视频同步失败。通过 onStreamStateChanged 回调。
+ * 当前音频源已与其他视频源关联同步关系。
+ * 单个音频源不支持与多个视频源同时同步。 + */ + + kErrorCodeInvalidAudioSyncUidRepeated = -1083, + /** + * + * @brief 服务端异常状态导致退出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。 + */ + + kErrorCodeMultiRoomUnpublishFailed = -1085, + /** + * + * @hidden for internal use only + * @brief 指定服务区域时传入错误参数。 + */ + + kErrorCodeWrongAreaCode = -1086, + /** + * + * @hidden for internal use only + */ + + kErrorCodeInternalDeadLockNotify = -1111, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
+ * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅起通知作用。 + */ + +enum WarningCode { + + + /** + * + * @brief 进房失败。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。
+ * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + kWarningCodePublishStreamFailed = -2002, + /** + * + * @brief 订阅音视频流失败。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
+ * 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + kWarningCodeSubscribeStreamFailed404 = -2003, + /** + * + * @brief 订阅音视频流失败。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
+ * 当你订阅所在房间中的音视频流时,由于服务器错误导致订阅失败。SDK 会自动重试订阅。 + */ + + kWarningCodeSubscribeStreamFailed5xx = -2004, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误。 + */ + + kWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + kWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 当调用 `setUserVisibility` 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。
+ */ + + kWarningCodePublishStreamForbidden = -2009, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + kWarningCodeSendCustomMessage = -2011, + + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kWarningCodeUserNotifyStop = -2013, + + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布 WTN 流。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。 + */ + + kWarningCodeUserInPublish = -2014, + + /** + * + * @brief 当前正在进行回路测试,该接口调用无效 + */ + + kWarningCodeInEchoTestMode = -2017, + + /** + * + * @brief 摄像头权限异常,当前应用没有获取摄像头权限。 + */ + + kWarningCodeNoCameraPermission = -5001, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNoPermission 代替。
+ * 麦克风权限异常,当前应用没有获取麦克风权限。 + */ + + kWarningCodeNoMicrophonePermission = -5002, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceFailure 代替。
+ * 音频采集设备启动失败,当前设备可能被其他应用占用。 + */ + + kWarningCodeRecodingDeviceStartFailed = -5003, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceFailure 代替。
+ * 音频播放设备启动失败警告,可能由于系统资源不足,或参数错误。 + */ + + kWarningCodePlayoutDeviceStartFailed = -5004, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNotFound 代替。
+ * 无可用音频采集设备,请插入可用的音频采集设备。 + */ + + kWarningCodeNoRecordingDevice = -5005, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNotFound 代替。
+ * 无可用音频播放设备,请插入可用的音频播放设备。 + */ + + kWarningCodeNoPlayoutDevice = -5006, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceWarning{@link #MediaDeviceWarning}.kMediaDeviceWarningCaptureSilence 代替。
+ * 当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。 + */ + + kWarningCodeRecordingSilence = -5007, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceWarning{@link #MediaDeviceWarning}.kMediaDeviceWarningOperationDenied 代替。
+ * 媒体设备误操作警告。
+ * 使用自定义采集时,不可调用内部采集开关,调用时将触发此警告。 + */ + + kWarningCodeMediaDeviceOperationDenied = -5008, + + /** + * + * @brief 你需要在 publishStreamAudio 之前调用 `setScreenAudioSourceType` 设置屏幕音频采集类型。 + */ + + kWarningCodeSetScreenAudioSourceTypeFailed = -5009, + + /** + * + * @brief 不支持在 publishStreamAudio 之后, 通过 `setScreenAudioStreamIndex` 设置屏幕共享时的音频采集方式。 + */ + + kWarningCodeSetScreenAudioStreamIndexFailed = -5010, + /** + * + * @brief 设置语音音高不合法 + */ + + kWarningCodeInvalidVoicePitch = -5011, + /** + * + * @brief 设置音频格式不合法 + */ + + kWarningCodeInvalidAudioFormat = -5012, + /** + * + * @brief 外部音频源新旧接口混用 + */ + + kWarningCodeInvalidCallForExtAudio = -5013, + /** + * + * @brief 非法的远端流索引 + */ + + kWarningCodeInvalidRemoteStreamKey = -5014, + /** + * + * @brief 指定的内部渲染画布句柄无效。
+ * 当你调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 时指定了无效的画布句柄,触发此回调。 + */ + + kWarningCodeInvalidCanvasHandle = -6001, + /** + * + * @brief 鉴权文件失效,当检查鉴权文件状态时,本地文件与远端文件不一致会触发警告。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kWarningLicenseFileExpired = -7001, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiAppkeyORToken = -7002, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiResourcePath = -7003, + + /** + * + * @brief [音频技术](https: + */ + + kWarningLoadSamiLibraryFailed = -7004, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiEffectType = -7005, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态。 + */ + +enum LocalAudioStreamState { + /** + * + * @brief 本地音频默认初始状态。
+ * 麦克风停止工作时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateStopped = 0, + + /** + * + * @brief 本地音频录制设备启动成功。
+ * 采集到音频首帧时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateRecording, + + /** + * + * @brief 本地音频首帧编码成功。
+ * 音频首帧编码成功时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateEncoding, + + /** + * + * @brief 本地音频启动失败,在以下时机回调该状态:
+ * - 本地录音设备启动失败,对应错误码 kLocalAudioStreamErrorRecordFailure + * - 检测到没有录音设备权限,对应错误码 kLocalAudioStreamErrorDeviceNoPermission + * - 音频编码失败,对应错误码 kLocalAudioStreamErrorEncodeFailure + */ + + kLocalAudioStreamStateFailed, + + /** + * + * @brief 本地音频静音成功后回调该状态。
+ * 调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 成功后回调,对应错误码 LocalAudioStreamError{@link #LocalAudioStreamError} 中的 kLocalAudioStreamErrorOk 。 + */ + + kLocalAudioStreamStateMute, + + /** + * + * @brief 本地音频解除静音成功后回调该状态。
+ * 调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 成功后回调,对应错误码 LocalAudioStreamError{@link #LocalAudioStreamError} 中的 kLocalAudioStreamErrorOk 。 + */ + + kLocalAudioStreamStateUnmute +}; + +/** + * + * @type keytype + * @brief 本地音频流状态改变时的错误码。 + */ + +enum LocalAudioStreamError { + /** + * + * @brief 本地音频状态正常 + */ + + kLocalAudioStreamErrorOk = 0, + /** + * + * @brief 本地音频出错原因未知 + */ + + kLocalAudioStreamErrorFailure, + /** + * + * @brief 没有权限启动本地音频录制设备 + */ + + kLocalAudioStreamErrorDeviceNoPermission, + /** + * + * @hidden currently not available + * @brief 本地音频录制设备已经在使用中 + * @note 该错误码暂未使用 + */ + + kLocalAudioStreamErrorDeviceBusy, + /** + * + * @brief 本地音频录制失败,建议你检查录制设备是否正常工作 + */ + + kLocalAudioStreamErrorRecordFailure, + /** + * + * @brief 本地音频编码失败 + */ + + kLocalAudioStreamErrorEncodeFailure, + /** + * + * @brief 没有可用的音频录制设备 + */ + + kLocalAudioStreamErrorNoRecordingDevice +}; + +/** + * + * @type keytype + * @brief 本地视频流状态 + */ + +enum LocalVideoStreamState { + /** + * + * @brief 本地视频采集停止状态 + */ + + kLocalVideoStreamStateStopped = 0, + /** + * + * @brief 本地视频采集设备启动成功 + */ + + kLocalVideoStreamStateRecording, + /** + * + * @brief 本地视频采集后,首帧编码成功 + */ + + kLocalVideoStreamStateEncoding, + /** + * + * @brief 本地视频采集设备启动失败 + */ + + kLocalVideoStreamStateFailed, +}; + +/** + * + * @type errorcode + * @brief 本地视频状态改变时的错误码 + */ + +enum LocalVideoStreamError { + /** + * + * @brief 状态正常 + */ + + kLocalVideoStreamErrorOk = 0, + /** + * + * @brief 本地视频流发布失败 + */ + + kLocalVideoStreamErrorFailure, + /** + * + * @brief 没有权限启动本地视频采集设备 + */ + + kLocalVideoStreamErrorDeviceNoPermission, + /** + * + * @brief 本地视频采集设备已被占用 + */ + + kLocalVideoStreamErrorDeviceBusy, + /** + * + * @brief 本地视频采集设备不存在 + */ + + kLocalVideoStreamErrorDeviceNotFound, + /** + * + * @brief 本地视频采集失败,建议检查采集设备是否正常工作 + */ + + kLocalVideoStreamErrorCaptureFailure, + /** + * + * @brief 本地视频编码失败 + */ + + kLocalVideoStreamErrorEncodeFailure, + /** + * + * @brief 通话过程中本地视频采集设备被其他程序抢占,导致设备连接中断 + */ + + kLocalVideoStreamErrorDeviceDisconnected +}; + +/** + * + * @type keytype + * @brief 远端音频流状态。 + */ + +enum RemoteAudioState { + /** + * + * @brief 不接收远端音频流。 + */ + + kRemoteAudioStateStopped = 0, + /** + * + * @brief 开始接收远端音频流首包。 + */ + + kRemoteAudioStateStarting, + /** + * + * @brief 远端音频流正在解码,正常播放。 + */ + + kRemoteAudioStateDecoding, + /** + * + * @brief 远端音频流卡顿。 + */ + + kRemoteAudioStateFrozen, + /** + * + * @hidden currently not available + * @brief 远端音频流播放失败 + * @note 该错误码暂未使用 + */ + + kRemoteAudioStateFailed, +}; + +/** + * + * @type keytype + * @brief 接收远端音频流状态改变的原因。 + */ + +enum RemoteAudioStateChangeReason { + /** + * + * @brief 内部原因 + */ + + kRemoteAudioStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + kRemoteAudioStateChangeReasonNetworkCongestion, + /** + * + * @brief 网络恢复正常 + */ + + kRemoteAudioStateChangeReasonNetworkRecovery, + /** + * + * @brief 本地用户停止接收远端音频流 + */ + + kRemoteAudioStateChangeReasonLocalMuted, + /** + * + * @brief 本地用户恢复接收远端音频流 + */ + + kRemoteAudioStateChangeReasonLocalUnmuted, + /** + * + * @brief 远端用户停止发送音频流 + */ + + kRemoteAudioStateChangeReasonRemoteMuted, + /** + * + * @brief 远端用户恢复发送音频流 + */ + + kRemoteAudioStateChangeReasonRemoteUnmuted, + /** + * + * @brief 远端用户离开房间 + */ + + kRemoteAudioStateChangeReasonRemoteOffline, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态。状态改变时,会收到 `onRemoteVideoStateChanged` 回调 + */ + +enum RemoteVideoState { + /** + * + * @brief 远端视频流默认初始状态,视频尚未开始播放。 + */ + + kRemoteVideoStateStopped = 0, + /** + * + * @brief 本地用户已接收远端视频流首包。 + */ + + kRemoteVideoStateStarting, + /** + * + * @brief 远端视频流正在解码,正常播放。 + */ + + kRemoteVideoStateDecoding, + /** + * + * @brief 远端视频流卡顿,可能有网络等原因。 + */ + + kRemoteVideoStateFrozen, + /** + * + * @brief 远端视频流播放失败。 + */ + + kRemoteVideoStateFailed, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态改变的原因 + */ + +enum RemoteVideoStateChangeReason { + /** + * + * @brief 内部原因 + */ + + kRemoteVideoStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + kRemoteVideoStateChangeReasonNetworkCongestion, + /** + * + * @brief 网络恢复正常 + */ + + kRemoteVideoStateChangeReasonNetworkRecovery, + /** + * + * @brief 本地用户停止接收远端视频流或本地用户禁用视频模块 + */ + + kRemoteVideoStateChangeReasonLocalMuted, + /** + * + * @brief 本地用户恢复接收远端视频流或本地用户启用视频模块 + */ + + kRemoteVideoStateChangeReasonLocalUnmuted, + /** + * + * @brief 远端用户停止发送视频流或远端用户禁用视频模块 + */ + + kRemoteVideoStateChangeReasonRemoteMuted, + /** + * + * @brief 远端用户恢复发送视频流或远端用户启用视频模块 + */ + + kRemoteVideoStateChangeReasonRemoteUnmuted, + /** + * + * @brief 远端用户离开房间。 + */ + + kRemoteVideoStateChangeReasonRemoteOffline, +}; + +/** + * + * @type keytype + * @brief 黑帧视频流状态 + */ + +enum SEIStreamEventType { + /** + * + * @brief 远端用户发布黑帧视频流。
+ * 纯语音通话场景下,远端用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 发送 SEI 数据时,SDK 会自动发布一路黑帧视频流,并触发该回调。 + */ + + kSEIStreamEventTypeStreamAdd = 0, + /** + * + * @brief 远端黑帧视频流移除。该回调的触发时机包括:
+ * - 远端用户开启摄像头采集,由语音通话切换至视频通话,黑帧视频流停止发布; + * - 远端用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 后 1min 内未有 SEI 数据发送,黑帧视频流停止发布; + * - 远端用户调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 切换至自定义视频采集时,黑帧视频流停止发布。 + */ + + kSEIStreamEventTypeStreamRemove, +}; + +/** + * + * @type keytype + * @brief 性能回退相关数据 + */ + +struct SourceWantedData { + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入宽度;
+ * 如果开启了发送性能回退,此值表示当前推流的最大宽度。 + */ + + int width; + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入高度;
+ * 如果开启了发送性能回退,此值表示当前推流的最大高度。 + */ + + int height; + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入帧率,单位 fps;
+ * 如果开启了发送性能回退,此值表示当前推流的最大帧率,单位 fps。 + */ + + int frame_rate; +}; +/** + * + * @type keytype + * @brief 用户信息 + */ + +struct UserInfo { + /** + * + * @brief 用户 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + */ + + const char* uid = nullptr; + /** + * + * @brief 用户的额外信息,最大长度为 200 字节。会在 `onUserJoined` 中回调给远端用户。 + */ + + const char* extra_info = nullptr; +}; + +/** + * + * @type keytype + * @brief 通话相关的统计信息 + */ + +struct RtcRoomStats { + /** + * + * @brief 当前应用的上行丢包率,取值范围为 [0, 1] + */ + + float tx_lostrate; + /** + * + * @brief 当前应用的下行丢包率,取值范围为 [0, 1] + */ + + float rx_lostrate; + /** + * + * @brief 客户端到服务端数据传输的往返时延(单位 ms) + */ + + int rtt; + /** + * + * @brief 本地用户在本次通话中的参与时长,单位为 s + */ + + unsigned int duration; + /** + * + * @brief 本地用户的总发送字节数 (bytes),累计值 + */ + + unsigned int tx_bytes; + /** + * + * @brief 本地用户的总接收字节数 (bytes),累计值 + */ + + unsigned int rx_bytes; + /** + * + * @brief 发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_kbitrate; + /** + * + * @brief 接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_kbitrate; + /** + * + * @brief 音频接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_audio_kbitrate; + /** + * + * @brief 音频包的发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_audio_kbitrate; + /** + * + * @brief 视频接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_video_kbitrate; + /** + * + * @brief 视频发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_video_kbitrate; + /** + * + * @brief 屏幕接收码率,获取该数据时的瞬时值,单位为 Kbps + */ + + unsigned short rx_screen_kbitrate; + /** + * + * @brief 屏幕发送码率,获取该数据时的瞬时值,单位为 Kbps + */ + + unsigned short tx_screen_kbitrate; + /** + * + * @brief 当前房间内的可见用户人数 + */ + + unsigned int user_count; + /** + * + * @brief 当前应用的 CPU 使用率 (%) + */ + + double cpu_app_usage; + /** + * + * @hidden currently not available + * @brief 当前系统的 CPU 使用率 (%) + */ + + double cpu_total_usage; + /** + * + * @hidden currently not available + * @brief 系统上行网络抖动(ms) + */ + + int tx_jitter; + /** + * + * @hidden currently not available + * @brief 系统下行网络抖动(ms) + */ + + int rx_jitter; + /** + * + * @brief 蜂窝路径发送的码率 (kbps),为获取该数据时的瞬时值 + */ + + unsigned short tx_cellular_kbitrate; + /** + * + * @brief 蜂窝路径接收码率 (kbps),为获取该数据时的瞬时值 + */ + + unsigned short rx_cellular_kbitrate; +}; + +/** + * + * @type keytype + * @brief 视频的编码类型 + */ + +enum VideoCodecType { + /** + * + * @brief 未知类型 + */ + + kVideoCodecTypeUnknown = 0, + /** + * + * @brief 标准 H264 编码格式 + */ + + kVideoCodecTypeH264 = 1, + /** + * + * @brief ByteVC1 编码格式 + */ + + kVideoCodecTypeByteVC1 = 2, +}; + + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分模式。 + */ + +enum VideoSuperResolutionMode { + /** + * + * @brief 关闭超分。 + */ + + kVideoSuperResolutionModeOff = 0, + /** + * + * @brief 开启超分。 + */ + + kVideoSuperResolutionModeOn = 1, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式。 + */ + +enum VideoDenoiseMode { + /** + * + * @brief 视频降噪关闭。 + */ + + kVideoDenoiseModeOff = 0, + /** + * + * @brief 视频降噪开启,由 ByteRTC 后台配置视频降噪算法。 + */ + + kVideoDenoiseModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 本地音频流统计信息,统计周期为 2s 。
+ * 本地用户发布音频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
+ * 通知用户发布的音频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalAudioStats { + /** + * + * @brief 音频丢包率。此次统计周期内的音频上行丢包率,取值范围为 [0, 1]。 + */ + + float audio_loss_rate; + /** + * + * @brief 发送码率。此次统计周期内的音频发送码率,单位为 kbps 。 + */ + + int send_kbitrate; + /** + * + * @brief 采集采样率。此次统计周期内的音频采集采样率信息,单位为 Hz 。 + */ + + int record_sample_rate; + /** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。
+ * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 往返时延。单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 音频声道数。 + */ + + int num_channels; + /** + * + * @brief 音频发送采样率。此次统计周期内的音频发送采样率信息,单位为 Hz 。 + */ + + int sent_sample_rate; + /** + * + * @brief 音频上行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @brief 音频设备采集播放时延,单位为 ms 。 + */ + + int audio_device_loop_delay; + /** + * + * @brief 音频编码帧率。 + */ + + double encode_frame_rate; +}; + +/** + * + * @type keytype + * @brief 远端音频流统计信息,统计周期为 2s。
+ * 本地用户订阅远端音频流成功后,SDK 会周期性地通过 `onRemoteStreamStats` 通知本地用户订阅的音频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteAudioStats { + /** + * + * @brief 音频丢包率。统计周期内的音频下行丢包率,取值范围为 [0, 1] 。 + */ + + float audio_loss_rate; + /** + * + * @brief 接收码率。统计周期内的音频接收码率,单位为 kbps 。 + */ + + int received_kbitrate; + /** + * + * @brief 音频卡顿次数。统计周期内的卡顿次数。 + */ + + int stall_count; + /** + * + * @brief 音频卡顿时长。统计周期内的卡顿时长,单位为 ms 。 + */ + + int stall_duration; + /** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + + long e2e_delay; + /** + * + * @brief 播放采样率。统计周期内的音频播放采样率信息,单位为 Hz 。 + */ + + int playout_sample_rate; + /** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。 + */ + + int stats_interval; + /** + * + * @brief 客户端到服务端数据传输的往返时延,单位为 ms。 + */ + + int rtt; + /** + * + * @brief 发送端——服务端——接收端全链路数据传输往返时延。单位为 ms 。 + */ + + int total_rtt; + /** + * + * @brief 远端用户发送的音频流质量。远端用户发送的音频流质量。值含义参考 NetworkQuality{@link #NetworkQuality}。 + */ + + int quality; + /** + * + * @brief 因引入 jitter buffer 机制导致的延时。单位为 ms 。 + */ + + int jitter_buffer_delay; + /** + * + * @brief 音频声道数。 + */ + + int num_channels; + /** + * + * @brief 音频接收采样率。统计周期内接收到的远端音频采样率信息,单位为 Hz 。 + */ + + int received_sample_rate; + /** + * + * @brief 远端用户在加入房间后发生音频卡顿的累计时长占音频总有效时长的百分比。音频有效时长是指远端用户进房发布音频流后,除停止发送音频流和禁用音频模块之外的音频时长。 + */ + + int frozen_rate; + /** + * + * @brief 音频丢包补偿(PLC) 样点总个数。 + */ + + int concealed_samples; + /** + * + * @brief 音频丢包补偿(PLC) 累计次数。 + */ + + int concealment_event; + /** + * + * @brief 音频解码采样率。统计周期内的音频解码采样率信息,单位为 Hz 。 + */ + + int dec_sample_rate; + /** + * + * @brief 此次订阅中,对远端音频流进行解码的累计耗时。单位为 s。 + */ + + int dec_duration; + /** + * + * @brief 音频下行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @brief 音频解码帧率。 + */ + + double decode_frame_rate; +}; + +/** + * + * @type keytype + * @brief 本地视频流统计信息,统计周期为 2s 。
+ * 本地用户发布视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
+ * 通知用户发布的视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalVideoStats { + /** + * + * @brief 发送码率。此次统计周期内实际发送的分辨率最大的视频流的发送码率,单位为 Kbps + */ + + int sent_kbitrate; + /** + * + * @brief 采集帧率。此次统计周期内的视频采集帧率,单位为 fps 。 + */ + + int input_frame_rate; + /** + * + * @brief 发送帧率。此次统计周期内实际发送的分辨率最大的视频流的视频发送帧率,单位为 fps 。 + */ + + int sent_frame_rate; + /** + * + * @brief 编码器输出帧率。当前编码器在此次统计周期内实际发送的分辨率最大的视频流的输出帧率,单位为 fps 。 + */ + + int encoder_output_frame_rate; + /** + * + * @brief 本地渲染帧率。此次统计周期内的本地视频渲染帧率,单位为 fps 。 + */ + + int renderer_output_frame_rate; + /** + * + * @brief 统计间隔,单位为 ms 。
+ * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 视频丢包率。此次统计周期内的视频上行丢包率,取值范围为 [0, 1] 。 + */ + + float video_loss_rate; + /** + * + * @brief 往返时延,单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 视频编码码率。此次统计周期内的实际发送的分辨率最大的视频流视频编码码率,单位为 Kbps 。 + */ + + int encoded_bitrate; + /** + * + * @brief 实际发送的分辨率最大的视频流的视频编码宽度,单位为 px 。 + */ + + int encoded_frame_width; + /** + * + * @brief 实际发送的分辨率最大的视频流的视频编码高度,单位为 px 。 + */ + + int encoded_frame_height; + /** + * + * @brief 此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数。 + */ + + int encoded_frame_count; + /** + * + * @brief 视频的编码类型,具体参考 VideoCodecType{@link #VideoCodecType} 。 + */ + + VideoCodecType codec_type; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 视频上行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @hidden(Windows, Linux, macOS) for internal use + * @brief 视频降噪模式。具体参看 VideoDenoiseMode{@link #VideoDenoiseMode} 。 + */ + + VideoDenoiseMode video_denoise_mode; + /** + * + * @brief 视频编码平均耗时,单位 ms。 + */ + + int codec_elapse_per_frame; + +}; + +/** + * + * @type keytype + * @brief 远端视频流统计信息,统计周期为 2s 。
+ * 本地用户订阅远端视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
+ * 通知本地用户订阅的远端视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteVideoStats { + /** + * + * @brief 视频宽度 + */ + + int width; + /** + * + * @brief 视频高度 + */ + + int height; + /** + * + * @brief 视频丢包率。统计周期内的视频下行丢包率,取值范围: [0, 1] 。 + */ + + float video_loss_rate; + /** + * + * @brief 接收码率。统计周期内的视频接收码率,单位为 kbps 。 + */ + + int received_kbitrate; + /** + * + * @brief 解码器输出帧率。统计周期内的视频解码器输出帧率,单位 fps 。 + */ + + int decoder_output_frame_rate; + /** + * + * @brief 渲染帧率。统计周期内的视频渲染帧率,单位 fps 。 + */ + + int renderer_output_frame_rate; + /** + * + * @brief 卡顿次数。统计周期内的卡顿次数。 + */ + + int stall_count; + /** + * + * @brief 卡顿时长。统计周期内的视频卡顿总时长。单位 ms 。 + */ + + int stall_duration; + /** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + + long e2e_delay; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 统计间隔,此次统计周期的间隔,单位为 ms 。
+ * 此字段用于设置回调的统计周期,目前设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 往返时延,单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 远端用户在进房后发生视频卡顿的累计时长占视频总有效时长的百分比(%)。视频有效时长是指远端用户进房发布视频流后,除停止发送视频流和禁用视频模块之外的视频时长。 + */ + + int frozen_rate; + /** + * + * @brief 视频的编码类型,具体参考 VideoCodecType{@link #VideoCodecType} 。 + */ + + VideoCodecType codec_type; + /** + * + * @brief 对应多种分辨率的流的下标。 + */ + + int video_index; + /** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + + int jitter; + /** + * + * @hidden(Windows, Linux, macOS) for internal use + * @brief 远端视频超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + */ + + VideoSuperResolutionMode super_resolution_mode; + /** + * + * @brief 视频解码平均耗时,单位 ms。 + */ + + int codec_elapse_per_frame; + /** + * + * @brief 用户体验级别的端到端延时。从发送端开始采集到接收端渲染完成的延时,单位为 ms 。 + */ + + int cap_to_render_delay; + /** + * + * @brief 音画同步差异,单位为 ms 。 + */ + + int av_sync_diff_ms; +}; + +/** + * + * @type keytype + * @brief 本地音/视频流统计信息以及网络状况,统计周期为 2s 。
+ * 本地用户发布音/视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
+ * 通知本地用户发布的音/视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalStreamStats { + /** + * + * @brief 本地设备发送音频流的统计信息,详见 LocalAudioStats{@link #LocalAudioStats} + */ + + LocalAudioStats audio_stats; + /** + * + * @brief 本地设备发送视频流的统计信息,详见 LocalVideoStats{@link #LocalVideoStats} + */ + + LocalVideoStats video_stats; + /** + * + * @brief 所属用户的媒体流上行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality local_tx_quality; + /** + * + * @brief 所属用户的媒体流下行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality local_rx_quality; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 用户订阅的远端音/视频流统计信息以及网络状况,统计周期为 2s 。
+ * 订阅远端用户发布音/视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
+ * 通知本地用户订阅的远端音/视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteStreamStats { + /** + * + * @brief 用户 ID 。音/视频来源的远端用户 ID 。 + */ + + const char* uid; + /** + * + * @brief 远端音频流的统计信息,详见 RemoteAudioStats{@link #RemoteAudioStats} + */ + + RemoteAudioStats audio_stats; + /** + * + * @brief 远端视频流的统计信息,详见 RemoteVideoStats{@link #RemoteVideoStats} + */ + + RemoteVideoStats video_stats; + /** + * + * @brief 所属用户的媒体流上行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality remote_tx_quality; + /** + * + * @brief 所属用户的媒体流下行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality remote_rx_quality; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈问题类型 + */ + +enum ProblemFeedbackOption : uint64_t { + /** + * + * @brief 没有问题 + */ + + kProblemFeedbackOptionNone = 0, + /** + * + * @brief 其他问题 + */ + + kProblemFeedbackOptionOtherMessage = (1ULL << 0), + /** + * + * @brief 连接失败 + */ + + kProblemFeedbackOptionDisconnected = (1ULL << 1), + /** + * + * @brief 耳返延迟大 + */ + + kProblemFeedbackOptionEarBackDelay = (1ULL << 2), + + /** + * + * @brief 本端有杂音 + */ + + kProblemFeedbackOptionLocalNoise = (1ULL << 10), + /** + * + * @brief 本端声音卡顿 + */ + + kProblemFeedbackOptionLocalAudioLagging = (1ULL << 11), + /** + * + * @brief 本端无声音 + */ + + kProblemFeedbackOptionLocalNoAudio = (1ULL << 12), + /** + * + * @brief 本端声音大/小 + */ + + kProblemFeedbackOptionLocalAudioStrength = (1ULL << 13), + /** + * + * @brief 本端有回声 + */ + + kProblemFeedbackOptionLocalEcho = (1ULL << 14), + /** + * + * @brief 本端视频模糊 + */ + + kProblemFeedbackOptionLocalVideoFuzzy = (1ULL << 24), + /** + * + * @brief 本端音视频不同步 + */ + + kProblemFeedbackOptionLocalNotSync = (1ULL << 25), + /** + * + * @brief 本端视频卡顿 + */ + + kProblemFeedbackOptionLocalVideoLagging = (1ULL << 26), + /** + * + * @brief 本端无画面 + */ + + kProblemFeedbackOptionLocalNoVideo = (1ULL << 27), + + /** + * + * @brief 远端有杂音 + */ + + kProblemFeedbackOptionRemoteNoise = (1ULL << 37), + /** + * + * @brief 远端声音卡顿 + */ + + kProblemFeedbackOptionRemoteAudioLagging = (1ULL << 38), + /** + * + * @brief 远端无声音 + */ + + kProblemFeedbackOptionRemoteNoAudio = (1ULL << 39), + /** + * + * @brief 远端声音大/小 + */ + + kProblemFeedbackOptionRemoteAudioStrength = (1ULL << 40), + /** + * + * @brief 远端有回声 + */ + + kProblemFeedbackOptionRemoteEcho = (1ULL << 41), + + /** + * + * @brief 远端视频模糊 + */ + + kProblemFeedbackOptionRemoteVideoFuzzy = (1ULL << 51), + /** + * + * @brief 远端音视频不同步 + */ + + kProblemFeedbackOptionRemoteNotSync = (1ULL << 52), + /** + * + * @brief 远端视频卡顿 + */ + + kProblemFeedbackOptionRemoteVideoLagging = (1ULL << 53), + /** + * + * @brief 远端无画面 + */ + + kProblemFeedbackOptionRemoteNoVideo = (1ULL << 54), +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈的房间信息 + */ + +struct ProblemFeedbackRoomInfo { + /** + * + * @brief 房间 ID。 + */ + + const char* room_id = nullptr; + + /** + * + * @brief 本地用户 ID。 + */ + + const char* user_id = nullptr; +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈的信息 + */ + +struct ProblemFeedbackInfo { + /** + * + * @brief 预设问题以外的其他问题的具体描述。 + */ + + const char* problem_desc = nullptr; + + /** + * + * @type keytype + * @brief 音视频质量反馈的房间信息。查看 ProblemFeedbackRoomInfo{@link #ProblemFeedbackRoomInfo}。 + */ + + ProblemFeedbackRoomInfo* room_info = nullptr; + /** + * + * @type keytype + * @brief `FeedbackRoomInfo` 的数组长度。 + */ + + int room_info_count = 0; +}; + +/** + * + * @type keytype + * @brief 自定义加密类型 + */ + +enum EncryptType { + /** + * + * @brief 不使用加密。默认值。 + */ + + kEncryptTypeNone = 0, + /** + * + * @brief AES-128-CBC 加密算法 + */ + + kEncryptTypeAES128CBC = 1, + /** + * + * @brief AES-256-CBC 加密算法 + */ + + kEncryptTypeAES256CBC = 2, + /** + * + * @brief AES-128-ECB 加密算法 + */ + + kEncryptTypeAES128ECB = 3, + /** + * + * @brief AES-256-ECB 加密算法 + */ + + kEncryptTypeAES256ECB = 4 +}; +/** + * + * @type callback + * @brief 加密/解密处理函数
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 通话加密 + */ + +class IEncryptHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IEncryptHandler() { + } + /** + * + * @type api + * @brief 自定义加密。
+ * 使用设定的自定义加密方式,对编码后传输前的音视频帧数据进行加密。
+ * 暂不支持对原始音视频帧进行加密。 + * @param data 原始音视频帧数据 + * @param length 原始音视频帧数据的长度 + * @param buf 可供写入的加密后数据缓冲区 + * @param buf_len 可供写入的加密后数据缓冲区大小 + * @return 加密后的数据
+ * - ≥ 0:加密后实际写入缓冲区的数据大小 + * - 0:丢弃该帧 + * @note + * - 使用此接口进行自定义加密前,你必须先设置自定义加密方式,参看 `setCustomizeEncryptHandler`。 + * - 使用 onDecryptData{@link #IEncryptHandler#onDecryptData} 对已加密的音视频帧数据进行解密。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + + virtual unsigned int onEncryptData( + const unsigned char* data, unsigned int length, unsigned char* buf, unsigned int buf_len) = 0; + /** + * + * @type api + * @brief 自定义解密。
+ * 对自定义加密后的音视频帧数据进行解密。关于自定义加密,参看 onEncryptData{@link #IEncryptHandler#onEncryptData}。 + * @param data 原始音视频帧数据 + * @param length 原始音视频帧数据的长度 + * @param buf 可供写入的加密后数据缓冲区 + * @param buf_len 可供写入的加密后数据缓冲区大小 + * @return 加密后的数据
+ * - ≥ 0:加密后实际写入缓冲区的数据大小 + * - 0:丢弃该帧 + * @note + * - 使用此接口进行解密前,你必须先设定解密方式,参看 `setCustomizeEncryptHandler`。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + + virtual unsigned int onDecryptData( + const unsigned char* data, unsigned int length, unsigned char* buf, unsigned int buf_len) = 0; +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 用户信息 + */ + +struct RtcUser { + /** + * + * @brief 用户 id + */ + + const char* user_id; + /** + * + * @brief 元数据 + */ + + const char* meta_data; +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 首帧发送状态 + */ + +enum FirstFrameSendState { + /** + * + * @brief 发送中 + */ + + kFirstFrameSendStateSending = 0, + /** + * + * @brief 发送成功 + */ + + kFirstFrameSendStateSent = 1, + /** + * + * @brief 发送失败 + */ + + kFirstFrameSendStateEnd = 2, +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 首帧播放状态 + */ + +enum FirstFramePlayState { + /** + * + * @brief 播放中 + */ + + kFirstFramePlayStatePlaying = 0, + /** + * + * @brief 播放成功 + */ + + kFirstFramePlayStatePlayed = 1, + /** + * + * @brief 播放失败 + */ + + kFirstFramePlayStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 音视频流的发送/播放状态 + */ + +enum MuteState { + /** + * + * @brief 发送 + */ + + kMuteStateOff = 0, + /** + * + * @brief 停止发送 + */ + + kMuteStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +enum StreamIndex { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
+ * - 由摄像头/麦克风通过内部采集机制,采集到的视频/音频; + * - 通过自定义采集,采集到的视频/音频。 + */ + + kStreamIndexMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。屏幕共享时共享的视频流,或来自声卡的本地播放音频流。 + */ + + kStreamIndexScreen = 1, + /** + * + * @hidden for internal use only + */ + + kStreamIndex3rd, + /** + * + * @hidden for internal use only + */ + + kStreamIndex4th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex5th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex6th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex7th, + /** + * + * @hidden for internal use only + */ + + kStreamIndexMax, +}; + +/** + * + * @valid since 3.56 + * @type keytype + * @brief 流聚合策略 + */ + +enum AggregationOption { + /** + * + * @brief 流聚合向下取值 (默认策略) + */ + + kAggregationOptionMin = 0, + /** + * + * @brief 流聚合向上取值 + */ + + kAggregationOptionMax = 1, + /** + * + * @brief 流聚合按比例取值,比例相同时,向下取值 + */ + + kAggregationOptionMajority = 2, + +}; + +/** + * + * @type keytype + * @brief 远端流信息 + */ + +struct RemoteStreamKey { + /** + * + * @brief 媒体流所在房间的房间 ID。
+ * 如果此媒体流是通过 `startForwardStreamToRooms` 转发到你所在房间的媒体流时,你应将房间 ID 设置为你所在的房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 用户 ID + */ + + const char* user_id; + /** + * + * @brief 预留字段。 + */ + + StreamIndex stream_index; +}; + +/** + * + * @type keytype + * @brief 截图错误码 + */ + +enum SnapshotErrorCode { + /** + * + * @brief 截图成功。 + */ + + kSnapshotErrorCodeOk = 0, + /** + * + * @brief 截图错误。生成图片数据失败或 RGBA 编码失败。 + */ + + kSnapshotErrorCodeCreateFail = -1, + /** + * + * @brief 截图错误。流无效。 + */ + + kSnapshotErrorCodeStreamInvalid = -2, + /** + * + * @brief 截图错误。截图超时,超时时间 1 秒。 + */ + + kSnapshotErrorCodeTimeout = -3, + /** + * + * @brief 截图错误。图片保存失败。 + */ + + kSnapshotErrorCodeFileSaveError = -4 +}; +/** + * + * @type keytype + * @brief 本地录制文件的存储格式 + */ + +enum RecordingFileType { + /** + * + * @brief aac 格式文件 + */ + + kRecordingFileTypeAAC = 0, + /** + * + * @brief mp4 格式文件 + */ + + kRecordingFileTypeMP4 = 1, +}; + +/** + * + * @type keytype + * @brief 本地录制的状态 + */ + +enum RecordingState { + /** + * + * @brief 录制异常 + */ + + kRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + kRecordingStateProcessing = 1, + /** + * + * @brief 录制文件保存成功。正常调用 stopFileRecording 后触发。此外,若录制中途编码分辨率发生变更,SDK 会自动结束当前文件保存并触发此状态码,随后开启新一轮录制,直到调用停止录制。 + */ + + kRecordingStateSuccess = 2, +}; + +/** + * + * @type keytype + * @brief 本地录制的错误码 + */ + +enum RecordingErrorCode { + /** + * + * @brief 录制正常 + */ + + kRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + kRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 当前版本 SDK 不支持本地录制功能,请联系技术支持人员 + */ + + kRecordingErrorCodeNotSupport = -2, + /** + * + * @brief 其他异常 + */ + + kRecordingErrorCodeOther = -3, +}; + +/** + * + * @type keytype + * @brief 本地录制进度 + */ + +struct RecordingProgress { + /** + * + * @brief 当前文件的累计录制时长,单位:毫秒 + */ + + unsigned long long duration; + /** + * + * @brief 当前录制文件的大小,单位:byte + */ + + unsigned long long file_size; +}; + +/** + * + * @type keytype + * @brief 本地录制的详细信息 + */ + +struct RecordingInfo { + /** + * + * @brief 录制文件的绝对路径,包含文件名和文件后缀 + */ + + const char* file_path; + /** + * + * @brief 录制文件的视频编码类型,参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType video_codec_type; + /** + * + * @brief 录制视频的宽,单位:像素。纯音频录制请忽略该字段 + */ + + int width; + /** + * + * @brief 录制视频的高,单位:像素。纯音频录制请忽略该字段 + */ + + int height; +}; + +/** + * + * @type keytype + * @brief 本地录制参数配置 + */ + +struct RecordingConfig { + /** + * + * @brief 录制文件保存的绝对路径,需精确到文件夹,文件名由 RTC 自动生成。你需要确保对该路径具有读写权限。 + */ + + const char* dir_path; + /** + * + * @brief 录制存储文件格式,参看 RecordingFileType{@link #RecordingFileType} + */ + + RecordingFileType file_type; +}; + +/** + * + * @type keytype + * @brief 定义 linux 用户的用户功能 + */ + +enum UserWorkerType { + /** + * + * @brief 正常用户,没有任何特殊属性 + */ + + kUserWorkerTypeNormal = 0, + /** + * + * @brief 用户支持 SIP 流,信令只下发 SIP 流 + */ + + kUserWorkerTypeSupportSip = (1 << 0), + /** + * + * @brief 用户支持屏幕流的 bytevc1 到 H264 转码 + */ + + kUserWorkerTypeByteVc1Transcoder = (1 << 1), + /** + * + * @brief 用户需要信令服务器下发全量的用户列表和回调函数 + */ + + kUserWorkerTypeNeedUserListAndCb = (1 << 2), + /** + * + * @brief 用户需要在房间进入多人模式时获取房间内所有流的相关回调 + */ + + kUserWorkerTypeNeedStreamCallBack = (1 << 3), + /** + * + * @brief 用户选择设置不支持音频选路功能 + */ + + kUserWorkerTypeAudioSelectionExemption = (1 << 4), +}; + +/** + * + * @type keytype + * @brief 音视频同步状态 + */ + +enum AVSyncState { + /** + * + * @brief 音视频开始同步 + */ + + kAVSyncStateAVStreamSyncBegin = 0, + /** + * + * @brief 音视频同步过程中音频移除,但不影响当前的同步关系 + */ + + kAVSyncStateAudioStreamRemove, + /** + * + * @brief 音视频同步过程中视频移除,但不影响当前的同步关系 + */ + + kAVSyncStateVdieoStreamRemove, + /** + * + * @hidden for internal use only + * @brief 订阅端设置同步 + */ + + kAVSyncStateSetAVSyncStreamId, +}; + +/** + * + * @hidden + * @deprecated + * @type keytype + */ + +enum RtcRoomMode { + kRtcRoomNormalMode = 0, + kRtcRoomAudioSelectionMode = 1, +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的流类型 + */ + +enum SyncInfoStreamType { + /** + * + * @brief 音频流 + */ + + kSyncInfoStreamTypeAudio = 0 +}; + +/** + * + * @type keytype + * @brief 流属性。 + */ + +struct StreamInfo { + /** + * + * @brief 流 ID 。 + */ + + const char* stream_id; + /** + * + * @brief 房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 发布此流的用户 ID 。 + */ + + const char* user_id; + /** + * + * @hidden for internal use only + * @brief 该流的标识 ID,用户内唯一。 + */ + + int stream_index; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的相关配置 + */ + +struct StreamSyncInfoConfig { + /** + * + * @brief 消息发送的重复次数,取值范围是 [0,25],建议设置为 [3,5]。 + */ + + int repeat_count; + /** + * + * @brief 媒体流信息同步的流类型,见 SyncInfoStreamType{@link #SyncInfoStreamType} + */ + + SyncInfoStreamType stream_type; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +struct ForwardStreamInfo { + /** + * + * @brief 使用转发目标房间 roomID 和 UserID 生成 Token。
+ * 测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。
+ * 如果 Token 无效,转发失败。 + */ + + const char* token; + /** + * + * @brief 跨间转发媒体流过程中目标房间 ID + */ + + const char* room_id; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +struct ForwardStreamConfiguration { + /** + * + * @brief 目标房间信息,数组中的每个元素包含一个房间的信息。 + */ + + ForwardStreamInfo* forward_stream_dests = nullptr; + /** + * + * @brief 目标房间数量。媒体流同时转发的目标房间数量建议小于等于 4 个。 + */ + + int dest_count = 0; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发状态 + */ + +enum ForwardStreamState { + /** + * + * @brief 空闲状态
+ * - 成功调用 `stopForwardStreamToRooms` 后,所有目标房间为空闲状态。 + * - 成功调用 `updateForwardStreamToRooms` 减少目标房间后,本次减少的目标房间为空闲状态。 + */ + + kForwardStreamStateIdle = 0, + /** + * + * @brief 开始转发
+ * - 调用 `startForwardStreamToRooms` 成功向所有房间开始转发媒体流后,返回此状态。 + * - 调用 `updateForwardStreamToRooms` 后,成功向新增目标房间开始转发媒体流后,返回此状态。 + */ + + kForwardStreamStateSuccess = 1, + /** + * + * @brief 转发失败,失败详情参考 ForwardStreamError{@link #ForwardStreamError}
+ * 调用 `startForwardStreamToRooms` 或 `updateForwardStreamToRooms` 后,如遇转发失败,返回此状态。 + */ + + kForwardStreamStateFailure = 2, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发过程中抛出的错误码 + */ + +enum ForwardStreamError { + /** + * + * @brief 正常 + */ + + kForwardStreamErrorOK = 0, + /** + * + * @brief 参数异常 + */ + + kForwardStreamErrorInvalidArgument = 1201, + /** + * + * @brief token 错误 + */ + + kForwardStreamErrorInvalidToken = 1202, + /** + * + * @brief 服务端异常 + */ + + kForwardStreamErrorResponse = 1203, + /** + * + * @brief 目标房间有相同 user id 的用户加入,转发中断 + */ + + kForwardStreamErrorRemoteKicked = 1204, + /** + * + * @brief 服务端不支持转发功能 + */ + + kForwardStreamErrorNotSupport = 1205, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发事件 + */ + +enum ForwardStreamEvent { + /** + * + * @brief 本端与服务器网络连接断开,暂停转发。 + */ + + kForwardStreamEventDisconnected = 0, + /** + * + * @brief 本端与服务器网络连接恢复,转发服务连接成功。 + */ + + kForwardStreamEventConnected = 1, + /** + * + * @brief 转发中断。转发过程中,如果相同 user_id 的用户进入目标房间,转发中断。 + */ + + kForwardStreamEventInterrupt = 2, + /** + * + * @brief 目标房间已更新,由 `updateForwardStreamToRooms` 触发。 + */ + + kForwardStreamEventDstRoomUpdated = 3, + /** + * + * @brief API 调用时序错误。例如,在调用 `startForwardStreamToRooms` 之前调用 `updateForwardStreamToRooms` 。 + */ + + kForwardStreamEventUnExpectAPICall = 4, +}; + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间的状态和错误信息 + */ + +struct ForwardStreamStateInfo { + /** + * + * @brief 跨间转发媒体流过程中目标房间 ID + */ + + const char* room_id; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间的状态,参看 ForwardStreamState{@link #ForwardStreamState} + */ + + ForwardStreamState state; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间抛出的错误码,参看 ForwardStreamError{@link #ForwardStreamError} + */ + + ForwardStreamError error; +}; + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间发生的事件 + */ + +struct ForwardStreamEventInfo { + /** + * + * @brief 跨房间转发媒体流过程中的发生该事件的目标房间 ID
+ * 空字符串代表所有目标房间 + */ + + const char* room_id; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间发生的事件,参看 ForwardStreamEvent{@link #ForwardStreamEvent} + */ + + ForwardStreamEvent event; +}; + +/** + * + * @type keytype + * @brief 水印图片相对视频流的位置和大小。 + */ + +struct ByteWatermark { + /** + * + * @hidden currently not available + */ + + const char* url = nullptr; + /** + * + * @brief 水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0,1)。 + */ + + float x; + /** + * + * @brief 水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0,1)。 + */ + + float y; + /** + * + * @brief 水印图片宽度与视频流宽度的比值,取值范围 [0,1)。 + */ + + float width; + /** + * + * @brief 水印图片高度与视频流高度的比值,取值范围为 [0,1)。 + */ + + float height; +}; + +/** + * + * @type keytype + * @brief 水印参数 + */ + +struct RTCWatermarkConfig { + /** + * + * @type keytype + * @brief 水印是否在视频预览中可见,默认可见。 + */ + + bool visible_in_preview = true; + /** + * + * @type keytype + * @brief 横屏时的水印位置和大小,参看 ByteWatermark{@link #ByteWatermark}。 + */ + + ByteWatermark position_in_landscape_mode; + /** + * + * @type keytype + * @brief 视频编码的方向模式为竖屏时的水印位置和大小,参看 ByteWatermark{@link #ByteWatermark}。 + */ + + ByteWatermark position_in_portrait_mode; +}; + +/** + * + * @type keytype + * @brief 设备的传输方式 + */ + +enum DeviceTransportType { + /** + * + * @brief 未知类型 + */ + + kDeviceTransportTypeUnknown = 0, + /** + * + * @brief 系统内置 + */ + + kDeviceTransportTypeBuiltIn = 1, + /** + * + * @brief 未知模式蓝牙 + */ + + kDeviceTransportTypeBlueToothUnknownMode = 2, + /** + * + * @brief 免提模式蓝牙 + */ + + kDeviceTransportTypeBlueToothHandsFreeMode = 3, + /** + * + * @brief 立体声模式蓝牙 + */ + + kDeviceTransportTypeBlueToothStereoMode = 4, + /** + * + * @brief 显示器/电视机音频设备 + */ + + kDeviceTransportTypeDisplayAudio = 5, + /** + * + * @brief 虚拟设备 + */ + + kDeviceTransportTypeVirtual = 6, + /** + * + * @brief USB 设备 + */ + + kDeviceTransportTypeUSB = 7, + /** + * + * @brief PCI 设备 + */ + + kDeviceTransportTypePCI = 8, + /** + * + * @brief AirPlay 设备 + */ + + kDeviceTransportTypeAirPlay = 9, + /** + * + * @brief 连续互通相机 + */ + + kDeviceTransportTypeContinuityCamera = 100, +}; + +/** + * + * @type keytype + * @brief 音视频回路测试结果 + */ + +enum class EchoTestResult { + /** + * + * @brief 接收到采集的音视频的回放,通话回路检测成功 + */ + + kTestSuccess = 0, + /** + * + * @brief 测试超过 60s 仍未完成,已自动停止 + */ + + kTestTimeout, + /** + * + * @brief 上一次测试结束和下一次测试开始之间的时间间隔少于 5s + */ + + kTestIntervalShort, + /** + * + * @brief 音频采集异常 + */ + + kAudioDeviceError, + /** + * + * @brief 视频采集异常 + */ + + kVideoDeviceError, + /** + * + * @brief 音频接收异常 + */ + + kAudioReceiveError, + /** + * + * @brief 视频接收异常 + */ + + kVideoReceiveError, + /** + * + * @brief 内部错误,不可恢复 + */ + + kInternalError +}; + +/** + * + * @type keytype + * @brief 音视频回路测试参数 + */ + +struct EchoTestConfig { + /** + * + * @brief 用于渲染接收到的视频的视图 + */ + + void* view; + /** + * + * @brief 是否检测音频。检测设备为系统默认音频设备。
+ * - true:是 + * - 若使用 SDK 内部采集,此时设备麦克风会自动开启,并在 audioPropertiesReportInterval 值大于 0 时触发 `onLocalAudioPropertiesReport` 回调,你可以根据该回调判断麦克风的工作状态 + * - 若使用自定义采集,此时你需调用 pushExternalAudioFrame{@link #IRTCEngine#pushExternalAudioFrame} 将采集到的音频推送给 SDK + * - false:否 + */ + + bool enable_audio; + /** + * + * @brief 是否检测视频。PC 端默认检测列表中第一个视频设备。
+ * - true:是 + * - 若使用 SDK 内部采集,此时设备摄像头会自动开启 + * - 若使用自定义采集,此时你需调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 将采集到的视频推送给 SDK + * - false:否 + * @note 视频的发布参数固定为:分辨率 640px × 360px,帧率 15fps。 + */ + + bool enable_video; + /** + * + * @brief 音量信息提示间隔,单位:ms,默认为 100ms
+ * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + + int audio_properties_report_interval; + /** + * + * @brief 进行音视频通话回路测试的用户 ID + */ + + const char* uid; + /** + * + * @brief 测试用户加入的房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 对用户进房时进行鉴权验证的动态密钥,用于保证音视频通话回路测试的安全性。 + */ + + const char* token; +}; + +/** + * + * @type keytype + * @brief 音频 dump 状态。 + */ + +enum AudioDumpStatus { + /** + * + * @brief 音频 dump 启动失败 + */ + + kAudioDumpStatusStartFailure = 0, + /** + * + * @brief 音频 dump 启动成功 + */ + + kAudioDumpStatusStartSuccess = 1, + /** + * + * @brief 音频 dump 停止失败 + */ + + kAudioDumpStatusStopFailure = 2, + /** + * + * @brief 音频 dump 停止成功 + */ + + kAudioDumpStatusStopSuccess = 3, + /** + * + * @brief 音频 dump 运行失败 + */ + + kAudioDumpStatusRunningFailure = 4, + /** + * + * @brief 音频 dump 运行成功 + */ + + kAudioDumpStatusRunningSuccess = 5, +}; + +/** + * + * @type errorcode + * @brief 开始探测的返回值
+ * `startNetworkDetection` 返回对象类型 + */ + +enum NetworkDetectionStartReturn { + /** + * + * @brief 成功开启网络探测。 + */ + + kNetworkDetectionStartReturnSuccess = 0, + /** + * + * @brief 开始探测失败。参数错误,上下行探测均为 `false`,或期望带宽超过了范围 [100,10000] + */ + + kNetworkDetectionStartReturnParamErr = 1, + /** + * + * @brief 开始探测失败。失败原因为,本地已经开始推拉流 + */ + + kNetworkDetectionStartReturnStreaming = 2, + /** + * + * @brief 已经开始探测,无需重复开启 + */ + + kNetworkDetectionStartReturnStarted = 3, + /** + * + * @brief 不支持该功能 + */ + + kNetworkDetectionStartReturnNotSupport = 4, +}; + +/** + * + * @type keytype + * @brief 通话前探测的停止原因
+ * `onNetworkDetectionStopped` 回调的参数类型 + */ + +enum NetworkDetectionStopReason { + /** + * + * @brief 用户主动停止 + */ + + kNetworkDetectionStopReasonUser, + /** + * + * @brief 探测超过三分钟 + */ + + kNetworkDetectionStopReasonTimeout, + /** + * + * @brief 探测网络连接断开。
当超过 12s 没有收到回复,SDK 将断开网络连接,并且不再尝试重连。 + */ + + kNetworkDetectionStopReasonConnectionLost, + /** + * + * @brief 本地开始推拉流,停止探测 + */ + + kNetworkDetectionStopReasonStreaming, + /** + * + * @brief 网络探测失败,内部异常 + */ + + kNetworkDetectionStopReasonInnerErr, +}; + +/** + * + * @type keytype + * @brief 通话前探测链接的类型。
+ * `onNetworkDetectionResult` 回调的参数类型 + */ + +enum NetworkDetectionLinkType { + /** + * + * @brief 上行网络探测 + */ + + kNetworkDetectionLinkTypeUp = 0, + /** + * + * @brief 下行网络探测 + */ + + kNetworkDetectionLinkTypeDown, +}; + +/** + * + * @type keytype + * @brief 网络时间信息 + */ + +struct NetworkTimeInfo { + /** + * + * @brief 网络时间,单位:ms + */ + + int64_t timestamp; + /** + * + * @hidden constructor/destructor + */ + + explicit NetworkTimeInfo(int64_t ts): timestamp(ts) { + } +}; + +/** + * + * @type keytype + * @brief 通话前回声检测结果 + */ + +enum HardwareEchoDetectionResult{ + /** + * + * @brief 主动调用 `stopHardwareEchoDetection` 结束流程时,未有回声检测结果。 + */ + + kHardwareEchoDetectionResultCanceled = 0, + /** + * + * @brief 未检测出结果。建议重试,如果仍然失败请联系技术支持协助排查。 + */ + + kHardwareEchoDetectionResultUnknown = 1, + /** + * + * @brief 无回声 + */ + + kHardwareEchoDetectionResultNormal = 2, + /** + * + * @brief 有回声。可通过 UI 建议用户使用耳机设备入会。 + */ + + kHardwareEchoDetectionResultPoor = 3, +}; + +/** + * + * @type keytype + * @brief 音频选路优先级设置 + */ + +enum AudioSelectionPriority { + /** + * + * @brief 正常,参加音频选路 + */ + + kAudioSelectionPriorityNormal = 0, + /** + * + * @brief 高优先级,跳过音频选路 + */ + + kAudioSelectionPriorityHigh = 1 +}; + +/** + * + * @type keytype + * @brief 设置房间附加消息结果。 + */ + +enum SetRoomExtraInfoResult { + /** + * + * @brief 设置房间附加信息成功 + */ + + kSetRoomExtraInfoResultSuccess = 0, + /** + * + * @brief 设置失败,尚未加入房间 + */ + + kSetRoomExtraInfoResultErrorNotJoinRoom = -1, + /** + * + * @brief 设置失败,key 指针为空 + */ + + kSetRoomExtraInfoResultErrorKeyIsNull = -2, + /** + * + * @brief 设置失败,value 指针为空 + */ + + kSetRoomExtraInfoResultErrorValueIsNull = -3, + /** + * + * @brief 设置失败,未知错误 + */ + + kSetRoomExtraInfoResultResultUnknow = -99, + /** + * + * @brief 设置失败,key 长度为 0 + */ + + kSetRoomExtraInfoResultErrorKeyIsEmpty = -400, + /** + * + * @brief 调用 `setRoomExtraInfo` 过于频繁,建议不超过 10 次/秒。 + */ + + kSetRoomExtraInfoResultErrorTooOften = -406, + /** + * + * @brief 设置失败,用户已调用 `setUserVisibility` 将自身设为隐身状态。 + */ + + kSetRoomExtraInfoResultErrorSilentUser = -412, + /** + * + * @brief 设置失败,Key 长度超过 10 字节 + */ + + kSetRoomExtraInfoResultErrorKeyTooLong = -413, + /** + * + * @brief 设置失败,value 长度超过 128 字节 + */ + + kSetRoomExtraInfoResultErrorValueTooLong = -414, + /** + * + * @brief 设置失败,服务器错误 + */ + + kSetRoomExtraInfoResultErrorServer = -500 +}; +/** + * + * @type keytype + * @brief 字幕任务状态。 + */ + +enum SubtitleState { + /** + * + * @brief 开启字幕。 + */ + + kSubtitleStateStarted, + /** + * + * @brief 关闭字幕。 + */ + + kSubtitleStateStoped, + /** + * + * @brief 字幕任务出现错误。 + */ + + kSubtitleStateError +}; +/** + * + * @type keytype + * @brief 字幕模式。 + */ + +enum SubtitleMode { + /** + * + * @brief 识别模式。在此模式下,房间内用户语音会被转为文字。 + */ + + kSubtitleModeRecognition = 0, + /** + * + * @brief 翻译模式。在此模式下,房间内用户语音会先被转为文字,再被翻译为目标语言。 + */ + + kSubtitleModeTranslation +}; +/** + * + * @type errorcode + * @brief 字幕任务错误码。 + */ + +enum SubtitleErrorCode { + /** + * + * @brief 客户端无法识别云端媒体处理发送的错误码。请联系技术支持。 + */ + + kSubtitleErrorCodeUnknow = -1, + /** + * + * @brief 字幕已开启。 + */ + + kSubtitleErrorCodeSuccess, + /** + * + * @brief 云端媒体处理内部出现错误,请联系技术支持。 + */ + + kSubtitleErrorCodePostProcessError, + /** + * + * @brief 第三方服务连接失败,请联系技术支持。 + */ + + kSubtitleErrorCodeASRConnectionError, + /** + * + * @brief 第三方服务内部出现错误,请联系技术支持。 + */ + + kSubtitleErrorCodeASRServiceError, + /** + * + * @brief 未进房导致调用`startSubtitle`失败。请加入房间后再调用此方法。 + */ + + kSubtitleErrorCodeBeforeJoinRoom, + /** + * + * @brief 重复调用 `startSubtitle`。 + */ + + kSubtitleErrorCodeAlreadyOn, + /** + * + * @brief 用户选择的目标语言目前暂不支持。 + */ + + kSubtitleErrorCodeUnsupportedLanguage, + /** + * + * @brief 云端媒体处理超时未响应,请联系技术支持。 + */ + + kSubtitleErrorCodePostProcessTimeout +}; +/** + * + * @type keytype + * @brief 字幕配置信息。 + */ + +struct SubtitleConfig { + /** + * + * @brief 字幕模式。可以根据需要选择识别和翻译两种模式。开启识别模式,会将识别后的用户语音转化成文字;开启翻译模式,会在语音识别后进行翻译。参看 SubtitleMode{@link #SubtitleMode}。 + */ + + SubtitleMode mode = kSubtitleModeRecognition; + /** + * + * @brief 目标翻译语言。可点击 [语言支持](https: + */ + + const char* target_language = ""; +}; +/** + * + * @type keytype + * @brief 字幕具体内容。 + */ + +struct SubtitleMessage { + /** + * + * @brief 说话者的用户 ID。 + */ + + const char* user_id; + /** + * + * @brief 字幕文本, 采用 UTF-8 编码。 + */ + + const char* text; + /** + * + * @brief 字幕语种,根据字幕模式为原文或译文对应的语种。 + */ + + const char* language; + /** + * + * @brief 字幕模式,参看 SubtitleMode{@link #SubtitleMode}。 + */ + + SubtitleMode mode; + /** + * + * @brief 字幕文本序列号,同一发言人的完整发言和不完整发言会按递增顺序单独分别编号。 + */ + + int sequence; + /** + * + * @brief 语音识别出的文本是否为一段完整的一句话。 True 代表是, False 代表不是。 + */ + + bool definite; +}; +/** + * + * @type keytype + * @hidden internal use only + * @brief 特效错误类型。 + */ + +enum EffectErrorType { + /** + * + * @hidden 仅用于会议 + * @brief 虚拟背景设置错误。 + */ + + kEffectErrorVirtualBackgroundFailure = 1, + /** + * + * @hidden 仅用于会议 + * @brief 特效独立进程崩溃。 + */ + + kEffectErrorChildProcTerminate, +}; + +/** + * + * @type render error code + * @hidden for internal use only + * @brief 渲染错误码。 + */ + +enum RenderError { + /** + * + * @brief 渲染正常 + */ + + kRenderErrorOk = 0, + /** + * + * @brief Android 外部直显时使用了内部 surface + */ + + kRenderErrorUsingInternalSurface = -1, + /** + * + * @brief 设置 Android 外部直显时使用软解 + */ + + kRenderErrorUsingSoftwareDecoder = -2, + +}; + +/** + * + * @type keytype + * @brief 线程 block 信息,包含 block_session_id, 线程等待链,是否卡住了 rtc 主线程 + * @hidden internal use only + */ + +struct DeadLockMsg { + const char* block_session_id; + const char* blocking_paths; + bool is_critical; +}; + + +/** + * + * @type keytype + * @brief AVSync 事件类型 + */ + +enum AVSyncEvent { + /** + * + * @brief 音视频同步失败。
+ * 当前音频源已与其他视频源关联同步关系。
+ * 单个音频源不支持与多个视频源同时同步。 + */ + + kAVSyncEventInvalidUidRepeated +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人声检测结果 + */ + +enum AudioVADType { + /** + * + * @brief 未检测到人声 + */ + + kAudioVADTypeNoSpeech = 0, + + /** + * + * @brief 检测到人声。 + */ + + kAudioVADTypeSpeech = 1, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 音乐场景检测结果 + */ + +enum AudioAEDType { + /** + * + * @brief 未检测到音乐场景 + */ + + kAudioAEDTypeNoMusic = 0, + /** + * + * @brief 检测到音乐场景。 + */ + + kAudioAEDTypeMusic = 1, +}; + +class IVideoSource { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoSource() { + } +}; + +class IAudioSource { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioSource() { + } +}; + + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h new file mode 100644 index 0000000..2e85f04 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h @@ -0,0 +1,588 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Effect Player +*/ +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type callback + * @brief 本地音频文件混音的音频帧观察者。 + * @list 自定义流处理 + */ + +class IMediaPlayerAudioFrameObserver { +public: + /** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param player_id 播放器 ID + * @param frame 参看 IAudioFrame{@link #IAudioFrame}。 + * @list 混音 + */ + + virtual void onFrame(int player_id, const IAudioFrame& frame) = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~IMediaPlayerAudioFrameObserver() { + } +}; +/** + * + * @type keytype + * @brief 自定义音频源模式 + */ + +enum MediaPlayerCustomSourceMode{ + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceModePush = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceModePull, +}; + +/** + * + * @type keytype + * @brief 音频数据的起始读取位置。 + */ + +enum MediaPlayerCustomSourceSeekWhence{ + /** + * + * @brief 从音频数据的头开始读取,读取的实际偏移量为参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceSet = 0, + /** + * + * @brief 从音频数据的某一位置开始读取,读取的实际偏移量为音频数据当前的读取位置位置加上参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceCur = 1, + /** + * + * @brief 从音频数据的尾开始读取,读取的实际数据偏移量为用户传入的音频数据大小加上参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceEnd = 2, + /** + * + * @brief 返回音频数据的大小。 + */ + + kMediaPlayerCustomSourceSeekWhenceSize = 3, +}; +/** + * + * @type keytype + * @brief 自定义音频流类型 + */ + +enum MediaPlayerCustomSourceStreamType{ + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceStreamTypeRaw = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceStreamTypeEncoded, +}; +/** + * + * @type callback + * @brief 内存播放数据源回调 + * @list 自定义流处理 + */ + +class IMediaPlayerCustomSourceProvider { +public: + /** + * + * @valid since 3.53 + * @type callback + * @brief 调用 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口播放用户传入的内存音频数据时,会触发此回调,用户需要写入音频数据。 + * @param buffer 内存地址。在该地址中写入音频数据,写入音频数据的大小不超过 bufferSize 中填入的数值。支持的音频数据格式有: mp3,aac,m4a,3gp,wav。 + * @param buffer_size 音频数据大小,单位为字节。如果你想停止播放内存音频数据,可在 bufferSize 中填入小于或等于 0 的数,此时 SDK 会停止调用此接口。 + * @return 返回实际读取的音频数据大小。 + * @note 若 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口调用失败,请在 buffer 和 bufferSize 两个参数中填入 0。 此时 SDK 会停止调用此接口。 + * @list 混音 + */ + + virtual int onReadData(uint8_t *buffer, int buffer_size) = 0; + /** + * + * @valid since 3.53 + * @type callback + * @brief 根据设置好的内存音频数据的读取位置和读取偏移量对音频数据进行偏移,以便 SDK 读取和分析音频数据。
+ * 在调用 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口传入内存音频数据,或者调用 setPosition{@link #IMediaPlayer#setPosition} 设置了音频数据的起始播放位置后,SDK 会对音频数据进行读取和分析,此时会触发该回调,你需要根据参数中设置的起始读取位置和偏移量进行操作。 + * @param offset 音频数据读取偏移量,单位为字节,取值可正可负。 + * @param whence 音频数据的起始读取位置。参看 MediaPlayerCustomSourceSeekWhence{@link #MediaPlayerCustomSourceSeekWhence} + * @return + * 定位成功,返回偏移后的位置信息,或返回音频数据的大小。
+ * 定位失败,返回 -1。 + * @list 混音 + */ + + virtual int64_t onSeek(int64_t offset, MediaPlayerCustomSourceSeekWhence whence) = 0; + + virtual ~IMediaPlayerCustomSourceProvider() {} +}; +/** + * + * @type keytype + * @brief 音频源 + */ + +struct MediaPlayerCustomSource { + /** + * + * @hidden reserved for later use + */ + + IMediaPlayerCustomSourceProvider* provider = nullptr; + /** + * + * @type keytype + * @brief 数据源模式,详见 MediaPlayerCustomSourceMode{@link #MediaPlayerCustomSourceMode}。 + */ + + MediaPlayerCustomSourceMode mode = kMediaPlayerCustomSourceModePush; + /** + * + * @type keytype + * @brief 数据源类型,详见 MediaPlayerCustomSourceStreamType{@link #MediaPlayerCustomSourceStreamType} + */ + + MediaPlayerCustomSourceStreamType type = kMediaPlayerCustomSourceStreamTypeRaw; +}; +/** + * + * @type callback + * @brief IMediaPlayer{@link #IMediaPlayer} 对应的回调句柄。你必须调用 setEventHandler{@link #IMediaPlayer#setEventHandler} 完成设置后,才能收到对应回调。 + * @list Audio Mixing + */ + +class IMediaPlayerEventHandler { +public: + virtual ~IMediaPlayerEventHandler() {} + /** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param state 混音状态。参考 PlayerState{@link #PlayerState}。 + * @param error 错误码。参考 PlayerError{@link #PlayerError}。 + * @list 混音 + */ + + virtual void onMediaPlayerStateChanged(int player_id, PlayerState state, PlayerError error) = 0; + /** + * + * @type callback + * @brief 播放进度周期性回调。回调周期通过 setProgressInterval{@link #IMediaPlayer#setProgressInterval} 设置。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param progress 进度。单位 ms。 + * @list 混音 + */ + + virtual void onMediaPlayerPlayingProgress(int player_id, int64_t progress) = 0; + /** + * + * @valid since 3.59 + * @type callback + * @brief 播放事件回调。调用 selectAudioTrack{@link #IMediaPlayer#selectAudioTrack} 和 setPosition{@link #IMediaPlayer#setPosition} 后,会触发此回调。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param event 播放器事件。参看 PlayerEvent{@link #PlayerEvent}。 + * @param message 事件描述信息,可能为空。 + * @list 混音 + */ + + virtual void onMediaPlayerEvent(int player_id, PlayerEvent event, const char* message) = 0; +}; +/** + * + * @valid since 3.53 + * @type api + * @brief 音乐播放器
+ * 调用 setEventHandler{@link #IMediaPlayer#setEventHandler} 设置回调句柄以获取相关回调。 + * @list Audio Mixing + */ + +class IMediaPlayer { +public: + IMediaPlayer(){} + virtual ~IMediaPlayer() {} + /** + * + * @type api + * @brief 打开音乐文件。
+ * 一个播放器实例仅能够同时打开一个音乐文件。如果需要同时打开多个音乐文件,请创建多个音乐播放器实例。
+ * 要播放 PCM 格式的音频数据,参看 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource}。`openWithCustomSource` 和此 API 互斥。 + * @param file_path 音乐文件路径。
+ * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
+ * 推荐的采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
+ * 不同平台支持的本地文件格式:
+ * + * + * + * + * + *
mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYYYY
iOS/macOSYYYYYY
WindowsYYYYYYYY
+ * 不同平台支持的在线文件格式:
+ * + * + * + * + * + *
mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYY
iOS/macOSYYYY
WindowsYYYYYYY
+ * @param config 详见 MediaPlayerConfig{@link #MediaPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int open(const char* file_path, const MediaPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 播放音乐。你仅需要在调用 open{@link #IMediaPlayer#open},且未开启自动播放时,调用此方法。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 要播放 PCM 格式的音频数据,参看 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource}。`openWithCustomSource` 和此 API 互斥。 + * - 调用本方法播放音频文件后,可调用 stop{@link #IMediaPlayer#stop} 方法暂停播放。 + * @list 混音 + */ + + virtual int start() = 0; + /** + * + * @type api + * @brief 启动音频裸数据混音。
+ * 要播放音乐文件,参看 open{@link #IMediaPlayer#open}。`open` 与此 API 互斥。 + * @param source 数据源,详见 MediaPlayerCustomSource{@link #MediaPlayerCustomSource} + * @param config 详见 MediaPlayerConfig{@link #MediaPlayerConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法启动后,再调用 pushExternalAudioFrame{@link #IMediaPlayer#pushExternalAudioFrame} 推送音频数据,才会开始混音。 + * - 如要结束 PCM 音频数据混音,调用 stop{@link #IMediaPlayer#stop}。 + * @list 混音 + */ + + virtual int openWithCustomSource(const MediaPlayerCustomSource& source, const MediaPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 调用 open{@link #IMediaPlayer#open}, start{@link #IMediaPlayer#start}, 或 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 开始播放后,可以调用本方法停止。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int stop() = 0; + /** + * + * @type api + * @brief 调用 open{@link #IMediaPlayer#open},或 start{@link #IMediaPlayer#start} 开始播放音频文件后,调用本方法暂停播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法暂停播放后,可调用 resume{@link #IMediaPlayer#resume} 恢复播放。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int pause() = 0; + /** + * + * @type api + * @brief 调用 pause{@link #IMediaPlayer#pause} 暂停音频播放后,调用本方法恢复播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int resume() = 0; + /** + * + * @type api + * @brief 调节指定混音的音量大小,包括音乐文件混音和 PCM 混音。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @param type 详见 AudioMixingType{@link #AudioMixingType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * @list 混音 + */ + + virtual int setVolume(int volume, AudioMixingType type) = 0; + /** + * + * @type api + * @brief 获取当前音量 + * @param type 详见 AudioMixingType{@link #AudioMixingType}。 + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在音频播放进行状态时,调用此方法。包括音乐文件混音和 PCM 混音。 + * @list 混音 + */ + + virtual int getVolume(AudioMixingType type) = 0; + /** + * + * @type api + * @brief 获取音乐文件时长。 + * @return + * - >0: 成功, 音乐文件时长,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getTotalDuration() = 0; + /** + * + * @type api + * @brief 获取混音音乐文件的实际播放时长,单位为毫秒。 + * @return + * - >0: 实际播放时长。 + * - < 0: 失败。 + * @note + * - 实际播放时长指的是歌曲不受停止、跳转、倍速、卡顿影响的播放时长。例如,若歌曲正常播放到 1:30 时停止播放 30s 或跳转进度到 2:00, 随后继续正常播放 2 分钟,则实际播放时长为 3 分 30 秒。 + * - 仅在音频播放进行状态,且 setProgressInterval{@link #IMediaPlayer#setProgressInterval} 设置间隔大于 `0` 时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getPlaybackDuration() = 0; + /** + * + * @type api + * @brief 获取音乐文件播放进度。 + * @return + * - >0: 成功, 音乐文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getPosition() = 0; + /** + * + * @valid since 3.59 + * @type api + * @brief 获取播放器状态 + * @return 播放器当前状态,参看 PlayerState{@link #PlayerState}。 + * @note 仅在音频实例创建后,调用此方法。 + * @list 混音 + */ + + virtual PlayerState getState() = 0; + /** + * + * @type api + * @brief 开启变调功能,多用于 K 歌场景。 + * @param pitch 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音乐文件混音,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setAudioPitch(int pitch) = 0; + /** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param position 音乐文件起始播放位置,单位为毫秒。
+ * 你可以通过 getTotalDuration{@link #IMediaPlayer#getTotalDuration} 获取音乐文件总时长,position 的值应小于音乐文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 调用本接口后,会收到 onMediaPlayerEvent{@link #IMediaPlayerEventHandler#onMediaPlayerEvent} 回调。 + * @list 混音 + */ + + virtual int setPosition(int position) = 0; + /** + * + * @type api + * @brief 设置当前音乐文件的声道模式 + * @param mode 声道模式。默认的声道模式和源文件一致,详见 AudioMixingDualMonoMode{@link #AudioMixingDualMonoMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setAudioDualMonoMode(AudioMixingDualMonoMode mode) = 0; + /** + * + * @type api + * @brief 获取当前音乐文件的音轨数 + * @return + >= 0:成功,返回当前音乐文件的音轨数 + * - < 0:方法调用失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getAudioTrackCount() = 0; + /** + * + * @type api + * @brief 指定当前音乐文件的播放音轨 + * @param index 指定的播放音轨,从 0 开始,取值范围为 `[0, getAudioTrackCount()-1]`。
+ * 设置的参数值需要小于 getAudioTrackCount{@link #IMediaPlayer#getAudioTrackCount} 的返回值 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * - 调用本接口后,会收到 onMediaPlayerEvent{@link #IMediaPlayerEventHandler#onMediaPlayerEvent} 回调。 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * @list 混音 + */ + + virtual int selectAudioTrack(int index) = 0; + /** + * + * @type api + * @brief 设置播放速度 + * @param speed 播放速度与原始文件速度的比例,单位:%,取值范围为 `[50,200]`,默认值为 100。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件可用,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setPlaybackSpeed(int speed) = 0; + /** + * + * @type api + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} 的间隔。 + * @param interval 时间间隔,单位毫秒。
+ * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setProgressInterval(int64_t interval) = 0; + /** + * + * @type api + * @brief 如果你需要使用 enableVocalInstrumentBalance{@link #IRTCEngine#enableVocalInstrumentBalance} 对音频文件/PCM 音频数据设置音量均衡,你必须通过此接口传入其原始响度。 + * @param loudness 原始响度,单位:lufs,取值范围为 `[-70.0, 0.0]`。
+ * 当设置的值小于 -70.0lufs 时,则默认调整为 -70.0lufs,大于 0.0lufs 时,则不对该响度做音量均衡处理。默认值为 1.0lufs,即不做处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件和音频裸数据播放都可用。 + * @list 混音 + */ + + virtual int setLoudness(float loudness) = 0; + /** + * + * @type api + * @brief 注册回调句柄以在本地音乐文件混音时,收到相关回调。 + * @param observer 参看 IMediaPlayerAudioFrameObserver{@link #IMediaPlayerAudioFrameObserver}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int registerAudioFrameObserver(IMediaPlayerAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @brief 推送用于混音的 PCM 音频帧数据 + * @param audio_frame 音频帧,详见 IAudioFrame{@link #IAudioFrame}。
+ * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return + * - 0: 成功 + * - < 0: 失败 + * @note + * - 调用该方法前,须通过 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 启动外部音频流混音。 + * - 使用参考建议:首次推送数据,请在应用侧先缓存一定数据(如 200 毫秒),然后一次性推送过去;此后的推送操作定时 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * - 如果要暂停播放,暂停推送即可。 + * @list 混音 + */ + + virtual int pushExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 IMediaPlayerEventHandler{@link #IMediaPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + + virtual int setEventHandler(IMediaPlayerEventHandler* handler) = 0; + }; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h new file mode 100644 index 0000000..dfc8a26 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief panoramic video interface + */ + +#pragma once + +namespace bytertc { +/** + * + * @hidden for internal use only on Windows and Android + * @type keytype + * @brief 四元数表示的头部位姿信息
+ * q = xi + yj + zk + w,i^2 = j^2 = k^2 = −1 + */ + +typedef struct Quaternionf { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @brief 旋转角 + */ + + float w; +} Quaternionf; + +/** + * + * @hidden (Windows, Android) internal use only + * @type api + * @brief 全景视频接口实例 + */ + +class IPanoramicVideo { +public: + /** + * + * @type api + * @brief 更新接收者的头位姿四元数。RTC 将根据头位姿下发相应的 Tile 视频。 + * @param info 参考 Quaternionf{@link #Quaternionf}。 + */ + + virtual int updateQuaternionf(const Quaternionf& info) = 0; + + virtual ~IPanoramicVideo() = default; +}; +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h new file mode 100644 index 0000000..169500e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief range audio interface + */ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 本地用户能收听到、且具有衰减效果的音频接收范围 + */ + +struct ReceiveRange { + /** + * + * @brief 能够接收语音、并且具有衰减效果的最小距离值,该值须 ≥ 0,但 ≤ max。
+ * 小于该值的范围内没有范围语音效果,即收听到的音频音量相同。 + */ + + int min; + /** + * + * @brief 能够收听语音的最大距离值,该值须 > 0 且 ≥ min。
+ * 当收听者和声源距离处于 [min, max) 之间时,收听到的音量根据距离呈衰减效果。
+ * 超出该值范围的音频将无法收听到。 + */ + + int max; +}; + +/** + * + * @type keytype + * @brief 空间音频音量随距离衰减模式 + */ + +enum AttenuationType { + /** + * + * @brief 不随距离衰减 + */ + + kAttenuationTypeNone = 0, + /** + * + * @brief 线性衰减,音量随距离增大而线性减小 + */ + + kAttenuationTypeLinear = 1, + /** + * + * @brief 指数型衰减,音量随距离增大进行指数衰减 + */ + + kAttenuationTypeExponential = 2, +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 范围语音接口实例 + * @list + */ + +class IRangeAudio { +public: + /** + * + * @type api + * @brief 开启/关闭范围语音功能。
+ * 范围语音是指,在同一 RTC 房间中设定的音频接收距离范围内,本地用户收听到的远端用户音频音量会随着远端用户的靠近/远离而放大/衰减;若远端用户在房间内的位置超出设定范围,则本地用户无法接收其音频。音频接收范围设置参看 updateReceiveRange{@link #IRangeAudio#updateReceiveRange}。 + * @param enable 是否开启范围语音功能:
+ * - true: 开启 + * - false: 关闭(默认) + * @note 该方法进房前后都可调用,为保证进房后范围语音效果的平滑切换,你需在该方法前先调用 updatePosition{@link #IRangeAudio#updatePosition} 设置自身位置坐标,然后开启该方法收听范围语音效果。 + * @list 高级功能 + */ + + virtual void enableRangeAudio(bool enable) = 0; + /** + * + * @type api + * @brief 更新本地用户的音频收听范围。 + * @param range 音频收听范围,参看 ReceiveRange{@link #ReceiveRange}。 + * @return 方法调用结果:
+ * - 0:成功; + * - !0: 失败。 + * @list 高级功能 + */ + + virtual int updateReceiveRange(const ReceiveRange &range) = 0; + /** + * + * @type api + * @brief 更新本地用户在房间内空间直角坐标系中的位置坐标。 + * @param pos 三维坐标的值,默认为 [0, 0, 0],参看 Position{@link #Position} + * @return 方法调用结果:
+ * - 0:成功; + * - !0:失败。 + * @note + * - 调用该接口更新坐标后,你需调用 enableRangeAudio{@link #IRangeAudio#enableRangeAudio} 开启范围语音功能以收听范围语音效果。 + * @list 高级功能 + */ + + virtual int updatePosition(const Position &pos) = 0; + /** + * + * @type api + * @brief 设置范围语音的音量衰减模式。 + * @param type 音量衰减模式。默认为线性衰减。详见 AttenuationType{@link #AttenuationType}。 + * @param coefficient 指数衰减模式下的音量衰减系数,默认值为 1。范围 [0.1,100],推荐设置为 `50`。数值越大,音量的衰减速度越快。 + * @return 调用是否成功
+ * - `0`:调用成功 + * - `-1`:调用失败。原因为在调用 enableRangeAudio{@link #IRangeAudio#enableRangeAudio} 开启范围语音前或进房前调用本接口 + * @note 音量衰减范围通过 updateReceiveRange{@link #IRangeAudio#updateReceiveRange} 进行设置。 + * @list 高级功能 + */ + + virtual int setAttenuationModel(AttenuationType type, float coefficient) = 0; + /** + * + * @type api + * @brief 添加标签组,用于标记相互之间通话不衰减的用户组。
+ * 在同一个 RTC 房间中,如果多个用户的标签组之间有交集,那么,他们之间互相通话时,通话不衰减。
+ * 比如,用户身处多个队伍,队伍成员间通话不衰减。那么,可以为每个队伍绑定专属标签,每个用户的标签组包含用户所属各个队伍的标签。 + * @param flags 标签组 + * @param len 列表长度 + * @list 高级功能 + */ + + virtual void setNoAttenuationFlags(const char** flags, int len) = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRangeAudio() {} +}; +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h new file mode 100644 index 0000000..745263d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h @@ -0,0 +1,1281 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Common Defines + */ + +#pragma once + +#ifdef WIN32 +#define BYTERTC_API extern "C" __declspec(dllexport) +#elif defined(__APPLE__) +#include +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) +#define BYTERTC_API __attribute__((__visibility__("default"))) extern "C" +#else +#define BYTERTC_API __attribute__((__visibility__("default"))) +#endif +#else +#define BYTERTC_API __attribute__((__visibility__("default"))) +#endif + +#ifdef __GNUC__ +# define GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y)) +#else +# define GCC_VERSION_AT_LEAST(x,y) 0 +#endif + +#if GCC_VERSION_AT_LEAST(3,1) +# define BYTERTC_DEPRECATED __attribute__((deprecated)) +#elif defined(_MSC_VER) +# define BYTERTC_DEPRECATED __declspec(deprecated) +#else +# define BYTERTC_DEPRECATED +#endif + +#ifdef WIN32 +#define BYTERTC_STATIC_API __declspec(dllexport) +#elif defined(__APPLE__) +#include +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#else +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#endif +#else +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#endif + +#include +#include + +namespace bytertc { + + +/** + * + * @hidden currently not available + */ + +enum RtsReturnStatus { + + kRtsReturnStatusSuccess = 0, + + kRtsReturnStatusFailure = -1, + + kRtsReturnStatusParameterErr = -2, + + kRtsReturnStatusWrongState = -3, + + kRtsReturnStatusHasInRoom = -4, + + kRtsReturnStatusHasInLogin = -5, + + kRtsReturnStatusRoomIdInUse = -8, + +}; + +/** + * + * @type keytype + * @brief 用户离开房间的原因。 + */ + +enum UserOfflineReason { + /** + * + * @brief 远端用户调用 `leaveRoom` 方法退出房间。 + */ + + kUserOfflineReasonQuit = 0, + /** + * + * @brief 远端用户因网络等原因掉线。 + */ + + kUserOfflineReasonDropped = 1, + /** + * + * @brief 远端用户切换至隐身状态。 + */ + + kUserOfflineReasonSwitchToInvisible = 2, + /** + * + * @brief 远端用户被踢出房间。
+ * 因调用踢出用户的 OpenAPI,远端用户被踢出房间。 + */ + + kUserOfflineReasonKickedByAdmin = 3, +}; + +/** + * + * @type keytype + * @brief 用户加入房间的类型。 + */ + +enum JoinRoomType { + /** + * + * @brief 首次加入房间。用户手动调用 `joinRoom` 加入房间。 + */ + + kJoinRoomTypeFirst = 0, + /** + * + * @brief 重新加入房间。用户网络较差,失去与服务器的连接,进行重连时收到加入成功。 + */ + + kJoinRoomTypeReconnected = 1, +}; + +/** + * + * @type keytype + * @brief 用户登录的类型 + */ + +enum LoginType { + /** + * + * @brief 首次登录。用户手动调用 `login`,收到登录成功。 + */ + + kLoginTypeFirst = 0, + /** + * + * @brief 重连。用户网络较差,失去与服务器的连接,SDK 自动重连登录成功。 + */ + + kLoginTypeReconnected = 1, +}; + +/** + * + * @type errorcode + * @brief 登录结果
+ * 调用 `login` 登录的结果,会通过 `onLoginResult` 回调通知用户。 + */ + +enum LoginErrorCode { + /** + * + * @brief 调用 `login` 方法登录成功 + */ + + kLoginErrorCodeSuccess = 0, + /** + * + * @brief 调用 `login` 方法时使用的 Token 无效或过期失效,需要用户重新获取 Token。 + */ + + kLoginErrorCodeInvalidToken = -1000, + /** + * + * @brief 登录错误
+ * 调用 `login` 方法时发生未知错误导致登录失败,需要重新登录。 + */ + + kLoginErrorCodeLoginFailed = -1001, + /** + * + * @brief 调用 `login` 方法时传入的用户 ID 有问题。 + */ + + kLoginErrorCodeInvalidUserId = -1002, + /** + * + * @brief 调用 `login` 登录时服务端出错。 + */ + + kLoginErrorCodeServerError = -1003, + /** + * + * @brief 当前为受限模式,禁止 `login` 登录。 + */ + + kLoginErrorCodeLimitedMode = -1004, +}; + +/** + * + * @type keytype + * @brief 用户登出的原因 + */ + +enum LogoutReason { + /** + * + * @brief 用户主动退出
+ * 用户调用 `logout` 接口登出,或者销毁引擎登出。 + */ + + kLogoutReasonLogout = 0, + /** + * + * @brief 用户被动退出
+ * 另一个用户以相同 UserId 进行了 `login`,导致本端用户被踢出。 + */ + + kLogoutReasonDuplicateLogin = 1, +}; + +/** + * + * @type keytype + * @brief 用户在线状态。 + */ + +enum UserOnlineStatus { + /** + * + * @brief 对端用户离线
+ * 对端用户已调用 `logout`,或者没有调用 `login` 进行登录。 + */ + + kUserOnlineStatusOffline = 0, + /** + * + * @brief 对端用户在线
+ * 对端用户调用 `login` 登录,并且连接状态正常。 + */ + + kUserOnlineStatusOnline = 1, + /** + * + * @brief 无法获取对端用户在线状态
+ * 发生级联错误、对端用户在线状态异常时返回。 + */ + + kUserOnlineStatusUnreachable = 2, +}; + +/** + * + * @type keytype + * @brief 服务端消息发送结果回调内容 + */ + +struct ServerACKMsg { + /** + * + * @brief 回调消息长度 + */ + + int length; + /** + * + * @brief 回调消息内容 + */ + + char* ack_msg; +}; + +/** + * + * @type keytype + * @brief 消息类型 + */ + +enum MessageConfig { + /** + * + * @brief 低延时可靠有序消息 + */ + + kMessageConfigReliableOrdered = 0, + /** + * + * @brief 超低延时有序消息 + */ + + kMessageConfigUnreliableOrdered = 1, + /** + * + * @brief 超低延时无序消息 + */ + + kMessageConfigUnreliableUnordered = 2 +}; + +/** + * + * @type errorcode + * @brief 发送消息结果,成功或失败,及失败原因 + */ + +enum UserMessageSendResult { + /** + * + * @brief 发送消息成功。 + */ + + kUserMessageSendResultSuccess = 0, + /** + * + * @brief 消息发送失败。发送超时。 + */ + + kUserMessageSendResultTimeout = 1, + /** + * + * @brief 消息发送失败。连接断开,消息未发出。 + */ + + kUserMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 消息发送失败。找不到接收方。 + */ + + kUserMessageSendResultNoReceiver = 3, + /** + * + * @brief 消息发送失败。远端用户没有登录或进房。 + */ + + kUserMessageSendResultNoRelayPath = 4, + /** + * + * @brief 消息发送失败。超过 QPS 限制。 + */ + + kUserMessageSendResultExceedQPS = 5, + /** + * + * @brief 消息发送失败。应用服务器未收到客户端发送的消息。
+ * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + kUserMessageSendResultE2BSSendFailed = 17, + /** + * + * @brief 消息发送失败。应用服务器接收到了客户端发送的消息,但响应失败。
+ * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + kUserMessageSendResultE2BSReturnFailed = 18, + /** + * + * @brief 消息发送失败。消息发送方没有加入房间。 + */ + + kUserMessageSendResultNotJoin = 100, + /** + * + * @brief 消息发送失败。连接未完成初始化。 + */ + + kUserMessageSendResultInit = 101, + /** + * + * @brief 消息发送失败。没有可用的数据传输通道连接。 + */ + + kUserMessageSendResultNoConnection = 102, + /** + * + * @brief 消息发送失败。消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + kUserMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 消息发送失败。接收方用户 ID 为空。 + */ + + kUserMessageSendResultEmptyUser = 104, + /** + * + * @brief 消息发送失败。房间外或应用服务器消息发送方没有登录。 + */ + + kUserMessageSendResultNotLogin = 105, + /** + * + * @brief 消息发送失败。发送消息给业务方服务器之前没有设置参数。 + */ + + kUserMessageSendResultServerParamsNotSet = 106, + /** + * + * @brief 消息发送失败。未知错误。 + */ + + kUserMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief 房间内广播消息发送结果 + */ + +enum RoomMessageSendResult { + /** + * + * @brief 消息发送成功 + */ + + kRoomMessageSendResultSuccess = 200, + /** + * + * @brief 发送超时,没有发送 + */ + + kRoomMessageSendResultTimeout = 1, + /** + * + * @brief 通道断开,没有发送 + */ + + kRoomMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 超过 QPS 限制 + */ + + kRoomMessageSendResultExceedQPS = 5, + /** + * + * @brief 失败,发送方未加入房间 + */ + + kRoomMessageSendResultNotJoin = 100, + /** + * + * @brief 失败,没有可用的数据传输通道连接 + */ + + kRoomMessageSendResultNoConnection = 102, + /** + * + * @brief 失败。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + kRoomMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 失败,未知错误 + */ + + kRoomMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief SDK 与信令服务器连接状态。 + */ + +enum ConnectionState { + /** + * + * @brief 连接断开超过 12s,此时 SDK 会尝试自动重连。 + */ + + kConnectionStateDisconnected = 1, + /** + * + * @brief 首次请求建立连接,正在连接中。 + */ + + kConnectionStateConnecting = 2, + /** + * + * @brief 首次连接成功。 + */ + + kConnectionStateConnected = 3, + /** + * + * @brief 涵盖了以下情况:
+ * - 首次连接时,10 秒连接不成功; + * - 连接成功后,断连 10 秒。自动重连中。 + */ + + kConnectionStateReconnecting = 4, + /** + * + * @brief 连接断开后,重连成功。 + */ + + kConnectionStateReconnected = 5, + /** + * + * @brief 处于 `kConnectionStateDisconnected` 状态超过 10 秒,且期间重连未成功。SDK 仍将继续尝试重连。 + */ + + kConnectionStateLost = 6, + /** + * + * @brief 连接失败,服务端状态异常。SDK 不会自动重连,请重新进房,或联系技术支持。 + */ + + kConnectionStateFailed = 7, +}; + +/** + * + * @type keytype + * @brief 媒体流网络质量。 + */ + +enum NetworkQuality { + /** + * + * @brief 网络质量未知。 + */ + + kNetworkQualityUnknown = 0, + /** + * + * @brief 网络质量极好。 + */ + + kNetworkQualityExcellent, + /** + * + * @brief 主观感觉和 kNetworkQualityExcellent 差不多,但码率可能略低。 + */ + + kNetworkQualityGood, + /** + * + * @brief 主观感受有瑕疵但不影响沟通。 + */ + + kNetworkQualityPoor, + /** + * + * @brief 勉强能沟通但不顺畅。 + */ + + kNetworkQualityBad, + /** + * + * @brief 网络质量非常差,基本不能沟通。 + */ + + kNetworkQualityVbad, + /** + * + * @brief 网络连接断开,无法通话。网络可能由于 12s 内无应答、开启飞行模式、拔掉网线等原因断开。
+ * 更多网络状态信息参见 [连接状态提示](https: + */ + + kNetworkQualityDown, +}; + +/** + * + * @type keytype + * @brief SDK 网络连接类型。 + */ + +enum NetworkType { + /** + * + * @brief 网络连接类型未知。 + */ + + kNetworkTypeUnknown = -1, + /** + * + * @brief 网络连接已断开。 + */ + + kNetworkTypeDisconnected = 0, + /** + * + * @brief 网络连接类型为 LAN 。 + */ + + kNetworkTypeLAN = 1, + /** + * + * @brief 网络连接类型为 Wi-Fi(包含热点)。 + */ + + kNetworkTypeWIFI = 2, + /** + * + * @brief 网络连接类型为 2G 移动网络。 + */ + + kNetworkTypeMobile2G = 3, + /** + * + * @brief 网络连接类型为 3G 移动网络。 + */ + + kNetworkTypeMobile3G = 4, + /** + * + * @brief 网络连接类型为 4G 移动网络。 + */ + + kNetworkTypeMobile4G = 5, + /** + * + * @brief 网络连接类型为 5G 移动网络。 + */ + + kNetworkTypeMobile5G = 6, +}; + +/** + * + * @type errorcode + * @brief 回调错误码。 + */ + +enum RtsErrorCode { + /** + * + * @brief Token 无效。
+ * 进房时使用的 Token 无效或过期失效。需要用户重新获取 Token,并调用 `updateToken` 方法更新 Token。 + */ + + kRtsErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。
+ * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kRtsErrorCodeJoinRoom = -1001, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间 + */ + + kRtsErrorCodeDuplicateLogin = -1004, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间 + */ + + kRtsErrorCodeKickedOut = -1006, + /** + * + * @brief 当调用 `createRTCRoom` ,如果 roomid 非法,会返回 null,并抛出该 error + */ + + kRtsRoomErrorCodeRoomIdIllegal = -1007, + /** + * + * @brief Token 过期。调用 `joinRoom` 使用新的 Token 重新加入房间。 + */ + + kRtsRoomErrorTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效 + */ + + kRtsRoomErrorUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。 + */ + + kRtsErrorCodeRoomDismiss = -1011, + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了 + */ + + kRtsErrorCodeRoomAlreadyExist = -1013, + /** + * + * @brief 同一个引擎实例在进入多个房间时设置的用户名必须相同 + */ + + kRtsErrorCodeUserIDDifferent = -1014, + /** + * + * @brief 服务端异常状态导致退出房间。
+ * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kRtsErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + */ + + kRtsErrorCodeInternalDeadLockNotify = -1111, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
+ * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kRtsErrorCodeJoinRoomWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @brief 加入RTS房间错误。当前为受限模式。 + */ + + kRtsErrorCodeJoinRoomLimitedMode = -1013, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
+ * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅起通知作用。 + */ + +enum RtsWarningCode { + /** + * + * @brief 进房失败。
+ * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kRtsWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。
+ * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + kRtsWarningCodePublishStreamFailed = -2002, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误。 + */ + + kRtsWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + kRtsWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + kRtsWarningCodeSendCustomMessage = -2011, + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。 + */ + + kRtsWarningCodeUserNotifyStop = -2013, + + + /** + * + * @brief 新生成的房间已经替换了同样 roomId 的旧房间 + */ + + kRtsWarningCodeOldRoomBeenReplaced = -2016 +}; + +/** + * + * @hidden + * @deprecated since 3.50 + * @type keytype + * @brief 事务检查码
+ * 用户调用 `setBusinessId` 方法设置业务标识参数的返回错误码。 + */ + +enum BusinessCheckCode { + /** + * + * @brief 用户已经在房间中。
+ * 业务标识需要在加入房间之前设置,加入后设置无效。 + */ + + kBusinessCheckCodeAlreadyInRoom = -6001, + + /** + * + * @brief 输入参数非法。
+ * 用户传入的业务标识参数非法,参数合法性参考 `setBusinessId` 方法的参数说明。 + */ + + kBusinessCheckCodeInputInvalidate = -6002, +}; + +/** + * + * @type keytype + * @brief App 使用的 CPU 和内存信息。
+ * 该信息由 SDK 周期性(2s)通过 `onSysStats` 回调通知给用户。 + */ + +struct SysStats { + /** + * + * @brief 当前系统 CPU 核数。 + */ + + unsigned int cpu_cores; + /** + * + * @brief 当前应用的 CPU 使用率,取值范围为 [0, 1]。 + */ + + double cpu_app_usage; + /** + * + * @hidden currently not available + * @brief 当前系统的 cpu 使用率,取值范围为 [0, 1]。 + */ + + double cpu_total_usage; + /** + * + * @brief 当前应用的内存使用量(单位 MB)。 + */ + + double memory_usage; + /** + * + * @brief 全量内存(单位 MB)。 + */ + + unsigned long long full_memory; + /** + * + * @brief 系统已使用内存(单位 MB)。 + */ + + unsigned long long total_memory_usage; + /** + * + * @brief 空闲可分配内存(单位 MB)。 + */ + + unsigned long long free_memory; + /** + * + * @brief 当前应用的内存使用率(单位 %)。 + */ + + double memory_ratio; + /** + * + * @brief 系统内存使用率(单位 %)。 + */ + + double total_memory_ratio; +}; + +/** + * + * @type keytype + * @brief HTTP/HTTPS 代理状态 + */ + +enum HttpProxyState { + /** + * + * @brief HTTP/HTTPS 初始化状态 + */ + + kHttpProxyStateInit, + /** + * + * @brief HTTP/HTTPS 连接成功 + */ + + kHttpProxyStateConnected, + /** + * + * @brief HTTP/HTTPS 连接失败 + */ + + kHttpProxyStateError +}; + +/** + * + * @type keytype + * @brief SOCKS5 代理连接状态 + */ + +enum Socks5ProxyState { + /** + * + * @brief SOCKS5 连接初始化 + */ + + kSocks5Init, + /** + * + * @brief SOCKS5 连接成功 + */ + + kSocks5Connected, + /** + * + * @brief SOCKS5 连接错误 + */ + + kSocks5Error, + /** + * + * @brief TCP 连接失败 + */ + + kSocks5TcpConnectFail, + /** + * + * @brief TCP 连接关闭 + */ + + kSocks5TcpClose, + /** + * + * @brief SOCKS 协议 TCP 协商阶段失败 + */ + + kSocks5ProtocolTcpFail, + /** + * + * @brief UDP 连接失败 + */ + + kSocks5ProtocolUdpFail, + /** + * + * @brief 授权失败 + */ + + kSocks5AuthFail, + /** + * + * @brief 未知状态 + */ + + kSocks5Unknown +}; + +/** + * + * @type keytype + * @brief 云代理信息 + */ + +struct CloudProxyInfo { + /** + * + * @type keytype + * @brief 云代理服务器 IP + */ + + const char* cloud_proxy_ip; + /** + * + * @type keytype + * @brief 云代理服务器端口 + */ + + int cloud_proxy_port; +}; + +/** + * + * @type keytype + * @brief 云代理相关信息 + */ + +struct CloudProxyConfiguration { + /** + * + * @brief 云代理信息。 + */ + + CloudProxyInfo* cloud_proxies = nullptr; + /** + * + * @brief 云代理数量。 + */ + + int cloud_proxy_count = 0; +}; + +/** + * + * @type keytype + * @brief ID 最大长度 + */ + +const unsigned int MAX_DEVICE_ID_LENGTH = 512; + +/** + * + * @type keytype + * @brief 本地代理的类型。 + */ + +enum LocalProxyType { + /** + * + * @brief Socks5 代理。选用此代理服务器,需满足 Socks5 协议标准文档的要求。 + */ + + kLocalProxyTypeSocks5 = 1, + /** + * + * @brief Http 隧道代理。 + */ + + kLocalProxyTypeHttpTunnel = 2 +}; + +/** + * + * @type keytype + * @brief 本地代理配置详细信息。 + */ + +struct LocalProxyConfiguration { + /** + * + * @brief 本地代理类型,参看 LocalProxyType{@link #LocalProxyType}。 + */ + + LocalProxyType local_proxy_type; + /** + * + * @type keytype + * @brief 本地代理服务器 IP。 + */ + + const char* local_proxy_ip; + /** + * + * @type keytype + * @brief 本地代理服务器端口。 + */ + + int local_proxy_port; + /** + * + * @type keytype + * @brief 本地代理用户名。 + */ + + const char* local_proxy_username; + /** + * + * @type keytype + * @brief 本地代理密码。 + */ + + const char* local_proxy_password; +}; + +/** + * + * @type keytype + * @brief 本地代理连接状态。 + */ + +enum LocalProxyState { + /** + * + * @brief TCP 代理服务器连接成功。 + */ + + kLocalProxyStateInited = 0, + + /** + * + * @brief 本地代理连接成功。 + */ + + kLocalProxyStateConnected = 1, + + /** + * + * @brief 本地代理连接出现错误。 + */ + + kLocalProxyStateError = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理错误。 + */ + +enum LocalProxyError { + /** + * + * @brief 本地代理服务器无错误。 + */ + + kLocalProxyErrorOK = 0, + + /** + * + * @brief 代理服务器回复的版本号不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5VersionError = 1, + + /** + * + * @brief 代理服务器回复的格式错误不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5FormatError = 2, + + /** + * + * @brief 代理服务器回复的字段值不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5InvalidValue = 3, + + /** + * + * @brief 未提供代理服务器的用户名及密码,导致 Socks5 代理连接失败。请重新调用 `setLocalProxy`,在设置本地代理时填入用户名和密码。 + */ + + kLocalProxyErrorSocks5UserPassNotGiven = 4, + + /** + * + * @brief TCP 关闭,导致 Socks5 代理连接失败。请检查网络或者代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5TcpClosed = 5, + + /** + * + * @brief Http 隧道代理错误。请检查 Http 隧道代理服务器或者网络是否存在异常。 + */ + + kLocalProxyErrorHttpTunnelFailed = 6, +}; + +/** + * + * @type keytype + * @brief 本地日志输出等级。 + */ + +enum class LocalLogLevel { + /** + * + * @brief 信息级别。 + */ + + kInfo = 0, + /** + * + * @brief (默认值)警告级别。 + */ + + kWarning = 1, + /** + * + * @brief 错误级别。 + */ + + kError = 2, + /** + * + * @brief 关闭日志。 + */ + + kNone = 3 +}; + +/** + * + * @type keytype + * @brief 本地日志参数。 + */ + +struct LogConfig { + /** + * + * @brief 日志存储路径,必填。 + */ + + const char* log_path = nullptr; + /** + * + * @brief 日志等级,参看 LocalLogLevel{@link #LocalLogLevel},默认为警告级别,选填。 + */ + + LocalLogLevel log_level = LocalLogLevel::kWarning; + + /** + * + * @brief 日志文件最大占用的总空间,单位为 MB,选填。取值范围为 1~100 MB,默认值为 10 MB。
+ * 若 `log_file_size` < 1,取 1 MB。若 `log_file_size` > 100,取 100 MB。
+ * 其中,单个日志文件最大为 2 MB:
+ *
  • 若 1 ≤ log_file_size ≤ 2,则会生成一个日志文件。
  • 若 log_file_size > 2,假设 log_file_size/2 的整数部分为 N,则前 N 个文件,每个文件会写满 2 MB,第 N+1 个文件大小不超过 log_file_size mod 2,否则会删除最老的文件,以此类推。
+ */ + + uint32_t log_file_size = 10; + + /** + * + * @brief 日志文件名前缀,选填。该字符串必须符合正则表达式:[a-zA-Z0-9_@\-\.]{1,128}。
+ * 最终的日志文件名为`前缀 + "_" + 文件创建时间 + "_rtclog".log`,如 `logPrefix_2023-05-25_172324_rtclog.log`。 + */ + + const char* log_filename_prefix = nullptr; +}; + +/** + * + * @type keytype + * @brief 创建引擎参数 + */ + +struct EngineConfig { + /** + * + * @brief 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 + */ + + const char* app_id = nullptr; + + /** + * + * @brief 如需使用请联系技术支持人员。 + */ + + const char* parameters = nullptr; + + /** + * + * @brief 自定义插件动态库加载目录,目前仅 Android 平台支持。 + */ + + const char* native_load_path = nullptr; + + /** + * + * @brief 用于存储 Android 应用程序的上下文(Application Context),仅 Android 平台支持。 + */ + + void* j_application_context = nullptr; + /** + * + * @brief 选填,是否为游戏场景。默认值为 `false`。 + */ + + bool is_game_scene = false; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h new file mode 100644 index 0000000..56fb9ad --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h @@ -0,0 +1,223 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC SAMI SDK +*/ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type callback + * @brief K 歌评分事件回调类。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class ISingScoringEventHandler { +public: + /** + * + * @type callback + * @brief 实时评分信息回调。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 后,会收到该回调。 + * @param info 实时评分信息。 + * @list 在线 KTV + */ + + virtual void onCurrentScoringInfo( + const SingScoringRealtimeInfo& info) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ISingScoringEventHandler() { + } +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 标准音高数据数组。 + * @list Online Karaoke + */ + +class IStandardPitchCollection { +public: + /** + * + * @type api + * @brief 获取歌词句子总数 + * @list 在线 KTV + */ + + virtual int getCount() = 0; + /** + * + * @type api + * @brief 获取每句歌词的标准音高信息 + * @param index 歌词句子数,取值范围为 0 到调用 getCount{@link #IStandardPitchCollection#getCount} 获取到的句子总数减 1。 + * @return 标准音高数据,参看 StandardPitchInfo{@link #StandardPitchInfo}。 + * @list 在线 KTV + */ + + virtual StandardPitchInfo getStandardPitchInfo(int index) = 0; + /** + * + * @type api + * @brief 销毁 IStandardPitchCollection 类,释放资源 + * @list 在线 KTV + */ + + virtual void release() = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IStandardPitchCollection() { + } +}; +/** + * + * @hidden(Linux) + * @type api + * @brief K 歌评分管理接口。 + * @list Online Karaoke + */ + +class ISingScoringManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + ISingScoringManager() { + } + /** + * + * @type api + * @brief 初始化 K 歌评分。 + * @param sing_scoring_appkey K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param sing_scoring_token K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param handler K 歌评分事件回调类,详见 ISingScoringEventHandler{@link #ISingScoringEventHandler}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note 输入正确的鉴权信息才可以使用 K 歌评分相关的功能,鉴权方式为离线鉴权,根据包名(bundleID)绑定 Appkey 及 Token,K 歌评分密钥请联系技术支持人员申请。 + * @list 在线 KTV + */ + + virtual int initSingScoring( + const char* sing_scoring_appkey, + const char* sing_scoring_token, + ISingScoringEventHandler* handler) = 0; + /** + * + * @type api + * @brief 设置 K 歌评分参数。 + * @param config K 歌评分的各项参数,详见 SingScoringConfig{@link #SingScoringConfig}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @list 在线 KTV + */ + + virtual int setSingScoringConfig( + const SingScoringConfig& config) = 0; + /** + * + * @type api + * @brief 获取标准音高数据。 + * @param midi_filepath 歌曲 midi 文件路径。 + * @return IStandardPitchCollection{@link #IStandardPitchCollection} 标准音高数据数组。 + * @note 请保证此接口传入的 midi 文件路径与 setSingScoringConfig{@link #ISingScoringManager#setSingScoringConfig} 接口中传入的路径一致。 + * @list 在线 KTV + */ + + virtual IStandardPitchCollection* getStandardPitchInfoCollection(const char* midi_filepath) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开始 K 歌评分。 + * @param position 开始评分时,音乐的播放进度,单位:ms。 + * @param scoring_info_interval 实时回调的时间间隔,单位:ms;默认 50 ms。最低间隔为 20 ms。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note + * - 在调用 initSingScoring{@link #ISingScoringManager#initSingScoring} 初始化 K 歌评分功能后调用该接口。 + * - 调用该接口后,将会根据设置的回调时间间隔,收到评分结果 onCurrentScoringInfo{@link #ISingScoringEventHandler#onCurrentScoringInfo} 回调。 + * - 如果使用 `IMediaPlayer` 播放伴奏,请在收到 onMediaPlayerStateChanged{@link #IMediaPlayerEventHandler#onMediaPlayerStateChanged} 回调且播放状态为 kPlayerStatePlaying{@link #PlayerState#kPlayerStatePlaying} 后,调用此接口。 + * @list 在线 KTV + */ + + virtual int startSingScoring(int position, + int scoring_info_interval) = 0; + /** + * + * @type api + * @brief 停止 K 歌评分。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 在线 KTV + */ + + virtual int stopSingScoring() = 0; + /** + * + * @type api + * @brief 获取上一句的演唱评分。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 开始评分后可以调用该接口。 + * @return + * - <0:获取评分失败。 + * - >=0:上一句歌词的演唱评分。 + * @list 在线 KTV + */ + + virtual int getLastSentenceScore() = 0; + /** + * + * @type api + * @brief 获取当前演唱总分。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 开始评分后可以调用该接口。 + * @return + * - <0:获取总分失败。 + * - >=0:当前演唱总分。 + * @list 在线 KTV + */ + + virtual int getTotalScore() = 0; + /** + * + * @type api + * @brief 获取当前演唱歌曲的平均分。 + * @return + * - <0:获取平均分失败。 + * - >=0:当前演唱平均分。 + * @list 在线 KTV + */ + + virtual int getAverageScore() = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~ISingScoringManager() { + } +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h new file mode 100644 index 0000000..12c9565 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief spatial audio interface + */ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 用户在空间音频坐标系里的位置信息。 + */ + +struct PositionInfo { + /** + * + * @brief 用户在空间音频坐标系里的位置,需自行建立空间直角坐标系。参看 Position{@link #Position} + */ + + Position position; + /** + * + * @brief 用户在空间音频坐标系里的三维朝向信息。三个向量需要两两垂直。参看 HumanOrientation{@link #HumanOrientation}。 + */ + + HumanOrientation orientation; +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 空间音频接口实例 + * @list + */ + +class ISpatialAudio { +public: + /** + * + * @type api + * @brief 开启/关闭空间音频功能。 + * @param enable 是否开启空间音频功能:
+ * - true:开启 + * - false:关闭(默认) + * @note 该方法仅开启空间音频功能,你须调用 updateSelfPosition{@link #ISpatialAudio#updateSelfPosition} 设置自身位置坐标后方可收听空间音频效果。空间音频相关 API 和调用时序详见[空间音频](https.www.volcengine.com/docs/6348/93903)。 + * @list 高级功能 + */ + + virtual void enableSpatialAudio(bool enable) = 0; + /** + * + * @type api + * @brief 关闭本地用户朝向对本地用户发声效果的影响。
+ * 调用此接口后,房间内的其他用户收听本地发声时,声源都在收听者正面。 + * @note + * - 调用本接口关闭朝向功能后,在当前的空间音频实例的生命周期内无法再次开启。 + * - 调用此接口不影响本地用户收听朝向的音频效果。要改变本地用户收听朝向,参看 updateSelfPosition{@link #ISpatialAudio#updateSelfPosition} 和 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 。 + * @list 高级功能 + */ + + virtual void disableRemoteOrientation() = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 设置本地用户在自建空间直角坐标系中的收听坐标和收听朝向,以实现本地用户预期的空间音频收听效果。 + * @param position_info 空间音频位置信息。参看 PositionInfo{@link #PositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验本地用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在进房后调用。 + * - 调用该接口更新坐标前,你需调用 enableSpatialAudio{@link #ISpatialAudio#enableSpatialAudio} 开启空间音频功能。空间音频相关 API 和调用时序详见[空间音频](https: + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + + virtual int updateSelfPosition(const PositionInfo& position_info) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 设置房间内某一远端用户在本地用户自建的空间音频坐标系中的发声位置和发声朝向,以实现本地用户预期的空间音频收听效果。 + * @param uid 用户 ID + * @param position_info 远端用户的空间音频位置信息。参看 PositionInfo{@link #PositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验远端用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在创建房间后调用。 + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + + virtual int updateRemotePosition(const char* uid, const PositionInfo& position_info) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 为某一远端用户设置的空间音频效果。 + * @param uid 远端用户 ID。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + + virtual int removeRemotePosition(const char* uid) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 为所有远端用户设置的空间音频效果。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + + virtual int removeAllRemotePosition() = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ISpatialAudio() = default; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h new file mode 100644 index 0000000..2db9b29 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h @@ -0,0 +1,1990 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + */ + +#pragma once +#include "bytertc_video_frame.h" +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 转推任务事件 + */ + +enum MixedStreamTaskEvent { + /** + * + * @hidden for internal use only + */ + + kMixedStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + kMixedStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + kMixedStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务更新成功。 + */ + + kMixedStreamTaskEventUpdateSuccess = 3, + /** + * + * @brief 任务更新失败。 + */ + + kMixedStreamTaskEventUpdateFailed = 4, + /** + * + * @brief 任务停止。 + */ + + kMixedStreamTaskEventStopSuccess = 5, + /** + * + * @brief 结束任务失败。 + */ + + kMixedStreamTaskEventStopFailed = 6, + /** + * + * @brief Warning 事件 + */ + + kMixedStreamTaskEventWarning = 7, +}; + + +/** + * + * @type errorcode + * @brief 单流转推直播事件 + */ + +enum SingleStreamTaskEvent { + /** + * + * @hidden for internal use only + */ + + kSingleStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + kSingleStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + kSingleStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务停止。 + */ + + kSingleStreamTaskEventStopSuccess = 3, + /** + * + * @brief 结束任务失败。 + */ + + kSingleStreamTaskEventStopFailed = 4, + /** + * + * @brief Warning 事件 + */ + + kSingleStreamTaskEventWarning = 5, +}; + +/** + * + * @type errorcode + * @brief 合流和 WTN 流任务错误码 + */ + +enum MixedStreamTaskErrorCode { + /** + * + * @brief 推流成功。 + */ + + kMixedStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + kMixedStreamTaskErrorCodeBase= 1090, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + kMixedStreamTaskErrorCodeTimeout = 1091, + /** + * + * @brief 服务端检测到错误的推流参数。 + */ + + kMixedStreamTaskErrorCodeInvalidParamByServer = 1092, + /** + * + * @brief 对流的订阅超时 + */ + + kMixedStreamTaskErrorCodeSubTimeoutByServer = 1093, + /** + * + * @brief 合流服务端内部错误。 + */ + + kMixedStreamTaskErrorCodeInvalidStateByServer = 1094, + /** + * + * @brief 合流服务端推 CDN 失败。 + */ + + kMixedStreamTaskErrorCodeAuthenticationByCDN = 1095, + /** + * + * @brief 服务端未知错误。 + */ + + kMixedStreamTaskErrorCodeUnKnownByServer = 1096, + /** + * + * @brief 服务端接收信令超时,请检查网络状态并重试。 + */ + + kMixedStreamTaskErrorCodeSignalRequestTimeout = 1097, + /** + * + * @brief 图片合流失败。 + */ + + kMixedStreamTaskErrorCodeMixImageFailed = 1098, + /** + * + * @hidden internal use only + * @brief 缓存未同步。 + */ + + kMixedStreamTaskErrorCodeStreamSyncWorse = 1099, + /** + * + * @brief 发布 WTN 流失败 + */ + + kMixedStreamTaskErrorCodePushWTNFailed = 1195, + /** + * + * @hidden for internal use only + */ + + kMixedStreamTaskErrorCodeMax = 1199, +}; + +/** + * + * @type errorcode + * @brief 单流转推任务错误码 + */ + +enum SingleStreamTaskErrorCode { + /** + * + * @brief 推流成功。 + */ + + kSingleStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + kSingleStreamTaskErrorCodeBase= 1090, + /** + * + * @brief 服务端未知错误。 + */ + + kSingleStreamTaskErrorCodeUnKnownByServer = 1091, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + kSingleStreamTaskErrorCodeSignalRequestTimeout = 1092, + /** + * + * @brief 服务端检测任务参数不合法 + */ + + kSingleStreamTaskErrorCodeInvalidParamByServer = 1093, + /** + * + * @brief 转推任务在目标房间的用户ID被踢出目标房间 + */ + + kSingleStreamTaskErrorRemoteKicked = 1094, + /** + * + * @brief 转推任务加入目标房间失败 + */ + + kSingleStreamTaskErrorCodeJoinDestRoomFailed = 1095, + /** + * + * @brief 转推任务在源房间拉流超时 + */ + + kSingleStreamTaskErrorCodeReceiveSrcStreamTimeout = 1096, + /** + * + * @brief 音视频编码转推任务不支持 + */ + + kSingleStreamTaskErrorCodeNotSurportCodec = 1097, + /** + * + * @brief 推CDN失败 + */ + + kSingleStreamTaskErrorCodePushToCDN = 1098, + /** + * + * @brief 超过单流转推的任务数限制(单主播可同时转推任务数不超过20) + */ + + kSingleStreamTaskErrorCodeCountOverLimit = 1099, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流类型。 + */ + +enum MixedStreamType { + /** + * + * @brief 服务端合流 + */ + + kMixedStreamTypeByServer = 0, + /** + * + * @brief 端云一体合流。SDK 智能决策在客户端或服务端完成合流。
+ * 使用前,请联系技术支持同学开通,否则不生效。 + */ + + kMixedStreamTypeByClient = 1, +}; + +/** + * + * @type keytype + * @brief 合流推送目标类型,指定混流后的媒体流推送到 CDN 还是 WTN。 + */ + +enum MixedStreamPushTargetType { + /** + * + * @brief 推送到 CDN + */ + + kMixedStreamPushTargetTypeToCDN = 0, + /** + * + * @brief 推送到 WTN + */ + + kMixedStreamPushTargetTypeToWTN = 1, +}; + +/** + * + * @type keytype + * @brief AAC 编码规格。 + */ + +enum MixedStreamAudioProfile { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + kMixedStreamAudioProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + kMixedStreamAudioProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + kMixedStreamAudioProfileHEv2 = 2, +}; + +/** + * + * @hidden + * @brief 遗漏的音符 + */ + +enum MixedStreamSyncStrategy { + /** + * + * @brief 不使用同步策略 + */ + + kMixedStreamSyncStrategyNoSync = 0, + /** + * + * @brief 使用音频精准同步策略 + */ + + kMixedStreamSyncStrategyAudioPreciseSync = 1, + /** + * + * @brief 使用单通模式同步策略 + */ + + kMixedStreamSyncStrategySimplexModeSync = 2, +}; + +/** + * + * @type keytype + * @brief 音频编码格式。 + */ + +enum MixedStreamAudioCodecType { + /** + * + * @brief AAC 格式。 + */ + + kMixedStreamAudioCodecTypeAAC = 0, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推 SEI 内容。 + */ + +enum MixedStreamSEIContentMode { + /** + * + * @brief 视频流中包含全部的 SEI 信息。默认设置。 + */ + + kMixedStreamSEIContentModeDefault = 0, + /** + * + * @brief 随非关键帧传输的 SEI 数据中仅包含音量信息。
+ * 当设置 `MixedStreamControlConfig.enable_volume_indication` 为 True 时,此参数设置生效。 + */ + + kMixedStreamSEIContentModeEnableVolumeIndication = 1, +}; + +/** + * + * @type keytype + * @brief 视频编码格式。 + */ + +enum MixedStreamVideoCodecType { + /** + * + * @brief H.264 格式,默认值。 + */ + + kMixedStreamVideoCodecTypeH264 = 0, + /** + * + * @brief ByteVC1 格式。 + */ + + kMixedStreamVideoCodecTypeByteVC1 = 1, +}; + +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +enum MixedStreamRenderMode { + /** + * + * @brief 视窗填满优先,默认值。
+ * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + kMixedStreamRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
+ * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + kMixedStreamRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
+ * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + kMixedStreamRenderModeAdaptive = 3, +}; + +/** + * + * @type keytype + * @brief 合流输出媒体类型。 + */ + +enum MixedStreamMediaType { + /** + * + * @brief 包含音频和视频 + */ + + kMixedStreamMediaTypeAudioAndVideo = 0, + /** + * + * @brief 只包含音频 + */ + + kMixedStreamMediaTypeAudioOnly = 1, + /** + * + * @hidden currently not available + * @brief 只包含视频 + */ + + kMixedStreamMediaTypeVideoOnly = 2, +}; + +/** + * + * @type keytype + * @brief 合流布局区域类型,视频区或水印图片区。 + */ + +enum MixedStreamLayoutRegionType { + /** + * + * @brief 视频。 + */ + + kMixedStreamLayoutRegionTypeVideoStream = 0, + /** + * + * @brief 水印图片。 + */ + + kMixedStreamLayoutRegionTypeImage = 1, +}; + +/** + * + * @type keytype + * @hidden for internal use only on Windows + * @brief 客户端合流回调视频格式。
+ * 设置为系统不支持的格式时,自动回调系统默认格式。 + */ + +enum MixedStreamClientMixVideoFormat { + /** + * + * @brief YUV I420。Android、Windows 默认回调格式。支持系统:Android、Windows。 + */ + + kMixedStreamClientMixVideoFormatI420 = 0, + /** + * + * @brief OpenGL GL_TEXTURE_2D 格式纹理。支持系统:安卓。 + */ + + kMixedStreamClientMixVideoFormatTexture2D = 1, + /** + * + * @brief CVPixelBuffer BGRA。iOS 默认回调格式。支持系统: iOS。 + */ + + kMixedStreamClientMixVideoFormatCVPixelBufferBGRA = 2, + /** + * + * @brief YUV NV12。macOS 默认回调格式。支持系统: macOS。 + */ + + kMixedStreamClientMixVideoFormatNV12 = 3, + /** + * + * @brief D3D11Texture2D, BGRA。支持系统: windows。 + */ + + kMixedStreamClientMixVideoFormatD3D11Texture2D = 4, +}; +/** + * + * @type keytype + * @brief 服务端合流转推发起模式。 + */ + +enum MixedStreamPushMode { + /** + * + * @brief 无用户发布媒体流时,发起合流任务无效。默认设置。
+ * 当有用户发布媒体流时,才能发起合流任务。 + */ + + kMixedStreamPushModeOnStream = 0, + /** + * + * @brief 无用户发布媒体流时,可以使用占位图发起合流任务。
+ * 占位图设置参看 alternate_image_url{@link #MixedStreamLayoutRegionConfig-alternate_image_url} 和 alternate_image_fill_mode{@link #MixedStreamLayoutRegionConfig-alternate_image_fill_mode} + */ + + kMixedStreamPushModeOnStartRequest = 1, +}; +/** + * + * @type keytype + * @brief 服务端合流占位图填充模式。 + */ + +enum MixedStreamAlternateImageFillMode { + /** + * + * @brief 占位图跟随用户原始视频帧相同的比例缩放。默认设置。 + */ + + kMixedStreamAlternateImageFillModeFit = 0, + /** + * + * @brief 占位图不跟随用户原始视频帧相同的比例缩放,保持图片原有比例。 + */ + + kMixedStreamAlternateImageFillModeFill = 1, +}; +/** + * + * @type keytype + * @brief 预留字段。 + */ + +enum MixedStreamVideoType { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
+ * - 由摄像头/麦克风通过内部采集机制,采集到的流 + * - 通过自定义采集,采集到的流。 + */ + + kMixedStreamVideoTypeMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。 + */ + + kMixedStreamVideoTypeScreen = 1, +}; + +/** + * + * @type keytype + * @brief WTN 流任务详情
+ * + */ + +typedef struct MixedStreamTaskInfo { + /** + * + * @brief 任务 ID
+ * 对于 WTN 流任务,该值代表 WTN 流 ID。你可以通过该 ID,指定需要订阅的 WTN 流。 + */ + + const char* task_id; + /** + * + * @brief 任务类型,合流转推 CDN 还是 WTN 流。 + */ + + MixedStreamPushTargetType push_target_type; +} MixedStreamInfo; + +/** + * + * @type keytype + * @brief 音频合流参数。
+ * 值不合法或未设置时,自动使用默认值。 + */ + +typedef struct MixedStreamAudioConfig { + /** + * + * @brief 音频采样率,单位 Hz。可取 32000 Hz、44100 Hz、48000 Hz,默认值为 48000 Hz。建议设置。 + */ + + int32_t sample_rate = 48000; + /** + * + * @brief 音频声道数。可取 1(单声道)、2(双声道),默认值为 2。建议设置。 + */ + + int32_t channels = 2; + /** + * + * @brief 音频码率,单位 Kbps。可取范围 [32, 192],默认值为 64 Kbps。建议设置。 + */ + + int32_t bitrate = 64; + /** + * + * @brief AAC 编码规格,参看 MixedStreamAudioProfile{@link #MixedStreamAudioProfile}。默认值为 `0` 代表 AAC-LC。 + */ + + MixedStreamAudioProfile audio_profile = MixedStreamAudioProfile::kMixedStreamAudioProfileLC; + /** + * + * @brief 音频编码格式,参看 MixedStreamAudioCodecType{@link #MixedStreamAudioCodecType}。当前只有一个值为 `0`,代表 AAC。
+ * WTN 流任务不支持设置本参数。 + */ + + MixedStreamAudioCodecType audio_codec = MixedStreamAudioCodecType::kMixedStreamAudioCodecTypeAAC; +} MixedStreamAudioConfig; + +#define MIXED_STREAM_VIDEO_DEFAULT_WIDTH 360 +#define MIXED_STREAM_DEFAULT_VIDEO_HEIGHT 640 +/** + * + * @type keytype + * @brief 视频合流配置参数。
+ * 值不合法或未设置时,自动使用默认值。 + */ + +typedef struct MixedStreamVideoConfig { + /** + * + * @brief 合流视频宽度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 360 px。建议设置。
+ * 设置值为非偶数时,自动向上取偶数。 + */ + + int32_t width = MIXED_STREAM_VIDEO_DEFAULT_WIDTH; + /** + * + * @brief 合流视频高度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 640 px。建议设置。
+ * 设置值为非偶数时,自动向上取偶数。 + */ + + int32_t height = MIXED_STREAM_DEFAULT_VIDEO_HEIGHT; + /** + * + * @brief 合流视频帧率。单位为 FPS,取值范围为 [1,60],默认值为 15 FPS。建议设置。 + */ + + int32_t fps = 15; + /** + * + * @brief 视频 I 帧时间间隔。单位为秒,取值范围为 [1, 5],默认值为 2 秒。建议设置。
+ * WTN 流任务不支持设置本参数。
+ * 本参数不支持过程中更新。 + */ + + int32_t gop = 2; + /** + * + * @brief 合流视频码率。单位为 Kbps,取值范围为 [1,10000],默认值为 `500`。建议设置。 + */ + + int32_t bitrate = 500; + /** + * + * @brief 视频编码格式,参看 MixedStreamVideoCodecType{@link #MixedStreamVideoCodecType}。默认值为 `0`。建议设置。
+ * WTN 流的视频编码格式只能为设置为 `0`,H264。
+ * 本参数不支持过程中更新。 + */ + + MixedStreamVideoCodecType video_codec = MixedStreamVideoCodecType::kMixedStreamVideoCodecTypeH264; + /** + * + * @brief 是否在服务端合流转推中开启 B 帧。
+ * - true: 是 + * - false: 否 + */ + + bool enable_bframe = false; +} MixedStreamVideoConfig; + +/** + * + * @hidden for internal use only on Windows + * @type keytype + * @brief 客户端合流参数。 + */ + +typedef struct ClientMixedStreamConfig { + /** + * + * @brief 客户端合流是否使用混音,默认为 true。 + */ + + bool use_audio_mixer = true; + /** + * + * @brief 客户端合流回调视频格式,参看 MixedStreamClientMixVideoFormat{@link #MixedStreamClientMixVideoFormat}。 + */ + + MixedStreamClientMixVideoFormat video_format; +} ClientMixedStreamConfig; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 转推直播单通同步参数。 + */ + +typedef struct MixedStreamSyncControlConfig { + /** + * + * @brief 在进行同步处理时,缓存音视频流的最大长度。单位为毫秒。默认值为 2000。 + * @note 参与转推直播的这些媒体流延迟越高,应该将此值设置的越大。但此值越大,因缓存媒体流造成的内存占用也会更大。推荐值为 `2000`。 + */ + + int32_t max_cache_time_ms = 2000; + /** + * + * @brief 是否在转推直播时,启用单通模式。默认为 false,不启用。
+ * 启用单通模式时,RTC SDK 会对指定的多个用户的媒体流进行同步处理,再合流后推送到 CDN,但基准流所属用户不会播放来自其他用户的媒体流。你需要设定以下参数。
+ * 非单通模式时,RTC SDK 不会对媒体流进行同步处理,只是简单合流后推送到 CDN。以下参数设定无效。 + */ + + MixedStreamSyncStrategy sync_strategy = MixedStreamSyncStrategy::kMixedStreamSyncStrategyNoSync; + /** + * + * @brief 在进行同步处理时,基准流所属用户的 ID。默认为空。 + */ + + const char* base_user_id = nullptr; + /** + * + * @brief 是否通过 RTC SDK 进行转推直播。默认为 True。
+ * 如果选择 `False`,你会通过 onCacheSyncVideoFrames{@link #IClientMixedStreamObserver#onCacheSyncVideoFrames} 收到同步的帧,你可以使用此视频帧,自行实现合流转推。 + */ + + bool video_need_sdk_mix = true; +} MixedStreamSyncControlConfig; + +/** + * + * @type keytype + * @brief 图片合流水印图片分辨率。 + */ + +typedef struct MixedStreamLayoutRegionImageWaterMarkConfig { + /** + * + * @brief 原始图片的宽度,单位为 px。 + */ + + int image_width = 0; + /** + * + * @brief 原始图片的高度,单位为 px。 + */ + + int image_height = 0; +} MixedStreamLayoutRegionImageWaterMarkConfig; + +/** + * + * @type keytype + * @brief 推流 CDN 的空间音频参数。 + */ + +typedef struct MixedStreamSpatialAudioConfig { + /** + * + * @brief 是否开启推流 CDN 时的空间音频效果。 + * @note 当你启用此效果时,你需要设定推流中各个 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig} 的 `spatial_position` 值,实现空间音频效果。 + */ + + bool enable_spatial_render; + /** + * + * @brief 听众的空间位置。参看 Position{@link #Position}。
+ * 听众指收听来自 CDN 的音频流的用户。
+ * WTN 流任务不支持设置本参数。 + */ + + Position audience_spatial_position; + /** + * + * @brief 听众的空间朝向。参看 HumanOrientation{@link #HumanOrientation}。
+ * 听众指收听来自 CDN 的音频流的用户。 + */ + + HumanOrientation audience_spatial_orientation; +} MixedStreamSpatialAudioConfig; + +/** + * + * @type keytype + * @brief 服务端合流控制参数 + */ + +typedef struct MixedStreamControlConfig { + /** + * + * @valid since 3.56 + * @brief 是否开启单独发送声音提示 SEI 的功能:
+ * - true:开启; + * - false:(默认)关闭。 + * 开启后,你可以通过 `MixedStreamControlConfig.sei_content_mode` 控制 SEI 的内容是否只携带声音信息。 + */ + + bool enable_volume_indication = false; + /** + * + * @valid since 3.56 + * @brief 声音提示间隔,单位为秒,取值范围为 [0.3,+∞),默认值为 2。
+ * 此值仅取整百毫秒。若传入两位及以上小数,则四舍五入取第一位小数的值。例如,若传入 0.36,则取 0.4。 + */ + + float volume_indication_interval = 2.0f; + /** + * + * @valid since 3.56 + * @brief 有效音量大小,取值范围为 [0, 255],默认值为 0。
+ * 超出取值范围则自动调整为默认值,即 0。 + */ + + int talk_volume = 0; + /** + * + * @valid since 3.56 + * @brief 声音信息 SEI 是否包含音量值:
+ * - true:是。 + * - false:(默认)否。 + */ + + bool is_add_volume_value = false; + /** + * + * @valid since 3.56 + * @brief 设置 SEI 内容。参看 MixedStreamSEIContentMode{@link #MixedStreamSEIContentMode}。
+ * 默认值为 `0`,视频流中包含全部的 SEI 信息 + */ + + MixedStreamSEIContentMode sei_content_mode = kMixedStreamSEIContentModeDefault; + /** + * + * @valid since 3.56 + * @brief SEI 信息的 payload type。
+ * 默认值为 `100`,只支持设置 `5` 和 `100`。
+ * 在转推直播的过程中,该参数不支持变更。 + */ + + int sei_payload_type = 100; + /** + * + * @valid since 3.56 + * @brief SEI 信息的 payload UUID。 + * @note PayloadType 为 `5` 时,必须填写 PayloadUUID,否则会收到错误回调,错误码为 1091。
+ * PayloadType 不是 `5` 时,不需要填写 PayloadUUID,如果填写会被后端忽略。
+ * 该参数长度需为 32 位,否则会收到错误码为 1091 的回调。
+ * 该参数每个字符的范围需为 [0, 9] [a, f] [A, F]
+ * 该参数不应带有`-`字符,如系统自动生成的 UUID 中带有`-`,则应删去。
+ * 在转推直播的过程中,该参数不支持变更。 + */ + + const char* sei_payload_uuid = nullptr; + /** + * + * @valid since 3.57 + * @brief 设置合流推到 CDN 时输出的媒体流类型。参看 MixedStreamMediaType{@link #MixedStreamMediaType}。
+ * 默认输出音视频流。支持输出纯音频流,但暂不支持输出纯视频流。 + */ + + MixedStreamMediaType media_type = MixedStreamMediaType::kMixedStreamMediaTypeAudioAndVideo; + /** + * + * @valid since 3.57 + * @brief 设置是否在没有用户发布流的情况下发起转推直播,默认不允许。具体参看 MixedStreamPushMode{@link #MixedStreamPushMode}。
+ * 该参数在发起合流任务后的转推直播过程中不支持动态变更。 + */ + + MixedStreamPushMode push_stream_mode = MixedStreamPushMode::kMixedStreamPushModeOnStream; +} MixedStreamControlConfig; + +/** + * + * @type keytype + * @brief WTN 流的布局模式 + */ + +enum StreamLayoutMode { + /** + * + * @brief 自动布局 + */ + + kStreamLayoutModeAuto = 0, + /** + * + * @brief 自定义 + */ + + kStreamLayoutModeCustom = 2 +}; +/** + * + * @type keytype + * @brief WTN 流的补帧模式 + */ + +enum InterpolationMode { + /** + * + * @type keytype + * @brief 补最后一帧 + */ + + kInterpolationModeLastFrameFill = 0, + /** + * + * @type keytype + * @brief 补背景图片 + */ + + kInterpolationModeBackgroundImageFill = 1 +}; +/** + * + * @type keytype + * @brief WTN 流视频裁剪配置 + */ + +typedef struct SourceCrop { + /** + * + * @brief 裁剪后得到的视频帧左上角横坐标相对于裁剪前整体画面的归一化比例,取值范围[0.0, 1.0)。
+ * 默认值为 0.0 + */ + + float location_x = 0.0; + /** + * + * @brief 裁剪后得到的视频帧左上角纵坐标相对于裁剪前整体画面的归一化比例,取值范围[0.0, 1.0)
+ * 默认值为 0.0 + */ + + float location_y = 0.0; + /** + * + * @brief 裁剪后得到的视频帧宽度相对于裁剪前整体画面的归一化比例,取值范围(0.0, 1.0]
+ * 默认值为 1.0 + */ + + float width_proportion = 1.0; + /** + * + * @brief 裁剪后得到的视频帧高度相对于裁剪前整体画面的归一化比例,取值范围(0.0, 1.0]
+ * 默认值为 1.0 + */ + + float height_proportion = 1.0; +} SourceCrop; +/** + * + * @type keytype + * @brief 单个图片或视频流在合流中的布局信息。
+ * 开启合流功能后,在多路图片或视频流合流时,你可以设置其中一路流在合流中的预设布局信息。 + */ + +typedef struct MixedStreamLayoutRegionConfig { + /** + * + * @brief 合流用户的 ID。建议设置。 + */ + + const char* user_id = nullptr; + /** + * + * @brief 图片或视频流所在房间的房间 ID。建议设置。
+ * 如果此图片或视频流是通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 转发到用户所在房间的媒体流时,你应将房间 ID 设置为用户所在的房间 ID。 + */ + + const char* room_id = nullptr; + /** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 X 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的横向位移。
+ * 取值范围为 [0, 整体画布宽度)。默认值为 0。 + */ + + int location_x = 0; + /** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 Y 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的纵向位移。
+ * 取值范围为 [0, 整体画布高度)。默认值为 0。 + */ + + int location_y = 0; + /** + * + * @brief 单个用户画面的宽度。取值范围为 [0, 整体画布宽度],默认值为 360。 + */ + + int width = MIXED_STREAM_VIDEO_DEFAULT_WIDTH; + /** + * + * @brief 单个用户画面的高度。取值范围为 [0, 整体画布高度],默认值为 640。 + */ + + int height = MIXED_STREAM_DEFAULT_VIDEO_HEIGHT; + /** + * + * @brief 透明度,可选范围为 (0.0, 1.0],0.0 为全透明。默认值为 1.0。 + */ + + float alpha = 1.0f; + /** + * + * @brief 圆角半径相对画布宽度的比例。默认值为 `0.0`。
+ * 做范围判定时,首先根据画布的宽高,将 `width`,`height`,和 `corner_radius` 分别转换为像素值:`width_px`,`height_px`,和 `corner_radius_px`。然后判定是否满足 `corner_radius_px < min(width_px/2, height_px/2)`:若满足,则设置成功;若不满足,则将 `corner_radius_px` 设定为 `min(width_px/2, height_px/2)`,然后将 `corner_radius` 设定为 `corner_radius_px` 相对画布宽度的比例值。
+ * WTN 流任务不支持设置本参数。 + */ + + float corner_radius = 0; + + /** + * + * @brief 用户视频布局在画布中的层级。取值范围为 [0 - 100],0 为底层,值越大越上层。默认值为 0。 + */ + + int32_t z_order = 0; + /** + * + * @brief 是否为本地用户:
+ * - true:是 + * - false:(默认值)否 + * WTN 流任务不支持设置本参数。 + */ + + bool is_local_user = false; + /** + * + * @brief 预留字段。 + */ + + MixedStreamVideoType stream_type = MixedStreamVideoType::kMixedStreamVideoTypeMain; + /** + * + * @brief 合流内容控制。默认值为 `kMediaTypeAudioAndVideo`,参看 MixedStreamMediaType{@link #MixedStreamMediaType}。 + */ + + MixedStreamMediaType media_type = MixedStreamMediaType::kMixedStreamMediaTypeAudioAndVideo; + /** + * + * @brief 图片或视频流的缩放模式,参看 MixedStreamRenderMode{@link #MixedStreamRenderMode}。默认值为 `1`,视窗填满优先。建议设置。 + */ + + MixedStreamRenderMode render_mode = MixedStreamRenderMode::kMixedStreamRenderModeHidden; + /** + * + * @brief 合流布局区域类型,视频区或水印图片区。参看 MixedStreamLayoutRegionType{@link #MixedStreamLayoutRegionType}。默认值为 `0`,视频。
+ * WTN 流任务不支持设置本参数。 + */ + + MixedStreamLayoutRegionType region_content_type = MixedStreamLayoutRegionType:: kMixedStreamLayoutRegionTypeVideoStream; + /** + * + * @brief 水印图 RGBA 数据。当 `region_content_type` 为图片类型时需要设置。
+ * - `kMixedStreamLayoutRegionTypeImage = 1` 时,传入图片 RGBA 数据。 + * - `kMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + + uint8_t* image_water_mark = nullptr; + /** + * + * @type keytype + * @brief 水印图参数。当 `region_content_type` 为图片类型时需要设置。
+ * - `kMixedStreamLayoutRegionTypeImage = 1` 时,传入图片参数,参看 MixedStreamLayoutRegionImageWaterMarkConfig{@link #MixedStreamLayoutRegionImageWaterMarkConfig}。 + * - `kMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + + MixedStreamLayoutRegionImageWaterMarkConfig image_water_mark_param; + /** + * + * @valid since 3.57 + * @brief 设置占位图的填充模式。
+ * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。默认值为 `kMixedStreamAlternateImageFillModeFit`,占位图跟随用户原始视频帧相同的比例缩放。
+ * 参看 MixedStreamAlternateImageFillMode{@link #MixedStreamAlternateImageFillMode}。
+ * WTN 流任务不支持设置本参数。 + */ + + MixedStreamAlternateImageFillMode alternate_image_fill_mode = kMixedStreamAlternateImageFillModeFit; + /** + * + * @valid since 3.57 + * @brief 设置占位图的 URL,长度小于 1024 字符. + */ + + const char* alternate_image_url = nullptr; + /** + * + * @type keytype + * @brief 空间位置。参看 Position{@link #Position}。
+ * WTN 流任务不支持设置本参数。 + */ + + Position spatial_position; + /** + * + * @type keytype + * @brief 是否开启空间音频效果。默认值为 true。
+ * WTN 流任务不支持设置本参数。 + */ + + bool apply_spatial_audio = true; + /** + * + * @brief 支持对每一路参与WTN 流的视频进行裁剪,参看 SourceCrop{@link #SourceCrop}
+ * 合流转推任务不支持。 + */ + + SourceCrop source_crop; +} MixedStreamLayoutRegionConfig; +/** + * + * @type keytype + * @brief 数据帧类型 + */ + +enum DataFrameType { + /** + * + * @brief SEI 视频帧 + */ + + kDataFrameTypeSei = 0, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流房间状态 + */ + +enum TranscoderRoomStatus { + /** + * @brief join room status + */ + kRoomStatusJoinRoom, + /** + * @brief leave room status + */ + kRoomStatusLeaveRoom, + /** + * @brief room status was offline + */ + kRoomStatusOffline, + /** + * @brief room status was online + */ + kRoomStatusOnline, +}; + +/** + * @hidden for internal use only + */ +typedef size_t status_t; +/** + * + * @hidden for internal use only + */ + +class IVideoFrame; +/** + * + * @hidden for internal use only + */ + +class IAudioFrame; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 数据帧 + */ + +typedef struct IDataFrame { + /** + * + * @brief 数据帧类型,参看 DataFrameType{@link #DataFrameType} + */ + + DataFrameType frame_type = kDataFrameTypeSei; + /** + * + * @brief 数据帧数据 + */ + + uint8_t* u8_data = nullptr; + /** + * + * @brief 数据帧数据大小 + */ + + uint32_t u32_data_size = 0; + /** + * + * @brief 数据帧时间戳,单位:微秒 + */ + + uint64_t u64_ts_us = 0; +} IDataFrame; + +/** + * + * @type keytype + * @brief 合流/WTN 流的转推目标参数。 + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +typedef struct MixedStreamPushTargetConfig { + /** + * + * @type keytype + * @brief WTN 流 ID。合流任务不支持设置本参数。 + */ + + const char* push_wtn_stream_id = nullptr; + /** + * + * @type api + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + + const char* push_cdn_url = nullptr; + /** + * + * @type keytype + * @brief 推流任务类型。 + */ + + MixedStreamPushTargetType push_target_type = kMixedStreamPushTargetTypeToCDN; +} MixedStreamPushTargetConfig; + +/** + * + * @type keytype + * @brief 合流转推配置参数。 + * 如无特别说明,参数可适用于WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +class IMixedStreamConfig { +public: + /** + * + * @type api + * @brief 构建合流任务参数 + * @return 合流任务参数 + */ + + static BYTERTC_STATIC_API IMixedStreamConfig* createMixedStreamConfig(); + /** + * + * @type api + * @brief 获取发起合流任务用户所在的房间 ID。 + * @return 合流房间 ID + */ + + virtual const char* getRoomID() = 0; + /** + * + * @type api + * @brief 设置合流房间 ID + * @param room_id 发起合流的用户所在的房间 ID + * @note + * 本参数不支持过程中更新。 + */ + + virtual void setRoomID(const char* room_id) = 0; + /** + * + * @type api + * @brief 获取发起合流任务的用户 ID。 + * @return 用户 ID。 + */ + + virtual const char* getUserID() = 0; + /** + * + * @type api + * @brief 设置发起合流任务的用户 ID。`room_id` 和 `user_id` 长度相加不得超过 126 字节。建议设置。
+ * 本参数不支持过程中更新。 + * @param user_id 推流用户 ID。 + */ + + virtual void setUserID(const char* user_id) = 0; + /** + * + * @type api + * @brief 获取合流音频参数。 + * @return 合流音频参数内容,参看 MixedStreamAudioConfig{@link #MixedStreamAudioConfig}。 + */ + + virtual MixedStreamAudioConfig getAudioConfig() = 0; + /** + * + * @type api + * @brief 设置音频参数。建议设置。 + * @param MixedStreamAudioConfig 音频参数,参看 MixedStreamAudioConfig{@link #MixedStreamAudioConfig}。 + * @note + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + + virtual void setAudioConfig(const MixedStreamAudioConfig&) = 0; + /** + * + * @type api + * @brief 获取视频转码参数。 + * @return 视频转码参数内容,参看 MixedStreamVideoConfig{@link #MixedStreamVideoConfig}。 + */ + + virtual MixedStreamVideoConfig getVideoConfig() = 0; + /** + * + * @type api + * @brief 设置视频参数。建议设置。 + * @param MixedStreamVideoConfig 视频参数,参看 MixedStreamVideoConfig{@link #MixedStreamVideoConfig}。 + */ + + virtual void setVideoConfig(const MixedStreamVideoConfig&) = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @brief 获取转推 CDN 时的空间音频参数。 + * @return 参看 MixedStreamSpatialAudioConfig{@link #MixedStreamSpatialAudioConfig}。 + */ + + virtual MixedStreamSpatialAudioConfig getSpatialAudioConfig() = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @brief 设定转推 CDN 时的空间音频效果。参看 MixedStreamSpatialAudioConfig{@link #MixedStreamSpatialAudioConfig}。 + */ + + virtual void setSpatialAudioConfig(const MixedStreamSpatialAudioConfig&) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取动态扩展自定义参数 + * @return 动态扩展自定义参数 + */ + + virtual const char* getAdvancedConfig() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置动态扩展自定义参数 + * @param advanced_config 动态扩展自定义参数 + */ + + virtual void setAdvancedConfig(const char* advanced_config) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取业务透传鉴权信息 + * @return 业务透传鉴权信息 + */ + + virtual const char* getAuthInfo() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置业务透传鉴权信息 + * @param auth_info 业务透传鉴权信息 + */ + + virtual void setAuthInfo(const char* auth_info) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取转推直播同步参数。 + * @return 转推直播同步参数,参看 MixedStreamSyncControlConfig{@link #MixedStreamSyncControlConfig}。 + */ + + virtual MixedStreamSyncControlConfig getSyncControlConfig() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置转推直播同步参数。参看 MixedStreamSyncControlConfig{@link #MixedStreamSyncControlConfig}。 + */ + + virtual void setSyncControlConfig(MixedStreamSyncControlConfig&) = 0; + /** + * + * @type api + * @brief 获取服务端合流控制参数。参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}。 + */ + + virtual MixedStreamControlConfig getControlConfig() = 0; + /** + * + * @type api + * @brief 设置服务端合流控制参数。参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}。 + * @param config 参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}. + */ + + virtual void setControlConfig(MixedStreamControlConfig& config) = 0; + /** + * + * @type api + * @brief 获取用户配置的额外信息。 + * @return 用户配置的额外信息。 + */ + + virtual const char* getUserConfigExtraInfo() = 0; + /** + * + * @type api + * @brief 设置用户配置的额外信息。 + * @param user_ext_info 用户配置的额外信息。 + * @note + * WTN 流任务不支持设置本参数。 + */ + + virtual void setUserConfigExtraInfo(const char* user_ext_info) = 0; + /** + * + * @type api + * @brief 获取 WTN 流的布局模式。 + * @return StreamLayoutMode{@link #StreamLayoutMode} 信息。 + */ + + virtual StreamLayoutMode getStreamLayoutMode() = 0; + /** + * + * @type api + * @brief 设置 WTN 流的布局模式。 + * @param mode 布局模式。参看 StreamLayoutMode{@link #StreamLayoutMode}。 + */ + + virtual void setStreamLayoutMode(StreamLayoutMode mode) = 0; + /** + * + * @type api + * @brief 获取 WTN 流的补帧模式。 + * @return InterpolationMode{@link #InterpolationMode} 信息。 + */ + + virtual InterpolationMode getInterpolationMode() = 0; + /** + * + * @type api + * @brief 设置 WTN 流的补帧模式。 + * @param mode 补帧模式。参看 InterpolationMode{@link #InterpolationMode}。 + */ + + virtual void setInterpolationMode(InterpolationMode mode) = 0; + + /** + * + * @type api + * @brief 获取 WTN 流 ID。 + * @return WTN 流 ID。 + */ + + virtual const char* getPushWTNStreamID() = 0; + /** + * + * @type api + * @brief 设置 WTN 流 ID。 + * @param stream_id WTN 流 ID。 + */ + + virtual void setPushWTNStreamID(const char* stream_id) = 0; + /** + * + * @type api + * @brief 获取任务类型。 + * @return MixedStreamPushTargetType{@link #MixedStreamPushTargetType} + */ + + virtual MixedStreamPushTargetType getPushTargetType() = 0; + /** + * + * @type api + * @brief 设置推流目标。 + * @param type 参看 MixedStreamPushTargetType{@link #MixedStreamPushTargetType}。 + */ + + virtual void setPushTargetType(MixedStreamPushTargetType type) = 0; + + /** + * + * @type api + * @brief 获取背景颜色。 + * @return 背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。 + */ + + virtual const char* getBackgroundColor() = 0; + /** + * + * @type api + * @brief 设置背景颜色。 + * @param background_color 背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。 + */ + + virtual void setBackgroundColor(const char* background_color) = 0; + /** + * + * @type api + * @brief 获取背景图片的地址。 + * @return 背景图片的地址。 + */ + + virtual const char* getBackgroundImageURL() = 0; + /** + * + * @type api + * @brief 设置合流后整体画布的背景图片。 + * @param background_image_url 图片的 URL,长度最大为 1023 bytes。
+ * 必须是 http 开头,支持的图片格式包括:JPG, JPEG, PNG。如果背景图片的宽高和整体屏幕的宽高不一致,背景图片会缩放到铺满屏幕。 + */ + + virtual void setBackgroundImageURL(const char* background_image_url) = 0; + /** + * + * @type api + * @brief 获取合流视窗布局信息。 + * @param index 视窗对应下标。 + * @return 合流视窗布局信息,参看 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig}。 + */ + + virtual MixedStreamLayoutRegionConfig getLayoutByIndex(int32_t index) = 0; + /** + * + * @type api + * @brief 获取合流参数中视窗的数量 + * @return 合流参数中视窗的数量 + */ + + virtual int32_t getLayoutRegionsSize() = 0; + /** + * + * @type api + * @brief 设置视频流合流整体布局信息。 + * @param regions 用户布局信息列表。为 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig} 数据类型的数组。每一个该类型对象为一路单独的视频流的布局信息。
+ * 值不合法或未设置时,自动使用默认值。建议设置。 + * @param regions_size 合流视窗数量。建议设置。 + */ + + virtual void setLayoutConfig(MixedStreamLayoutRegionConfig regions[], int32_t regions_size) = 0; + virtual ~IMixedStreamConfig() = default; +}; + +/** + * + * @type keytype + * @brief 单流转推配置目标房间信息 + */ + +typedef struct DestInfo { + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID + */ + + const char* room_id; + /** + * + * @brief 转发目标房间中自定义用户ID + */ + + const char* user_id; +} DestInfo; + +/** + * + * @type keytype + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间。 + */ + +enum SingleStreamPushType { + /** + * + * @brief 转推到 CDN + */ + + kPushToCDN = 1, + /** + * + * @brief 转推到 RTC 房间 + */ + + kPushToRTC = 2 +}; + +/** + * + * @type keytype + * @brief 单流转推直播配置参数。 + */ + +typedef struct PushSingleStreamParam { + /** + * + * @brief 媒体流所在的房间 ID + */ + + const char* room_id; + /** + * + * @brief 媒体流所属的用户 ID + */ + + const char* user_id; + /** + * + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * 本参数不支持过程中更新。 + */ + + const char* uri; + /** + * + * @brief 预留字段。 + */ + + bool is_screen_stream; + /** + * + * @brief 转推目标房间数组,默认值为nullptr + */ + + DestInfo* dest_info = nullptr; + /** + * + * @brief 转推目标房间数量,`dest_info` 的数组长度,
+ * 默认值为0,取值范围[0, 8] + */ + + int32_t dest_info_size = 0; + /** + * + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间,默认值为转推到 CDN。 + */ + + SingleStreamPushType push_type = kPushToCDN; +}PushSingleStreamParam; + +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步模式。 +*/ + +enum ChorusCacheSyncMode { + /** + * + * @brief 合唱场景下,主唱应采用此模式,以发送带时间戳信息的媒体数据。 + */ + + kChorusCacheSyncModeProducer= 0, + /** + * + * @brief 合唱场景下,副唱应采用此模式。
+ * 此模式下,副唱收到来自主唱的带时间戳的媒体数据。副唱发送的媒体数据中带有来自主唱的时间戳。 + */ + + kChorusCacheSyncModeRetransmitter= 1, + /** + * + * @brief 合唱场景下,听众应采用此模式。
+ * 此模式下,听众收到来自主唱的时间戳,并据此对齐来自主唱和副唱的媒体数据,以获得良好的合唱播放效果。 + */ + + kChorusCacheSyncModeConsumer = 2 +}; +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步事件。 +*/ + +enum ChorusCacheSyncEvent { + /** + * + * @brief 成功 + */ + + kChorusCacheSyncEventStartSuccess = 0, + /** + * + * @brief 失败。 + */ + + kChorusCacheSyncEventStartFailed = 1, +}; +/** +* +* @hidden internal use only +* @type errorcode +* @brief 缓存同步错误码。 +*/ + +enum ChorusCacheSyncError { + /** + * + * @brief 成功。 + */ + + kChorusCacheSyncErrorOK = 0, + /** + * + * @brief 失败。推送至 CDN 时,应进行以下设置:
+ * - `IMixedStreamConfig.MixedStreamSyncControlConfig.enable_sync = true`; + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.base_user_id = {uid of producer}`。 + */ + + kChorusCacheSyncErrorWrongState = 1, + /** + * + * @brief 缓存同步功能已启动,不需要重复开启。 + */ + + kChorusCacheSyncErrorAlreadyRunning = 2 +}; +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步配置。 +*/ + +struct ChorusCacheSyncConfig { + /** + * + * @brief 最大媒体缓存时长(ms)。
+ * 取值范围是 `[500, 2500]`,默认值是 `2000`。
+ * 值越大,同步效果越好,但会造成占用内存较大。如果参与缓存同步的各路媒体流之间的时间差超过此值,会造成丢帧。 + */ + + int32_t max_cache_time_ms = 2000; + /** + * + * @brief 收到 onSyncedVideoFrames{@link #IChorusCacheSyncObserver#onSyncedVideoFrames} 的频率。
+ * 默认值是 `15`。此值通常应小于等于原始视频帧率;如果大于原始视频帧率,可能会收到重复帧。 + */ + + int32_t video_fps = 15; + /** + * + * @brief 模式。参看 ChorusCacheSyncMode{@link #ChorusCacheSyncMode}. 默认值是 `retransmitter`。 + */ + + ChorusCacheSyncMode mode = kChorusCacheSyncModeRetransmitter; +}; + +/** + * + * @type callback + * @hidden for internal use only on Windows + * @brief 合流推流 Observer
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +class IClientMixedStreamObserver { +public: + /** + * + * @hidden for internal use only on Windows + * @type callback + * @brief 转推直播状态回调 + * @param info 参看 MixedStreamTaskInfo{@link #MixedStreamTaskInfo} + * @param type 转推直播类型,参看 MixedStreamType{@link #MixedStreamType} + * @param event 转推直播任务状态,参看 MixedStreamTaskEvent{@link #MixedStreamTaskEvent} + * @param error_code 转推直播错误码,参看 MixedStreamTaskErrorCode{@link #MixedStreamTaskErrorCode}。 + */ + + virtual void onClientMixedStreamEvent(MixedStreamTaskInfo info, MixedStreamType type, MixedStreamTaskEvent event, MixedStreamTaskErrorCode error_code) = 0; + /** + * + * @hidden for internal use only on Windows + * @type callback + * @region CDN 推流 + * @brief 客户端合流音频首帧回调 + * @param task_id 任务 ID + */ + + virtual void onMixedFirstAudioFrame(const char* task_id) = 0; + /** + * + * @hidden for internal use only on Windows + * @type callback + * @region CDN 推流 + * @brief 客户端合流视频首帧回调 + * @param task_id 任务 ID + */ + + virtual void onMixedFirstVideoFrame(const char* task_id) = 0; + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 合流视频回调,运行在视频回调线程 + * @param task_id 合流任务 ID + * @param video_frame 视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @note 收到该回调的周期与视频的帧间隔一致。 + */ + + virtual void onMixedVideoFrame(const char* task_id, IVideoFrame* video_frame) = 0; + + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 合流音频回调,运行在音频回调线程 + * @param task_id 转推直播任务 ID + * @param audio_frame 音频帧,参看 IAudioFrame{@link #IAudioFrame}。 + * @note 收到该回调的周期为每 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + */ + + virtual void onMixedAudioFrame(const char* task_id, IAudioFrame* audio_frame) = 0; + + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 视频 SEI 帧回调,运行在视频回调线程 + * @param task_id 转推直播任务 ID + * @param data_frame SEI 数据 + */ + + virtual void onMixedDataFrame(const char* task_id, IDataFrame* data_frame) = 0; + + /** + * + * @hidden for internal use only + * @type callback + * @region CDN 推流 + * @brief 同步视频帧回调。 + * @param task_id 转推直播任务 ID。 + * @param uids 同步视频帧对应的 uid 数组。 + * @param video_frames 同步视频帧数组,与 uids 对应。 + * @param data_frame SEI 数据。 + * @param count 数组的长度。 + */ + + virtual void onCacheSyncVideoFrames(const char* task_id, const char* uids[], IVideoFrame* video_frames[], + IDataFrame* data_frame[], int count) = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IClientMixedStreamObserver() = default; +}; + +/** + * + * @hidden internal use only + * @type callback + * @brief 缓存同步 Observer + */ + +class IChorusCacheSyncObserver { +public: + /** + * @hidden constructor/destructor + */ + virtual ~IChorusCacheSyncObserver() { + } + /** + * + * @type callback + * @brief 调用 startChorusCacheSync{@link #IRTCEngine#startChorusCacheSync},并设置为 `consumer` 的用户会通过此回调获取经缓存同步后的视频帧。获取频率通过启动同步时的 `fps` 进行设置。 + * @param count `uids` 和 `videoFrames` 的数组长度 + * @param uids 参与合唱缓存同步的 `producer` 和 `retransmitter` 的列表,不包括参与但未发送媒体数据的用户。 + * @param video_frames 对应 `uids` 的视频帧。参看 IVideoFrame{@link #IVideoFrame}。 + */ + + virtual void onSyncedVideoFrames(int count, const char* uids[], bytertc::IVideoFrame* video_frames[]) = 0; + /** + * + * @type callback + * @brief 参与合唱缓存同步的 `producer` 和 `retransmitter` 发生变化时,收到此回调。 + * @param count 当前的 `uids` 的长度 + * @param uids 当前的参与者列表 + * @note 有以下情况可能造成参与者发生变化:
+ * - 用户主动调用 startChorusCacheSync{@link #IRTCEngine#startChorusCacheSync} 或 stopChorusCacheSync{@link #IRTCEngine#stopChorusCacheSync}; + * - 原本参与缓存同步的用户发生异常退出。 + */ + + virtual void onSyncedUsersChanged(int count, const char* uids[]) = 0; + /** + * + * @type callback + * @brief 缓存同步事件回调 + * @param event 事件,参看 ChorusCacheSyncEvent{@link #ChorusCacheSyncEvent}。 + * @param error 错误码,参看 ChorusCacheSyncError{@link #ChorusCacheSyncError}。 + */ + + virtual void onSyncEvent(ChorusCacheSyncEvent event, ChorusCacheSyncError error) = 0; +}; +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h new file mode 100644 index 0000000..25f0cc7 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h @@ -0,0 +1,2648 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Defines + */ + +#pragma once + +#include "bytertc_rts_defines.h" +#include "bytertc_video_frame.h" + +namespace bytertc { + +/** + * + * @type keytype + * @brief 订阅大小流偏好 + */ + +enum SimulcastStreamType { + /** + * + * @brief 弱流,最小分辨率的流。 + */ + + kSimulcastStreamTypeWeak = 0, + /** + * + * @brief 小流 + */ + + kSimulcastStreamTypeLow, + /** + * + * @brief 中流 + */ + + kSimulcastStreamTypeMid, + /** + * + * @brief 大流 + */ + + kSimulcastStreamTypeHigh +}; + +/** + * + * @type keytype + * @brief 发布大小流模式 + */ + +enum VideoSimulcastMode { + /** + * + * @brief 单流模式。始终只有 1 路分辨率的流。 + */ + + kVideoSimulcastModeOnlyOne = 0, + /** + * + * @brief 按需订阅模式。发送端会根据订阅端的状态,按需发布。无订阅偏好设置默认发送 2 路。 + */ + + kVideoSimulcastModeOnDemand, + /** + * + * @brief 订阅弱流。发送端始终按照设置的参数发布所有大小流。默认发送 2 路。 + */ + + kVideoSimulcastModeAlwaysSimulcast, +}; + + +/** + * + * @type keytype + * @brief 渲染模式 + */ + +enum RenderMode { + /** + * + * @brief 视窗填满优先,默认值。
+ * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
+ * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + kRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
+ * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
+ * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + */ + + kRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
+ * 视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + kRenderModeFill = 3, +}; + +/** + * + * @type keytype + * @brief 订阅媒体的类型 + */ + +enum SubscribeMediaType { + /** + * + * @brief 既不订阅音频,也不订阅视频 + */ + + kRTCSubscribeMediaTypeNone = 0, + /** + * + * @brief 只订阅音频,不订阅视频 + */ + + kRTCSubscribeMediaTypeAudioOnly, + /** + * + * @brief 只订阅视频,不订阅音频 + */ + + kRTCSubscribeMediaTypeVideoOnly, + /** + * + * @brief 同时订阅音频和视频 + */ + + kRTCSubscribeMediaTypeVideoAndAudio +}; + +/** + * + * @type keytype + * @brief 暂停/恢复接收远端的媒体流类型。 + */ + +enum PauseResumeControlMediaType { + /** + * + * @brief 只控制音频,不影响视频 + */ + + kRTCPauseResumeControlMediaTypeAudio = 0, + /** + * + * @brief 只控制视频,不影响音频 + */ + + kRTCPauseResumeControlMediaTypeVideo = 1, + /** + * + * @brief 同时控制音频和视频 + */ + + kRTCPauseResumeControlMediaTypeVideoAndAudio = 2 +}; + +/** + * + * @type keytype + * @brief 时域分层定义 + */ + +enum SVCLayer { + /** + * + * @brief 不指定分层(默认值) + */ + + kSVCLayerDefault = 0, + /** + * + * @brief T0 层 + */ + + kSVCLayerBase = 1, + /** + * + * @brief T0+T1 层 + */ + + kSVCLayerMain = 2, + /** + * + * @brief T0+T1+T2 层 + */ + + kSVCLayerHigh = 3, +}; + +/** + * + * @type keytype + * @brief 流切换信息。本地用户订阅的远端流触发回退策略时的流切换信息。 + */ + +struct RemoteStreamSwitch { + /** + * + * @brief 订阅的音视频流的发布者的用户 ID。 + */ + + const char* uid; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 流切换前本地用户订阅的视频流的分辨率对应的索引。 + */ + + int before_video_index; + /** + * + * @brief 流切换后本地用户订阅的视频流的分辨率对应的索引。 + */ + + int after_video_index; + /** + * + * @brief 流切换前是否有视频流。 + */ + + bool before_enable; + /** + * + * @brief 流切换后是否有视频流。 + */ + + bool after_enable; + /** + * + * @brief 触发流回退的原因,详见类型 FallbackOrRecoverReason{@link #FallbackOrRecoverReason} 。 + */ + + FallbackOrRecoverReason reason; +}; + +/** + * + * @type keytype + * @brief 背景模式 + */ + +enum BackgroundMode { + /** + * + * @brief 无 + */ + + kBackgroundModeNone = 0, + /** + * + * @brief 虚化 + */ + + kBackgroundModeBlur = 1, + /** + * + * @brief 背景 1 + */ + + kBackgroundModeA = 2, + /** + * + * @brief 背景 2 + */ + + kBackgroundModeB = 3, +}; + +/** + * + * @type keytype + * @brief 分割模型 + */ + +enum DivideMode { + /** + * + * @brief 自研 + */ + + kDivideModeNone = 0, + /** + * + * @brief effect + */ + + kDivideModeEffect = 1, +}; + +/** + * + * @type keytype + * @brief 流属性。 + */ + +struct MediaStreamInfo { + /** + * + * @brief 发布此流的用户 ID 。 + */ + + const char* user_id; + /** + * + * @hidden for internal use only + * @brief 该流的标识 ID,用户内唯一。 + */ + + StreamIndex stream_index; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 此流是否包括视频流。 + */ + + bool has_video; + /** + * + * @brief 流是否包括音频流。 + */ + + bool has_audio; + /** + * + * @brief 视频流的属性。
+ * 当远端用户调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法发布多个配置的视频流时,此处会包含该用户发布的所有视频流的属性信息。 + */ + + VideoSolutionDescription* profiles; + /** + * + * @brief 不同配置流的个数。
+ * 当远端用户调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法发布多个配置的视频流时,此处会包含该用户发布的视频流的数目。 + */ + + int profile_count; + + /** + * + * @brief 最大视频流的属性。
+ * 当远端用户开启带通道划分的大小流时,回调最大视频流属性信息。用户可以使用新的订阅方式,订阅任意不超过该分辨率的流。
+ * 最终接收到的流,会受房间内其他用户的订阅行为的影响,综合确定一个最接近用户请求的分辨率的流。 + */ + + VideoSolutionDescription max_profile; +}; + +/** + * + * @type keytype + * @brief 视频订阅配置信息 + */ + +struct SubscribeVideoConfig { + /** + * + * @brief 订阅的视频流分辨率下标。
+ * 当远端用户通过调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法启动发布多路不同分辨率的视频流时,本地用户需通过此参数指定希望订阅的流。
+ * 默认值为 0,即订阅第一路流。
+ * 如果不想更改之前的设置,可以输入 -1。 + */ + + int video_index = 0; + /** + * + * @brief 远端用户优先级,参看 RemoteUserPriority{@link #RemoteUserPriority},默认值为 0。 + */ + + int priority = 0; + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeVideoConfig() : video_index(0), priority(0) { + } + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const SubscribeVideoConfig& config) const { + bool result = video_index == config.video_index && priority == config.priority; + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const SubscribeVideoConfig& config) const { + bool result = (*this == config); + return !result; + } +}; + +/** + * + * @type keytype + * @brief 手动订阅流的配置信息。 + */ + +struct SubscribeConfig { + /** + * + * @brief 预留字段。 + */ + + bool is_screen = false; + /** + * + * @brief 是否订阅视频。 + */ + + bool sub_video; + /** + * + * @brief 是否订阅音频。 + */ + + bool sub_audio; + /** + * + * @brief 订阅的视频流分辨率下标。
+ * 用户可以通过调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法在一路流中发布多个不同分辨率的视频。因此订阅流时,需要指定订阅的具体分辨率。此参数即用于指定需订阅的分辨率的下标,默认值为 0 。 + */ + + int video_index; + /** + * + * @brief 远端用户的需求优先级,参看 RemoteUserPriority{@link #RemoteUserPriority},默认值为 0 。
+ * 当开启了订阅流回退选项功能(详见 setSubscribeFallbackOption{@link #IRTCEngine#setSubscribeFallbackOption} 方法),弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + */ + + int priority = 0; + /** + * + * @brief 远端用户的时域分层,参看 SVCLayer{@link #SVCLayer},默认值为 0 。
+ * 仅码流支持 SVC 特性时可以生效。 + */ + + int svc_layer = 0; + /** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0,设为大于 0 的值时开始生效。
+ * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
+ * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + + int framerate = 0; + /** + * + * @brief 用户通过指定 UI 对应的最合适的流的宽度,单位:px + */ + + int sub_width = 0; + /** + * + * @brief 用户通过指定 UI 对应的最合适的流的高度,单位:px + */ + + int sub_height = 0; + /** + * + * @hidden for internal use only + */ + + int sub_video_index = -1; + +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig() : is_screen(false), sub_video(true), sub_audio(true), video_index(0), priority(0) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex) + : is_screen(is_screen), sub_video(subvideo), sub_audio(subaudio), video_index(videoindex) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex, int priority) + : is_screen(is_screen), + sub_video(subvideo), + sub_audio(subaudio), + video_index(videoindex), + priority(priority) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex, + int priority,int svc_layer,int width,int height) + : is_screen(is_screen), + sub_video(subvideo), + sub_audio(subaudio), + video_index(videoindex), + priority(priority), + svc_layer(svc_layer), + sub_width(width), + sub_height(height) { + } + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const SubscribeConfig& config) const { + + bool common_result = is_screen == config.is_screen && sub_video == config.sub_video + && sub_audio == config.sub_audio && priority == config.priority + && svc_layer == config.svc_layer && framerate == config.framerate; + bool result; + if(sub_width * sub_height > 0 && config.sub_width * config.sub_height > 0) { + result = common_result && sub_width == config.sub_width && sub_height == config.sub_height ; + } else if((sub_width * sub_height == 0) && (config.sub_width * config.sub_height == 0) ) { + result = common_result && video_index == config.video_index; + } else { + result = false; + } + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const SubscribeConfig& config) const { + bool result = (*this == config); + return !result; + } +}; + +/** + * + * @type keytype + * @brief 远端视频类型
+ * 目前 C++ sdk 只支持 kVideoStreamTypeHigh 类型 + */ + +enum VideoStreamType { + /** + * + * @brief 高分辨率视频流 + */ + + kVideoStreamTypeHigh = 0, + /** + * + * @brief 低分辨率视频 + */ + + kVideoStreamTypeLow = 1, +}; + +/** + * + * @type keytype + * @brief 渲染目标类型 + */ + +enum RenderTargetType { + /** + * + * @brief 指定渲染目标类型为 SurfaceView/TextureView (Android), UIView(iOS), NSView(macOS), HWND (Windows) + */ + + kRenderTargetTypeView = 0, + /** + * + * @brief 仅在 Android 平台生效,指定渲染目标类型为 Surface + */ + + kRenderTargetTypeSurface = 1, +}; + +/** + * + * @type keytype + * @brief 视频帧渲染设置。 + */ + +struct VideoCanvas { + /** + * + * @brief 本地视图句柄 + */ + + void* view = NULL; + /** + * + * @brief 视频渲染模式,参看 RenderMode{@link #RenderMode} + */ + + int render_mode = kRenderModeHidden; + /** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + + uint32_t background_color = 0; + /** + * + * @brief 渲染目标的类型。参看 RenderTargetType{@link #RenderTargetType}。 + */ + + RenderTargetType render_target_type = kRenderTargetTypeView; + /** + * + * @brief 视频帧旋转角度。参看 VideoRotation{@link #VideoRotation}。默认为 0 度,即不做旋转处理。
+ * 该设置仅对远端视频有效,对本地视频设置不生效。 + */ + + VideoRotation render_rotation = kVideoRotation0; + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + VideoCanvas() : view(NULL), render_mode(kRenderModeHidden), background_color(0), render_target_type(kRenderTargetTypeView) { + } + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + VideoCanvas(void* v, int m, uint32_t c) : view(v), render_mode(m), background_color(c) { + } +}; + +/** + * + * @type keytype + * @brief 远端视频帧渲染设置 + */ + +struct RemoteVideoRenderConfig { + /** + * + * @brief 渲染模式:
+ * - 1(`RENDER_MODE_HIDDEN`)视窗填满优先,默认值。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + * - 2(`RENDER_MODE_FIT`)视频帧内容全部显示优先。视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将填充 `backgroundColor`。缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + * - 3(`RENDER_MODE_FILL`)视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + RenderMode render_mode = kRenderModeHidden; + /** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + + uint32_t background_color = 0; + + /** + * + * @brief 用户自定义画面旋转。可选值 0, 90, 180, 270, 默认值是 0。其中 0 代表保持原始画面,90, 180, 270 代表顺时针旋转原始 canvas 相应角度。 + */ + + VideoRotation render_rotation = kVideoRotation0; +}; + +/** + * + * @type api + * @brief Windows 窗口 id, Windows 平台下传 Windows 窗口句柄 + */ + +typedef void* view_t; + +/** + * + * @type keytype + * @brief 矩形区域,用于指定屏幕区域。 + */ + +struct Rectangle { + /** + * + * @brief 矩形区域左上角的 x 坐标。 + */ + + int x = 0; + /** + * + * @brief 矩形区域左上角的 y 坐标。 + */ + + int y = 0; + /** + * + * @brief 矩形宽度。 + */ + + int width = 0; + /** + * + * @brief 矩形高度。 + */ + + int height = 0; +}; + +/** + * + * @type keytype + * @brief 屏幕共享时的边框高亮设置。 + */ + +struct HighlightConfig { + /** + * + * @brief 是否显示高亮边框,默认显示。 + */ + + bool enable_highlight = true; + /** + * + * @brief 边框的颜色, 颜色格式为十六进制 ARGB: 0xAARRGGB。 + */ + + uint32_t border_color = 0xFF29CCA3; + /** + * + * @brief 边框的宽度,单位:像素。 + */ + + int border_width = 4; +}; + +/** + * + * @type keytype + * @brief 抓取屏幕时排除指定窗口,默认不排除任何窗体。 + */ + +struct ScreenFilterConfig { + /** + * + * @brief 抓取屏幕时排除窗口列表。这个参数仅在抓取屏幕时生效。 + */ + + view_t* excluded_window_list = nullptr; + /** + * + * @brief 排除窗口的数量。 + */ + + int excluded_window_num = 0; +}; + +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流时,是否采集鼠标信息。 + */ + +enum MouseCursorCaptureState { + /** + * + * @brief 采集鼠标信息。 + */ + + kMouseCursorCaptureStateOn, + /** + * + * @brief 不采集鼠标信息。 + */ + + kMouseCursorCaptureStateOff, +}; + +/** + * + * @type keytype + * @brief 屏幕共享参数 + */ + +struct ScreenParameters { + /** + * + * @brief 编码帧率,单位为 fps + */ + + int frame_rate = 15; + /** + * + * @brief 屏幕采集编码码率, `-1` 为自动码率, SDK 会根据宽高信息选择合适的码率,单位 kbps + */ + + int kbitrate = -1; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `min_kbitrate`。
+ * 默认值为 `0`。
+ * 范围:[0, kbitrate),当 `kbitrate` < `min_kbitrate` 时,为适配码率模式。
+ * 以下情况,设置本参数无效:
+ * - 当 `kbitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `kbitrate` < `0` 时,适配码率模式。 + */ + + int min_kbitrate = 0; +}; + +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流的内容类型。 + */ + +enum ContentHint { + /** + * + * @brief 细节内容。当共享文档、图片时,建议使用该内容类型。默认值。 + */ + + kContentHintDetails = 0, + /** + * + * @brief 动画内容。当共享视频、游戏时,建议使用该内容类型。 + */ + + kContentHintMotion, +}; + +/** + * + * @type keytype + * @brief 屏幕共享内部采集参数 + */ + +struct ScreenCaptureParameters { + /** + * + * @brief 采集区域,参看 Rectangle{@link #Rectangle}。 + */ + + Rectangle region_rect; + /** + * + * @brief 是否采集鼠标状态,参看 MouseCursorCaptureState{@link #MouseCursorCaptureState}。 + */ + + MouseCursorCaptureState capture_mouse_cursor = MouseCursorCaptureState::kMouseCursorCaptureStateOn; + /** + * + * @brief 屏幕过滤设置,填写不需要采集的窗口 ID,参看 ScreenFilterConfig{@link #ScreenFilterConfig}。 + */ + + ScreenFilterConfig filter_config; + /** + * + * @brief 采集区域的边框高亮设置,参看 HighlightConfig{@link #HighlightConfig}。 + */ + + HighlightConfig highlight_config; +}; + +/** + * + * @type keytype + * @brief 屏幕共享的编码参数配置。 + */ + +struct DesktopCaptureParameters { + /** + * + * @brief 屏幕采集编码最大宽度,单位 px。 + */ + + int max_width = 1920; + /** + * + * @brief 屏幕采集编码最大高度,单位 px。 + */ + + int max_height = 1080; + /** + * + * @brief 屏幕采集编码帧率, 单位 fps。 + */ + + int frame_rate = 15; + /** + * + * @brief 屏幕采集编码码率, -1 为自动码率, SDK 会根据宽高信息选择合适的码率,单位 kbps + */ + + int bitrate = -1; + /** + * + * @brief 最小编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
+ * 最小编码码率必须小于或等于最大编码,否则不对视频流进行编码发送。 + */ + + int min_bitrate = 0; + /** + * + * @brief 是否捕获鼠标光标。 + */ + + bool capture_mouse_cursor = true; + /** + * + * @brief 抓取屏幕时排除窗口列表。这个参数仅在抓取屏幕时生效。 + */ + + view_t* excluded_window_list = nullptr; + /** + * + * @brief 抓取屏幕时排除的窗口数量。 + */ + + int excluded_window_num = 0; + /** + * + * @brief 高亮边框的配置。 + */ + + HighlightConfig highlight_config; +}; + +/** + * + * @type keytype + * @brief 自定义视频渲染器 + */ + +class IVideoSink { +public: + /** + * + * @type keytype + * @brief 视频帧编码格式 + */ + + enum PixelFormat { + /** + * + * @brief YUV I420 格式 + */ + + kI420 = VideoPixelFormat::kVideoPixelFormatI420, + /** + * + * @brief RGBA 格式, 字节序为 R8 G8 B8 A8 + */ + + kRGBA = VideoPixelFormat::kVideoPixelFormatRGBA, + /** + * + * @brief 原始视频帧格式 + */ + + kOriginal = VideoPixelFormat::kVideoPixelFormatUnknown, + }; + /** + * + * @type callback + * @brief 视频帧回调 + * @param video_frame 视频帧结构类,参看 IVideoFrame{@link #IVideoFrame} + * @return 返回值暂未使用 + * @list + */ + + virtual bool onFrame(IVideoFrame* video_frame) = 0; + /** + * + * @type callback + * @brief 获取外部渲染耗时。 + * @note 获取外部渲染耗时进行上报。开发者需要自己计算平均渲染耗时。 + * @list 房间管理 + */ + + virtual int getRenderElapse() = 0; + /** + * + * @type callback + * @brief 释放渲染器。 + * @note 通知开发者渲染器即将被废弃。收到该返回通知后即可释放资源。 + * @list Room Management + */ + + virtual void release() { + } + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoSink() = default; + + /** + * + * @hidden sink id + * @brief sink id + */ + + virtual void* uniqueId() const { return (void *)this; } +}; + +/** + * + * @type keytype + * @brief 本地视频帧回调位置。 + */ + +enum LocalVideoSinkPosition { + /** + * + * @brief 采集后。 + */ + + kLocalVideoSinkPositionAfterCapture, + /** + * + * @brief (默认值)前处理后。 + */ + + kLocalVideoSinkPositionAfterPreProcess +}; + +/** + * + * @type keytype + * @brief 是否将视频帧自动转正。 + */ + +enum VideoApplyRotation { + /** + * + * @brief (默认值)不旋转。 + */ + + kVideoApplyRotationDefault = -1, + /** + * + * @brief 自动转正视频,即根据视频帧的旋转角信息将视频帧旋转到 0 度。 + */ + + kVideoApplyRotation0 = 0, +}; + +/** + * + * @type keytype + * @brief 是否将视频帧镜像。 + */ + +enum VideoSinkMirrorType { + /** + * + * @brief 开启镜像。 + */ + + kVideoSinkMirrorTypeON = 1, + /** + * + * @brief (默认值)不开启镜像。 + */ + + kVideoSinkMirrorTypeOFF = 2, +}; + +/** + * + * @type keytype + * @brief 本地视频帧回调配置。 + */ + +struct LocalVideoSinkConfig { + /** + * + * @brief 本地视频帧回调位置,参看 LocalVideoSinkPosition{@link #LocalVideoSinkPosition},默认回调前处理后的视频帧。 + */ + + LocalVideoSinkPosition position = kLocalVideoSinkPositionAfterPreProcess; + /** + * + * @brief 本地视频帧回调格式,参看 VideoPixelFormat{@link #VideoPixelFormat},默认值为 0。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调位置。 + */ + +enum RemoteVideoSinkPosition { + /** + * + * @hidden not available + * @brief 解码后。 + */ + + kRemoteVideoSinkPositionAfterDecoder, + /** + * + * @brief (默认值)后处理后。 + */ + + kRemoteVideoSinkPositionAfterPostProcess +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调配置。 + */ + +struct RemoteVideoSinkConfig { + /** + * + * @brief 远端视频帧回调位置,参看 RemoteVideoSinkPosition{@link #RemoteVideoSinkPosition},默认回调后处理后的视频帧。 + */ + + RemoteVideoSinkPosition position = kRemoteVideoSinkPositionAfterPostProcess; + /** + * + * @brief 远端视频帧回调格式,参看 VideoPixelFormat{@link #VideoPixelFormat},默认值为 0。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; + /** + * + * @brief 是否将视频帧自动转正,参看 VideoApplyRotation{@link #VideoApplyRotation},默认为不旋转。 + */ + + VideoApplyRotation apply_rotation = kVideoApplyRotationDefault; + /** + * + * @brief 是否将视频帧镜像。参看 VideoSinkMirrorType{@link #VideoSinkMirrorType},默认为不镜像。
+ * 本设置与 setRemoteVideoMirrorType{@link #IRTCEngine#setRemoteVideoMirrorType} (适用于内部渲染)相互独立。 + */ + + VideoSinkMirrorType mirror_type = kVideoSinkMirrorTypeOFF; +}; + +/** + * + * @hidden + * @type keytype + * @deprecated since 3.29 and will be deleted in 3.51, use MirrorType{@link #MirrorType} instead. + * @brief 是否开启镜像模式 + */ + +enum MirrorMode { + /** + * + * @brief 不开启 + */ + + kMirrorModeOff = 0, + /** + * + * @brief 开启 + */ + + kMirrorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 镜像类型 + */ + +enum MirrorType : int { + /** + * + * @brief 本地预览和编码传输时均无镜像效果 + */ + + kMirrorTypeNone = 0, + /** + * + * @brief 本地预览时有镜像效果,编码传输时无镜像效果 + */ + + kMirrorTypeRender = 1, + /** + * + * @brief 本地预览时无镜像效果,仅编码传输时有镜像效果 + */ + + kMirrorTypeEncoder = 2, + /** + * + * @brief 本地预览和编码传输时均有镜像效果 + */ + + kMirrorTypeRenderAndEncoder = 3, +}; + + +/** + * + * @type keytype + * @brief 远端流的镜像类型。 + */ + +enum RemoteMirrorType { + /** + * + * @brief (默认值)远端视频渲染无镜像效果。 + */ + + kRemoteMirrorTypeNone = 0, + /** + * + * @brief 远端视频渲染有镜像效果。 + */ + + kRemoteMirrorTypeRender = 1, +}; + +/** + * + * @type keytype + * @brief 弱光适应类型 + */ + +enum VideoEnhancementMode { + /** + * + * @brief 关闭弱光适应 + */ + + kVideoEnhancementModeDisabled = 0, + /** + * + * @brief 开启弱光适应 + */ + + kVideoEnhancementModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 视频输入源类型 + */ + +enum VideoSourceType { + /** + * + * @brief 自定义采集视频源 + */ + + kVideoSourceTypeExternal = 0, + /** + * + * @brief 内部采集视频源 + */ + + kVideoSourceTypeInternal = 1, + /** + * + * @brief 自定义编码视频源。
+ * 你仅需推送分辨率最大的一路编码后视频流,SDK 将自动转码生成多路小流 + */ + + kVideoSourceTypeEncodedWithAutoSimulcast = 2, + /** + * + * @brief 自定义编码视频源。
+ * SDK 不会自动生成多路流,你需要自行生成并推送多路流 + */ + + kVideoSourceTypeEncodedWithoutAutoSimulcast = 3, +}; + +/** + * + * @type keytype + * @brief Alpha 通道相对于 RGB 通道数据的排列位置。 + */ + +enum AlphaLayout { + /** + * + * @brief Alpha 数据置于 RGB 数据上方。 + */ + + kAlphaLayoutTop = 0, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据下方。 + */ + + kAlphaLayoutBottom = 1, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据左方。 + */ + + kAlphaLayoutLeft = 2, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据右方。 + */ + + kAlphaLayoutRight = 3, +}; + +/** + * + * @type keytype + * @brief 数码变焦参数类型 + */ + +enum ZoomConfigType { + /** + * + * @brief 设置缩放系数 + */ + + kZoomConfigTypeFocusOffset = 0, + /** + * + * @brief 设置移动步长 + */ + + kZoomConfigTypeMoveOffset, +}; + +/** + * + * @type keytype + * @brief 数码变焦操作类型 + */ + +enum ZoomDirectionType { + /** + * + * @brief 相机向左移动 + */ + + kZoomDirectionTypeMoveLeft = 0, + /** + * + * @brief 相机向右移动 + */ + + kZoomDirectionTypeMoveRight, + /** + * + * @brief 相机向上移动 + */ + + kZoomDirectionTypeMoveUp, + /** + * + * @brief 相机向下移动 + */ + + kZoomDirectionTypeMoveDown, + /** + * + * @brief 相机缩小焦距 + */ + + kZoomDirectionTypeZoomOut, + /** + * + * @brief 相机放大焦距 + */ + + kZoomDirectionTypeZoomIn, + /** + * + * @brief 恢复到原始画面 + */ + + kZoomDirectionTypeReset, +}; + +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +struct VideoFrameInfo { + /** + * + * @brief 宽(像素) + */ + + int width = 0; + /** + * + * @brief 高(像素) + */ + + int height = 0; + /** + * + * @brief 视频帧顺时针旋转角度。参看 VideoRotation{@link #VideoRotation}。 + */ + + VideoRotation rotation = VideoRotation::kVideoRotation0; +}; + +/** +* +* @type keytype +* @brief 自定义视频前处理(Video Processor)的作用范围,包括仅预览、仅编码和同时预览与编码。 +*/ + +enum ProcessorActionDomain { + /** + * + * @brief 处理后的视频帧同时用于本地预览和推流编码。 + */ + + kProcessorActionDomainPreviewAndEncode = 0, + /** + * + * @brief 处理后的视频帧仅用于本地预览。 + */ + + kProcessorActionDomainPreview = 1, + /** + * + * @brief 处理后的视频帧仅用于推流编码。 + */ + + kProcessorActionDomainEncode = 2 +}; +/** + * + * @type keytype + * @brief 视频前处理配置参数。 + */ + +struct VideoPreprocessorConfig { + /** + * + * @brief 视频帧像素格式,参看 VideoPixelFormat{@link #VideoPixelFormat}
+ * 当前仅支持 `kVideoPixelFormatI420` 和 `kVideoPixelFormatUnknown` 格式。 + */ + + VideoPixelFormat required_pixel_format = kVideoPixelFormatUnknown; + /** + * + * @brief 自定义视频前处理的作用范围,参看 ProcessorActionDomain{@link #ProcessorActionDomain}。 + */ + + ProcessorActionDomain action_domain = kProcessorActionDomainPreviewAndEncode; +}; + +/** + * + * @type keytype + * @brief 自定义编码流信息 + */ + +struct VideoRateInfo { + /** + * + * @brief 帧率,单位 fps + */ + + int fps = 0; + /** + * + * @brief 码率,单位 kbps + */ + + int bitrate_kbps = 0; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `min_bitrate_kbps`。
+ * 默认值为 `0`。
+ * 范围:[0, bitrate_kbps),当 `bitrate_kbps` < `min_bitrate_kbps` 时,为适配码率模式。
+ * 以下情况,设置本参数无效:
+ * - 当 `bitrate_kbps` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `bitrate_kbps` < `0` 时,适配码率模式。 + */ + + int min_bitrate_kbps = 0; +}; + +/** + * + * @type keytype + * @brief 视频解码方式 + */ + +enum VideoDecoderConfig { + /** + * + * @brief 开启 SDK 内部解码,只回调解码后的数据。回调为 onFrame{@link #IVideoSink#onFrame}。 + */ + + kVideoDecoderConfigRaw, + /** + * + * @brief 开启自定义解码,只回调解码前数据。回调为 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame}。 + */ + + kVideoDecoderConfigEncode, + /** + * + * @brief 开启 SDK 内部解码,同时回调解码前和解码后的数据。回调为 onFrame{@link #IVideoSink#onFrame} 和 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame}。 + */ + + kVideoDecoderConfigBoth, +}; + +/** + * + * @type keytype + * @brief 视频采集配置参数。 + */ + +struct VideoCaptureConfig { + /** + * + * @type keytype + * @brief 视频采集模式 + */ + + enum CapturePreference { + /** + * + * @brief (默认)自动设置采集参数。
+ * SDK 在开启采集时根据服务端下发的采集配置结合编码参数设置最佳采集参数。 + */ + + kAuto = 0, + /** + * + * @brief 手动设置采集参数,包括采集分辨率、帧率。 + */ + + kManual = 1, + /** + * + * @brief 采集参数与编码参数一致,即在 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 中设置的参数。 + */ + + kAutoPerformance = 2, + }; + /** + * + * @brief 视频采集模式,参看 CapturePreference{@link #CapturePreference}. + */ + + CapturePreference capture_preference = CapturePreference::kAuto; + + /** + * + * @brief 视频采集分辨率的宽度,单位:px。 + */ + + int width = 0; + /** + * + * @brief 视频采集分辨率的高度,单位:px。 + */ + + int height = 0; + /** + * + * @brief 视频采集帧率,单位:fps。 + */ + + int frame_rate = 0; +}; + +/** + * + * @type keytype + * @brief 本地录制的媒体类型 + */ + +enum RecordingType { + /** + * + * @brief 只录制音频 + */ + + kRecordingTypeAudioOnly = 0, + /** + * + * @brief 只录制视频 + */ + + kRecordingTypeVideoOnly = 1, + /** + * + * @brief 同时录制音频和视频 + */ + + kRecordingTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 当前视频设备类型 + */ + +enum RTCVideoDeviceType { + /** + * + * @brief 未知设备类型 + */ + + kRTCVideoDeviceTypeUnknown = -1, + /** + * + * @brief 视频渲染设备类型 + */ + + kRTCVideoDeviceTypeRenderDevice = 0, + /** + * + * @brief 视频采集设备类型 + */ + + kRTCVideoDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流视频设备 + */ + + kRTCVideoDeviceTypeScreenCaptureDevice = 2, +}; + +/** + * + * @deprecated since 3.60, see onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent}. + * @type errorcode + * @brief WTN 流状态码 + */ + +enum PublicStreamErrorCode { + /** + * + * @brief 发布或订阅成功。 + */ + + kPublicStreamErrorCodeOK = 0, + /** + * + * @brief 订阅失败,发布端未开始发布流。 + */ + + kPublicStreamErrorCodePullNoPushStream = 1300, +}; + +/** + * + * @type keytype + * @brief 视频旋转模式 + */ + +enum VideoRotationMode { + /** + * + * @brief 跟随 App 界面方向 + */ + + kVideoRotationModeFollowApp = 0, + /** + * + * @brief 跟随设备重力方向 + */ + + kVideoRotationModeFollowGSensor = 1, +}; + +/** + * + * @type keytype + * @brief 媒体流类型 + */ + +enum MediaStreamType { + /** + * + * @brief 只控制音频 + */ + + kMediaStreamTypeAudio = 1 << 0, + /** + * + * @brief 只控制视频 + */ + + kMediaStreamTypeVideo = 1 << 1, + /** + * + * @brief 同时控制音频和视频 + */ + + kMediaStreamTypeBoth = kMediaStreamTypeAudio | kMediaStreamTypeVideo +}; +/** + * + * @type keytype + * @brief 占发布端原始帧率的比例 + */ + +enum FrameRateRatio { + /** + * + * @brief 100% + */ + + kFrameRateRatioOriginal = 0, + /** + * + * @brief 50% + */ + + kFrameRateRatioHalf = 1, + /** + * + * @brief 25% + */ + + kFrameRateRatioQuarter = 2, +}; +/** + * + * @type keytype + * @brief 远端视频帧信息 + */ + +struct RemoteVideoConfig { + /** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0 即满帧订阅,设为大于 0 的值时开始生效。
+ * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
+ * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + + int framerate = 0; + /** + * + * @brief 视频宽度,单位:px + */ + + int resolution_width = 0; + /** + * + * @brief 视频高度,单位:px + */ + + int resolution_height = 0; +}; + +/** + * + * @type keytype + * @brief 游戏房间类型 + */ + +enum GameRoomType { + /** + * + * @brief 小队房间。 + */ + + kGameRoomTypeTeam = 0, + /** + * + * @brief 世界房间。 + */ + + kGameRoomTypeWorld = 1 +}; + +/** + * + * @type keytype + * @brief 游戏场景类型 + */ + +enum GameSceneType { + /** + * + * @brief 普通场景。
+ * 同一个小队房间的队友,仅支持在同一个世界房间内通话。 + */ + + kGameSceneTypeNormal = 0, + /** + * + * @brief 主题公园场景。
+ * 同一个小队房间的队友,支持跨世界房间通话。 + */ + + kGameSceneTypeThemePark = 1 +}; + +/** + * + * @type keytype + * @brief 游戏房间配置。房间是 RTC 通话的抽象概念。在同一个房间中的用户可以进行音视频通话。 + */ + +struct GameRoomConfig { + /** + * + * @type keytype + * @brief 游戏房间类型。参看 GameRoomType{@link #GameRoomType},默认为 `kGameRoomTypeTeam`(小队房间),进房后不可更改。 + */ + + GameRoomType game_room_type = GameRoomType::kGameRoomTypeTeam; + /** + * + * @type keytype + * @brief 游戏场景类型。参看 GameSceneType{@link #GameSceneType},默认为 `kGameSceneTypeNormal`(普通场景),进房后不可更改。 + */ + + GameSceneType game_scene_type = GameSceneType::kGameSceneTypeNormal; +}; + +/** + * + * @type keytype + * @brief 房间参数配置。房间是 RTC 通话的抽象概念。在同一个房间中的用户可以进行音视频通话。 + */ + +struct RTCRoomConfig { + /** + * + * @brief 房间模式,参看 RoomProfileType{@link #RoomProfileType},默认为 `kRoomProfileTypeCommunication`,进房后不可更改。 + */ + + RoomProfileType room_profile_type = kRoomProfileTypeCommunication; + /** + * + * @brief 直播模式,参看 RoomLiveMode{@link #RoomLiveMode},默认为 `kRoomLiveModeCoHost`,进房后可通过 setLiveMode{@link #IRTCRoom#setLiveMode} 设置。 + * @note 只有当`room_profile_type`为`kRoomProfileTypeLive`时,`live_mode`的值才有效。 + */ + + RoomLiveMode live_mode = kRoomLiveModeCoHost; + /** + * + * @brief 流 ID。为进房发布的流设置流 ID,可设置为空字符串。若为空,SDK 自动生成 stream_id。 + */ + + const char* stream_id = nullptr; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。 + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_audio = true; + /** + * + * @brief 是否自动发布视频流,默认为自动发布。
+ * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_video = true; + + /** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_audio = true; + /** + * + * @brief 是否自动订阅视频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_video = true; +}; + +/** + * + * @type keytype + * @brief 屏幕采集的媒体类型 + */ + +enum ScreenMediaType { + /** + * + * @brief 仅采集视频 + */ + + kScreenMediaTypeVideoOnly = 0, + /** + * + * @brief 仅采集音频 + */ + + kScreenMediaTypeAudioOnly = 1, + /** + * + * @brief 同时采集音频和视频 + */ + + kScreenMediaTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 基础美颜模式。 + */ + +enum EffectBeautyMode { + /** + * + * @brief 美白。 + */ + + kEffectBeautyModeWhite = 0, + /** + * + * @brief 磨皮。 + */ + + kEffectBeautyModeSmooth = 1, + /** + * + * @brief 锐化。 + */ + + kEffectBeautyModeSharpen = 2, + /** + * + * @valid since 3.55 + * @brief 清晰,需集成 v4.4.2+ 版本的特效 SDK。 + */ + + kEffectBeautyModeClear = 3, +}; + +/** + * + * @type keytype + * @brief 视频设备朝向类型 + */ + +enum VideoDeviceFacing { + /** + * + * @brief 前置摄像头 + */ + + kVideoDeviceFacingFront = 0, + /** + * + * @brief 后置摄像头 + */ + + kVideoDeviceFacingBack = 1, + /** + * + * @brief 未知类型 + */ + + kVideoDeviceFacingUnknown = 2, +}; + +/** + * + * @type keytype + * @brief 视频设备信息 + */ + +struct VideoDeviceInfo { + /** + * + * @brief 设备 ID + */ + + char device_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备名称 + */ + + char device_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备的厂商 ID + */ + + int64_t device_vid; + /** + * + * @brief 设备的产品编码 + */ + + int64_t device_pid; + /** + * + * @brief 设备的传输方式 + */ + + DeviceTransportType transport_type; + /** + * + * @brief 视频设备朝向类型 + */ + + VideoDeviceFacing device_facing; + /** + * + * @hidden constructor/destructor + */ + + VideoDeviceInfo() { + memset(device_id, 0, MAX_DEVICE_ID_LENGTH); + memset(device_name, 0, MAX_DEVICE_ID_LENGTH); + this->device_vid = 0; + this->device_pid = 0; + this->transport_type = DeviceTransportType::kDeviceTransportTypeUnknown; + this->device_facing = VideoDeviceFacing::kVideoDeviceFacingFront; + }; + /** + * + * @hidden constructor/destructor + */ + + VideoDeviceInfo& operator=(const VideoDeviceInfo& src) { + if (this != &src) { + strncpy(device_id, src.device_id, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_name, src.device_name, MAX_DEVICE_ID_LENGTH - 1); + device_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_vid = src.device_vid; + device_pid = src.device_pid; + transport_type = src.transport_type; + device_facing = src.device_facing; + } + + return *this; + } +}; + +/** + * + * @type keytype + * @brief 视频帧朝向 + */ + +enum VideoOrientation { + /** + * + * @brief (默认)使用相机输出的原始视频帧的角度,不对视频帧进行额外旋转。 + */ + + kVideoOrientationAdaptive = 0, + /** + * + * @brief 固定为竖屏,将相机采集到的视频帧转换为竖屏,在整个 RTC 链路中传递竖屏帧。 + */ + + kVideoOrientationPortrait = 1, + /** + * + * @brief 固定为横屏,将相机采集到的视频帧转换为横屏,在整个 RTC 链路中传递横屏帧。 + */ + + kVideoOrientationLandscape = 2 +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分状态改变原因。 + */ + +enum VideoSuperResolutionModeChangedReason { + /** + * + * @brief 调用 setRemoteVideoSuperResolution{@link #IRTCEngine#setRemoteVideoSuperResolution} 成功关闭超分。 + */ + + kVideoSuperResolutionModeChangedReasonAPIOff = 0, + /** + * + * @brief 调用 setRemoteVideoSuperResolution{@link #IRTCEngine#setRemoteVideoSuperResolution} 成功开启超分。 + */ + + kVideoSuperResolutionModeChangedReasonAPIOn = 1, + /** + * + * @brief 开启超分失败,远端视频流的原始视频分辨率超过 640 × 360 px。 + */ + + kVideoSuperResolutionModeChangedReasonResolutionExceed = 2, + /** + * + * @brief 开启超分失败,已对一路远端流开启超分。 + */ + + kVideoSuperResolutionModeChangedReasonOverUse = 3, + /** + * + * @brief 设备不支持使用超分辨率。 + */ + + kVideoSuperResolutionModeChangedReasonDeviceNotSupport = 4, + /** + * + * @brief 当前设备性能存在风险,已动态关闭超分。 + */ + + kVideoSuperResolutionModeChangedReasonDynamicClose = 5, + /** + * + * @brief 超分因其他原因关闭。 + */ + + kVideoSuperResolutionModeChangedReasonOtherSettingDisabled = 6, + /** + * + * @brief 超分因其他原因开启。 + */ + + kVideoSuperResolutionModeChangedReasonOtherSettingEnabled = 7, + /** + * + * @brief SDK 没有编译超分组件。 + */ + + kVideoSuperResolutionModeChangedReasonNoComponent = 8, + /** + * + * @brief 远端流不存在。房间 ID 或用户 ID 无效,或对方没有发布流。 + */ + + kVideoSuperResolutionModeChangedReasonStreamNotExist = 9, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式状态改变原因。 + */ + +enum VideoDenoiseModeChangedReason { + /** + * + * @brief 未知原因导致视频降噪状态改变。 + */ + + kVideoDenoiseModeChangedReasonNull = -1, + /** + * + * @brief 通过调用 setVideoDenoiser{@link #IRTCEngine#setVideoDenoiser} 成功关闭视频降噪。 + */ + + kVideoDenoiseModeChangedReasonApiOff = 0, + /** + * + * @brief 通过调用 setVideoDenoiser{@link #IRTCEngine#setVideoDenoiser} 成功开启视频降噪。 + */ + + kVideoDenoiseModeChangedReasonApiOn = 1, + /** + * + * @brief 后台未配置视频降噪,视频降噪开启失败,请联系技术人员解决。 + */ + + kVideoDenoiseModeChangedReasonConfigDisabled = 2, + /** + * + * @brief 后台配置开启了视频降噪。 + */ + + kVideoDenoiseModeChangedReasonConfigEnabled = 3, + /** + * + * @brief 由于内部发生了异常,视频降噪关闭。 + */ + + kVideoDenoiseModeChangedReasonInternalException = 4, + /** + * + * @brief 当前设备性能过载,已动态关闭视频降噪。 + */ + + kVideoDenoiseModeChangedReasonDynamicClose = 5, + /** + * + * @brief 当前设备性能裕量充足,已动态开启视频降噪。 + */ + + kVideoDenoiseModeChangedReasonDynamicOpen = 6, + /** + * + * @brief + * 分辨率导致视频降噪状态发生改变。分辨率过高会导致性能消耗过大,从而导致视频降噪关闭。若希望继续使用视频降噪,可选择降低分辨率。 + */ + + kVideoDenoiseModeChangedReasonResolution = 7, +}; + +/** + * + * @type keytype + * @brief 屏幕采集对象的类型 + */ + +enum ScreenCaptureSourceType { + /** + * + * @brief 类型未知 + */ + + kScreenCaptureSourceTypeUnknown, + + /** + * + * @brief 应用程序的窗口 + */ + + kScreenCaptureSourceTypeWindow, + + /** + * + * @brief 桌面 + */ + + kScreenCaptureSourceTypeScreen +}; + +/** + * + * @type keytype + * @brief 屏幕共享对象的详细信息 + */ + +struct ScreenCaptureSourceInfo { + /** + * + * @brief 屏幕共享对象的类型,参看 ScreenCaptureSourceType{@link #ScreenCaptureSourceType} + */ + + ScreenCaptureSourceType type = kScreenCaptureSourceTypeUnknown; + + /** + * + * @brief 屏幕共享对象的 ID + */ + + view_t source_id = nullptr; + /** + * + * @brief 屏幕共享对象的名称
+ * 调用 release{@link #IScreenCaptureSourceList#release} 时将被释放,请及时转为 string 对象保存 + */ + + const char* source_name = nullptr; + /** + * + * @brief 共享的应用窗体所属应用的名称
+ * 当共享对象为应用窗体时有效
+ * 调用 release{@link #IScreenCaptureSourceList#release} 时将被释放,请及时转为 string 对象保存 + */ + + const char* application = nullptr; + /** + * + * @brief 共享的应用窗体所属应用进程的 pid
+ * 当共享对象为应用窗体时有效 + */ + + int pid = 0; + /** + * + * @brief 共享的屏幕是否为主屏。
+ * 当共享对象为屏幕时有效 + */ + + bool primary_monitor = false; + /** + * + * @brief 屏幕共享对象的坐标。详见 Rectangle{@link #Rectangle}。
+ * 仅在采集源为显示器屏幕时有效。
+ * - 对于多屏幕的场景,不同平台的坐标系原点不同: + * - 对于 Windows 平台,屏幕坐标以主屏左上角为原点 (0, 0),向右向下扩展。 + * — 对于 Linux 平台,屏幕坐标以 **恰好包住所有显示器的矩形区域的左上角** 为原点 (0, 0),向右向下扩展。
+ * - 对于不同平台,窗口区域不同: + * - 对于 Windows 和 macOS 平台,窗口区域包含系统标题栏。 + * - 对于 Linux 平台,窗口区域不包含系统标题栏。 + */ + + Rectangle region_rect; +}; +/** + * + * @type api + * @brief 屏幕共享对象信息列表
+ * 共享对象相关数据将在调用 release{@link #IScreenCaptureSourceList#release} 后被释放。 + * @list 屏幕共享 + */ + +class IScreenCaptureSourceList { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IScreenCaptureSourceList() { + } + /** + * + * @type api + * @brief 获取列表长度 + * @return 可共享对象数量 + * @list 屏幕共享 + */ + + virtual int32_t getCount() = 0; + /** + * + * @type api + * @brief 根据索引号,获取屏幕共享列表中的元素 + * @param index 列表索引号 + * @return 屏幕源类型信息,详见 ScreenCaptureSourceInfo{@link #ScreenCaptureSourceInfo}。 + * @list 屏幕共享 + */ + + virtual ScreenCaptureSourceInfo getSourceInfo(int32_t index) = 0; + /** + * + * @type api + * @brief IScreenCaptureSourceList{@link #IScreenCaptureSourceList} 使用结束后,调用本接口删除对象,清空和释放内存。 + * @list 屏幕共享 + */ + + virtual void release() = 0; +}; +/** + * + * @type callback + * @brief 自定义编码帧回调类
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Screen Sharing + */ + +class IExternalVideoEncoderEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IExternalVideoEncoderEventHandler(){} + /** + * + * @type callback + * @brief 提示自定义编码帧可以开始推送的回调。
+ * 收到该回调后,你即可调用 pushExternalEncodedVideoFrame{@link #IRTCEngine#pushExternalEncodedVideoFrame} 向 SDK 推送自定义编码视频帧 + * @param stream_id 编码流 ID + * @param stream_info 编码流信息,参看 StreamInfo{@link #StreamInfo} + * @list 自定义流处理 + */ + + virtual void onStart(const char* stream_id, const StreamInfo& stream_info) = 0; + /** + * + * @type callback + * @brief 当收到该回调时,你需停止向 SDK 推送自定义编码视频帧 + * @param stream_id 编码流 ID + * @param stream_info 编码流信息,参看 StreamInfo{@link #StreamInfo} + * @list 自定义流处理 + */ + + virtual void onStop(const char* stream_id, const StreamInfo& stream_info) = 0; + /** + * + * @type callback + * @brief 当自定义编码流的帧率或码率发生变化时,触发该回调 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @param info 变化后的编码流信息,参看 VideoRateInfo{@link #VideoRateInfo} + * @list 自定义流处理 + */ + + virtual void onRateUpdate(const char* stream_id, const StreamInfo& stream_info, int32_t video_index, VideoRateInfo info) = 0; + /** + * + * @type callback + * @brief 提示流发布端需重新生成关键帧的回调 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @list 自定义流处理 + */ + + virtual void onRequestKeyFrame(const char* stream_id, const StreamInfo& stream_info, int32_t video_index) = 0; + /** + * + * @valid since 3.56 + * @type callback + * @brief 作为自定义编码视频流的发送端,你会在视频流可发送状态发生变化时,收到此回调。
+ * 你可以根据此回调的提示,仅对可发送的视频流进行编码,以降低本端视频编码性能消耗。此回调会根据多个因素综合判断触发,包括:本端设备性能和本端网络性能,以及按需订阅场景下,远端用户是否订阅。 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @param active 该路流可发送状态 + * @note 要收到此回调,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 设置视频源是自定义编码,且通过 setExternalVideoEncoderEventHandler{@link #IRTCEngine#setExternalVideoEncoderEventHandler} 设置了回调句柄。 + * @list 自定义流处理 + */ + + virtual void onActiveVideoLayer(const char* stream_id, const StreamInfo& stream_info, int32_t video_index, bool active) = 0; +}; +/** + * + * @type callback + * @brief 本地视频帧监测器
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +class ILocalEncodedVideoFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ILocalEncodedVideoFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 registerLocalEncodedVideoFrameObserver{@link #IRTCEngine#registerLocalEncodedVideoFrameObserver} 后,SDK 每次使用内部采集,采集到一帧视频帧,或收到一帧外部视频帧时,都会回调该事件。 + * @param video_source 预留参数。 + * @param video_stream 本地视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame} + * @list 自定义流处理 + */ + + virtual void onLocalEncodedVideoFrame(IVideoSource *video_source, const IEncodedVideoFrame& video_stream) = 0; +}; +/** + * + * @type callback + * @brief 远端编码后视频数据监测器
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频管理 + */ + +class IRemoteEncodedVideoFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRemoteEncodedVideoFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 registerRemoteEncodedVideoFrameObserver{@link #IRTCEngine#registerRemoteEncodedVideoFrameObserver} 后,SDK 监测到远端编码后视频数据时,触发该回调 + * @param stream_id 收到的远端流 ID + * @param stream_info 收到的远端流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_stream 收到的远端视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame} + * @list 自定义流处理 + */ + + virtual void onRemoteEncodedVideoFrame(const char* stream_id, const StreamInfo& stream_info, const IEncodedVideoFrame& video_stream) = 0; +}; + +/** + * + * @type keytype + * @brief 视频帧中包含的 metadata 信息 + */ + +struct VideoMetadataBuffer { + /** + * + * @brief 接收或者发送的 metadata + */ + + char* data; + /** + * + * @brief 接收或者发送的 metadata 数据大小,不能超过 1024 + */ + + int size; + /** + * + * @brief 包含 metadata 视频帧的时间戳,单位微秒 + */ + + int64_t timestamp_us; +}; + +/** + * + * @hidden(Linux) + * @type callback + * @brief 截图的回调。
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Video Management + */ + +class ISnapshotResultCallback { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~ISnapshotResultCallback() = default; + /** + * + * @type callback + * @brief 调用 takeLocalSnapshot{@link #IRTCEngine#takeLocalSnapshot} 截取视频画面时,收到此回调。 + * @param task_id 本地截图任务的编号。和 takeLocalSnapshot{@link #IRTCEngine#takeLocalSnapshot} 的返回值一致。 + * @param video_source 截图的视频源,参看IVideoSource{@link #IVideoSource}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param error_code 截图错误码:
+ * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + + virtual void onTakeLocalSnapshotResult(long task_id, IVideoSource* video_source, IVideoFrame* image, int error_code) = 0; + /** + * + * @type callback + * @brief 调用 takeRemoteSnapshot{@link #IRTCEngine#takeRemoteSnapshot} 截取视频画面时,收到此回调。 + * @param task_id 远端截图任务的编号。和 takeRemoteSnapshot{@link #IRTCEngine#takeRemoteSnapshot} 的返回值一致。 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param error_code 截图错误码:
+ * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + + virtual void onTakeRemoteSnapshotResult(long task_id, const char* stream_id, const StreamInfo& stream_info, IVideoFrame* image, int error_code) = 0; +}; +/** + * + * @hidden(macOS, Windows, Linux) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +struct MediaTypeEnhancementConfig { + /** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_signaling = false; + /** + * + * @brief 对屏幕共享以外的其他音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_audio = false; + /** + * + * @brief 对屏幕共享音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_screen_audio = false; + /** + * + * @brief 对屏幕共享视频以外的其他视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_video = false; + /** + * + * @brief 对屏幕共享视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_screen_video = false; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h new file mode 100644 index 0000000..3d7e0b0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h @@ -0,0 +1,183 @@ + + + +#pragma once +namespace bytertc { +/** + * + * @type keytype + * @brief 视频内容类型 + */ + +enum VideoContentCategory { + /** + * + * @brief 相机采集的内容 + */ + + kVideoContentCategoryCamera = 0, + /** + * + * @brief 屏幕共享的内容 + */ + + kVideoContentCategoryScreen = 1, +}; +/** + * + * @type keytype + * @brief 视频源设置 + */ + +struct VideoSourceConfig { + /** + * + * @brief 视频源类型。参看 VideoSourceType{@link #VideoSourceType}。默认是 `kVideoSourceTypeExternal`。 + */ + + VideoSourceType source_type = kVideoSourceTypeExternal; + /** + * + * @brief 参看 VideoContentCategory{@link #VideoContentCategory}。默认是 `kVideoContentCategoryCamera`。 + */ + /** + * + * @brief Refer to VideoContentCategory{@link #VideoContentCategory}. It defaults to `kVideoContentCategoryCamera`. + */ + VideoContentCategory content_category = kVideoContentCategoryCamera; +}; +/** + * + * @type keytype + * @brief 音频源包含的内容 + */ + +struct AudioContentTypeConfig { + /** + * + * @brief 包含麦克风采集的音频 + */ + + bool has_mic = true; + /** + * + * @brief 包含屏幕音频 + */ + + bool has_screen_audio = false; + /** + * + * @brief 包含媒体播放器的音频 + */ + + bool has_media_player = false; +}; +/** + * + * @type keytype + * @brief 音频编码设置。 + */ + +struct AudioEncodeConfig { + /** + * + * @brief 编码器类型。
+ * + 0:OPUS
+ * + 1:NICO
+ * + -1:配置下发的配置 + */ + + int codec_type = -1; + /** + * + * @brief 编码模式
+ * + 0:语音
+ * + 1:音乐
+ * + -1:根据 `channel_num` 不同,使用对应的编码模式。声道数为 `1` 时,编码模式是语音;声道数为 `2` 时,编码模式是音乐。 + */ + int enc_mode = -1; + /** + * + * @brief 声道数。取值范围是:`{1, 2}`。默认值是 `-1`,配置下发的配置。 + */ + int channel_num = -1; + /** + * + * @brief 码率。取值范围:`[6K, 510K]`。 + */ + int enc_bitrate = -1; + /** + * + * @brief 是否启用非连续传输功能(DTX)。非连续传输功能能够在安静的场景下降低码率。
+ * + 0:关闭
+ * + 1:打开
+ * + -1:配置下发的配置 + */ + int use_dtx = -1; + /** + * + * @brief 带内前向纠错功能。能够提供一定的抗丢包能力。
+ * + 0:关闭
+ * + 1:打开
+ * + -1:配置下发的配置 + */ + int use_inbandfec = -1; + /** + * + * @brief 采样率。取值范围是 `[16K, 48K]`。
+ * 修改此参数会触发编码器重启。 + */ + int sample_rate = -1; + /** + * + * @brief 编码帧长。取值范围:`{10, 20, 40, 60, 120}`。 + */ + int packet_size = -1; +}; +/** + * + * @type keytype + * @brief 媒体流的优先级 + */ +enum StreamPriority { + /** + * + * @brief 低优先级 + */ + kStreamPriorityLow = 0, + /** + * + * @brief 中优先级 + */ + kStreamPriorityNormal = 1, + /** + * + * @brief 高优先级 + */ + kStreamPriorityHigh = 2, +}; + +/** + * + * @type keytype + * @brief + */ +struct StreamKey { + /** + * + * @brief 房间 ID + */ + const char* room_id; + /** + * + * @brief 用户 ID + */ + const char* user_id; + /** + * + * @brief 流索引。参看 StreamIndex{@link #StreamIndex}。 + */ + StreamIndex stream_index; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h new file mode 100644 index 0000000..08cae2a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Device Manager +*/ + +#pragma once + +#include "bytertc_audio_device_manager.h" +#include "bytertc_video_defines.h" + +namespace bytertc { +/** + * + * @type api + * @brief 视频设备相关的信息 + * @list 引擎管理 + */ + +class IVideoDeviceCollection : public IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IVideoDeviceCollection() {}; + /** + * + * @type api + * @brief 获取当前系统内视频设备数量 + * @return 视频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() override {return 0;}; + /** + * + * @type api + * @brief 获取视频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IVideoDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) override {return 0;}; + /** + * + * @type api + * @brief 释放当前 IVideoDeviceCollection{@link #IVideoDeviceCollection} 对象占用的资源。 + * @note 不需要返回视频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release()override {}; + /** + * + * @type api + * @brief 获取视频设备信息,可根据索引号、设备信息(ID、设备的产品编码等)。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IVideoDeviceCollection#getCount} 返回值。 + * @param video_device_info 设备信息 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, VideoDeviceInfo* video_device_info) = 0; +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoDeviceCollection() {}; +}; +/** + * + * @type api + * @brief 主要用于枚举、设置视频采集设备 + * @list 视频管理 + */ + +class IVideoDeviceManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IVideoDeviceManager() { + } + /** + * + * @type api + * @brief 获取当前系统内视频采集设备列表。 + * @return 包含系统中所有视频采集设备的列表,参看 IVideoDeviceCollection{@link #IVideoDeviceCollection}。
+ * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 视频管理 + */ + + virtual IVideoDeviceCollection* enumerateVideoCaptureDevices() = 0; + /** + * + * @type api + * @brief 设置当前视频采集设备 + * @param device_id 视频设备 ID,可以通过 enumerateVideoCaptureDevices{@link #IVideoDeviceManager#enumerateVideoCaptureDevices} 获取 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + + virtual int setVideoCaptureDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 获取当前 SDK 正在使用的视频采集设备信息 + * @param device_id 视频设备 ID。此参数同时是入参和出参。 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + + virtual int getVideoCaptureDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoDeviceManager() { + } +}; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h new file mode 100644 index 0000000..06ec3b1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h @@ -0,0 +1,655 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Effect Interface +*/ + +#pragma once + +#include +#include "bytertc_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 虚拟背景类型。 + */ + +enum VirtualBackgroundSourceType { + /** + * + * @brief 使用纯色背景替换视频原有背景。 + */ + + kVirtualBackgroundSourceTypeColor = 0, + /** + * + * @brief 使用自定义图片替换视频原有背景。 + */ + + kVirtualBackgroundSourceTypeImage = 1, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测参数 + */ + +struct VideoEffectExpressionDetectConfig { + /** + * + * @brief 是否开启年龄检测。 + */ + + bool detect_age = false; + /** + * + * @brief 是否开启性别检测。 + */ + + bool detect_gender = false; + /** + * + * @brief 是否开启表情检测。 + */ + + bool detect_emotion = false; + /** + * + * @brief 是否开启吸引力检测。 + */ + + bool detect_attractiveness = false; + /** + * + * @brief 是否开启开心程度检测。 + */ + + bool detect_happiness = false; +}; + +/** + * + * @type keytype + * @brief 虚拟背景对象。 + */ + +struct VirtualBackgroundSource { + /** + * + * @brief 虚拟背景类型,详见 VirtualBackgroundSourceType{@link #VirtualBackgroundSourceType} 。 + */ + + VirtualBackgroundSourceType source_type = kVirtualBackgroundSourceTypeColor; + /** + * + * @brief 纯色背景使用的颜色。
+ * 格式为 0xAARRGGBB 。 + */ + + uint32_t source_color = 0xFFFFFFFF; + /** + * + * @brief 自定义背景图片的绝对路径。
+ * - 支持的格式为 jpg、jpeg、png。 + * - 图片分辨率超过 1080P 时,图片会被等比缩放至和视频一致。 + * - 图片和视频宽高比一致时,图片会被直接缩放至和视频一致。 + * - 图片和视频长宽比不一致时,为保证图片内容不变形,图片按短边缩放至与视频帧一致,使图片填满视频帧,对多出的高或宽进行剪裁。 + * - 自定义图片带有局部透明效果时,透明部分由黑色代替。 + */ + + const char* source_path = nullptr; +}; +/** + * + * @type keytype + * @brief 人脸检测结果 + */ + +struct FaceDetectResult { + /** + * + * @brief 人脸信息存储上限,最多可存储 10 个人脸信息 + */ + + static const int max_face_num = 10; + /** + * + * @brief 人脸检测结果
+ * - 0:检测成功 + * - !0:检测失败。详见[错误码](https: + */ + + int detect_result = 0; + /** + * + * @brief 检测到的人脸的数量 + */ + + int face_count = 0; + /** + * + * @brief 识别到人脸的矩形框。数组的长度和检测到的人脸数量一致。参看 Rectangle{@link #Rectangle}。 + */ + + Rectangle rect[max_face_num]; + /** + * + * @brief 原始图片宽度(px) + */ + + int image_width = 0; + /** + * + * @brief 原始图片高度(px) + */ + + int image_height = 0; + /** + * + * @brief 进行人脸识别的视频帧的时间戳。 + */ + + int64_t frame_timestamp_us = 0; +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测信息 + */ + +struct ExpressionDetectInfo { + /** + * + * @brief 预测年龄,取值范围 (0, 100)。 + */ + + float age = 0; + /** + * + * @brief 预测为男性的概率,取值范围 (0.0, 1.0)。 + */ + + float boy_prob = 0; + /** + * + * @brief 预测的吸引力分数,取值范围 (0, 100)。 + */ + + float attractive = 0; + /** + * + * @brief 预测的微笑程度,取值范围 (0, 100)。 + */ + + float happy_score = 0; + /** + * + * @brief 预测的伤心程度,取值范围 (0, 100)。 + */ + + float sad_score = 0; + /** + * + * @brief 预测的生气程度,取值范围 (0, 100)。 + */ + + float angry_score = 0; + /** + * + * @brief 预测的吃惊程度,取值范围 (0, 100)。 + */ + + float surprise_score = 0; + /** + * + * @brief 预测的情绪激动程度,取值范围 (0, 100)。 + */ + + float arousal = 0; + /** + * + * @brief 预测的情绪正负程度,取值范围 (-100, 100)。 + */ + + float valence = 0; +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测结果 + */ + +struct ExpressionDetectResult { + /** + * + * @brief 人脸信息存储上限,最多可存储 10 个人脸信息 + */ + + static const int max_face_num = 10; + /** + * + * @brief 特征识别结果
+ * - 0:识别成功 + * - !0:识别失败 + */ + + int detect_result = 0; + /** + * + * @brief 识别到的人脸数量。 + */ + + int face_count = 0; + /** + * + * @brief 特征识别信息。数组的长度和检测到的人脸数量一致。参看 ExpressionDetectInfo{@link #ExpressionDetectInfo}。 + */ + + ExpressionDetectInfo detect_info[max_face_num]; +}; +/** + * + * @type callback + * @brief 人脸检测结果回调观察者
+ * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +class IFaceDetectionObserver { +public: + /** + * + * @type callback + * @brief 特效 SDK 进行人脸检测结果的回调。
+ * 调用 enableFaceDetection{@link #IVideoEffect#enableFaceDetection} 注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并使用 RTC SDK 中包含的特效 SDK 进行视频特效处理时,你会收到此回调。 + * @param result 人脸检测结果, 参看 FaceDetectResult{@link #FaceDetectResult}。 + * @list 视频管理 + */ + + virtual void onFaceDetectResult(const FaceDetectResult& result) = 0; + /** + * + * @hidden for internal use only + * @type callback + * @brief 特效 SDK 进行人像属性检测结果的回调。
+ * 调用 registerFaceDetectionObserver注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并调用 setVideoEffectExpressionDetect{@link #IVideoEffect#setVideoEffectExpressionDetect} 开启人像属性检测后,你会收到此回调。 + * @param result 人像属性检测结果, 参看 ExpressionDetectResult{@link #ExpressionDetectResult}。 + * @list 视频处理 + */ + + virtual void onExpressionDetectResult(const ExpressionDetectResult& result) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IFaceDetectionObserver() { + } +}; +/** + * + * @type api + * @brief 高级视频特效,参看[集成指南](https: + * @list 视频处理 + */ + +class IVideoEffect { +public: + virtual ~IVideoEffect() = default; + /** + * + * @type api + * @brief 检查视频特效证书,设置算法模型路径,并初始化特效模块。 + * @param license_file_path 证书文件的绝对路径,用于鉴权。 + * @param algo_model_dir 算法模型绝对路径,即存放特效 SDK 所有算法模型的目录。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 鉴权时,会检查 CV 服务端时间和本地设备的时间差异。你必须保证本地系统时间和实际时间一致。 + * @list 视频处理 + */ + + virtual int initCVResource(const char* license_file_path, const char* algo_model_dir) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效算法模型地址,并初始化特效模块。 + * @param finder ResourceFinder 地址 + * @param deleter ResourceDeleter 地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + + virtual int setAlgoModelResourceFinder(uintptr_t finder, uintptr_t deleter) = 0; + /** + * + * @hidden(iOS, Android) + * @type api + * @brief 从特效 SDK 获取授权消息,用于获取在线许可证。 + * @param ppmsg 授权消息字符串地址 + * @param len 授权消息字符串的长度 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 使用视频特效的功能前,你必须获取特效 SDK 的在线许可证。 + * - 通过此接口获取授权消息后,你必须参考 [在线授权说明](https: + * - 获取授权消息后,调用 freeAuthMessage{@link #IVideoEffect#freeAuthMessage} 释放内存。 + * @list 视频处理 + */ + + virtual int getAuthMessage(char ** ppmsg, int * len) = 0; + /** + * + * @hidden(iOS,Android) + * @type api + * @brief 使用完授权消息字符串后,释放内存。 + * @param pmsg getAuthMessage 返回的授权消息字符串。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int freeAuthMessage(char * pmsg) = 0; + + /** + * + * @hidden for internal use only + * @region 视频处理 + * @brief 返回视频特效句柄。私有接口 + */ + + virtual void* getEffectHandle() = 0; + /** + * + * @type api + * @brief 开启高级美颜、滤镜等视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource{@link #IVideoEffect#initCVResource} 进行初始化。 + * - 调用该方法后,特效不直接生效,你还需调用 setEffectNodes{@link #IVideoEffect#setEffectNodes} 设置视频特效素材包或调用 setColorFilter{@link #IVideoEffect#setColorFilter} 设置滤镜。 + * - 调用 disableVideoEffect{@link #IVideoEffect#disableVideoEffect} 关闭视频特效。 + * @list 视频处理 + */ + + virtual int enableVideoEffect() = 0; + /** + * + * @type api + * @brief 关闭视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect} 开启视频特效。 + * @list 视频处理 + */ + + virtual int disableVideoEffect() = 0; + /** + * + * @type api + * @brief 设置视频特效素材包。 + * @param effect_node_paths 特效素材包绝对路径数组。
+ * 要取消当前视频特效,将此参数设置为 null。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int setEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 叠加视频特效素材包。 + * @param effect_node_paths 特效素材包绝对路径数组。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 该接口会在 setEffectNodes{@link #IVideoEffect#setEffectNodes} 设置的特效基础上叠加特效。 + * @list Video Processing + */ + + virtual int appendEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 移除指定的视频特效资源。 + * @param effect_node_paths 特效素材包绝对路径数组。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 移除 setEffectNodes{@link #IVideoEffect#SetEffectNodes} 或 appendEffectNodes{@link #IVideoEffect#appendEffectNodes} 设置的视频特效资源。 + * @list Video Processing + */ + + virtual int removeEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @type api + * @brief 设置特效强度。 + * @param effect_node_path 特效素材包绝对路径,参考[素材包结构说明](https: + * @param node_key 需要设置的素材 key 名称,参考[素材 key 对应说明](https: + * @param node_value 特效强度值,取值范围 [0,1],超出范围时设置无效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int updateEffectNode(const char* effect_node_path, const char* node_key, float node_value) = 0; + /** + * + * @type api + * @brief 设置颜色滤镜。 + * @param res_path 滤镜资源包绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 setColorFilterIntensity{@link #IVideoEffect#setColorFilterIntensity} 设置已启用颜色滤镜的强度。设置强度为 0 时即关闭颜色滤镜。 + * @list 视频处理 + */ + + virtual int setColorFilter(const char* res_path) = 0; + /** + * + * @type api + * @brief 设置已启用颜色滤镜的强度。 + * @param intensity 滤镜强度。取值范围 [0,1],超出范围时设置无效。
+ * 当设置滤镜强度为 0 时即关闭颜色滤镜。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int setColorFilterIntensity(float intensity) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 私有接口,设置视频特效素材包。 + * @param sticker_path 特效素材包绝对路径。
+ * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list Video Processing + */ + + virtual int applyStickerEffect(const char* sticker_path) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置 Effect SDK 特效素材包。 + * @param effect_path 特效素材包绝对路径。传入空字符串或 null 时清空当前特效。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。 + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int setEffect(const char* effect_path) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 重置当前贴纸特效。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。 + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int resetSticker() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 将摄像头采集画面中的人像背景替换为指定图片或纯色背景。 + * @param background_sticker_path 背景贴纸特效素材绝对路径。 + * @param source 背景贴纸对象,参看 VirtualBackgroundSource{@link #VirtualBackgroundSource}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource{@link #IVideoEffect#initCVResource} 进行初始化。 + * - 调用 disableVirtualBackground{@link #IVideoEffect#disableVirtualBackground} 关闭虚拟背景。 + * @list 视频处理 + */ + + virtual int enableVirtualBackground(const char* background_sticker_path, const VirtualBackgroundSource& source) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 关闭虚拟背景。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVirtualBackground{@link #IVideoEffect#enableVirtualBackground} 开启虚拟背景后,可以调用此接口关闭虚拟背景。 + * @list 视频处理 + */ + + virtual int disableVirtualBackground() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 开启人像属性检测。 + * @param expression_detection_config 人像属性检测参数,参看 VideoEffectExpressionDetectConfig{@link #VideoEffectExpressionDetectConfig}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + + virtual int setVideoEffectExpressionDetect(const VideoEffectExpressionDetectConfig& expression_detection_config) = 0; + /** + * + * @type api + * @brief 开启人脸识别功能,并设置人脸检测结果回调观察者。
+ * 回调此观察者后,你会周期性收到 onFaceDetectResult{@link #IFaceDetectionObserver#onFaceDetectResult} 回调。 + * @param observer 人脸检测结果回调观察者,参看 IFaceDetectionObserver{@link #IFaceDetectionObserver}。 + * @param interval_ms 两次回调之间的最小时间间隔,必须大于 0,单位为毫秒。实际收到回调的时间间隔大于 interval_ms,小于 interval_ms+视频采集帧间隔。 + * @param face_model_path 人脸检测算法模型文件路径,一般为 ttfacemodel 文件夹中 tt_face_vXXX.model 文件的绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - -1004: 初始化中,初始化完成后启动此功能。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int enableFaceDetection(IFaceDetectionObserver* observer, unsigned int interval_ms, const char* face_model_path) = 0; + /** + * + * @type api + * @brief 关闭人脸识别功能。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int disableFaceDetection() = 0; + +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h new file mode 100644 index 0000000..5eee164 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h @@ -0,0 +1,1372 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Frame + */ + +#pragma once + +#include +#include +#include +#include +#include "bytertc_media_defines.h" +#ifdef BYTERTC_ANDROID +#include +#endif + +namespace bytertc { + +/** + * + * @type keytype + * @brief 编码帧类型 + */ + +enum VideoPictureType { + /** + * + * @brief 未知类型 + */ + + kVideoPictureTypeUnknown = 0, + /** + * + * @brief I 帧,关键帧,编解码不需要参考其他视频帧 + */ + + kVideoPictureTypeI, + /** + * + * @brief P 帧,向前参考帧,编解码需要参考前一帧视频帧 + */ + + kVideoPictureTypeP, + /** + * + * @brief B 帧,前后参考帧,编解码需要参考前后两帧视频帧 + */ + + kVideoPictureTypeB +}; + +/** + * + * @type keytype + * @brief 视频帧旋转信息 + */ + +enum VideoRotation { + /** + * + * @brief 不旋转 + */ + + kVideoRotation0 = 0, + /** + * + * @brief 顺时针旋转 90 度 + */ + + kVideoRotation90 = 90, + /** + * + * @brief 顺时针旋转 180 度 + */ + + kVideoRotation180 = 180, + /** + * + * @brief 顺时针旋转 270 度 + */ + + kVideoRotation270 = 270 +}; + +/** + * + * @type keytype + * @brief 视频帧缩放模式,默认值为 FitWithCropping。 + */ + +enum VideoStreamScaleMode { + /** + * + * @brief 自动模式 + */ + + kVideoStreamScaleModeAuto = 0, + /** + * + * @brief 对视频帧进行缩放,直至充满和视窗分辨率一致为止。这一过程不保证等比缩放。 + */ + + kVideoStreamScaleModeStretch = 1, + /** + * + * @brief 视窗填满优先。
+ * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
+ * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + kVideoStreamScaleModeFitWithCropping = 2, + /** + * + * @brief 视频帧内容全部显示优先。
+ * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
+ * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + */ + + kVideoStreamScaleModeFitWithFilling = 3, +}; + + +/** + * + * @type keytype + * @brief 视频编码模式 + */ + +enum VideoCodecMode { + /** + * + * @brief 自动选择 + */ + + kVideoCodecModeAuto = 0, + /** + * + * @brief 硬编码 + */ + + kVideoCodecModeHardware, + /** + * + * @brief 软编码 + */ + + kVideoCodecModeSoftware, +}; + +/** + * + * @type keytype + * @brief 编码策略偏好。 + */ + +enum VideoEncodePreference { + /** + * + * @brief 无偏好。不降低帧率和分辨率。 + */ + + kVideoEncodePreferenceDisabled = 0, + /** + * + * @brief 优先保障帧率。适用于动态画面。 + */ + + kVideoEncodePreferenceFramerate, + /** + * + * @brief 清晰模式,优先保障分辨率。适用于静态画面。 + */ + + kVideoEncodePreferenceQuality, + /** + * + * @brief 平衡帧率与分辨率。 + * 对于屏幕流来说是开启自动模式智能模式,将根据屏幕内容智能决策选择流畅模式或清晰模式。 + */ + + kVideoEncodePreferenceAuto, +}; + + +/** + * + * @type keytype + * @brief 摄像头。 + */ + +enum CameraID { + /** + * + * @brief 移动端前置摄像头,PC 端内置摄像头 + */ + + kCameraIDFront = 0, + /** + * + * @brief 移动端后置摄像头,PC 端无定义 + */ + + kCameraIDBack = 1, + /** + * + * @hidden currently not available + * @brief 外接摄像头 + */ + + kCameraIDExternal = 2, + /** + * + * @brief 无效值 + */ + + kCameraIDInvalid = 3 +}; + + +#define SEND_KBPS_AUTO_CALCULATE -1 +#define SEND_KBPS_DISABLE_VIDEO_SEND 0 + +/** + * + * @deprecated since 3.36 along with setVideoEncoderConfig(StreamIndex index, const VideoSolution* solutions, int solution_num) = 0; + * @type keytype + * @brief 视频流参数 + */ + +struct VideoSolution { + /** + * + * @brief 视频宽度,单位:像素 + */ + + int width; + /** + * + * @brief 视频高度,单位:像素 + */ + + int height; + /** + * + * @brief 视频帧率 + */ + + int fps; + /** + * + * @brief 最大发送编码码率(kbps),建议使用默认的自动码率。
  • -1: 自动码率
  • 0: 不开启上限
  • >0: 填写预估码率
  • + */ + + int max_send_kbps = SEND_KBPS_AUTO_CALCULATE; + int min_send_kbps = 0; + /** + * + * @brief 视频编码质量策略,参看 VideoEncodePreference{@link #VideoEncodePreference} + */ + + VideoEncodePreference encode_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; +}; + +/** + * + * @hidden for internal use only on Windows and Android + * @type keytype + * @brief 视野范围(Fov)内的视频帧信息
    + * Tile 是 全景视频的基本单位。
    + * 视野范围内的视频又分为高清视野和低清背景,均包含了多个 Tile。
    + * 视频帧信息为发送端使用 `setVideoEncoderConfig(const VideoEncoderConfig& encoderConfig, const char* parameters)` 接口进行设置。 + */ + +struct FovVideoTileInfo { + /** + * + * @brief 高清视野宽度 + */ + + uint32_t hd_width = 0; + /** + * + * @brief 高清视野高度 + */ + + uint32_t hd_height = 0; + /** + * + * @brief 低清背景宽度 + */ + + uint32_t ld_width = 0; + /** + * + * @brief 低清背景高度 + */ + + uint32_t ld_height = 0; + /** + * + * @brief Tile 宽度 + */ + + uint32_t tile_width = 0; + /** + * + * @brief Tile 高度 + */ + + uint32_t tile_height = 0; + /** + * + * @brief 高清视野中的 Tile 行数 + */ + + uint32_t hd_row = 0; + /** + * + * @brief 高清视野中的 Tile 列数 + */ + + uint32_t hd_column = 0; + /** + * + * @brief 低清背景中的 Tile 行数 + */ + + uint32_t ld_row = 0; + /** + * + * @brief 低清背景中的 Tile 列数 + */ + + uint32_t ld_column = 0; + /** + * + * @brief 视野范围中的 Tile 行数 + */ + + uint32_t dest_row = 0; + /** + * + * @brief 视野范围中的 Tile 列数 + */ + + uint32_t dest_column = 0; + /** + * + * @brief Tile 位置映射表 + */ + + uint8_t* tile_map = nullptr; + /** + * + * @brief Tile 数量 + */ + + uint32_t tile_size = 0; +}; +/** + * + * @hidden constructor/destructor + * @valid since 3.60. + * @param width 视频宽度 + * @param height 视频高度 + * @type keytype + * @brief 视频像素 + */ + +struct VideoDimensions { + int width; + int height; +}; + +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_120x120 = {120, 120}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_160x120 = {160, 120}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_180x180 = {180, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_240x180 = {240, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_320x180 = {320, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_240x240 = {240, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_320x240 = {320, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_424x240 = {424, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_360x360 = {360, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_480x360 = {480, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_640x360 = {640, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_480x480 = {480, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_640x480 = {640, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_840x480 = {840, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_960x540 = {960, 540}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_960x720 = {960, 720}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_1280x720 = {1280, 720}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_1920x1080 = {1920, 1080}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_2540x1440 = {2540, 1440}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_3840x2160 = {3840, 2160}; + + +/** + * + * @type keytype + * @brief 推荐的视频帧率 + * @hidden constructor/destructor + */ + +enum FrameRateFps { + kFrameRateFps1 = 1, + kFrameRateFps7 = 7, + kFrameRateFps10 = 10, + kFrameRateFps15 = 15, + kFrameRateFps24 = 24, + kFrameRateFps30 = 30, + kFrameRateFps60 = 60, +}; +/** + * + * @type keytype + * @brief 视频编码配置。参考 [设置视频发布参数](https: + */ + +struct VideoEncoderConfig { + /** + * + * @brief 视频宽度,单位:像素 + */ + + int width; + /** + * + * @brief 视频高度,单位:像素 + */ + + int height; + /** + * + * @brief 视频帧率,单位:fps + */ + + int frame_rate; + /** + * + * @brief 最大编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
    + * 内部采集模式下默认值为 -1,即适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率。
    + * 设为 0 则不对视频流进行编码发送。 + */ + + int max_bitrate = SEND_KBPS_AUTO_CALCULATE; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, maxBitrate),当 `maxBitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `maxBitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `maxBitrate` < `0` 时,适配码率模式。 + */ + + int min_bitrate = 0; + /** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + + int32_t key_frame_interval_ms = 0; + /** + * + * @brief 编码策略偏好,默认为帧率优先。参看 VideoEncodePreference{@link #VideoEncodePreference}。 + */ + + VideoEncodePreference encoder_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; +}; + +/** + * + * @hidden + * @deprecated since 3.36 along with onUserUnPublishStream and onUserUnPublishScreen, and will be deleted in 3.51. + * @type keytype + * @brief 视频属性 + */ + +struct VideoSolutionDescription { + /** + * + * @brief 宽(像素)
    + * 默认值为 `1920`
    + * 为 `0` 时,保持源的宽。 + */ + + int width; + /** + * + * @brief 高(像素)
    + * 默认值为 `1080`
    + * 为 `0` 时,保持源的高。 + */ + + int height; + /** + * + * @brief 视频帧率(fps),默认为 15 fps + */ + + int fps; + /** + * + * @brief 最大发送速率(千比特每秒)。
    + * 默认为 `-1`,适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率 + */ + + int max_send_kbps; + int min_send_kbps; + /** + * + * @brief 缩放模式。参看 VideoStreamScaleMode{@link #VideoStreamScaleMode} + */ + + VideoStreamScaleMode scale_mode = VideoStreamScaleMode::kVideoStreamScaleModeAuto; + /** + * + * @brief 视频的编码类型。参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType codec_name = VideoCodecType::kVideoCodecTypeUnknown; + /** + * + * @brief 视频的编码模式。参看 VideoCodecMode{@link #VideoCodecMode} + */ + + VideoCodecMode codec_mode = VideoCodecMode::kVideoCodecModeAuto; + /** + * + * @brief 视频编码质量偏好策略。参看 VideoEncodePreference{@link #VideoEncodePreference} + */ + + VideoEncodePreference encode_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; + /** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + + int32_t key_frame_interval_ms = 0; + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const VideoSolutionDescription& config) const { + bool result = width == config.width && height == config.height && fps == config.fps + && max_send_kbps == config.max_send_kbps && min_send_kbps == config.min_send_kbps + && scale_mode == config.scale_mode && codec_name == config.codec_name + && codec_mode == config.codec_mode && encode_preference == config.encode_preference; + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const VideoSolutionDescription& config) const { + bool result = (*this == config); + return !result; + } +}; + + +/** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @region 视频管理 + */ + +typedef VideoSolutionDescription VideoProfile; + +/** + * + * @type keytype + * @brief 视频帧像素格式 + */ + +enum VideoPixelFormat { + /** + * + * @brief 未知格式 + */ + + kVideoPixelFormatUnknown = 0, + /** + * + * @brief YUV I420 格式 + */ + + kVideoPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + kVideoPixelFormatNV12 = 2, + /** + * + * @brief YUV NV21 格式 + */ + + kVideoPixelFormatNV21 = 3, + /** + * + * @brief RGB 24bit 格式, + */ + + kVideoPixelFormatRGB24 = 4, + /** + * + * @brief RGBA 编码格式 + */ + + kVideoPixelFormatRGBA = 5, + /** + * + * @brief ARGB 编码格式 + */ + + kVideoPixelFormatARGB = 6, + /** + * + * @brief BGRA 编码格式 + */ + + kVideoPixelFormatBGRA = 7, + + + /** + * + * @hidden for internal use only + * @brief 像素格式结束标志。新加的格式数值应该小于kVideoPixelFormatEndMark。 + */ + + kVideoPixelFormatEndMark = 0xFF, + + /** + * + * @brief Texture2D 格式 + */ + + kVideoPixelFormatTexture2D = 0x0DE1, + /** + * + * @brief TextureOES 格式 + */ + + kVideoPixelFormatTextureOES = 0x8D65, +}; + +/** + * + * @type keytype + * @brief 视频帧内容类型 + */ + +enum VideoContentType { + /** + * + * @brief 普通视频 + */ + + kVideoContentTypeNormalFrame = 0, + /** + * + * @brief 黑帧 + */ + + kVideoContentTypeBlackFrame = 1, +}; + + +/** + * + * @type keytype + * @brief 视频缓冲区类型 + */ + +enum VideoBufferType { + /** + * + * @brief 原始内存数据 + */ + + kVideoBufferTypeRawMemory = 0, + /** + * + * @hidden(Windows, Android, Linux) + * @brief CVPixelBufferRef 类型 + */ + + kVideoBufferTypeCVPixelBuffer = 1, + /** + * + * @brief OpenGL 纹理数据类型 + */ + + kVideoBufferTypeGLTexture = 2, + /** + * + * @brief cuda 数据类型 + */ + + kVideoBufferTypeCuda = 3, + /** + * + * @brief direct3d11 纹理 + */ + + kVideoBufferTypeD3D11 = 4, + /** + * + * @brief vaapi 数据格式 + */ + + kVideoBufferTypeVAAPI = 5, + /** + * + * @hidden(Windows) + * @brief nvidia jetson dma 数据格式 + */ + + kVideoBufferTypeNvidiaJetsonDma =6, +}; + +/** + * + * @type keytype + * @brief 自定义内存释放器 + */ + +struct ManagedMemory { + /** + * + * @brief 内存数据地址 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 内存空间的大小 + */ + + int size = 0; + /** + * + * @brief 用户自定义数据 + */ + + void* user_opaque = nullptr; + /** + * + * @brief 自定义内存释放方法指针,如果指针不为空,方法会被调用,用来释放内存空间。
    + * 函数传入的参数分别是本结构体内 data、size、user_opaque 3 个字段。 + */ + + int (*memory_deleter)(uint8_t* data, int size, void* user_opaque) = nullptr; +}; + +/** + * + * @type keytype + * @region 视频管理 + * @brief 视频帧数据 + */ + +typedef struct VideoFrameData { + /** + * + * @brief 视频帧缓冲区类型,默认为原始内存,详见 VideoBufferType{@link #VideoBufferType}。必填。 + */ + + VideoBufferType buffer_type = kVideoBufferTypeRawMemory; + /** + * + * @brief 视频帧像素格式,详见 VideoPixelFormat{@link #VideoPixelFormat}。当 `buffer_type` 为 `kVideoFrameTypeGLTexture` 必填。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; + + /** + * + * @brief 视频帧内容类型,参看 VideoContentType{@link #VideoContentType} + */ + + VideoContentType content_type = kVideoContentTypeNormalFrame; + /** + * + * @brief 视频帧平面个数。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + int number_of_planes = 0; + /** + * + * @brief 视频帧平面数组。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + uint8_t* plane_data[4] = { nullptr }; + /** + * + * @brief stride 数组。stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节)。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + int plane_stride[4] = { 0 }; + /** + * + * @brief SEI 数据 + */ + + uint8_t* sei_data = nullptr; + /** + * + * @brief SEI 数据大小 + */ + + int sei_data_size = 0; + /** + * + * @brief 视频帧感兴趣区域数据 + */ + + uint8_t* roi_data = nullptr; + /** + * + * @brief 视频帧感兴趣区域数据长度 + */ + + int roi_data_size = 0; + /** + * + * @brief 视频帧宽度。必填。 + */ + + int width = 0; + /** + * + * @brief 视频帧高度。必填。 + */ + + int height = 0; + /** + * + * @brief 视频旋转角度,参看 VideoRotation{@link #VideoRotation}。
    + */ + + VideoRotation rotation = kVideoRotation0; + /** + * + * @brief 视频帧时间戳,单位:微秒。必填。 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 硬件加速缓冲区指针 + */ + + void* hw_buffer = nullptr; + /** + * + * @brief 硬件加速上下文对象句柄 + */ + + void* hw_context = nullptr; + /** + * + * @brief 纹理矩阵(仅针对纹理类型的 frame 生效) + */ + + float texture_matrix[16] = { 0 }; + /** + * + * @brief 纹理 ID(仅针对纹理类型的 frame 生效)。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 或 `kVideoFrameTypeGLTexture` 必填。 + */ + + uint32_t texture_id = 0; + +} VideoFrameData; + +/** + * + * @type keytype + * @brief 视频帧接口 + */ + +class IVideoFrame { +public: + /** + * + * @brief 获取视频帧缓冲区类型,参看 VideoBufferType{@link #VideoBufferType}。 + */ + + virtual VideoBufferType bufferType() = 0; + /** + * + * @brief 获取视频帧像素格式,参看 VideoPixelFormat{@link #VideoPixelFormat}。 + */ + + virtual VideoPixelFormat pixelFormat() = 0; + /** + * + * @brief 获取视频帧内容类型,参看 VideoContentType{@link #VideoContentType}。 + */ + + virtual VideoContentType contentType() = 0; + + /** + * + * @brief 获取视频帧时间戳,单位:微秒 + */ + + virtual int64_t timestampUs() = 0; + /** + * + * @brief 获取视频帧宽度 + */ + + virtual int width() = 0; + /** + * + * @brief 获取视频帧高度 + */ + + virtual int height() = 0; + /** + * + * @brief 获取视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + */ + + virtual VideoRotation rotation() = 0; + /** + * + * @brief 获取视频帧平面数量 + */ + + virtual int numberOfPlanes() = 0; + /** + * + * @brief 获取视频帧平面 + * @param plane_index plane 索引 + */ + + virtual uint8_t* planeData(int plane_index) = 0; + /** + * + * @brief 获取视频帧平面相邻两行图像数据之间的内存长度(单位字节) + * @param plane_index plane 索引 + */ + + virtual int planeStride(int plane_index) = 0; + /** + * + * @brief 获取 SEI 数据指针 + * @param size SEI 数据字节数 + */ + + virtual uint8_t* seiData(int& size) = 0; + /** + * + * @brief 获取硬件缓冲区指针 + */ + + virtual void* hwBuffer() = 0; + /** + * + * @brief 获取硬件加速上下文对象句柄 + */ + + virtual void* hwContext() = 0; + /** + * + * @brief 获取纹理矩阵(仅针对纹理类型的 frame 生效) + * @param matrix 纹理矩阵 + */ + + virtual void textureMatrix(float matrix[16]) = 0; + /** + * + * @brief 获取纹理 ID(仅针对纹理类型的 frame 生效) + */ + + virtual uint32_t textureId() = 0; + /** + * + * @brief 视频帧引用计数加一 + * @note 视频帧消费者希望对视频帧进行异步处理时(例如切换线程进行渲染),需要调用此接口增加引用计数。异步处理结束则需要调用 `releaseRef` 使引用计数减1 + */ + + virtual void addRef() = 0; + /** + * + * @brief 视频帧引用计数减一 + * @note 视频帧引用计数减为 0 时,视频帧对象会被释放。视频帧对象释放后,不应该继续使用视频帧。 + */ + + virtual long releaseRef() = 0; + /** + * + * @brief 获取视频帧的摄像头位置信息,参看 CameraID{@link #CameraID} + */ + + virtual CameraID cameraId() = 0; + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @brief 获取全景视频的 Tile 信息 + * @return FoV(可视范围)随本端的头位姿实时更新获取到的视频帧,包括高清视野和低清背景。参见 FovVideoTileInfo{@link #FovVideoTileInfo}。 + * @list + */ + + virtual FovVideoTileInfo fovTileInfo() = 0; +/** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoFrame() = default; +}; + + + + + + + + + + + + + + + + + + + + + +/** + * + * @type keytype + * @region 视频管理 + * @brief 视频帧参数 + */ + +typedef struct EncodedVideoFrameBuilder { + /** + * + * @brief 视频帧编码格式,参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType codec_type = kVideoCodecTypeUnknown; + /** + * + * @brief 视频帧编码类型,参看 VideoPictureType{@link #VideoPictureType} + */ + + VideoPictureType picture_type = kVideoPictureTypeUnknown; + /** + * + * @brief 视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + */ + + VideoRotation rotation = kVideoRotation0; + /** + * + * @brief 视频帧数据指针 + * @note IEncodedVideoFrame 会获取数据的所有权 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 视频帧数据大小 + */ + + int size = 0; + /** + * + * @brief 视频帧宽度,单位:px + */ + + int width = 0; + /** + * + * @brief 视频帧高度,单位:px + */ + + int height = 0; + /** + * + * @brief 视频采集时间戳,单位:微秒 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 视频编码时间戳,单位:微秒 + */ + + int64_t timestamp_dts_us = 0; + /** + * + * @brief 用户定义的视频帧释放回调函数指针,如果指针不为空,方法会被调用用来释放内存空间 + */ + + int (*memory_deleter)(uint8_t* data, int size, void* user_opaque) = nullptr; +} EncodedVideoFrameBuilder; +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +class IEncodedVideoFrame { +public: + /** + * + * @type api + * @brief 获取视频编码类型 + * @return 视频编码类型,参看 VideoCodecType{@link #VideoCodecType} + * @list Video Management + */ + + virtual VideoCodecType codecType() const = 0; + /** + * + * @type api + * @brief 获取视频采集时间戳 + * @return 视频采集时间戳,单位:微秒 + * @list Video Management + */ + + virtual int64_t timestampUs() const = 0; + /** + * + * @type api + * @brief 获取视频编码时间戳 + * @return 视频编码时间戳,单位:微秒 + * @list Video Management + */ + + virtual int64_t timestampDtsUs() const = 0; + /** + * + * @type api + * @brief 获取视频帧宽度 + * @return 视频帧宽度,单位:px + * @list Video Management + */ + + virtual int width() const = 0; + /** + * + * @type api + * @brief 获取视频帧高度 + * @return 视频帧高度,单位:px + * @list Video Management + */ + + virtual int height() const = 0; + /** + * + * @type api + * @brief 获取视频编码帧类型 + * @return 视频编码帧类型,参看 VideoPictureType{@link #VideoPictureType} + * @list Video Management + */ + + virtual VideoPictureType pictureType() const = 0; + /** + * + * @type api + * @brief 获取视频帧旋转角度 + * @return 视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + * @list Video Management + */ + + virtual VideoRotation rotation() const = 0; + /** + * + * @type api + * @brief 获取视频帧数据指针地址 + * @return 视频帧数据指针地址 + * @list Video Management + */ + + virtual uint8_t* data() const = 0; + /** + * + * @type api + * @brief 获取视频帧数据大小 + * @return 视频帧数据大小 + * @list Video Management + */ + + virtual int dataSize() const = 0; + /** + * + * @type api + * @brief 浅拷贝视频帧并返回指针 + * @list Video Management + */ + + virtual IEncodedVideoFrame* shallowCopy() const = 0; + /** + * + * @type api + * @brief 释放视频帧 + * @list Video Management + */ + + virtual void release() = 0; + /** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IEncodedVideoFrame() = default; +}; +/** + * + * @type api + * @brief 创建 IEncodedVideoFrame + * @param builder 编码后的视频帧构建实例,参看 EncodedVideoFrameBuilder{@link #EncodedVideoFrameBuilder} + * @return IEncodedVideoFrame{@link #IEncodedVideoFrame} 实例 + * @list 视频管理 + */ + +BYTERTC_API IEncodedVideoFrame* buildEncodedVideoFrame(const EncodedVideoFrameBuilder& builder); + + +/** + * + * @hidden(Linux,Android,iOS) + * @type keytype + * @brief RTC 智能决策后得到的帧率和分辨率积(宽*高)。 + */ + +struct FrameUpdateInfo { + /** + * + * @brief 分辨率积(宽*高)。 + */ + + int pixel; + /** + * + * @brief 帧率。 + */ + + int framerate; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h new file mode 100644 index 0000000..9ad98ce --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Processor Interface +*/ + +#pragma once + +#include "bytertc_video_frame.h" + +namespace bytertc { +/** + * + * @type api + * @brief 视频处理接口类 + * @list 视频处理 + */ + +class IVideoProcessor +{ +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IVideoProcessor() = default; + /** + * + * @type api + * @brief 获取 RTC SDK 采集得到的视频帧,根据 registerLocalVideoProcessor{@link #IRTCEngine#registerLocalVideoProcessor} 设置的视频前处理器,进行视频前处理,最终将处理后的视频帧给到 RTC SDK 用于编码传输。 + * @param src_frame RTC SDK 采集得到的视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 经过视频前处理后的视频帧,返回给 RTC SDK 供编码和传输,参看 IVideoFrame{@link #IVideoFrame}。 + * @note + * - 在进行视频前处理前,你需要调用 registerLocalVideoProcessor{@link #IRTCEngine#registerLocalVideoProcessor} 设置视频前处理器。 + * - 如果需要取消视频前处理,可以将视频前处理器设置为 nullptr。 + * - 应用层实现 `processVideoFrame` 接口时,可以直接修改 `src_frame` 的缓冲区,调用 `addRef` 方法将 `src_frame` 引用计数加一,然后将修改后的 `src_frame` 返回, 也可以创建一个新的视频帧并返回。 + * - 对于 `processVideoFrame` 返回的视频帧,在 SDK 层消费完成后,SDK 内部总是调用这个视频帧的 releaseRef 方法。 + * @list 自定义流处理 + */ + + virtual IVideoFrame* processVideoFrame(IVideoFrame* src_frame) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h new file mode 100644 index 0000000..5d3b57d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h @@ -0,0 +1,381 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Processor Interface +*/ + +#pragma once + +#include "bytertc_video_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief WTN 媒体流状态 + */ + +enum WTNSubscribeState { + /** + * + * @brief 订阅 WTN 媒体流 + */ + + kWTNSubscribeStateSubscribed, + /** + * + * @brief 取消订阅 WTN 媒体流 + */ + + kWTNSubscribeStateUnsubscribed +}; +/** + * + * @type keytype + * @brief WTN 媒体流订阅状态改变的原因 + */ + +enum WTNSubscribeStateChangeReason { + /** + * + * @brief 订阅 WTN 媒体流成功 + */ + + kWTNSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 其他原因订阅失败 + */ + + kWTNSubscribeStateChangeReasonUnsubscribe = 1300, + /** + * + * @brief 订阅失败,拉流时远端未发布 + */ + + kWTNSubscribeStateChangeReasonRemoteUnpublish = 1301, + /** + * + * @brief 订阅失败,超出单端订阅上限。一个引擎实例最多拉 5 路流。 + */ + + kWTNSubscribeStateChangeReasonOverClientSubscribeStreamLimit = 1310, + /** + * + * @brief 订阅失败。超出单流订阅人数上限。该限制由 RTC 服务端决定。 + */ + + kWTNSubscribeStateChangeReasonOverStreamSubscribeUserLimit = 1311, + /** + * + * @brief 订阅失败。超出单流订阅请求 QPS 上限。该限制由 RTC 服务端决定。 + */ + + kWTNSubscribeStateChangeReasonOverStreamSubscribeRequestLimit = 1312 +}; + +/** + * + * @type callback + * @brief WTN 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +class IWTNStreamEventHandler { +public: + /** + * @hidden Constructor/Destructor + * @brief Destructor + */ + virtual ~IWTNStreamEventHandler() { + } + /** + * + * @type callback + * @valid since 3.60. + * @brief 通话中本地设备接收订阅的远端 WTN 视频流的流 ID 以及远端 WTN 视频流统计信息。 + * @param stream_id WTN 流 ID + * @param stats 远端 WTN 视频流的统计信息,详见 RemoteVideoStats{@link #RemoteVideoStats}。 + * @list WTN + * @order 0 + */ + + virtual void onWTNRemoteVideoStats(const char* stream_id, RemoteVideoStats stats) { + (void)stream_id; + (void)stats; + } + /** + * + * @type callback + * @valid since 3.60. + * @brief 通话中本地设备接收订阅的远端 WTN 音频流的流 ID 以及远端 WTN 音频流统计信息。 + * @param stream_id WTN 流 ID + * @param stats 远端 WTN 音频流的统计信息,详见 RemoteAudioStats{@link #RemoteAudioStats} + * @list WTN + * @order 1 + */ + + virtual void onWTNRemoteAudioStats(const char* stream_id, RemoteAudioStats stats) { + (void)stream_id; + (void)stats; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onPlayPublicStreamResult` 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 视频流订阅状态变化回调
    + * 通过 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。 + * @param stream_id WTN 视频流的 ID + * @param state_code 视频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 + * @param reason 订阅状态发生变化的原因,参看 WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}。 + * @list WTN + * @order 2 + */ + + virtual void onWTNVideoSubscribeStateChanged(const char* stream_id, WTNSubscribeState state_code, WTNSubscribeStateChangeReason reason) { + (void)stream_id; + (void)state_code; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onPlayPublicStreamResult` 中的 WTN 音频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 音频流订阅状态变化回调
    + * 通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。 + * @param stream_id WTN 音频流的 ID + * @param state_code 音频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 + * @param reason 订阅状态发生变化的原因,参看 WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}。 + * @list WTN + * @order 2 + */ + + virtual void onWTNAudioSubscribeStateChanged(const char* stream_id, WTNSubscribeState state_code, WTNSubscribeStateChangeReason reason) { + (void)stream_id; + (void)state_code; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onFirstPublicStreamAudioFrame`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧音频解码成功
    + * 关于订阅 WTN 音频流,详见 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}。 + * @param stream_id WTN 流 ID + * @list WTN + * @order 3 + */ + + virtual void onWTNFirstRemoteAudioFrame(const char* stream_id) { + (void)stream_id; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onFirstPublicStreamVideoFrameDecoded`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧视频解码成功
    + * 关于 订阅 WTN 流,详见 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}。 + * @param stream_id WTN 流 ID + * @param info 视频帧信息。详见 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list WTN + * @order 4 + */ + + virtual void onWTNFirstRemoteVideoFrameDecoded(const char* stream_id, const VideoFrameInfo& info) { + (void)stream_id; + (void)info; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替换了 `onPublicStreamSEIMessageReceived` 来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief 回调 WTN 流中包含的 SEI 信息。
    + * 调用 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}接口拉 WTN 音频流/视频流后,通过此回调收到 WTN 流中的 SEI 消息。 + * @param stream_id WTN 流 ID。 + * @param channel_id SEI 的消息传输通道,取值范围 `[0 - 255]`。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message 收到的 SEI 消息内容。
    + * 通过调用客户端 `sendSEIMessage` 插入的 SEI 信息。
    + * 当 WTN 流中的多路视频流均包含有 SEI 信息:SEI 不互相冲突时,将通过多次回调分别发送;SEI 在同一帧有冲突时,则只有一条流中的 SEI 信息被透传并融合到 WTN 流中。 + * @param length SEI 信息的长度。 + * @note 通过 Open API 插入的自定义信息,应通过回调 onWTNDataMessageReceived{@link #IWTNStreamEventHandler#onWTNDataMessageReceived} 获取。 + * @list WTN + * @order 5 + */ + + virtual void onWTNSEIMessageReceived(const char* stream_id, int channel_id, const uint8_t* message, int length) { + (void)stream_id; + (void)channel_id; + (void)message; + (void)length; + } + + /** + * + * @type callback + * @valid since 3.60. + * @brief 回调 WTN 流中包含的数据信息。
    + * 通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 流后,通过监听本回调获取 WTN 流中的数据消息,包括调用 Open API 发送的 SEI 消息和音量回调。 + * @param stream_id WTN 流 ID + * @param message 收到的数据消息内容,如下:
    + * - 调用 WTN 流 OpenAPI 发送的自定义消息。 + * - 媒体流音量变化,需要通过 WTN 流 OpenAPI 开启回调。JSON 格式说明如下:
    + * {
    + * "Type" : "VolumeIndication", + * "VolumeInfos" : [ + * {
    + * "RoomId":"1000001", + * "UserId":"1000001", + * "StreamType":0, + * "LinearVolume":1 + * }
    + * @param message_length 消息的长度 + * @param source_type 数据消息来源,参看 DataMessageSourceType{@link #DataMessageSourceType}。 + * @note 通过调用客户端 API 插入的 SEI 信息,应通过回调 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 获取。 + * @list WTN + * @order 6 + */ + + virtual void onWTNDataMessageReceived(const char* stream_id, + const uint8_t* message, + int message_length, + DataMessageSourceType source_type) { + (void)stream_id; + (void)message; + (void)message_length; + (void)source_type; + } +}; + +/** + * + * @type api + * @region WTN + * @brief WTN 流处理 + */ + +class IWTNStream +{ +public: + /** + * @hidden constructor/destructor + */ + virtual ~IWTNStream() = default; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream` 和 `stopPlayPublicStream` 方法来订阅/取消订阅指定 WTN 视频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 视频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 视频流。 + * @param stream_id WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 onWTNVideoSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNVideoSubscribeStateChanged} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteVideoFrameDecoded{@link #IWTNStreamEventHandler#onWTNFirstRemoteVideoFrameDecoded} 回调 WTN 视频流的首帧解码情况。 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 0 + */ + + virtual int subscribeWTNVideoStream(const char* stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream` 和 `stopPlayPublicStream` 方法来订阅/取消订阅指定 WTN 音频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 音频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 音频流。 + * @param stream_id WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 onWTNAudioSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNAudioSubscribeStateChanged} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 取消订阅WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteAudioFrame{@link #IWTNStreamEventHandler#onWTNFirstRemoteAudioFrame} 回调 WTN 音频流的音频首帧解码情况。 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 1 + */ + + virtual int subscribeWTNAudioStream(const char* stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoCanvas` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定内部渲染视图 + * @param stream_id WTN 流 ID + * @param canvas 内部渲染视图,如果需要解除视频的绑定视图,把 `videoCanvas` 设置为空。详见 VideoCanvas{@link #VideoCanvas}。 + * @return + * - 0:成功 + * - !0:失败 + * @list WTN + * @order 2 + */ + + virtual int setWTNRemoteVideoCanvas(const char* stream_id, const VideoCanvas& canvas) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoSink` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定自定义渲染器。详见[自定义视频渲染](https: + * @param stream_id WTN 流 ID + * @param video_sink 自定义视频渲染器,自定义视频渲染器,需要释放渲染器资源时,将 `videoSink` 设置为 `null`。参看 IVideoSink{@link #IVideoSink} + * @param config 远端视频帧回调配置,参看 RemoteVideoSinkConfig{@link #RemoteVideoSinkConfig} + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @list WTN + * @order 3 + */ + + virtual int setWTNRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, RemoteVideoSinkConfig& config) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamAudioPlaybackVolume` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 调节 WTN 流的音频播放音量。 + * @param stream_id WTN 流 ID + * @param volume 音频播放音量值和原始音量值的比值,该比值的范围是 `[0, 400]`,单位为 %,且自带溢出保护。为保证更好的音频质量,建议设定在 `[0, 100]` 之间,其中 100 为系统默认值。 + * @return + * - 0: 成功调用。 + * - -2: 参数错误。 + * @list WTN + * @order 4 + */ + + virtual int setWTNRemoteAudioPlaybackVolume(const char* stream_id, int volume) = 0; + /** + * + * @type api + * @valid since 3.60. + * @brief 设置 WTN 流回调接口 + * @param handler WTN 回调类,参看 IWTNStreamEventHandler{@link #IWTNStreamEventHandler}。 + * @list WTN + * @order 5 + */ + + virtual int setWTNStreamEventHandler(IWTNStreamEventHandler* handler) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h new file mode 100644 index 0000000..59f2c90 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h @@ -0,0 +1,239 @@ +#pragma once + +#include "bytertc_defines.h" + +namespace bytertc { +class IRTCRoom; +class IRTCEngine; +class IAmazingEffect; + +/** + * @type keytype + * @brief 5.18版本后,飞书会议弱网提示专用,设置订阅视频基线数据用于计算网络等级 + */ +struct SubscribeVideoBaseline { + /** + * @brief 网络等级判定为优秀的视频宽/高中小值的基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_good_video_pixel_baseline = -1; + /** + * @brief 网络等级判定为优秀的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_good_video_fps_baseline = -1; + /** + * @brief 网络等级判定为差视频宽/高中小值的基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_bad_video_pixel_baseline = -1; + /** + * @brief 网络等级判定为差的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_bad_video_fps_baseline = -1; + /** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ + int32_t acceptable_min_video_resolution_width = -1; + /** + * @brief 业务可以接受的最小分辨率高度,-1表示业务忽略此参数 + */ + int32_t acceptable_min_video_resolution_height = -1; + /** + * @brief 流的优先级,-1表示业务忽略此参数 + */ + int32_t stream_priority = -1; +}; + +enum SpecialStreamType { + kSpecialStreamTypeDocShare = 1, + kSpecialStreamTypeMCU, + kSpecialStreamTypeMeetTogether, + kSpecialStreamTypeIntelligentStream, +}; + +enum ExternalReportType{ + kExternalReportTypeApi = 0, + kExternalReportTypeApiCallback = 1, +}; +} + +namespace bytertc { + /** + * + * @hidden + * @brief 推流到子频道channelName + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [const char*] channelName 子频道 + */ + BYTERTC_API int setPublishChannel(IRTCRoom* room, const char* channelName); + /** + * + * @hidden + * @brief 订阅子频道数组里的所有流 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [const SubChannelsInfo*] channelsInfo 子频道数组 + * @param [int] channelsNum 子频道数组大小 + * @param [bool] enableVolumeRescale 是否开启音频抑制功能 + */ + BYTERTC_API int setSubscribeChannels(IRTCRoom* room, const char* channels[], int channelsNum, bool enable_rescale); + /** + * + * @hidden + * @brief 设置是否开启音频抑制 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [bool] enable 是否抑制 + */ + BYTERTC_API int enableRescaleAudioVolume(IRTCRoom* room, bool enable); + /** + * + * @hidden + * @deprecated since 3.58 and will be deleted in 3.60 + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [IRTCRoom*] room 目标room + * @param [int] type 流类型 + */ + BYTERTC_API int setPublishSpecialStream(IRTCRoom* room, int type); + /** + * + * @hidden + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [IRTCRoom*] room 目标room + * @param [int] type 流类型 + */ + BYTERTC_API int setPublishSpecialStreamWithStreamIndex(IRTCRoom* room, StreamIndex streamIndex, int type); + /** + * + * @hidden + * @brief 设置订阅的特殊流类型 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [int[]] types 流类型集合 + * @param [int] count 流类型集合大小 + */ + BYTERTC_API int setSubscribeSpecialStream(IRTCRoom* room, int types[], int count); + /** + * + * @brief 获取上行带宽状态 + * @param [IRTCRoom*] room 目标room + */ + BYTERTC_API int getUplinkNetworkBandwidthEstimationStatus(IRTCRoom* room); + /** + * + * @brief 获取下行带宽状态 + * @param [IRTCRoom*] room 目标room + */ + BYTERTC_API int getDownlinkNetworkBandwidthEstimationStatus(IRTCRoom* room); + + /** + * + * @hidden + * @brief 视频发布端设置推送多路流时各路流的参数,包括分辨率、帧率、码率、缩放模式、网络不佳时的回退策略等。 + * @param channel_solutions 通道内的最大分辨率 + * @param solution_num 通道数 + * @param channel_main_solutions 主通道 兼容旧版本 + * @return 0 成功 !0失败 + */ + BYTERTC_API int setVideoEncoderConfig(IRTCEngine* ivideo, const VideoEncoderConfig* channel_solutions, + int solution_num, const VideoEncoderConfig* channel_main_solutions); + + /** + * + * @hidden + * @brief 设置屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ + BYTERTC_API int setScreenVideoConfigs(IRTCEngine* ivideo); + + /** + * + * @hidden + * @brief 清空屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ + BYTERTC_API int resetScreenVideoConfigs(IRTCEngine* ivideo); + + /** + * + * @brief 更新自动订阅选项 + *@param [IRTCRoom*] room 目标room + *@param [SubscribeMode] sub_mode_audio 音频自动订阅模式 + *@param [SubscribeMode] sub_mode_video 视频自动订阅模式 + */ + BYTERTC_API int enableAutoSubscribe(IRTCRoom* room, SubscribeMode sub_mode_audio, SubscribeMode sub_mode_video); + + /** + * + * @brief 检查音视频流是否取消发布成功 + *@param [IRTCRoom*] room 目标room + *@param [int] type 需要检查的流类型 + */ + BYTERTC_API bool isStreamUnpublished(IRTCRoom* room, MediaStreamType stream_type); + + /** + * + * @brief 设置弱网降级的基线数据 + *@param [RTCRoom] room 目标room + *@param [String] userId 订阅用户名 + *@param [boolean] isScreen 是否屏幕流 + *@param [InternalSubscribeVideoBaseline] videoBaseline 订阅基线设置 + */ + BYTERTC_API void setSubscribeBaselineData(IRTCRoom* rtc_room, const char* uid, bool is_screen, + const SubscribeVideoBaseline& video_baseline); + + /** + * + * @hidden + * @brief 获取用于实时crash分子数据信息 + * @param [char*] params carsh参数信息的json形式的字符数组 + * @param [int] size 用于存储params信息的数组大小 + */ + BYTERTC_API int getSessionLaunchParams(char* params, int size); + + /** + * + * @hidden + * @brief 获取视频特效接口IAmazingEffect + *@param [RTCEngine] ivideo 目标RTCVideo + */ + BYTERTC_API IAmazingEffect* getAmazingEffectInterface(IRTCEngine* ivideo); + /** + * + * @hidden + * @brief 获取EffectSDK版本,用于初始化platformsdk + */ + BYTERTC_API void getEffectVersion(char* version, int size); + + /** + * + * @brief 设置外部 Surface + * @return 无返回值 + */ + BYTERTC_API void setExternalSurface(IRTCEngine* ivideo, const char* room_id, const char* user_id, StreamIndex index, void* surface); + + /** + * + * @hidden + * @brief 写外部日志到RTC日志文件 + */ + BYTERTC_API void writeLog(const char* file_name, int line_num, const char* api_name, const char* level, + const char* format, ...); + + /** + * + * @hidden + * @brief 上报外部接口调用到trace平台 + */ + BYTERTC_API void reportApiCall(IRTCEngine* ivideo, ExternalReportType report_type, const char* api_name, + const char* msg); + + /** + * + * @hidden + * @brief 会议场景开启多分辨率 + */ + BYTERTC_API int enableSimulcastMode(IRTCEngine* ivideo, bool enabled); + + } diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h new file mode 100644 index 0000000..63030fd --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h @@ -0,0 +1,4450 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC +*/ +#import +#import "rtc/ByteRTCDefines.h" +#import "rtc/ByteRTCHttpClientProtocol.h" +#import "rtc/ByteRTCAudioEffectPlayer.h" +#import "rtc/ByteRTCMediaPlayer.h" +#import "rtc/ByteRTCSingScoringManager.h" +#import "rtc/ByteRTCWTNStream.h" +@class ByteRTCEngine; +@class ByteRTCRoom; +@class ByteRTCGameRoom; +@class ByteRTCRTSRoom; +@class ByteRTCKTVManager; +/** + * + * @type api + */ + +@protocol ByteRTCHttpClientProtocol; + +#pragma mark - ByteRTCEngineDelegate +/** + * + * @type callback + * @brief ByteRTCEngineDelegate 协议包含了 SDK 提供的回调方法,SDK 通过代理向应用程序上报一些运行时事件
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCEngineDelegate +@optional +#pragma mark - Core Delegate Methods + +/** + * + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param engine ByteRTCEngine 对象。 + * @param code 警告代码,参看 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onWarning:(ByteRTCWarningCode)code; +/** + * + * @type callback + * @brief 发生错误回调。
    + * SDK 运行时出现了网络或媒体相关的错误,且无法自动恢复时触发此回调。
    + * 你可能需要干预。 + * @param engine ByteRTCEngine 对象。 + * @param errorCode 错误代码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onError:(ByteRTCErrorCode)errorCode; +/** + * + * @hidden internal use only + * @valid since 3.57 + * @type callback + * @brief 当内部线程发生 block 时,将收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param deadlockMsg block 线程的线程名和 block 检测次数。参看 ByteRTCDeadLockMsg{#ByteRTCDeadLockMsg} + * @list Engine Management + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onDeadLockError:(ByteRTCDeadLockMsg *_Nonnull)deadlockMsg; +/** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。
    + * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param engine `ByteRTCEngine` 实例 + * @param extensionName 插件名字 + * @param msg 失败说明 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onExtensionAccessError:(NSString * _Nonnull)extensionName msg:(NSString * _Nonnull)msg; +/** + * + * @type callback + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param engine ByteRTCEngine 对象 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ByteRTCConnectionState{@link #ByteRTCConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + * @list 网络管理 + */ + +- (void) rtcEngine:(ByteRTCEngine * _Nonnull)engine onConnectionStateChanged:(ByteRTCConnectionState) state; +/** + * + * @type callback + * @brief SDK 当前网络连接类型改变回调。 + * @param engine ByteRTCEngine 对象 + * @param type SDK 当前的网络连接类型,详见 ByteRTCNetworkType{@link #ByteRTCNetworkType} + * @list 网络管理 + */ + +- (void) rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkTypeChanged:(ByteRTCNetworkType) type; +/** + * + * @type callback + * @brief 房间内的可见用户调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 开启音频采集的远端流 ID + * @param info 开启音频采集的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStartAudioCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 房间内的可见用户调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 关闭音频采集时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 流 ID。 + * @param info 关闭音频采集的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStopAudioCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 订阅端接收并解码远端音频流首帧时,收到此回调。包含以下情况:
    + * 1. 发布端发布音频,包含首次发布和取消后再次发布。
    + * 2. 发布端关闭音频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布音频后,订阅端取消订阅音频后,又再次订阅音频。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @note + * - 用户刚收到房间内每一路音频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源、自动订阅和手动订阅的音频流,都符合上述策略。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteAudioFrame:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:} 后,根据设置的 interval 值,你会周期性地收到此回调,了解本地音频的瞬时相关信息。
    + * 本地音频包括使用 RTC SDK 内部机制采集的麦克风音频,屏幕音频和本地混音音频信息。 + * @param engine ByteRTCEngine 对象 + * @param audioPropertiesInfos 本地音频信息,详见 ByteRTCLocalAudioPropertiesInfo{@link #ByteRTCLocalAudioPropertiesInfo} 。在 macOS 端,本地音量可通过 `setAudioCaptureDeviceVolume:` 设置。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLocalAudioPropertiesReport:(NSArray * _Nonnull)audioPropertiesInfos; + +/** + * + * @type callback + * @hidden 3.60 for internal use only + * @region 音频管理 + * @brief 人声检测结果回调。
    + * 调用 enableAudioVADReport 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 人声检测结果,参看 ByteRTCAudioVADType{@link #ByteRTCAudioVADType}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioVADStateUpdate:(ByteRTCAudioVADType)state; +/** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 音乐场景检测结果回调。
    + * 调用 enableAudioAEDReport 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 音乐场景检测结果,参看 ByteRTCAudioAEDType{@link #ByteRTCAudioAEDType}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioAEDStateUpdate:(ByteRTCAudioAEDType)state; + /** + * + * @hidden(iOS) + * @type callback + * @brief 回调音频设备测试时的播放音量 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine}。 + * @param volume 音频设备测试播放音量。取值范围:[0,255] + * @note 调用 startAudioPlaybackDeviceTest:interval:{@link #ByteRTCAudioDeviceManager#startAudioPlaybackDeviceTest:interval:} 或 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:},开始播放音频文件或录音时,将开启该回调。本回调为周期性回调,回调周期由上述接口的 `interval` 参数指定。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioPlaybackDeviceTestVolume:(int)volume; + /** + * + * @hidden(iOS) + * @type callback + * @brief 音频设备音量改变回调。当通过系统设置,改变音频设备音量或静音状态时,触发本回调。本回调无需手动开启。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine} + * @param deviceType 设备类型,包括麦克风和扬声器,参阅 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType}。 + * @param volume 音量值,[0, 255]。当 volume 变为 0 时,muted 会转为 True。 + * @param muted 是否禁音状态。扬声器被设置为禁音时,muted 为 True,但 volume 保持不变。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceVolumeChanged:(ByteRTCAudioDeviceType)deviceType volume:(int)volume muted:(bool)muted; + /** + * + * @type callback + * @brief 远端用户进房后,本地调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:} ,根据设置的 interval 值,本地会周期性地收到此回调,了解订阅的远端用户的瞬时音频信息。
    + * 远端用户的音频包括使用 RTC SDK 内部机制/自定义机制采集的麦克风音频和屏幕音频。 + * @param engine ByteRTCEngine 对象 + * @param audioPropertiesInfos 远端音频信息,其中包含音频流属性、房间 ID、用户 ID ,详见 ByteRTCRemoteAudioPropertiesInfo{@link #ByteRTCRemoteAudioPropertiesInfo}。 + * @param totalRemoteVolume 所有订阅的远端流混音后的音量,范围是 [0,255]。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onRemoteAudioPropertiesReport:(NSArray * _Nonnull)audioPropertiesInfos totalRemoteVolume:(NSInteger)totalRemoteVolume; +/** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:}  后,根据设置的 `config.interval`,你会周期性地收到此回调,获取房间内的最活跃用户信息。 + * @param engine `ByteRTCEngine` 实例 + * @param roomId 房间 ID + * @param uid 最活跃用户(ActiveSpeaker)的用户 ID + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onActiveSpeaker:(NSString * _Nonnull)roomId uid:(NSString *_Nonnull)uid; +/** + * + * @hidden for internal use only + * @type callback + * @brief 房间内用户暂停/恢复发送视频流时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param roomId 房间 ID + * @param uid 暂停/恢复发送视频流的用户 ID。 + * @param muteState 视频流的发送状态。参看 ByteRTCMuteState{@link #ByteRTCMuteState}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onRemoteAudioPropertiesReportEx:(NSArray * _Nonnull)audioPropertiesInfos; + +#pragma mark - Core Video Delegate Methods + +/** + * + * @type callback + * @brief 房间内的可见用户调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部视频采集时,房间中其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 视频流 ID + * @param info 视频流信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStartVideoCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 房间内的可见用户调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部视频采集时,房间内其他用户会收到此回调。
    + * 若发布视频数据前未开启采集,房间内所有可见用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 视频流 ID + * @param info 视频流信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStopVideoCapture:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 第一帧本地采集的视频/屏幕共享画面在本地视图渲染完成时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstLocalVideoFrameCaptured:(ByteRTCVideoSource* _Nullable)videoSource withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstLocalVideoFrameCaptured:withFrameInfo:)); +/** + * + * @type callback + * @brief SDK 内部渲染成功远端视频流首帧后,收到此回调。包含以下情况:
    + * 1. 发布端首次发布视频
    + * 2. 在 1 条件下,发布端取消发布视频后,再次发布视频
    + * 3. 在 1 条件下,发布端关闭视频采集后,再次打开采集(或使用外部源时,停止推流后再次推流)
    + * 4. 在 1 条件下,订阅端取消订阅视频后,再次订阅视频(调用接口包括 subscribeAllStreamsVideo:{@link #ByteRTCRoom-subscribeAllStreamsVideo}pauseAllSubscribedStreamVideo:{@link #ByteRTCRoom-pauseAllSubscribedStreamVideo}/resumeAllSubscribedStreamVideo:{@link #ByteRTCRoom-resumeAllSubscribedStreamVideo}) + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @note 仅在采用内部渲染时,符合上述策略。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteVideoFrameRendered:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstRemoteVideoFrameRendered:info:withFrameInfo:)); +/** + * + * @type callback + * @brief 订阅端接收并解码远端视频流首帧后,收到此回调。包含以下情况:
    + * 1. 发布端发布视频,包含首次发布和取消后再次发布。
    + * 2. 发布端关闭视频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布视频后,订阅端取消订阅视频后,又再次订阅视频。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @note + * - 对于主流,进入房间后,仅在发布端第一次发布的时候,订阅端会收到该回调,此后不受重新发布的影响,只要不重新加入房间,就不会再收到该回调。 + * - 对于屏幕流,用户每次重新发布屏幕视频流在订阅端都会重新触发一次该回调。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteVideoFrameDecoded:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:)); + +/** + * + * @type callback + * @brief 远端视频大小或旋转信息发生改变时,房间内订阅此视频流的用户会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoSizeChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo *_Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoSizeChanged:info:withFrameInfo:)); +/** + * + * @type callback + * @brief 本地视频大小或旋转信息发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalVideoSizeChanged:(ByteRTCVideoSource* _Nullable)videoSource withFrameInfo:(ByteRTCVideoFrameInfo *_Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onLocalVideoSizeChanged:withFrameInfo:)); +/** + * + * @type callback + * @brief 音频设备状态回调。提示音频采集、音频播放等设备的状态。 + * @param engine ByteRTCEngine 实例 + * @param deviceID 设备 ID + * @param deviceType 设备类型,参看 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType}。 + * @param deviceState 设备状态,参看 ByteRTCMediaDeviceState{@link #ByteRTCMediaDeviceState}。 + * @param deviceError 设备错误类型,参看 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceStateChanged:(NSString*_Nonnull)deviceID + device_type:(ByteRTCAudioDeviceType)deviceType + device_state:(ByteRTCMediaDeviceState)deviceState + device_error:(ByteRTCMediaDeviceError)deviceError; +/** + * + * @type callback + * @brief 视频设备状态发生改变回调。当设备的视频状态发生改变时,SDK 会触发该回调,提示摄像头视频采集、屏幕视频采集等设备的状态。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine}。 + * @param deviceID 设备 ID + * @param deviceType 设备类型,参看 ByteRTCVideoDeviceType{@link #ByteRTCVideoDeviceType}。 + * @param deviceState 设备状态,参看 ByteRTCMediaDeviceState{@link #ByteRTCMediaDeviceState}。 + * @param deviceError 设备错误类型,参看 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onVideoDeviceStateChanged:(NSString*_Nonnull)deviceID + device_type:(ByteRTCVideoDeviceType)deviceType + device_state:(ByteRTCMediaDeviceState)deviceState + device_error:(ByteRTCMediaDeviceError)deviceError; +/** + * + * @type callback + * @brief 音频设备警告回调。音频设备包括音频采集设备和音频渲染设备。 + * @param engine ByteRTCEngine 对象 + * @param deviceId 设备 ID + * @param deviceType 参看 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType} + * @param deviceWarning 参看 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning} + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceWarning:(NSString*_Nonnull)deviceId + deviceType:(ByteRTCAudioDeviceType)deviceType + deviceWarning:(ByteRTCMediaDeviceWarning)deviceWarning; +/** + * + * @type callback + * @brief 视频设备警告回调。视频设备包括视频采集设备。 + * @param engine ByteRTCEngine 对象 + * @param deviceId 设备 ID + * @param deviceType 参看 ByteRTCVideoDeviceType{@link #ByteRTCVideoDeviceType} + * @param deviceWarning 参看 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning} + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onVideoDeviceWarning:(NSString*_Nonnull)deviceId + deviceType:(ByteRTCVideoDeviceType)deviceType + deviceWarning:(ByteRTCMediaDeviceWarning)deviceWarning; +/** + * + * @type callback + * @brief 本地音频首帧发送状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 流 ID + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 本地用户信息,详见 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧发送状态,详见 ByteRTCFirstFrameSendState{@link #ByteRTCFirstFrameSendState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioFrameSendStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFrameSendState)state; +/** + * + * @type callback + * @brief 视频首帧发送状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 视频流 ID + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 本地用户信息,详见 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧发送状态,详见 ByteRTCFirstFrameSendState{@link #ByteRTCFirstFrameSendState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onVideoFrameSendStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFrameSendState)state; +/** + * + * @type callback + * @brief 音频首帧播放状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 音频流 ID + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 音频流来源的用户信息,参看 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧播放状态,参看 ByteRTCFirstFramePlayState{@link #ByteRTCFirstFramePlayState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioFramePlayStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFramePlayState)state; +/** + * + * @type callback + * @brief 远端视频流的首帧播放状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 视频流 ID + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 视频流来源的用户信息,参看 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧播放状态,参看 ByteRTCFirstFramePlayState{@link #ByteRTCFirstFramePlayState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onVideoFramePlayStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFramePlayState)state; +#pragma mark - Media Stream Delegate Methods + +/** + * + * @type callback + * @brief 发布音频流时,采集到第一帧音频帧,收到该回调。 + * @param engine ByteRTCEngine 对象 + * @param audioSource 预留参数 + * @note 如果发布音频流时,未开启本地音频采集,SDK 会推送静音帧,也会收到此回调。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstLocalAudioFrame:(ByteRTCAudioSource* _Nullable)audioSource; +#pragma mark - Media Device Delegate Methods +/** + * + * @hidden(macOS) + * @type callback + * @brief 音频播放路由变化时,收到该回调。 + * @param engine `ByteRTCEngine` 实例 + * @param device 新的音频播放路由,详见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute} + * @note 插拔音频外设,或调用 setAudioRoute:{@link #ByteRTCEngine#setAudioRoute:} 都可能触发音频路由切换,详见[移动端设置音频路由](https: + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioRouteChanged:(ByteRTCAudioRoute)device; +#pragma mark custom message Delegate Methods + +/** + * + * @type callback + * @brief 收到通过调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 发送带有 SEI 消息的视频帧时,收到此回调。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param message 收到的 SEI 消息内容 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSEIMessageReceived:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info andMessage:(NSData* _Nonnull)message; +/** + * + * @type callback + * @brief 黑帧视频流发布状态回调。
    + * 在语音通话场景下,本地用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 通过黑帧视频流发送 SEI 数据时,流的发送状态会通过该回调通知远端用户。
    + * 你可以通过此回调判断携带 SEI 数据的视频帧为黑帧,从而不对该视频帧进行渲染。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param eventType 黑帧视频流状态,参看 ByteRTCSEIStreamEventType{@link #ByteRTCSEIStreamEventType} + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSEIStreamUpdate:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info eventType:(ByteRTCSEIStreamEventType)eventType; +/** + * + * @type callback + * @brief 音频流同步信息回调。可以通过此回调,在远端用户调用 sendStreamSyncInfo:config:{@link #ByteRTCEngine#sendStreamSyncInfo:config:} 发送音频流同步消息后,收到远端发送的音频流同步信息。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param streamType 媒体流类型,详见 ByteRTCSyncInfoStreamType{@link #ByteRTCSyncInfoStreamType} 。 + * @param data 消息内容。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onStreamSyncInfoReceived:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info streamType:(ByteRTCSyncInfoStreamType)streamType data:(NSData* _Nonnull)data; +#pragma mark - Statistics Delegate Methods + +/** + * + * @type callback + * @brief 报告当前设备 cpu 与 memory 使用率,每 2s 触发一次。 + * @param engine ByteRTCEngine 对象 + * @param stats cpu 和 memory 使用率信息,详见 ByteRTCSysStats{@link #ByteRTCSysStats} 数据类型 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSysStats:(const ByteRTCSysStats * _Nonnull)stats NS_SWIFT_NAME(rtcEngine(_:onSysStats:)); +/** + * + * @type callback + * @brief 本地音频流的状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param audioSource 预留参数 + * @param state 本地音频设备的当前状态,详见 ByteRTCLocalAudioStreamState{@link #ByteRTCLocalAudioStreamState} + * @param error 本地音频流状态改变时的错误码,详见 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalAudioStateChanged:(ByteRTCAudioSource* _Nullable)audioSource + state:(ByteRTCLocalAudioStreamState)state + error:(ByteRTCLocalAudioStreamError)error; +/** + * + * @type callback + * @brief 订阅的远端音频流状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 远端音频流的当前状态,详见 ByteRTCRemoteAudioState{@link #ByteRTCRemoteAudioState} + * @param reason 远端音频流状态改变的原因,详见 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteAudioStateChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCRemoteAudioState)state + reason:(ByteRTCRemoteAudioStateChangeReason)reason; +/** + * + * @type callback + * @brief 本地视频流的状态发生改变时,收到该事件。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param state 本地视频流的当前状态,参看 ByteRTCLocalVideoStreamState{@link #ByteRTCLocalVideoStreamState} + * @param error 本地视频状态改变时的错误码,参看 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalVideoStateChanged:(ByteRTCVideoSource* _Nullable)videoSource + withStreamState:(ByteRTCLocalVideoStreamState)state + withStreamError:(ByteRTCLocalVideoStreamError)error NS_SWIFT_NAME(rtcEngine(_:onLocalVideoStateChanged:withStreamState:withStreamError:)); +/** + * + * @type callback + * @brief 远端视频流的状态发生改变时,房间内订阅此流的用户会收到该事件。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 远端视频流的当前状态,参看 ByteRTCRemoteVideoState{@link #ByteRTCRemoteVideoState} + * @param reason 远端视频流状态改变的原因,参看 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} + * @note 本回调仅适用于主流,不适用于屏幕流。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoStateChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + withVideoState:(ByteRTCRemoteVideoState)state + withVideoStateReason:(ByteRTCRemoteVideoStateChangeReason)reason NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoStateChanged:info:withVideoState:withVideoStateReason:)); +/** + * + * @hidden not available on iOS + * @valid since 3.54 + * @type callback + * @brief 远端视频流的超分状态发生改变时,房间内订阅此流的用户会收到该回调。 + * @param engine `ByteRTCEngine` 实例 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param mode 超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + * @param reason 超分模式改变原因,参看 ByteRTCVideoSuperResolutionModeChangedReason{@link #ByteRTCVideoSuperResolutionModeChangedReason}。 + * @list 视频处理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoSuperResolutionModeChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + withMode:(ByteRTCVideoSuperResolutionMode)mode + withReason:(ByteRTCVideoSuperResolutionModeChangedReason)reason NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:)); +/** + * + * @valid since 3.54 + * @hidden not available on iOS + * @type callback + * @brief 降噪模式状态变更回调。当降噪模式的运行状态发生改变,SDK 会触发该回调,提示用户降噪模式改变后的运行状态及状态发生改变的原因。 + * @param engine `ByteRTCEngine` 实例 + * @param mode 视频降噪模式,参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode}。 + * @param reason 视频降噪模式改变的原因,参看 ByteRTCVideoDenoiseModeChangedReason{@link #ByteRTCVideoDenoiseModeChangedReason}。 + * @list 视频处理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine + onVideoDenoiseModeChanged:(ByteRTCVideoDenoiseMode)mode + withReason:(ByteRTCVideoDenoiseModeChangedReason)reason NS_SWIFT_NAME(rtcEngine(_:onVideoDenoiseModeChanged:withReason:)); + +#pragma mark - Rtm +/** + * + * @type callback + * @brief 登录结果回调 + * @param engine ByteRTCEngine 对象 + * @param uid
    + * 登录用户 ID + * @param errorCode
    + * 登录结果
    + * 详见 ByteRTCLoginErrorCode{@link #ByteRTCLoginErrorCode}。 + * @param elapsed
    + * 从调用 login:uid:{@link #ByteRTCEngine#login:uid:} 接口开始到返回结果所用时长。
    + * 单位为 ms。 + * @note 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLoginResult:(NSString * _Nonnull)uid errorCode:(ByteRTCLoginErrorCode)errorCode elapsed:(NSInteger)elapsed; +/** + * + * @type callback + * @brief 登出结果回调 + * @param engine ByteRTCEngine 对象 + * @param reason 用户登出的原因,参看 ByteRTCLogoutReason{@link #ByteRTCLogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #ByteRTCEngine#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLogout:(ByteRTCLogoutReason)reason; +/** + * + * @type callback + * @brief 设置应用服务器参数的返回结果 + * @param engine ByteRTCEngine 对象 + * @param errorCode
    + * 设置结果
    + * - 返回 200,设置成功 + * - 返回其他,设置失败,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note 调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onServerParamsSetResult:(NSInteger)errorCode; +/** + * + * @type callback + * @brief 查询对端或本端用户登录状态的返回结果 + * @param engine ByteRTCEngine 对象 + * @param peerUserId
    + * 需要查询的用户 ID + * @param status
    + * 查询的用户登录状态
    + * 详见 ByteRTCUserOnlineStatus{@link #ByteRTCUserOnlineStatus}. + * @note 必须先调用 getPeerOnlineStatus:{@link #ByteRTCEngin e#getPeerOnlineStatus:},才能收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onGetPeerOnlineStatus:(NSString * _Nonnull)peerUserId status:(ByteRTCUserOnlineStatus)status; +/** + * + * @type callback + * @brief > 该接口将于 3.64 rtcEngine:onUserMessageReceivedOutsideRoom:uid:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageReceivedOutsideRoom:uid:message:} 代替。 + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 发来的文本消息时,会收到此回调 + * @param engine ByteRTCEngine 对象。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageReceivedOutsideRoom:(NSString * _Nonnull)uid message:(NSString * _Nonnull)message; +/** + * + * @type callback + * @brief > 该接口将于 3.64 rtcEngine:onUserBinaryMessageReceivedOutsideRoom:uid:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserBinaryMessageReceivedOutsideRoom:uid:message:} 代替。 + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发来的二进制消息时,会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserBinaryMessageReceivedOutsideRoom:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message; +/** + * + * @type callback + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 发来的文本消息时,会收到此回调 + * @param engine ByteRTCEngine 对象。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageReceivedOutsideRoom:(NSInteger)msgid uid:(NSString * _Nonnull)uid message:(NSString * _Nonnull)message; +/** + * + * @type callback + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发来的二进制消息时,会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserBinaryMessageReceivedOutsideRoom:(NSInteger)msgid uid:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message; +/** + * + * @type callback + * @brief 给房间外指定的用户发送消息的回调 + * @param engine ByteRTCEngine 对象 + * @param msgid
    + * 本条消息的 ID
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error
    + * 消息发送结果
    + * 详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult}。 + * @note 当调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 或 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发送消息后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageSendResultOutsideRoom:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; +/** + * + * @type callback + * @brief 给应用服务器发送消息的回调。 + * @param engine ByteRTCEngine 对象。 + * @param msgid 本条消息的 ID。
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult}。 + * @param message 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。消息不超过 64 KB。 + * @note 本回调为异步回调。当调用 sendServerMessage:{@link #ByteRTCEngin e#sendServerMessage:} 或 sendServerBinaryMessage:{@link #ByteEngin e#sendServerBinaryMessage:} 接口发送消息后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onServerMessageSendResult:(int64_t)msgid error:(ByteRTCUserMessageSendResult)error message:(NSData * _Nonnull)message; +#pragma mark - Network Probe Methods +/** + * + * @type callback + * @brief 通话前网络探测结果的回调。
    + * 成功调用 startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:{@link #ByteRTCEngine#startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:} 接口开始探测后,会在 3s 内首次收到该回调,之后每 2s 收到一次该回调。 + * @param engine ByteRTCEngine 对象 + * @param type 探测网络类型为上行/下行 + * @param quality 探测网络的质量,参看 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + * @param rtt 探测网络的 RTT,单位:ms + * @param lostRate 探测网络的丢包率 + * @param bitrate 探测网络的带宽,单位:kbps + * @param jitter 探测网络的抖动,单位:ms + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkDetectionResult:(ByteRTCNetworkDetectionLinkType)type quality:(ByteRTCNetworkQuality)quality rtt:(int)rtt lostRate:(double)lostRate bitrate:(int)bitrate jitter:(int)jitter; +/** + * + * @type callback + * @brief 通话前网络探测结束
    + * 以下情况将停止探测并收到一次本回调:
    + * 1. 当调用 stopNetworkDetection{@link #ByteRTCEngine#stopNetworkDetection} 接口停止探测后,会收到一次该回调;
    + * 2. 当收到远端/本端音频首帧后,停止探测;
    + * 3. 当探测超过 3 分钟后,停止探测;
    + * 4. 当探测链路断开一定时间之后,停止探测。 + * @param engine ByteRTCEngine 对象 + * @param errorCode
    + * 停止探测的原因类型,参考 ByteRTCNetworkDetectionStopReason{@link #ByteRTCNetworkDetectionStopReason} + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkDetectionStopped:(ByteRTCNetworkDetectionStopReason)errorCode; +#pragma mark - Log Delegate Methods + +/** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @type callback + * @brief SDK 内部日志回调。
    + * SDK 内部运行时,会把日志回调给业务方,方便排查问题。 + * @param engine ByteRTCEngine 对象。 + * @param dict 日志内容。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine log:(NSDictionary* _Nonnull)dict; +#pragma mark Audio Mix Delegate Methods + +/** + * + * @type callback + * @brief 混音音频文件播放进度回调 + * @param engine 当前 RTC SDK 对象 + * @param mixId 混音 ID + * @param progress 当前混音音频文件播放进度,单位毫秒 + * @note 调用 start:filePath:config: 将 ByteRTCAudioEffectPlayerConfig 中的时间间隔设为大于 0 的值后,SDK 会按照设置的时间间隔回调该事件。 + * @list 混音 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioMixingPlayingProgress:(NSInteger)mixId progress:(int64_t) progress; +#pragma mark Performance Delegate Methods + +/** + * + * @type callback + * @brief 本地未通过 setPublishFallbackOption:{@link #ByteRTCEngine#setPublishFallbackOption:} 开启发布性能回退,检测到设备性能不足时,收到此回调。
    + * 本地通过 setPublishFallbackOption:{@link #ByteRTCEngine#setPublishFallbackOption:} 开启发布性能回退,因设备性能/网络原因,造成发布性能回退/恢复时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param streamId 流 ID + * @param info 流信息, 参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param mode 指示本地是否开启发布回退功能。参看 ByteRTCPerformanceAlarmMode{@link #ByteRTCPerformanceAlarmMode}
    + * - 当发布端未开启发布性能回退时,mode 值为 ByteRTCPerformanceAlarmModeNormal。 + * - 当发布端开启发布性能回退时,mode 值为 ByteRTCPerformanceAlarmModeSimulcast。 + * @param reason 告警原因,参看 ByteRTCPerformanceAlarmReason{@link #ByteRTCPerformanceAlarmReason} + * @param data 性能回退相关数据,详见 ByteRTCSourceWantedData{@link #ByteRTCSourceWantedData}。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onPerformanceAlarms:(NSString* _Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + mode:(ByteRTCPerformanceAlarmMode)mode + reason:(ByteRTCPerformanceAlarmReason)reason + sourceWantedData:(ByteRTCSourceWantedData *_Nonnull)data; +/** + * + * @type callback + * @brief 音视频流因网络环境变化等原因发生回退,或从回退中恢复时,触发该回调。 + * @param engine 当前 ByteRTCEngine 实例 + * @param streamId 流 ID + * @param info 流信息, 参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param event 流切换信息。详见 ByteRTCRemoteStreamSwitchEvent{@link #ByteRTCRemoteStreamSwitchEvent}。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onSimulcastSubscribeFallback:(NSString* _Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info event:(ByteRTCRemoteStreamSwitchEvent *_Nonnull)event; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden + * @type callback + * @brief 外部采集时,调用 setOriginalScreenVideoInfo:withOriginalCaptureHeight: 设置屏幕或窗口大小改变前的分辨率后,若屏幕采集模式为智能模式,你将收到此回调,根据 RTC 智能决策合适的帧率和分辨率积(宽*高)重新采集。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine} + * @param frameUpdateInfo RTC 智能决策后合适的帧率和分辨率积(宽*高)。参看 ByteRTCFrameUpdateInfo{@link #ByteRTCFrameUpdateInfo}。 + * @list Network Processing + */ + +- (void)rtcEngine: (ByteRTCEngine* _Nonnull)engine onExternalScreenFrameUpdate: (ByteRTCFrameUpdateInfo* _Nullable)frameUpdateInfo; +#endif +#pragma mark FileRecording related callback +/** + * + * @type callback + * @brief 获取本地录制状态回调。
    + * 该回调由 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 或 stopFileRecording:{@link #ByteRTCEngine#stopFileRecording:} 触发。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param state 录制状态,参看 ByteRTCRecordingState{@link #ByteRTCRecordingState} + * @param errorCode 录制错误码,参看 ByteRTCRecordingErrorCode{@link #ByteRTCRecordingErrorCode} + * @param recordingInfo 录制文件的详细信息,参看 ByteRTCRecordingInfo{@link #ByteRTCRecordingInfo} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onRecordingStateUpdate:(ByteRTCVideoSource* _Nullable)videoSource + state:(ByteRTCRecordingState)state + error_code:(ByteRTCRecordingErrorCode)errorCode + recording_info:(ByteRTCRecordingInfo* _Nonnull)recordingInfo; + +/** + * + * @type callback + * @brief 本地录制进度回调。
    + * 该回调由 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 触发,录制状态正常时,系统每秒钟都会通过该回调提示录制进度。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param process 录制进度,参看 ByteRTCRecordingProgress{@link #ByteRTCRecordingProgress} + * @param recordingInfo 录制文件的详细信息,参看 ByteRTCRecordingInfo{@link #ByteRTCRecordingInfo} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onRecordingProgressUpdate:(ByteRTCVideoSource* _Nullable)videoSource + process:(ByteRTCRecordingProgress* _Nonnull)process + recording_info:(ByteRTCRecordingInfo* _Nonnull)recordingInfo; +/** + * + * @type callback + * @brief 调用 startAudioRecording:{@link #ByteRTCEngine#startAudioRecording:} 或者 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 改变音频文件录制状态时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param state 录制状态,参看 ByteRTCAudioRecordingState{@link #ByteRTCAudioRecordingState} + * @param errorCode 录制错误码,参看 ByteRTCAudioRecordingErrorCode{@link #ByteRTCAudioRecordingErrorCode} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine + onAudioRecordingStateUpdate:(ByteRTCAudioRecordingState)state + error_code:(ByteRTCAudioRecordingErrorCode)errorCode; +/** + * + * @deprecated since 3.60, use rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} instead. + * @type callback + * @brief WTN 流发布结果回调。
    + * 调用 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:}
    + * 接口或直接在服务端启动推 WTN 流功能后,你会通过此回调收到启动结果和推流过程中的错误。 + * @param engine engine 实例 + * @param roomId 发布 WTN 流的房间 ID + * @param streamId WTN 流 ID。 + * @param errorCode WTN 流发布结果状态码。 详见 ByteRTCPublicStreamErrorCode{@link #ByteRTCPublicStreamErrorCode}。 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onPushPublicStreamResult:(NSString *_Nonnull)roomId + publicStreamId:(NSString *_Nonnull)streamId + errorCode:(ByteRTCPublicStreamErrorCode)errorCode; +/** + * + * @type callback + * @brief 调用 startCloudProxy:{@link #ByteRTCEngine#startCloudProxy:} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param engine `ByteRTCEngine` 实例 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + * @list 通话加密 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onCloudProxyConnected:(NSInteger)interval; +/** + * + * @type callback + * @brief 关于音视频回路测试结果的回调。 + * @param engine `ByteRTCEngine` 实例 + * @param result 测试结果,参看 ByteRTCEchoTestResult{@link #ByteRTCEchoTestResult}。 + * @note 该回调触发的时机包括:
    + * - 检测过程中采集设备发生错误时; + * - 检测成功后; + * - 非设备原因导致检测过程中未接收到音/视频回放,停止检测后。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEchoTestResult:(ByteRTCEchoTestResult)result NS_SWIFT_NAME(rtcEngine(_:onEchoTestResult:)); +/** + * + * @hidden for internal use only + * @type callback + * @brief 音频 dump 状态回调。 + * @param engine `ByteRTCEngine` 实例 + * @param status 音频 dump 状态,参看 ByteRTCAudioDumpStatus{@link #ByteRTCAudioDumpStatus}。 + * @note 本回调用于内部排查音质相关异常问题,开发者无需关注。 + * @list Network Processing + */ + +- (void)rtcEngine: (ByteRTCEngine* _Nonnull)engine onAudioDumpStateChanged: (ByteRTCAudioDumpStatus)status; +/** + * + * @type callback + * @brief 首次调用 getNetworkTimeInfo{@link #ByteRTCEngine#getNetworkTimeInfo} 后,SDK 内部启动网络时间同步,同步完成时会触发此回调。 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @list 网络管理 + */ + +- (void)rtcEngineOnNetworkTimeSynchronized:(ByteRTCEngine *_Nonnull)engine; +/** + * + * @hidden internal use only + * @type callback + * @brief license 过期时间提醒 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @param days 过期时间天数 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLicenseWillExpire:(NSInteger)days; +/** + * + * @type callback + * @brief AIGC(AI 音视频互动方案)使用 License 计费的场景下,当 License 配额用尽时,会收到该回调。收到该回调时,AIGC 服务会中止,请及时续费,并且建议离开房间、销毁 SDK。 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @param message 回调消息 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLicenseQuotaExceeded:(NSString *_Nullable)message; +/** + * + * @type callback + * @brief 通话前回声检测结果回调。 + * @param engine `ByteRTCEngine` 实例 + * @param result 参见 ByteRTCHardwareEchoDetectionResult{@link #ByteRTCHardwareEchoDetectionResult}。 + * @note + * - 通话前调用 startHardwareEchoDetection:{@link #ByteRTCEngine#startHardwareEchoDetection:} 后,将触发本回调返回检测结果。 + * - 建议在收到检测结果后,调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * - 如果 SDK 在通话中检测到回声,将通过 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调 `ByteRTCMediaDeviceWarningDetectLeakEcho`。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onHardwareEchoDetectionResult:(ByteRTCHardwareEchoDetectionResult)result NS_SWIFT_NAME(rtcEngine(_:onHardwareEchoDetectionResult:)); +/** + * + * @type callback + * @brief 本地代理状态发生改变回调。调用 setLocalProxy:{@link #ByteRTCEngin e#setLocalProxy:} 设置本地代理后,SDK 会触发此回调,返回代理连接的状态。 + * @param engine `ByteRTCEngine` 实例 + * @param type 本地代理类型。参看 ByteRTCLocalProxyType{@link #ByteRTCLocalProxyType} 。 + * @param state 本地代理状态。参看 ByteRTCLocalProxyState{@link #ByteRTCLocalProxyState}。 + * @param error 本地代理错误。参看 ByteRTCLocalProxyError{@link #ByteRTCLocalProxyError}。 + * @list 通话加密 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLocalProxyStateChanged:(ByteRTCLocalProxyType)type withProxyState:(ByteRTCLocalProxyState)state withProxyError:(ByteRTCLocalProxyError)error; +/** + * + * @hidden internal use only + * @type callback + * @brief 当特效设置失败时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param error 特效错误类型。参看 ByteRTCEffectErrorType{@link #ByteRTCEffectErrorType}。 + * @param msg 错误信息。 + * @list Encryption + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEffectError:(ByteRTCEffectErrorType)error msg:(NSString * _Nonnull)msg; +#pragma mark - CDN/WTN +/** + * + * @valid since 3.60. 自 3.60 起,该回调替代了 `onStreamMixingEvent:taskId:error:mixType:` 和 `rtcEngine:onPushPublicStreamResult:publicStreamId:errorCode:` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此回调。 + * @hidden(Linux) + * @type callback + * @brief 合流转推 CDN / WTN 流状态回调 + * @param engine ByteRTCEngine 对象。 + * @param event 任务事件,参看 ByteRTCMixedStreamTaskEvent{@link #ByteRTCMixedStreamTaskEvent}。 + * @param info 任务详情,参看 ByteRTCMixedStreamTaskInfo{@link #ByteRTCMixedStreamTaskInfo}。 + * @param errorCode 任务错误码,参看 ByteRTCMixedStreamTaskErrorCode{@link #ByteRTCMixedStreamTaskErrorCode}。 + * @list CDN 推流 + * @order 0 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onMixedStreamEvent:(ByteRTCMixedStreamTaskEvent)event withMixedStreamInfo:(ByteRTCMixedStreamTaskInfo*)info withErrorCode:(ByteRTCMixedStreamTaskErrorCode)errorCode; + /** + * + * @valid since 3.60. + * @type callback + * @brief 单流转推 CDN 状态回调。 + * @param engine ByteRTCEngine 对象。 + * @param event 任务状态, 参看 ByteRTCSingleStreamTaskEvent{@link #ByteRTCSingleStreamTaskEvent}。 + * @param taskId 任务 ID。 + * @param errorCode 错误码,参看 ByteRTCSingleStreamTaskErrorCode{@link #ByteRTCSingleStreamTaskErrorCode}。 + * @list CDN 推流 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSingleStreamEvent:(ByteRTCSingleStreamTaskEvent)event withTaskId:(NSString*)taskId withErrorCode:(ByteRTCSingleStreamTaskErrorCode)errorCode; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流音频首帧回调 + * @param taskId 任务 ID + * @list CDN 推流 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEffectError:(ByteRTCEffectErrorType)error msg:(NSString * _Nonnull)msg; +/** + * + * @type callback + * @valid since 3.60. + * @brief 调用 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath:} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 被截图的视频流 ID。 + * @param info 视频流信息,参考 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param filePath 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param errorCode 截图错误码。参看 ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode}。 + * @param taskId 截图任务的编号,和 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath:} 的返回值一致。 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteSnapshotTakenToFile:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info filePath:(NSString * _Nonnull)filePath width:(NSInteger)width height:(NSInteger)height errorCode:(ByteRTCSnapshotErrorCode)errorCode taskId:(NSInteger)taskId; +/** + * + * @type callback + * @valid since 3.60. + * @brief 调用 takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile:} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param engine ByteRTCEngine 对象。 + * @param videoSource 预留参数 + * @param filePath 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param errorCode 截图错误码。参看 ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode}。 + * @param taskId 截图任务的编号,和 takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile:} 的返回值一致。 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalSnapshotTakenToFile:(ByteRTCVideoSource* _Nullable)videoSource filePath:(NSString * _Nonnull)filePath width:(NSInteger)width height:(NSInteger)height errorCode:(ByteRTCSnapshotErrorCode)errorCode taskId:(NSInteger)taskId; + +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流视频首帧回调 + * @param taskId 任务 ID + * @list CDN 推流 + */ + + - (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onClientMixedFirstVideoFrame:(NSString *)taskId; +/** + * + * @hidden internal use only + * @valid since 3.60. + * @type callback + * @brief 试验性接口回调 + * @param param 回调内容(JSON string) + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onExperimentalCallback:(NSString * _Nonnull) param; +@end +#pragma mark - RTCEngine +/** + * + * @type api + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEngine : NSObject +/** + * + * @type callback + */ + +@property (nonatomic, weak) id _Nullable delegate; +/** + * @hidden + * @deprecated + */ + +@property (nonatomic, weak) id _Nullable monitorDelegate + __deprecated_msg("Will be removed in new version"); + + +/** + * + * @type api + * @brief 创建引擎对象。
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 ByteRTCEngineConfig{@link #ByteRTCEngineConfig} + * @param delegate SDK 回调给应用层的 delegate,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} + * @return 可用的 ByteRTCEngine{@link #ByteRTCEngine} 实例 + * @list 引擎管理 + */ + ++ (ByteRTCEngine * _Nullable) createRTCEngine:(ByteRTCEngineConfig * _Nonnull) config + delegate:(id _Nullable)delegate; +/** + * + * @hidden internal use only + * @type api + * @brief 创建多实例引擎对象
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 + * @param config 创建引擎参数配置,详见 ByteRTCEngineConfig{@link #ByteRTCEngineConfig} + * @param delegate SDK 回调给应用层的 delegate,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} + * @return + * - RTCVideo:创建成功。返回一个可用的 ByteRTCEngine{@link #ByteRTCEngine} 实例 + * - Null:.so 文件加载失败,创建失败。 + * @note 你应注意保持 handler 的生命周期必须大于 ByteRTCEngine 的生命周期,即 handler 必须在调用 destroyRTCEngine{@link #ByteRTCEngine#destroyRTCEngine} 之后销毁。 + */ + ++ (ByteRTCEngine * _Nullable) createRTCEngineMulti:(ByteRTCEngineConfig * _Nonnull)config + delegate:(id _Nullable)delegate; +/** + * + * @type api + * @brief 销毁由 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * - 可以通过 Objective-C 的 ARC 机制,在 dealloc 时自动触发销毁逻辑 + * @list 引擎管理 + */ + ++ (void)destroyRTCEngine NS_SWIFT_NAME(destroyRTCEngine()); +/** + * + * @hidden internal use only + * @type api + * @brief 销毁由 createRTCEngineMulti:delegate:{@link #ByteRTCEngine#createRTCEngineMulti:delegate:} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * - 可以通过 Objective-C 的 ARC 机制,在 dealloc 时自动触发销毁逻辑 + * @list 引擎管理 + */ + ++ (void)destroyRTCEngineMulti:(ByteRTCEngine*)engine; +/** + * + * @type api + * @brief 获取 SDK 当前的版本号。 + * @return SDK 当前的版本号。 + * @list 引擎管理 + */ + ++ (NSString * _Nonnull)getSDKVersion; +/** + * + * @type api + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param logConfig 本地日志参数,参看 ByteRTCLogConfig{@link #ByteRTCLogConfig}。 + * @return + * - 0:成功。 + * - –1:失败,本方法必须在创建引擎前调用。 + * - –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 之前调用。 + * @list 引擎管理 + */ + ++ (int) setLogConfig:(ByteRTCLogConfig *_Nonnull) logConfig; + +#pragma mark Core Audio Methods + +/** + * + * @type api + * @brief 切换音频采集方式 + * @param type 音频数据源,详见 ByteRTCAudioSourceType{@link #ByteRTCAudioSourceType}。
    + * 默认使用内部音频采集。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法由内部采集切换至自定义采集,SDK 会自动关闭内部采集。然后,调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 推送自定义采集的音频数据到 RTC SDK 用于传输。 + * - 如果你调用此方法由自定义采集切换至内部采集,你必须再调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 手动开启内部采集。 + * @list 自定义流处理 + */ + +- (int)setAudioSourceType:(ByteRTCAudioSourceType) type; +/** + * + * @type api + * @brief 切换音频渲染方式 + * @param type 音频输出类型,详见 ByteRTCAudioRenderType{@link #ByteRTCAudioRenderType}
    + * 默认使用内部音频渲染。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法切换至自定义渲染,调用 pullExternalAudioFrame:{@link #ByteRTCEngine#pullExternalAudioFrame:} 获取音频数据。 + * @list 自定义流处理 + */ + +- (int)setAudioRenderType:(ByteRTCAudioRenderType) type; +/** + * + * @type api + * @brief 开启内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法开启后,本地用户会收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStartAudioCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartAudioCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 若未取得当前设备的麦克风权限,调用该方法后会触发 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调,对应的错误码为 `ByteRTCMediaDeviceError.ByteRTCMediaDeviceErrorDeviceNoPermission = 1`。 + * - 调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 可以关闭音频采集设备,否则,SDK 只会在销毁引擎的时候自动关闭设备。 + * - 由于不同硬件设备初始化响应时间不同,频繁调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 和本接口闭麦/开麦可能出现短暂无声问题,建议使用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 实现临时闭麦和重新开麦。 + * - 创建引擎后,无论是否发布音频数据,你都可以调用该方法开启音频采集,并且调用后方可发布音频。 + * - 如果需要从自定义音频采集切换为内部音频采集,你必须先停止发布流,调用 setAudioSourceType:{@link #ByteRTCEngine#setAudioSourceType:} 关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 音频管理 + */ + +- (int)startAudioCapture; + /** + * + * @type api + * @brief 关闭内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法,本地用户会收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopAudioCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopAudioCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 可以开启音频采集设备。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部音频采集才会停止。 + * @list 音频管理 + */ + +- (int)stopAudioCapture; +/** + * + * @hidden(macOS) + * @valid since 3.60. + * @type api + * @brief 设置音频场景类型。
    + * 选择音频场景后,SDK 会自动根据场景切换对应的音量模式(通话音量/媒体音量)和该场景下的最佳音频配置。
    + * @param audioScenario 音频场景类型,参看 ByteRTCAudioScenarioType{@link #ByteRTCAudioScenarioType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 此接口必须在加入 RTC 房间前调用。 + * - 通话音量更适合通话、会议等对信息准确度更高的场景。通话音量会激活系统硬件信号处理,使通话声音更清晰。同时,音量无法降低到 0。 + * - 媒体音量更适合娱乐场景,因其声音的表现力会更强。媒体音量下,最低音量可以为 0。 + * @list 音频管理 + */ + +- (int)setAudioScenario:(ByteRTCAudioScenarioType)audioScenario; +/** + * + * @type api + * @brief 设置音质档位。
    + * 当所选的 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 中的音频参数无法满足你的场景需求时,调用本接口切换的音质档位。 + * @param audioProfile 音质档位,参看 ByteRTCAudioProfileType{@link #ByteRTCAudioProfileType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法在进房前后均可调用; + * - 支持通话过程中动态切换音质档位。 + * @list 音频管理 + */ + +- (int)setAudioProfile:(ByteRTCAudioProfileType)audioProfile; +/** + * + * @valid since 3.52 + * @type api + * @brief 支持根据业务场景,设置通话中的音频降噪模式。 + * @param ansMode 降噪模式。具体参见 ByteRTCAnsMode{@link #ByteRTCAnsMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该接口进房前后均可调用,可重复调用,仅最后一次调用生效。 + * - 降噪算法包含传统降噪和 AI 降噪。传统降噪主要是抑制平稳噪声,比如空调声、风扇声等。而 AI 降噪主要是抑制非平稳噪声,比如键盘敲击声、桌椅碰撞声等。 + * - 只有以下 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 场景时,调用本接口可以开启 AI 降噪。其余场景的 AI 降噪不会生效。 + * - 游戏语音模式: `ByteRTCRoomProfileGame` + * - 高音质游戏模式: `ByteRTCRoomProfileGameHD` + * - 云游戏模式: `ByteRTCRoomProfileCloudGame` + * - 1 vs 1 音视频通话: `ByteRTCRoomProfileChat` + * - 多端同步播放音视频:`ByteRTCRoomProfileLwTogether` + * - 云端会议中的个人设备:`ByteRTCRoomProfileMeeting` + * - 课堂互动模式:`ByteRTCRoomProfileClassroom` + * - 云端会议中的会议室终端:`ByteRTCRoomProfileMeetingRoom` + * @list 高级功能 + */ + +- (int)setAnsMode:(ByteRTCAnsMode)ansMode; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @valid since 3.51 + * @type api + * @brief 打开/关闭 AGC(Analog Automatic Gain Control)模拟自动增益控制功能。
    + * 开启该功能后,SDK 会自动调节麦克风的采集音量,确保音量稳定。 + * @param enable 是否打开 AGC 功能:
    + * - true: 打开 AGC 功能。 + * - false: 关闭 AGC 功能。 + * @return + * - 0: 调用成功。 + * - -1: 调用失败。 + * @note + * 该方法在进房前后均可调用。如果你需要在进房前使用 AGC 功能,请联系技术支持获得私有参数,传入对应 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 。
    + * 要想在进房后开启 AGC 功能,你需要把 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 设为 `ByteRTCRoomProfileMeeting`、`ByteRTCRoomProfileMeetingRoom` 或`ByteRTCRoomProfileClassroom` 。
    + * AGC 功能生效后,不建议再调用 `setAudioCaptureDeviceVolume:` 来调节设备麦克风的采集音量。 + * @list 音频管理 + */ + +- (int)enableAGC:(BOOL)enable; +#endif +/** + * + * @valid since 3.32 + * @type api + * @brief 设置变声特效类型 + * @param voiceChanger 变声特效类型,参看 ByteRTCVoiceChangerType{@link #ByteRTCVoiceChangerType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 如需使用该功能,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceReverbType:{@link #ByteRTCEngine#setVoiceReverbType:} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + +- (int)setVoiceChangerType:(ByteRTCVoiceChangerType)voiceChanger; +/** + * + * @valid since 3.32 + * @type api + * @brief 设置混响特效类型 + * @param voiceReverb 混响特效类型,参看 ByteRTCVoiceReverbType{@link #ByteRTCVoiceReverbType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceChangerType:{@link #ByteRTCEngine#setVoiceChangerType:} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + +- (int)setVoiceReverbType:(ByteRTCVoiceReverbType)voiceReverb; +/** + * + * @type api + * @brief 设置本地采集语音的均衡效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param config 语音均衡效果,参看 ByteRTCVoiceEqualizationConfig{@link #ByteRTCVoiceEqualizationConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 根据奈奎斯特采样率,音频采样率必须大于等于设置的中心频率的两倍,否则,设置不生效。 + * @list 音频处理 + */ + +-(int)setLocalVoiceEqualization:(ByteRTCVoiceEqualizationConfig* _Nonnull)config; +/** + * + * @type api + * @brief 设置本地采集音频的混响效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param param 混响效果,参看 ByteRTCVoiceReverbConfig{@link #ByteRTCVoiceReverbConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 调用 enableLocalVoiceReverb:{@link #ByteRTCEngine#enableLocalVoiceReverb:} 开启混响效果。 + * @list 音频处理 + */ + + -(int)setLocalVoiceReverbParam:(ByteRTCVoiceReverbConfig* _Nonnull)param; +/** + * + * @type api + * @brief 开启本地音效混响效果 + * @param enable 是否开启 + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 调用 setLocalVoiceReverbParam:{@link #ByteRTCEngine#setLocalVoiceReverbParam:} 设置混响效果。 + * @list 音频处理 + */ + +-(int)enableLocalVoiceReverb:(bool)enable; +/** + * + * @valid since 3.58.1 + * @type api + * @brief 设置是否将采集到的音频信号静音,而不改变本端硬件采集状态。 + * @param mute 是否静音音频采集。
    + * - True:静音(关闭麦克风) + * - False:(默认)开启麦克风 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 macOS 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 方法说明。 + * - 静音后通过 setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume:} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + +- (int)muteAudioCapture: (bool)mute; +/** + * + * @valid since 3.60. + * @type api + * @brief 静音/取消静音屏幕共享时采集的音频。
    + * 调用此方法后,SDK 将发送静音数据来代替真实的屏幕音频数据,不影响本端音频设备的采集状态和 SDK 音频流的采集发布状态。 + * @param mute 是否静音屏幕音频。
    + * - True:静音。远端用户听不到来自你屏幕共享的声音。 + * - False:(默认)取消静音。恢复发送屏幕共享的音频。 + * @return + * - 0:调用成功。 + * - < 0:调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 macOS 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 方法说明。 + * - 静音后通过 setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume:} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + +- (int)muteScreenAudioCapture: (bool)mute; +/** + * + * @type api + * @brief 调节音频采集音量 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0:静音 + * - 100:原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 在开启音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + +- (int)setCaptureVolume: (int)volume; +/** + * + * @type api + * @brief 调节屏幕共享时采集的音频音量。
    + * 只改变音频数据的音量信息,不影响麦克风采集的音量,也不会改变本端音频设备本身的音量。 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
    + * + 0:静音 + * + 100:原始音量 + * + 400:最大可为原始音量的 4 倍(自带溢出保护) + * @return + * + 0: 调用成功。
    + * + <0:调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 在开启屏幕音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + +- (int)setScreenCaptureVolume:(int)volume; +/** + * + * @type api + * @brief 调节本地播放的所有远端用户音频混音后的音量,混音内容包括远端人声、音乐、音效等。
    + * 播放音频前或播放音频时,你都可以使用此接口设定播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,当该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 或 setRemoteRoomAudioPlaybackVolume:{@link #ByteRTCRoom#setRemoteRoomAudioPlaybackVolume:} 共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setPlaybackVolume:(NSInteger)volume; +/** + * + * @type api + * @brief 启用音频信息提示。启用后,你可以收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:},rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume:},和 rtcEngine:onActiveSpeaker:uid:{@link #ByteRTCEngineDelegate#rtcEngine:onActiveSpeaker:uid:}。 + * @param config 详见 ByteRTCAudioPropertiesConfig{@link #ByteRTCAudioPropertiesConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + +- (int)enableAudioPropertiesReport:(ByteRTCAudioPropertiesConfig* _Nonnull)config; + +/** + * + * @type api + * @hidden 3.60 for internal use only + * @region 音频管理 + * @brief 启用音频人声识别能力。开启提示后,你会收到 rtcEngine:onAudioVADStateUpdate。 + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭人声识别能力回调。 + * + `[100, 3000]`: 开启人声识别能力回调,并将信息提示间隔设置为此值。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 音频管理 + */ + +- (int)enableAudioVADReport:(NSInteger)interval; +/** + * + * @hidden 3.60 for internal use only + * @type api + * @region 音频管理 + * @brief 启用AED检测。启用后,你可以收到 rtcEngine:onAudioAEDStateUpdate。 + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭回调。 + * + `[100, 3000]`: 开启回调,并将回调间隔设置为该值。推荐设置为 2000。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0:调用成功。 + * + <0:调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 音频管理 + */ + +- (int)enableAudioAEDReport:(NSInteger)interval; + +/** + * + * @type api + * @brief 调节本端播放收到的远端流时的音量。你必须在进房后进行设置。流的发布状态改变不影响设置生效。 + * @param streamId 远端流 ID。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内:
    + * - 当该方法与 setRemoteRoomAudioPlaybackVolume:{@link #ByteRTCRoom#setRemoteRoomAudioPlaybackVolume:} 共同使用时,本地收听用户 A 的音量为后调用的方法设置的音量; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * - 当你调用该方法设置远端流音量后,如果远端退房,接口设置失效。 + * @list 音频管理 + */ + +- (int)setRemoteAudioPlaybackVolume:(NSString* _Nonnull)streamId volume:(int)volume; +/** + * + * @type api + * @brief 开启/关闭耳返功能。 + * @param mode 是否开启耳返功能,参看 ByteRTCEarMonitorMode{@link #ByteRTCEarMonitorMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 使用耳返必须佩戴耳机。为保证低延时耳返最佳体验,建议佩戴有线耳机。 + * - 对于 iOS,仅支持软件耳返功能。 + * - 对于 macOS,耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorMode:(ByteRTCEarMonitorMode)mode; +/** + * + * @type api + * @valid since 3.60. + * @brief 开启/关闭耳返功能,并控制是否对耳返音频应用本地音频处理。 + * @param mode 是否开启耳返功能,参看 ByteRTCEarMonitorMode{@link #ByteRTCEarMonitorMode}。默认关闭。 + * @param filter 是否对耳返音频应用本地音频处理,参看 ByteRTCEarMonitorAudioFilter{@link #ByteRTCEarMonitorAudioFilter}。默认不经过音频处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 使用耳返功能必须佩戴耳机。为保证低延时耳返最佳体验,建议佩戴有线耳机。 + * - 对于 iOS,仅支持软件耳返功能。 + * - 对于 macOS,耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorMode:(ByteRTCEarMonitorMode)mode filter:(int)filter; +/** + * + * @type api + * @brief 设置耳返的音量。 + * @param volume 耳返的音量,取值范围:[0,100],单位:% + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 设置耳返音量前,你必须先调用 setEarMonitorMode:{@link #ByteRTCEngine#setEarMonitorMode:} 打开耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorVolume:(NSInteger)volume; +/** + * + * @hidden(macOS) + * @type api + * @brief 在纯媒体音频场景下,切换 iOS 设备与耳机之间的蓝牙传输协议。 + * @param mode 蓝牙传输协议。详见 ByteRTCBluetoothMode{@link #ByteRTCBluetoothMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 以下场景你会收到 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调:1)当前不支持设置 HFP;2)非纯媒体音频场景,建议在调用此接口前调用 setAudioScenario:{@link #ByteRTCEngine#setAudioScenario:} 设置纯媒体音频场景。 + * @list 音频管理 + */ + +- (int)setBluetoothMode:(ByteRTCBluetoothMode) mode; +/** + * + * @type api + * @brief 开启本地语音变调功能,多用于 K 歌场景。
    + * 使用该方法,你可以对本地语音的音调进行升调或降调等调整。 + * @param pitch 相对于语音原始音调的升高/降低值,取值范围[-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。
    + * 超出取值范围则设置失败,并且会触发 rtcEngine:onWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onWarning:} 回调,提示 ByteRTCWarningCode{@link #ByteRTCWarningCode} 错误码为 `WARNING_CODE_SET_SCREEN_STREAM_INVALID_VOICE_PITCH` 设置语音音调不合法 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频处理 + */ + +- (int)setLocalVoicePitch:(NSInteger)pitch; +/** + * + * @type api + * @brief 开启/关闭音量均衡功能。
    + * 开启音量均衡功能后,人声的响度会调整为 -16lufs。如果已调用 setAudioMixingLoudness:loudness: 传入了混音音乐的原始响度,此音乐播放时,响度会调整为 -20lufs。 + * @param enable 是否开启音量均衡功能:
    + * - YES: 是 + * - NO: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口须在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 开始播放音频文件之前调用。 + * @list 音频管理 + */ + +- (int)enableVocalInstrumentBalance:(BOOL)enable; +/** + * + * @type api + * @brief 打开/关闭音量闪避功能,适用于在 RTC 通话过程中会同时播放短视频或音乐的场景,如“一起看”等。
    + * 开启该功能后,当检测到远端人声时,RTC 本地的媒体播放音量会自动减弱,从而保证远端人声的清晰可辨;当远端人声消失时,RTC 的本地媒体音量会恢复到闪避前的音量水平。 + * @param enable 是否开启音量闪避:
    + * - YES: 是 + * - NO: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + +- (int)enablePlaybackDucking:(BOOL)enable; +#pragma mark Core Video Methods + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setLocalVideoSink:withLocalRenderConfig:{@link #ByteRTCEngine#setLocalVideoSink:withLocalRenderConfig:} instead. + * @region 自定义视频采集渲染 + * @brief 将本地视频流与自定义渲染器绑定。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param requiredFormat videoSink 适用的视频帧编码格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 如果需要解除绑定,必须将 videoSink 设置为 null。退房时将清除绑定状态。 + * - 一般在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * - 本方法获取的是前处理后的视频帧。 + */ + +- (int)setLocalVideoSink:(id _Nullable)videoSink + withPixelFormat:(ByteRTCVideoSinkPixelFormat)requiredFormat NS_SWIFT_NAME(setLocalVideoSink(withSink:withPixelFormat:)) + __deprecated_msg("Will be removed in new version"); + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate}。 + * @param config 本地视频帧回调配置,参看 ByteRTCLocalVideoSinkConfig{@link #ByteRTCLocalVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 videoSink 设置为 null。 + * - 一般在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * @list 自定义流处理 + */ + +- (int)setLocalVideoSink:(id _Nullable)videoSink + withLocalRenderConfig:(ByteRTCLocalVideoSinkConfig*)config NS_SWIFT_NAME(setLocalVideoSink(withSink:withLocalRenderConfig:)); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setRemoteVideoSink:withSink:withRemoteRenderConfig:{@link #ByteRTCEngine#setRemoteVideoSink:withSink:withRemoteRenderConfig:} instead. + * @region 自定义视频采集渲染 + * @brief 将远端视频流与自定义渲染器绑定。 + * @param streamId 远端流 ID。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param requiredFormat videoSink 适用的视频帧编码格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取到远端流信息之后,再调用该方法。 + * - 如果需要解除绑定,必须将 videoSink 设置为 null。退房时将清除绑定状态。 + * - 本方法获取的是后处理后的视频帧。 + */ + +- (int)setRemoteVideoSink:(NSString* _Nonnull)streamId + withSink:(id _Nullable)videoSink + withPixelFormat:(ByteRTCVideoSinkPixelFormat)requiredFormat NS_SWIFT_NAME(setRemoteVideoSink(_:withSink:withPixelFormat:)) + __deprecated_msg("Will be removed in new version"); + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 将远端视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param streamId 远端流 ID。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate}。 + * @param config 远端视频帧回调配置,参看 ByteRTCRemoteVideoSinkConfig{@link #ByteRTCRemoteVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取到远端流信息之后,再调用该方法。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 videoSink 设置为 null。 + * @list 自定义流处理 + */ + +- (int)setRemoteVideoSink:(NSString* _Nonnull)streamId + withSink:(id _Nullable)videoSink + withRemoteRenderConfig:(ByteRTCRemoteVideoSinkConfig*)config NS_SWIFT_NAME(setRemoteVideoSink(_:withSink:withRemoteRenderConfig:)); + +/** + * + * @hidden(macOS) for internal use + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置远端视频超分模式。 + * @param streamId 远端流 ID。 + * @param mode 超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + * @return + * - 0: ByteRTCReturnStatusSuccess,SDK 调用成功,并不代表超分模式实际状态,需要根据回调 rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:} 判断实际状态。 + * - -1: ByteRTCReturnStatusNativeInValid,native library 未加载。 + * - -2: ByteRTCReturnStatusParameterErr,参数非法,指针为空或字符串为空。 + * - -9: ByteRTCReturnStatusScreenNotSupport,不支持对屏幕流开启超分。 + * 其他错误码参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 如需使用该功能,需集成超分插件 ByteRTCVideoSRExtension.xcframework 及依赖库 bmf_mods_shared.xcframework,详情参看[按需集成插件](https: + * - 该方法须进房后调用。 + * - 远端用户视频流的原始分辨率不能超过 640 × 360 px。 + * - 支持对一路远端流开启超分,不支持对多路流开启超分。 + * @list 视频处理 + */ + +- (int)setRemoteVideoSuperResolution:(NSString* _Nonnull)streamId + withMode:(ByteRTCVideoSuperResolutionMode)mode; +/** + * + * @hidden not available on iOS + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置视频降噪模式。 + * @param mode 视频降噪模式。参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode}。 + * @return + * - 0: API 调用成功。(不适用于 iOS)用户可以根据回调函数 rtcEngine:onVideoDenoiseModeChanged:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDenoiseModeChanged:withReason:} 判断视频降噪是否开启。 + * - < 0: API 调用失败。 + * @note 如需使用该功能,需集成降噪插件 ByteRTCVideoDenoiseExtension.xcframework 及依赖库 bmf_mods_shared.xcframework,详情参看[按需集成插件](https: + * @list 视频处理 + */ + +- (int)setVideoDenoiser:(ByteRTCVideoDenoiseMode)mode; +/** + * + * @hidden(iOS) + * @valid since 3.57 + * @type api + * @brief 设置视频暗光增强模式。
    + * 对于光线不足、照明不均匀或背光等场景下推荐开启,可有效改善画面质量。 + * @param mode 默认不开启。参看 ByteRTCVideoEnhancementMode{@link #ByteRTCVideoEnhancementMode}。 + * @return + * - 0: API 调用成功。会立即生效,但需要等待下载和检测完成后才能看到增强后的效果。 + * - < 0: API 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 开启后会影响设备性能,应根据实际需求和设备性能决定是否开启。 + * - 对 RTC SDK 内部采集的视频和自定义采集的视频都生效。 + * @list 视频处理 + */ + +- (int)setLowLightAdjusted:(ByteRTCVideoEnhancementMode)mode; + + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本端采集的视频帧的旋转角度。
    + * 当摄像头倒置或者倾斜安装时,可调用本接口进行调整。对于手机等普通设备,可调用 setVideoRotationMode:{@link #ByteRTCEngine#setVideoRotationMode:} 实现旋转。 + * @param rotation 相机朝向角度,默认为 `ByteRTCVideoRotation0`,无旋转角度。详见 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 对于内部采集的视频画面,如果已调用 setVideoRotationMode:{@link #ByteRTCEngine#setVideoRotationMode:} 设置了旋转方向,会在此基础上叠加旋转角度。 + * - 调用本接口也将对自定义采集视频画面生效,在原有的旋转角度基础上叠加本次设置。 + * - 视频贴纸特效或通过 enableVirtualBackground{@link #ByteRTCVideoEffect#enableVirtualBackground:withSource:} 增加的虚拟背景,也会跟随本接口的设置进行旋转。 + * - 本地渲染视频和发送到远端的视频都会相应旋转,但不会应用到单流转推中。如果希望在单流转推的视频中应用旋转,调用 setVideoOrientation:{@link #ByteRTCEngine#setVideoOrientation:}。 + * @list 视频管理 + */ + +- (int)setVideoCaptureRotation:(ByteRTCVideoRotation)rotation; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置期望发布的最大分辨率视频流参数,包括分辨率、帧率、码率、网络不佳时的回退策略等(包含摄像头和屏幕的编码配置)。
    + * @param encoderConfig 期望发布的最大分辨率视频流参数。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 自 V3.61 版本,本接口仅设置一路视频流参数。默认状态下只有单流,如需开启多路小流请使用:setLocalSimulcastMode:config:{@link #ByteRTCEngine#setLocalSimulcastMode:config:}。 + * - 调用该方法前,SDK 默认仅发布一路视频流,分辨率为 640px × 360px @15fps,编码偏好为帧率优先。 + * - 使用自定义采集时,必须调用该方法设置编码参数,以保证远端收到画面的完整性。 + * - 该方法设置的参数会同时作用于摄像头采集的视频流和屏幕共享流。在 iOS 端进行屏幕共享时,如果你调用了该方法设置屏幕共享视频流的编码参数,则需要重新启动屏幕采集,否则设置不生效。 + * @list 视频管理 + */ + +- (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig; + +/** + * + * @hidden currently not available + * @brief iOS 和 Mac 不支持 Fov,对齐其他端预留接口。 + */ + +- (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig withParameters:(NSDictionary * _Nullable) parameters; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端开启大小流(simulcast)功能。 + * @param mode 详见 ByteRTCVideoSimulcastMode{@link #ByteRTCVideoSimulcastMode}。默认为只发送单流。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 你应在进房前调用本接口。 + * - 调用该方法前,SDK 默认仅发布一条分辨率为 640px × 360px,帧率为 15fps 的视频流。 + * - 如需自定义小流参数请查看它的重载方法 (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig withParameters:(NSDictionary * _Nullable) parameters。 + * - 该方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + +- (int)setLocalSimulcastMode:(ByteRTCVideoSimulcastMode)mode ; + +/** + * + * @valid since 3.60. + * @type api + * @brief 发布端进行大小流(simulcast)设置。 + * @param mode 详见 ByteRTCVideoSimulcastMode{@link #ByteRTCVideoSimulcastMode}。默认为只发送单流。你应在进房前调用修改本参数。 + * @param streamConfig 小流参数。最多可设置 3 路。分辨率按照从小到大顺序,且每路流参数分辨率需小于大流 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置参数。否则可能会设置失败。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 调用本方法前,SDK 默认仅发布一条分辨率为 640px × 360px @15fps 的视频流。 + * - 本方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + +- (int)setLocalSimulcastMode:(ByteRTCVideoSimulcastMode)mode config:(NSArray * _Nullable)streamConfig; + +/** + * + * @hidden(macOS) + * @valid since 3.58 + * @type api + * @brief 开启自定义采集视频帧的 Alpha 通道编码功能。
    + * 适用于需要分离推流端视频主体与背景,且在拉流端可自定义渲染背景的场景。 + * @param alphaLayout 分离后的 Alpha 通道相对于 RGB 通道信息的排列位置。当前仅支持 ByteRTCAlphaLayout.ByteRTCAlphaLayoutTop,即置于 RGB 通道信息上方。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该接口仅作用于自定义采集的 ByteRTCVideoPixelFormat.ByteRTCVideoPixelFormatCVPixelBuffer 格式视频帧。 + * - 该接口须在发布视频流之前调用。 + * - 调用本接口开启 Alpha 通道编码后,你需调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 把自定义采集的视频帧推送至 RTC SDK。若推送了不支持的视频帧格式,则调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 时会返回错误码 ByteRTCReturnStatus.ByteRTCReturnStatusParameterErr。 + * @list 视频管理 + */ + +-(int)enableAlphaChannelVideoEncode:(ByteRTCAlphaLayout)alphaLayout; +/** + * + * @hidden(macOS) + * @valid since 3.58 + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭外部采集视频帧的 Alpha 通道编码功能。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 该接口须在停止发布视频流之后调用。 + * @list 视频管理 + */ + +-(int)disableAlphaChannelVideoEncode; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数包括模式、分辨率、帧率。 + * @param captureConfig 视频采集参数。参看: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 前调用本接口。 + * - 建议同一设备上的不同引擎使用相同的视频采集参数。 + * - 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + * @list 视频管理 + */ + +- (int)setVideoCaptureConfig:(ByteRTCVideoCaptureConfig * _Nullable)captureConfig; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地视频渲染时使用的视图,并设置渲染模式。 + * @param canvas 视图信息和渲染模式,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} + * @return + * - 0:成功。 + * - -2: 参数错误。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 你应在加入房间前,绑定本地视图。退出房间后,此设置仍然有效。 + * - 如果需要解除绑定,你可以调用本方法传入空视图。 + * @list 视频管理 + */ + +- (int)setLocalVideoCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setLocalVideoCanvas(withCanvas:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 修改本地视频渲染模式和背景色。 + * @param renderMode 渲染模式。参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + * @param backgroundColor 背景颜色。参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 你可以在本地视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateLocalVideoCanvas:(ByteRTCRenderMode)renderMode + withBackgroundColor:(NSUInteger)backgroundColor NS_SWIFT_NAME(updateLocalVideoCanvas(withBackgroundColor:)); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 渲染来自指定远端用户 uid 的视频流时,设置使用的视图和渲染模式。
    + * 如果需要解除视频的绑定视图,把 `canvas.view` 设置为空。(`canvas` 中其他参数不能为空。) + * @param streamId 远端流 ID。 + * @param canvas 视图信息和渲染模式,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}。3.56 版本起支持通过 `renderRotation` 设置远端视频渲染的旋转角度。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 本地用户离开房间时,会解除调用此 API 建立的绑定关系;远端用户离开房间则不会影响。 + * @list 视频管理 + */ + +- (int)setRemoteVideoCanvas:(NSString* _Nonnull)streamId + withCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setRemoteVideoCanvas(_:withCanvas:)); + +/** + * + * @deprecated since 3.56, and will be deleted in 3.62. Use updateRemoteStreamVideoCanvas:withRemoteVideoRenderConfig:{@link #ByteRTCEngine#updateRemoteStreamVideoCanvas:withRemoteVideoRenderConfig:} instead. + * @type api + * @hiddensdk(audiosdk) + * @brief 修改远端视频帧的渲染设置,包括渲染模式和背景颜色。 + * @param streamId 远端流 ID。 + * @param renderMode 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + * @param backgroundColor 背景颜色,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 你可以在远端视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateRemoteStreamVideoCanvas:(NSString* _Nonnull)streamId + withRenderMode:(ByteRTCRenderMode)renderMode + withBackgroundColor:(NSUInteger)backgroundColor NS_SWIFT_NAME(updateRemoteStreamVideoCanvas(_:withRenderMode:withBackgroundColor:)); + +/** + * + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 SDK 内部渲染时,修改远端视频帧的渲染设置,包括渲染模式、背景颜色和旋转角度。 + * @param streamId 远端流 ID。 + * @param remoteVideoRenderConfig 视频帧渲染设置。具体参看 ByteRTCRemoteVideoRenderConfig{@link #ByteRTCRemoteVideoRenderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 setRemoteVideoCanvas:withCanvas:{@link #ByteRTCEngine#setRemoteVideoCanvas:withCanvas:} 设置了远端视频渲染模式后,你可以调用此接口更新渲染模式、背景颜色、旋转角度的设置。 + * - 该接口可以在远端视频渲染过程中调用,调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateRemoteStreamVideoCanvas:(NSString* _Nonnull)streamId + withRemoteVideoRenderConfig:(ByteRTCRemoteVideoRenderConfig * _Nonnull)remoteVideoRenderConfig + NS_SWIFT_NAME(updateRemoteStreamVideoCanvas(_:withRemoteVideoRenderConfig:)); + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStartVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartVideoCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。 + * - 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。 + * - 如果需要从自定义视频采集切换为内部视频采集,你必须先停止发布流,关闭自定义采集,再调用此方法手动开启内部采集。 + * - 内部视频采集使用的摄像头由 switchCamera:{@link #ByteRTCEngine#switchCamera:} 接口指定。(macOS 不支持) + * - 自 v3.37.0 升级版本,你需要在应用中向用户申请摄像头权限后才能开始采集。 + * @list 视频管理 + */ + +- (int)startVideoCapture NS_SWIFT_NAME(startVideoCapture()); + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopVideoCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 可以开启内部视频采集。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + * @list 视频管理 + */ + +- (int)stopVideoCapture NS_SWIFT_NAME(stopVideoCapture()); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 为采集到的视频流开启镜像 + * @param mirrorType 镜像类型,参看 ByteRTCMirrorType{@link #ByteRTCMirrorType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 切换视频源不影响镜像设置。 + * - 屏幕视频流始终不受镜像设置影响。 + * - 使用外部渲染器时,`mirrorType` 支持设置为 `0`(无镜像)和 `3`(本地预览和编码传输镜像),不支持设置为 `1`(本地预览镜像)。 + * - 该接口调用前,各视频源的初始状态如下: + * + * + * + * + *
    前置摄像头后置摄像头自定义采集视频源 桌面端摄像头
    移动端本地预览镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 /
    桌面端// 本地预览不镜像,编码传输不镜像 本地预览镜像,编码传输不镜像
    + * @list 视频处理 + */ + +- (int)setLocalVideoMirrorType:(ByteRTCMirrorType) mirrorType; + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用内部渲染时,为远端流开启镜像。 + * @param streamId 远端流 ID。 + * @param mirrorType 远端流的镜像类型,参看 ByteRTCRemoteMirrorType{@link #ByteRTCRemoteMirrorType}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 视频处理 + */ + +- (int)setRemoteVideoMirrorType:(NSString* _Nonnull)streamId withMirrorType:(ByteRTCRemoteMirrorType)mirrorType; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置采集视频的旋转模式。默认以 App 方向为旋转参考系。
    + * 接收端渲染视频时,将按照和发送端相同的方式进行旋转。 + * @param rotationMode 视频旋转参考系为 App 方向或重力方向,参看 ByteRTCVideoRotationMode{@link #ByteRTCVideoRotationMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 旋转仅对内部视频采集生效,不适用于外部视频源和屏幕源。 + * - 调用该接口时已开启视频采集,将立即生效;调用该接口时未开启视频采集,则将在采集开启后生效。 + * - 更多信息请参考[视频采集方向](https: + * @list 视频管理 + */ + +- (int)setVideoRotationMode:(ByteRTCVideoRotationMode) rotationMode; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在自定义视频前处理及编码前,设置 RTC 链路中的视频帧朝向,默认为 Adaptive 模式。
    + * 移动端开启视频特效贴纸,或使用自定义视频前处理时,建议固定视频帧朝向为 Portrait 模式。单流转推场景下,建议根据业务需要固定视频帧朝向为 Portrait 或 Landscape 模式。不同模式的具体显示效果参看[视频帧朝向](https: + * @param orientation 视频帧朝向,参看 ByteRTCVideoOrientation{@link #ByteRTCVideoOrientation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 视频帧朝向设置仅适用于内部采集视频源。对于自定义采集视频源,设置视频帧朝向可能会导致错误,例如宽高对调。屏幕源不支持设置视频帧朝向。 + * - 编码分辨率的更新与视频帧处理是异步操作,进房后切换视频帧朝向可能导致画面出现短暂的裁切异常,因此建议在进房前设置视频帧朝向,且不在进房后进行切换。 + * @list 视频处理 + */ + +- (int)setVideoOrientation:(ByteRTCVideoOrientation) orientation; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 切换视频内部采集时使用的前置/后置摄像头
    + * 调用此接口后,在本地会触发 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @param cameraId 摄像头类型,参看 ByteRTCCameraID{@link #ByteRTCCameraID}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 默认使用前置摄像头。 + * - 如果你正在使用相机进行视频采集,切换操作当即生效;如果相机未启动,后续开启内部采集时,会打开设定的摄像头。 + * @list 视频管理 + */ + +- (int)switchCamera:(ByteRTCCameraID) cameraId; +/** + * + * @type api + * @brief 获取视频特效接口。 + * @return 视频特效接口,参看 ByteRTCVideoEffect{@link #ByteRTCVideoEffect}。 + * @list 视频处理 + */ + +- (ByteRTCVideoEffect* _Null_unspecified)getVideoEffectInterface NS_SWIFT_NAME(getVideoEffectInterface()); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 开启/关闭基础美颜。 + * @param enable 基础美颜开关
    + * - YES: 开启基础美颜 + * - NO: 关闭基础美颜(默认) + * @return + * - 0: 调用成功。 + * - –1001: RTC SDK 版本不支持此功能。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 本方法不能与高级视频特效接口共用。如已购买高级视频特效,建议参看[集成指南](https: + * - 使用此功能需要集成特效 SDK,建议使用特效 SDK v4.4.2+ 版本。更多信息参看 [Native 端基础美颜](https: + * - 调用 setBeautyIntensity:withIntensity:{@link #ByteRTCEngine#setBeautyIntensity:withIntensity:} 设置基础美颜强度。若在调用本方法前没有设置美颜强度,则使用默认强度。各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * - 本方法仅适用于视频源,不适用于屏幕源。 + * @list 视频处理 + */ + +- (int) enableEffectBeauty:(BOOL)enable; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 调整基础美颜强度。 + * @param beautyMode 基础美颜模式,参看 ByteRTCEffectBeautyMode{@link #ByteRTCEffectBeautyMode}。 + * @param intensity 美颜强度,取值范围为 [0,1]。强度为 0 表示关闭。
    + * 各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * @return + * - 0: 调用成功。 + * - –2: `intensity` 范围超限。 + * - –1001: RTC SDK 版本不支持此功能。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 若在调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect} 前设置美颜强度,则对应美颜功能的强度初始值会根据设置更新。 + * - 销毁引擎后,美颜功能强度恢复默认值。 + * @list 视频处理 + */ + +- (int) setBeautyIntensity:(ByteRTCEffectBeautyMode) beautyMode + withIntensity:(float)intensity; + +#pragma mark - ICameraControl +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头(前置/后置)的变焦倍数 + * @param zoomRatio 变焦倍数。取值范围是 [1, <最大变焦倍数>]。
    + * 最大变焦倍数可以通过调用 getCameraZoomMaxRatio{@link #ByteRTCEngine#getCameraZoomMaxRatio} 获取。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置摄像头变焦倍数。 + * - 设置结果在调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后失效。 + * - 你可以调用 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置数码变焦参数,调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 进行数码变焦。 + * @list 视频管理 + */ + +- (int) setCameraZoomRatio: (float) zoomRatio; +/** + * + * @hidden(macOS) + * @type api + * @brief 获取当前使用的摄像头(前置/后置)的最大变焦倍数 + * @return 最大变焦倍数 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头最大变焦倍数。 + * @list 视频管理 + */ + +- (float) getCameraZoomMaxRatio; +/** + * + * @hidden(macOS) + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持变焦(数码/光学变焦)。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头变焦能力。 + * @list 视频管理 + */ + +- (bool) isCameraZoomSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持闪光灯。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测闪光能力。 + * @list 视频管理 + */ + +- (bool) isCameraTorchSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 打开/关闭当前使用的摄像头(前置/后置)的闪光灯 + * @param torchState 打开/关闭。参看 ByteRTCTorchState{@link #ByteRTCTorchState}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置闪光灯。 + * - 设置结果在调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后失效。 + * @list 视频管理 + */ + +- (int) setCameraTorch: (ByteRTCTorchState)torchState; +/** + * + * @hidden(macOS) + * @type api + * @brief 检查当前使用的摄像头是否支持手动对焦。 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,才能检查摄像头是否支持手动对焦。 + * @list 视频管理 + */ + +- (bool)isCameraFocusPositionSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的对焦点。 + * @param position 对焦点坐标。以本地预览画布的左上为坐标原点,`position`的`x`字段为对焦点水平方向归一化坐标,`y`字段为对焦点垂直方向归一化坐标,取值范围为 [0, 1]。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置对焦点。 + * - 对焦点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的对焦点失效。 + * @list 视频管理 + */ + +- (int)setCameraFocusPosition:(CGPoint)position; +/** + * + * @hidden(macOS) + * @type api + * @brief 检查当前使用的摄像头是否支持手动设置曝光点。 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。 + * @list 视频管理 + */ + +- (bool)isCameraExposurePositionSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的曝光点。 + * @param position 曝光点坐标。以本地预览画布的左上为坐标原点,`position`的`x`字段为曝光点水平方向归一化坐标,`y`字段为曝光点垂直方向归一化坐标,取值范围为 [0, 1]。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 + * - 曝光点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的曝光点失效。 + * @list 视频管理 + */ + +- (int)setCameraExposurePosition:(CGPoint)position; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的曝光补偿。 + * @param val 曝光补偿值,取值范围 [-1, 1],0 为系统默认值(没有曝光补偿)。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的曝光补偿失效。 + * @list 视频管理 + */ + +- (int)setCameraExposureCompensation:(float)val; +/** + * + * @hidden(macOS) + * @valid since 353 + * @type api + * @brief 启用或禁用内部采集时人脸自动曝光模式。此模式会改善强逆光下,脸部过暗的问题;但也会导致 ROI 以外区域过亮/过暗的问题。 + * @param enable 是否启用。iOS默认开启,Android默认关闭。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note 在采集前或采集中调用此接口均可生效。 + * @list 视频管理 + */ + +- (int)enableCameraAutoExposureFaceMode:(bool)enable; +/** + * + * @hidden(macOS) + * @valid since 353 + * @type api + * @brief 设置内部采集适用动态帧率时,帧率的最小值。 + * @param framerate 最小值。单位为 fps。默认值是 7。
    + * 动态帧率的最大帧率是通过 setVideoCaptureConfig:{@link #ByteRTCEngine#setVideoCaptureConfig:} 设置的帧率值。当传入参数大于最大帧率时,使用固定帧率模式,帧率为最大帧率;当传入参数小于最大帧率时,使用动态帧率。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 你必须在调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 如果由于性能降级、静态适配等原因导致采集最大帧率变化时,已设置的最小帧率值会与新的采集最大帧率值重新比较。比较结果变化可能导致固定/动态帧率模式切换。 + * - 对 Android,默认开启动态帧率模式 + * - 对 iOS,默认使用固定帧率模式 + * @list 视频管理 + */ + +- (int)setCameraAdaptiveMinimumFrameRate:(int)framerate; + +#pragma mark - MediaMetadataData InnerVideoSource +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 通过视频帧发送 SEI 数据。
    + * 在视频通话场景下,SEI 数据会随视频帧发送;在语音通话场景下,SDK 会自动生成一路 16px × 16px 的黑帧视频流用来发送 SEI 数据。 + * @param message SEI 消息,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeatCount 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeatCount+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 ByteRTCSEICountPerFrame{@link #ByteRTCSEICountPerFrame}。 + * @return + * - >= 0: 将被添加到视频帧中的 SEI 的数量。 + * - < 0: 发送失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。在语音通话场景下,黑帧帧率为 15 fps。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 语音通话场景中,仅支持在内部采集模式下调用该接口发送 SEI 数据。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据;语音通话场景下,若调用此接口后 1min 内未有 SEI 数据发送,则 SDK 会自动取消发布视频黑帧。 + * - 消息发送成功后,远端会收到 rtcEngine:onSEIMessageReceived:info:andMessage:{@link #ByteRTCEngineDelegate#rtcEngine:onSEIMessageReceived:info:andMessage:} 回调。 + * - 语音通话切换至视频通话时,会停止使用黑帧发送 SEI 数据,自动转为用采集到的正常视频帧发送 SEI 数据。 + * @list 消息 + */ + +- (int)sendSEIMessage: (NSData* _Nonnull)message andRepeatCount:(int)repeatCount andCountPerFrame:(ByteRTCSEICountPerFrame) mode; +/** + * + * @type api + * @list 消息 + * @brief 以 Key-Value 格式通过视频帧发送 SEI 数据。 + * 调用此接口前,必须在调用 setLiveMode:{@link #ByteRTCRoom#setLiveMode:} 时将房间模式设置为 `kRoomLiveModeSoloHost` 开启单人直播模式。 + * @param jsonString JSON 格式的键值对,例如 `{"key1":"value1","key2":"value2"}`: + * - 如果某个 Key 对应的 Value 为空(例如 `""` 或 `null`),则会从 SEI 字典中删除该 Key; + * - 所有 Key-Value 合并后的总 SEI 数据大小不能超过 10KB。 + * @param count 连续发送该 SEI 数据的次数。 + * - 当 `isKeyFrameOnly` 为 YES 时,代表伴随 `count` 个关键帧(I 帧)发送; + * - 当 `isKeyFrameOnly` 为 NO 时,代表伴随 `count` 个视频帧发送。 + * @param isKeyFrameOnly 是否只随关键帧(I 帧)发送: + * - YES:只在关键帧发送; + * - NO:所有帧都会发送。 + * @param allowOverwrite 设置该 Key 写入后,后续请求是否允许覆盖它: + * - true:后续请求可覆盖该 Key 的 Value,且 `count` 也会更新为新值; + * - false:后续请求会忽略该 Key 的新值,保持原样。对于已存在的 Key,是否允许本次覆盖取决于该 Key 已保存的覆盖策略。 + * @return + * - 0: 调用成功。 + * - < 0: 发送失败。 + * - -1: 视频模块未启用。 + * - -2: 参数错误(JSON 为空或 count <= 0)。 + * - -3: JSON 格式错误。 + * - -4: SEI 数据总大小超过限制。 + */ + +- (int)sendLivePushSEIMessage:(NSString *_Nonnull)jsonString + count:(NSInteger)count + isKeyFrameOnly:(BOOL)isKeyFrameOnly + allowOverwrite:(BOOL)allowOverwrite; +/** + * + * @hidden for internal use only + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief WTN 流视频帧发送 SEI 数据。 + * @param channelId SEI 的消息传输通道,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message SEI 消息。 + * @param repeatCount 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 ByteRTCSEICountPerFrame{@link #ByteRTCSEICountPerFrame}。 + * @return + * - < 0:说明调用失败 + * - = 0:说明当前发送队列已满,无法发送 + * - > 0: 说明调用成功,该数值为已经发送 SEI 的数量 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据 + * - 消息发送成功后,远端会收到 rtcEngine:onPublicStreamSEIMessageReceivedWithChannel:andChannelId:andMessage:回调。 + * - 调用失败时,本地及远端都不会收到回调。 + * @list 消息 + */ + +- (int)sendPublicStreamSEIMessage: (int)channelId andMessage:(NSData* _Nonnull)message andRepeatCount:(int)repeatCount andCountPerFrame:(ByteRTCSEICountPerFrame)mode; +#pragma mark - VideoFrameObserver InnerVideoSource +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地摄像头数码变焦参数,包括缩放倍数,移动步长。 + * @param type 数码变焦参数类型,缩放系数或移动步长。参看 ByteRTCZoomConfigType{@link #ByteRTCZoomConfigType}。必填。 + * @param size 缩放系数或移动步长,保留到小数点后三位。默认值为 0。必填。
    + * 选择不同 `type` 时有不同的取值范围。当计算后的结果超过缩放和移动边界时,取临界值。
    + * - `ByteRTCZoomConfigTypeFocusOffset`:缩放系数增量,范围为 [0, 7]。例如,设置为 0.5 时,如果调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 选择 Zoom in,则缩放系数增加 0.5。缩放系数范围 [1,8],默认为 `1`,原始大小。 + * - `ByteRTCZoomConfigTypeMoveOffset`:移动百分比,范围为 [0, 0.5],默认为 0,不移动。如果调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 选择的是左右移动,则移动距离为 size x 原始视频宽度;如果选择的是上下移动,则移动距离为 size x 原始视频高度。例如,视频帧边长为 1080 px,设置为 0.5 时,实际移动距离为 0.5 x 1080 px = 540 px。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 每次调用本接口只能设置一种参数。如果缩放系数和移动步长都需要设置,分别调用本接口传入相应参数。 + * - 由于移动步长的默认值为 `0` ,在调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 或 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:} 进行数码变焦操作前,应先调用本接口。 + * @list 视频处理 + */ + +- (int)setVideoDigitalZoomConfig:(ByteRTCZoomConfigType)type size:(float)size; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 控制本地摄像头数码变焦,缩放或移动一次。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ByteRTCZoomDirectionType{@link #ByteRTCZoomDirectionType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 如果你希望实现持续数码变焦操作,调用 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio:`. + * @list 视频处理 + */ + +- (int)setVideoDigitalZoomControl:(ByteRTCZoomDirectionType) direction; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地摄像头持续数码变焦,缩放或移动。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ByteRTCZoomDirectionType{@link #ByteRTCZoomDirectionType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值并停止操作。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 你也可以调用 stopVideoDigitalZoomControl{@link #ByteRTCEngine#stopVideoDigitalZoomControl} 手动停止控制。 + * - 如果你希望实现单次数码变焦操作,调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:}。 + * - 如果你希望实现单次数码变焦操作,调用 `setVideoDigitalZoomControl:`。 + * @list 视频处理 + */ + +- (int)startVideoDigitalZoomControl:(ByteRTCZoomDirectionType)direction; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地摄像头持续数码变焦。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 关于开始数码变焦,参看 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:}。 + * @list 视频处理 + */ + +- (int)stopVideoDigitalZoomControl; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置自定义视频前处理器。
    + * 使用这个视频前处理器,你能够调用 processVideoFrame:{@link #ByteRTCVideoProcessorDelegate#processVideoFrame:} 对 RTC SDK 采集得到的视频帧进行前处理,并将处理后的视频帧用于 RTC 音视频通信。 + * @param processor 自定义视频处理器,详见 ByteRTCVideoProcessorDelegate{@link #ByteRTCVideoProcessorDelegate}。如果传入 null,则不对 RTC SDK 采集得到的视频帧进行前处理。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。
    + * 在设计 `processor` 时,应从 ByteRTCVideoFrame{@link #ByteRTCVideoFrame} 的 `textureBuf` 字段获取视频帧数据;
    + * 处理后返回的视频帧数据格式应为 ByteRTCVideoPixelFormat{@link #ByteRTCVideoPixelFormat} 中的 `ByteRTCVideoPixelFormatCVPixelBuffer`,且必须存放在返回帧数据的 `textureBuf` 字段中。 + * @param config 自定义视频前处理器适用的设置,详见 ByteRTCVideoPreprocessorConfig{@link #ByteRTCVideoPreprocessorConfig}。
    + * 当前,`config` 中的 `required_pixel_format` 仅支持:`ByteRTCVideoPixelFormatI420` 和 `ByteRTCVideoPixelFormatUnknown`:
    + * - 设置为 `Unknown` 时,RTC SDK 给出供 processor 处理的视频帧格式即采集的格式。 + * - 设置为 `ByteRTCVideoPixelFormatI420` 时,RTC SDK 会将采集得到的视频转变为对应的格式,供前处理使用。 + * - 设置为其他值时,此方法调用失败。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 重复调用此接口时,仅最后一次调用生效。效果不会叠加。 + * - 对于 iOS 平台,将 ByteRTCVideoPreprocessorConfig{@link #ByteRTCVideoPreprocessorConfig} 中的 requiredPixelFormat 设置为 `kVideoPixelFormatUnknown`,可以通过避免格式转换带来一些性能优化。 + * @list 自定义流处理 + */ + +- (int)registerLocalVideoProcessor:(_Nullable id) processor + withConfig:(ByteRTCVideoPreprocessorConfig* _Nullable)config NS_SWIFT_NAME(registerLocalVideoProcessor(_:withConfig:)); +#pragma mark - LocalEncodedVideoFrameObserver +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册本地视频帧监测器。
    + * 无论使用内部采集还是自定义采集,调用该方法后,SDK 每监测到一帧本地视频帧时,都会将视频帧信息通过 onLocalEncodedVideoFrame:Frame:{@link #ByteRTCLocalEncodedVideoFrameObserver#onLocalEncodedVideoFrame:Frame:} 回调给用户 + * @param frameObserver 本地视频帧监测器,参看 ByteRTCLocalEncodedVideoFrameObserver{@link #ByteRTCLocalEncodedVideoFrameObserver}。将参数设置为 nullptr 则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该方法可在进房前后任意时间调用,在进房前调用可保证尽可能早地监测视频帧并触发回调 + * @list 自定义流处理 + */ + +- (int)registerLocalEncodedVideoFrameObserver:(_Nullable id) frameObserver NS_SWIFT_NAME(registerLocalEncodedVideoFrameObserver(_:)); +#pragma mark Audio Routing Controller +/** + * + * @hidden(macOS) + * @type api + * @brief 强制切换当前的音频播放路由。默认使用 setDefaultAudioRoute:{@link #ByteRTCEngine#setDefaultAudioRoute:} 中设置的音频路由。
    + * 音频播放路由发生变化时,会收到 rtcEngine:onAudioRouteChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioRouteChanged:} 回调。 + * @param audioRoute 音频播放路由,参见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute}。仅支持扬声器和默认路由设备。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 对于绝大多数音频场景,推荐使用 setDefaultAudioRoute:{@link #ByteRTCEngine#setDefaultAudioRoute:} 设置默认音频路由,并借助 RTC SDK 的音频路由自动切换逻辑即可完成。切换逻辑参见[移动端设置音频路由](https: + * - 本接口支持在通话模式和媒体模式下使用,切换的目标路由仅支持内置扬声器。 + * - 不同音频场景中,音频路由和发布订阅状态到音量类型的映射关系详见 ByteRTCAudioScenarioType{@link #ByteRTCAudioScenarioType} 。 + * @list 音频管理 + */ + +- (int)setAudioRoute:(ByteRTCAudioRoute)audioRoute; +/** + * + * @hidden(macOS) + * @type api + * @brief 获取当前使用的音频播放路由。 + * @return 详见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute} + * @note 要设置音频路由,详见 setAudioRoute:{@link #ByteRTCEngine#setAudioRoute:},仅适用于移动端。 + * @list 音频管理 + */ + +- (ByteRTCAudioRoute)getAudioRoute; +/** + * + * @type api + * @brief 启用匹配外置声卡的音频处理模式 + * @param enable
    + * - true: 开启 + * - false: 不开启(默认) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 当采用外接声卡进行音频采集时,建议开启此模式,以获得更好的音质。 + * - 开启此模式时,仅支持耳机播放。如果需要使用扬声器或者外置音箱播放,关闭此模式。 + * @list 音频管理 + */ + +- (int)enableExternalSoundCard:(bool)enable; + /** + * + * @hidden(macOS) + * @type api + * @brief 将默认的音频播放设备设置为听筒或扬声器。 + * @param audioRoute 音频播放设备。参看 ByteRTCAudioRoute{@link #ByteRTCAudioRoute}。仅支持听筒或扬声器。 + * @return + * - 0: 方法调用成功。 + * - < 0: 方法调用失败。 + * @note 对于音频路由切换逻辑,参见[移动端设置音频路由](https: + * @list 音频管理 + */ + +- (int)setDefaultAudioRoute:(ByteRTCAudioRoute)audioRoute; +#pragma mark WTN/CDN +/** + * + * @hiddensdk(audiosdk) + * @hidden for internal use only + * @type api + */ + +- (int)pushClientMixedStreamExternalVideoFrame:(NSString * _Nonnull)uid withFrame:(ByteRTCVideoFrameData * _Nonnull)frame; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @region 转推 CDN/WTN + * @brief 设置客户端合流的观察者 + * @param observer 客户端转推直播观察者。详见 ByteRTCClientMixedStreamDelegate{@link #ByteRTCClientMixedStreamDelegate}。
    + * 通过注册 observer 接收转推直播相关的回调。 + * @return 方法调用结果。
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list CDN 推流 + */ + +- (int)setClientMixedStreamObserver:(_Nullable id)observer; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)startClientMixedStream:(NSString * _Nonnull)taskId withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config + withExtraConfig:(ByteRTCClientMixedStreamConfig*)extraConfig; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)updateClientMixedStream:(NSString * _Nonnull)taskId withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config withExtraConfig:(ByteRTCClientMixedStreamConfig*)extraConfig; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)stopClientMixedStream:(NSString*)taskId; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushMixedStreamToCDN:mixedConfig:observer:` 和 `startPushPublicStream:withLayout:` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 指定房间中的媒体流,合成后一路流发布到 CDN 或发布一路 WTN 流。 + * @param taskId 转推直播任务 ID,长度不超过 127 字节。 当 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig} 中的 `PushTargetType = 0` 时, 用于标识转推直播任务。你可以在同一房间内发起多个转推直播任务,并用不同的 ID 加以区分。当你需要发起多个转推直播任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * 当 `PushTargetType = 1` 时,设置无效,传空即可。 + * @param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN流 ID。参看 ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}。 + * @param config 合流转推配置参数,比如设置合流的图片、视频视图布局和音频属性。参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。 + * @return + * - 0: 成功。你可以通过 rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} 回调获取启动结果和推流过程中的事件。 + * - !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在[控制台](https: + * - 调用 stopPushMixedStream:withPushTargetType:{@link #ByteRTCEngine#stopPushMixedStream:withPushTargetType:} 停止转推直播。 + * - 调用 updatePushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#updatePushMixedStream:withPushTargetConfig:withMixedConfig:} 可以更新部分任务参数。 + * @list CDN 推流 + * @order 0 + */ + +- (int)startPushMixedStream:(NSString * _Nonnull)taskId withPushTargetConfig:(ByteRTCMixedStreamPushTargetConfig*)pushTargetConfig withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `updatePushMixedStreamToCDN:mixedConfig:` 和 `updatePublicStreamParam:withLayout:` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新推 CDN/WTN 流转推参数,会收到 rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} 回调。
    + * 使用 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:} 启用转推直播功能后,使用此方法更新功能配置参数。 + * @param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN流 ID。参看 ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}。 + * @param config 转推直播配置参数,参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。除特殊说明外,均支持过程中更新。
    + * 调用时,结构体中没有传入值的属性,会被更新为默认值。 + * @return + * - 0: 成功。 + * - !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + * @order 4 + */ + +- (int)updatePushMixedStream:(NSString *_Nonnull)taskId withPushTargetConfig:(ByteRTCMixedStreamPushTargetConfig*)pushTargetConfig withMixedConfig:(ByteRTCMixedStreamConfig *_Nonnull)config; + +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 方法来停止合流转推任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止 WTN 流或合流转推 CDN 任务。 + * @param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param pushTargetType 参看 ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}。 + * @return + * + 0: 成功 + * + !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 关于启动合流转推直播或 WTN 流,参看 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:}。 + * @list CDN 推流 + * @order 3 + */ + +- (int)stopPushMixedStream:(NSString *_Nonnull)taskId withPushTargetType:(ByteRTCMixedStreamPushTargetType)pushTargetType; +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushSingleStreamToCDN` 来启动单流转推任务。 + * @hiddensdk(audiosdk) + * @brief 将房间内某一路音视频流,推送到指定的 RTC 房间或 CDN 地址。此过程不涉及编解码。 + * @param taskId 任务 ID。
    + * 你可以发起多个转推任务,并用不同的任务 ID 加以区分。当你需要发起多个转推任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * @param singleStream 单流转推配置参数。详见 ByteRTCPushSingleStreamParam{@link #ByteRTCPushSingleStreamParam}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在调用该接口前,你需要在[控制台](https: + * - 调用该方法后,关于启动结果和推流过程中的错误,会收到 rtcEngine:onSingleStreamEvent:withTaskId:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onSingleStreamEvent:withTaskId:withErrorCode:} 回调。 + * - 调用 stopPushSingleStream:{@link #ByteRTCEngine#stopPushSingleStream:} 停止任务。 + * - 由于本功能不进行编解码,所以推到 RTMP 的视频流会根据推流端的分辨率、编码方式、关闭摄像头等变化而变化。 + * @list CDN 推流 + */ + +- (int)startPushSingleStream:(NSString *_Nonnull)taskId singleStream:(ByteRTCPushSingleStreamParam *_Nonnull)singleStream; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 方法来停止单流转推直播任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 来停止单流转推任务。 + * @brief 停止由 startPushSingleStream:singleStream:{@link #ByteRTCEngine#startPushSingleStream:singleStream:} 启动的单流转推任务。 + * @param taskId 任务 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + +- (int)stopPushSingleStream:(NSString *_Nonnull)taskId; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 开启缓存同步功能。开启后,会缓存收到的实时音视频数据,并对齐不同数据中的时间戳完成同步。此功能会影响音视频数据消费的实时性。 + * @param config 参看 ByteRTCChorusCacheSyncConfig{@link #ByteRTCChorusCacheSyncConfig}。 + * @param observer 事件和数据观察者,参看 ByteRTCChorusCacheSyncObserver{@link #ByteRTCChorusCacheSyncObserver}。 + * @return 查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 要关闭缓存同步功能,调用 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}。 + * @list Pushing Streams to CDN + */ + +- (int)startChorusCacheSync:(ByteRTCChorusCacheSyncConfig* _Nullable)config observer:(id _Nullable)observer; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭缓存同步功能。 + * @return 查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @list Pushing Streams to CDN + */ + +-(int)stopChorusCacheSync; + +#pragma mark public streaming +/** + * + * @type api + * @brief 获取 WTN 流对象。 + * @return WTN 流对象,参看 ByteRTCWTNStream{@link #ByteRTCWTNStream}。 + * @list WTN + */ + +- (ByteRTCWTNStream *_Nullable)getWTNStream; + +#pragma mark External Video Data + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送外部视频帧。 + * @param frame 该视频帧包含待 SDK 编码的视频数据,参考 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 推送外部视频帧前,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 开启外部视频源采集。
    + * 支持格式:raw NV12 + * @list 自定义流处理 + */ + +- (int)pushExternalVideoFrame:(ByteRTCVideoFrameData * _Nonnull)frame; + +#pragma mark External Audio Data +/** + * + * @type api + * @brief 设置并开启指定的音频数据帧回调 + * @param method 音频回调方法,参看 ByteRTCAudioFrameCallbackMethod{@link #ByteRTCAudioFrameCallbackMethod}。
    + * 当音频回调方法设置为 `0`、`1`、`2`、`5`时,你需要在参数 `format` 中指定准确的采样率和声道,暂不支持设置为自动。
    + * 当音频回调方法设置为 `3` 时,将 `format` 中的各个字段设置为默认值。 + * @param format 音频参数格式,参看 ByteRTCAudioFormat{@link #ByteRTCAudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 开启音频回调并调用 registerAudioFrameObserver:{@link #ByteRTCMediaPlayer#registerAudioFrameObserver:} 后,ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver} 会收到对应的音频回调。两者调用顺序没有限制且相互独立。 + * @list 自定义流处理 + */ + +- (int)enableAudioFrameCallback:(ByteRTCAudioFrameCallbackMethod) method format:(ByteRTCAudioFormat* _Nullable)format; +/** + * + * @type api + * @brief 关闭音频回调 + * @param method 音频回调方法,参看 ByteRTCAudioFrameCallbackMethod{@link #ByteRTCAudioFrameCallbackMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该方法需要在调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 之后调用。 + * @list 自定义流处理 + */ + +- (int)disableAudioFrameCallback:(ByteRTCAudioFrameCallbackMethod) method; +/** + * + * @type api + * @brief 注册音频数据回调观察者。 + * @param audioFrameObserver 音频数据观察者,参看 ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver}。如果传入 null,则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 注册音频数据回调观察者并调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 后,ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver} 会收到对应的音频回调。对回调中收到的音频数据进行处理,不会影响 RTC 的编码发送或渲染。 + * @list 自定义流处理 + */ + +- (int)registerAudioFrameObserver:(_Nullable id) audioFrameObserver NS_SWIFT_NAME(registerAudioFrameObserver(_:)); +/** + * + * @type api + * @brief 注册自定义音频处理器。
    + * 注册完成后,你可以调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},对本地采集到的音频进行处理,RTC SDK 将对处理后的音频进行编码和发送。也可以对接收到的远端音频进行自定义处理,RTC SDK 将对处理后的音频进行渲染。 + * @param processor 自定义音频处理器,详见 ByteRTCAudioFrameProcessor{@link #ByteRTCAudioFrameProcessor}。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。需要取消注册时,设置此参数为 nullptr。
    + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 重复调用此接口时,仅最后一次调用生效。 + * - 更多相关信息,详见[音频自定义处理](https: + * @list 自定义流处理 + */ + +- (int)registerAudioProcessor:(_Nullable id)processor; +/** + * + * @type api + * @brief 设置并开启指定的音频帧回调,进行自定义处理。 + * @param method 音频帧类型,参看 ByteRTCAudioFrameMethod{@link #ByteRTCAudioFrameMethod}。可多次调用此接口,处理不同类型的音频帧。
    + * 选择不同类型的音频帧将收到对应的回调:
    + * - 选择本地采集的音频时,会收到 onProcessRecordAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessRecordAudioFrame:}。 + * - 选择远端音频流的混音音频时,会收到 onProcessPlayBackAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessPlayBackAudioFrame:}。 + * - 选择远端音频流时,会收到 onProcessRemoteUserAudioFrame:info:audioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessRemoteUserAudioFrame:info:audioFrame:}。 + * - 选择软件耳返音频时,会收到 onProcessEarMonitorAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessEarMonitorAudioFrame:}。(仅适用于 iOS 平台) + * - 选择屏幕共享音频流时,会收到 onProcessScreenAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessScreenAudioFrame:}。 + * @param format 设定自定义处理时获取的音频帧格式,参看 ByteRTCAudioFormat{@link #ByteRTCAudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在调用此接口前,你需要调用 registerAudioProcessor:{@link #ByteRTCEngine#registerAudioProcessor:} 注册自定义音频处理器。 + * - 要关闭音频自定义处理,调用 disableAudioProcessor:{@link #ByteRTCEngine#disableAudioProcessor:}。 + * @list 自定义流处理 + */ + +- (int)enableAudioProcessor:(ByteRTCAudioFrameMethod)method + audioFormat:(ByteRTCAudioFormat *_Nullable)format; +/** + * + * @type api + * @brief 关闭自定义音频处理。 + * @param method 音频帧类型,参看 ByteRTCAudioFrameMethod{@link #ByteRTCAudioFrameMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 自定义流处理 + */ + +- (int)disableAudioProcessor:(ByteRTCAudioFrameMethod)method; +/** + * + * @type api + * @brief 推送自定义采集的音频数据到 RTC SDK。 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}
    + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 推送外部音频数据前,必须先调用 setAudioSourceType:{@link #ByteRTCEngine#setAudioSourceType:} 开启自定义采集。 + * - 你必须每隔 10 毫秒推送一次外部采集的音频数据。单次推送的 samples (音频采样点个数)应该为 audioFrame.sampleRate / 100。比如设置采样率为 48000 时, 每次应该推送 480 个采样点。 + * @list 自定义流处理 + */ + +- (int)pushExternalAudioFrame:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @type api + * @brief 拉取下行音频数据用于自定义音频渲染。
    + * 调用该方法后,SDK 会主动拉取待播放的音频数据,包括远端已解码和混音后的音频数据,用于外部播放。 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @return 方法调用结果
    + * - 0: 设置成功 + * - < 0: 设置失败 + * @note + * - 拉取外部音频数据前,必须先调用 setAudioRenderType:{@link #ByteRTCEngine#setAudioRenderType:} 开启自定义渲染。 + * - 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒拉取一次音频数据。确保音频采样点数(sample)x 拉取频率等于 audioFrame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口拉取数据,每次应拉取 480 个采样点。 + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * @list 自定义流处理 + */ + +- (int)pullExternalAudioFrame:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @type api + * @brief 向 SDK 发送由自定义处理后的 PCM 音频数据,作为回声消除的参考信号 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @return 方法调用结果
    + * + 0:方法调用成功
    + * + <-1:方法调用失败
    + * + <-302:警告,配置下发了无效的aec场景
    + * + <-303:警告,配置下发了错误的aec类型
    + * @note
    + * + 推送自定义回声消除参考信号前,必须先调用 setAudioRenderType{@link #ByteRTCEngine#setAudioRenderType} 开启自定义渲染。
    + * + 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒发送一次音频数据。确保音频采样点数(sample)x 发送频率等于 audioFrame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口发送数据,每次应发送 480 个采样点。
    + * + 音频采样格式为 S16。音频缓冲区内的数据格式为 PCM 数据,其容量大小为 audioFrame.samples × audioFrame.channel × 2。
    + * @list 自定义流处理 + */ + +- (int)pushReferenceAudioPCMData:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 推送opus编码音频数据到 RTC SDK,RTC SDK纯转发。 + * @param audio_stream 对应的opus音频数据。详见 EncodedAudioFrameData{@link #EncodedAudioFrameData}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 推送音频数据前,必须先调用 enableAudioEncoding{@link #ByteRTCEngine#enableAudioEncoding} 关闭音频编码。 + * @list 自定义流处理 + */ + +- (int)pushExternalEncodedAudioFrame:(ByteRTCEncodedAudioFrameData * _Nonnull)audioFrame; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频编码功能。 + * @param enable 是否使用sdk音频编码功能。 + * true: 打开音频编码(默认) + * false: 关闭音频编码直接转推。 + * @note + * - 在pushExternalEncodedAudioFrame{@link #ByteRTCEngine#pushExternalEncodedAudioFrame}之前调用。 + * @list 自定义流处理 + */ + +- (void)enableAudioEncoding:(bool)enable; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频解码功能。 + * @param enable 是否使用sdk音频解码功能。 + * true: 打开音频解码功能(默认) + * false: 关闭音频解码功能直接转推。 + * @note + * - 在registerRemoteEncodedAudioFrameObserver之前调用。 + * @list 自定义流处理 + */ + +- (void)enableAudioDecoding:(bool)enable; +/** + * + * @type api + * @hidden for internal use only + * @brief 注册远端音频帧监测器。
    + * 调用该方法后,SDK 每监测到一帧远端音频帧时,都会将音频帧信息通过 onRemoteEncodedAudioFrame:info:audioFrame: 回调给用户 + * @param observer 远端音频帧监测器,参看 IRemoteEncodedAudioFrameObserver。 + * @note + * - 该方法建议在进房前调用。 + * - 将参数设置为 nullptr 则取消注册。 + * - 调用前,必须先调用 enableAudioDecoding{@link #ByteRTCEngine#enableAudioDecoding} 关闭音频解码功能。 + * @list 自定义流处理 + */ + +- (void)registerRemoteEncodedAudioFrameObserver:(_Nullable id)observer; +/** + * + * @type api + * @brief 设置业务标识参数
    + * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param businessId
    + * 用户设置的自己的 businessId 值
    + * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return + * - 0: 成功。 + * - -2: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符分别是:英文句号,短横线,下划线和 @ 。 + * @note + * - 需要在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房之前调用,进房之后调用该方法无效。 + * @list 引擎管理 + */ + +- (int)setBusinessId:(NSString* _Nullable)businessId; +/** + * + * @type api + * @brief 通话结束,将用户反馈的问题上报到 RTC。 + * @param types 预设问题列表,参看 ByteRTCProblemFeedbackOption{@link #ByteRTCProblemFeedbackOption} + * @param info 预设问题以外的其他问题的具体描述,房间信息。参看 ByteRTCProblemFeedbackInfo{@link #ByteRTCProblemFeedbackInfo} + * @return + * - 0: 成功。 + * - -3: 失败。 + * @note + * - 你可以在 [RTC 控制台](https: + * - 如果用户上报时在房间内,那么问题会定位到用户当前所在的一个或多个房间;如果用户上报时不在房间内,那么问题会定位到引擎此前退出的房间。 + * @list 引擎管理 + */ + +- (int)feedback:(ByteRTCProblemFeedbackOption)types info:(ByteRTCProblemFeedbackInfo* _Nullable)info; +/** + * + * @valid since 353 + * @type api + * @brief 获取 C++ 层 [IRTCEngine 句柄](https: + * @return + * - >0:方法调用成功, 返回 C++ 层 `IRTCEngine` 的地址。 + * - NULL:方法调用失败 + * @note 在一些场景下,获取 C++ 层 `IRTCEngine`,并通过其完成操作,相较于通过 OC 封装层完成有显著更高的执行效率。典型的场景有:视频/音频帧自定义处理,音视频通话加密等。 + * @list 引擎管理 + */ + +- (void * _Nullable) getNativeHandle; + +#pragma mark Fallback Related +/** + * + * @type api + * @brief 设置发布的音视频流的回退选项。
    + * 你可以调用该接口设置网络不佳或设备性能不足时从大流起进行降级处理,以保证通话质量。 + * @param option 本地发布的音视频流回退选项,参看 ByteRTCPublishFallbackOption{@link #ByteRTCPublishFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅在调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setlocalsimulcastmode:} 开启了发送多路视频流的情况下生效。 + * - 该方法必须在进房前设置,进房后设置或更改设置无效。 + * - 调用该方法后,如因性能或网络不佳产生发布性能回退或恢复,本端会提前收到 rtcEngine:onPerformanceAlarms:info:mode:reason:sourceWantedData:{@link #ByteRTCEngineDelegate#rtcEngine:onPerformanceAlarms:info:mode:reason:sourceWantedData:} 回调发出的告警,以便采集设备配合调整。 + * - 设置回退后,本地发布的音视频流发生回退或从回退中恢复时,远端会收到 rtcEngine:onSimulcastSubscribeFallback:info:event:{@link #ByteRTCEngineDelegate#rtcEngine:onSimulcastSubscribeFallback:info:event:} 回调,通知该情况。 + * - 你可以调用客户端 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + +- (int)setPublishFallbackOption:(ByteRTCPublishFallbackOption)option; +/** + * + * @type api + * @brief 设置订阅的音视频流的回退选项。
    + * 你可调用该接口设置网络不佳或设备性能不足时允许订阅流进行降级或只订阅音频流,以保证通话流畅。 + * @param option 订阅的音视频流回退选项,参看 ByteRTCSubscribeFallbackOption{@link #ByteRTCSubscribeFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 你必须在进房前设置,进房后设置或更改设置无效。 + * - 设置回退选项后,订阅的音视频流发生回退或从回退中恢复时,会收到 rtcEngine:onSimulcastSubscribeFallback:info:event:{@link #ByteRTCEngineDelegate#rtcEngine:onSimulcastSubscribeFallback:info:event:} 和 rtcEngine:onRemoteVideoSizeChanged:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSizeChanged:info:withFrameInfo:} 回调通知。 + * - 你可以调用 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + +- (int)setSubscribeFallbackOption:(ByteRTCSubscribeFallbackOption)option; +/** + * + * @type api + * @brief 设置用户优先级。 + * @param priority 远端用户的优先级, 详见枚举类型 ByteRTCRemoteUserPriority{@link #ByteRTCRemoteUserPriority} + * @param roomId 房间 ID + * @param uid 远端用户的 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法与 setSubscribeFallbackOption:{@link #ByteRTCEngine#setSubscribeFallbackOption:} 搭配使用。 + * - 如果开启了订阅流回退选项,弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + * - 该方法在进房前后都可以使用,可以修改远端用户的优先级。 + * @list 网络管理 + */ + +- (int)setRemoteUserPriority:(ByteRTCRemoteUserPriority)priority + InRoomId:(NSString *_Nonnull)roomId + uid:(NSString *_Nonnull)uid NS_SWIFT_NAME(setRemoteUserPriority(_:InRoomId:uid:)); +#pragma mark AES Related +/** + * + * @type api + * @brief 设置传输时使用内置加密的方式。 + * @param encrypt_type 内置加密算法,详见 ByteRTCEncryptType{@link #ByteRTCEncryptType} + * @param key 加密密钥,长度限制为 36 位,超出部分将会被截断 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 使用传输时内置加密时,使用此方法;如果需要使用传输时自定义加密,参看 onEncryptData:{@link #ByteRTCEncryptHandler#onEncryptData:}。 + * 内置加密和自定义加密互斥,根据最后一个调用的方法确定传输加密的方案。
    + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * @list 通话加密 + */ + +- (int)setEncryptInfo:(ByteRTCEncryptType)encrypt_type key:(NSString * _Nonnull)key; +/** + * + * @type api + * @brief 设置自定义加密和解密方式。 + * @param handler 自定义加密 handler,需要实现里面的加密和解密方法。参看 ByteRTCEncryptHandler{@link #ByteRTCEncryptHandler}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法与 setEncryptInfo:key:{@link #ByteRTCEngine#setEncryptInfo:key:} 为互斥关系,即按照调用顺序,最后一个调用的方法为最终生效的版本。 + * - 该方法必须在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 之前调用,可重复调用,以最后调用的参数作为生效参数。 + * - 无论加密或者解密,其对原始数据的长度修改,需要控制在 180% 之间,即如果输入数据为 100 字节,则处理完成后的数据必须不超过 180 字节,如果加密或解密结果超出该长度限制,则该音视频帧可能会被丢弃。 + * - 数据加密/解密为串行执行,因而视实现方式不同,可能会影响到最终渲染效率,是否使用该方法,需要由使用方谨慎评估。 + * @list 通话加密 + */ + +- (int)setCustomizeEncryptHandler:(id _Nullable)handler NS_SWIFT_NAME(setCustomizeEncryptHandler(_:)); + +#pragma mark - Extention Methods +/** + * + * @type api + * @brief 创建 RTC 房间实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCRoom{@link #ByteRTCRoom} 实例。分别调用各 ByteRTCRoom 实例中的 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoom{@link #ByteRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 ByteRTCRoom 实例,再调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * - 如果你需要在多个房间发布音视频流,无须创建多房间,直接调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 开始跨房间转发媒体流。 + * @list 房间管理 + */ + +- ( ByteRTCRoom * _Nullable)createRTCRoom:(NSString * _Nonnull)roomId; + +/** + * + * @type api + * @brief 创建游戏房间实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCGameRoom{@link #ByteRTCGameRoom} 实例。分别调用各 GameRTCRoom 实例中的 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @param roomConfig 房间配置,参看 GameRoomConfig{@link #GameRoomConfig}。 + * @return 创建的 ByteRTCGameRoom{@link #ByteRTCGameRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误或当前场景是否是游戏场景。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 GameRTCRoom 实例,再调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + +- (ByteRTCGameRoom * _Nullable)createGameRoom:(NSString * _Nonnull)roomId roomConfig:(GameRoomConfig * _Nonnull)roomConfig; +/** + * + * @type api + * @brief 创建 RTS 房间实例。
    + * 调用此方法仅返回一个RTS房间实例,你仍需调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCRoom{@link #ByteRTCRoom} 实例。分别调用各 ByteRTCRTSRoom 实例中的 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时收发各房间的消息。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoom{@link #ByteRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 ByteRTCRTSRoom 实例,再调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + +- ( ByteRTCRTSRoom * _Nullable)createRTSRoom:(NSString * _Nonnull)roomId; + +#pragma mark - ScreenCapture +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 Extension 配置项。你必须在使用屏幕内部采集功能前,设置使用的 Extension。 + * @param groupId 你的应用和 Extension 应该归属于同一个 App Group,此处需要传入 Group Id。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 必须在调用 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 之后立即调用此方法。在引擎实例的生命周期中,此方法只需要调用一次。 + * @list 屏幕共享 + */ + +- (int)setExtensionConfig:(NSString *_Nullable)groupId; + +/** + * + * @type api + * @brief 设置运行时的参数 + * @param parameters 保留参数 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口需在 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 和 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 之前调用。 + * @list 引擎管理 + */ + +- (int)setRuntimeParameters:(NSDictionary * _Nullable)parameters; +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @type api + * @brief 获取共享对象(应用窗口和桌面)列表。 + * @return 共享对象(应用窗口和桌面)列表。参看 ByteRTCScreenCaptureSourceInfo{@link #ByteRTCScreenCaptureSourceInfo}。
    + * 枚举值可作为调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启屏幕共享时的输入参数。 + * @note 仅桌面端可用。 + * @list 屏幕共享 + */ + +- (NSArray *_Nonnull)getScreenCaptureSourceList; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 采集屏幕视频流,用于共享。屏幕视频流包括:屏幕上显示的内容,或应用窗口中显示的内容。 + * @param sourceInfo 待共享的屏幕源,参看 ByteRTCScreenCaptureSourceInfo{@link #ByteRTCScreenCaptureSourceInfo}。
    + * 你可以调用 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 获得所有可以共享的屏幕源。 + * @param captureParameters 共享参数。参看 ByteRTCScreenCaptureParam{@link #ByteRTCScreenCaptureParam}。 + * @return + * - 0: 成功 + * - -1: 失败 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 调用此方法仅开启屏幕流视频采集,不会发布采集到的视频。发布屏幕流视频需要调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:}。 + * - 调用 stopScreenVideoCapture{@link #ByteRTCEngine#stopScreenVideoCapture} 关闭屏幕视频源采集。 + * - 本地用户通过 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调获取屏幕采集状态,包括开始、暂停、恢复、错误等。 + * - 调用成功后,本端会收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调。 + * - 调用此接口前,你可以调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置屏幕视频流的采集帧率和编码分辨率。 + * - 在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调后,通过调用 setLocalVideoCanvas:{@link #ByteRTCEngine#setLocalVideoCanvas:} 或 setLocalVideoSink:withPixelFormat:{@link #ByteRTCEngine#setLocalVideoSink:withPixelFormat:} 函数设置本地屏幕共享视图。 + * - 再开启采集屏幕视频流后,你可以调用 updateScreenCaptureHighlightConfig:{@link #ByteRTCEngine#updateScreenCaptureHighlightConfig:} 更新边框高亮设置,调用 updateScreenCaptureMouseCursor:{@link #ByteRTCEngine#updateScreenCaptureMouseCursor:} 更新对鼠标的处理设置,PC 端还可以调用 updateScreenCaptureFilterConfig:{@link #ByteRTCEngine#updateScreenCaptureFilterConfig:} 设置需要过滤的窗口。 + * @list 屏幕共享 + */ + +- (int)startScreenVideoCapture:(ByteRTCScreenCaptureSourceInfo *_Nonnull)sourceInfo captureParameters:(ByteRTCScreenCaptureParam *_Nonnull)captureParameters NS_SWIFT_NAME(startScreenVideoCapture(_:captureParameters:)); +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止屏幕视频流采集。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 要开启屏幕视频流采集,调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:}。 + * - 调用后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。 + * - 调用此接口不影响屏幕视频流发布。 + * @list 屏幕共享 + */ + +- (int)stopScreenVideoCapture; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新采集区域。 + * @param regionRect 采集区域相对 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 中设定区域的值。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须先通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureRegion:(CGRect)regionRect; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新边框高亮设置。默认展示边框。 + * @param config 边框高亮设置。参见 ByteRTCHighlightConfig{@link #ByteRTCHighlightConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureHighlightConfig:(ByteRTCHighlightConfig *_Nonnull)config NS_SWIFT_NAME(updateScreenCaptureHighlightConfig(_:)); +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新对鼠标的处理设置。默认采集鼠标。 + * @param mouseCursorCaptureState 参看 ByteRTCMouseCursorCaptureState{@link #ByteRTCMouseCursorCaptureState}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureMouseCursor:(ByteRTCMouseCursorCaptureState)mouseCursorCaptureState; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,设置需要过滤的窗口。 + * @param excludedWindowList 过滤掉的窗口列表。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * - 本函数在屏幕源类别是屏幕而非应用窗体时才起作用。详见:ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType}。 + * - 调用本接口排除指定窗口时,共享视频的帧率无法达到 30fps。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureFilterConfig:(NSArray * _Nullable) excludedWindowList; +/** + * + * @hidden(iOS) + * @type api + * @brief 获取屏幕采集对象缩略图 + * @param sourceType 屏幕采集对象的类型。详见 ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType}。 + * @param sourceId 屏幕分享时,共享对象的 ID。可通过 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 返回的`ByteRTCScreenCaptureSourceInfo`共享对象列表中获取。 + * @param maxWidth 最大宽度。保持采集对象本身的宽高比不变,将缩略图缩放到指定范围内的最大宽高。如果给出的尺寸与共享对象比例不同,得到的缩略图会有黑边。 + * @param maxHeight 最大高度。参见 maxWidth 的说明。 + * @return 屏幕采集对象缩略图。缩略图由屏幕共享对象等比缩放而来。缩略图的大小小于等于此接口设定的尺寸。 + * @list 屏幕共享 + */ + +- (ByteRTCImage *_Nonnull)getThumbnail:(ByteRTCScreenCaptureSourceType)sourceType sourceId:(intptr_t)sourceId maxWidth:(int)maxWidth maxHeight:(int)maxHeight; +/** + * + * @hidden(iOS) + * @brief 获取应用窗体所属应用的图标。 + * @region 屏幕共享 + * @param sourceId 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 返回的`ByteRTCScreenCaptureSourceInfo`共享对象列表中获取。 + * @param width 最大宽度。返回的图标将是宽高相等的,输入的宽高不等时,取二者较小值。宽高范围为 [32,256],超出该范围将返回 `nullptr`,默认输出 100 x 100 的图像。 + * @param height 最大高度。参见 `width` 的说明。 + * @return 应用图标。当屏幕共享对象为应用窗体时有效,否则返回 `nullptr`。 + * @list 屏幕共享 + */ + +- (ByteRTCImage *_Nonnull)getWindowAppIcon:(intptr_t)sourceId width:(int)width height:(int)height; +#endif +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 RTC SDK 内部采集模块开始采集屏幕音频流和(或)视频流。 + * @param type 媒体类型,参看 ByteRTCScreenMediaType{@link #ByteRTCScreenMediaType}。 + * @param bundleId 绑定 Extension 的 Bundle ID,绑定后应用中共享屏幕的选择列表中只展示你的 Extension 可供选择。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 或 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 当从 iOS 控制中心发起屏幕采集时无需调用本方法。 + * - 采集后,你还需要调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:} 和/或 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 发布采集到的屏幕音视频。 + * - 开启屏幕音频/视频采集成功后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 和 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @list 屏幕共享 + */ + +- (int)startScreenCapture:(ByteRTCScreenMediaType) type bundleId:(NSString *_Nullable)bundleId; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新内部屏幕采集时采集的媒体类型。 + * @param type 媒体类型,参看 ByteRTCScreenMediaType{@link #ByteRTCScreenMediaType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 你需在开启屏幕视频流采集后调用该方法。 + * - 本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 或 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @list 屏幕共享 + */ + +- (int)updateScreenCapture:(ByteRTCScreenMediaType) type; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式采集屏幕音视频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 或 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 当从 iOS 控制中心发起屏幕采集时无需调用本方法。 + * - 本方法只会停止本地屏幕采集,并不会影响屏幕流的发布状态。 + * - 本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 和 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。 + * @list 屏幕共享 + */ + +- (int)stopScreenCapture; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 向屏幕共享 Extension 发送自定义消息 + * @param messsage 发送给 Extension 的消息内容 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在 startScreenCapture:bundleId:{@link #ByteRTCEngine#startScreenCapture:bundleId:} 后调用该方法。 + * - 通过 onReceiveMessageFromApp:{@link #ByteRtcScreenCapturerExtDelegate#onReceiveMessageFromApp:} 回调发送的消息。 + * @list 屏幕共享 + */ + +- (int)sendScreenCaptureExtensionMessage:(NSData *_Nonnull) messsage; +/** + * + * @hidden(iOS) + * @type api + * @brief 创建音频设备管理实例 + * @return ByteRTCAudioDeviceManager{@link #ByteRTCAudioDeviceManager} + * @list 音频管理 + */ + +- (ByteRTCAudioDeviceManager *_Null_unspecified)getAudioDeviceManager; +/** + * + * @hidden(iOS) + * @type api + * @brief 创建视频设备管理实例 + * @return 视频设备管理实例,详见 ByteRTCVideoDeviceManager{@link #ByteRTCVideoDeviceManager} + * @list 视频管理 + */ + +- (ByteRTCVideoDeviceManager * _Null_unspecified)getVideoDeviceManager NS_SWIFT_NAME(getVideoDeviceManager()); + +#pragma mark - FileRecording +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 该方法将通话过程中的音视频数据录制到本地的文件中。 + * @param recordingConfig 本地录制参数配置,参看 ByteRTCRecordingConfig{@link #ByteRTCRecordingConfig} + * @param recordingType 本地录制的媒体类型,参看 ByteRTCRecordingType{@link #ByteRTCRecordingType}
    + * 注意:屏幕流仅支持录制视频(ByteRTCRecordingTypeVideoOnly);主流支持录制所有类型。 + * @return + * - 0: 正常 + * - -1: 参数设置异常 + * - -2: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 该方法需在进房后调用。 + * - 调用该方法后,你会收到 rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:} 回调。 + * - 如果录制正常,系统每秒钟会通过 rtcEngine:onRecordingProgressUpdate:process:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingProgressUpdate:process:recording_info:} 回调通知录制进度。 + * @list 高级功能 + */ + +- (int)startFileRecording: (ByteRTCRecordingConfig* _Nonnull)recordingConfig type:(ByteRTCRecordingType)recordingType NS_SWIFT_NAME(startFileRecording(withRecordingConfig:type:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地录制 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 开启本地录制后,你必须调用该方法停止录制。 + * - 调用该方法后,你会收到 rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:} 回调提示录制结果。 + * @list 高级功能 + */ + +- (int)stopFileRecording; +/** + * + * @type api + * @brief 开始音频录制,并生成录音文件保存到本地。 + * @param recordingConfig 参看 ByteRTCAudioRecordingConfig{@link #ByteRTCAudioRecordingConfig} + * @return + * - 0: 正常 + * - -2: 参数设置异常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 调用该方法后,会立即启动录制任务并创建录音文件。 + * - 录制包含各种音频效果。但不包含背景音乐。 + * - 录制本地麦克风的音频时,请确保已调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 接口打开麦克风采集。 + * - 调用 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 关闭录制。 + * - 加入房间前后均可调用。在进房前调用该方法,退房之后,录制任务不会自动停止,需调用 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 关闭录制。在进房后调用该方法,退房之后,录制任务会自动被停止。如果加入了多个房间,录制的文件中会包含各个房间的音频。 + * - 调用该方法后,你会收到 rtcEngine:onAudioRecordingStateUpdate:error_code:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioRecordingStateUpdate:error_code:} 回调。 + * @list 高级功能 + */ + +- (int)startAudioRecording:(ByteRTCAudioRecordingConfig* _Nonnull) recordingConfig; +/** + * + * @type api + * @brief 停止音频文件录制 + * @return + * - 0: 正常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note 调用 startAudioRecording:{@link #ByteRTCEngine#startAudioRecording:} 开启本地录制。 + * @list 高级功能 + */ + +- (int)stopAudioRecording; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音效播放器实例。 + * @return 音效播放器。详见 ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer}。 + * @list 混音 + */ + +- (ByteRTCAudioEffectPlayer *_Nullable)getAudioEffectPlayer; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音乐播放器实例。 + * @param playerId 音乐播放器实例 id。取值范围为 `[0, 3]`。最多同时存在 4 个实例,超出取值范围时返回 nullptr。 + * @return 音乐播放器实例,详见 ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} + * @list 混音 + */ + +- (ByteRTCMediaPlayer *_Nullable)getMediaPlayer:(int)playerId; + +#pragma mark - Rtm +/** + * + * @type api + * @brief 登陆 RTS 服务器。
    + * 必须先登录,才能调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 和 sendServerMessage:{@link #ByteRTCEngine#sendServerMessage:} 发送房间外点对点消息和向应用服务器发送消息
    + * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #ByteRTCEngine#logout} + * @param token 用户登录必须携带的 Token,用于鉴权验证。
    + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid 用户 ID,在 appid 的维度下是唯一的。 + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 本地用户调用此方法登录后,会收到 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知登录结果,远端用户不会收到通知。 + * @list 消息 + */ + +- (int)login:(NSString * _Nonnull)token uid:(NSString * _Nonnull)uid; +/** + * + * @type api + * @brief 登出 RTS 服务器。
    + * 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口登出前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录 + * - 本地用户调用此方法登出后,会收到 rtcEngine:onLogout:{@link #ByteRTCEngineDelegate#rtcEngine:onLogout:} 回调通知结果,远端用户不会收到通知。 + * @list 消息 + */ + +- (int)logout; +/** + * + * @type api + * @brief 更新用户用于登录的 Token
    + * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知,错误码为 ByteRTCLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
    + * 更新的动态密钥 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法。 + * - Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + * @list 消息 + */ + +- (int)updateLoginToken:(NSString * _Nonnull)token; +/** + * + * @type api + * @brief 设置应用服务器参数
    + * 客户端调用 sendServerMessage:{@link #ByteRTCEngine#sendServerMessage:} 或 sendServerBinaryMessage:{@link #ByteRTCEngine#sendServerBinaryMessage:} 发送消息给应用服务器之前,必须设置有效签名和应用服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
    + * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
    + * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 用户必须调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 rtcEngine:onServerParamsSetResult:{@link #ByteRTCEngineDelegate#rtcEngine:onServerParamsSetResult:} 返回相应结果。 + * @list 消息 + */ + +- (int)setServerParams:(NSString * _Nonnull)signature url:(NSString * _Nonnull)url; +/** + * + * @type api + * @brief 查询对端用户或本端用户的登录状态 + * @param peerUserId
    + * 需要查询的用户 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 必须调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 rtcEngine:onGetPeerOnlineStatus:status:{@link #ByteRTCEngineDelegate#rtcEngine:onGetPeerOnlineStatus:status:} 回调通知查询结果。 + * - 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + * @list 消息 + */ + +- (int)getPeerOnlineStatus:(NSString * _Nonnull)peerUserId; +/** + * + * @type api + * @brief 给房间外指定的用户发送文本消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param messageStr 发送的文本消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外文本消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录。 + * - 用户调用本接口发送文本信息后,会收到一次 rtcEngine:onUserMessageSendResultOutsideRoom:error:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageSendResultOutsideRoom:error:} 回调,得知消息是否成功发送; + * - 若文本消息发送成功,则 userId 所指定的用户会通过 rtcEngine:onUserMessageReceivedOutsideRoom:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageReceivedOutsideRoom:message:} 回调收到该消息。 + * @list 消息 + */ + +- (NSInteger)sendUserMessageOutsideRoom:(NSString * _Nonnull)userId message:(NSString * _Nonnull)messageStr config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 给房间外指定的用户发送二进制消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param messageStr 发送的二进制消息内容。消息不超过 64KB。 + * @param config 消息类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外二进制消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录。 + * - 用户调用本接口发送二进制消息后,会收到一次 rtcEngine:onUserMessageSendResultOutsideRoom:error:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageSendResultOutsideRoom:error:} 回调,通知消息是否发送成功; + * - 若二进制消息发送成功,则 userId 所指定的用户会通过 rtcEngine:onUserBinaryMessageReceivedOutsideRoom:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserBinaryMessageReceivedOutsideRoom:message:} 回调收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendUserBinaryMessageOutsideRoom:(NSString * _Nonnull)userId message:(NSData * _Nonnull)messageStr config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 客户端给应用服务器发送文本消息(P2Server)。 + * @param messageStr 发送的文本消息内容。消息不超过 64 KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送文本消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录,随后调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置应用服务器。 + * - 调用本接口后,会收到一次 rtcEngine:onServerMessageSendResult:error:message:{@link #ByteRTCEngineDelegate#rtcEngine:onServerMessageSendResult:error:message:} 回调,通知消息发送方是否发送成功。 + * - 若文本消息发送成功,则之前调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendServerMessage:(NSString * _Nonnull)messageStr; +/** + * + * @type api + * @brief 客户端给应用服务器发送二进制消息(P2Server)。 + * @param messageStr 发送的二进制消息内容。消息不超过 64KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送二进制消息前,先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录,随后调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置应用服务器。 + * - 调用本接口后,会收到一次 rtcEngine:onServerMessageSendResult:error:message:{@link #ByteRTCEngineDelegate#rtcEngine:onServerMessageSendResult:error:message:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则之前调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendServerBinaryMessage:(NSData * _Nonnull)messageStr; +/** + * + * @type api + * @brief 开始通话前网络探测 + * @param isTestUplink 是否探测上行带宽 + * @param expectedUplinkBitrate 期望上行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @param isTestDownlink 是否探测下行带宽 + * @param expectedDownlinkBitrate 期望下行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 成功调用本接口后,会在 3s 内收到一次 rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:} 回调,此后每 2s 会收到一次该回调,通知探测结果; + * - 若探测停止,则会收到一次 rtcEngine:onNetworkDetectionStopped:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionStopped:} 通知探测停止。 + * @list 网络管理 + */ + +- (int)startNetworkDetection:(bool)isTestUplink uplinkBandwidth:(int)expectedUplinkBitrate downlink:(bool)isTestDownlink downlinkBandwidth:(int)expectedDownlinkBitrate; +/** + * + * @type api + * @brief 停止通话前网络探测 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 调用本接口后,会收到一次 rtcEngine:onNetworkDetectionStopped:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionStopped:} 通知探测停止。 + * @list 网络管理 + */ + +- (int)stopNetworkDetection; +#pragma mark ScreenAudio +/** + * + * @type api + * @brief 在屏幕共享时,设置屏幕音频的采集方式(内部采集/自定义采集) + * @param sourceType 屏幕音频输入源类型, 参看 ByteRTCAudioSourceType{@link #ByteRTCAudioSourceType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 默认采集方式是 RTC SDK 内部采集。 + * - 如果设定为内部采集,你必须重新开始采集。 + * - 如果设定为自定义采集,你必须再调用 pushScreenAudioFrame:{@link #ByteRTCEngine#pushScreenAudioFrame:} 将自定义采集到的屏幕音频帧推送到 RTC SDK。 + * - 无论是内部采集还是自定义采集,你都必须调用 publishScreenAudio: 将采集到的屏幕音频发布给远端。 + * @list 屏幕共享 + * @order 6 + */ + +- (int)setScreenAudioSourceType:(ByteRTCAudioSourceType)sourceType; + +/** + * + * @type api + * @brief 使用自定义采集方式,采集屏幕共享时的屏幕音频时,将音频帧推送至 RTC SDK 处进行编码等处理。 + * @param audioFrame 音频数据帧,参见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}
    + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 samples × frame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 设置成功。 + * - < 0: 设置失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用此接口推送屏幕共享时的自定义采集的音频数据前,必须调用 setScreenAudioSourceType:{@link #ByteRTCEngine#setScreenAudioSourceType:} 开启屏幕音频自定义采集。 + * - 你应每隔 10 毫秒,调用一次此方法推送一次自定义采集的音频帧。一次推送的音频帧中应包含 frame.sample_rate / 100 个音频采样点。比如,假如采样率为 48000Hz,则每次应该推送 480 个采样点。 + * - 调用此接口将自定义采集的音频帧推送到 RTC SDK 后,你必须调用 publishScreenAudio: 将采集到的屏幕音频推送到远端。在调用 publishScreenAudio: 前,推送到 RTC SDK 的音频帧信息会丢失。 + * @list 屏幕共享 + * @order 9 + */ + +- (int) pushScreenAudioFrame:(ByteRTCAudioFrame* _Nonnull)audioFrame; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,开始使用 RTC SDK 内部采集方式,采集屏幕音频 + * @param deviceId 虚拟设备 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。若已调用 setScreenAudioSourceType:{@link #ByteRTCEngine#setScreenAudioSourceType:} 将音频输入源设置为 `ByteRTCAudioSourceTypeExternal` 自定义采集,需先切换为 `ByteRTCAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 采集后,你还需要调用 publishScreenAudio: 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #ByteRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + +- (int)startScreenAudioCapture:(NSString *_Nonnull)deviceId; +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式,采集屏幕音频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 要开始屏幕音频内部采集,调用 startScreenAudioCapture:{@link #ByteRTCEngine#startScreenAudioCapture:}。 + * @list 屏幕共享 + */ + +- (int)stopScreenAudioCapture; +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,设置屏幕音频流的声道数 + * @param channel 声道数,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 当你调用 setScreenAudioStreamIndex: 并设置屏幕音频流和麦克风音频流混流时,此接口不生效,音频通道数由 setAudioProfile:{@link #ByteRTCEngine#setAudioProfile:} 控制。 + * @list 屏幕共享 + */ + +- (int)setScreenAudioChannel:(ByteRTCAudioChannel) channel; + +#endif + +#pragma mark EncodedVideo +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置向 SDK 输入的视频源,包括屏幕流
    + * 默认使用内部采集。内部采集指:使用 RTC SDK 内置的视频采集机制进行视频采集。 + * @param type 视频输入源类型,参看 ByteRTCVideoSourceType{@link #ByteRTCVideoSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法进房前后均可调用。 + * - 当你已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集后,再调用此方法切换至自定义采集时,SDK 会自动关闭内部采集。 + * - 当你调用此方法开启自定义采集后,想要切换至内部采集,你必须先调用此方法关闭自定义采集,然后调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 手动开启内部采集。 + * - 当你需要向 SDK 推送自定义编码后的视频帧,你需调用该方法将视频源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + +- (int)setVideoSourceType:(ByteRTCVideoSourceType)type NS_SWIFT_NAME(setVideoSourceType(_:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册自定义编码帧推送事件回调 + * @param handler 自定义编码帧回调类,参看 ByteRTCExternalVideoEncoderEventHandler{@link #ByteRTCExternalVideoEncoderEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法需在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + +- (int)setExternalVideoEncoderEventHandler:(id _Nullable)handler; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送自定义编码后的视频流 + * @param videoIndex 对应的编码流下标,从 0 开始,如果调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置了多路流,此处数量须与之保持一致 + * @param videoFrame 编码流视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 目前仅支持推送 H264 和 ByteVC1 格式的视频帧,且视频流协议格式须为 Annex B 格式。 + * - 该函数运行在用户调用线程内 + * - 推送自定义编码视频帧前,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 将视频输入源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + +- (int)pushExternalEncodedVideoFrame: (NSInteger)videoIndex + withEncodedVideoFrame:(ByteRTCEncodedVideoFrame* _Nonnull)videoFrame NS_SWIFT_NAME(pushExternalEncodedVideoFrame(withVideoIndex:withEncodedVideoFrame:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之前,设置远端视频数据解码方式 + * @param streamId 远端流 ID。 + * @param config 视频解码方式,参看 ByteRTCVideoDecoderConfig{@link #ByteRTCVideoDecoderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 当你想要对远端流进行自定义解码时,你需要先调用 registerRemoteEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedVideoFrameObserver:} 注册远端视频流监测器,然后再调用该接口将解码方式设置为自定义解码。监测到的视频数据会通过 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:} 回调出来。 + * - 自 3.56 起,要用于自动订阅场景下,你可以设置 `streamId` 为特定值(若有对应逻辑),此时,通过此接口设置的解码方式根据 `streamId` 的相关逻辑,适用于所有的远端主流或屏幕流的解码方式。 + * @list 自定义流处理 + */ + +- (int)setVideoDecoderConfig:(NSString* _Nonnull)streamId + withVideoDecoderConfig:(ByteRTCVideoDecoderConfig)config NS_SWIFT_NAME(setVideoDecoderConfig(_:withVideoDecoderConfig:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之后,向远端请求关键帧 + * @param streamId 远端流 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 + * - 该方法适用于调用 setVideoDecoderConfig:withVideoDecoderConfig:{@link #ByteRTCEngine#setVideoDecoderConfig:withVideoDecoderConfig:} 开启自定义解码功能后,并且自定义解码失败的情况下使用 + * @list 音视频传输 + */ + +- (int)requestRemoteVideoKeyFrame:(NSString* _Nonnull)streamId; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册远端编码后视频数据回调。
    + * 完成注册后,当 SDK 监测到远端编码后视频帧时,会触发 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:} 回调 + * @param observer 远端编码后视频数据监测器,参看 ByteRTCRemoteEncodedVideoFrameObserver{@link #ByteRTCRemoteEncodedVideoFrameObserver} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 更多自定义解码功能说明参看 [自定义视频编解码](https: + * - 该方法适用于手动订阅,并且进房前后均可调用,建议在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + +- (int)registerRemoteEncodedVideoFrameObserver:(id _Nullable)observer NS_SWIFT_NAME(registerRemoteEncodedVideoFrameObserver(_:)); +#pragma mark StreamSyncInfo +/** + * + * @type api + * @brief 发送音频流同步信息。将消息通过音频流发送到远端,并实现与音频流同步,该接口调用成功后,远端用户会收到 rtcEngine:onStreamSyncInfoReceived:info:streamType:data:{@link #ByteRTCEngineDelegate#rtcEngine:onStreamSyncInfoReceived:info:streamType:data:} 回调。 + * @param data 消息内容。 + * @param config 媒体流信息同步的相关配置,详见 ByteRTCStreamSyncInfoConfig{@link #ByteRTCStreamSyncInfoConfig} 。 + * @return + * - >=0: 消息发送成功。返回成功发送的次数。 + * - -1: 消息发送失败。消息长度大于 255 字节。 + * - -2: 消息发送失败。传入的消息内容为空。 + * - -3: 消息发送失败。通过屏幕流进行消息同步时,此屏幕流还未发布。 + * - -4: 消息发送失败。通过用麦克风或自定义设备采集到的音频流进行消息同步时,此音频流还未发布,详见错误码 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @note + * - 调用本接口的频率建议不超过 50 次每秒。 + * - 在 `ByteRTCRoomProfileInteractivePodcast` 房间模式下,此消息一定会送达。在其他房间模式下,如果本地用户未说话,此消息不一定会送达。 + * @list 消息 + */ + +- (int)sendStreamSyncInfo:(NSData* _Nonnull)data config:(ByteRTCStreamSyncInfoConfig * _Nonnull)config; +/** + * + * @type api + * @brief 开启音视频回路测试。
    + * 在进房前,用户可调用该接口对音视频通话全链路进行检测,包括对音视频设备以及用户上下行网络的检测,从而帮助用户判断是否可以正常发布和接收音视频流。
    + * 开始检测后,SDK 会录制你的声音或视频。如果你在设置的延时范围内收到了回放,则视为音视频回路测试正常。 + * @param echoConfig 回路测试参数设置,参看 ByteRTCEchoTestConfig{@link #ByteRTCEchoTestConfig}。 + * @param delayTime 音视频延迟播放的时间间隔,用于指定在开始检测多长时间后期望收到回放。取值范围为 [2,10],单位为秒,默认为 2 秒。 + * @return 方法调用结果:
    + * - 0:成功 + * - -2:失败,参数异常 + * - -4:失败,用户已进房 + * - -6:失败,当前用户已经在检测中 + * - -7:失败,音视频均不检查 + * - -8:失败,已经存在相同 roomId 的房间 + * @note + * - 调用该方法开始音视频回路检测后,你可以调用 stopEchoTest{@link #ByteRTCEngine#stopEchoTest} 立即结束测试,也可等待测试 60s 后自动结束,以更换设备进行下一次测试,或进房。 + * - 在该方法之前调用的所有跟设备控制、流控制相关的方法均在开始检测时失效,在结束检测后恢复生效。 + * - 在调用 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:} 和 stopEchoTest{@link #ByteRTCEngine#stopEchoTest} 之间调用的所有跟设备采集、流控制、进房相关的方法均不生效,并会收到 rtcEngine:onWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onWarning:} 回调,提示警告码为 `ByteRTCWarningCodeInEchoTestMode`。 + * - 音视频回路检测的结果会通过 rtcEngine:onEchoTestResult:{@link #ByteRTCEngineDelegate#rtcEngine:onEchoTestResult:} 回调通知。 + * @list 网络管理 + */ + +- (int)startEchoTest:(ByteRTCEchoTestConfig *_Nullable)echoConfig playDelay:(NSInteger)delayTime; +/** + * + * @type api + * @brief 停止音视频回路测试。
    + * 调用 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:} 开启音视频回路检测后,你必须调用该方法停止检测。 + * @return 方法调用结果:
    + * - 0:成功 + * - -3:失败,未开启回路检测。 + * @note 音视频回路检测结束后,所有对系统设备及音视频流的控制均会恢复到开始检测前的状态。 + * @list 网络管理 + */ + +- (int)stopEchoTest; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在指定视频流上添加水印。 + * @param imagePath 水印图片路径,仅支持本地文件绝对路径,长度限制为 512 字节。
    + * 水印图片为 PNG 或 JPG 格式。 + * @param rtcWatermarkConfig 水印参数,参看 ByteRTCVideoWatermarkConfig{@link #ByteRTCVideoWatermarkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - iOS 端,屏幕共享时,不支持调用该接口设置水印。 + * - 调用 clearVideoWatermark{@link #ByteRTCEngine#clearVideoWatermark} 移除指定视频流的水印。 + * - 同一视频流只能设置一个水印,新设置的水印会替换上一次的设置。你可以多次调用本方法来设置不同视频流的水印。 + * - 进入房间前后均可调用此方法。 + * - 若开启本地预览镜像,或开启本地预览和编码传输镜像,则远端水印均不镜像;在开启本地预览水印时,本端水印会镜像。 + * - 开启大小流后,水印对大小流均生效,且针对小流进行等比例缩小。 + * @list 视频处理 + */ + +- (int)setVideoWatermark: (NSString * _Nullable)imagePath + withRtcWatermarkConfig:(ByteRTCVideoWatermarkConfig* _Nonnull)rtcWatermarkConfig; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 移除指定视频流的水印。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 视频处理 + */ + +- (int)clearVideoWatermark; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 截取本地视频画面 + * @param callback 本地截图的回调。参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 + * @return 本地截图任务的编号,从 `1` 开始递增。 + * @note + * - 对截取的画面,包含本地视频处理的全部效果,包含旋转,镜像,美颜等。 + * - 不管采用 SDK 内部采集,还是自定义采集,都可以进行截图。 + * @list 高级功能 + */ + +- (NSInteger)takeLocalSnapshot:(id _Nullable)callback; +/** + * + * @type api + * @valid since 3.60. + * @brief 截取本地的视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 rtcEngine:onLocalSnapshotTakenToFile:filePath:width:height:errorCode:taskId:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalSnapshotTakenToFile:filePath:width:height:errorCode:taskId:} 报告截图是否成功,以及截取的图片信息。 + * @param filePath 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。示例:`/Users/YourName/Pictures/snapshot.jpg`。 + * @return 本地截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + +- (NSInteger)takeLocalSnapshotToFile:(NSString * _Nonnull)filePath; +/** + * + * @type api + * @brief 截取远端视频画面,并保存到本地指定路径。 + * @param streamId 截图的视频流对应的 ID。 + * @param callback 参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 + * @return 远端截图任务的编号,从 `1` 开始递增。 + * @list 高级功能 + */ + +- (NSInteger)takeRemoteSnapshot:(NSString* _Nonnull)streamId callback:(id _Nullable)callback; + +/** + * + * @type api + * @valid since 3.60. + * @brief 截取远端的视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 rtcEngine:onRemoteSnapshotTakenToFile:info:filePath:width:height:errorCode:taskId:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteSnapshotTakenToFile:info:filePath:width:height:errorCode:taskId:} 报告截图是否成功,以及截取的图片信息。 + * @param streamId 待截取的远端视频流 ID。 + * @param filePath 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。示例:`/Users/YourName/Pictures/snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + +- (NSInteger)takeRemoteSnapshotToFile:(NSString* _Nonnull)streamId filePath:(NSString * _Nonnull)filePath; + +/** + * + * @type api + * @brief 开启云代理 + * @param cloudProxiesInfo 云代理服务器信息列表。参看 ByteRTCCloudProxyInfo{@link #ByteRTCCloudProxyInfo}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在加入房间前调用此接口 + * - 在开启云代理后,进行通话前网络探测 + * - 开启云代理后,并成功连接云代理服务器后,会收到 rtcEngine:onCloudProxyConnected:{@link #ByteRTCEngineDelegate#rtcEngine:onCloudProxyConnected:}。 + * - 要关闭云代理,调用 stopCloudProxy{@link #ByteRTCEngine#stopCloudProxy}。 + * @list 通话加密 + */ + +- (int)startCloudProxy:(NSArray * _Nullable)cloudProxiesInfo; +/** + * + * @type api + * @brief 关闭云代理 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 要开启云代理,调用 startCloudProxy:{@link #ByteRTCEngine#startCloudProxy:} + * @list 通话加密 + */ + +- (int)stopCloudProxy; +/** + * + * @type api + * @hidden + * @brief 创建 K 歌评分管理接口。 + * @return K 歌评分管理接口,详见 ByteRTCSingScoringManager{@link #ByteRTCSingScoringManager}。 + * @note 如需使用 K 歌评分功能,即调用该方法以及 `ByteRTCSingScoringManager` 类下全部方法,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * @list 在线 KTV + */ + +- (ByteRTCSingScoringManager *_Nullable)getSingScoringManager; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 摄像头处于关闭状态时,使用静态图片填充本地推送的视频流。
    + * 调用 `stopVideoCapture` 接口时,会开始推静态图片。若要停止发送图片,可传入空字符串或启用内部摄像头采集。
    + * 可重复调用该接口来更新图片。 + * @param filePath 设置静态图片的路径。
    + * 支持本地文件绝对路径,不支持网络链接,长度限制为 512 字节。
    + * 静态图片支持类型为 JPEG/JPG、PNG、BMP。
    + * 若图片宽高比与设置的编码宽高比不一致,图片会被等比缩放,黑边填充空白区域。推流帧率与码率与设置的编码参数一致。 + * @return + * - 0: 成功。 + * - -2: 失败。确保传入的 filePath 为有效路径。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 该接口只适用于 SDK 内部摄像头采集,不适用于自定义视频采集。 + * - 本地预览无法看到静态图片。 + * - 进入房间前后均可调用此方法。在多房间场景中,静态图片仅在发布的房间中生效。 + * - 针对该静态图片,滤镜和镜像效果不生效,水印效果生效。 + * - 只有主流能设置静态图片,屏幕流不支持设置。 + * - 开启大小流后,静态图片对大小流均生效,且针对小流进行等比例缩小。 + * @list 音视频传输 + */ + +- (int)setDummyCaptureImagePath:(NSString * _Nonnull)filePath; +/** + * + * @type api + * @brief 通过 NTP 协议,获取网络时间。 + * @return 网络时间。参看 ByteRTCNetworkTimeInfo{@link #ByteRTCNetworkTimeInfo}。 + * @note + * 第一次调用此接口会启动网络时间同步功能,并返回 `0`。同步完成后,会收到 rtcEngineOnNetworkTimeSynchronized:{@link #ByteRTCEngineDelegate#rtcEngineOnNetworkTimeSynchronized:},此后,再次调用此 API,即可获取准确的网络时间。 + * @list 网络管理 + */ + +- (ByteRTCNetworkTimeInfo *_Nonnull)getNetworkTimeInfo; +/** + * + * @type api + * @hidden internal use only + * @brief 在听众端,设置订阅的所有远端音频流精准对齐后播放。 + * @param streamId 作为对齐基准的远端音频流对应的id。
    + * 一般选择主唱的音频流。
    + * 你必须在收到 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:},确认此音频流已发布后,调用此 API。 + * @param mode 是否对齐,默认不对齐。参看 ByteRTCAudioAlignmentMode{@link #ByteRTCAudioAlignmentMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 你必须在实时合唱场景下使用此功能。在加入房间时,所有人应设置 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileChorus`。 + * - 订阅的所有远端流必须通过 startAudioMixing:filePath:config: 开启了背景音乐混音,并将 ByteRTCAudioMixingConfig 中的 `syncProgressToRecordFrame` 设置为 `true`。 + * - 如果订阅的某个音频流延迟过大,可能无法实现精准对齐。 + * - 合唱的参与者不应调用此 API,因为调用此 API 会增加延迟。如果希望从听众变为合唱参与者,应关闭对齐功能。 + * @list 在线 KTV + */ + +- (int)setAudioAlignmentProperty:(NSString* _Nonnull)streamId + withMode:(ByteRTCAudioAlignmentMode)mode; + +#pragma mark - KTV +/** + * + * @hidden + * @type api + * @brief 创建 KTV 管理接口。 + * @return KTV 管理接口,参看 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @list 在线 KTV + */ + +- (ByteRTCKTVManager * _Nullable)getKTVManager; +/** + * + * @type api + * @brief 开启通话前回声检测 + * @param testAudioFilePath 用于回声检测的音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。
    + * 音频文件不为静音文件,推荐时长为 10 ~ 20 秒。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。上一次检测未结束,请先调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测 后重新调用本接口。 + * - -2:失败。路径不合法或音频文件格式不支持。 + * @note + * - 只有当 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileMeeting` 和 `ByteRTCRoomProfileMeetingRoom` 时支持开启本功能。 + * - 开启检测前,你需要向用户获取音频设备的使用权限。 + * - 开启检测前,请确保音频设备没有被静音,采集和播放音量正常。 + * - 调用本接口后监听 rtcEngine:onHardwareEchoDetectionResult:{@link #ByteRTCEngineDelegate#rtcEngine:onHardwareEchoDetectionResult:} 获取检测结果。 + * - 检测期间,进程将独占音频设备,无法使用其他音频设备测试接口 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:}。 + * - 调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * @list 音频管理 + */ + +- (int)startHardwareEchoDetection:(NSString * _Nonnull)testAudioFilePath; +/** + * + * @type api + * @brief 停止通话前回声检测 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。 + * @note + * - 关于开启通话前回声检测,参看 startHardwareEchoDetection:{@link #ByteRTCEngine#startHardwareEchoDetection:} 。 + * - 建议在收到 rtcEngine:onHardwareEchoDetectionResult:{@link #ByteRTCEngineDelegate#rtcEngine:onHardwareEchoDetectionResult:} 通知的检测结果后,调用本接口停止检测。 + * - 在用户进入房间前结束回声检测,释放对音频设备的占用,以免影响正常通话。 + * @list 音频管理 + */ + +- (int)stopHardwareEchoDetection; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param config 参看 ByteRTCMediaTypeEnhancementConfig{@link #ByteRTCMediaTypeEnhancementConfig}。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败,内部错误。 + * - -2: 失败,输入参数错误。 + * @note 此功能默认不开启。 + * @list 网络管理 + */ + +- (int)setCellularEnhancement:(ByteRTCMediaTypeEnhancementConfig * _Nonnull)config; + /** + * + * @type api + * @brief 设置本地代理。 + * @param configurations 本地代理配置参数。参看 ByteRTCLocalProxyInfo{@link #ByteRTCLocalProxyInfo}。
    + * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
    + * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @note + * - 该方法需要在进房前调用。 + * - 调用该方法设置本地代理后,SDK 会触发 rtcEngine:onLocalProxyStateChanged:withProxyState:withProxyError:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalProxyStateChanged:withProxyState:withProxyError:} ,返回代理连接的状态。 + * @list 通话加密 + */ + +- (int)setLocalProxy:(NSArray * _Nonnull)configurations; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h new file mode 100644 index 0000000..913c340 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h @@ -0,0 +1,336 @@ +#import "ByteRTCEngine.h" +#import "rtc/ByteRTCVideoDefinesEx.h" + +@class ByteRTCEngineEx; +@class ByteRTCRoomEx; + +/** + * + * @type callback + * @brief ByteRTCEngineDelegateEx Class
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ +@protocol ByteRTCEngineDelegateEx +@optional + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@end +/** + * + * @type api + * @brief ByteRTCEngineEx class + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCEngineEx : ByteRTCEngine +/** +* +* @type api +* @brief 创建 ByteRTCEngineEx 实例。
    +* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    +* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 +* @param appId 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 +* @param delegate SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} 。 +* @param delegateEx SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx} 。 +* @param parameters 私有参数。如需使用请联系技术支持人员。 +* @return ByteRTCVideoEx:创建成功。返回一个可用的 ByteRTCEngineEx{@link #ByteRTCEngineEx} 实例 +*/ ++ (ByteRTCEngineEx* _Nullable)createRTCEngineEx:(ByteRTCEngineConfig * _Nonnull) config + delegate:(id _Nullable)delegate; + +/** +* +* @type api +* @brief 创建 ByteRTCEngineEx 实例。
    +* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    +* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 +* @param appId 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 +* @param delegate SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} 。 +* @param delegateEx SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx} 。 +* @param parameters 私有参数。如需使用请联系技术支持人员。 +* @return ByteRTCVideoEx:创建成功。返回一个可用的 ByteRTCEngineEx{@link #ByteRTCEngineEx} 实例 +*/ ++ (ByteRTCEngine* _Nullable)createRTCEngineExMulti:(ByteRTCEngineConfig* _Nonnull)config + delegate:(id _Nullable)delegate; + +/** + * + * @type api + * @brief 销毁由 ByteRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 ByteRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 ByteRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 ByteRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ ++ (void)destroyRTCEngineEx NS_SWIFT_NAME(destroyRTCVideoEx()); + + +/** + * + * @type api + * @brief 销毁由createRTCEngineExMulti:delegate:parameters::delegateEx:parameters{@link #ByteRTCEngineEx#createRTCEngineExMulti:delegate:parameters:delegateEx:parameters} ByteRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 ByteRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 ByteRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 ByteRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ ++ (void)destroyRTCEngineExMulti:(ByteRTCEngineEx*)engine; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param delegateEx 参看 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx}。 + */ +- (void)setDelegateEx:(id _Nullable)delegateEx; +/** + * + * @type api + * @brief 创建 ByteRTCRoomEx{@link #ByteRTCRoomEx} 实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 才能真正地创建/加入房间。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoomEx{@link #ByteRTCRoomEx} 房间实例。 + * @note 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + */ +- (ByteRTCRoomEx* _Nullable)createRTCRoomEx:(NSString* _Nonnull)roomId; +/** + * + * @type api + * @brief 设置视频源的相关配置。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 参看 ByteRTCVideoSourceConfig{@link #ByteRTCVideoSourceConfig}。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ +- (int)setVideoSource:(ByteRTCStreamIndex)streamIndex videoSourceConfig:(ByteRTCVideoSourceConfig* _Nonnull)config; +/** + * + * @type api + * @region 自定义流处理 + * @brief 推送外部视频帧。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param frame 该视频帧包含待 SDK 编码的视频数据,参考 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 推送外部视频帧前,必须调用 setVideoSource:videoSourceConfig:{@link #ByteRTCEngineEx#setVideoSource:videoSourceConfig:} 开启外部视频源采集。 + */ +- (int)pushExternalVideoFrame:(ByteRTCStreamIndex)streamIndex videoFrame:(ByteRTCVideoFrameData* _Nonnull)frame; +/** + * + * @type api + * @brief 设置流的优先级。
    + * 在网络条件有限的情况下,优先保障高优先级视频流的清晰度和流畅度,优先保障高优先级流的音频流畅度和音质。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param priority 参看 ByteRTCStreamPriority{@link #ByteRTCStreamPriority}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setLocalStreamPriority:(ByteRTCStreamIndex)streamIndex priority:(ByteRTCStreamPriority)priority; +/** + * + * @type api + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param captureConfig 视频采集参数。参看: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture:deviceId:{@link #ByteRTCEngineEx#startVideoCapture:deviceId:} 前调用本接口。
    + * + 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + */ +- (int)setVideoCaptureConfig:(ByteRTCStreamIndex)streamIndex + captureConfig:(ByteRTCVideoCaptureConfig* _Nullable)captureConfig; + +#if BYTERTC_TARGET_MAC +/** + * + * @type api + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 rtcEngine:onUserStartVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartVideoCapture:info:} 的回调。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param deviceId 设备 ID + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用 stopVideoCapture:{@link #ByteRTCEngineEx#stopVideoCapture:} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。
    + * + 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。
    + * + 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + */ +- (int)startVideoCapture:(ByteRTCStreamIndex)streamIndex deviceId:(NSString* _Nonnull)deviceId; +#endif +/** + * + * @type api + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopVideoCapture:info:} 的回调。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用 startVideoCapture:deviceId{@link #ByteRTCEngineEx#startVideoCapture:deviceId:} 可以开启内部视频采集。
    + * + 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + */ +- (int)stopVideoCapture:(ByteRTCStreamIndex)streamIndex; + +/** + * + * @type api + * @brief 设置音频源的整体音量。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioSourceVolume:(ByteRTCStreamIndex)streamIndex volume:(int)volume; +/** + * + * @type api + * @brief 设置音频源的内容。单个音频源的内容可以包含一个或多个原始音频来源。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 内容构成。参看 ByteRTCAudioContentTypeConfig{@link #ByteRTCAudioContentTypeConfig}。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioContentType:(ByteRTCStreamIndex)streamIndex config:(ByteRTCAudioContentTypeConfig* _Nonnull)config; +/** + * + * @type api + * @brief 设置音频流的编码配置。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 编码设置。参看 ByteRTCAudioEncodeConfig{@link #ByteRTCAudioEncodeConfig}。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioEncodeConfig:(ByteRTCStreamIndex)streamIndex config:(ByteRTCAudioEncodeConfig* _Nonnull)config; + +/** +* +* @type api +* @brief 设置多路流编码配置,在开启simulcast功能下可同时设置4路分辨率的流 +* @param stream_index 视频流的索引。参看 StreamIndex{@link #StreamIndex}。 +* @param solutions 编码设置。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 +* @param solution_num 需要传入的solutions数组大小。 +* @return +* + 0: 调用成功。
    +* + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 +*/ +- (int)setVideoEncoderConfig:(ByteRTCStreamIndex)streamIndex config:(NSArray * _Nullable)videoSolutions; + +@end + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h new file mode 100644 index 0000000..85f575c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h @@ -0,0 +1,908 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room +*/ + +#import +#import "rtc/ByteRTCDefines.h" +#import "rtc/ByteRTCRangeAudio.h" + +@class ByteRTCGameRoom; +/** + * + * @type callback + * @brief 游戏房间事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCGameRoomDelegate +@optional + /** + * + * @hidden + * @type callback + * @brief 游戏房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参看 ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStateChangedWithReason:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(ByteRTCRoomState)state + reason:(ByteRTCRoomStateChangeReason)reason; + + /** + * + * @type callback + * @brief 游戏房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @type callback + * @brief 音频流状态改变回调,发生流相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 流状态码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 附加信息,默认为空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onStreamStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; +/** + * + * @type callback + * @brief 离开游戏房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并释放所有通话相关的音视频资源。SDK 完成所有的资源释放后通过此回调通知用户。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stats 保留参数,目前为空。 + * @note + * - 用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCGameRoom#destroy} 销毁房间实例方法销毁 RTC 引擎,则将无法收到此回调事件。 + * - 离开游戏房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。 + * @list 房间管理 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + + /** + * + * @deprecated since 3.41 and will be deleted in later version, use rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:} and rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} instead. + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param warningCode 警告码,详见枚举类型 ByteRTCWarningCode{@link #ByteRTCWarningCode} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomWarning:(ByteRTCWarningCode)warningCode __deprecated_msg("Will be removed in new version"); +/** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生改变时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param state 音视频同步状态,参看 ByteRTCAVSyncState{@link #ByteRTCAVSyncState}。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAVSyncStateChange:(ByteRTCAVSyncState)state; +/** + * + * @type callback + * @region 房间管理 + * @brief 视频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 视频流 ID。 + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本端视频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onVideoPublishStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @brief 音频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 音频流 ID。 + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本端音频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAudioPublishStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @region 房间管理 + * @brief 屏幕流视频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 屏幕流视频发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenVideoPublishStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + + +/** + * + * @type callback + * @region 房间管理 + * @brief 屏幕流音频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 屏幕流音频发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenAudioPublishStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @brief 视频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 视频流 ID。 + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onVideoSubscribeStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 音频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 音频流 ID. + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 音频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAudioSubscribeStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 屏幕流视频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 屏幕流视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenVideoSubscribeStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 屏幕流音频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 屏幕流音频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenAudioSubscribeStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @region 多房间 + * @brief 房间内通话统计信息回调。
    + * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stats 当前 ByteRTCGameRoom 统计数据,详见:ByteRTCRoomStats{@link #ByteRTCRoomStats}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStats:(ByteRTCRoomStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRoomStats:)); +/** + * + * @hidden 仅内部使用 + * @type callback + * @region 多房间 + * @valid since 3.60. + * @brief 房间事件回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 ByteRTCRoomEvent{@link #ByteRTCRoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 ByteRTCRoomEventInfo{@link #ByteRTCRoomEventInfo}。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomEvent:(NSString *_Nonnull)roomId uid:(NSString *_Nonnull)uid state:(ByteRTCRoomEvent)state info:(ByteRTCRoomEventInfo *_Nonnull)info; +/** + * + * @type callback + * @brief 本地流数据统计以及网络质量回调。
    + * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
    + * 统计信息通过 ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param stats 当前房间本地流数据统计。详见:ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onLocalStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info stats:(ByteRTCLocalStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onLocalStreamStats:)); +/** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
    + * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param stats 当前房间本地流数据统计。 详见:ByteRTCRemoteStreamStats{@link #ByteRTCRemoteStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRemoteStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info stats:(ByteRTCRemoteStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRemoteStreamStats:)); +/** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
    + * 1. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
    + * 2. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开游戏房间,或切至不可见时,本地用户会收到此事件 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 离开房间,或切至不可见的远端用户 ID。 + * @param reason 用户离开房间的原因:
    + * - 0: 远端用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 主动退出房间。 + * - 1: 远端用户因 Token 过期或网络原因等掉线。详细信息请参看[连接状态提示](https: + * - 3: 服务端调用 OpenAPI 将远端用户踢出房间。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onUserLeave:(NSString *_Nonnull)uid reason:(ByteRTCUserOfflineReason)reason; +/** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 进房权限。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @list 引擎管理 + */ + +- (void)onTokenWillExpire:(ByteRTCGameRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 发布权限。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}、rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:}、rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:} 回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}、rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:} 或 rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} 回调,提示该流已停止发布。 + * @list 引擎管理 + * @order 3 + */ + +- (void)onPublishPrivilegeTokenWillExpire:( ByteRTCGameRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 订阅权限有效期。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调,提示错误码为 `-1003` 没有订阅权限。 + * @list 引擎管理 + */ + +- (void)onSubscribePrivilegeTokenWillExpire:( ByteRTCGameRoom *_Nonnull)rtcRoom; + /** + * + * @deprecated since 3.36 and will be deleted in later version, use rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}, rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:}, and rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} instead. + * @type callback + * @brief 以下情况会触发此回调:
    + * - 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调通知。 + * - 房间内的用户原音视频流被移出后,又重新发布音视频流时,房间内的其他用户会收到此回调通知。 + * - 用户刚加入房间时,会收到此回调,包含房间中所有已发布的流。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stream 流属性,参看 ByteRTCStream{@link #ByteRTCStream} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamAdd:(id _Nonnull)stream __deprecated_msg("Will be removed in new version"); + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in later version, use rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}, rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:}, and rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调通知。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 远端流来源的用户 ID 。 + * @param stream 流的属性,参看 ByteRTCStream{@link #ByteRTCStream}。 + * @param reason 远端流移除的原因,参看 ByteRTCStreamRemoveReason{@link #ByteRTCStreamRemoveReason} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamRemove:(NSString *_Nonnull)uid + stream:(id _Nonnull)stream + reason:(ByteRTCStreamRemoveReason)reason + __deprecated_msg("Will be removed in new version"); + +/** + * + * @hidden for internal use only + * @type callback + * @region 多房间 + * @brief 当发布流成功的时候回调该事件 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param userId 用户 ID + * @param isScreen 该流是否是屏幕流
    + * + */ + + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamPublishSuccess:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生错误时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param userId 用户 ID。 + * @param eventCode 音视频同步状态错误,参看 ByteRTCAVSyncEvent{@link #ByteRTCAVSyncEvent}。 + * @list 音视频传输 + * @order 1 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onAVSyncEvent:(NSString *_Nonnull)roomId userId:(NSString *_Nonnull)userId eventCode:(ByteRTCAVSyncEvent)eventCode; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishStreamVideo:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端音频流发布回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishStreamAudio:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端屏幕共享的视频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 远端流发布用户的用户 ID。 + * @param isPublish 为 true 代表已发布,为 false 代表已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishScreenVideo:(NSString* _Nonnull)roomId uid:(NSString* _Nonnull)uid isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端屏幕共享的音频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 远端流发布用户的用户 ID。 + * @param isPublish 为 true 代表已发布,为 false 代表已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishScreenAudio:(NSString* _Nonnull)roomId uid:(NSString* _Nonnull)uid isPublish:(BOOL)isPublish; + /** + * + * @type callback + * @brief 广播文本消息回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + /** + * + * @type callback + * @brief 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomMessageSendResult:(NSInteger)msgid error:(ByteRTCRoomMessageSendResult)error; +/** + * + * @valid since 3.52. + * @type callback + * @brief 发送附加信息结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param taskId 本次调用的任务编号。 + * @param result 房间附加信息设置结果,详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSetRoomExtraInfoResult:(NSInteger)taskId result:(ByteRTCSetRoomExtraInfoResult)result; +/** + * + * @valid since 3.52. + * @type callback + * @brief 接收到房间附加信息的回调。
    + * 另外用户加入房间成功后会收到这个房间全量附加信息 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param key 附加信息的键值 + * @param value 附加信息的内容 + * @param lastUpdateUserId 最后更新这条附加信息的用户编号 + * @param lastUpdateTimeMs 最后更新这条附加信息的 Unix 时间,时间精度是毫秒 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomExtraInfoUpdate:(NSString *_Nonnull)key value:(NSString *_Nonnull)value lastUpdateUserId:(NSString *_Nonnull)lastUpdateUserId lastUpdateTimeMs:(NSInteger)lastUpdateTimeMs; +/** + * + * @valid since 3.54 + * @type callback + * @brief 设置用户可见性的回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param currentUserVisibility 当前用户的可见性。
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param errorCode 设置用户可见性错误码,参看 ByteRTCUserVisibilityChangeError{@link #ByteRTCUserVisibilityChangeError}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserVisibilityChanged:(BOOL)currentUserVisibility errorCode:(ByteRTCUserVisibilityChangeError)errorCode; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
    + * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onVideoStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
    + * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onAudioStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; + +#pragma mark ForwardStream related callback + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ByteRTCForwardStreamStateInfo{@link #ByteRTCForwardStreamStateInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onForwardStreamStateChanged:(NSArray * _Nonnull)infos; + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ByteRTCForwardStreamEventInfo{@link #ByteRTCForwardStreamEventInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom * _Nonnull)rtcRoom onForwardStreamEvent:(NSArray * _Nonnull)infos; +/** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param localQuality 本端网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @param remoteQualities 已订阅用户的网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom * _Nonnull)rtcRoom onNetworkQuality:(ByteRTCNetworkQualityStats *_Nonnull)localQuality remoteQualities:(NSArray *_Nonnull)remoteQualities; +/** + * + * @type callback + * @brief 字幕状态发生改变回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 和 stopSubtitle{@link #ByteRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param state 字幕状态。参看 ByteRTCSubtitleState{@link #ByteRTCSubtitleState}。 + * @param errorCode 字幕任务错误码。参看 ByteRTCSubtitleErrorCode{@link #ByteRTCSubtitleErrorCode}。 + * @param errorMessage 第三方服务出现的错误。当因第三方服务出现错误,导致字幕状态改变时,用户可通过此参数获取具体的错误信息。如果不是因为第三方服务导致字幕状态改变,该字段为空。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSubtitleStateChanged:(ByteRTCSubtitleState)state + errorCode:(ByteRTCSubtitleErrorCode)errorCode + errorMessage:(NSString *_Nonnull)errorMessage; +/** + * + * @type callback + * @brief 字幕相关内容回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param subtitles 字幕消息内容。参看 ByteRTCSubtitleMessage{@link #ByteRTCSubtitleMessage}。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSubtitleMessageReceived:(NSArray * _Nonnull)subtitles; +@end +/** + * + * @type api + * @list 房间管理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCGameRoom : NSObject +/** + * + * @type callback + * @list 房间管理 + */ + +@property(nonatomic, weak) id _Nullable delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 退出并销毁调用 createGameRoom:roomConfig:{@link #ByteRTCEngine#createGameRoom:roomConfig:} 所创建的房间实例。 + * @list 房间管理 + */ + +- (void)destroy; +/** + * + * @type api + * @brief 通过设置 ByteRTCGameRoom{@link #ByteRTCGameRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + +- (int)setRTCGameRoomDelegate:(id _Nullable)roomDelegate; +/** + * + * @type api + * @brief 加入游戏房间。
    + * 调用 createGameRoom:roomConfig:{@link #ByteRTCEngine#createGameRoom:roomConfig:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音频通话。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 rtcRoom:onUserJoined:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - -1:roomId / userInfo.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom:{@link #ByteRTCGameRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型详见 ByteRTCErrorCode{@link #ByteRTCErrorCode} 中的 ByteRTCErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。 + * @list 房间管理 + */ + +- (int)joinRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type api + * @brief 离开游戏房间。
    + * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,触发以下回调: + * - 远端用户收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * - 正在发布的流会被取消发布。远端用户收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}、rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:} 和/或 rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:} 回调通知。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,必须调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 再次加入房间。 + * @list 房间管理 + */ + +- (int)leaveRoom NS_SWIFT_NAME(leaveRoom()); +/** + * + * @type api + * @brief 更新游戏房间 Token。
    + * 收到 onTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onTokenWillExpire:},onPublishPrivilegeTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onPublishPrivilegeTokenWillExpire:},或 onSubscribePrivilegeTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onSubscribePrivilegeTokenWillExpire:} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:} ,错误码是 `-1010`。 + * @return + * - 0:成功; + * - !0:失败。 + * @note 请勿同时调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 和 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 重新加入房间。 + * @list 房间管理 + */ + +- (int)updateToken:(NSString *_Nullable)token; +/** + * + * @type api + * @brief 获取游戏房间的范围语音接口实例。 + * @return 方法调用结果:
    + * - ByteRTCRangeAudio:成功,返回一个 ByteRTCRangeAudio{@link #ByteRTCRangeAudio} 实例。 + * - NULL:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + +- (ByteRTCRangeAudio *_Nullable)getRangeAudio; +/** + * + * @type api + * @brief 加入游戏房间后,调用该接口开启或关闭麦克风。同游戏房间其他用户会收到回调 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:}。 + * @param enable 是否开启麦克风:
    + * - true:开启麦克风,采集并发布音频流。 + * - false:默认设置。关闭麦克风,停止采集和发布音频流。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @note 不可与 enableAudioSend:{@link #ByteRTCGameRoom#enableAudioSend:} 同时调用。 + * @list 音频管理 + */ + +- (int)enableMicrophone:(BOOL)enable; +/** + * + * @type api + * @brief 加入游戏房间后,开启或关闭扬声器。 + * @param enable 是否开启扬声器:
    + * - true:开启扬声器。 + * - false:默认设置。关闭扬声器。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @list 音频管理 + */ + +- (int)enableSpeakerphone:(BOOL)enable; +/** + * + * @type api + * @brief 开始或停止发送音频流。调用此接口不影响音频采集。同游戏房间其他用户会收到相应的回调。 + * @param enable 是否发送音频流:
    + * - true:发布音频流。 + * - false:默认设置。停止发布音频流(不会关闭麦克风),即静音。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败,未加入房间。 + * @note 不可与 enableMicrophone:{@link #ByteRTCGameRoom#enableMicrophone:} 同时调用。 + * @list 音频管理 + */ + +- (int)enableAudioSend:(BOOL)enable; +/** + * + * @type api + * @brief 是否订阅指定用户的音频流。 + * @param userId 用户 ID,最大长度为128字节的非空字符串。支持的字符集范围为:
    + * 1. 26个大写字母 A ~ Z
    + * 2. 26个小写字母 a ~ z
    + * 3. 10个数字 0 ~ 9
    + * 4. 下划线"_", at符"@", 减号"-" + * @param enable 是否订阅音频流:
    + * true:订阅指定用户的音频流。 + * false:默认设置。不订阅指定用户的音频流。 + * @return + * - 0:接口调用成功 + * - -2:传入的用户 ID 为空字符串。 + * @list 音频管理 + */ + +- (int)enableAudioReceive:(NSString* _Nullable)userId enable:(BOOL)enable; +/** + * + * @type api + * @brief 调节某个游戏房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setRemoteRoomAudioPlaybackVolume:(NSInteger)volume; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h new file mode 100644 index 0000000..61bba94 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCRTSRoom +*/ + +#import +#import "rtc/ByteRTCRtsDefines.h" +#import "rtc/ByteRTCDefines.h" + +@class ByteRTCRTSRoom; + +/** + * + * @type callback + * @brief RTS 房间事件回调接口 + */ + +@protocol ByteRTCRTSRoomDelegate +@optional + + /** + * + * @type callback + * @list 房间管理 + * @brief RTS 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtsRoom RTS 房间实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * + 0: 加入房间成功。
    + * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * - `join_type` 表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * - `elapsed` 表示加入房间耗时,即本地用户从调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 到加入 RTS 房间成功所经历的时间间隔,单位为 ms。 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomStateChanged:(NSString * _Nonnull)roomId + withUid:(nonnull NSString *)uid state:(NSInteger)state + extraInfo:(nonnull NSString *)extraInfo; + +/** + * + * @type callback + * @list 房间管理 + * @brief 离开 RTS 房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCRTSRoom#leaveRoom} 方法后,SDK 会停止房间内消息的收发,并在释放所有相关资源后,通过此回调通知用户离开房间成功。
    + * @param rtsRoom RTSRoom 对象。
    + * @param stats 保留参数,目前为空。 + * @note + * + 用户调用 leaveRoom{@link #ByteRTCRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCRTSRoom#destroy} 销毁房间实例,则将无法收到此回调事件。
    + * + 离开房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。
    + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + +/** + * + * @type callback + * @list 房间管理 + * @brief 远端用户首次进房,或断网后重新连入房间时,房间内其他用户将收到该事件。 + * @param rtsRoom ByteRTCRTSRoom 对象。
    + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开 RTS 房间时,本地用户会收到此事件。 + * @param rtsRoom ByteRTCRTSRoom 对象。
    + * @param uid 离开房间的远端用户 ID 。
    + * @param reason 用户离开房间的原因,参看 ByteRTCUserOfflineReason{@link #ByteRTCUserOfflineReason}。 + * @list 房间管理 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onUserLeave:(NSString * _Nonnull)uid + reason:(ByteRTCUserOfflineReason)reason; + +#pragma mark - Message Delegate Methods + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtsRoom ByteRTCRTSRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomMessageReceived:(NSString * _Nonnull)uid + message:(NSString * _Nonnull)message; + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtsRoom ByteRTCRTSRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomBinaryMessageReceived:(NSString * _Nonnull)uid + message:(NSData * _Nonnull)message; + /** + * + * @type callback + * @brief 向房间内所有用户群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtsRoom ByteRTCRTSRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @note
    + * + 你应调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 向房间内群发文本消息
    + * + 你应调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 向房间内群发二进制消息 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomMessageSendResult:(NSInteger)msgid + error:(ByteRTCRoomMessageSendResult)error; + + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; +/** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onRoomMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onRoomBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号. + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtsRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note + * - 你应调用 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 向房间内单个用户发送文本消息 + * - 你应调用 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 向房间内单个用户发送二进制消息 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + + +@end + +/** + * + * @type api + * @brief RTS房间 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRTSRoom : NSObject +/** + * + * @type callback + */ + +@property(nonatomic, weak) id _Nullable delegateRts; + +/** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRTSRoom:{@link #ByteRTCEngine#createRTSRoom:} 所创建的 RTS 房间实例。 + */ + +- (void)destroy; + +/** + * + * @type api + * @list 房间管理 + * @brief 通过设置 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}代理,可以监听此 `ByteRTCRTSRoom` 对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}。 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ + +- (int)setRTCRoomDelegateRts:(id _Nullable)roomDelegate; + + +/** + * + * @type api + * @brief 离开房间。
    + * 用户调用此方法离开房间,结束实时消息通信,释放所有通信相关的资源。 + * @return 方法调用结果。
    + * + 0: 方法调用成功
    + * + < 0: 方法调用失败
    + * @note
    + * + 可见的用户离开房间后,房间内其他用户会收到 rtsRoom:onUserLeave:reason:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserLeave:reason:} 回调通知;
    + * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 rtsRoom:OnLeaveRoom:{@link #ByteRTCRTSRoomDelegate#rtsRoom:OnLeaveRoom:} 回调通知。
    + * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 rtsRoom:OnLeaveRoom:{@link #ByteRTCRTSRoomDelegate#rtsRoom:OnLeaveRoom:} 回调。 + * @list 房间管理 + */ + +- (int)leaveRoom; + +#pragma mark - Message Methods + + /** + * + * @type api + * @brief 给房间内的所有其他用户发送文本消息。 + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
    + * + 在发送房间内文本消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。
    + * + 调用该函数后会收到一次 rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败;
    + * + 若文本消息发送成功,则房间内远端用户会收到 rtsRoom:onRoomMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendRoomMessage:(NSString * _Nonnull)message; + /** + * + * @type api + * @brief 给房间内的所有其他用户发送二进制消息。 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
    + * + 在房间内广播二进制消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。
    + * + 调用该函数后会收到一次 rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败;
    + * + 若二进制消息发送成功,则房间内所有用户会收到 rtsRoom:onRoomBinaryMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendRoomBinaryMessage:(NSData * _Nonnull)message; + +/** + * + * @type api + * @brief 更新 Token。
    + * 收到 onTokenWillExpire:{@link #ByteRTCRoomDelegate#onTokenWillExpire:},onPublishPrivilegeTokenWillExpire:{@link #ByteRTCRoomDelegate#onPublishPrivilegeTokenWillExpire:},或 onSubscribePrivilegeTokenWillExpire:{@link #ByteRTCRoomDelegate#onSubscribePrivilegeTokenWillExpire:} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:},错误码是 `-1010`。 + * @return + * - 0:成功; + * - !0:失败。 + * @note 请勿同时调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 和 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 重新加入房间。 + * @list 房间管理 + */ + +- (int)updateToken:(NSString *_Nullable)token; + + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点文本消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config
    + * 消息发送的可靠/有序类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig} + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 调用该函数后会收到一次 rtsRoom:onUserMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageSendResult:error:} 回调,通知消息发送方发送成功或失败。 + * - 若文本消息发送成功,则 uid 所指定的用户会收到 rtsRoom:onUserMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendUserMessage:(NSString *_Nonnull)userId message:(NSString *_Nonnull)message config:(ByteRTCMessageConfig)config; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的二进制消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config
    + * 消息发送的可靠/有序类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内二进制消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 调用该函数后会收到一次 rtsRoom:onUserMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则 uid 所指定的用户会收到 rtsRoom:onUserBinaryMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendUserBinaryMessage:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 加入 RTS 房间。
    + * 调用 createRTSRoom:{@link #ByteRTCEngine#createRTSRoom:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。 + * @param token 动态密钥,用于对进房用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * 使用不同 AppID 的 App 是不能互通的。
    + * 请务必保证生成 Token 使用的 AppID 和创建引擎时使用的 AppID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息。参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @return 方法调用结果。
    + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - -1: 参数无效 + * - -2: 已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 AppID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后加入房间的用户会将先加入房间的用户踢出房间,并且先加入房间的用户会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型为重复登录 ByteRTCErrorCodeDuplicateLogin。 + * - 本地用户调用此方法加入房间成功后,会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。若本地用户同时为可见用户,加入房间时远端用户会收到 rtsRoom:onUserJoined:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserJoined:} 回调通知。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:}。 + * @list 房间管理 + */ + +- (int)joinRTSRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h new file mode 100644 index 0000000..a529389 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h @@ -0,0 +1,1367 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room +*/ + +#import +#import "ByteRTCRTSRoom.h" +#import "rtc/ByteRTCRangeAudio.h" +#import "rtc/ByteRTCSpatialAudio.h" + +@class ByteRTCRoom; +/** + * + * @type callback + * @brief 房间事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCRoomDelegate +@optional + /** + * + * @hidden + * @type callback + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCAudioRoom 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参看 ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomStateChangedWithReason:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(ByteRTCRoomState)state + reason:(ByteRTCRoomStateChangeReason)reason; + + /** + * + * @type callback + * @region 多房间 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCAudioRoom 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @deprecated since 3.60, refer to [Upgrade Guide](https: + * @type callback + * @brief 流状态改变回调,发生流相关的警告或错误时会收到此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 流状态码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 附加信息,目前为空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onStreamStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; +/** + * + * @type callback + * @region 多房间 + * @brief 离开房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并释放所有通话相关的音视频资源。SDK 完成所有的资源释放后通过此回调通知用户。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stats 保留参数,目前为空。 + * @note + * - 用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCRoom#destroy} 销毁房间实例或 destroyRTCEngine{@link #ByteRTCEngine#destroyRTCEngine} 方法销毁 RTC 引擎,则将无法收到此回调事件。 + * - 离开房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。 + * @list 房间管理 + * @order 2 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + + /** + * + * @hidden + * @deprecated since 3.41 and will be deleted in 3.51, use rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} and rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} instead. + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param warningCode 警告码,详见枚举类型 ByteRTCWarningCode{@link #ByteRTCWarningCode} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomWarning:(ByteRTCWarningCode)warningCode __deprecated_msg("Will be removed in new version"); +/** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生改变时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param state 音视频同步状态,参看 ByteRTCAVSyncState{@link #ByteRTCAVSyncState}。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAVSyncStateChange:(ByteRTCAVSyncState)state; +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 方法中的本地视频发布状态变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用该方法,请迁移至该回调。 + * @brief 本地视频流发布状态改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本地视频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoPublishStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 方法中的本地音频流发布状态变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用该方法,请迁移至该回调。 + * @brief 本地音频流发布状态改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本地音频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioPublishStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 和 `rtcRoom:onStreamSubscribed:userId:subscribeConfig:` 方法中的视频流订阅状态发生变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这两个方法,请迁移至该回调。 + * @brief 视频流订阅状态发生改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 后会收到该通知。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoSubscribeStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 和 `rtcRoom:onStreamSubscribed:userId:subscribeConfig:` 方法中的音频流订阅状态发生变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这两个方法,请迁移至该回调。 + * @brief 音频流订阅状态发生改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 音频流订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 后会收到该通知。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioSubscribeStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @region 多房间 + * @brief 房间内通话统计信息回调。
    + * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stats 当前 ByteRTCRoom 统计数据,详见:ByteRTCRoomStats{@link #ByteRTCRoomStats} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomStats:(ByteRTCRoomStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRoomStats:)); +/** + * + * @hidden + * @type callback + * @region 多房间 + * @valid since 3.60. + * @brief 房间事件回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 ByteRTCRoomEvent{@link #ByteRTCRoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 ByteRTCRoomEventInfo{@link #ByteRTCRoomEventInfo}。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomEvent:(NSString *_Nonnull)roomId uid:(NSString *_Nonnull)uid state:(ByteRTCRoomEvent)state info:(ByteRTCRoomEventInfo *_Nonnull)info; +/** + * + * @type callback + * @brief 本地流数据统计以及网络质量回调。
    + * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
    + * 统计信息通过 ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param stats 当前房间本地流数据统计。详见:ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onLocalStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +stats:(ByteRTCLocalStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onLocalStreamStats:)); +/** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
    + * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param stats 当前房间本地流数据统计。 详见:ByteRTCRemoteStreamStats{@link #ByteRTCRemoteStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRemoteStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +stats:(ByteRTCRemoteStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRemoteStreamStats:)); +/** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
    + * 1. 远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设为可见后加入房间时,房间内其他用户将收到该事件。
    + * 2. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
    + * 3. 房间内隐身远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法切换至可见时,房间内其他用户将收到该事件。
    + * 4. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开 RTC 房间,或切至不可见时,本地用户会收到此事件 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 离开房间,或切至不可见的远端用户 ID。 + * @param reason 用户离开房间的原因:
    + * - 0: 远端用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 主动退出房间。 + * - 1: 远端用户因 Token 过期或网络原因等掉线。详细信息请参看[连接状态提示](https: + * - 2: 远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 切换至不可见状态。 + * - 3: 服务端调用 OpenAPI 将远端用户踢出房间。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserLeave:(NSString *_Nonnull)uid reason:(ByteRTCUserOfflineReason)reason; +/** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 进房权限。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @list 引擎管理 + */ + +- (void)onTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 发布权限。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调,提示该流已停止发布。 + * @list 引擎管理 + * @order 3 + */ + +- (void)onPublishPrivilegeTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 订阅权限有效期。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 回调,提示错误码为 `-1003` 没有订阅权限。 + * @list 引擎管理 + */ + +- (void)onSubscribePrivilegeTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; + /** + * + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}instead. + * @type callback + * @brief 以下情况会触发此回调:
    + * - 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调通知。 + * - 房间内的用户原音视频流被移出后,又重新发布音视频流时,房间内的其他用户会收到此回调通知。 + * - 用户刚加入房间时,会收到此回调,包含房间中所有已发布的流。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stream 流属性,参看 ByteRTCStream{@link #ByteRTCStream} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamAdd:(id _Nonnull)stream __deprecated_msg("Will be removed in new version"); + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onUserUnpublishStream:type:reason: instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调通知。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 远端流来源的用户 ID 。 + * @param stream 流的属性,参看 ByteRTCStream{@link #ByteRTCStream}。 + * @param reason 远端流移除的原因,参看 ByteRTCStreamRemoveReason{@link #ByteRTCStreamRemoveReason} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamRemove:(NSString *_Nonnull)uid + stream:(id _Nonnull)stream + reason:(ByteRTCStreamRemoveReason)reason + __deprecated_msg("Will be removed in new version"); + +/** + * + * @hidden for internal use only + * @type callback + * @region 多房间 + * @brief 当发布流成功的时候回调该事件 + * @param rtcRoom ByteRTCRoom 对象。 + * @param userId 用户 ID + * @param isScreen 该流是否是屏幕流
    + * + */ + + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamPublishSuccess:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生错误时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param roomId 房间 ID。 + * @param userId 用户 ID。 + * @param eventCode 音视频同步状态错误,参看 ByteRTCAVSyncEvent{@link #ByteRTCAVSyncEvent}。 + * @list 音视频传输 + * @order 1 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAVSyncEvent:(NSString *_Nonnull)roomId userId:(NSString *_Nonnull)userId eventCode:(ByteRTCAVSyncEvent)eventCode; + +/** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:} 成功发布采集的视频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom onUserPublishStreamVideo:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布音频流的回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 成功发布音频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom onUserPublishStreamAudio:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info isPublish:(BOOL)isPublish; + + /** + * + * @type callback + * @brief > 该接口将于 3.64 onRoomMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageReceived:uid:message:} 代替。 + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 onRoomBinaryMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomBinaryMessageReceived:uid:message:} 代替。 + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onUserMessageReceived:uid:message:} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserBinaryMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onUserBinaryMessageReceived:uid:message:} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号. + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note + * - 你应调用 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 向房间内单个用户发送文本消息 + * - 你应调用 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 向房间内单个用户发送二进制消息 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + /** + * + * @type callback + * @brief 调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 或 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageSendResult:(NSInteger)msgid error:(ByteRTCRoomMessageSendResult)error; +/** + * + * @valid since 3.52. + * @type callback + * @brief 调用 setRoomExtraInfo:value:{@link #ByteRTCRoom#setRoomExtraInfo:value:} 结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param taskId 本次调用的任务编号。 + * @param result 设置房间附加信息结果,详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSetRoomExtraInfoResult:(NSInteger)taskId result:(ByteRTCSetRoomExtraInfoResult)result; +/** + * + * @valid since 3.52. + * @type callback + * @brief 接收到房间附加信息的回调。
    + * 房间内其他用户调用 setRoomExtraInfo:value:{@link #ByteRTCRoom#setRoomExtraInfo:value:} 设置房间附加信息,收到此回调。
    + * 另外用户加入房间成功后会收到这个房间全量附加信息 + * @param rtcRoom ByteRTCRoom 对象。 + * @param key 附加信息的键值 + * @param value 附加信息的内容 + * @param lastUpdateUserId 最后更新这条附加信息的用户编号 + * @param lastUpdateTimeMs 最后更新这条附加信息的 Unix 时间,时间精度是毫秒 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomExtraInfoUpdate:(NSString *_Nonnull)key value:(NSString *_Nonnull)value lastUpdateUserId:(NSString *_Nonnull)lastUpdateUserId lastUpdateTimeMs:(NSInteger)lastUpdateTimeMs; + +/** + * + * @valid since 3.54 + * @type callback + * @brief 接收同一房间内,其他用户调用 setStreamExtraInfo:{@link #ByteRTCRoom#setStreamExtraInfo:} 设置的流附加信息的回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param streamId 流附加信息的流 ID + * @param streamInfo 流附加信息的流信息 + * @param extraInfo 流附加信息 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomStreamExtraInfoUpdate:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo *_Nonnull)streamInfo extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @valid since 3.54 + * @type callback + * @brief 用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 设置用户可见性的回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param currentUserVisibility 当前用户的可见性。
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param errorCode 设置用户可见性错误码,参看 ByteRTCUserVisibilityChangeError{@link #ByteRTCUserVisibilityChangeError}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserVisibilityChanged:(BOOL)currentUserVisibility errorCode:(ByteRTCUserVisibilityChangeError)errorCode; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
    + * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
    + * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; + +#pragma mark ForwardStream related callback + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ByteRTCForwardStreamStateInfo{@link #ByteRTCForwardStreamStateInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onForwardStreamStateChanged:(NSArray * _Nonnull)infos; + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ByteRTCForwardStreamEventInfo{@link #ByteRTCForwardStreamEventInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom * _Nonnull)rtcRoom onForwardStreamEvent:(NSArray * _Nonnull)infos; +/** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param rtcRoom ByteRTCRoom 对象 + * @param localQuality 本端网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @param remoteQualities 已订阅用户的网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCRoom * _Nonnull)rtcRoom onNetworkQuality:(ByteRTCNetworkQualityStats *_Nonnull)localQuality remoteQualities:(NSArray *_Nonnull)remoteQualities; +/** + * + * @type callback + * @brief 字幕状态发生改变回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 和 stopSubtitle{@link #ByteRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param state 字幕状态。参看 ByteRTCSubtitleState{@link #ByteRTCSubtitleState}。 + * @param errorCode 字幕任务错误码。参看 ByteRTCSubtitleErrorCode{@link #ByteRTCSubtitleErrorCode}。 + * @param errorMessage 第三方服务出现的错误。当因第三方服务出现错误,导致字幕状态改变时,用户可通过此参数获取具体的错误信息。如果不是因为第三方服务导致字幕状态改变,该字段为空。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSubtitleStateChanged:(ByteRTCSubtitleState)state + errorCode:(ByteRTCSubtitleErrorCode)errorCode + errorMessage:(NSString *_Nonnull)errorMessage; +/** + * + * @type callback + * @brief 字幕相关内容回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 后会收到此回调,通知字幕的相关信息。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param subtitles 字幕消息内容。参看 ByteRTCSubtitleMessage{@link #ByteRTCSubtitleMessage}。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSubtitleMessageReceived:(NSArray * _Nonnull)subtitles; +@end +/** + * + * @type api + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoom : ByteRTCRTSRoom +/** + * + * @type callback + */ + +@property(nonatomic, weak) id _Nullable delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 退出并销毁调用 createRTCRoom:{@link #ByteRTCEngine#createRTCRoom:} 所创建的房间实例。 + * @list 房间管理 + */ + +- (void)destroy; +/** + * + * @valid since 3.53 + * @type api + * @brief 获取房间 ID。 + * @return 房间 ID。 + * @list 房间管理 + */ + +- (NSString *_Nonnull)getRoomId; +/** + * + * @type api + * @brief 通过设置 ByteRTCRoom{@link #ByteRTCRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + +- (int)setRTCRoomDelegate:(id _Nullable)roomDelegate; +/** + * + * @type api + * @brief 加入 RTC 房间。
    + * 调用 createRTCRoom:{@link #ByteRTCEngine#createRTCRoom:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。
    + * > 用户(包括后端机器人)成功进入 RTC 房间后便开始计费。即使房间内只有 1 个用户,也会计算音频计费时长。具体计费说明,请参见[音视频通话计费](69871)。 + * @param token 动态密钥,用于对进房用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * 使用不同 AppID 的 App 是不能互通的。
    + * 请务必保证生成 Token 使用的 AppID 和创建引擎时使用的 AppID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息。参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @param userVisibility 用户可见性。建议在进房时将用户可见性都设置为 `false`,并在用户需要发送音视频流时再通过 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 设置为 `true`。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * @param roomConfig 房间参数配置,设置房间模式以及是否自动发布或订阅流。具体配置模式参看 ByteRTCRoomConfig{@link #ByteRTCRoomConfig}。 + * @return 方法调用结果。
    + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - 本端收到本地流发布状态通知 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}。 + * - 本端收到流订阅状态通知 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。 + * - 本端收到房间内已发布流的通知 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}。 + * - 如果本端用户为可见用户,房间内其他用户收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - -1: 参数无效 + * - -2: 已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 AppID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后加入房间的用户会将先加入房间的用户踢出房间,并且先加入房间的用户会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型为重复登录 ByteRTCErrorCodeDuplicateLogin。 + * - 本地用户调用此方法加入房间成功后,会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。若本地用户同时为可见用户,加入房间时远端用户会收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - 房间内不可见用户的容量远远大于可见用户,而且用户默认可见,因此对于不参与互动的用户,你需要调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 更改为不可见用户。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:}。 + * @list 房间管理 + */ + +- (int)joinRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo userVisibility:(BOOL)userVisibility roomConfig:(ByteRTCRoomConfig *_Nonnull)roomConfig NS_SWIFT_NAME(joinRoom(_:userInfo:userVisibility:roomConfig:)); +/** + * + * @type api + * @brief 设置用户可见性。未调用该接口前,本地用户默认对他人可见。
    + * 默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,最多 30 人可同时上麦。更多信息参看[用户和媒体流上限](https: + * @param enable 设置用户是否对房间内其他用户可见:
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * 设置用户可见性,会收到设置成功/失败回调 rtcRoom:onUserVisibilityChanged:errorCode:{@link #ByteRTCRoomDelegate#rtcRoom:onUserVisibilityChanged:errorCode:}。(v3.54 新增) + * - 在加入房间前设置用户可见性,若设置的可见性与默认值不同,将在加入房间时触发本回调。
    + * - 在加入房间后设置用户可见性,若可见性前后不同,会触发本回调。
    + * - 在断网重连后,若可见性发生改变,会触发本回调。
    + * @note + * - 在加入房间前后,用户均可调用此方法设置用户可见性。 + * - 在房间内,调用此方法成功切换用户可见性后,房间内其他用户会收到相应的回调。 + * - 从可见换至不可见时,房间内其他用户会收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:}。 + * - 从不可见切换至可见时,房间内其他用户会收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:}。 + * - 若调用该方法将可见性设为 `false`,此时尝试发布流会收到 `ByteRTCWarningCodeSubscribeStreamForbiden` 警告。 + * @list 房间管理 + */ + +- (int)setUserVisibility:(BOOL)enable; +/** + * + * @type api + * @brief 设置发流端音画同步。
    + * 当同一用户同时使用两个通话设备分别采集发送音频和视频时,有可能会因两个设备所处的网络环境不一致而导致发布的流不同步,此时你可以在视频发送端调用该接口,SDK 会根据音频流的时间戳自动校准视频流,以保证接收端听到音频和看到视频在时间上的同步性。 + * @param audioUserId 音频发送端的用户 ID,将该参数设为空则可解除当前音视频的同步关系。 + * @return + * - 0: 调用成功。调用该接口后音画同步状态发生改变时,你会收到 rtcRoom:onAVSyncStateChange:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncStateChange:} 回调。 + * - < 0 : 调用失败。监听 rtcRoom:onAVSyncEvent:userId:eventCode:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncEvent:userId:eventCode:} 获取错误详情。同一 RTC 房间内允许存在多个音视频同步关系,但需注意单个音频源不支持与多个视频源同时同步。 + * @note + * - 该方法在进房前后均可调用。 + * - 进行音画同步的音频发布用户 ID 和视频发布用户 ID 须在同一个 RTC 房间内。 + * - 如需更换同步音频源,再次调用该接口传入新的 `audioUserId` 即可;如需更换同步视频源,需先解除当前的同步关系,后在新视频源端开启同步。 + * @list 音视频传输 + */ + +- (int)setMultiDeviceAVSync:(NSString* _Nullable) audioUserId; +/** + * + * @type api + * @brief 离开 RTC 房间。
    + * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,触发以下回调: + * - 远端用户收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * - 正在发布的流会被取消发布。远端用户收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调通知。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。你必须在收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调后,再销毁房间或引擎,或调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 再次加入房间。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 将自身设为可见的用户离开房间后,房间内其他用户会收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * @list 房间管理 + */ + +- (int)leaveRoom NS_SWIFT_NAME(leaveRoom()); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @brief 发布/取消发布视频流。 + * @param publish 是否发布视频流。
    + * - true: 发布。 + * - false: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头视频流。 + * - 如果你需要发布麦克风采集到的音频流,调用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。 + * - 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调通知,订阅了视频流的远端用户会收到 rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:} 回调。 + * @list 音视频传输 + */ + +- (int)publishStreamVideo:(BOOL)publish; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @brief 发布/取消发布音频流。 + * @param publish 指定是否发布音频流。
    + * - true: 发布。 + * - false: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布音频流。 + * - 如果你需要发布摄像头采集到的视频流,调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。 + * - 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调通知,其中成功收到了音频流的远端用户会收到 rtcEngine:onFirstRemoteAudioFrame:info:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteAudioFrame:info:} 回调。 + * @list 音视频传输 + * @order 0 + */ + +- (int)publishStreamAudio:(BOOL)publish; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream` 和 `unsubscribeStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端视频流。 + * @param streamId 目标远端视频流 ID。 + * @param subscribe 指定是否订阅该视频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取当前房间里的远端摄像头流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用本方法取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 回调通知,具体异常原因参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + +- (int)subscribeStreamVideo:(NSString *_Nonnull)streamId subscribe:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream` 和 `unsubscribeStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端音频流。 + * @param streamId 目标远端音频流 ID。 + * @param subscribe 指定是否订阅该音频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调获取当前房间里的远端麦克风流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 回调通知,具体异常原因参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + +- (int)subscribeStreamAudio:(NSString *_Nonnull)streamId subscribe:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内所有远端视频流(通过摄像头采集的)。 + * @param subscribe 是否订阅所有远端视频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return + * 0: 方法调用成功
    + * !0: 方法调用失败 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功调用本接口后,订阅关系将持续到调用 subscribeAllStreamsVideo:{@link #ByteRTCRoom#subscribeAllStreamsVideo:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 音视频传输 + */ + +- (int)subscribeAllStreamsVideo:(BOOL)subscribe; + + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅或取消订阅所有远端音频流(通过麦克风采集的)。 + * @param subscribe 是否订阅所有远端音频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 音视频传输 + */ + +- (int)subscribeAllStreamsAudio:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #ByteRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + +- (int)pauseAllSubscribedStreamVideo; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #ByteRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + +- (int)pauseAllSubscribedStreamAudio; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + +- (int)resumeAllSubscribedStreamVideo; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + +- (int)resumeAllSubscribedStreamAudio; + + /** + * + * @type api + * @brief 给房间内的所有其他用户群发文本消息。 + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该函数后会收到一次 rtcRoom:onRoomMessageSendResult:error:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若文本消息发送成功,则房间内所有远端用户会收到 rtcRoom:onRoomMessageReceived:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (NSInteger)sendRoomMessage:(NSString *_Nonnull)message NS_SWIFT_NAME(sendRoomMessage(_:)); + /** + * + * @type api + * @brief 给房间内的所有其他用户群发二进制消息。 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在房间内广播二进制消息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该函数后会收到一次 rtcRoom:onRoomMessageSendResult:error:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则房间内所有用户会收到 rtcRoom:onRoomBinaryMessageReceived:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (NSInteger)sendRoomBinaryMessage:(NSData * _Nonnull)message NS_SWIFT_NAME(sendRoomBinaryMessage(_:)); + +#pragma mark ForwardStream + /** + * + * @type api + * @brief 开始跨房间转发媒体流。
    + * 在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 后调用本接口,实现向多个房间转发媒体流,适用于跨房间连麦等场景。 + * @param configurations 跨房间媒体流转发指定房间的信息。参看 ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调。 + * - 调用本方法后,你可以通过监听 rtcRoom:onForwardStreamEvent:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamEvent:} 回调来获取各个目标房间在转发媒体流过程中的相关事件。 + * - 开始转发后,目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发流 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调。 + * - 调用本方法后,可以调用 updateForwardStreamToRooms:{@link #ByteRTCRoom#updateForwardStreamToRooms:} 更新目标房间信息,例如,增加或减少目标房间等。 + * - 调用本方法后,可以调用 stopForwardStreamToRooms{@link #ByteRTCRoom#stopForwardStreamToRooms} 停止向所有房间转发媒体流。 + * - 调用本方法后,可以调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms} 暂停向所有房间转发媒体流。 + * @list 音视频传输 + */ + +- (int)startForwardStreamToRooms:(NSArray * _Nullable)configurations NS_SWIFT_NAME(startForwardStreamToRooms(_:)); + /** + * + * @type api + * @brief 更新跨房间媒体流转发信息。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法增加或者减少目标房间,或更新房间密钥。
    + * 调用本方法增加或删减房间后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调,包含发生了变动的目标房间中媒体流转发状态。 + * @param configurations 跨房间媒体流转发目标房间信息。参看 ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * 增加或删减目标房间后,新增目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调。 + * @list 音视频传输 + */ + +- (int)updateForwardStreamToRooms:(NSArray * _Nullable)configurations NS_SWIFT_NAME(updateForwardStreamToRooms(_:)); +/** + * + * @type api + * @brief 停止跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法停止向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调。 + * - 调用本方法后,原目标房间中的用户将接收到本地用户停止发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调和退房 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 的回调。 + * - 如果需要更改目标房间,请调用 updateForwardStreamToRooms:{@link #ByteRTCRoom#updateForwardStreamToRooms:} 更新房间信息。 + * - 如果需要暂停转发,请调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms},并在之后随时调用 resumeForwardStreamToAllRooms{@link #ByteRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @list 音视频传输 + */ + +- (int)stopForwardStreamToRooms; +/** + * + * @type api + * @brief 暂停跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法暂停向所有目标房间转发媒体流。
    + * 调用本方法暂停向所有目标房间转发后,你可以随时调用 resumeForwardStreamToAllRooms{@link #ByteRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 调用本方法后,目标房间中的用户将接收到本地用户停止发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调和退房 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 的回调。 + * @list 音视频传输 + * @order 13 + */ + +- (int)pauseForwardStreamToAllRooms; +/** + * + * @type api + * @brief 恢复跨房间媒体流转发。
    + * 调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms} 暂停转发之后,调用本方法恢复向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * 目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发布 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 的回调。 + * @list 音视频传输 + */ + +- (int)resumeForwardStreamToAllRooms; +/** + * + * @type api + * @brief 获取范围语音接口实例。 + * @return 方法调用结果:
    + * - ByteRTCRangeAudio:成功,返回一个 ByteRTCRangeAudio{@link #ByteRTCRangeAudio} 实例。 + * - NULL:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + +- (ByteRTCRangeAudio *_Nullable)getRangeAudio; +/** + * + * @type api + * @brief 获取空间音频接口实例。 + * @return 方法调用结果:
    + * - ByteRTCSpatialAudio:成功,返回一个 ByteRTCSpatialAudio{@link #ByteRTCSpatialAudio} 实例。 + * - NULL:失败,当前 SDK 不支持空间音频功能。 + * @note + * - 首次调用该方法须在创建房间后、加入房间前。 空间音频相关 API 和调用时序详见[空间音频](https: + * - 只有在使用支持真双声道播放的设备时,才能开启空间音频效果; + * - 机型性能不足可能会导致音频卡顿,使用低端机时,不建议开启空间音频效果; + * - SDK 最多支持 30 个用户同时开启空间音频功能。 + * @list 高级功能 + */ + +- (ByteRTCSpatialAudio *_Nullable)getSpatialAudio; +/** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setRemoteRoomAudioPlaybackVolume:(NSInteger)volume; +/** + * + * @valid since 3.52. + * @type api + * @brief 设置本端发布流在音频选路中的优先级。 + * @param audioSelectionPriority 本端发布流在音频选路中的优先级,默认正常参与音频选路。参见 ByteRTCAudioSelectionPriority{@link #ByteRTCAudioSelectionPriority}。 + * @note + * 在控制台上为本 appId 开启音频选路后,调用本接口才会生效。进房前后调用均可生效。更多信息参见[音频选路](https: + * 如果本端用户同时加入不同房间,使用本接口进行的设置相互独立。 + * @list 音频管理 + */ + +- (int)setAudioSelectionConfig:(ByteRTCAudioSelectionPriority)audioSelectionPriority; +/** + * + * @valid since 3.52. + * @type api + * @brief 设置/更新房间附加信息,可用于标识房间状态或属性,或灵活实现各种业务逻辑。 + * @param key 房间附加信息键值,长度小于 10 字节。
    + * 同一房间内最多可存在 5 个 key,超出则会从第一个 key 起进行替换。 + * @param value 房间附加信息内容,长度小于 128 字节。 + * @return + * - 0: 方法调用成功,返回本次调用的任务编号; + * - <0: 方法调用失败,具体原因详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult}。 + * @note + * - 在设置房间附加信息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该方法后,会收到一次 rtcRoom:onSetRoomExtraInfoResult:result:{@link #ByteRTCRoomDelegate#rtcRoom:onSetRoomExtraInfoResult:result:} 回调,提示设置结果。 + * - 调用该方法成功设置附加信息后,同一房间内的其他用户会收到关于该信息的回调 rtcRoom:onRoomExtraInfoUpdate:value:lastUpdateUserId:lastUpdateTimeMs:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomExtraInfoUpdate:value:lastUpdateUserId:lastUpdateTimeMs:}。 + * - 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + +- (NSInteger)setRoomExtraInfo:(NSString *_Nonnull)key value:(NSString *_Nonnull)value; + +/** + * + * @type api + * @region 流管理 + * @brief 设置当前推流的流附加信息。 + * @param extra_info 流附加信息。长度不超过1024的字符串。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + !0:失败。 + * @note + * + 可通过此函数设置当前推流的流附加信息。流附加信息是流 ID 的附加信息标识,不同于流 ID 在推流过程中不可修改,流附加信息可以在对应流 ID 的推流中途修改。开发者可根据流附加信息来实现流 ID 相关的可变内容的同步。 + * + 该方法在进房前后均可调用 + * + 相同房间内的其他用户会通过 [onRoomStreamExtraInfoUpdate] 回调函数获得通知。 + * @list 音视频传输 + */ + +- (NSInteger)setStreamExtraInfo:(NSString *_Nonnull)extra_info; + +/** + * + * @valid since 3.52 + * @type api + * @brief 识别或翻译房间内所有用户的语音,形成字幕。
    + * 调用该方法时,可以在 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode} 中选择语音识别或翻译模式。如果选择识别模式,语音识别文本会通过 rtcRoom:onSubtitleMessageReceived:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleMessageReceived:} 事件回调给你;
    + * 如果选择翻译模式,你会同时收到两个 rtcRoom:onSubtitleMessageReceived:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleMessageReceived:} 回调,分别包含字幕原文及字幕译文。
    + * 调用该方法后,用户会收到 rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:} 回调,通知字幕是否开启。 + * @param subtitleConfig 字幕配置信息。参看 ByteRTCSubtitleConfig{@link #ByteRTCSubtitleConfig}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 使用字幕功能前,你需要在 [RTC 控制台](https: + * - 如果你需要使用流式语音识别模式,你应在 [豆包语音控制台](https: + * - 如果你需要使用实时语音翻译模式,你应开通机器翻译服务,参考 [开通服务](https: + * - 如需指定源语言,你需要在调用 `joinRoom` 接口进房时,通过 extraInfo 参数传入格式为`"语种英文名": "语种代号"` JSON 字符串,例如设置源语言为英文时,传入 `"source_language": "en"`。如未指定源语言,SDK 会将系统语种设定为源语言。如果你的系统语种不是中文、英文和日文,此时 SDK 会自动将中文设为源语言。 + * - 识别模式下,你可以传入 [RTC 控制台](https: + * - 翻译模式下,你需要传入机器翻译规定的语种英文名和语种代号。翻译模式下支持的语言及对应的代号参看[翻译模式语言支持](https: + * @list 字幕翻译服务 + */ + +- (int)startSubtitle:(ByteRTCSubtitleConfig *_Nonnull)subtitleConfig; +/** + * + * @valid since 3.52 + * @type api + * @brief 关闭字幕。
    + * 调用该方法后,用户会收到 rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:} 回调,通知字幕是否关闭。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 字幕翻译服务 + */ + +- (int)stopSubtitle; + +/** + * + * @type api + * @valid since 3.60. + * @brief 设置期望订阅的远端视频流类型。 + * @param streamId 目标要订阅的远端视频流 ID。 + * @param streamType 远端视频流类型,参看 ByteRTCVideoSimulcastStreamType{@link #ByteRTCVideoSimulcastStreamType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。 + * @note + * - 该方法仅在发布端调用 setVideoEncoderConfig:withParameters:{@link #ByteRTCEngine#setVideoEncoderConfig:withParameters:} 开启了发送多路视频流的情况下生效。 + * - 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。该方法可在进房后调用。 + * @list 视频管理 + * @order 1 + */ + +- (int)setRemoteSimulcastStreamType:(NSString * _Nonnull) streamId streamType:(ByteRTCVideoSimulcastStreamType)streamType; + +/** + * + * @type api + * @brief 设置期望订阅的远端视频流的参数。 + * @param streamId 期望配置订阅参数的远端视频流 ID。 + * @param remoteVideoConfig 期望配置的远端视频流参数,参看 ByteRTCRemoteVideoConfig{@link #ByteRTCRemoteVideoConfig}。 + * @return 方法调用结果:
    + * + 0:成功。
    + * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
    + * + 该方法仅在发布端调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setLocalSimulcastMode:} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
    + * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
    + * + 该方法需在进房后调用。
    + * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + * @list 视频管理 + */ + +- (int)setRemoteVideoConfig:(NSString * _Nonnull) streamId remoteVideoConfig:(ByteRTCRemoteVideoConfig *_Nonnull) remoteVideoConfig; + + +/** + * + * @type api + * @valid since 3.60. + * @brief 获取通话 ID。
    + * 该方法需要在加入房间后调用。当创建一个房间开启音视频通话后,系统会为该房间生成一个对应的通话 ID,标识此房间的通话。 + * @return 通话 ID。 + * @list 房间管理 + */ + +- (NSString * _Nonnull)getCallId; + +/** + * + * @type api + * @valid since 3.60. + * @brief 设置直播房间的场景类型。 + * @param mode 直播房间场景类型,参看 ByteRTCRoomLiveMode{@link #ByteRTCRoomLiveMode}。 + * @return + * - 0: 成功。 + * - <0: 失败。 + * @list 房间管理 + */ + +- (int)setLiveMode:(ByteRTCRoomLiveMode)mode; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h new file mode 100644 index 0000000..b05ad1c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h @@ -0,0 +1,134 @@ +#import "ByteRTCRoom.h" +#import "rtc/ByteRTCVideoDefinesEx.h" + +@class ByteRTCRoomEx; + +/** + * + * @type callback + * @brief ByteRTCRoomDelegateEx Class
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ +@protocol ByteRTCRoomDelegateEx +@optional + +/** + * + * @type callback + * @region 房间管理 + * @brief 关于订阅媒体流状态改变的回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param state 订阅媒体流状态,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState} + * @param userId 流发布用户的用户 ID + * @param streamIndex 流属性,用于指定订阅主流/屏幕流,参看 ByteRTCStreamIndex{@link#ByteRTCStreamIndex} + * @param info 流的属性,参看 ByteRTCSubscribeConfig{@link #ByteRTCSubscribeConfig} + * @note 本地用户收到该回调的时机包括:
    + * + 调用 subscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#subscribeStream:streamIndex:mediaStreamType:} 或 unsubscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#unsubscribeStream:streamIndex:mediaStreamType:} 订阅/取消订阅指定远端摄像头音视频流后;
    + * + 调用 subscribeScreen:mediaStreamType:{@link #ByteRTCRoom#subscribeScreen:mediaStreamType:} 或 unsubscribeScreen:mediaStreamType:{@link #ByteRTCRoom#unsubscribeScreen:mediaStreamType:} 订阅/取消订阅指定远端屏幕共享流后。 + */ +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom + onStreamSubscribed:(ByteRTCSubscribeState)state + userId:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + subscribeConfig:(ByteRTCSubscribeConfig* _Nonnull)info; +@end + +/** + * + * @type api + * @brief IRTCRoomEx Class + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomEx : ByteRTCRoom +/** + * + * @hidden + */ +@property(nonatomic, weak) id _Nullable delegateEx; +/** + * + * @type api + * @region 房间管理 + * @brief 在当前所在房间内发布媒体流 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * + 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。
    + * + 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头音视频流。
    + * + 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。
    + * + 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStream:isScreen:mediaStreamType:{@link #ByteRTCRoomDelegateEx#rtcRoom:onUserPublishStream:isScreen:mediaStreamType:} 回调通知,其中成功收到了音频流的远端用户会收到 rtcEngine:onFirstRemoteAudioFrame:info:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteAudioFrame:info:} 回调,订阅了视频流的远端用户会收到 rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCRoomDelegate#rtcEngine:info:onFirstRemoteVideoFrameDecoded:withFrameInfo:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCRoomDelegate#rtcEngine:info:onFirstRemoteVideoFrameDecoded:withFrameInfo:info:withFrameInfo:} 回调。
    + * + 调用 unpublishStream:mediaStreamType:{@link #ByteRTCRoomEx#unpublishStream:mediaStreamType:} 取消发布。 + */ +- (int)publishStream:(ByteRTCStreamIndex)streamIndex mediaStreamType:(ByteRTCMediaStreamType)type; +/** + * + * @type api + * @region 房间管理 + * @brief 停止将本地摄像头/麦克风采集的媒体流发布到当前所在房间中 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * + 调用 publishStream:mediaStreamType:{@link #ByteRTCRoomEx#publishStream:mediaStreamType:} 手动发布摄像头音视频流后,你需调用此接口停止发布。
    + * + 调用此方法停止发布音视频流后,房间中的其他用户将会收到 rtcRoom:onUserUnpublishStream:type:reason: 回调通知。 + */ +- (int)unpublishStream:(ByteRTCStreamIndex)streamIndex mediaStreamType:(ByteRTCMediaStreamType)type; +/** + * + * @type api + * @region 房间管理 + * @brief 订阅房间内指定的媒体流,或更新对指定媒体流的订阅选项 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param userId 指定订阅的远端发布音视频流的用户 ID。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。
    + * + 你必须先通过 rtcRoom:onUserPublishStream:isScreen:mediaStreamType:{@link #ByteRTCRoomDelegateEx#rtcRoom:onUserPublishStream:isScreen:mediaStreamType:} 回调获取当前房间里的远端摄像头音视频流信息,然后调用本方法按需订阅。
    + * + 调用该方法后,你会收到 rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:{@link #ByteRTCRoomDelegateEx#rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:} 通知方法调用结果。
    + * + 成功订阅远端用户的媒体流后,订阅关系将持续到调用 unsubscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#unsubscribeStream:streamIndex:mediaStreamType:} 取消订阅或本端用户退房。
    + * + 关于其他调用异常,你会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + */ +- (int)subscribeStream:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + mediaStreamType:(ByteRTCMediaStreamType)mediaStreamType; +/** + * + * @type api + * @region 房间管理 + * @brief 取消订阅房间内指定的媒体流。
    + * 该方法对自动订阅和手动订阅模式均适用。 + * @param userId 指定订阅的远端发布音视频流的用户 ID。 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param mediaStreamType 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用该方法后,你会收到 rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:{@link #ByteRTCRoomDelegateEx#rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:} 通知方法调用结果。
    + * + 关于其他调用异常,你会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调通知,具体失败原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + */ +- (int)unsubscribeStream:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + mediaStreamType:(ByteRTCMediaStreamType)mediaStreamType; +/** + * + * @type api + * @region 房间管理 + * @brief 通过设置 ByteRTCRoomEx{@link #ByteRTCRoomEx} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegateEx{@link #ByteRTCRoomDelegateEx} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ +- (int)setRTCRoomDelegateEx:(id _Nullable)roomDelegate; + + + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h new file mode 100644 index 0000000..fca8b2b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h @@ -0,0 +1,3049 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Audio Defines +*/ + +#import "ByteRTCMediaDefines.h" + +#pragma mark - ByteRTCAudioSource +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioSource : NSObject + +@end + +/** + * + * @hidden(macOS) + * @type keytype + * @brief 音频场景类型。
    + * 选择音频场景后,SDK 会自动根据客户端音频采集播放设备和状态,适用通话音量/媒体音量。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioScenarioType) { + /** + * + * @brief 默认场景,适用大部分场景。 + */ + + ByteRTCAudioScenarioTypeDefault = 0, + /** + * + * @brief 聊天室场景。通话清晰度较高,适用于会议,聊天室场景。 + */ + + ByteRTCAudioScenarioTypeChatRoom = 1, + /** + * + * @brief 游戏语音场景。 + */ + + ByteRTCAudioScenarioTypeGameStreaming = 2, + /** + * + * @brief 合唱场景。延迟较低。 + */ + + ByteRTCAudioScenarioTypeChorus = 3, + /** + * + * @brief 教育场景。适用于以人声教学内容为主的高音质场景。 + */ + + ByteRTCAudioScenarioTypeEducation = 4, + /** + * + * @brief AI 对话场景。适用于真人与 AI 智能体互动的场景。使用此场景时,还需在通过 `createRTCEngine` 创建引擎时,通过 `parameters` 字段传入私有参数 `"rtc.fg_config":"aigc_media_360=true"`。 + */ + + ByteRTCAudioScenarioTypeAiClient = 5, +}; + +/** + * + * @type keytype + * @brief 变声特效类型。如需更多类型,联系技术支持。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVoiceChangerType) { + /** + * + * @brief 原声,不含特效 + */ + + ByteRTCVoiceChangerOriginal = 0, + /** + * + * @brief 巨人 + */ + + ByteRTCVoiceChangerGiant = 1, + /** + * + * @brief 花栗鼠 + */ + + ByteRTCVoiceChangerChipmunk = 2, + /** + * + * @brief 小黄人 + */ + + ByteRTCVoiceChangerMinionst = 3, + /** + * + * @brief 颤音 + */ + + ByteRTCVoiceChangerVibrato = 4, + /** + * + * @brief 机器人 + */ + + ByteRTCVoiceChangerRobot = 5, +}; + +/** + * + * @type keytype + * @brief 混响特效类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVoiceReverbType) { + /** + * + * @brief 原声,不含特效 + */ + + ByteRTCVoiceReverbOriginal = 0, + /** + * + * @brief 回声 + */ + + ByteRTCVoiceReverbEcho = 1, + /** + * + * @brief 演唱会 + */ + + ByteRTCVoiceReverbConcert = 2, + /** + * + * @brief 空灵 + */ + + ByteRTCVoiceReverbEthereal = 3, + /** + * + * @brief KTV + */ + + ByteRTCVoiceReverbKTV = 4, + /** + * + * @brief 录音棚 + */ + + ByteRTCVoiceReverbStudio = 5, + /** + * + * @brief 虚拟立体声 + */ + + ByteRTCVoiceReverbVirtualStereo = 6, + /** + * + * @brief 空旷 + */ + + ByteRTCVoiceReverbSpacious = 7, + /** + * + * @brief 3D 人声 + */ + + ByteRTCVoiceReverb3D = 8, + /** + * + * @hidden internal use + * @brief 流行 + */ + + ByteRTCVoiceReverbPop = 9, + /** + * + * @hidden internal use + * @brief 蹦迪 + */ + + ByteRTCVoiceReverbDisco = 10, + /** + * + * @hidden internal use + * @brief 老唱片 + */ + + ByteRTCVoiceReverbOldRecord = 11, + /** + * + * @hidden internal use + * @brief 和声 + */ + + ByteRTCVoiceReverbHarmony = 12, + /** + * + * @hidden internal use + * @brief 摇滚 + */ + + ByteRTCVoiceReverbRock = 13, + /** + * + * @hidden internal use + * @brief 蓝调 + */ + + ByteRTCVoiceReverbBlues = 14, + /** + * + * @hidden internal use + * @brief 爵士 + */ + + ByteRTCVoiceReverbJazz = 15, + /** + * + * @hidden internal use + * @brief 电子 + */ + + ByteRTCVoiceReverbElectronic = 16, + /** + * + * @hidden internal use + * @brief 黑胶 + */ + + ByteRTCVoiceReverbVinyl = 17, + /** + * + * @hidden internal use + * @brief 密室 + */ + + ByteRTCVoiceReverbChamber = 18, + + /** + * + * @hidden internal use + * @brief 增强原声 + */ + + ByteRTCVoiceReverbEnhanceOriginal = 19, + + /** + * + * @hidden internal use + * @brief 浴室 + */ + + ByteRTCVoiceReverbBathroom = 20, + + /** + * + * @hidden internal use + * @brief 自然 + */ + + ByteRTCVoiceReverbNatural = 21, + + /** + * + * @hidden internal use + * @brief 楼道 + */ + + ByteRTCVoiceReverbHallway = 22, +}; +/** + * + * @type keytype + * @brief 音频均衡效果。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCBandFrequency) { + /** + * + * @brief 中心频率为 31Hz 的频带。 + */ + + ByteRTCBandFrequency31 = 0, + /** + * + * @brief 中心频率为 62Hz 的频带。 + */ + + ByteRTCBandFrequency62 = 1, + /** + * + * @brief 中心频率为 125Hz 的频带。 + */ + + ByteRTCBandFrequency125 = 2, + /** + * + * @brief 中心频率为 250Hz 的频带。 + */ + + ByteRTCBandFrequency250 = 3, + /** + * + * @brief 中心频率为 500Hz 的频带。 + */ + + ByteRTCBandFrequency500 = 4, + /** + * + * @brief 中心频率为 1kHz 的频带。 + */ + + ByteRTCBandFrequency1k = 5, + /** + * + * @brief 中心频率为 2kHz 的频带。 + */ + + ByteRTCBandFrequency2k = 6, + /** + * + * @brief 中心频率为 4kHz 的频带。 + */ + + ByteRTCBandFrequency4k = 7, + /** + * + * @brief 中心频率为 8kHz 的频带。 + */ + + ByteRTCBandFrequency8k = 8, + /** + * + * @brief 中心频率为 16kHz 的频带。 + */ + + ByteRTCBandFrequency16k = 9, +}; +/** + * + * @type keytype + * @brief 语音均衡效果。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVoiceEqualizationConfig : NSObject +/** + * + * @brief 频带。参看 ByteRTCBandFrequency{@link #ByteRTCBandFrequency}。 + */ + +@property(assign, nonatomic) ByteRTCBandFrequency frequency; +/** + * + * @brief 频带增益(dB)。取值范围是 `[-15, 15]`。 + */ + +@property(assign, nonatomic) int gain; +@end + +/** + * + * @type keytype + * @brief 音频混响效果。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVoiceReverbConfig : NSObject +/** + * + * @brief 混响模拟的房间大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。房间越大,混响越强。 + */ + +@property(assign, nonatomic) float roomSize; +/** + * + * @brief 混响的拖尾长度,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + +@property(assign, nonatomic) float decayTime; +/** + * + * @brief 混响的衰减阻尼大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + +@property(assign, nonatomic) float damping; +/** + * + * @brief 早期反射信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float wetGain; +/** + * + * @brief 原始信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float dryGain; +/** + * + * @brief 早期反射信号的延迟。取值范围 `[0.0, 200.0]`,单位为 ms。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float preDelay; +@end + +/** + * + * @type keytype + * @brief 音质档位 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioProfileType) { + /** + * + * @brief 默认音质
    + * 服务器下发或客户端已设置的 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 的音质配置 + */ + + ByteRTCAudioProfileDefault = 0, + /** + * + * @brief 流畅
    + * 单声道,采样率为 16 kHz,编码码率为 32 Kbps。
    + * 流畅优先、低功耗、低流量消耗,适用于大部分游戏场景,如小队语音、组队语音、国战语音等。 + */ + + ByteRTCAudioProfileFluent = 1, + /** + * + * @brief 单声道标准音质。
    + * 采样率为 24 kHz,编码码率为 48 Kbps。
    + * 适用于对音质有一定要求的场景,同时延时、功耗和流量消耗相对适中,适合教育场景和狼人杀等游戏。 + */ + + ByteRTCAudioProfileStandard = 2, + /** + * + * @brief 双声道音乐音质
    + * 采样率为 48 kHz,编码码率为 128 kbps。
    + * 超高音质,同时延时、功耗和流量消耗相对较大,适用于连麦 PK 等音乐场景。
    + * 游戏场景不建议使用。 + */ + + ByteRTCAudioProfileHD = 3, + /** + * + * @brief 双声道标准音质。采样率为 48 KHz,编码码率最大值为 80 Kbps + */ + + ByteRTCAudioProfileStandardStereo = 4, + /** + * + * @brief 单声道音乐音质。采样率为 48 kHz,编码码率最大值为 64 Kbps + */ + + ByteRTCAudioProfileHDMono = 5, +}; + +/** + * + * @type keytype + * @brief 降噪模式。降噪算法受调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 时设置的房间模式影响。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAnsMode) { + /** + * + * @brief 关闭所有音频降噪能力。 + */ + + ByteRTCAnsModeDisable = 0, + /** + * + * @brief 适用于微弱降噪。 + */ + + ByteRTCAnsModeLow = 1, + /** + * + * @brief 适用于抑制中度平稳噪声,如空调声和风扇声。 + */ + + ByteRTCAnsModeMedium = 2, + /** + * + * @brief 适用于抑制嘈杂非平稳噪声,如键盘声、敲击声、碰撞声、动物叫声。 + */ + + ByteRTCAnsModeHigh = 3, + /** + * + * @brief 启用音频降噪能力。具体的降噪算法由 RTC 智能决策。 + */ + + ByteRTCAnsModeAutomatic = 4, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 语音通话模式,在小队语音里用这个接口设置自己的发送模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRangeAudioMode) { + /** + * + * @brief 默认模式 + */ + + ByteRTCRangeAudioModeUndefined = 0, + /** + * + * @brief 小队模式 + */ + + ByteRTCRangeAudioModeTeam = 1, + /** + * + * @brief 世界模式 + */ + + ByteRTCRangeAudioModeWorld = 2, +}; + +/** + * + * @type keytype + * @brief 当前音频设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioDeviceType) { + /** + * + * @brief 未知音频设备 + */ + + ByteRTCAudioDeviceTypeUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + ByteRTCAudioDeviceTypeRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + ByteRTCAudioDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流音频设备 + */ + + ByteRTCAudioDeviceTypeScreenCaptureDevice = 2 +}; +/** + * + * @type keytype + * @brief 音频采样率,单位为 Hz。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioSampleRate) { + /** + * + * @brief 默认设置。48000Hz。 + */ + + ByteRTCAudioSampleRateAuto = -1, + /** + * + * @brief 8000Hz + */ + + ByteRTCAudioSampleRate8000 = 8000, + /** + * + * @brief 11025Hz + */ + + ByteRTCAudioSampleRate11025 = 11025, + /** + * + * @brief 16000Hz + */ + + ByteRTCAudioSampleRate16000 = 16000, + /** + * + * @brief 22050Hz + */ + + ByteRTCAudioSampleRate22050 = 22050, + /** + * + * @brief 24000Hz + */ + + ByteRTCAudioSampleRate24000 = 24000, + /** + * + * @brief 32000Hz + */ + + ByteRTCAudioSampleRate32000 = 32000, + /** + * + * @brief 44100Hz + */ + + ByteRTCAudioSampleRate44100 = 44100, + /** + * + * @brief 48000Hz + */ + + ByteRTCAudioSampleRate48000 = 48000 +}; +/** + * + * @type keytype + * @brief 音频声道。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioChannel) { + /** + * + * @brief 默认设置。默认值为 `2`。 + */ + + ByteRTCAudioChannelAuto = -1, + /** + * + * @brief 单声道 + */ + + ByteRTCAudioChannelMono = 1, + /** + * + * @brief 双声道 + */ + + ByteRTCAudioChannelStereo = 2, +}; +/** + * + * @type keytype + * @brief 音频编码类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioCodecType) { + /** + * + * @brief 未知编码类型 + */ + + ByteRTCAudioCodecTypeNone = 0, + /** + * + * @brief Opus 编码类型 + */ + + ByteRTCAudioCodecTypeOpus, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAAC, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACLC = 2, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACHEv1, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACHEv2, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACLCadts, +}; + +/** + * + * @deprecated since 3.52, use ByteRTCMixedStreamAudioCodecType{@link #ByteRTCMixedStreamAudioCodecType} instead. + * @type keytype + * @brief 音频编码类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCTranscodingAudioCodec) { + /** + * + * @type keytype + * @brief AAC 格式。 + */ + + ByteRTCTranscodingAudioCodecAAC = 0, +}; + +/** + * + * @type keytype + * @brief 音频编码类型。(新) + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAudioCodecType) { + /** + * + * @type keytype + * @brief AAC 格式。 + */ + + ByteRTCMixedStreamAudioCodecTypeAAC = 0, +}; + +/** + * + * @type keytype + * @brief AAC 编码规格。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAudioProfile) { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + ByteRTCMixedStreamAudioProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + ByteRTCMixedStreamAudioProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + ByteRTCMixedStreamAudioProfileHEv2 = 2, +}; + +/** + * + * @deprecated since 3.52, use ByteRTCMixedStreamAudioProfile{@link #ByteRTCMixedStreamAudioProfile} instead. + * @type keytype + * @brief AAC 编码规格。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAACProfile) { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + ByteRTCAACProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + ByteRTCAACProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + ByteRTCAACProfileHEv2 = 2, +}; +/** + * + * @type keytype + * @brief 音频播放路由 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRoute) { + /** + * + * @brief 通过 `setDefaultAudioRoute:` 设置的音频路由 + */ + + ByteRTCAudioRouteDefault = -1, + /** + * + * @brief 有线耳机 + */ + + ByteRTCAudioRouteHeadset = 1, + /** + * + * @brief 听筒。设备自带的,一般用于通话的播放硬件。 + */ + + ByteRTCAudioRouteEarpiece = 2, + /** + * + * @brief 扬声器。设备自带的,一般用于免提播放的硬件。 + */ + + ByteRTCAudioRouteSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + ByteRTCAudioRouteHeadsetBluetooth = 4, + /** + * + * hidden(macOS) + * @brief USB 设备或通过 Lightning 转接器连接的 3.5mm 耳机
    + * 其中,仅在客户端为 iOS 16 及以上版本时可识别出 3.5mm 耳机 + */ + + ByteRTCAudioRouteHeadsetUSB = 5, +}; + +/** + * + * @type keytype + * @brief 音频播放设备
    + * 音频设备变化时 SDK 通过 `rtcEngine:onAudioPlaybackDeviceChanged:` 回调当前音频播放设备。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPlaybackDevice) { + /** + * + * @brief 有线耳机 + */ + + ByteRTCAudioPlaybackDeviceHeadset = 1, + /** + * + * @brief 听筒 + */ + + ByteRTCAudioPlaybackDeviceEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + ByteRTCAudioPlaybackDeviceSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + ByteRTCAudioPlaybackDeviceHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + ByteRTCAudioPlaybackDeviceHeadsetUSB = 5, +}; + + +/** + * + * @type keytype + * @brief 混音播放类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingType) { + /** + * + * @brief 仅本地播放 + */ + + ByteRTCAudioMixingTypePlayout = 0, + /** + * + * @brief 仅远端播放 + */ + + ByteRTCAudioMixingTypePublish = 1, + /** + * + * @brief 本地和远端同时播放 + */ + + ByteRTCAudioMixingTypePlayoutAndPublish = 2 +}; + +/** + * + * @type keytype + * @brief 混音播放声道类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingDualMonoMode) { + /** + * + * @brief 和音频文件一致 + */ + + ByteRTCAudioMixingDualMonoModeAuto = 0, + /** + * + * @brief 只能听到音频文件中左声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeL = 1, + /** + * + * @brief 只能听到音频文件中右声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeR = 2, + /** + * + * @brief 能同时听到音频文件中左右声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeMix = 3 +}; + +/** + * + * @type keytype + * @brief 音频混音文件播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingState) { + /** + * + * @brief 混音已加载 + */ + + ByteRTCAudioMixingStatePreloaded = 0, + /** + * + * @brief 混音正在播放 + */ + + ByteRTCAudioMixingStatePlaying, + /** + * + * @brief 混音暂停 + */ + + ByteRTCAudioMixingStatePaused, + /** + * + * @brief 混音停止 + */ + + ByteRTCAudioMixingStateStopped, + /** + * + * @brief 混音播放失败 + */ + + ByteRTCAudioMixingStateFailed, + /** + * + * @brief 混音播放结束 + */ + + ByteRTCAudioMixingStateFinished, + /** + * + * @brief 准备 PCM 混音 + */ + + ByteRTCAudioMixingStatePCMEnabled, + /** + * + * @brief PCM 混音播放结束 + */ + + ByteRTCAudioMixingStatePCMDisabled, +}; +/** + * + * @type keytype + * @brief 混音错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingError) { + /** + * + * @brief 正常 + */ + + ByteRTCAudioMixingErrorOk = 0, + /** + * + * @brief 预加载失败,找不到混音文件或者文件长度超出 20s + */ + + ByteRTCAudioMixingErrorPreloadFailed, + /** + * + * @brief 混音开启失败,找不到混音文件或者混音文件打开失败 + */ + + ByteRTCAudioMixingErrorStartFailed, + /** + * + * @brief 混音 ID 异常 + */ + + ByteRTCAudioMixingErrorIdNotFound, + /** + * + * @brief 设置混音文件的播放位置出错 + */ + + ByteRTCAudioMixingErrorSetPositionFailed, + /** + * + * @brief 音量参数不合法,仅支持设置的音量值为[0, 400] + */ + + ByteRTCAudioMixingErrorInValidVolume, + /** + * + * @brief 播放的文件与预加载的文件不一致。请先使用 unloadAudioMixing: 卸载此前的文件。 + */ + + ByteRTCAudioMixingErrorLoadConflict, + /** + * + * @brief 不支持此混音类型。 + */ + + ByteRTCAudioMixingErrorIdTypeNotMatch, + /** + * + * @brief 设置混音文件的音调不合法 + */ + + ByteRTCAudioMixingErrorInValidPitch, + /** + * + * @brief 设置混音文件的音轨不合法 + */ + + ByteRTCAudioMixingErrorInValidAudioTrack, + /** + * + * @brief 混音文件正在启动中 + */ + + ByteRTCAudioMixingErrorIsStarting, + /** + * + * @brief 设置混音文件的播放速度不合法 + */ + + ByteRTCAudioMixingErrorInValidPlaybackSpeed, +}; +/** + * + * @type keytype + * @brief 自定义音频源模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceMode) { + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceModePush = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceModePull, +}; +/** + * + * @type keytype + * @brief 自定义音频流类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceStreamType) { + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceStreamTypeRaw = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceStreamTypeEncoded, +}; +/** + * + * @type keytype + * @brief 音频数据的起始读取位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceSeekWhence) { + /** + * + * @brief 从音频数据的头开始读取,读取后的位置为参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceSet = 0, + /** + * + * @brief 从音频数据的某一位置开始读取,读取后的位置为音频数据当前的读取位置加上参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceCur = 1, + /** + * + * @brief 从音频数据的尾开始读取,读取后的位置为用户传入的音频数据大小加上参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceEnd = 2, + /** + * + * @brief 返回音频数据的大小。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceSize = 3, +}; +/** + * + * @type keytype + * @brief 播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerState) { + /** + * + * @brief 播放未启动 + */ + + ByteRTCPlayerStateIdle = 0, + /** + * + * @brief 已加载 + */ + + ByteRTCPlayerStatePreloaded, + /** + * + * @brief 已打开 + */ + + ByteRTCPlayerStateOpened, + /** + * + * @brief 正在播放 + */ + + ByteRTCPlayerStatePlaying, + /** + * + * @brief 播放已暂停 + */ + + ByteRTCPlayerStatePaused, + /** + * + * @brief 播放已被主动停止 + */ + + ByteRTCPlayerStateStopped, + /** + * + * @brief 播放失败 + */ + + ByteRTCPlayerStateFailed, + /** + * + * @brief 播放自然结束 + */ + + ByteRTCPlayerStateFinished, + /** + * + * @brief 循环播放已结束 + */ + + ByteRTCPlayerStateLoopFinished, +}; + +/** + * + * @type keytype + * @brief 播放事件 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerEvent) { + + /** + * + * @brief 开始切换音轨
    + * 开始调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 时,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackBegin, + /** + * + * @brief 切换音轨成功
    + * 调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 成功后,播放器切换到指定音轨播放,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackCompleted, + /** + * + * @brief 切换音轨失败
    + * 调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 失败后,播放器无法切换到指定音轨,继续之前的音轨播放过程,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackFailed, + /** + * + * @brief 试图移动播放位置
    + * 开始调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 时,返回此状态。 + */ + + ByteRTCPlayerEventSeekBegin, + /** + * + * @brief 移动播放位置成功
    + * 调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 成功后,返回此状态。 + */ + + ByteRTCPlayerEventSeekCompleted, + /** + * + * @brief 移动播放位置失败
    + * 调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 失败时,返回此状态。 + */ + + ByteRTCPlayerEventSeekFailed, +}; + +/** + * + * @type keytype + * @brief 播放错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerError) { + /** + * + * @brief 正常 + */ + + ByteRTCPlayerErrorOK = 0, + /** + * + * @brief 不支持此类型 + */ + + ByteRTCPlayerErrorFormatNotSupport, + /** + * + * @brief 无效的播放路径 + */ + + ByteRTCPlayerErrorInvalidPath, + /** + * + * @brief 未满足前序接口调用的要求。请查看具体接口文档。 + */ + + ByteRTCPlayerErrorInvalidState, + /** + * + * @brief 设置播放位置出错。 + */ + + ByteRTCPlayerErrorInvalidPosition, + /** + * + * @brief 音量参数不合法。 + */ + + ByteRTCPlayerErrorInvalidVolume, + /** + * + * @brief 音调参数设置不合法。 + */ + + ByteRTCPlayerErrorInvalidPitch, + /** + * + * @brief 音轨参数设置不合法。 + */ + + ByteRTCPlayerErrorInvalidAudioTrackIndex, + /** + * + * @brief 播放速度参数设置不合法 + */ + + ByteRTCPlayerErrorInvalidPlaybackSpeed, + /** + * + * @brief 音效 ID 异常。还未加载或播放文件,就调用其他 API。 + */ + + ByteRTCPlayerErrorInvalidEffectId, + /** + * + * @brief 资源正在播放中 + */ + + ByteRTCPlayerErrorCurrentlyPlaying, +}; + +/** + * + * @type keytype + * @brief 音频输入源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioSourceType) { + /** + * + * @brief 自定义采集音频源 + */ + + ByteRTCAudioSourceTypeExternal = 0, + /** + * + * @brief RTC SDK 内部采集音频源 + */ + + ByteRTCAudioSourceTypeInternal, +}; + +/** + * + * @type keytype + * @brief 音频输出源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRenderType) { + /** + * + * @brief 自定义渲染音频 + */ + + ByteRTCAudioRenderTypeExternal = 0, + /** + * + * @brief RTC SDK 内部渲染音频 + */ + + ByteRTCAudioRenderTypeInternal, +}; + +/** + * + * @type keytype + * @brief 是否开启耳返功能。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEarMonitorMode) { + /** + * + * @brief 关闭。 + */ + + ByteRTCEarMonitorModeOff = 0, + /** + * + * @brief 开启。 + */ + + ByteRTCEarMonitorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 耳返音频是否经过本地音频处理。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEarMonitorAudioFilter) { + /** + * + * @brief 无音频处理。 + */ + + ByteRTCEarMonitorAudioFilterNone = 0x0001, + /** + * + * @brief 经本地音频处理后的音频,包括 3A、变声、混响等 SDK 提供处理能力以及自定义音频处理。 + */ + + ByteRTCEarMonitorAudioFilterReuseAudioProcessing = 0x8000, +}; + +/** + * + * @type keytype + * @brief 音频回调方法 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameCallbackMethod) { + /** + * + * @brief 本地麦克风录制的音频数据回调 + */ + + ByteRTCAudioFrameCallbackRecord = 0, + /** + * + * @brief 订阅的远端所有用户混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackPlayback = 1, + /** + * + * @brief 本地麦克风录制和订阅的远端所有用户混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackMixed = 2, + /** + * + * @brief 订阅的远端每个用户混音前的音频数据回调 + */ + + ByteRTCAudioFrameCallbackRemoteUser = 3, + /** + * + * @brief 本地麦克风录制和本地 `MediaPlayer`, `EffectPlayer` 播放的音频混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackCaptureMixed = 5 +}; +/** + * + * @type keytype + * @brief 返回给音频处理器的音频类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameMethod) { + /** + * + * @brief 本地采集的音频。 + */ + + ByteRTCAudioFrameProcessorRecord = 0, + /** + * + * @brief 远端音频流的混音音频。 + */ + + ByteRTCAudioFrameProcessorPlayback = 1, + /** + * + * @brief 各个远端音频流。 + */ + + ByteRTCAudioFrameProcessorRemoteUser = 2, + /** + * + * @hidden(macOS) + * @brief 软件耳返音频。 + */ + + ByteRTCAudioFrameProcessorEarMonitor = 3, + /** + * + * @brief 屏幕共享音频。 + */ + + ByteRTCAudioFrameProcessorScreen = 4, +}; + +/** + * + * @type keytype + * @brief 音量回调模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioReportMode) { + /** + * + * @brief 默认始终开启音量回调。 + */ + + ByteRTCAudioReportModeNormal = 0, + /** + * + * @brief 可见用户进房并停止推流后,关闭音量回调。 + */ + + ByteRTCAudioReportModeDisconnect = 1, + /** + * + * @brief 可见用户进房并停止推流后,开启音量回调,回调值重置为 0。 + */ + + ByteRTCAudioReportModeReset = 2, +}; + +/** + * + * @type keytype + * @brief rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 中包含的音频信息的范围。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPropertiesMode) { + /** + * + * @brief 仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + ByteRTCAudioPropertiesModeMicrohone = 0, + /** + * + * @brief 包含以下信息:
    + * - 本地麦克风采集的音频数据和本地屏幕音频采集数据; + * - 本地混音的音频数据。 + */ + + ByteRTCAudioPropertiesModeAudioMixing = 1 +}; + +/** + * + * @type keytype + * @brief 音频流来源的用户 ID, 及对应的音量。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioVolumeInfo : NSObject +/** + * + * @brief 音频流来源的用户 ID + */ + +@property(copy, nonatomic) NSString * _Nonnull uid; +/** + * + * @brief 线性音量,取值范围为:[0,255] + */ + +@property(assign, nonatomic) NSUInteger linearVolume; +/** + * + * @brief 非线性音量,取值范围为:[-127,0] + */ + +@property(assign, nonatomic) NSUInteger nonlinearVolume; +@end + +/** + * + * @type keytype + * @brief 音频参数格式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioFormat : NSObject +/** + * + * @brief 音频采样率,详见 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate} + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; +/** + * + * @brief 音频声道,详见 ByteRTCAudioChannel{@link #ByteRTCAudioChannel} + */ + +@property(nonatomic, assign) ByteRTCAudioChannel channel; +/** + * + * @brief 单次回调的音频帧中包含的采样点数。默认值为 `0`,此时,采样点数取最小值。
    + * 最小值为回调间隔是 0.01s 时的值,即 `sampleRate * channel * 0.01s`。
    + * 最大值是 `2048`。超出取值范围时,采样点数取默认值。
    + * 该参数仅在设置读写回调时生效,调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 开启只读模式回调时设置该参数不生效。 + */ + +@property(nonatomic, assign) int samplesPerCall; +@end + +/** + * + * @type keytype + * @brief PCM 音频帧 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioFrame : NSObject +/** + * + * @brief PCM 数据 + */ + +@property(strong, nonatomic) NSData * _Nonnull buffer; +/** + * + * @brief 采样点个数 + */ + +@property(assign, nonatomic) int samples; +/** + * + * @brief 音频声道,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + */ + +@property(assign, nonatomic) ByteRTCAudioChannel channel; +/** + * + * @brief 采样率,参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(assign, nonatomic) ByteRTCAudioSampleRate sampleRate; +/** + * + * @hidden for internal use only + * @brief 额外信息数据 + */ + +@property(strong, nonatomic) NSData * extraInfo; +@end +/** + * + * @type callback + * @brief 音频数据回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
    + * 本接口类中的回调周期均为 20 ms。 + * @list + */ + +@protocol ByteRTCAudioFrameObserver +/** + * + * @type callback + * @brief 返回麦克风录制的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onRecordAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回订阅的所有远端用户混音后的音频数据。 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onPlaybackAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回远端单个用户的音频数据 + * @param streamId 远端流对应的唯一标识 + * @param info 远端流详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 音频数据,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 此回调在播放线程调用。不要在此回调中做任何耗时的事情,否则可能会影响整个音频播放链路。 + * @list 自定义流处理 + */ + +- (void)onRemoteUserAudioFrame:(NSString * _Nonnull)streamId + info:(ByteRTCStreamInfo * _Nonnull)info + audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回本地麦克风录制和订阅的所有远端用户混音后的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onMixedAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回本地麦克风录制的音频数据,本地 `MediaPlayer` / `EffectPlayer` 播放音频文件混音后的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onCaptureMixedAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +@end +/** + * + * @type callback + * @brief 自定义音频处理器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +@protocol ByteRTCAudioFrameProcessor +/** + * + * @type callback + * @brief 回调本地采集的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 完成自定义音频处理后,SDK 会对处理后的音频帧进行编码,并传输到远端。此音频处理不会影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择本地采集的音频,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessRecordAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调远端音频混音的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择远端音频流的混音音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessPlayBackAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调单个远端用户的音频帧地址,供自定义音频处理。 + * @param streamId 音频流对应的唯一标识 + * @param info 音频流详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择各个远端音频流时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessRemoteUserAudioFrame:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo * _Nonnull)info audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @hidden(macOS) + * @valid since 3.50 + * @type callback + * @brief 软件耳返音频数据的回调。你可根据此回调自定义处理音频。
    + * 软件耳返音频中包含通过调用 `setVoiceReverbType:` 和 `setVoiceChangerType:` 设置的音频特效。 + * @param audioFrame 音频帧地址。参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 此数据处理只影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并选择耳返音频。每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessEarMonitorAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调屏幕共享的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @note 调用 `enableAudioProcessor:`,把返回给音频处理器的音频类型设置为屏幕共享音频后,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessScreenAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +@end + +/** + * + * @type keytype + * @hidden for internal use only + * @region 音频管理 + * @brief 音频帧构建类 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEncodedAudioFrameData : NSObject +/** + * + * @hidden for internal use only + * @brief 音频编码类型,参看 ByteRTCAudioCodecType{@link #ByteRTCAudioCodecType}。 + */ + +@property(assign, nonatomic) ByteRTCAudioCodecType codecType; +/** + * + * @hidden for internal use only + * @brief 数据 + */ + +@property(strong, nonatomic) NSData * _Nonnull buffer; +/** + * + * @hidden for internal use only + * @brief 音频声道,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + */ + +@property(assign, nonatomic) ByteRTCAudioChannel channel; +/** + * + * @hidden for internal use only + * @brief 采样率,参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(assign, nonatomic) ByteRTCAudioSampleRate sampleRate; +/** + * + * @hidden for internal use only + * @brief 数据大小 + */ + +@property(assign, nonatomic) int size; +/** + * + * @hidden for internal use only + * @brief 时间戳,单位为微秒。 + */ + +@property(assign, nonatomic) long timestampUs; +/** + * + * @hidden for internal use only + * @brief 音频帧时长,单位为毫秒。 + */ + +@property(assign, nonatomic) int frameSizeMs; +/** + * + * @hidden for internal use only + * @brief 额外信息数据 + */ + +@property(strong, nonatomic) NSData * extraInfo; +@end +/** + * + * @type callback + * @hidden for internal use only + * @brief 远端音频帧监测器 + * @list 自定义流处理 + */ + +@protocol ByteRTCRemoteEncodedAudioFrameObserver +/** + * + * @type callback + * @hidden for internal use only + * @brief 调用 registerRemoteEncodedAudioFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedAudioFrameObserver:} 后,SDK 收到远端音频帧信息时,回调该事件 + * @param streamId 收到的远端音频流对应的唯一标识 + * @param info 收到的远端音频流的详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 远端音频帧信息,参看 ByteRTCEncodedAudioFrameData{@link #ByteRTCEncodedAudioFrameData} + * @list 自定义流处理 + */ + +- (void)onRemoteEncodedAudioFrame:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo * _Nonnull)info audioFrame:(ByteRTCEncodedAudioFrameData * _Nonnull)audioFrame; +@end + + + +#pragma mark - AudioDeviceManager +/** + * + * @hidden(iOS) + * @type api + * @brief 音频设备管理类 + * @list Custom Stream Processing + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioDeviceManager : NSObject +/** + * + * @type api + * @brief 获取当前系统内音频播放设备列表。 + * @return 所有音频播放设备的列表,参看 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。
    + * @list 音频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateAudioPlaybackDevices; +/** + * + * @type api + * @brief 获取音频采集设备列表。 + * @return 音频采集设备列表。详见 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 音频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateAudioCaptureDevices; +/** + * + * @type api + * @brief 设置音频采集路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice:} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice:} 进行设置。 + * @list 音频管理 + */ + +- (void)followSystemCaptureDevice:(BOOL)followed; +/** + * + * @type api + * @brief 设置音频播放路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice:} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice:} 进行设置。 + * @list 音频管理 + */ + +- (void)followSystemPlaybackDevice:(BOOL)followed; +/** + * + * @type api + * @brief 设置音频播放设备。 + * @param deviceID 音频播放设备 ID,可通过 enumerateAudioPlaybackDevices{@link #ByteRTCAudioDeviceManager#enumerateAudioPlaybackDevices} 获取。 + * @return + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemPlaybackDevice:{@link #ByteRTCAudioDeviceManager#followSystemPlaybackDevice:} 设置音频播放设备跟随系统后,将无法调用此接口设置音频播放设备。 + * @list 音频管理 + */ + +- (int)setAudioPlaybackDevice:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 获取当前音频播放设备。 + * @param deviceID 设备 ID + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int)getAudioPlaybackDevice:(NSString * _Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置音频采集设备。 + * @param deviceID 音频采集设备 ID。你可调用 enumerateAudioCaptureDevices{@link #ByteRTCAudioDeviceManager#EnumerateAudioCaptureDevices} 获取可用设备列表。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemCaptureDevice:{@link #ByteRTCAudioDeviceManager#followSystemCaptureDevice:} 设置音频采集设备跟随系统后,将无法调用此接口设置音频采集设备。 + * @list 音频管理 + */ + +- (int)setAudioCaptureDevice:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 获取当前音频采集设备。 + * @param deviceID 音频采集设备 ID。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int)getAudioCaptureDevice:(NSString *_Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置当前音频采集设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法用于静音整个系统的音频采集。你也可以仅对麦克风采集到的音频信号做静音处理,而不影响媒体播放器的音乐声音,具体参看 muteAudioCapture:{@link #ByteRTCEngine#muteAudioCapture:} 方法说明。 + * - 设该方法为 `true` 静音后仍可通过 setAudioCaptureDeviceVolume:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceVolume:} 调整采集音量,调整后的音量会在取消静音后生效。 + * @list 音频管理 + */ + +- (int) setAudioCaptureDeviceMute:(bool)mute; +/** + * + * @type api + * @brief 获取当前音频采集设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioCaptureDeviceMute:(bool * _Nonnull)mute; +/** + * + * @type api + * @brief 设置当前音频播放设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) setAudioPlaybackDeviceMute:(bool)mute; +/** + * + * @type api + * @brief 获取当前音频播放设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioPlaybackDeviceMute:(bool * _Nonnull)mute; +/** + * + * @type api + * @brief 设置当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围为 [0,255]。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功。将影响 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 回调的音量信息。 + * - < 0:方法调用失败 + * @note 调用 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 设为 `true` 静音采集设备后的音量调节会在取消静音后生效。 + * @list 音频管理 + */ + +- (int) setAudioCaptureDeviceVolume:(unsigned int)volume; +/** + * + * @type api + * @brief 获取当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围是 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioCaptureDeviceVolume:(unsigned int * _Nonnull)volume; +/** + * + * @type api + * @brief 设置当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围为 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) setAudioPlaybackDeviceVolume:(unsigned int)volume; +/** + * + * @type api + * @brief 获取当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围是 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioPlaybackDeviceVolume:(unsigned int * _Nonnull)volume; +/** + * + * @type api + * @brief 启动音频播放设备测试。
    + * 该方法测试播放设备是否能正常工作。SDK 播放指定的音频文件,测试者如果能听到声音,说明播放设备能正常工作。 + * @param testAudioFilePath 音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。 + * @param interval 音频设备播放测试音量回调的间隔 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法必须在进房前调用,且不可与其它音频设备测试功能同时应用。 + * - 调用 stopAudioPlaybackDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioPlaybackDeviceTest} 停止测试。 + * @list 音频管理 + */ + +- (int)startAudioPlaybackDeviceTest:(NSString *_Nonnull)testAudioFilePath interval:(int)interval; +/** + * + * @type api + * @brief 停止音频播放设备测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 调用 startAudioPlaybackDeviceTest:interval:{@link #ByteRTCAudioDeviceManager#startAudioPlaybackDeviceTest:interval:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioPlaybackDeviceTest; +/** + * + * @hidden(iOS) + * @type api + * @brief 开始音频采集设备和音频播放设备测试。 + * @param interval 测试中会收到 `rtcEngine:onLocalAudioPropertiesReport:` 回调,本参数指定了该周期回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法在进房前后均可调用。且不可与其它音频设备测试功能同时应用。 + * - 调用本接口 30 s 后,采集自动停止,并开始播放采集到的声音。录音播放完毕后,设备测试流程自动结束。你也可以在 30 s 内调用 stopAudioDeviceRecordAndPlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceRecordAndPlayTest} 来停止采集并开始播放此前采集到的声音。 + * - 调用 stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} 可以停止音频设备采集和播放测试。 + * - 你不应在测试过程中,调用 `enableAudioPropertiesReport:` 注册音量提示回调。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * @list 音频管理 + */ + +- (int)startAudioDeviceRecordTest:(int)interval; +/** + * + * @hidden(iOS) + * @type api + * @brief 停止采集本地音频,并开始播放采集到的声音。录音播放完毕后,设备测试流程结束。
    + * 调用 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:} 30s 内调用本接口来停止采集并开始播放此前采集到的声音。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法依赖 rtc 引擎,只有通过成员方法 getAudioDeviceManager{@link #ByteRTCEngine#getAudioDeviceManager} 创建的 ByteRTCAudioDeviceManager,该方法才是有效的 + * - 调用本接口开始播放录音后,可以在播放过程中调用 stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} 停止播放。 + * @list 音频管理 + */ + +- (int)stopAudioDeviceRecordAndPlayTest; +/** + * + * @hidden(iOS) + * @type api + * @brief 停止由调用 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:} 开始的音频播放设备测试。
    + * 在音频播放设备测试自动结束前,可调用本接口停止音频采集与播放测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法依赖 rtc 引擎,只有通过成员方法 getAudioDeviceManager{@link #ByteRTCEngine#getAudioDeviceManager} 创建的 ByteRTCAudioDeviceManager,该方法才是有效的 + * @list 音频管理 + */ + +- (int)stopAudioDevicePlayTest; +/** + * + * @type api + * @brief 尝试初始化音频播放设备,以检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param deviceID 设备索引号 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口调用失败 + * - -2: 设备无权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用; + * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + +- (int)initAudioPlaybackDeviceForTest:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 尝试初始化音频采集设备,以检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param deviceID 设备索引号 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口调用失败 + * - -2: 设备无权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用; + * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + +- (int)initAudioCaptureDeviceForTest:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 启动音频采集设备测试。
    + * 该方法测试音频采集设备是否能正常工作。启动测试后,会收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 回调上报的音量信息。 + * @param indicationInterval 获取回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。小于 10 毫秒行为未定义。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 该方法必须在进房前调用,且不可与其它音频设备测试功能同时应用。 + * - 你需调用 stopAudioRecordingDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioRecordingDeviceTest} 停止测试。 + * @list 音频管理 + */ + +- (int)startAudioRecordingDeviceTest:(unsigned int)indicationInterval; +/** + * + * @type api + * @brief 停止音频采集设备测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 调用 startAudioRecordingDeviceTest:{@link #ByteRTCAudioDeviceManager#startAudioRecordingDeviceTest:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioRecordingDeviceTest; +/** + * + * @type api + * @brief 开始音频设备回路测试。
    + * 该方法测试音频采集设备和音频播放设备是否能正常工作。一旦测试开始,音频采集设备会采集本地声音并通过音频播放设备播放出来,同时会收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:}。 + * @param indicationInterval 收到回调的时间间隔,单位为 ms。建议设置到大于 200 ms。最小不得少于 10 ms。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 该方法必须在进房前调用。且不可与其它音频设备测试功能同时应用。 + * - 你需调用 stopAudioDeviceLoopbackTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceLoopbackTest} 停止测试。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * @list 音频管理 + */ + +- (int)startAudioDeviceLoopbackTest:(unsigned int)indicationInterval; +/** + * + * @type api + * @brief 停止音频设备回路测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 调用 startAudioDeviceLoopbackTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceLoopbackTest:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioDeviceLoopbackTest; +@end +/** + * + * @type keytype + * @brief 混音配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEffectPlayerConfig : NSObject +/** + * + * @type keytype + * @brief 混音播放类型,详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType} + */ + +@property(assign, nonatomic) ByteRTCAudioMixingType type; +/** + * + * @brief 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + */ + +@property(assign, nonatomic) NSInteger pitch; +/** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + +@property(assign, nonatomic) NSInteger playCount; +/** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + +@property(assign, nonatomic) NSInteger startPos; +@end +/** + * + * @type keytype + * @brief 混音配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayerConfig : NSObject +/** + * + * @brief 混音播放类型,详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType} + */ + +@property(assign, nonatomic) ByteRTCAudioMixingType type; +/** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + +@property(assign, nonatomic) NSInteger playCount; +/** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + +@property(assign, nonatomic) NSInteger startPos; +/** + * + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress:progress:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerPlayingProgress:progress:} 的间隔。单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + */ + +@property(assign, nonatomic) NSInteger callbackOnProgressInterval; +/** + * + * @brief 在采集音频数据时,附带本地混音文件播放进度的时间戳。启用此功能会提升远端人声和音频文件混音播放时的同步效果。
    + * - 仅在单个音频文件混音时使用有效。 + * - `true` 时开启此功能,`false` 时关闭此功能,默认为关闭。 + */ + +@property(assign, nonatomic) BOOL syncProgressToRecordFrame; +/** +* +* @brief 是否自动播放。如果不自动播放,调用 start{@link #ByteRTCMediaPlayer#start} 播放音乐文件。默认为 True。 +*/ + +@property(assign, nonatomic) BOOL autoPlay; +@end +/** + * + * @type callback + * @brief 内存播放数据源回调 + * @list Audio Management + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCMediaPlayerCustomSourceProvider +/** + * + * @valid since 3.53 + * @type callback + * @brief 调用 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口播放用户传入的内存音频数据时,会触发此回调,用户需要写入音频数据。 + * @param buffer 内存地址。在该地址中写入音频数据,写入音频数据的大小不超过 bufferSize 中填入的数值。支持的音频数据格式有: mp3,aac,m4a,3gp,wav。 + * @param bufferSize 音频数据大小,单位为字节。如果你想停止播放内存音频数据,可在 bufferSize 中填入小于或等于 0 的数,此时 SDK 会停止调用此接口。 + * @return 返回实际读取的音频数据大小。 + * @note 若 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口调用失败,请在 buffer 和 bufferSize 两个参数中填入 0。 此时 SDK 会停止调用此接口。 + * @list 混音 + */ + +-(int)onReadData:(uint8_t*_Nonnull) buffer bufferSize:(int)bufferSize; +/** + * + * @valid since 3.53 + * @type callback + * @brief 根据设置好的内存音频数据的读取位置和读取偏移量对音频数据进行偏移,以便 SDK 读取和分析音频数据。
    + * 在调用 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口传入内存音频数据,或者调用 setPosition:position:{@link #ByteRTCAudioEffectPlayer#setPosition:position:} 设置了音频数据的起始播放位置后,SDK 会对音频数据进行读取和分析,此时会触发该回调,你需要根据参数中设置的起始读取位置和偏移量进行操作。 + * @param offset 音频数据读取偏移量,单位为字节,取值可正可负。 + * @param whence 音频数据的起始读取位置。参看 ByteRTCMediaPlayerCustomSourceSeekWhence{@link #ByteRTCMediaPlayerCustomSourceSeekWhence} + * @return + * 定位成功,返回偏移后的位置信息,或返回音频数据的大小。
    + * 定位失败,返回 -1。 + * @list 混音 + */ + +-(int64_t)onSeek:(int64_t)offset whence:(ByteRTCMediaPlayerCustomSourceSeekWhence)whence; +@end +/** + * + * @type keytype + * @brief 音频源 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayerCustomSource : NSObject +/** + * + * @type keytype + * @brief 仅使用内存播放时,传入对应的 ByteRTCMediaPlayerCustomSourceProvider{@link #ByteRTCMediaPlayerCustomSourceProvider} 实例。 + */ + +@property(weak, nonatomic) id _Nullable provider; +/** + * + * @type keytype + * @brief 数据源模式,详见 ByteRTCMediaPlayerCustomSourceMode{@link #ByteRTCMediaPlayerCustomSourceMode}。默认为 `push`。 + */ + +@property(assign, nonatomic) ByteRTCMediaPlayerCustomSourceMode mode; +/** + * + * @type keytype + * @brief 数据源类型,详见 ByteRTCMediaPlayerCustomSourceStreamType{@link #ByteRTCMediaPlayerCustomSourceStreamType}。默认为 `raw`。 + */ + +@property(assign, nonatomic) ByteRTCMediaPlayerCustomSourceStreamType type; + +@end +/** + * + * @type keytype + * @brief 音频属性信息提示的相关配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioPropertiesConfig : NSObject +/** + * + * @brief 信息提示间隔,单位:ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + +@property(assign, nonatomic) NSInteger interval; +/** + * + * @brief 是否开启音频频谱检测。 + */ + +@property(assign, nonatomic) BOOL enableSpectrum; +/** + * + * @brief 是否开启人声检测 (VAD)。 + */ + +@property(assign, nonatomic) BOOL enableVad; +/** + * + * @brief 音量回调模式。详见 ByteRTCAudioReportMode{@link #ByteRTCAudioReportMode}。 + */ + +@property(assign, nonatomic) ByteRTCAudioReportMode localMainReportMode; +/** + * + * @brief 适用于音频属性信息提示的平滑系数。取值范围是 `(0.0, 1.0]`。
    + * 默认值为 `1.0`,不开启平滑效果;值越小,提示音量平滑效果越明显。如果要开启平滑效果,可以设置为 `0.3`。 + */ + +@property(nonatomic, assign) float smooth; + +/** + * + * @brief rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 中包含音频数据的范围。参看 ByteRTCAudioPropertiesMode{@link #ByteRTCAudioPropertiesMode}。
    + * 默认仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + +@property(assign, nonatomic) ByteRTCAudioPropertiesMode audioReportMode; + +/** + * + * @brief 是否回调本地用户的人声基频。 + */ + +@property(assign, nonatomic) BOOL enableVoicePitch; +@end + +/** + * + * @type keytype + * @brief 音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioPropertiesInfo : NSObject +/** + * + * @brief 线性音量,与原始音量呈线性关系,数值越大,音量越大。取值范围是:[0,255]。
    + * - [0, 25]:近似无声 + * - [26, 75]:低音量 + * - [76, 204]:中音量 + * - [205, 255]:高音量 + */ + +@property(assign, nonatomic) NSInteger linearVolume; +/** + * + * @brief 非线性音量。由原始音量的对数值转化而来,因此在中低音量时更灵敏,可以用作 Active Speaker(房间内最活跃用户)的识别。取值范围是:[-127,0],单位 dB。
    + * - [-127, -60]:无声 + * - [-59, -40]:低音量 + * - [-39, -20]:中音量 + * - [-19, 0]:高音量 + */ + +@property(assign, nonatomic) NSInteger nonlinearVolume; +/** + * + * @brief 人声检测(VAD)结果
    + * - 1: 检测到人声。 + * - 0: 未检测到人声。 + * - -1: 未开启 VAD。 + */ + +@property(assign, nonatomic) NSInteger vad; +/** + * + * @brief 频谱数组。默认长度为 257。 + */ + +@property(copy, nonatomic) NSArray * _Nonnull spectrum; +/** + * + * @brief 本地用户的人声基频,单位为赫兹。
    + * 同时满足以下两个条件时,返回的值为本地用户的人声基频:
    + * - 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:},并设置参数 enableVoicePitch 的值为 `true`。 + * - 本地采集的音频中包含本地用户的人声。 + * 其他情况下返回 `0`。 + */ + +@property(assign, nonatomic) NSInteger voicePitch; +@end + +/** + * + * @type keytype + * @brief 本地音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalAudioPropertiesInfo : NSObject + +/** + * + * @type keytype + * @hidden + * @brief 音频源。预留参数。 + */ + +@property(assign, nonatomic) ByteRTCAudioSource* _Nullable audioSource; +/** + * + * @type keytype + * @brief 音频属性信息,详见 ByteRTCAudioPropertiesInfo{@link #ByteRTCAudioPropertiesInfo} + */ + +@property(strong, nonatomic) ByteRTCAudioPropertiesInfo *_Nonnull audioPropertiesInfo; +@end + +/** + * + * @type keytype + * @brief 远端音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteAudioPropertiesInfo : NSObject +/** + * + * @type keytype + * @brief 远端流的唯一标识 + */ + +@property(nonatomic) NSString *_Nonnull streamId; + +/** + * + * @type keytype + * @brief 远端流详细信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + */ + +@property(strong, nonatomic) ByteRTCStreamInfo *_Nonnull streamInfo; + +/** + * + * @type keytype + * @brief 音频属性信息,详见 ByteRTCAudioPropertiesInfo{@link #ByteRTCAudioPropertiesInfo} + */ + +@property(strong, nonatomic) ByteRTCAudioPropertiesInfo *_Nonnull audioPropertiesInfo; +@end + +/** + * + * @type keytype + * @brief 本地用户在房间内的位置坐标,需自行建立空间直角坐标系 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPosition : NSObject +/** + * + * @brief x 坐标 + */ + +@property(nonatomic, assign) float x; +/** + * + * @brief y 坐标 + */ + +@property(nonatomic, assign) float y; +/** + * + * @brief z 坐标 + */ + +@property(nonatomic, assign) float z; +@end + +/** + * + * @type keytype + * @brief 方向朝向信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCOrientation : NSObject +/** + * + * @brief x 坐标 + */ + +@property(nonatomic, assign) float x; +/** + * + * @brief y 坐标 + */ + +@property(nonatomic, assign) float y; +/** + * + * @brief z 坐标 + */ + +@property(nonatomic, assign) float z; +@end + +/** + * + * @type keytype + * @brief 三维朝向信息,三个向量需要两两垂直。参看 ByteRTCOrientation{@link #ByteRTCOrientation}。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHumanOrientation : NSObject +/** + * + * @brief 正前方朝向,默认值为 {1,0,0},即正前方朝向 x 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull forward; +/** + * + * @brief 正右方朝向,默认值为 {0,1,0},即右手朝向 y 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull right; +/** + * + * @brief 正上方朝向,默认值为 {0,0,1},即头顶朝向 z 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull up; +@end + +/** + * + * @type keytype + * @brief K 歌打分维度。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMulDimSingScoringMode) { + /** + * + * @brief 按照音高进行评分。 + */ + + ByteRTCMulDimSingScoringModeNote = 0 +}; +/** + * + * @type keytype + * @brief 远端音频流精准对齐模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioAlignmentMode) { + /** + * + * @brief 不对齐 + */ + + ByteRTCAudioAlignmentModeOff = 0, + /** + * + * @brief 远端音频流都对齐伴奏进度同步播放 + */ + + ByteRTCAudioAlignmentModeAudioMixing = 1, +}; + +/** + * + * @type keytype + * @hidden + * @brief 实时评分信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringRealtimeInfo : NSObject + /** + * + * @brief 当前的播放进度。 + */ + +@property(nonatomic, assign) int currentPosition; + /** + * + * @brief 演唱者的音高。 + */ + +@property(nonatomic, assign) int userPitch; + /** + * + * @brief 标准音高。 + */ + +@property(nonatomic, assign) int standardPitch; + /** + * + * @brief 歌词分句索引。 + */ + +@property(nonatomic, assign) int sentenceIndex; + /** + * + * @brief 上一句歌词的评分。 + */ + +@property(nonatomic, assign) int sentenceScore; + /** + * + * @brief 当前演唱的累计分数。 + */ + +@property(nonatomic, assign) int totalScore; + /** + * + * @brief 当前演唱的平均分数。 + */ + +@property(nonatomic, assign) int averageScore; +@end + +/** + * + * @type keytype + * @brief 标准音高数据组。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStandardPitchInfo : NSObject + /** + * + * @brief 开始时间,单位 ms。 + */ + +@property(nonatomic, assign) int startTime; + /** + * + * @brief 持续时间,单位 ms。 + */ + +@property(nonatomic, assign) int duration; + /** + * + * @brief 音高。 + */ + +@property(nonatomic, assign) int pitch; +@end + +/** + * + * @type keytype + * @hidden + * @brief K 歌评分配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringConfig : NSObject + /** + * + * @brief 打分维度,详见 ByteRTCMulDimSingScoringMode{@link #ByteRTCMulDimSingScoringMode}。 + */ + +@property(nonatomic, assign) ByteRTCMulDimSingScoringMode mode; + /** + * + * @brief 音频采样率。仅支持 44100 Hz、48000 Hz。 + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; + /** + * + * @brief 歌词文件路径。打分功能仅支持 KRC 歌词文件。 + */ + +@property(nonatomic, copy) NSString *_Nonnull lyricsFilepath; + /** + * + * @brief 歌曲 midi 文件路径。 + */ + +@property(nonatomic, copy) NSString *_Nonnull midiFilepath; +@end + +/** + * + * @type keytype + * @brief 音频文件录制内容来源。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameSource) { + /** + * + * @brief 本地麦克风采集的音频数据。 + */ + + ByteRTCAudioFrameSourceTypeMic = 0, + /** + * + * @brief 远端所有用户混音后的数据 + */ + + ByteRTCAudioFrameSourceTypePlayback = 1, + /** + * + * @brief 本地麦克风和所有远端用户音频流的混音后的数据 + */ + + ByteRTCAudioFrameSourceTypeMixed = 2, +}; +/** + * + * @type keytype + * @brief 音频质量 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioQuality) { + /** + * + * @brief 低音质 + */ + + ByteRTCAudioQualityLow = 0, + /** + * + * @brief 中音质 + */ + + ByteRTCAudioQualityMedium = 1, + /** + * + * @brief 高音质 + */ + + ByteRTCAudioQualityHigh = 2, + /** + * + * @brief 超高音质 + */ + + ByteRTCAudioQualityUltraHigh = 3, +}; +/** + * + * @type keytype + * @brief 音频录制配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioRecordingConfig : NSObject +/** + * + * @brief 录制文件路径。一个有读写权限的绝对路径,包含文件名和文件后缀。 + * @note 录制文件的格式仅支持 .aac 和 .wav。 + */ + +@property(nonatomic, copy) NSString* _Nonnull absoluteFileName; +/** + * + * @brief 录音内容来源,参看 ByteRTCAudioFrameSource{@link #ByteRTCAudioFrameSource}。
    + * 默认为 ByteRTCAudioFrameSourceTypeMixed = 2。 + */ + +@property(nonatomic, assign) ByteRTCAudioFrameSource frameSource; +/** + * + * @brief 录音采样率。参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; +/** + * + * @brief 录音音频声道。参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 如果录制时设置的音频声道数与采集时的音频声道数不同:
    + * - 如果采集的声道数为 1,录制的声道数为 2,那么,录制的音频为经过单声道数据拷贝后的双声道数据,而不是立体声。 + * - 如果采集的声道数为 2,录制的声道数为 1,那么,录制的音频为经过双声道数据混合后的单声道数据。 + */ + +@property(nonatomic, assign) ByteRTCAudioChannel channel; +/** + * + * @brief 录音音质。仅在录制文件格式为 .aac 时可以设置。参看 ByteRTCAudioQuality{@link #ByteRTCAudioQuality}。
    + * 采样率为 32kHz 时,不同音质录制文件(时长为 10min)的大小分别是:
    + * - 低音质:1.2MB; + * - 【默认】中音质:2MB; + * - 高音质:3.75MB; + * - 超高音质:7.5MB。 + */ + +@property(nonatomic, assign) ByteRTCAudioQuality quality; +@end + +/** + * + * @type keytype + * @brief 录音配置 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRecordingState) { + /** + * + * @brief 录制异常 + */ + + ByteRTCAudioRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + ByteRTCAudioRecordingStateProcessing = 1, + /** + * + * @brief 已结束录制,并且录制文件保存成功。 + */ + + ByteRTCAudioRecordingStateSuccess = 2, +}; +/** + * + * @type errorcode + * @brief 音频文件录制的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRecordingErrorCode) { + /** + * + * @brief 录制正常 + */ + + ByteRTCAudioRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + ByteRTCAudioRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 没有进入房间 + */ + + ByteRTCAudioRecordingErrorNotInRoom = -2, + /** + * + * @brief 录制已经开始 + */ + + ByteRTCAudioRecordingAlreadyStarted = -3, + /** + * + * @brief 录制还未开始 + */ + + ByteRTCAudioRecordingNotStarted = -4, + /** + * + * @brief 录制失败。文件格式不支持。 + */ + + ByteRTCAudioRecordingErrorCodeNotSupport = -5, + /** + * + * @brief 其他异常 + */ + + ByteRTCAudioRecordingErrorCodeOther = -6, +}; +/** + * + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEnhancementConfig: NSObject +/** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceSignaling; +/** + * + * @brief 对音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceAudio; +@end +/** + * + * @type keytype + * @brief 用户在空间音频坐标系里的位置信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPositionInfo : NSObject +/** + * + * @brief 用户在空间音频坐标系里的位置,需自行建立空间直角坐标系。参看 ByteRTCPosition{@link #ByteRTCPosition}。 + */ + +@property(strong, nonatomic) ByteRTCPosition *_Nonnull position; +/** + * + * @brief 用户在空间音频坐标系里的三维朝向信息。三个向量需要两两垂直。参看 ByteRTCHumanOrientation{@link #ByteRTCHumanOrientation}。 + */ + +@property(strong, nonatomic) ByteRTCHumanOrientation *_Nonnull orientation; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h new file mode 100644 index 0000000..1f03982 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h @@ -0,0 +1,302 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCAudioEffectPlayer +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer} 对应的回调句柄。你必须调用 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:} 完成设置后,才能收到对应回调。 + * @list + */ + +@protocol ByteRTCAudioEffectPlayerEventHandler +/** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param effectId ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer} 的 ID。通过 getAudioEffectPlayer{@link #ByteRTCEngine#getAudioEffectPlayer} 设置。 + * @param state 混音状态。参考 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @param error 错误码。参考 ByteRTCPlayerError{@link #ByteRTCPlayerError}。 + * @list 混音 + */ + +-(void)onAudioEffectPlayerStateChanged:(int)effectId state:(ByteRTCPlayerState)state error:(ByteRTCPlayerError)error; + +@end +/** + * + * @valid since 3.53 + * @type api + * @brief 音效播放器。
    + * 注意:
    + * - 调用 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:} 设置回调句柄以获取相关回调。 + * - 使用混音功能时,你必须通过 [setActive:withOptions:error:](https: + * @list 混音 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEffectPlayer :NSObject +/** + * + * @type api + * @brief 开始播放音效文件。
    + * 可以通过传入不同的 ID 和 filepath 多次调用本方法,以实现同时播放多个音效文件,实现音效叠加。 + * @param effectId 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法后,上一个音效会停止,下一个音效开始,并收到 onAudioEffectPlayerStateChanged:state:error:{@link #ByteRTCAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged:state:error:}。 + * @param filePath 音效文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的音效文件采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 音效配置,详见 ByteRTCAudioEffectPlayerConfig{@link #ByteRTCAudioEffectPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果已经通过 preload:filePath:{@link #ByteRTCAudioEffectPlayer#preload:filePath:} 将文件加载至内存,确保此处的 ID 与 `preload` 设置的 ID 相同。 + * - 开始播放音效文件后,可以调用 stop:{@link #ByteRTCAudioEffectPlayer#stop:} 方法停止播放音效文件。 + * @list 混音 + */ + +-(int)start:(int)effectId filePath:(NSString * _Nullable)filePath config:(ByteRTCAudioEffectPlayerConfig * _Nullable)config; +/** + * + * @type api + * @brief 停止播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以调用本方法停止播放音效文件。 + * - 调用本方法停止播放音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + +-(int)stop:(int)effectId; +/** + * + * @type api + * @brief 停止播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以调用本方法停止播放所有音效文件。 + * - 调用本方法停止播放所有音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + +-(int)stopAll; +/** + * + * @type api + * @brief 预加载指定音乐文件到内存中,以避免频繁播放同一文件时的重复加载,减少 CPU 占用。 + * @param effectId 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法,后一次会覆盖前一次。
    + * 如果先调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:},再使用相同的 ID 调用本方法 ,会收到回调 onAudioEffectPlayerStateChanged:state:error:{@link #ByteRTCAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged:state:error:},通知前一个音效停止,然后加载下一个音效。
    + * 调用本方法预加载 A.mp3 后,如果需要使用相同的 ID 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 播放 B.mp3,请先调用 unload:{@link #ByteRTCAudioEffectPlayer#unload:} 卸载 A.mp3 ,否则会报错 AUDIO_MIXING_ERROR_LOAD_CONFLICT。 + * @param filePath 音效文件路径。支持本地文件的 URI、或本地文件的绝对路径。
    + * 预加载的文件长度不得超过 20s。
    + * 不同平台支持的音效文件格式和 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 一致。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 本方法只是预加载指定音效文件,只有调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法才开始播放指定音效文件。 + * - 调用本方法预加载的指定音效文件可以通过 unload:{@link #ByteRTCAudioEffectPlayer#unload:} 卸载。 + * @list 混音 + */ + +-(int)preload:(int)effectId filePath:(NSString * _Nullable)filePath; +/** + * + * @type api + * @brief 卸载指定音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用本方法卸载该文件后,关于当前的混音状态,如果设置了 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:},会收到回调 `onAudioEffectPlayerStateChanged`。 + * @list 混音 + */ + +-(int)unload:(int)effectId; +/** + * + * @type api + * @brief 卸载所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用本方法卸载该文件后,关于当前的混音状态,如果设置了 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:},会收到回调 `onAudioEffectPlayerStateChanged`。 + * @list 混音 + */ + +-(int)unloadAll; +/** + * + * @type api + * @brief 暂停播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以通过调用本方法暂停播放音效文件。 + * - 调用本方法暂停播放音效文件后,可调用 resume:{@link #ByteRTCAudioEffectPlayer#resume:} 方法恢复播放。 + * @list 混音 + */ + +-(int)pause:(int)effectId; +/** + * + * @type api + * @brief 暂停播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以通过调用本方法暂停播放所有音效文件。 + * - 调用本方法暂停播放所有音效文件后,可调用 resumeAll{@link #ByteRTCAudioEffectPlayer#resumeAll} 方法恢复所有播放。 + * @list 混音 + */ + +-(int)pauseAll; +/** + * + * @type api + * @brief 恢复播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用 pause:{@link #ByteRTCAudioEffectPlayer#pause:} 方法暂停播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + +-(int)resume:(int)effectId; +/** + * + * @type api + * @brief 恢复播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用 pauseAll{@link #ByteRTCAudioEffectPlayer#pauseAll} 方法暂停所有正在播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + +-(int)resumeAll; +/** + * + * @type api + * @brief 设置音效文件的起始播放位置。 + * @param effectId 音效 ID + * @param position 音效文件起始播放位置,单位为毫秒。
    + * 你可以通过 getDuration:{@link #ByteRTCAudioEffectPlayer#getDuration:} 获取音效文件总时长,position 的值应小于音效文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)setPosition:(int)effectId position:(int)position; +/** + * + * @type api + * @brief 获取音效文件播放进度。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 音效文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getPosition:(int)effectId; +/** + * + * @type api + * @brief 调节指定音效的音量大小,包括音效文件和 PCM 音频。 + * @param effectId 音效 ID + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)setVolume:(int)effectId volume:(int)volume; +/** + * + * @type api + * @brief 设置所有音效的音量大小,包括音效文件和 PCM 音效。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口的优先级低于 setVolume:volume:{@link #ByteRTCAudioEffectPlayer#setVolume:volume:},即通过 `setVolume` 单独设置了音量的音效 ID,不受该接口设置的影响。 + * @list 混音 + */ + +-(int)setVolumeAll:(int)volume; +/** + * + * @type api + * @brief 获取当前音量。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getVolume:(int)effectId; +/** + * + * @type api + * @brief 获取音效文件时长。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 音效文件时长,单位为毫秒。 + * - < 0: 失败 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getDuration:(int)effectId; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 ByteRTCAudioEffectPlayerEventHandler{@link #ByteRTCAudioEffectPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + +-(int)setEventHandler:(_Nullable id)handler; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h new file mode 100644 index 0000000..cfc997f --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC RTC Defines +*/ + +#import "ByteRTCRtsDefines.h" +#import "ByteRTCMediaDefines.h" +#import "ByteRTCAudioDefines.h" +#import "ByteRTCVideoDefines.h" diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h new file mode 100644 index 0000000..e2ed273 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC HTTP Client Protocol +*/ + +#import +/** + * + * @hidden for internal use only + * @type api + * @list 引擎管理 + */ + +@protocol ByteRTCHttpClientProtocol + +@required +/** + * + * @type api + * @brief 需要实现的 HTTP 异步 GET 接口。 + * @param url GET 请求地址。 + * @param timeout 超时时间。 + * @param callback GET 请求结果回调函数。 + * @list 引擎管理 + */ + +- (void)getAsync:(NSString * _Nonnull)url timeoutMillisecond:(int)timeout + withCallback:(void(^ _Nullable)(int code, NSString* _Nullable data))callback; +/** + * + * @type api + * @brief 需要实现的 HTTP 异步 POST 接口。 + * @param url POST 请求地址。 + * @param content POST 请求的内容。 + * @param timeout 超时时间。 + * @param callback POST 请求结果回调函数。 + * @list 引擎管理 + */ + +- (void)postAsync:(NSString * _Nonnull)url content:(NSString * _Nullable)content timeoutMillisecond:(int)timeout + withCallback:(void(^ _Nullable)(int code, NSString* _Nullable data))callback; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h new file mode 100644 index 0000000..c31fa97 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h @@ -0,0 +1,573 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCRtsDefines +*/ + +#import "ByteRTCRtsDefines.h" + +/** + * + * @type keytype + * @brief 歌曲过滤方式。 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCMusicFilterType) { + /** + * + * @brief 不过滤。 + */ + + ByteRTCMusicFilterTypeNone = 0, + /** + * + * @brief 过滤没有歌词的歌曲。 + */ + + ByteRTCMusicFilterTypeWithoutLyric = 1 << 0, + /** + * + * @brief 过滤不支持打分的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedScore = 1 << 1, + /** + * + * @brief 过滤不支持伴唱切换的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedAccopmay = 1 << 2, + /** + * + * @brief 过滤没有高潮片段的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedClimx = 1 << 3, +}; + +/** + * + * @type keytype + * @brief 音乐播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayState) { + /** + * + * @brief 播放中。 + */ + + ByteRTCPlayStatePlaying = 1, + /** + * + * @brief 暂停中。 + */ + + ByteRTCPlayStatePaused = 2, + /** + * + * @brief 已停止。 + */ + + ByteRTCPlayStateStoped = 3, + /** + * + * @brief 播放失败。 + */ + + ByteRTCPlayStateFailed = 4, + /** + * + * @brief 播放结束。 + */ + + ByteRTCPlayStateFinished = 5, +}; + +/** + * + * @type keytype + * @brief 原唱伴唱类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioTrackType) { + /** + * + * @brief 播放原唱。 + */ + + ByteRTCAudioTrackTypeOriginal = 1, + /** + * + * @brief 播放伴唱。 + */ + + ByteRTCAudioTrackTypeAccompy = 2, +}; + +/** + * + * @type keytype + * @brief 音乐播放类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPlayType) { + /** + * + * @brief 仅本地播放。 + */ + + ByteRTCAudioPlayTypeLocal = 0, + /** + * + * @brief 仅远端播放。 + */ + + ByteRTCAudioPlayTypeRemote = 1, + /** + * + * @brief 本地、远端同时播放。 + */ + + ByteRTCAudioPlayTypeLocalAndRemote = 2, +}; + +/** + * + * @type keytype + * @brief 歌词格式类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLyricStatus) { + /** + * + * @brief 无歌词。 + */ + + ByteRTCLyricStatusNone = 0, + /** + * + * @brief KRC 歌词。 + */ + + ByteRTCLyricStatusKRC = 1, + /** + * + * @brief LRC 歌词。 + */ + + ByteRTCLyricStatusLRC = 2, + /** + * + * @brief KRC 歌词和 LRC 歌词均有。 + */ + + ByteRTCLyricStatusKRCAndLRC = 3, +}; + +/** + * + * @type keytype + * @brief 下载文件类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDownloadFileType) { + /** + * + * @brief 音频文件。 + */ + + ByteRTCDownloadFileTypeMusic = 1, + /** + * + * @brief KRC 歌词文件。 + */ + + ByteRTCDownloadFileTypeKRC = 2, + /** + * + * @brief LRC 歌词文件。 + */ + + ByteRTCDownloadFileTypeLRC = 3, + /** + * + * @brief MIDI 文件。 + */ + + ByteRTCDownloadFileTypeMIDI = 4, +}; + +/** + * + * @type keytype + * @brief 歌词文件类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDownloadLyricType) { + /** + * + * @brief KRC 歌词文件。 + */ + + ByteRTCDownloadLyricTypeKRC = 0, + /** + * + * @brief LRC 歌词文件。 + */ + + ByteRTCDownloadLyricTypeLRC = 1, +}; + +/** + * + * @type errorcode + * @brief KTV 错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCKTVErrorCode) { + /** + * + * @brief 成功。 + */ + + ByteRTCKTVErrorCodeOK = 0, + /** + * + * @brief AppID 异常。 + */ + + ByteRTCKTVErrorCodeAppidInValid = -3000, + /** + * + * @brief 非法参数,传入的参数不正确。 + */ + + ByteRTCKTVErrorCodeParasInValid = -3001, + /** + * + * @brief 获取歌曲资源失败。 + */ + + ByteRTCKTVErrorCodeGetMusicFailed = -3002, + /** + * + * @brief 获取歌词失败。 + */ + + ByteRTCKTVErrorCodeGetLyricFailed = -3003, + /** + * + * @brief 歌曲下架。 + */ + + ByteRTCKTVErrorCodeMusicTakedown = -3004, + /** + * + * @brief 歌曲文件下载失败。 + */ + + ByteRTCKTVErrorCodeMusicDownload = -3005, + /** + * + * @brief MIDI 文件下载失败。 + */ + + ByteRTCKTVErrorCodeMidiDownloadFailed = -3006, + /** + * + * @brief 系统繁忙。 + */ + + ByteRTCKTVErrorCodeSystemBusy = -3007, + /** + * + * @brief 网络异常。 + */ + + ByteRTCKTVErrorCodeNetwork = -3008, + /** + * + * @brief KTV 功能未加入房间。 + */ + + ByteRTCKTVErrorCodeNotJoinRoom = -3009, + /** + * + * @brief 解析数据失败。 + */ + + ByteRTCKTVErrorCodeParseData = -3010, + /** + * + * @hidden + * @deprecated 从 353 开始 + * @brief 下载失败。 + */ + + ByteRTCKTVErrorCodeDownload = -3011, + /** + * + * @brief 已在下载中。 + */ + + ByteRTCKTVErrorCodeDownloading = -3012, + /** + * + * @brief 内部错误,联系技术支持人员。 + */ + + ByteRTCKTVErrorCodeInternal = -3013, + /** + * + * @brief 下载失败,磁盘空间不足。清除缓存后重试。 + */ + + ByteRTCKTVErrorCodeInsufficientDiskSpace = -3014, + /** + * + * @brief 下载失败,音乐文件解密失败,联系技术支持人员。 + */ + + ByteRTCKTVErrorCodeMusicDecryptionFailed = -3015, + /** + * + * @brief 下载失败,音乐文件重命名失败,请重试。 + */ + + ByteRTCKTVErrorCodeFileRenameFailed = -3016, + /** + * + * @brief 下载失败,下载超时,请重试。 + */ + + ByteRTCKTVErrorCodeDownloadTimeOut = -3017, + /** + * + * @brief 清除缓存失败,可能原因是文件被占用或者系统异常,请重试。 + */ + + ByteRTCKTVErrorCodeClearCacheFailed = -3018, + /** + * + * @brief 取消下载。 + */ + + ByteRTCKTVErrorCodeDownloadCanceled = -3019 +}; + +/** + * + * @type errorcode + * @brief KTV 播放器错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCKTVPlayerErrorCode) { + /** + * + * @brief 成功。 + */ + + ByteRTCKTVPlayerErrorCodeOK = 0, + /** + * + * @brief 播放错误,请下载后播放。 + */ + + ByteRTCKTVPlayerErrorCodeFileNotExist = -3020, + /** + * + * @brief 播放错误,请确认文件播放格式。 + */ + + ByteRTCKTVPlayerErrorCodeFileError = -3021, + /** + * + * @brief 播放错误,未进入房间。 + */ + + ByteRTCKTVPlayerErrorCodeNotJoinRoom = -3022, + /** + * + * @brief 参数错误。 + */ + + ByteRTCKTVPlayerErrorCodeParam = -3023, + /** + * + * @brief 播放失败,找不到文件或文件打开失败。 + */ + + ByteRTCKTVPlayerErrorCodeStartError = -3024, + /** + * + * @brief 混音 ID 异常。 + */ + + ByteRTCKTVPlayerErrorCodeMixIdError = -3025, + /** + * + * @brief 设置播放位置出错。 + */ + + ByteRTCKTVPlayerErrorCodePositionError = -3026, + /** + * + * @brief 音量参数不合法,可设置的取值范围为 [0,400]。 + */ + + ByteRTCKTVPlayerErrorCodeAudioVolumeError = -3027, + /** + * + * @brief 不支持此混音类型。 + */ + + ByteRTCKTVPlayerErrorCodeTypeError = -3028, + /** + * + * @brief 音调文件不合法。 + */ + + ByteRTCKTVPlayerErrorCodePitchError = -3029, + /** + * + * @brief 音轨不合法。 + */ + + ByteRTCKTVPlayerErrorCodeAudioTrackError = -3030, + /** + * + * @brief 混音启动中。 + */ + + ByteRTCKTVPlayerErrorCodeStartingError = -3031, +}; + +/** + * + * @type keytype + * @brief 歌曲数据。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMusicInfo : NSObject +/** + * + * @brief 音乐 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicId; +/** + * + * @brief 音乐名称。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicName; +/** + * + * @brief 歌手。 + */ + +@property (nonatomic, copy) NSString * _Nonnull singer; +/** + * + * @brief 版权商 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull vendorId; +/** + * + * @brief 版权商名称。 + */ + +@property (nonatomic, copy) NSString * _Nonnull vendorName; +/** + * + * @brief 最新更新时间戳,单位为毫秒。 + */ + +@property (nonatomic, assign) int64_t updateTimestamp; +/** + * + * @brief 封面地址。 + */ + +@property (nonatomic, copy) NSString * _Nonnull posterUrl; +/** + * + * @brief 歌词格式类型,参看 ByteRTCLyricStatus{@link #ByteRTCLyricStatus}。 + */ + +@property (nonatomic, assign) ByteRTCLyricStatus lyricStatus; +/** + * + * @brief 歌曲长度,单位为毫秒。 + */ + +@property (nonatomic, assign) int duration; +/** + * + * @brief 歌曲是否支持打分。 + */ + +@property (nonatomic, assign) BOOL enableScore; +/** + * + * @brief 歌曲高潮片段开始时间,单位为毫秒。 + */ + +@property (nonatomic, assign) int climaxStartTime; +/** + * + * @brief 歌曲高潮片段停止时间,单位为毫秒。 + */ + +@property (nonatomic, assign) int climaxEndTime; +@end + +/** + * + * @type keytype + * @brief 热榜歌曲数据。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHotMusicInfo : NSObject +/** + * + * @brief 热榜名称。 + */ + +@property (nonatomic, copy) NSString * _Nullable hotName; +/** + * + * @brief 歌曲数据,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + */ + +@property (nonatomic, copy) NSArray * _Nullable musics; +@end + +/** + * + * @type keytype + * @brief 歌曲下载信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDownloadResult : NSObject +/** + * + * @brief 音乐 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicId; +/** + * + * @brief 下载文件类型,参看 ByteRTCDownloadFileType{@link #ByteRTCDownloadFileType}。 + */ + +@property (nonatomic, assign) ByteRTCDownloadFileType fileType; +/** + * + * @brief 文件存放路径。 + */ + +@property (nonatomic, copy) NSString * _Nullable filePath; + +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h new file mode 100644 index 0000000..46c8005 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h @@ -0,0 +1,252 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVManager +*/ + +#import +#import "ByteRTCKTVDefines.h" +@class ByteRTCKTVManager; +@class ByteRTCKTVPlayer; + +NS_ASSUME_NONNULL_BEGIN +/** + * + * @type callback + * @brief KTV 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCKTVManagerDelegate +@optional +/** + * + * @type callback + * @brief 歌曲列表回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param musics 歌曲数据数组,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param totalSize 数据条目总数。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onMusicListResult:(NSArray * _Nullable)musics totalSize:(int)totalSize errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 搜索歌曲结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param musics 歌曲数据数组,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param totalSize 数据条目总数。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onSearchMusicResult:(NSArray * _Nullable)musics totalSize:(int)totalSize errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 热榜歌曲结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param hotMusicInfos 热榜歌曲数据数组,参看 ByteRTCHotMusicInfo{@link #ByteRTCHotMusicInfo}。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onHotMusicResult:(NSArray * _Nullable)hotMusicInfos errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 歌曲详细信息回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param music 歌曲数据,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onMusicDetailResult:(ByteRTCMusicInfo * _Nullable)music errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 下载成功回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param result 下载信息,参看 ByteRTCDownloadResult{@link #ByteRTCDownloadResult}。 + * @list 在线 KTV + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadSuccess:(int)downloadId downloadResult:(ByteRTCDownloadResult *)result; +/** + * + * @type callback + * @brief 下载失败回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param errorCode 错误码,参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list Online Karaoke + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadFailed:(int)downloadId errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 歌曲文件下载进度回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param downloadPercentage 下载进度百分比,取值范围 [0,100]。 + * @list 在线 KTV + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadMusicProgress:(int)downloadId progress:(int)downloadPercentage; +/** + * + * @type callback + * @brief 清理文件缓存结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param errorCode 错误码,非 0 为失败,参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list Online Karaoke + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onClearCacheResult:(ByteRTCKTVErrorCode)errorCode; +@end +/** + * + * @type api + * @brief KTV 管理接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCKTVManager : NSObject + +@property(nonatomic, weak) id delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 获取歌曲列表。 + * @param pageNumber 页码,默认从 1 开始。 + * @param pageSize 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onMusicListResult:totalSize:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onMusicListResult:totalSize:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)getMusicList:(int)pageNumber pageSize:(int)pageSize filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 根据关键词搜索歌曲。 + * @param keyWord 关键词,字符串长度最大为 20 个字符。 + * @param pageNumber 页码,默认从 1 开始。 + * @param pageSize 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onSearchMusicResult:totalSize:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onSearchMusicResult:totalSize:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)searchMusic:(NSString * _Nonnull)keyWord pageNumber:(int)pageNumber pageSize:(int)pageSize filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 指定歌曲榜单,并获取其歌曲列表。 + * @param customHotlistId 榜单 ID 列表。
    + * 默认榜单 ID 有:`ContentCenter` 和 `Project`,分别是火山内容中心热歌榜和项目热歌榜。如果你需要其他榜单,请联系技术支持人员。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onHotMusicResult:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onHotMusicResult:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)getHotMusic:(NSArray *_Nullable)customHotlistId filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 获取音乐详细信息。 + * @param musicId 音乐 ID。 + * @note 调用接口后,你会收到 ktvManager:onMusicDetailResult:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onMusicDetailResult:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (void)getMusicDetail:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 下载音乐。 + * @param musicId 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若音乐下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若音乐下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * - 音乐下载进度更新时,你会收到 ktvManager:onDownloadMusicProgress:progress:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadMusicProgress:progress:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 下载歌词。 + * @param musicId 音乐 ID。 + * @param lyricType 歌词文件类型,参看 ByteRTCDownloadLyricType{@link #ByteRTCDownloadLyricType}。 + * @return 下载任务 ID。 + * @note + * - 若歌词下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若歌词下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadLyric:(NSString * _Nonnull)musicId lyricType:(ByteRTCDownloadLyricType)lyricType; +/** + * + * @type api + * @brief 下载 MIDI 文件。 + * @param musicId 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若文件下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若文件下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadMidi:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 取消下载任务。 + * @param downloadId 下载任务 ID。 + * @list 在线 KTV + */ + +- (void)cancelDownload:(int)downloadId; +/** + * + * @type api + * @brief 清除当前音乐缓存文件,包括音乐音频和歌词。 + * @list 在线 KTV + */ + +- (void)clearCache; +/** + * + * @type api + * @brief 设置歌曲文件最大占用的本地缓存。 + * @param maxCacheSizeMB 本地缓存,单位 MB。
    + * 设置值小于等于 0 时,使用默认值 1024 MB。 + * @list 在线 KTV + */ + +- (void)setMaxCacheSize:(int)maxCacheSizeMB; +/** + * + * @type api + * @brief 获取 KTV 播放器。 + * @return KTV 播放器接口,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @list 在线 KTV + */ + +- (ByteRTCKTVPlayer * _Nullable)getKTVPlayer; + + +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h new file mode 100644 index 0000000..930ece1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVManager +*/ + +@interface ByteRTCKTVManager () + +- (instancetype)initWithKTVManager:(bytertc::IKTVManager *)ktvManager; + +- (void)destroyResourceInternal; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h new file mode 100644 index 0000000..abc500c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVPlayer +*/ + +#import +#import "ByteRTCKTVDefines.h" +@class ByteRTCKTVPlayer; + +NS_ASSUME_NONNULL_BEGIN +/** + * + * @type callback + * @brief KTV 播放器回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCKTVPlayerDelegate +/** + * + * @type callback + * @brief 音乐播放进度回调。 + * @param ktvPlayer 当前 ktvPlayer 对象,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @param musicId 音乐 ID。 + * @param progress 音乐播放进度,单位为毫秒。 + * @list 在线 KTV + */ + +- (void)ktvPlayer:(ByteRTCKTVPlayer *)ktvPlayer onPlayProgress:(NSString *)musicId progress:(int64_t)progress; +/** + * + * @type callback + * @brief 音乐播放状态改变回调。 + * @param ktvPlayer 当前 ktvPlayer 对象,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @param musicId 音乐 ID。 + * @param state 音乐播放状态,参看 ByteRTCPlayState{@link #ByteRTCPlayState}。 + * @param error 错误码,参看 ByteRTCKTVPlayerErrorCode{@link #ByteRTCKTVPlayerErrorCode}。 + * @note + * 此回调被触发的时机汇总如下:
    + * - 调用 playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType:} 成功后,会触发 playState 值为 ByteRTCPlayStatePlaying 的回调;否则会触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 使用相同的音乐 ID 重复调用 playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType:} 后,后一次播放会覆盖前一次,且会触发 playState 值为 ByteRTCPlayStatePlaying 的回调,表示后一次音乐播放已开始。 + * - 调用 pauseMusic:{@link #ByteRTCKTVPlayer#pauseMusic:} 方法暂停播放成功后,会触发 playState 值为 ByteRTCPlayStatePaused 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 调用 resumeMusic:{@link #ByteRTCKTVPlayer#resumeMusic:} 方法恢复播放成功后,会触发 playState 值为 ByteRTCPlayStatePlaying 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 调用 stopMusic:{@link #ByteRTCKTVPlayer#stopMusic:} 方法停止播放成功后,会触发 playState 值为 ByteRTCPlayStateStoped 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 音乐播放结束会触发 playState 值为 ByteRTCPlayStateFinished 的回调。 + * @list Online Karaoke + */ + +- (void)ktvPlayer:(ByteRTCKTVPlayer *)ktvPlayer onPlayStateChanged:(NSString *)musicId state:(ByteRTCPlayState)state error:(ByteRTCKTVPlayerErrorCode)error; +@end +/** + * + * @type api + * @brief KTV 播放器接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCKTVPlayer : NSObject + +@property(nonatomic, weak) id delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 播放歌曲。 + * @param musicId 音乐 ID。
    + * 若同一 musicId 的歌曲正在播放,再次调用接口会从开始位置重新播放。若 musicId 对应的音频文件不存在会触发报错。 + * @param trackType 原唱伴唱类型,参看 ByteRTCAudioTrackType{@link #ByteRTCAudioTrackType}。 + * @param playType 音乐播放类型。参看 ByteRTCAudioPlayType{@link #ByteRTCAudioPlayType}。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * - 若音乐文件不存在,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3020,playState 为 4。 + * @list 在线 KTV + */ + +- (void)playMusic:(NSString * _Nonnull)musicId audioTrackType:(ByteRTCAudioTrackType)trackType audioPlayType:(ByteRTCAudioPlayType)playType; +/** + * + * @type api + * @brief 暂停播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)pauseMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 继续播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)resumeMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 停止播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)stopMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param musicId 音乐 ID。 + * @param position 音乐起始位置,单位为毫秒,取值小于音乐文件总时长。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)seekMusic:(NSString * _Nonnull)musicId position:(int)position; +/** + * + * @type api + * @brief 设置歌曲播放音量,只能在开始播放后进行设置。 + * @param musicId 音乐 ID。 + * @param volume 歌曲播放音量,调节范围:[0,400]。
    + * - 0:静音。 + * - 100:原始音量。 + * - 400: 原始音量的 4 倍(自带溢出保护)。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的音量大于 400,则按最大值 400 进行调整;若设置的音量小于 0,则按最小值 0 进行调整。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)setMusicVolume:(NSString * _Nonnull)musicId volume:(int)volume; +/** + * + * @type api + * @brief 切换歌曲原唱伴唱。 + * @param musicId 音乐 ID。 + * @note 调用本接口时音乐必须处于播放中状态。 + * @list 在线 KTV + */ + +- (void)switchAudioTrackType:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 对播放中的音乐设置升降调信息。 + * @param musicId 音乐 ID。 + * @param pitch 相对于音乐文件原始音调的升高/降低值,取值范围 [-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的 pitch 大于 12,则按最大值 12 进行调整;若设置的 pitch 小于 –12,则按最小值 –12 进行调整。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)setMusicPitch:(NSString * _Nonnull)musicId pitch:(int)pitch; + +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h new file mode 100644 index 0000000..f7a2e5a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVPlayer +*/ + +@interface ByteRTCKTVPlayer () + +- (instancetype)initWithKTVPlayer:(bytertc::IKTVPlayer *)ktvPlayer; + +- (void)destroyResourceInternal; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h new file mode 100644 index 0000000..2d213fc --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h @@ -0,0 +1,4989 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Common Defines +*/ + +#import "ByteRTCRtsDefines.h" +/** + * + * @type keytype + * @brief 方法调用结果。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCReturnStatus) { + /** + * + * @brief 成功。 + */ + + ByteRTCReturnStatusSuccess = 0, + /** + * + * @brief 失败。 + */ + + ByteRTCReturnStatusFailure = -1, + /** + * + * @brief 参数错误。 + */ + + ByteRTCReturnStatusParameterErr = -2, + /** + * + * @brief 接口状态错误。 + */ + + ByteRTCReturnStatusWrongState = -3, + /** + * + * @brief 失败,用户已在房间内。 + */ + + ByteRTCReturnStatusHasInRoom = -4, + /** + * + * @brief 失败,用户已登录。 + */ + + ByteRTCReturnStatusHasInLogin = -5, + /** + * + * @brief 失败,用户已经在进行通话回路测试中。 + */ + + ByteRTCReturnStatusHasInEchoTest = -6, + /** + * + * @brief 失败,音视频均未采集。 + */ + + ByteRTCReturnStatusNeitherVideoNorAudio = -7, + /** + * + * @brief 失败,该 roomId 已被使用。 + */ + + ByteRTCReturnStatusRoomIdInUse = -8, + /** + * + * @brief 失败,屏幕流不支持。 + */ + + ByteRTCReturnStatusScreenNotSupport = -9, + /** + * + * @brief 失败,不支持该操作。 + */ + + ByteRTCReturnStatusNotSupport = -10, + /** + * + * @brief 失败,资源已占用。 + */ + + ByteRTCReturnStatusResourceOverflow = -11, + /** + * + * @brief 失败,没有音频帧。 + */ + + ByteRTCReturnStatusAudioNoFrame = -101, + /** + * + * @brief 失败,未实现。 + */ + + ByteRTCReturnStatusAudioNotImplemented = -102, + /** + * + * @brief 失败,采集设备无麦克风权限,尝试初始化设备失败。 + */ + + ByteRTCReturnStatusAudioNoPermission = -103, + /** + * + * @brief 失败,设备不存在。当前没有设备或设备被移除时返回该值。 + */ + + ByteRTCReturnStatusAudioDeviceNotExists = -104, + /** + * + * @brief 失败,设备音频格式不支持。 + */ + + ByteRTCReturnStatusAudioDeviceFormatNotSupport = -105, + /** + * + * @brief 失败,系统无可用设备。 + */ + + ByteRTCReturnStatusAudioDeviceNoDevice = -106, + /** + * + * @brief 失败,当前设备不可用,需更换设备。 + */ + + ByteRTCReturnStatusAudioDeviceCannotUse = -107, + /** + * + * @brief 系统错误,设备初始化失败。 + */ + + ByteRTCReturnStatusAudioDeviceInitFailed = -108, + /** + * + * @brief 系统错误,设备开启失败。 + */ + + ByteRTCReturnStatusAudioDeviceStartFailed = -109, + /** + * + * @hidden(iOS) + * @brief 暂不支持指定音频进程采集,采集失败。 + */ + + ByteRTCReturnStatusAudioDeviceProcessNotExist = -110, + /** + * + * @brief 失败。底层未初始化,engine 无效。 + */ + + ByteRTCReturnStatusNativeInValid = -201, +}; + +/** + * + * @type keytype + * @brief 房间内远端流移除原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamRemoveReason) { + /** + * + * @brief 远端用户停止发布流。 + */ + + ByteRTCStreamRemoveReasonUnpublish = 0, + /** + * + * @brief 远端用户发布流失败。 + */ + + ByteRTCStreamRemoveReasonPublishFailed = 1, + /** + * + * @brief 媒体服务器 10s 没收到客户端的媒体数据。 + */ + + ByteRTCStreamRemoveReasonKeepLiveFailed = 2, + /** + * + * @brief 远端用户断网。 + */ + + ByteRTCStreamRemoveReasonClientDisconnected = 3, + /** + * + * @brief 远端用户重新发布流。 + */ + + ByteRTCStreamRemoveReasonRepublish = 4, + /** + * + * @brief 其他原因。 + */ + + ByteRTCStreamRemoveReasonOther = 5, + /** + * + * @brief 远端用户 Token 发布权限过期。 + */ + + ByteRTCStreamRemoveReasonPublishPrivilegeExpired = 6, +}; + +/** + * + * @type keytype + * @brief 房间模式
    + * 根据所需场景,选择合适的房间模式,应用不同的音视频算法、视频参数和网络配置
    + * 调用 `setAudioProfile` 改变音频参数配置 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomProfile) { + /** + * + * @brief 默认场景,通用模式
    + * 与 `ByteRTCRoomProfileMeeting = 16` 配置相同。
    + * 你可以联系技术支持更换默认配置参数。 + */ + + ByteRTCRoomProfileCommunication = 0, + /** + * + * @brief 游戏语音模式,低功耗、低流量消耗。
    + * 低端机在此模式下运行时,进行了额外的性能优化:
    + * - 部分低端机型配置编码帧长 40/60 + * - 部分低端机型关闭软件 3A 音频处理 + * 增强对 iOS 其他屏幕录制进行的兼容性,避免音频录制被 RTC 打断。 + */ + + ByteRTCRoomProfileGame = 2, + /** + * + * @brief 云游戏模式。
    + * 如果你的游戏场景需要低延迟的配置,使用此设置。
    + * 此设置下,弱网抗性较差。 + */ + + ByteRTCRoomProfileCloudGame = 3, + /** + * + * @brief 云渲染模式。超低延时配置。
    + * 如果你的应用并非游戏但又对延时要求较高时,选用此模式
    + * 该模式下,音视频通话延时会明显降低,但同时弱网抗性、通话音质等均会受到一定影响。 + */ + + ByteRTCRoomProfileLowLatency = 4, + /** + * + * @brief 适用于 3 人及以上纯语音通话。
    + * 通话中,闭麦时是媒体模式,上麦后切换为通话模式。 + */ + + ByteRTCRoomProfileChatRoom = 6, + /** + * + * @brief 适用于单主播和观众进行音视频互动的直播。通话模式,上下麦不会有模式切换,避免音量突变现象 + */ + + ByteRTCRoomProfileInteractivePodcast = 10, + /** + * + * @brief 适合在线实时合唱场景,高音质,超低延迟。使用本配置前请联系技术支持进行协助完成其他配置。 + */ + + ByteRTCRoomProfileChorus = 12, + /** + * + * @brief 适用于 1 vs 1 游戏串流,支持公网或局域网。 + */ + + ByteRTCRoomProfileGameStreaming = 14, + /** + * + * @brief 适用于云端会议中的个人设备 + */ + + ByteRTCRoomProfileMeeting = 16, + /** + * + * @brief 适用于云端会议中的会议室终端设备,例如 Rooms,投屏盒子等。 + */ + + ByteRTCRoomProfileMeetingRoom = 17, + /** + * + * @brief 适用于课堂互动,房间内所有成员都可以进行音视频互动
    + * 当你的场景中需要同时互动的成员超过 10 人时使用此模式 + */ + + ByteRTCRoomProfileClassroom = 18, + /** + * + * @brief 注重流畅性,缺省码率相对低。适用于通话。 + */ + + ByteRTCRoomProfileCall = 19, + /** + * + * @brief 更注重画质,视频缺省码率相对高。适用于直播互动。 + */ + + ByteRTCRoomProfileLive = 20, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 用户角色。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserRoleType) { + /** + * + * @brief 主播角色。该角色用户可在房间内发布和订阅音视频流,房间中的其他用户可以感知到该用户的存在。 + */ + + ByteRTCUserRoleTypeBroadcaster = 1, + /** + * + * @brief 隐身用户角色。此角色用户只可在房间内订阅音视频流,房间中的其他用户无法感知到该用户的存在。 + */ + + ByteRTCUserRoleTypeSilentAudience = 2, +}; + + +typedef NS_ENUM(NSInteger, ByteRTCRoomLiveMode) { + /** + * + * @brief 多人直播、连麦直播等模式。 + */ + + ByteRTCRoomLiveModeCoHost = 1, + /** + * + * @brief 单人直播。 + */ + + ByteRTCRoomLiveModeSoloHost = 2, +}; + +/** + * + * @type keytype + * @brief 用户可见性状态改变错误码。 + */ + + typedef NS_ENUM(NSInteger, ByteRTCUserVisibilityChangeError) { + /** + * + * @brief 成功。 + */ + + ByteRTCUserVisibilityChangeErrorOk = 0, + /** + * + * @brief 未知错误。 + */ + + ByteRTCUserVisibilityChangeErrorUnknown = 1, + /** + * + * @brief 房间内可见用户达到上限。 + */ + + ByteRTCUserVisibilityChangeErrorTooManyVisibleUser = 2, +}; + +/** + * + * @type keytype + * @brief 数据消息来源 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDataMessageSourceType) { + /** + * + * @brief 通过客户端或服务端的插入的自定义消息。 + */ + + ByteRTCDataMessageSourceTypeDefault = 0, + /** + * + * @brief 系统数据,包含音量指示信息。 + */ + + ByteRTCDataMessageSourceTypeSystem = 1, +}; + +/** + * + * @type keytype + * @brief SEI 发送模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSEICountPerFrame) { + /** + * + * @brief 单发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,SEI 数据会按顺序跟随连续的视频帧逐帧发送,单个视频帧最多只有一个 SEI 数据。 + * 例如,假设在某一帧间隔内需要发送 3 个 SEI 数据,那么第 1 个 SEI 会在当前帧发送,第 2 个 SEI 会在下一帧发送,第 3 个 SEI 会在再下一帧发送。 + */ + + ByteRTCSEICountPerFrameSingle = 0, + /** + * + * @brief 多发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,这些 SEI 数据会全部在下一个视频帧上发送,可降低发送延迟,但一个视频帧会携带多个 SEI 数据。 + * 例如,假设在某一帧间隔内有 3 个 SEI 数据需要发送,这 3 个 SEI 数据将全部在下一个视频帧上发送。 + */ + + ByteRTCSEICountPerFrameMulti = 1, +}; + +/** + * + * @type keytype + * @brief 房间状态码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomState) { + /** + * + * @brief 加入房间成功 + */ + + ByteRTCRoomStateJoinSuccess = 0, + /** + * + * @brief 加入房间失败 + */ + + ByteRTCRoomStateJoinFailed = 1, + /** + * + * @brief 离开房间 + */ + + ByteRTCRoomStateLeft = 2, +}; + +/** + * + * @type keytype + * @brief 房间状态变化原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomStateChangeReason) { + /** + * + * @brief 首次进房成功。 + */ + + ByteRTCRoomStateChangeReasonJoinRoom = 0, + /** + * + * @brief 重新进房,比如断网重连。 + */ + + ByteRTCRoomStateChangeReasonReconnect = 1, + /** + * + * @brief 离开房间。 + */ + + ByteRTCRoomStateChangeReasonLeaveRoom = 2, + + /** + * + * @brief 进房失败。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + ByteRTCRoomStateChangeReasonJoinRoomFailed = -2001, + + /** + * + * @brief Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 方法更新 Token。 + */ + + ByteRTCRoomStateChangeReasonInvalidToken = -1000, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 房间被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonUserForbidden = -1026, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonKickedOut = -1006, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonRoomDismiss = -1011, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonDuplicateLogin = -1004, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 `joinRoom:userInfo:roomConfig:` 方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + ByteRTCRoomStateChangeReasonWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseNotMatchWithCache = -1024, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseFunctionNotFound = -1027, + /** + * + * @brief 服务端异常状态导致退出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTCRoomStateChangeReasonStateAbnormalServerStatus = -1084, + /** + * + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTCRoomStateChangeReasonUnknown = -1001 +}; + +/** + * + * @type keytype + * @brief 房间事件码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomEvent) { + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `rtcRoom:onUserJoined:` 和 `rtcEngine:onUserLeave:reason:` 回调,并通过广播提示房间内所有用户。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomEventUserNotifyStop = -2013, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + ByteRTCRoomEventForbidden = -2012 +}; + +/** + * + * @type keytype + * @brief 房间事件信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomEventInfo : NSObject + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + @property(assign, nonatomic) NSInteger forbiddenTime; +@end + +/** + * + * @type errorcode + * @brief 回调错误码。
    + * SDK 内部遇到不可恢复的错误时,会通过 `rtcEngine:onError:` 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCErrorCode) { + /** + * + * @brief Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 方法更新 Token。 + */ + + ByteRTCErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTCErrorCodeJoinRoom = -1001, + /** + * + * @brief 没有发布音视频流权限。通过以下回调通知:rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}。
    + * 用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。 + */ + + ByteRTCErrorCodeNoPublishPermission = -1002, + /** + * + * @brief 没有订阅音视频流权限。通过以下回调通知:rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + ByteRTCErrorCodeNoSubscribePermission = -1003, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeDuplicateLogin = -1004, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeKickedOut = -1006, + + /** + * + * @brief 当调用 `createRtcRoom:` ,如果 roomId 非法,会返回 null,并抛出该错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeRoomIdIllegal = -1007, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeUpdateTokenWithInvalidToken = -1010, + + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeRoomDismiss = -1011, + + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 `joinRoom:userInfo:roomConfig:` 方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + ByteRTCJoinRoomWithoutLicenseAuthenticateSDK = -1012, + + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomAlreadyExist = -1013, + + /** + * + * @brief 加入多个房间时使用了不同的 uid。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + ByteRTCUserIDDifferent = -1014, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseNotMatchWithCache = -1024, + /** + * + * @brief 房间被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomUserForbidden = -1026, + /** + * + * @brief 订阅音视频流失败,订阅音视频流总数超过上限。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 游戏场景下,为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + ByteRTCErrorCodeOverStreamSubscribeLimit = -1070, + /** + * + * @brief 发布流失败,发布流总数超过上限。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。
    + * RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。 + */ + + ByteRTCErrorCodeOverStreamPublishLimit = -1080, + /** + * + * @deprecated since 3.52, use ByteRTCErrorCodeOverStreamPublishLimit-1080)instead + * @brief 发布视频流总数超过上限。
    + * RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。 + */ + + ByteRTCErrorCodeOverVideoPublishLimit = -1082, + /** + * + * @deprecated since 3.60, use ByteRTCAVSyncEventInvalidUidRepeated = 0 carried by rtcRoom:onAVSyncEvent:userId:eventCode:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncEvent:userId:eventCode:} instead. + * @brief 音视频同步失败。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。
    + * 通过 rtcRoom:onStreamStateChanged:withUid:state:extraInfo: 回调。 + */ + + ByteRTCErrorCodInvalidAudioSyncUidRepeated = -1083, + /** + * + * @brief 服务端异常状态导致退出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTCErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。 + */ + + ByteRTCErrorCodeMultiRoomUnpublishFailed = -1085, + /** + * + * @hidden for internal use only + * @brief 指定服务区域时传入错误参数。 + */ + + ByteRTCErrorCodeWrongAreaCode = -1086, + /** + * + * @hidden for internal use only + * @brief notify deadlock + */ + + ByteRTCErrorCodeDeadLockNotify = -1111, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅作通知。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWarningCode) { + /** + * + * @brief 发布音视频流失败。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + ByteRTCWarningCodePublishStreamFailed = -2002, + /** + * + * @brief 订阅音视频流失败。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + ByteRTCWarningCodeSubscribeStreamFailed404 = -2003, + /** + * + * @brief 订阅音视频流失败。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 当你订阅所在房间中的音视频流时,由于服务器错误导致订阅失败。SDK 会自动重试订阅。 + */ + + ByteRTCWarningCodeSubscribeStreamFailed5xx = -2004, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误,当前代码中未使用。 + */ + + ByteRTCWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + ByteRTCWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 当调用 `setUserVisibility:` 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。 + */ + + ByteRTCWarningCodePublishStreamForbidden = -2009, + /** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @brief 自动订阅模式未关闭时,尝试开启手动订阅模式会触发此警告。
    + * 你需在进房前关闭自动订阅模式,再调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:}/subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 方法手动订阅音视频流。 + */ + + ByteRTCWarningCodeSubscribeStreamForbiden = -2010, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + ByteRTCWarningCodeSendCustomMessage = -2011, + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `rtcEngine:onUserJoined:elapsed:` 和 `rtcEngine:onUserLeave:reason:` 回调,并通过广播提示房间内所有用户。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCWarningCodeCodeUserNotifyStop = -2013, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布 WTN 流。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调,提示`kPublishStateChangeReasonNoPublishPermission` 回调。 + */ + + ByteRTCWarningCodeUserInPublish = -2014, + /** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @brief 同样 roomid 的房间已经存在了 + */ + + ByteRTCWarningCodeRoomAlreadyExist = -2015, + + /** + * + * @brief 当前正在进行回路测试,该接口调用无效 + */ + + ByteRTCWarningCodeInEchoTestMode = -2017, + /** + * + * @brief 摄像头权限异常,当前应用没有获取摄像头权限 + */ + + ByteRTCWarningCodeNoCameraPermission = -5001, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNoPermission 代替。
    + * 麦克风权限异常,当前应用没有获取麦克风权限。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNoPermission instead. + */ + + ByteRTCWarningCodeNoMicrophonePermission = -5002, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure 代替。
    + * 音频采集设备启动失败。
    + * 启动音频采集设备失败,当前设备可能被其他应用占用。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure instead. + */ + + ByteRTCWarningCodeAudioDeviceManagerRecordingStartFail = -5003, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure 代替.
    + * 音频播放设备启动失败警告。
    + * 可能由于系统资源不足,或参数错误。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure instead. + */ + + ByteRTCWarningCodeAudioDeviceManagerPlayoutStartFail = -5004, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频采集设备。
    + * 启动音频采集设备失败,请插入可用的音频采集设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound instead. + */ + + ByteRTCWarningCodeNoRecordingDevice = -5005, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频播放设备。
    + * 启动音频播放设备失败,请插入可用的音频播放设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound instead. + */ + + ByteRTCWarningCodeNoPlayoutDevice = -5006, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningCaptureSilence 代替。
    + * 当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningCaptureSilence instead. + */ + + ByteRTCWarningCodeRecordingSilence = -5007, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningOperationDenied 代替。
    + * 媒体设备误操作警告。
    + * 使用自定义采集时,不可调用内部采集开关,调用时触发此警告。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningOperationDenied instead. + */ + + ByteRTCWarningCodeMediaDeviceOperationDennied = -5008, + /** + * + * @brief 不支持在 publishScreenAudio: 之后,通过 `setScreenAudioSourceType` 设置屏幕音频采集类型 + */ + + ByteRTCWarningSetScreenAudioSourceTypeFailed = -5009, + + /** + * + * @brief 不支持在 publishScreenAudio: 之后,通过 `setScreenAudioStreamIndex` 设置屏幕音频混流类型 + */ + + ByteRTCWarningSetScreenAudioStreamIndexFailed = -5010, + /** + * + * @brief 设置语音音高不合法 + */ + + ByteRTCWarningInvalidVoicePitch = -5011, + /** + * + * @brief 外部音频源新旧接口混用 + */ + + ByteRTCWarningInvalidCallForExtAudio = -5013, + /** + * + * @brief 指定的内部渲染画布句柄无效。
    + * 当你调用 setLocalVideoCanvas:{@link #ByteRTCEngine#setLocalVideoCanvas:} 或 setRemoteVideoCanvas:withCanvas:{@link #ByteRTCEngine#setRemoteVideoCanvas:withCanvas:} 时指定了无效的画布句柄,触发此回调。 + */ + + ByteRTCWarningCodeInvalidCanvasHandle = -6001, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiAppkeyORToken = -7002, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiResourcePath = -7003, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeLoadSamiLibraryFailed = -7004, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiEffectType = -7005 +}; + +/** + * + * @type keytype + * @brief 发布状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublishState) { + /** + * + * @brief 发布成功 + */ + + ByteRTCPublishStatePublish = 0, + /** + * + * @brief 发布失败 + */ + + ByteRTCPublishStateUnpublish = 1 +}; + +/** + * + * @type keytype + * @brief 订阅状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeState) { + /** + * + * @brief 订阅成功 + */ + + ByteRTCSubscribeStateSubscribe = 0, + /** + * + * @brief 订阅失败 + */ + + ByteRTCSubscribeStateUnsubscribe = 1 +}; + +/** + * + * @type keytype + * @brief 发布状态变化原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublishStateChangeReason) { + /** + * + * @brief 用户调用发布 + */ + + ByteRTCPublishStateChangeReasonPublish = 0, + /** + * + * @brief 用户取消发布 + */ + + ByteRTCPublishStateChangeReasonUnpublish = 1, + /** + * + * @brief 发布 token 没有权限 + */ + + ByteRTCPublishStateChangeReasonNoPublishPermission = 2, + /** + * + * @brief 发布流总数超过上限 + */ + + ByteRTCPublishStateChangeReasonOverStreamPublishLimit = 3, + /** + * + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败 + */ + + ByteRTCPublishStateChangeReasonMultiRoomUnpublishFailed = 4, + /** + * + * @brief 服务器错误导致发布失败 + */ + + ByteRTCPublishStateChangeReasonPublishStreamFailed = 5, + /** + * + * @brief 观众尝试发布操作 + */ + + ByteRTCPublishStateChangeReasonPublishStreamForbidden = 6, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布。 + */ + + ByteRTCPublishStateChangeReasonUserInPublish = 7, + /** + * + * @brief 其他用户发布了相同streamid的流,导致本端发布的流被踢掉 + */ + + ByteRTCPublishStateChangeReasonStreamPublishByOther = 8, + /** + * + * @brief 流 ID 无效 + */ + + ByteRTCPublishStateChangeReasonStreamIdInvalid = 9 +}; + +/** + * + * @type keytype + * @brief 订阅状态变化原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeStateChangeReason) { + /** + * + * @brief 本端调用订阅 + */ + + ByteRTCSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 本端取消订阅 + */ + + ByteRTCSubscribeStateChangeReasonUnsubscribe = 1, + /** + * + * @brief 远端发布流 + */ + + ByteRTCSubscribeStateChangeReasonRemotePublish = 2, + /** + * + * @brief 远端取消发布流 + */ + + ByteRTCSubscribeStateChangeReasonRemoteUnpublish = 3, + /** + * + * @brief 由于服务器错误导致订阅失败。SDK 会自动重试订阅 + */ + + ByteRTCSubscribeStateChangeReasonStreamFailed5xx = 4, + /** + * + * @brief 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + ByteRTCSubscribeStateChangeReasonStreamFailed404 = 5, + /** + * + * @brief 当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + ByteRTCSubscribeStateChangeReasonOverStreamSubscribeLimit = 6, + /** + * + * @brief 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + ByteRTCSubscribeStateChangeReasonNoSubscribePermission = 7 +}; + +/** + * + * @type keytype + * @brief 性能相关告警的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPerformanceAlarmReason) { + /** + * + * @brief 网络原因差,造成了发送性能回退。仅在开启发送性能回退时,会收到此原因。 + */ + + ByteRTCPerformanceAlarmReasonBandwidthFallback = 0, + /** + * + * @brief 网络性能恢复,发送性能回退恢复。仅在开启发送性能回退时,会收到此原因。 + */ + + ByteRTCPerformanceAlarmReasonBandwidthResumed = 1, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足,且已发生发送性能回退。 + */ + + ByteRTCPerformanceAlarmReasonFallback = 2, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足已恢复;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足已恢复,且已发生发送性能回退恢复。 + */ + + ByteRTCPerformanceAlarmReasonResumed = 3, +}; + +/** + * + * @type keytype + * @brief 性能回退的模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPerformanceAlarmMode) { + /** + * + * @brief 未开启发布性能回退 + */ + + ByteRTCPerformanceAlarmModeNormal = 0, + /** + * + * @brief 已开启发布性能回退 + */ + + ByteRTCPerformanceAlarmModeSimulcast = 1, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 设置引擎工作模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMode) { + /** + * + * @brief 通用模式,该模式下只能进行普通会议模式的语音通话,开启自动发布订阅。 + */ + + ByteRTCModeGeneral = 0, + /** + * + * @brief 游戏语音模式,该模式下关闭自动发布订阅,会按照游戏业务的策略进行主动发布订阅语音。 + */ + + ByteRTCModeLocalAudio = 1, +}; +/** + * + * @type keytype + * @brief 发布端音视频流回退选项 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCPublishFallbackOption) { + /** + * + * @brief 上行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + ByteRTCPublishFallbackOptionDisabled = 0, + /** + * + * @brief 上行网络不佳或设备性能不足时,发布的视频流会从大流到小流依次降级,直到与当前网络性能匹配,具体降级规则参看[性能回退](https: + */ + + ByteRTCPublishFallbackOptionSimulcast = 1, +}; + +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use RoomConfig in joinRoom API instead. + * @type keytype + * @brief 订阅模式选项。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSubscribeMode) { + /** + * + * @brief 自动订阅模式。SDK 会自动为你订阅房间中的每一路流。 + */ + + ByteRTCSubscribeModeAuto = 0, + /** + * + * @brief 手动订阅模式。SDK 不自动订阅房间内的音视频流。你应根据需要调用 `subscribeStream` 方法手动订阅其他用户发布的音视频流。 + */ + + ByteRTCSubscribeModeManual = 1 +}; +/** + * + * @type keytype + * @brief 订阅端音视频流回退选项。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSubscribeFallbackOption) { + /** + * + * @brief 下行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + ByteRTCSubscribeFallbackOptionDisabled = 0, + /** + * + * @brief 下行网络不佳或设备性能不足时,对视频流做降级处理,具体降级规则参看[音视频流回退](https: + * 该设置仅对发布端调用 `enableSimulcastMode:` 开启发送多路流功能的情况生效。 + */ + + ByteRTCSubscribeFallbackOptionVideoStreamLow = 1, + /** + * + * @brief 下行网络不佳或设备性能不足时,先对视频流做回退处理。当网络状况不满足接收弱流时,则自动取消接收视频,仅接收音频。
    + * 该设置仅对发布端调用 `enableSimulcastMode:` 开启发送多路流功能的情况生效。 + */ + + ByteRTCSubscribeFallbackOptionAudioOnly = 2, +}; + +/** + * + * @type keytype + * @brief 远端用户优先级。在性能不足需要回退时,会先回退优先级低的用户的音视频流 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRemoteUserPriority) { + /** + * + * @brief 用户优先级为低,默认值 + */ + + ByteRTCRemoteUserPriorityLow = 0, + /** + * + * @brief 用户优先级为正常 + */ + + ByteRTCRemoteUserPriorityMedium = 100, + /** + * + * @brief 用户优先级为高 + */ + + ByteRTCRemoteUserPriorityHigh = 200, +}; + +/** + * + * @type keytype + * @brief 本地用户订阅的远端流触发回退策略的原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCFallbackOrRecoverReason) { + /** + * + * @brief 其他原因,非带宽和性能原因引起的回退或恢复。默认值 + */ + + ByteRTCFallbackOrRecoverReasonUnknown = -1, + /** + * + * @brief 由带宽不足导致的订阅端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeFallbackByBandwidth = 0, + /** + * + * @brief 由性能不足导致的订阅端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeFallbackByPerformance = 1, + /** + * + * @brief 由带宽恢复导致的订阅端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeRecoverByBandwidth = 2, + /** + * + * @brief 由性能恢复导致的订阅端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeRecoverByPerformance = 3, + /** + * + * @brief 由带宽不足导致的发布端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonPublishFallbackByBandwidth = 4, + /** + * + * @brief 由性能不足导致的发布端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonPublishFallbackByPerformance = 5, + /** + * + * @brief 由带宽恢复导致的发布端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonPublishRecoverByBandwidth = 6, + /** + * + * @brief 由性能恢复导致的发布端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonPublishRecoverByPerformance = 7, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalAudioStreamState) { + /** + * + * @brief 本地音频默认初始状态。
    + * 麦克风停止工作时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateStopped = 0, + /** + * + * @brief 本地音频录制设备启动成功。
    + * 采集到音频首帧时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateRecording = 1, + /** + * + * @brief 本地音频首帧编码成功。
    + * 音频首帧编码成功时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateEncoding = 2, + /** + * + * @brief 本地音频启动失败,在以下时机回调该状态:
    + * - 本地录音设备启动失败,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorRecordFailure + * - 检测到没有录音设备权限,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorDeviceNoPermission + * - 音频编码失败,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamError + */ + + ByteRTCLocalAudioStreamStateFailed = 3, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态改变时的错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalAudioStreamError) { + /** + * + * @brief 本地音频状态正常 + */ + + ByteRTCLocalAudioStreamErrorOk = 0, + /** + * + * @brief 本地音频出错原因未知 + */ + + ByteRTCLocalAudioStreamErrorFailure = 1, + /** + * + * @brief 没有权限启动本地音频录制设备 + */ + + ByteRTCLocalAudioStreamErrorDeviceNoPermission = 2, + /** + * + * @hidden currently not available + * @brief 本地音频录制设备已经在使用中 + * @note 该错误码暂未使用 + */ + + ByteRTCLocalAudioStreamErrorDeviceBusy = 3, + /** + * + * @brief 本地音频录制失败,建议你检查录制设备是否正常工作 + */ + + ByteRTCLocalAudioStreamErrorRecordFailure = 4, + /** + * + * @brief 本地音频编码失败 + */ + + ByteRTCLocalAudioStreamErrorEncodeFailure = 5, + /** + * + * @brief 没有可用的音频录制设备 + */ + + ByteRTCLocalAudioStreamErrorNoRecordingDevice = 6 +}; + +/** + * + * @type keytype + * @brief 本地视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoStreamState) { + /** + * + * @brief 本地视频默认初始状态
    + * 摄像头停止工作时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateStopped = 0, + /** + * + * @brief 本地视频录制设备启动成功
    + * 采集到视频首帧时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateRecording = 1, + /** + * + * @brief 本地视频首帧编码成功
    + * 本地视频首帧编码成功时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateEncoding = 2, + /** + * + * @brief 本地视频启动失败, 在以下时机回调该状态:
    + * - 本地采集设备启动失败,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorCaptureFailure + * - 检测到没有摄像头权限,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorDeviceNoPermission + * - 视频编码失败,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorEncodeFailure + */ + + ByteRTCLocalVideoStreamStateFailed = 3, +}; + +/** + * + * @type keytype + * @brief 本地视频状态改变时的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoStreamError) { + /** + * + * @brief 本地视频状态正常(本地视频状态改变正常时默认返回值) + */ + + ByteRTCLocalVideoStreamErrorOk = 0, + /** + * + * @brief 本地视频流发布失败 + */ + + ByteRTCLocalVideoStreamErrorFailure = 1, + /** + * + * @brief 没有权限启动本地视频采集设备 + */ + + ByteRTCLocalVideoStreamErrorDeviceNoPermission = 2, + /** + * + * @brief 本地视频采集设备已被占用 + */ + + ByteRTCLocalVideoStreamErrorDeviceBusy = 3, + /** + * + * @brief 本地视频采集设备不存在或已移除 + */ + + ByteRTCLocalVideoStreamErrorDeviceNotFound = 4, + /** + * + * @brief 本地视频采集失败,建议检查采集设备是否正常工作 + */ + + ByteRTCLocalVideoStreamErrorCaptureFailure = 5, + /** + * + * @brief 本地视频编码失败 + */ + + ByteRTCLocalVideoStreamErrorEncodeFailure = 6, + /** + * + * @brief 通话过程中本地视频采集设备被其他程序抢占,导致设备连接中断 + */ + + ByteRTCLocalVideoStreamErrorDeviceDisconnected = 7, +}; + +/** + * + * @type keytype + * @brief 用户订阅的远端音频流状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteAudioState) { + /** + * + * @brief 远端音频流默认初始状态,在以下时机回调该状态:
    + * - 本地用户停止接收远端音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalMuted` + * - 远端用户停止发送音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteMuted` + * - 远端用户离开房间,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteOffline` + */ + + ByteRTCRemoteAudioStateStopped = 0, + /** + * + * @brief 开始接收远端音频流首包。 + */ + + ByteRTCRemoteAudioStateStarting = 1, + /** + * + * @brief 远端音频流正在解码,正常播放,在以下时机回调该状态:
    + * - 成功解码远端音频首帧,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalUnmuted` + * - 网络由阻塞恢复正常,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonNetworkRecovery` + * - 本地用户恢复接收远端音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalUnmuted` + * - 远端用户恢复发送音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteUnmuted` + */ + + ByteRTCRemoteAudioStateDecoding = 2, + /** + * + * @brief 远端音频流卡顿。 + */ + + ByteRTCRemoteAudioStateFrozen = 3, + /** + * + * @hidden currently not available + * @brief 远端音频流播放失败 + * @note 该错误码暂未使用 + */ + + ByteRTCRemoteAudioStateFailed = 4, +}; + +/** + * + * @type keytype + * @brief 接收远端音频流状态改变的原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteAudioStateChangeReason) { + /** + * + * @brief 内部原因 + */ + + ByteRTCRemoteAudioStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + ByteRTCRemoteAudioStateChangeReasonNetworkCongestion = 1, + /** + * + * @brief 网络恢复正常 + */ + + ByteRTCRemoteAudioStateChangeReasonNetworkRecovery = 2, + /** + * + * @brief 本地用户停止接收远端音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonLocalMuted = 3, + /** + * + * @brief 本地用户恢复接收远端音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonLocalUnmuted = 4, + /** + * + * @brief 远端用户停止发送音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteMuted = 5, + /** + * + * @brief 远端用户恢复发送音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteUnmuted = 6, + /** + * + * @brief 远端用户离开房间 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteOffline = 7, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoState) { + /** + * + * @brief 远端视频流默认初始状态, 在以下时机回调该状态:
    + * - 本地用户停止接收远端视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalMuted + * - 远端用户停止发送视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteMuted + * - 远端用户离开房间,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteOffline + */ + + ByteRTCRemoteVideoStateStopped = 0, + /** + * + * @brief 本地用户已接收远端视频首包
    + * 收到远端视频首包时回调该状态,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + */ + + ByteRTCRemoteVideoStateStarting = 1, + /** + * + * @brief 远端视频流正在解码,正常播放, 在以下时机回调该状态:
    + * - 成功解码远端视频首帧,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + * - 网络由阻塞恢复正常,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonNetworkRecovery + * - 本地用户恢复接收远端视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + * - 远端用户恢复发送视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteUnmuted + */ + + ByteRTCRemoteVideoStateDecoding = 2, + /** + * + * @brief 远端视频流卡顿
    + * 网络阻塞、丢包率等原因造成视频卡顿流时会回报该状态,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonNetworkCongestion + */ + + ByteRTCRemoteVideoStateFrozen = 3, + /** + * + * @brief 远端视频流播放失败
    + * 如果内部处理远端视频流失败,则会回调该方法, 对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonInternal + */ + + ByteRTCRemoteVideoStateFailed = 4, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态改变的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoStateChangeReason) { + /** + * + * @brief 内部原因 + */ + + ByteRTCRemoteVideoStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + ByteRTCRemoteVideoStateChangeReasonNetworkCongestion = 1, + /** + * + * @brief 网络恢复正常 + */ + + ByteRTCRemoteVideoStateChangeReasonNetworkRecovery = 2, + /** + * + * @brief 本地用户停止接收远端视频流或本地用户禁用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonLocalMuted = 3, + /** + * + * @brief 本地用户恢复接收远端视频流或本地用户启用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonLocalUnmuted = 4, + /** + * + * @brief 远端用户停止发送视频流或远端用户禁用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteMuted = 5, + /** + * + * @brief 远端用户恢复发送视频流或远端用户启用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteUnmuted = 6, + /** + * + * @brief 远端用户离开房间 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteOffline = 7, +}; + +/** + * + * @type keytype + * @brief 当前媒体设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceType) { + /** + * + * @brief 未知音频设备 + */ + + ByteRTCMediaDeviceTypeAudioUnknown = -1, + /** + * + * @brief 音频渲染设备类型 + */ + + ByteRTCMediaDeviceTypeAudioRenderDevice = 0, + /** + * + * @brief 音频采集设备类型 + */ + + ByteRTCMediaDeviceTypeAudioCaptureDevice = 1, + /** + * + *@hidden currently not available + * @brief 视频渲染设备类型,该类型暂无使用 + */ + + ByteRTCMediaDeviceTypeVideoRenderDevice = 2, + /** + * + * @brief 视频采集设备类型 + */ + + ByteRTCMediaDeviceTypeVideoCaptureDevice = 3, + /** + * + * @brief 屏幕流视频设备 + */ + + ByteRTCMediaDeviceTypeScreenVideoCaptureDevice = 4, + /** + * + * @brief 屏幕流音频设备 + */ + + ByteRTCMediaDeviceTypeScreenAudioCaptureDevice = 5 +}; + +/** + * + * @type keytype + * @brief 媒体设备状态
    + * 通过 `rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:` 或 `rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:` 回调设备状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceState) { + /** + * + * @brief 设备已开启 + */ + + ByteRTCMediaDeviceStateStarted = 1, + /** + * + * @brief 设备已停止 + */ + + ByteRTCMediaDeviceStateStopped = 2, + /** + * + * @brief 设备运行时错误
    + * 例如,当媒体设备的预期行为是正常采集,但没有收到采集数据时,将回调该状态。 + */ + + ByteRTCMediaDeviceStateRuntimeError = 3, + /** + * + * @brief 设备已插入
    + * 你可以调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceStateAdded = 10, + /** + * + * @brief 设备被移除
    + * 你可以调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceStateRemoved = 11, + /** + * + * @brief 系统通话,锁屏或第三方应用打断了音视频通话。将在通话结束或第三方应用结束占用后自动恢复。 + */ + + ByteRTCMediaDeviceStateInterruptionBegan = 12, + /** + * + * @brief 音视频通话已从系统电话或第三方应用打断中恢复 + */ + + ByteRTCMediaDeviceStateInterruptionEnded = 13, + /** + * + * @hidden(iOS) + * @brief 获取设备列表超时后,收到设备列表通知。
    + * 再次调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceListUpdated = 16, + +}; + +/** + * + * @type keytype + * @brief 媒体设备错误类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceError) { + /** + * + * @brief 媒体设备正常 + */ + + ByteRTCMediaDeviceErrorOK = 0, + /** + * + * @brief 没有权限启动媒体设备 + */ + + ByteRTCMediaDeviceErrorDeviceNoPermission = 1, + /** + * + * @brief 媒体设备已经在使用中 + */ + + ByteRTCMediaDeviceErrorDeviceBusy = 2, + /** + * + * @brief 媒体设备错误 + */ + + ByteRTCMediaDeviceErrorDeviceFailure = 3, + /** + * + * @brief 未找到指定的媒体设备 + */ + + ByteRTCMediaDeviceErrorDeviceNotFound = 4, + /** + * + * @brief 媒体设备被移除 + */ + + ByteRTCMediaDeviceErrorDeviceDisconnected = 5, + /** + * + * @brief 无采集数据。当媒体设备的预期行为是正常采集,但没有收到采集数据时,将收到该错误。 + */ + + ByteRTCMediaDeviceErrorDeviceNoCallback = 6, + /** + * + * @brief 设备采样率不支持 + */ + + ByteRTCMediaDeviceErrorUNSupportFormat = 7, + /** + * + * @hidden(macOS) + * @brief iOS 屏幕采集没有 group Id 参数 + */ + + ByteRTCMediaDeviceErrorNotFindGroupId = 8, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:因用户使用系统相机,应用切换到后台运行,导致采集中断。 + */ + + ByteRTCMediaDeviceErrorNotAvailableInBackground = 9, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:可能由于其他应用占用系统相机,导致视频设备暂时不可用,从而造成采集中断。 + */ + + ByteRTCMediaDeviceErrorVideoInUseByAnotherClient = 10, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:当前应用处于侧拉、分屏或者画中画模式时,导致采集中断。 + */ + + ByteRTCMediaDeviceErrorNotAvailableWithMultipleForegroundApps = 11, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:由于系统性能不足导致中断,比如设备过热。 + */ + + ByteRTCMediaDeviceErrorNotAvailableDueToSystemPressure = 12, + /** + * + * @hidden(iOS) + * @brief 系统服务错误或长时间不响应,建议重启音频服务进程或重启设备。 + */ + + ByteRTCMediaDeviceErrorAudioServerNeedRestart = 13, +}; + +/** + * + * @type keytype + * @brief 媒体设备警告 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceWarning) { + /** + * + * @brief 无警告 + */ + + ByteRTCMediaDeviceWarningOK = 0, + /** + * + * @brief 非法设备操作。在使用外部设备时,调用了 SDK 内部设备 API。 + */ + + ByteRTCMediaDeviceWarningOperationDenied = 1, + /** + * + * @brief 采集到的数据为静音帧。 + */ + + ByteRTCMediaDeviceWarningCaptureSilence = 2, + + /** + * + * @hidden for internal use only + * @brief 音量过大,超过设备采集范围。建议降低麦克风音量或者降低声源音量。 + */ + + ByteRTCMediaDeviceWarningDetectClipping = 10, + /** + * + * @brief 通话中出现回声现象。
    + * 当 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileMeeting` 和 `ByteRTCRoomProfileMeetingRoom` ,且 AEC 关闭时,SDK 自动启动回声检测,如果检测到回声问题,将通过 `rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:` 返回本枚举值。 + */ + + ByteRTCMediaDeviceWarningDetectLeakEcho = 11, + /** + * + * @hidden for internal use only + * @brief 低信噪比 + */ + + ByteRTCMediaDeviceWarningDetectLowSNR = 12, + /** + * + * @hidden for internal use only + * @brief 采集插零现象 + */ + + ByteRTCMediaDeviceWarningDetectInsertSilence = 13, + /** + * + * @hidden for internal use only + * @brief 设备采集静音 + */ + + ByteRTCMediaDeviceWarningCaptureDetectSilence = 14, + /** + * + * @hidden for internal use only + * @brief 设备采集静音消失 + */ + + ByteRTCMediaDeviceWarningCaptureDetectSilenceDisappear = 15, + /** + * + * @brief 啸叫。触发该回调的情况如下:1)不支持啸叫抑制的房间模式下,检测到啸叫;2)支持啸叫抑制的房间模式下,检测到未被抑制的啸叫。
    + * 仅 ByteRTCRoomProfileCommunication、ByteRTCRoomProfileMeeting、ByteRTCRoomProfileMeetingRoom 三种房间模式支持啸叫抑制。
    + * 建议提醒用户检查客户端的距离或将麦克风和扬声器调至静音。 + */ + + ByteRTCMediaDeviceWarningCaptureDetectHowling = 16, + /** + * + * @hidden(macOS) + * @brief 当前 AudioScenario 不支持更改音频路由,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteInvalidScenario = 20, + /** + * + * @hidden(macOS) + * @brief 音频设备不存在,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteNotExists = 21, + /** + * + * @hidden(macOS) + * @brief 音频路由被系统或其他应用占用,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteFailedByPriority = 22, + /** + * + * @hidden(macOS) + * @brief 当前非通话模式 ByteRTCAudioScenarioCommunication,不支持设置音频路由 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteNotVoipMode = 23, + /** + * + * @hidden(macOS) + * @brief 音频设备未启动,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteDeviceNotStart = 24, + /** + * + * @hidden(macOS) + * @brief 非纯媒体音频场景,此时不支持切换蓝牙传输协议。待切换至纯媒体音频场景后生效。 + */ + + ByteRTCMediaDeviceWarningSetBluetoothModeScenarioUnsupport = 25, + /** + * + * @hidden(macOS) + * @brief 当前不支持设置 HFP。 + */ + + ByteRTCMediaDeviceWarningSetBluetoothModeUnsupport = 26 +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈问题类型 + */ + +typedef NS_OPTIONS(uint64_t, ByteRTCProblemFeedbackOption) { + /** + * + * @brief 没有问题 + */ + + ByteRTCProblemFeedbackOptionNone = 0, + /** + * + * @brief 其他问题 + */ + + ByteRTCProblemFeedbackOptionOtherMessage = (1ULL << 0), + /** + * + * @brief 连接失败 + */ + + ByteRTCProblemFeedbackOptionDisconnected = (1ULL << 1), + /** + * + * @brief 耳返延迟大 + */ + + ByteRTCProblemFeedbackOptionEarBackDelay = (1ULL << 2), + /** + * + * @brief 本端有杂音 + */ + + ByteRTCProblemFeedbackOptionLocalNoise = (1ULL << 10), + /** + * + * @brief 本端声音卡顿 + */ + + ByteRTCProblemFeedbackOptionLocalAudioLagging = (1ULL << 11), + /** + * + * @brief 本端无声音 + */ + + ByteRTCProblemFeedbackOptionLocalNoAudio = (1ULL << 12), + /** + * + * @brief 本端声音大/小 + */ + + ByteRTCProblemFeedbackOptionLocalAudioStrength = (1ULL << 13), + /** + * + * @brief 本端有回声 + */ + + ByteRTCProblemFeedbackOptionLocalEcho = (1ULL << 14), + /** + * + * @brief 本端视频模糊 + */ + + ByteRTCProblemFeedbackOptionLocalVideoFuzzy = (1ULL << 24), + /** + * + * @brief 本端音视频不同步 + */ + + ByteRTCProblemFeedbackOptionLocalNotSync = (1ULL << 25), + /** + * + * @brief 本端视频卡顿 + */ + + ByteRTCProblemFeedbackOptionLocalVideoLagging = (1ULL << 26), + /** + * + * @brief 本端无画面 + */ + + ByteRTCProblemFeedbackOptionLocalNoVideo = (1ULL << 27), + /** + * + * @brief 远端有杂音 + */ + + ByteRTCProblemFeedbackOptionRemoteNoise = (1ULL << 37), + /** + * + * @brief 远端声音卡顿 + */ + + ByteRTCProblemFeedbackOptionRemoteAudioLagging = (1ULL << 38), + /** + * + * @brief 远端无声音 + */ + + ByteRTCProblemFeedbackOptionRemoteNoAudio = (1ULL << 39), + /** + * + * @brief 远端声音大/小 + */ + + ByteRTCProblemFeedbackOptionRemoteAudioStrength = (1ULL << 40), + /** + * + * @brief 远端有回声 + */ + + ByteRTCProblemFeedbackOptionRemoteEcho = (1ULL << 41), + /** + * + * @brief 远端视频模糊 + */ + + ByteRTCProblemFeedbackOptionRemoteVideoFuzzy = (1ULL << 51), + /** + * + * @brief 远端音视频不同步 + */ + + ByteRTCProblemFeedbackOptionRemoteNotSync = (1ULL << 52), + /** + * + * @brief 远端视频卡顿 + */ + + ByteRTCProblemFeedbackOptionRemoteVideoLagging = (1ULL << 53), + /** + * + * @brief 远端无画面 + */ + + ByteRTCProblemFeedbackOptionRemoteNoVideo = (1ULL << 54) +}; + +/** + * + * @type keytype + * @brief 通话质量反馈房间信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCProblemFeedbackRoomInfo: NSObject + /** + * + * @brief 通话质量反馈的房间 ID + */ + + @property(nonatomic, copy) NSString * _Nonnull roomId; + + /** + * + * @brief 通话质量反馈的用户 ID + */ + + @property(nonatomic, copy) NSString * _Nonnull userId; +@end + +/** + * + * @type keytype + * @brief 通话质量反馈信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCProblemFeedbackInfo: NSObject + /** + * + * @brief 通话质量反馈的文字描述 + */ + + @property(nonatomic, copy) NSString * _Nonnull problemDesc; + + /** + * + * @brief 通话质量反馈的房间信息。参看 ByteRTCProblemFeedbackRoomInfo{@link #ByteRTCProblemFeedbackRoomInfo}。 + */ + + @property(nonatomic, strong) NSArray * _Nullable roomInfo; + +@end + +/** + * + * @type keytype + * @brief 首帧发送状态 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFirstFrameSendState) { + /** + * + * @brief 发送中 + */ + + ByteRTCFirstFrameSendStateSending = 0, + /** + * + * @brief 发送成功 + */ + + ByteRTCFirstFrameSendStateSent = 1, + /** + * + * @brief 发送失败 + */ + + ByteRTCFirstFrameSendStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 首帧播放状态 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFirstFramePlayState) { + /** + * + * @brief 播放中 + */ + + ByteRTCFirstFramePlayStatePlaying = 0, + /** + * + * @brief 播放成功 + */ + + ByteRTCFirstFramePlayStatePlay = 1, + /** + * + * @brief 播放失败 + */ + + ByteRTCFirstFramePlayStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 自定义加密类型 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCEncryptType) { + /** + * + * @brief 不使用内置加密。默认值。 + */ + + ByteRTCEncryptTypeCustomize = 0, + /** + * + * @brief AES-128-CBC 加密算法 + */ + + ByteRTCEncryptTypeAES128CBC = 1, + /** + * + * @brief AES-256-CBC 加密算法 + */ + + ByteRTCEncryptTypeAES256CBC = 2, + /** + * + * @brief AES-128-ECB 加密算法 + */ + + ByteRTCEncryptTypeAES128ECB = 3, + /** + * + * @brief AES-256-ECB 加密算法 + */ + + ByteRTCEncryptTypeAES256ECB = 4 +}; + +/** + * + * @type keytype + * @brief 视频编码类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCodecType) { + /** + * + * @brief 未知类型 + */ + + ByteRTCVideoCodecTypeUnknown = 0, + /** + * + * @brief 标准 H264 编码格式 + */ + + ByteRTCVideoCodecTypeH264 = 1, + /** + * + * @brief ByteVC1 编码器 + */ + + ByteRTCVideoCodecTypeByteVC1 = 2, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSuperResolutionMode) { + /** + * + * @brief 关闭超分。 + */ + + ByteRTCVideoSuperResolutionModeOff = 0, + /** + * + * @brief 开启超分。 + */ + + ByteRTCVideoSuperResolutionModeOn = 1, +}; + +/** + * + * @hidden(macOS) for internal use + * @type keytype + * @brief 视频降噪模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDenoiseMode) { + /** + * + * @brief 视频降噪关闭。 + */ + + ByteRTCVideoDenoiseModeOff = 0, + /** + * + * @brief 视频降噪开启,由 ByteRTC 后台配置视频降噪算法。 + */ + + ByteRTCVideoDenoiseModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 音视频流的发送/播放状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMuteState) { + /** + * + * @brief 发送 + */ + + ByteRTCMuteStateOff = 0, + /** + * + * @brief 停止发送 + */ + + ByteRTCMuteStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 黑帧视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSEIStreamEventType) { + /** + * + * @brief 远端用户发布黑帧视频流。
    + * 纯语音通话场景下,远端用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 发送 SEI 数据时,SDK 会自动发布一路黑帧视频流,并触发该回调。 + */ + + ByteRTCSEIStreamEventTypeStreamAdd = 0, + /** + * + * @brief 远端黑帧视频流移除。该回调的触发时机包括:
    + * - 远端用户开启摄像头采集,由语音通话切换至视频通话,黑帧视频流停止发布; + * - 远端用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 后 1min 内未有 SEI 数据发送,黑帧视频流停止发布; + * - 远端用户调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 切换至自定义视频采集时,黑帧视频流停止发布。 + */ + + ByteRTCSEIStreamEventTypeStreamRemove = 1, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamIndex) { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的视频/音频; + * - 通过自定义采集,采集到的视频/音频。 + */ + + ByteRTCStreamIndexMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。屏幕共享时共享的视频流,或来自声卡的本地播放音频流。 + */ + + ByteRTCStreamIndexScreen = 1, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex3rd, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex4th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex5th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex6th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex7th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndexMax, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人声检测结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioVADType) { + /** + * + * @brief 未检测到人声 + */ + + ByteRTCAudioVADTypeNoSpeech = 0, + /** + * + * @brief 检测到人声。 + */ + + ByteRTCAudioVADTypeSpeech = 1, +}; + +/** + * + * @valid since 3.56 + * @type keytype + * @brief 流聚合策略 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAggregationOption) { + /** + * + * @brief 流聚合向下取值 (默认策略) + */ + + ByteRTCAggregationOptionMin = 0, + /** + * + * @brief 流聚合向上取值 + */ + + ByteRTCAggregationOptionMax = 1, + /** + * + * @brief 流聚合按比例取值,比例相同时,向下取值 + */ + + ByteRTCAggregationOptionMajority = 2 +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的流类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSyncInfoStreamType) { + /** + * + * @brief 音频流 + */ + + ByteRTCSyncInfoStreamTypeAudio = 0 +}; + +/** + * + * @type keytype + * @brief 颜色空间 + */ + +typedef NS_ENUM(NSInteger, ByteRTCColorSpace) { + /** + * + * @brief 未知的颜色空间,默认使用 kColorSpaceYCbCrBT601LimitedRange 颜色空间 + */ + + ByteRTCColorSpaceUnknown = 0, + /** + * + * @brief BT.601 数字编码标准,颜色空间[16-235] + */ + + ByteRTCColorSpaceYCbCrBT601LimitedRange = 1, + /** + * + * @brief BT.601 数字编码标准,颜色空间[0-255] + */ + + ByteRTCColorSpaceYCbCrBT601FullRange = 2, + /** + * + * @brief BT.7091 数字编码标准,颜色空间[16-235] + */ + + ByteRTCColorSpaceYCbCrBT709LimitedRange = 3, + /** + * + * @brief BT.7091 数字编码标准,颜色空间[0-255] + */ + + ByteRTCColorSpaceYCbCrBT709FullRange = 4 +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamState) { + /** + * + * @brief 空闲状态
    + * - 成功调用 `stopForwardStreamToRooms` 后,所有目标房间为空闲状态。 + * - 成功调用 `updateForwardStreamToRooms` 减少目标房间后,本次减少的目标房间为空闲状态。 + */ + + ByteRTCForwardStreamStateIdle = 0, + /** + * + * @brief 开始转发
    + * - 调用 `startForwardStreamToRooms` 成功向所有房间开始转发媒体流后,返回此状态。 + * - 调用 `updateForwardStreamToRooms` 后,成功向新增目标房间开始转发媒体流后,返回此状态。 + */ + + ByteRTCForwardStreamStateSuccess = 1, + /** + * + * @brief 转发失败,失败详情参考 ByteRTCForwardStreamError{@link #ByteRTCForwardStreamError}
    + * 调用 `startForwardStreamToRooms` 或 `updateForwardStreamToRooms` 后,如遇转发失败,返回此状态。 + */ + + ByteRTCForwardStreamStateFailure = 2, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发过程中抛出的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamError) { + /** + * + * @brief 正常 + */ + + ByteRTCForwardStreamErrorOK = 0, + /** + * + * @brief 参数异常 + */ + + ByteRTCForwardStreamErrorInvalidArgument = 1201, + /** + * + * @brief Token 错误 + */ + + ByteRTCForwardStreamErrorInvalidToken = 1202, + /** + * + * @brief 服务端异常 + */ + + ByteRTCForwardStreamErrorResponse = 1203, + /** + * + * @brief 目标房间有相同 user id 的用户加入,转发中断 + */ + + ByteRTCForwardStreamErrorRemoteKicked = 1204, + /** + * + * @brief 服务端不支持转发功能 + */ + + ByteRTCForwardStreamErrorNotSupport = 1205, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发事件 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamEvent) { + /** + * + * @brief 本端与服务器网络连接断开,暂停转发。 + */ + + ByteRTCForwardStreamEventDisconnected = 0, + /** + * + * @brief 本端与服务器网络连接恢复,转发服务连接成功。 + */ + + ByteRTCForwardStreamEventConnected = 1, + /** + * + * @brief 转发中断。转发过程中,如果相同 user_id 的用户进入目标房间,转发中断。 + */ + + ByteRTCForwardStreamEventInterrupt = 2, + /** + * + * @brief 目标房间已更新,由 `updateForwardStreamToRooms` 触发。 + */ + + ByteRTCForwardStreamEventDstRoomUpdated = 3, + /** + * + * @brief API 调用时序错误。例如,在调用 `startForwardStreamToRooms` 之前调用 `updateForwardStreamToRooms` 。 + */ + + ByteRTCForwardStreamEventUnExpectAPICall = 4, +}; + +/** + * + * @type keytype + * @brief 本地录制的状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingState) { + /** + * + * @brief 录制异常 + */ + + ByteRTCRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + ByteRTCRecordingStateProcessing = 1, + /** + * + * @brief 录制文件保存成功。调用 stopFileRecording 结束录制之后会收到该状态码。或者在 stopFileRecording 之前编码分辨率发生了变化同样会回调该状态码,且 SDK内部会自动重启录制产生新的录制文件直到调用 stopFileRecording + */ + + ByteRTCRecordingStateSuccess = 2, +}; + +/** + * + * @type keytype + * @brief 本地录制错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingErrorCode) { + /** + * + * @brief 录制正常 + */ + + ByteRTCRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + ByteRTCRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 当前版本 SDK 不支持本地录制功能,请联系技术支持人员 + */ + + ByteRTCRecordingErrorCodeNotSupport = -2, + /** + * + * @brief 其他异常 + */ + + ByteRTCRecordingErrorCodeOther = -3, +}; + +/** + * + * @type keytype + * @brief 本地录制文件的存储格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingFileType) { + /** + * + * @brief aac 格式文件 + */ + + ByteRTCRecordingFileTypeAAC = 0, + /** + * + * @brief mp4 格式文件 + */ + + ByteRTCRecordingFileTypeMP4 = 1, +}; + +/** + * + * @type keytype + * @brief 音视频同步状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAVSyncState) { + /** + * + * @brief 音视频开始同步 + */ + + ByteRTCAVSyncStateAVStreamSyncBegin = 0, + /** + * + * @brief 音视频同步过程中音频移除,但不影响当前的同步关系 + */ + + ByteRTCAVSyncStateAudioStreamRemove = 1, + /** + * + * @brief 音视频同步过程中视频移除,但不影响当前的同步关系 + */ + + ByteRTCAVSyncStateVideoStreamRemove = 2, + /** + * + * @hidden for internal use only + * @brief 订阅端设置同步 + */ + + ByteRTCAVSyncStateSetAVSyncStreamId = 3, +}; + +/** + * + * @type keytype + * @brief AVSync 事件类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAVSyncEvent) { + /** + * + * @brief 音视频同步失败。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。 + */ + + ByteRTCAVSyncEventInvalidUidRepeated = 0, +}; +/** + * + * @type keytype + * @brief 音视频回路测试结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEchoTestResult) { + /** + * + * @brief 接收到采集的音视频的回放,通话回路检测成功 + */ + + ByteRTCEchoTestResultSuccess = 0, + /** + * + * @brief 测试超过 60s 仍未完成,已自动停止 + */ + + ByteRTCEchoTestResultTimeout = 1, + /** + * + * @brief 上一次测试结束和下一次测试开始之间的时间间隔少于 5s + */ + + ByteRTCEchoTestResultIntervalShort = 2, + /** + * + * @brief 音频采集异常 + */ + + ByteRTCEchoTestResultAudioDeviceError = 3, + /** + * + * @brief 视频采集异常 + */ + + ByteRTCEchoTestResultVideoDeviceError = 4, + /** + * + * @brief 音频接收异常 + */ + + ByteRTCEchoTestResultAudioReceiveError = 5, + /** + * + * @brief 视频接收异常 + */ + + ByteRTCEchoTestResultVideoReceiveError = 6, + /** + * + * @brief 内部错误,不可恢复 + */ + + ByteRTCEchoTestResultInternalError = 7 +}; + +/** + * + * @deprecated since 3.60, see rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:}. + * @type errorcode + * @brief WTN 流状态码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublicStreamErrorCode) { + /** + * + * @brief 发布或订阅成功。 + */ + + ByteRTCPublicStreamErrorCodeSuccess = 0, + /** + * + * @brief WTN 流的参数异常,请修改参数后重试。 + */ + + ByteRTCPublicStreamErrorCodePushParamError = 1191, + /** + * + * @brief 服务端状态异常,将自动重试。 + */ + + ByteRTCPublicStreamErrorCodePushStatusError = 1192, + /** + * + * @brief 内部错误,不可恢复,请重试。 + */ + + ByteRTCPublicStreamErrorCodePushInternalError = 1193, + /** + * + * @brief 发布失败,将自动重试,请关注重试结果。 + */ + + ByteRTCPublicStreamErrorCodePushError = 1195, + /** + * + * @brief 发布失败,10 s 后会重试,重试 3 次后自动停止。 + */ + + ByteRTCPublicStreamErrorCodePushTimeOut = 1196, + /** + * + * @brief 订阅失败,发布端未开始发布流。 + */ + + ByteRTCPublicStreamErrorCodePullNoPushStream = 1300, +}; +/** + * + * @type keytype + * @brief 蓝牙传输协议。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCBluetoothMode) { + /** + * + * @brief 默认采用 auto 模式,具体如下:
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    场景 HFP A2DP
    纯通话场景 蓝牙设备支持 HFP 蓝牙设备不支持 HFP
    纯媒体场景 使用蓝牙设备采集播放音频 使用 iOS 设备采集音频,蓝牙设备播放音频
    + */ + + ByteRTCBluetoothModeAuto = 0, + + /** + * + * @brief 高级音频分配配置文件(A2DP)。立体声、高音质。采用 iOS 设备进行音频采集,蓝牙设备进行播放。 + */ + + ByteRTCBluetoothModeA2DP = 1, + + /** + * + * @brief 免提配置文件(HFP)。单声道、普通音质。音频采集和播放设备都使用蓝牙设备。 + */ + + ByteRTCBluetoothModeHFP = 2 +}; +/** + * + * @type keytype + * @brief 音视频回路测试参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEchoTestConfig : NSObject +/** + * + * @brief 用于渲染接收到的视频的视图 + */ + +@property(strong, nonatomic) ByteRTCView* _Nullable view; +/** + * + * @brief 测试用户加入的房间 ID。 + */ + +@property(copy, nonatomic) NSString *_Nonnull roomId; +/** + * + * @brief 进行音视频通话回路测试的用户 ID + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 对用户进房时进行鉴权验证的动态密钥,用于保证音视频通话回路测试的安全性。 + */ + +@property(copy, nonatomic) NSString *_Nonnull token; +/** + * + * @brief 是否检测音频。检测设备为系统默认音频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备麦克风会自动开启,并在 audioReportInterval 值大于 0 时触发 `onLocalAudioPropertiesReport` 回调,你可以根据该回调判断麦克风的工作状态 + * - 若使用自定义采集,此时你需调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 将采集到的音频推送给 SDK + * - false:否 + */ + +@property(assign, nonatomic) BOOL enableAudio; +/** + * + * @brief 是否检测视频。PC 端默认检测列表中第一个视频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备摄像头会自动开启 + * - 若使用自定义采集,此时你需调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 将采集到的视频推送给 SDK + * - false:否 + * 视频的发布参数固定为:分辨率 640px × 360px,帧率 15fps。 + */ + +@property(assign, nonatomic) BOOL enableVideo; +/** + * + * @brief 音量信息提示间隔,单位:ms,默认为 100ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + +@property(assign, nonatomic) NSInteger audioReportInterval; +@end + +/** + * + * @type keytype + * @brief 用户信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCUserInfo : NSObject +/** + * + * @brief 用户 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 用户需要透传的额外的信息,字符长度限制为 200 字节。会在 `rtcRoom:onUserJoined:` 中回调给远端用户。 + */ + +@property(copy, nonatomic) NSString *_Nonnull extraInfo; +@end + +/** + * + * @type keytype + * @brief 房间通话统计数据,统计周期为 2s 。
    + * 用户进房成功后,SDK 会周期性地通过 `onRoomStats` 回调通知用户当前房间内的汇总统计信息。此数据结构即为回调给用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomStats : NSObject +/** +* + * @brief 本地用户在本次通话中的参与时长,单位为 s + */ + +@property(assign, nonatomic) NSInteger duration; +/** + * + * @brief 本地用户的总发送字节数 (bytes),累计值 + */ + +@property(assign, nonatomic) NSInteger txBytes; +/** + * + * @brief 本地用户的总接收字节数 (bytes),累计值 + */ + +@property(assign, nonatomic) NSInteger rxBytes; +/** + * + * @brief 发送码率(kbps),获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger txKbitrate; +/** + * + * @brief 接收码率(kbps),获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxKbitrate; +/** + * + * @brief 本地用户的音频发送码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger txAudioKBitrate; +/** + * + * @brief 本地用户的音频接收码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxAudioKBitrate; +/** + * + * @brief 本地用户的视频发送码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger txVideoKBitrate; +/** + * + * @brief 本地用户的视频接收码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxVideoKBitrate; +/** + * + * @brief 屏幕发送码率,获取该数据时的瞬时值,单位为 Kbps + */ + +@property(assign, nonatomic) NSInteger txScreenKBitrate; +/** + * + * @brief 屏幕接收码率,获取该数据时的瞬时值,单位为 Kbps + */ + +@property(assign, nonatomic) NSInteger rxScreenKBitrate; +/** + * + * @brief 当前房间内的可见用户人数,包括本地用户自身 + */ + +@property(assign, nonatomic) NSInteger userCount; +/** + * + * @brief App 现在的下行丢包率 + */ + +@property(assign, nonatomic) float rxLostrate; +/** + * + * @brief App 现在的上行丢包率 + */ + +@property(assign, nonatomic) float txLostrate; +/** + * + * @brief 客户端到服务端的往返时延 + */ + +@property(assign, nonatomic) NSInteger rtt; + + + + + + + + + + + + + + + + + + + + + + + +/** + * + * @hidden currently not available + * @brief 系统上行网络抖动(ms) + */ + +@property(assign, nonatomic) NSInteger txJitter; +/** + * + * @hidden currently not available + * @brief 系统下行网络抖动(ms) + */ + +@property(assign, nonatomic) NSInteger rxJitter; +/** + * + * @brief 蜂窝路径发送的码率 (kbps),为获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger txCellularKBitrate; +/** + * + * @brief 蜂窝路径接收码率 (kbps),为获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxCellularKBitrate; +@end + +/** + * + * @type keytype + * @brief 本地视频流统计信息,统计周期为 2s 。
    + * 本地用户发布视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的视频流在此次统计周期内的发送状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalVideoStats : NSObject +/** + * + * @brief 发送码率。此次统计周期内实际发送的分辨率最大的视频流的发送码率,单位为 Kbps + */ + +@property(assign, nonatomic) float sentKBitrate; +/** + * + * @brief 采集帧率。此次统计周期内的视频采集帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger inputFrameRate; +/** + * + * @brief 发送帧率。此次统计周期内实际发送的分辨率最大的视频流的视频发送帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger sentFrameRate; +/** + * + * @brief 编码器输出帧率。当前编码器在此次统计周期内实际发送的分辨率最大的视频流的输出帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger encoderOutputFrameRate; +/** + * + * @brief 本地渲染帧率。此次统计周期内的本地视频渲染帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger rendererOutputFrameRate; +/** + * + * @brief 统计间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 视频丢包率。统计周期内的视频上行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float videoLossRate; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 视频编码码率。此次统计周期内的实际发送的分辨率最大的视频流视频编码码率,单位为 Kbps 。 + */ + +@property(assign, nonatomic) NSInteger encodedBitrate; +/** + * + * @brief 实际发送的分辨率最大的视频流的视频编码宽度,单位为 px 。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameWidth; +/** + * + * @brief 实际发送的分辨率最大的视频流的视频编码高度,单位为 px 。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameHeight; +/** + * + * @brief 此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameCount; +/** + * + * @brief 编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} 类型。 + */ + +@property(nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +/** + * + * @brief 视频上行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @hidden(macOS) + * @brief 视频降噪模式。具体参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode} 。 + */ + +@property(assign, nonatomic) ByteRTCVideoDenoiseMode videoDenoiseMode; +@end + +/** + * + * @type keytype + * @brief 远端视频流统计信息,统计周期为 2s 。
    + * 本地用户订阅远端视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoStats : NSObject +/** + * + * @brief 远端视频宽度。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 远端视频高度。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 远端视频丢包率。统计周期内的视频下行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float videoLossRate; +/** + * + * @brief 接收码率。统计周期内的视频接收码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float receivedKBitrate; +/** + * + * @brief 远端视频接收帧率。 + */ + +@property(assign, nonatomic) NSInteger receivedFrameRate; +/** + * + * @brief 远端视频解码输出帧率。 + */ + +@property(assign, nonatomic) NSInteger decoderOutputFrameRate; +/** + * + * @brief 远端视频渲染输出帧率。 + */ + +@property(assign, nonatomic) NSInteger renderOutputFrameRate; +/** + * + * @brief 远端视频卡顿次数。 + */ + +@property(assign, nonatomic) NSInteger stallCount; +/** + * + * @brief 远端视频卡顿时长,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger stallDuration; +/** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger e2eDelay; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +/** + * + * @brief 统计间隔,此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,目前设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 远端用户在进房后发生视频卡顿的累计时长占视频总有效时长的百分比(%)。视频有效时长是指远端用户进房发布视频流后,除停止发送视频流和禁用视频模块之外的视频时长。 + */ + +@property(assign, nonatomic) NSInteger frozenRate; +/** + * + * @brief 编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} 类型。 + */ + +@property(nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief SDK 订阅的远端视频流的分辨率下标。 + */ + +@property(assign, nonatomic) NSInteger videoIndex; +/** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @hidden for internal use only + * @brief 远端视频超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + */ + +@property(assign, nonatomic) ByteRTCVideoSuperResolutionMode superResolutionMode; +/** + * + * @brief 用户体验级别的端到端延时。从发送端开始采集到接收端渲染完成的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger capToRenderDelay; +/** + * + * @brief 音画同步差异,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger avSyncDiffMs; +/** + * + * @brief 视频解码平均耗时,单位 ms。 + */ + +@property(assign, nonatomic) NSInteger codecElapsePerFrame; +@end + +/** + * + * @type keytype + * @brief 本地音频流统计信息,统计周期为 2s 。
    + * 本地用户发布音频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的音频流在此次统计周期内的发送状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalAudioStats : NSObject +/** + * + * @brief 音频丢包率。此次统计周期内的音频上行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float audioLossRate; +/** + * + * @brief 发送的码率。此次统计周期内的音频发送码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float sentKBitrate; +/** + * + * @brief 采集采样率。此次统计周期内的音频采集采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger recordSampleRate; +/** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 音频声道数。 + */ + +@property(assign, nonatomic) NSInteger numChannels; +/** + * + * @brief 音频发送采样率。此次统计周期内的音频发送采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger sentSampleRate; +/** + * + * @brief 音频上行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @brief 音频设备的采集和播放延时,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger audioDeviceLoopDelay; +/** + * + * @brief 音频编码帧率。 + */ + +@property(assign, nonatomic) double encodeFrameRate; +@end + +/** + * + * @type keytype + * @brief 远端音频流统计信息,统计周期为 2s 。
    + * 本地用户订阅远端音频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的音频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteAudioStats : NSObject +/** + * + * @brief 音频丢包率。统计周期内的音频下行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float audioLossRate; +/** + * + * @brief 接收码率。统计周期内的音频接收码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float receivedKBitrate; +/** + * + * @brief 音频卡顿次数。统计周期内的卡顿次数。 + */ + +@property(assign, nonatomic) NSInteger stallCount; +/** + * + * @brief 音频卡顿时长。统计周期内的卡顿时长,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger stallDuration; +/** + * + * @brief 播放采样率。统计周期内的音频播放采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger playoutSampleRate; +/** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger e2eDelay; +/** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 客户端到服务端数据传输的往返时延,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 发送端——服务端——接收端全链路数据传输往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger totalRtt; +/** + * + * @brief 远端用户发送的音频流质量。值含义参考 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} 。 + */ + +@property(assign, nonatomic) NSInteger quality; +/** + * + * @brief 因引入 jitter buffer 机制导致的延时。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger jitterBufferDelay; +/** + * + * @brief 音频声道数。 + */ + +@property(assign, nonatomic) NSInteger numChannels; +/** + * + * @brief 音频接收采样率。统计周期内接收到的远端音频采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger receivedSampleRate; +/** + * + * @brief 远端用户在加入房间后发生音频卡顿的累计时长占音频总有效时长的百分比。音频有效时长是指远端用户进房发布音频流后,除停止发送音频流和禁用音频模块之外的音频时长。 + */ + +@property(assign, nonatomic) NSInteger frozenRate; +/** + * + * @brief 音频 PLC 样点总个数。 + */ + +@property(assign, nonatomic) NSInteger concealedSamples; +/** + * + * @brief 音频丢包补偿(PLC) 累计次数。 + */ + +@property(assign, nonatomic) NSInteger concealmentEvent; +/** + * + * @brief 音频解码采样率。统计周期内的音频解码采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger decSampleRate; +/** + * + * @brief 此次订阅中,对远端音频流进行解码的累计耗时。单位为 s。 + */ + +@property(assign, nonatomic) NSInteger decDuration; +/** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @brief 音频解码帧率。 + */ + +@property(assign, nonatomic) double decodeFrameRate; +@end + +/** + * + * @type keytype + * @brief 本地音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 本地用户发布音/视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的音/视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalStreamStats : NSObject +/** + * + * @brief 本地设备发送音频流的统计信息,详见 ByteRTCLocalAudioStats{@link #ByteRTCLocalAudioStats} + */ + +@property(strong, nonatomic) ByteRTCLocalAudioStats *_Nonnull audioStats; +/** + * + * @brief 本地设备发送视频流的统计信息,详见 ByteRTCLocalVideoStats{@link #ByteRTCLocalVideoStats} + */ + +@property(strong, nonatomic) ByteRTCLocalVideoStats *_Nonnull videoStats; +/** + * + * @brief 所属用户的媒体流上行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 所属用户的媒体流下行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +@end + +/** + * + * @type keytype + * @brief 用户订阅的远端音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 订阅远端用户发布音/视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端音/视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamStats : NSObject +/** + * + * @brief 用户 ID 。音频来源的用户 ID 。 + */ + +@property(copy, nonatomic) NSString *_Nonnull uid; +/** + * + * @brief 远端音频流的统计信息,详见 ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats} + */ + +@property(strong, nonatomic) ByteRTCRemoteAudioStats *_Nonnull audioStats; +/** + * + * @brief 远端视频流的统计信息,详见 ByteRTCRemoteVideoStats{@link #ByteRTCRemoteVideoStats} + */ + +@property(strong, nonatomic) ByteRTCRemoteVideoStats *_Nonnull videoStats; +/** + * + * @brief 所属用户的媒体流上行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 所属用户的媒体流下行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +@end + +/** + * + * @type keytype + * @brief 用户信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCUser : NSObject +/** + * + * @brief 用户 ID + */ + +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 元信息 + */ + +@property(nonatomic, copy, nullable) NSString *metaData; +@end + +/** + * + * @type keytype + * @brief 用户信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamKey : NSObject +/** + * + * @brief 用户 ID + */ + +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 房间 ID + */ + +@property(nonatomic, copy, nullable) NSString *roomId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end + +#pragma mark - EncryptHandler +/** + * + * @type callback + * @brief 自定义加密接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 通话加密 + */ + +@protocol ByteRTCEncryptHandler + +@required +/** + * + * @type api + * @brief 自定义加密。
    + * 使用设定的自定义加密方式,对编码后传输前的音视频帧数据进行加密。
    + * 暂不支持对原始音视频帧进行加密。 + * @param rawData 原始音视频帧数据 + * @return 加密后的数据
    + * - 非空,表示加密后的数据 + * - 为空,表示数据被丢弃 + * @note + * - 使用此接口进行自定义加密前,你必须先设置自定义加密方式,参看 `setCustomizeEncryptHandler:`。 + * - 使用 onDecryptData:{@link #ByteRTCEncryptHandler#onDecryptData:} 对已加密的音视频帧数据进行解密。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + +- (NSData * _Nonnull) onEncryptData:(NSData * _Nonnull)rawData; + +@required +/** + * + * @type api + * @brief 自定义解密。
    + * 对自定义加密后的音视频帧数据进行解密。关于自定义加密,参看 onEncryptData:{@link #ByteRTCEncryptHandler#onEncryptData:}。 + * @param rawData 收到的已加密的音视频帧数据 + * @return 解密后的数据
    + * - 非空,表示解密后的数据 + * - 为空,表示丢弃该帧 + * @note + * - 使用此接口进行解密前,你必须先设定解密方式,参看 `setCustomizeEncryptHandler:`。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + +- (NSData * _Nonnull) onDecryptData:(NSData * _Nonnull)rawData; +@end + +#pragma mark - FileRecording + +/** + * + * @type keytype + * @brief 本地录制参数配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingConfig : NSObject +/** + * + * @brief 录制文件保存的绝对路径,需精确到文件夹,文件名由 RTC 自动生成。你需要确保对该路径具有读写权限。 + */ + +@property(strong, nonatomic) NSString* _Nullable dirPath; +/** + * + * @brief 录制存储文件格式,参看 ByteRTCRecordingFileType{@link #ByteRTCRecordingFileType} + */ + +@property(assign, nonatomic) ByteRTCRecordingFileType recordingFileType; +@end + +/** + * + * @type keytype + * @brief 本地录制进度 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingProgress : NSObject +/** + * + * @brief 当前文件的累计录制时长,单位:毫秒 + */ + +@property(assign, nonatomic) unsigned long long duration; +/** + * + * @brief 当前录制文件的大小,单位:byte + */ + +@property(assign, nonatomic) unsigned long long fileSize; +@end + +/** + * + * @type keytype + * @brief 本地录制的详细信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingInfo : NSObject +/** + * + * @brief 录制文件的绝对路径,包含文件名和文件后缀 + */ + +@property(strong, nonatomic) NSString* _Nullable filePath; +/** + * + * @brief 录制文件的视频编码类型,参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} + */ + +@property(assign, nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 录制视频的宽,单位:像素。纯音频录制请忽略该字段 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 录制视频的高,单位:像素。纯音频录制请忽略该字段 + */ + +@property(nonatomic, assign) NSInteger height; +@end + +/** + * + * @type keytype + * @brief 媒体流信息同步的相关配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamSyncInfoConfig : NSObject + +/** + * + * @brief 消息发送的重复次数,取值范围是 [0,25],建议设置为 [3,5]。 + */ + +@property(assign, nonatomic) int repeatCount; +/** + * + * @brief 媒体流信息同步的流类型,见 ByteRTCSyncInfoStreamType{@link #ByteRTCSyncInfoStreamType} 。 + */ + +@property(assign, nonatomic) ByteRTCSyncInfoStreamType streamType; +@end + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamConfiguration: NSObject + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 使用转发目标房间 RoomID 和 UserID 生成 Token。
    + * 测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。
    + * 如果 Token 无效,转发失败。 + */ + +@property(strong, nonatomic) NSString* _Nullable token; +@end + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间的状态和错误信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamStateInfo: NSObject + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID
    + * 空字符串代表所有目标房间 + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间的状态,参看 ByteRTCForwardStreamState{@link #ByteRTCForwardStreamState} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamState state; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间抛出的错误码,参看 ByteRTCForwardStreamError{@link #ByteRTCForwardStreamError} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamError error; +@end + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间发生的事件 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamEventInfo: NSObject + /** + * + * @brief 跨房间转发媒体流过程中的发生该事件的目标房间 ID
    + * 空字符串代表所有目标房间 + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间发生的事件,参看 ByteRTCForwardStreamEvent{@link #ByteRTCForwardStreamEvent} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamEvent event; +@end + +/** + * + * @type keytype + * @brief 上行/下行网络质量 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCNetworkQualityStats: NSObject +/** + * + * @brief 用户 ID + */ + +@property(strong, nonatomic) NSString* _Nonnull uid; +/** + * + * @brief 本端的上行/下行的丢包率,范围 [0.0,1.0]
    + * 当 `uid` 为本地用户时,代表发布流的上行丢包率。
    + * 当 `uid` 为远端用户时,代表接收所有订阅流的下行丢包率。 + */ + +@property(assign, nonatomic) double lossRatio; +/** + * + * @brief 当 `uid` 为本地用户时有效,客户端到服务端的往返延时(RTT),单位:ms + */ + +@property(assign, nonatomic) int rtt; +/** + * + * @brief 本端的音视频 RTP 包 2 秒内的平均传输速率,单位:bps
    + * 当 `uid` 为本地用户时,代表发送速率。
    + * 当 `uid` 为远端用户时,代表所有订阅流的接收速率。 + */ + +@property(assign, nonatomic) int totalBandwidth; +/** + * + * @brief 上行网络质量评分,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 下行网络质量评分,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +@end + +/** + * + * @type keytype + * @brief 网络时间信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCNetworkTimeInfo: NSObject +/** + * + * @brief 网络时间,单位:ms + */ + +@property(assign, nonatomic) int64_t timestamp; +@end + +#pragma mark - ByteRTCDeviceCollection +/** + * + * @hidden(iOS) + * @type api + * @brief 音视频设备相关的信息 + * @list Encryption + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDeviceCollection : NSObject +/** + * + * @type api + * @brief 获取当前音视频设备数量 + * @return 音视频设备数量 + * @list 引擎管理 + */ + +- (int)getCount; +/** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #ByteRTCDeviceCollection#getCount} 返回值。 + * @param deviceName 设备名称 + * @param deviceID 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + +- (int)getDevice:(int)index DeviceName:(NSString * _Nonnull * _Nonnull)deviceName DeviceID:(NSString * _Nonnull * _Nonnull) deviceID; +@end + +/** + * + * @type keytype + * @brief 音频 dump 状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioDumpStatus){ + /** + * + * @brief 音频 dump 启动失败 + */ + + ByteRTCAudioDumpStartFailure = 0, + /** + * + * @brief 音频 dump 启动成功 + */ + + ByteRTCAudioDumpStartSuccess = 1, + /** + * + * @brief 音频 dump 停止失败 + */ + + ByteRTCAudioDumpStopFailure = 2, + /** + * + * @brief 音频 dump 停止成功 + */ + + ByteRTCAudioDumpStopSuccess = 3, + /** + * + * @brief 音频 dump 运行失败 + */ + + ByteRTCAudioDumpRunningFailure = 4, + /** + * + * @brief 音频 dump 运行成功 + */ + + ByteRTCAudioDumpRunningSuccess = 5, +}; + + +/** + * + * @type keytype + * @brief 通话前探测的停止原因
    + * `rtcEngine:onNetworkDetectionStopped:` 回调的参数类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkDetectionStopReason) { + /** + * + * @brief 用户主动停止。 + */ + + ByteRTCNetworkDetectionStopReasonUser = 0, + /** + * + * @brief 探测超过三分钟。 + */ + + ByteRTCNetworkDetectionStopReasonTimeout = 1, + /** + * + * @brief 探测网络连接断开。
    + * 当超过 12s 没有收到回复,SDK 将断开网络连接,并且不再尝试重连。 + */ + + ByteRTCNetworkDetectionStopReasonConnectionLost = 2, + /** + * + * @brief 本地开始推拉流,停止探测。 + */ + + ByteRTCNetworkDetectionStopReasonStreaming = 3, + /** + * + * @brief 网络探测失败,内部异常 + */ + + ByteRTCNetworkDetectionStopReasonInnerErr = 4, +}; + +/** + * + * @type errorcode + * @brief 开始探测的返回值
    + * `startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:` 返回对象类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCNetworkDetectionStartReturn) { + /** + * + * @brief 成功开始探测。 + */ + + ByteRTCNetworkDetectionStartReturnSuccess = 0, + /** + * + * @brief 开始探测失败。参数错误,上下行探测均为 `false`,或期望带宽超过了范围 [100,10000] + */ + + ByteRTCNetworkDetectionStartReturnParamErr = 1, + /** + * + * @brief 开始探测失败。失败原因为,本地已经开始推拉流 + */ + + ByteRTCNetworkDetectionStartReturnStreaming = 2, + /** + * + * @brief 已经开始探测,无需重复开启 + */ + + ByteRTCNetworkDetectionStartReturnStarted = 3, + /** + * + * @brief 不支持该功能 + */ + + ByteRTCNNetworkDetectionStartReturnNotSupport = 4, +}; + +/** + * + * @type keytype + * @brief 通话前探测链接的类型
    + * `rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:` 回调的参数类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkDetectionLinkType) { + /** + * + * @brief 上行网络探测。 + */ + + ByteRTCNetworkDetectionLinkTypeUp = 0, + /** + * + * @brief 下行网络探测。 + */ + + ByteRTCNetworkDetectionLinkTypeDown = 1, +}; + +/** + * + * @type keytype + * @brief 通话前回声检测结果 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCHardwareEchoDetectionResult) { + /** + * + * @brief 主动调用 `stopHardwareEchoDetection` 结束流程时,未有回声检测结果。 + */ + + ByteRTCHardwareEchoDetectionCanceled = 0, + /** + * + * @brief 未检测出结果。建议重试,如果仍然失败请联系技术支持协助排查。 + */ + + ByteRTCHardwareEchoDetectionUnknown = 1, + /** + * + * @brief 无回声 + */ + + ByteRTCHardwareEchoDetectionNormal = 2, + /** + * + * @brief 有回声。可通过 UI 建议用户使用耳机设备入会。 + */ + + ByteRTCHardwareEchoDetectionPoor = 3, +}; + +/** + * + * @type keytype + * @brief 音频选路优先级设置 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCAudioSelectionPriority) { + /** + * + * @brief 正常,参加音频选路 + */ + + ByteRTCAudioSelectionPriorityNormal = 0, + /** + * + * @brief 高优先级,跳过音频选路 + */ + + ByteRTCAudioSelectionPriorityHigh = 1 +}; + +/** + * + * @type keytype + * @brief 设置房间附加消息结果。 + */ + +typedef NS_ENUM(NSInteger,ByteRTCSetRoomExtraInfoResult) { + /** + * + * @brief 设置房间附加信息成功 + */ + + ByteRTCSetRoomExtraInfoResultSuccess = 0, + /** + * + * @brief 设置失败,尚未加入房间 + */ + + ByteRTCSetRoomExtraInfoResultNotJoinRoom = -1, + /** + * + * @brief 设置失败,key 指针为空 + */ + + ByteRTCSetRoomExtraInfoResultKeyIsNull = -2, + /** + * + * @brief 设置失败,value 指针为空 + */ + + ByteRTCSetRoomExtraInfoResultValueIsNull = -3, + /** + * + * @brief 设置失败,未知错误 + */ + + ByteRTCSetRoomExtraInfoResultUnknow = -99, + /** + * + * @brief 设置失败,key 长度为 0 + */ + + ByteRTCSetRoomExtraInfoResultKeyIsEmpty = -400, + /** + * + * @brief 调用 `setRoomExtraInfo` 过于频繁,建议不超过 10 次/秒。 + */ + + ByteRTCSetRoomExtraInfoResultTooOften = -406, + /** + * + * @brief 设置失败,用户已调用 `setUserVisibility` 将自身设为隐身状态。 + */ + + ByteRTCSetRoomExtraInfoResultSilentUser = -412, + /** + * + * @brief 设置失败,Key 长度超过 10 字节 + */ + + ByteRTCSetRoomExtraInfoResultKeyTooLong = -413, + /** + * + * @brief 设置失败,value 长度超过 128 字节 + */ + + ByteRTCSetRoomExtraInfoResultValueTooLong = -414, + /** + * + * @brief 设置失败,服务器错误 + */ + + ByteRTCSetRoomExtraInfoResultServerError = -500 +}; +/** + * + * @type keytype + * @hidden internal use only + * @brief 特效错误类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEffectErrorType) { + /** + * + * @hidden 仅用于会议 + * @brief 虚拟背景设置错误。 + */ + + ByteRTCEffectErrorVirtualBackgroundFailure = 1, + /** + * + * @hidden 仅用于会议 + * @brief 特效独立进程崩溃。 + */ + + ByteRTCEffectErrorChildProcTerminate = 2 +}; + +#pragma mark - ByteRTCSubtitle +/** + * + * @type keytype + * @brief 字幕任务状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleState) { + /** + * + * @brief 开启字幕。 + */ + + ByteRTCSubtitleStateStarted = 0, + /** + * + * @brief 关闭字幕。 + */ + + ByteRTCSubtitleStateStoped = 1, + /** + * + * @brief 字幕任务出现错误。 + */ + + ByteRTCSubtitleStateError = 2 +}; +/** + * + * @type keytype + * @brief 字幕模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleMode) { + /** + * + * @brief 识别模式。在此模式下,房间内用户语音会被转为文字。 + */ + + ByteRTCSubtitleModeRecognition = 0, + /** + * + * @brief 翻译模式。在此模式下,房间内用户语音会先被转为文字,再被翻译为目标语言。 + */ + + ByteRTCSubtitleModeTranslation = 1 +}; +/** + * + * @type errorcode + * @brief 字幕任务错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleErrorCode) { + /** + * + * @brief 客户端无法识别云端媒体处理发送的错误码。 + */ + + ByteRTCSubtitleErrorCodeUnknow = -1, + /** + * + * @brief 字幕已开启。 + */ + + ByteRTCSubtitleErrorCodeSuccess = 0, + /** + * + * @brief 云端媒体处理内部出现错误,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodePostProcessError = 1, + /** + * + * @brief 第三方服务连接失败,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodeASRConnectionError = 2, + /** + * + * @brief 第三方服务内部出现错误,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodeASRServiceError = 3, + /** + * + * @brief 未进房导致调用`startSubtitle`失败。请加入房间后再调用此方法。 + */ + + ByteRTCSubtitleErrorCodeBeforeJoinRoom = 4, + /** + * + * @brief 字幕已开启,无需重复调用 `startSubtitle`。 + */ + + ByteRTCSubtitleErrorCodeAlreadyOn = 5, + /** + * + * @brief 用户选择的目标语言目前暂不支持。 + */ + + ByteRTCSubtitleErrorCodeUnsupportedLanguage = 6, + /** + * + * @brief 云端媒体处理超时未响应,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodePostProcessTimeout = 7 +}; +/** + * + * @type keytype + * @brief 字幕配置信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubtitleConfig : NSObject +/** + * + * @brief 字幕模式。可以根据需要选择识别和翻译两种模式。开启识别模式,会将识别后的用户语音转化成文字;开启翻译模式,会在语音识别后进行翻译。参看 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode}。 + */ + +@property(assign, nonatomic) ByteRTCSubtitleMode mode; +/** + * + * @brief 目标翻译语言。可点击 [语言支持](https: + */ + +@property(copy, nonatomic) NSString *_Nonnull targetLanguage; +@end +/** + * + * @type keytype + * @brief 字幕具体内容。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubtitleMessage : NSObject +/** + * + * @brief 说话者的用户 ID。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 语音识别或翻译后的文本, 采用 UTF-8 编码。 + */ + +@property(copy, nonatomic) NSString *_Nonnull text; +/** + * + * @brief 字幕语种,根据字幕模式为原文或译文对应的语种。 + */ + +@property(copy, nonatomic) NSString *_Nonnull language; +/** + * + * @brief 字幕模式,参看 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode}。 + */ + +@property(assign, nonatomic) NSInteger mode; +/** + * + * @brief 语音识别或翻译后形成的文本的序列号,同一发言人的完整发言和不完整发言会按递增顺序单独分别编号。 + */ + +@property(assign, nonatomic) NSInteger sequence; +/** + * + * @brief 语音识别出的文本是否为一段完整的一句话。 True 代表是, False 代表不是。 + */ + +@property(assign, nonatomic) BOOL definite; +@end + +/** + * + * @hidden + * @type keytype + * @brief 死锁时的相关报错 + * @hidden internal use only + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDeadLockMsg : NSObject +/** + * + * @brief session_id + */ + +@property (nonatomic, strong) NSString* _Nonnull blockSessionId; +/** + * + * @brief 死锁线程等待链 + */ + +@property (nonatomic, strong) NSString* _Nonnull blockingPaths; +/** + * + * @brief 是否卡住 rtc 主线程 + */ + +@property(nonatomic) BOOL isCritical ; +@end + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 字幕模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioAEDType) { + /** + * + * @brief 未检测到音乐场景 + */ + + ByteRTCAudioAEDTypeNoMusic = 0, + /** + * + * @brief 检测到音乐场景。 + */ + + ByteRTCAudioAEDTypeMusic = 1 +}; + + +/** + * + * @type keytype + * @brief 游戏房间类型 + */ + +typedef NS_ENUM(NSInteger, GameRoomType) { + /** + * + * @brief 小队房间 + */ + + GameRoomTypeTeam = 0, + /** + * + * @brief 世界房间 + */ + + GameRoomTypeWorld = 1, +}; + +/** + * + * @type keytype + * @brief 流信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamInfo : NSObject +/** + * + * @brief 流 ID + */ + +@property(nonatomic) NSString * _Nonnull streamId; +/** + * + * @brief 用户 ID + */ + +@property(nonatomic) NSString * _Nonnull userId; +/** + * + * @brief 房间 ID + */ + +@property(nonatomic) NSString * _Nonnull roomId; +/** + * + * @brief 流索引 + */ + +@property(nonatomic, assign) NSInteger streamIndex; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +@end + + +/** + * + * @type keytype + * @brief 游戏场景类型 + */ + +typedef NS_ENUM(NSInteger, GameSceneType) { + /** + * + * @brief 普通场景。
    + * 同一个小队房间的队友,仅支持在同一个世界房间内通话。 + */ + + GameSceneTypeNormal = 0, + /** + * + * @brief 主题公园场景。
    + * 同一个小队房间的队友,支持跨世界房间通话。 + */ + + GameSceneTypeThemePark = 1, +}; + +/** + * + * @type keytype + * @brief 创建游戏房间参数 + */ + +BYTERTC_APPLE_EXPORT @interface GameRoomConfig: NSObject +/** + * + * @type keytype + * @brief 游戏房间类型,参看 GameRoomType{@link #GameRoomType},默认为 `GAME_RTC_ROOM_TYPE_TEAM`(小队房间),进房后不可更改。 + */ + +@property(assign, nonatomic) GameRoomType gameRoomType; +/** + * + * @type keytype + * @brief 游戏场景类型,参看 GameSceneType{@link #GameSceneType},默认为 `GAME_SCENE_TYPE_NORMAL`(普通场景),进房后不可更改。 + */ + +@property(assign, nonatomic) GameSceneType gameSceneType; +@end + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h new file mode 100644 index 0000000..f4bfbe8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h @@ -0,0 +1,431 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCMediaPlayer +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief 本地音频文件混音的音频帧观察者。 + * @list + */ + +@protocol ByteRTCMediaPlayerAudioFrameObserver +/** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param playerId 播放器 ID + * @param audioFrame 参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @list 混音 + */ + +- (void)onFrame:(int)playerId audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; + +@end +/** + * + * @type callback + * @brief ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 对应的回调句柄。你必须调用 setEventHandler:{@link #ByteRTCMediaPlayer#setEventHandler:} 完成设置后,才能收到对应回调。 + * @list Audio Mixing + */ + +@protocol ByteRTCMediaPlayerEventHandler +/** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param state 混音状态。参考 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @param error 错误码。参考 ByteRTCPlayerError{@link #ByteRTCPlayerError}。 + * @list 混音 + */ + +-(void)onMediaPlayerStateChanged:(int)playerId state:(ByteRTCPlayerState)state error:(ByteRTCPlayerError)error; +/** + * + * @type callback + * @brief 播放进度周期性回调。回调周期通过 setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval:} 设置。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param progress 进度。单位 ms。 + * @list 混音 + */ + +-(void)onMediaPlayerPlayingProgress:(int)playerId progress:(int64_t)progress; +/** + * + * @valid since 3.59 + * @type callback + * @brief 播放事件回调。调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 和 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 后,会触发此回调。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param event 播放器事件。参看 ByteRTCPlayerEvent{@link #ByteRTCPlayerEvent}。 + * @param message 事件描述信息,可能为空。 + * @list 混音 + */ + +-(void)onMediaPlayerEvent:(int)playerId event:(ByteRTCPlayerEvent)event message:(NSString*_Nullable)message; + +@end +/** + * + * @valid since 3.53 + * @type api + * @brief 音乐播放器
    + * 调用 setEventHandler:{@link #ByteRTCMediaPlayer#setEventHandler:} 设置回调句柄以获取相关回调。 + * @list Audio Mixing + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayer :NSObject +/** + * + * @type api + * @brief 打开音乐文件。
    + * 一个播放器实例仅能够同时打开一个音乐文件。如果需要同时打开多个音乐文件,请创建多个音乐播放器实例。
    + * 要播放 PCM 格式的音频数据,参看 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:}。`openWithCustomSource` 和此 API 互斥。 + * @param filePath 音乐文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 详见 ByteRTCMediaPlayerConfig{@link #ByteRTCMediaPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 混音 + */ + +- (int)open:(NSString *_Nullable)filePath config:(ByteRTCMediaPlayerConfig *_Nullable)config; +/** + * + * @type api + * @brief 播放音乐。你仅需要在调用 open:config:{@link #ByteRTCMediaPlayer#open:config:},且未开启自动播放时,调用此方法。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 要播放 PCM 格式的音频数据,参看 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:}。`openWithCustomSource` 和此 API 互斥。 + * - 调用本方法播放音频文件后,可调用 stop{@link #ByteRTCMediaPlayer#stop} 方法暂停播放。 + * @list 混音 + */ + +- (int)start; +/** + * + * @type api + * @brief 启动音频裸数据混音。
    + * 要播放音乐文件,参看 open:config:{@link #ByteRTCMediaPlayer#open:config:}。`open` 与此 API 互斥。 + * @param source 数据源,详见 ByteRTCMediaPlayerCustomSource{@link #ByteRTCMediaPlayerCustomSource} + * @param config 详见 ByteRTCMediaPlayerConfig{@link #ByteRTCMediaPlayerConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法启动后,再调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 推送音频数据,才会开始混音。 + * - 如要结束 PCM 音频数据混音,调用 stop{@link #ByteRTCMediaPlayer#stop}。 + * @list 混音 + */ + +- (int)openWithCustomSource:(ByteRTCMediaPlayerCustomSource *_Nullable)source config:(ByteRTCMediaPlayerConfig *_Nullable)config; +/** + * + * @type api + * @brief 调用 open:config:{@link #ByteRTCMediaPlayer#open:config:}, start{@link #ByteRTCMediaPlayer#start}, 或 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 开始播放后,可以调用本方法停止。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 混音 + */ + +- (int)stop; +/** + * + * @type api + * @brief 调用 open:config:{@link #ByteRTCMediaPlayer#open:config:},或 start{@link #ByteRTCMediaPlayer#start} 开始播放音频文件后,调用本方法暂停播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法暂停播放后,可调用 resume{@link #ByteRTCMediaPlayer#resume} 恢复播放。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)pause; +/** + * + * @type api + * @brief 调用 pause{@link #ByteRTCMediaPlayer#pause} 暂停音频播放后,调用本方法恢复播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)resume; +/** + * + * @type api + * @brief 调节指定混音的音量大小,包括音乐文件混音和 PCM 混音。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @param type 详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * @list 混音 + */ + +- (int)setVolume:(int)volume type:(ByteRTCAudioMixingType)type; +/** + * + * @type api + * @brief 获取当前音量 + * @param type 详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}。 + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在音频播放进行状态时,调用此方法。包括音乐文件混音和 PCM 混音。 + * @list 混音 + */ + +- (int)getVolume:(ByteRTCAudioMixingType)type; +/** + * + * @type api + * @brief 获取音乐文件时长。 + * @return + * - >0: 成功, 音乐文件时长,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getTotalDuration; +/** + * + * @type api + * @brief 获取混音音乐文件的实际播放时长,单位为毫秒。 + * @return + * - >0: 实际播放时长。 + * - < 0: 失败。 + * @note + * - 实际播放时长指的是歌曲不受停止、跳转、倍速、卡顿影响的播放时长。例如,若歌曲正常播放到 1:30 时停止播放 30s 或跳转进度到 2:00, 随后继续正常播放 2 分钟,则实际播放时长为 3 分 30 秒。 + * - 仅在音频播放进行状态,且 setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval:} 设置间隔大于 `0` 时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getPlaybackDuration; +/** + * + * @type api + * @brief 获取音乐文件播放进度。 + * @return + * - >0: 成功, 音乐文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getPosition; +/** + * + * @valid since 3.59 + * @type api + * @brief 获取播放器状态 + * @return 播放器当前状态,参看 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @note 仅在音频实例创建后,调用此方法。 + * @list 混音 + */ + +- (ByteRTCPlayerState)getState; +/** + * + * @type api + * @brief 开启变调功能,多用于 K 歌场景。 + * @param pitch 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音乐文件混音,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setAudioPitch:(int)pitch; +/** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param position 音乐文件起始播放位置,单位为毫秒。
    + * 你可以通过 getTotalDuration{@link #ByteRTCMediaPlayer#getTotalDuration} 获取音乐文件总时长,position 的值应小于音乐文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 调用本接口后,会收到 onMediaPlayerEvent:event:message:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerEvent:event:message:} 回调。 + * @list 混音 + */ + +- (int)setPosition:(int)position; +/** + * + * @type api + * @brief 设置当前音乐文件的声道模式 + * @param mode 声道模式。默认的声道模式和源文件一致,详见 ByteRTCAudioMixingDualMonoMode{@link #ByteRTCAudioMixingDualMonoMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setAudioDualMonoMode:(ByteRTCAudioMixingDualMonoMode)mode; +/** + * + * @type api + * @brief 获取当前音乐文件的音轨数 + * @return + >= 0:成功,返回当前音乐文件的音轨数 + * - < 0:方法调用失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getAudioTrackCount; +/** + * + * @type api + * @brief 指定当前音乐文件的播放音轨 + * @param index 指定的播放音轨,从 0 开始,取值范围为 `[0, getAudioTrackCount()-1]`。
    + * 设置的参数值需要小于 getAudioTrackCount{@link #ByteRTCMediaPlayer#getAudioTrackCount} 的返回值 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * - 调用本接口后,会收到 onMediaPlayerEvent:event:message:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerEvent:event:message:} 回调。 + * @list 混音 + */ + +- (int)selectAudioTrack:(int)index; +/** + * + * @type api + * @brief 设置播放速度 + * @param speed 播放速度与原始文件速度的比例,单位:%,取值范围为 `[50,200]`,默认值为 100。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件可用,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setPlaybackSpeed:(int)speed; +/** + * + * @type api + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress:progress:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerPlayingProgress:progress:} 的间隔。 + * @param interval 时间间隔,单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setProgressInterval:(int64_t)interval; +/** + * + * @type api + * @brief 如果你需要使用 enableVocalInstrumentBalance:{@link #ByteRTCEngine#enableVocalInstrumentBalance:} 对音频文件/PCM 音频数据设置音量均衡,你必须通过此接口传入其原始响度。 + * @param loudness 原始响度,单位:lufs,取值范围为 `[-70.0, 0.0]`。
    + * 当设置的值小于 -70.0lufs 时,则默认调整为 -70.0lufs,大于 0.0lufs 时,则不对该响度做音量均衡处理。默认值为 1.0lufs,即不做处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件和音频裸数据播放都可用。 + * @list 混音 + */ + +- (int)setLoudness:(float)loudness; +/** + * + * @type api + * @brief 注册回调句柄以在本地音乐文件混音时,收到相关回调。 + * @param observer 参看 ByteRTCMediaPlayerAudioFrameObserver{@link #ByteRTCMediaPlayerAudioFrameObserver}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)registerAudioFrameObserver:(_Nullable id)observer; +/** + * + * @type api + * @brief 推送用于混音的 PCM 音频帧数据 + * @param audioFrame 音频帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。
    + * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return + * - 0: 成功 + * - < 0: 失败 + * @note + * - 调用该方法前,须通过 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 启动外部音频流混音。 + * - 使用参考建议:首次推送数据,请在应用侧先缓存一定数据(如 200 毫秒),然后一次性推送过去;此后的推送操作定时 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * - 如果要暂停播放,暂停推送即可。 + * @list 混音 + */ + +- (int)pushExternalAudioFrame:(ByteRTCAudioFrame *_Nullable)audioFrame; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 ByteRTCMediaPlayerEventHandler{@link #ByteRTCMediaPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + +- (int)setEventHandler:(_Nullable id)handler; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h new file mode 100644 index 0000000..b06e87c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief range audio interface + */ + +#pragma once + +#import +#import "ByteRTCAudioDefines.h" + +/** + * + * @type keytype + * @brief 空间音频音量随距离衰减模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAttenuationType) { + /** + * + * @brief 不随距离衰减 + */ + + ByteRTCAttenuationTypeNone = 0, + /** + * + * @brief 线性衰减,音量随距离增大而线性减小 + */ + + ByteRTCAttenuationTypeLinear = 1, + /** + * + * @brief 指数型衰减,音量随距离增大进行指数衰减 + */ + + ByteRTCAttenuationTypeExponential = 2 +}; + +/** + * + * @type keytype + * @brief 本地用户能收听到、且具有衰减效果的音频接收范围 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCReceiveRange : NSObject +/** + * + * @brief 能够接收语音、并且具有衰减效果的最小距离值,该值须 ≥ 0,但 ≤ max。
    + * 小于该值的范围内没有范围语音效果,即收听到的音频音量相同。 + */ + +@property(nonatomic, assign) int min; +/** + * + * @brief 能够收听语音的最大距离值,该值须 > 0 且 ≥ min。
    + * 当收听者和声源距离处于 [min, max) 之间时,收听到的音量根据距离呈衰减效果。
    + * 超出该值范围的音频将无法收听到。 + */ + +@property(nonatomic, assign) int max; +@end +/** + * + * @type api + * @brief 范围语音接口实例 + * @list + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRangeAudio :NSObject +/** + * + * @type api + * @brief 开启/关闭范围语音功能。
    + * 范围语音是指,在同一 RTC 房间中设定的音频接收距离范围内,本地用户收听到的远端用户音频音量会随着远端用户的靠近/远离而放大/衰减;若远端用户在房间内的位置超出设定范围,则本地用户无法接收其音频。音频接收范围设置参看 updateReceiveRange:{@link #ByteRTCRangeAudio#updateReceiveRange:}。 + * @param enable 是否开启范围语音功能:
    + * - YES: 开启 + * - NO: 关闭(默认) + * @note 该方法进房前后都可调用,为保证进房后范围语音效果的平滑切换,你需在该方法前先调用 updatePosition:{@link #ByteRTCRangeAudio#updatePosition:} 设置自身位置坐标,然后开启该方法收听范围语音效果。 + * @list 高级功能 + */ + +- (void)enableRangeAudio:(BOOL)enable; +/** + * + * @type api + * @brief 更新本地用户的音频收听范围。 + * @param range 音频收听范围,参看 ByteRTCReceiveRange{@link #ByteRTCReceiveRange}。 + * @return 方法调用结果:
    + * - 0:成功; + * - !0: 失败。 + * @list 高级功能 + */ + +- (int)updateReceiveRange:(ByteRTCReceiveRange* _Nonnull) range; +/** + * + * @type api + * @brief 更新本地用户在房间内空间直角坐标系中的位置坐标。 + * @param pos 三维坐标的值,默认为 [0, 0, 0],参看 ByteRTCPosition{@link #ByteRTCPosition}. + * @return 方法调用结果:
    + * - 0:成功; + * - !0:失败。 + * @note 调用该接口更新坐标后,你需调用 enableRangeAudio:{@link #ByteRTCRangeAudio#enableRangeAudio:} 开启范围语音功能以收听范围语音效果。 + * @list 高级功能 + */ + +- (int)updatePosition:(ByteRTCPosition* _Nonnull) pos; +/** + * + * @type api + * @brief 设置范围语音的音量衰减模式。 + * @param type 音量衰减模式。默认为线性衰减。详见 ByteRTCAttenuationType{@link #ByteRTCAttenuationType}。 + * @param coefficient 指数衰减模式下的音量衰减系数,默认值为 1。范围 [0.1,100],推荐设置为 `50`。数值越大,音量的衰减速度越快。 + * @return 调用是否成功
    + * - `0`:调用成功 + * - `-1`:调用失败。原因为在调用 enableRangeAudio:{@link #ByteRTCRangeAudio#enableRangeAudio:} 开启范围语音前或进房前调用本接口 + * @note 音量衰减范围通过 updateReceiveRange:{@link #ByteRTCRangeAudio#updateReceiveRange:} 进行设置。 + * @list 高级功能 + */ + +- (int)setAttenuationModel:(ByteRTCAttenuationType) type coefficient:(float)coefficient; +/** + * + * @type api + * @brief 添加标签组,用于标记相互之间通话不衰减的用户组。
    + * 在同一个 RTC 房间中,如果多个用户的标签组之间有交集,那么,他们之间互相通话时,通话不衰减。
    + * 比如,用户身处多个队伍,队伍成员间通话不衰减。那么,可以为每个队伍绑定专属标签,每个用户的标签组包含用户所属各个队伍的标签。 + * @param flags 标签组。 + * @list 高级功能 + */ + +- (void) setNoAttenuationFlags:(NSArray *_Nonnull)flags; + +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h new file mode 100644 index 0000000..e950d2b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h @@ -0,0 +1,1183 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Common Defines +*/ + +#import +#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR +#import +typedef UIView ByteRTCView; +typedef UIImage ByteRTCImage; +#elif TARGET_OS_MAC +#import +typedef NSView ByteRTCView; +typedef NSImage ByteRTCImage; +#endif + +#ifdef __APPLE__ +#define _BYTERTC_PLATFORM_APPLE 1 +#include +#if TARGET_OS_IPHONE +#define _BYTERTC_PLATFORM_MAC 0 +#define _BYTERTC_PLATFORM_IOS 1 +#elif TARGET_IPHONE_SIMULATOR +#define _BYTERTC_PLATFORM_MAC 0 +#define _BYTERTC_PLATFORM_IOS 1 +#elif TARGET_OS_MAC +#define _BYTERTC_PLATFORM_MAC 1 +#define _BYTERTC_PLATFORM_IOS 0 +#else +#error "Unknown Apple platform" +#endif +#endif + +#define BYTERTC_TARGET_MAC (_BYTERTC_PLATFORM_MAC == 1) +#define BYTERTC_TARGET_IOS (_BYTERTC_PLATFORM_IOS == 1) + +#define BYTERTC_APPLE_EXPORT __attribute__((visibility("default"))) + + +/** + * + * @type keytype + * @hidden currently not available + */ + +typedef NS_ENUM(NSInteger, ByteRTSReturnStatus) { + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusSuccess = 0, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusFailure = -1, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusParameterErr = -2, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusWrongState = -3, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusHasInRoom = -4, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusHasInLogin = -5, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusRoomIdInUse = -8, +}; + + +/** + * + * @type keytype + * @brief 远端用户离开房间的原因。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCUserOfflineReason) { + /** + * + * @brief 远端用户调用 `leaveRoom` 方法主动退出房间。 + */ + + ByteRTCUserOfflineReasonQuit = 0, + /** + * + * @brief 远端用户因网络等原因掉线。 + */ + + ByteRTCUserOfflineReasonDropped = 1, + /** + * + * @brief 远端用户切换至隐身状态。 + */ + + ByteRTCUserOfflineReasonSwitchToInvisible = 2, + /** + * + * @brief 远端用户被踢出房间。
    + * 因调用踢出用户的 OpenAPI,远端用户被踢出房间。 + */ + + ByteRTCUserOfflineReasonKickedByAdmin = 3, +}; + +/** + * + * @type keytype + * @brief SDK 与信令服务器连接状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCConnectionState) { + /** + * + * @brief 连接断开超过 12s,此时 SDK 会尝试自动重连。 + */ + + ByteRTCConnectionStateDisconnected = 1, + /** + * + * @brief 首次请求建立连接,正在连接中。 + */ + + ByteRTCConnectionStateConnecting = 2, + /** + * + * @brief 首次连接成功。 + */ + + ByteRTCConnectionStateConnected = 3, + /** + * + * @brief 涵盖了以下情况:
    + * - 首次连接时,10 秒连接不成功; + * - 连接成功后,断连 10 秒。自动重连中。 + */ + + ByteRTCConnectionStateReconnecting = 4, + /** + * + * @brief 连接断开后,重连成功。 + */ + + ByteRTCConnectionStateReconnected = 5, + /** + * + * @brief 处于 `ByteRTCConnectionStateDisconnected` 状态超过 10 秒,且期间重连未成功。SDK 仍将继续尝试重连。 + */ + + ByteRTCConnectionStateLost = 6, + /** + * + * @brief 连接失败,服务端状态异常。SDK 不会自动重连,请重新进房,或联系技术支持。 + */ + + ByteRTCConnectionStateFailed = 7, +}; + +/** + * + * @type keytype + * @brief SDK 网络连接类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCNetworkType) { + /** + * + * @brief 网络连接类型未知。 + */ + + ByteRTCNetworkTypeUnknown = -1, + /** + * + * @brief 网络连接已断开。 + */ + + ByteRTCNetworkTypeDisconnected = 0, + /** + * + * @brief 网络连接类型为 LAN 。 + */ + + ByteRTCNetworkTypeLAN = 1, + /** + * + * @brief 网络连接类型为 Wi-Fi(包含热点)。 + */ + + ByteRTCNetworkTypeWIFI = 2, + /** + * + * @brief 网络连接类型为 2G 移动网络。 + */ + + ByteRTCNetworkTypeMobile2G = 3, + /** + * + * @brief 网络连接类型为 3G 移动网络。 + */ + + ByteRTCNetworkTypeMobile3G = 4, + /** + * + * @brief 网络连接类型为 4G 移动网络。 + */ + + ByteRTCNetworkTypeMobile4G = 5, + /** + * + * @brief 网络连接类型为 5G 移动网络。 + */ + + ByteRTCNetworkTypeMobile5G = 6, +}; + +/** + * + * @type keytype + * @brief 媒体流网络质量。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkQuality) { + /** + * + * @brief 网络质量未知。 + */ + + ByteRTCNetworkQualityUnknown = 0, + /** + * + * @brief 网络质量极好。 + */ + + ByteRTCNetworkQualityExcellent = 1, + /** + * + * @brief 主观感觉和 kNetworkQualityExcellent 差不多,但码率可能略低。 + */ + + ByteRTCNetworkQualityGood = 2, + /** + * + * @brief 主观感受有瑕疵但不影响沟通。 + */ + + ByteRTCNetworkQualityPoor = 3, + /** + * + * @brief 勉强能沟通但不顺畅。 + */ + + ByteRTCNetworkQualityBad = 4, + /** + * + * @brief 网络质量非常差,基本不能沟通。 + */ + + ByteRTCNetworkQualityVeryBad = 5, + /** + * + * @brief 网络连接断开,无法通话。网络可能由于 12s 内无应答、开启飞行模式、拔掉网线等原因断开。
    + * 更多网络状态信息参见 [连接状态提示](https: + */ + + ByteRTCNetworkQualityDown = 6, +}; + +/** + * + * @type errorcode + * @brief 回调错误码。
    + * SDK 内部遇到不可恢复的错误时,会通过 `rtcEngine:onError:` 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTSErrorCode) { + /** + * + * @brief Token 无效。
    + * 进房时使用的 Token 无效或过期失效。需要用户重新获取 Token,并调用
    + * `updateToken:` 方法更新 Token。 + */ + + ByteRTSErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTSErrorCodeJoinRoom = -1001, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间 + */ + + ByteRTSErrorCodeDuplicateLogin = -1004, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间 + */ + + ByteRTSErrorCodeKickedOut = -1006, + + /** + * + * @brief 当调用 `createRtcRoom:` ,如果 roomId 非法,会返回 null,并抛出该错误 + */ + + ByteRTSErrorCodeRoomIdIllegal = -1007, + + /** + * + * @brief Token 过期。调用 `joinRoomByKey:roomId:userInfo:rtcRoomConfig:` 使用新的 Token 重新加入房间。 + */ + + ByteRTSErrorCodeTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效 + */ + + ByteRTSErrorCodeUpdateTokenWithInvalidToken = -1010, + + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。 + */ + + ByteRTSErrorCodeRoomDismiss = -1011, + + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了 + */ + + ByteRTSErrorRoomAlreadyExist = -1013, + + /** + * + * @brief 加入多个房间时使用了不同的 uid。
    + * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + ByteRTSErrorUserIDDifferent = -1014, + + /** + * + * @brief 服务端异常状态导致退出房间。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTSErrorCodeAbnormalServerStatus = -1084, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅作通知。 + */ + +typedef NS_ENUM(NSInteger, ByteRTSWarningCode) { + /** + * + * @brief 进房失败。
    + * 初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + ByteRTSWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + ByteRTSWarningCodePublishStreamFailed = -2002, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误,当前代码中未使用。 + */ + + ByteRTSWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + ByteRTSWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + ByteRTSWarningCodeSendCustomMessage = -2011, + /** + * + * @hidden + * @deprecated since 3.46 and will be deleted in 3.52. + * @brief 同样 roomid 的房间已经存在了 + */ + + ByteRTSWarningCodeRoomAlreadyExist = -2015, + + /** + * + * @brief 新生成的房间已经替换了同样 roomId 的旧房间 + */ + + ByteRTSWarningCodeOldRoomBeenReplaced = -2016 +}; + +/** + * + * @type keytype + * @brief 日志级别。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLogLevel) { + /** + * + * @brief 打印 trace 级别及以上级别信息。 + */ + + ByteRTCLogLevelTrace, + /** + * + * @brief 打印 debug 级别及以上级别信息。 + */ + + ByteRTCLogLevelDebug, + /** + * + * @brief 打印 info 级别及以上级别信息。 + */ + + ByteRTCLogLevelInfo, + /** + * + * @brief 打印 warning 级别及以上级别信息。 + */ + + ByteRTCLogLevelWarning, + /** + * + * @brief 打印 error 级别信息。 + */ + + ByteRTCLogLevelError, +}; + +/** + * + * @type errorcode + * @brief 登录结果
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录的结果,会通过 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLoginErrorCode) { + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法登录成功。 + */ + + ByteRTCLoginErrorCodeSuccess = 0, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时使用的 Token 无效或过期失效。需要用户重新获取 Token。 + */ + + ByteRTCLoginErrorCodeInvalidToken = -1000, + /** + * + * @brief 登录错误
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时发生未知错误导致登录失败。需要用户重新登录。 + */ + + ByteRTCLoginErrorCodeLoginFailed = -1001, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时传入的用户 ID 有问题。 + */ + + ByteRTCLoginErrorCodeInvalidUserId = -1002, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录时服务器错误。 + */ + + ByteRTCLoginErrorCodeServerError = -1003, +}; + +/** + * + * @type keytype + * @brief 用户登出的原因 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLogoutReason) { + /** + * + * @brief 用户主动退出
    + * 用户调用 `logout` 接口登出,或者销毁引擎登出。 + */ + + ByteRTCLogoutReasonLogout = 0, + /** + * + * @brief 用户被动退出
    + * 另一个用户以相同 UserId 进行了 `login`,导致本端用户被踢出。 + */ + + ByteRTCLogoutReasonDuplicateLogin = 1, +}; + +/** + * + * @type keytype + * @brief 发送消息的可靠有序类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMessageConfig) { + /** + * + * @brief 低延时可靠有序消息 + */ + + ByteRTCMessageConfigReliableOrdered = 0, + /** + * + * @brief 超低延时有序消息 + */ + + ByteRTCMessageConfigUnreliableOrdered = 1, + /** + * + * @brief 超低延时无序消息 + */ + + ByteRTCMessageConfigUnreliableUnordered = 2, +}; + +/** + * + * @type errorcode + * @brief 发送消息结果,成功或失败,及失败原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserMessageSendResult) { + /** + * + * @brief 发送消息成功。 + */ + + ByteRTCUserMessageSendResultSuccess = 0, + /** + * + * @brief 消息发送失败。发送超时。 + */ + + ByteRTCUserMessageSendResultTimeout = 1, + /** + * + * @brief 消息发送失败。连接断开,消息未发出。 + */ + + ByteRTCUserMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 消息发送失败。找不到接收方。 + */ + + ByteRTCUserMessageSendResultNoReceiver = 3, + /** + * + * @brief 消息发送失败。远端用户没有登录或进房。 + */ + + ByteRTCUserMessageSendResultNoRelayPath = 4, + /** + * + * @brief 消息发送失败。超过 QPS 限制。 + */ + + ByteRTCUserMessageSendResultExceedQPS = 5, + /** + * + * @brief 消息发送失败。应用服务器未收到客户端发送的消息。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + ByteRTCUserMessageSendResultE2BSSendFailed = 17, + /** + * + * @brief 消息发送失败。应用服务器接收到了客户端发送的消息,但响应失败。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + ByteRTCUserMessageSendResultE2BSReturnFailed = 18, + /** + * + * @brief 消息发送失败。消息发送方没有加入房间。 + */ + + ByteRTCUserMessageSendResultNotJoin = 100, + /** + * + * @brief 消息发送失败。连接未完成初始化。 + */ + + ByteRTCUserMessageSendResultInit = 101, + /** + * + * @brief 消息发送失败。没有可用的数据传输通道连接。 + */ + + ByteRTCUserMessageSendResultNoConnection = 102, + /** + * + * @brief 消息发送失败。消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + ByteRTCUserMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 消息发送失败。接收方用户 ID 为空。 + */ + + ByteRTCUserMessageSendResultEmptyUser = 104, + /** + * + * @brief 消息发送失败。房间外或应用服务器消息发送方没有登录。 + */ + + ByteRTCUserMessageSendResultNotLogin = 105, + /** + * + * @brief 消息发送失败。发送消息给业务方服务器之前没有设置参数。 + */ + + ByteRTCUserMessageSendResultServerParamsNotSet = 106, + /** + * + * @brief 失败,未知错误。 + */ + + ByteRTCUserMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief 用户在线状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserOnlineStatus) { + /** + * + * @brief 对端用户离线
    + * 对端用户已经调用 `logout`,或者没有调用 login:uid:{@link #ByteRTCEngine#login:uid:} 进行登录 + */ + + ByteRTCUserOnlineStatusOffline = 0, + /** + * + * @brief 对端用户在线
    + * 对端用户调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录,并且连接状态正常 + */ + + ByteRTCUserOnlineStatusOnline = 1, + /** + * + * @brief 无法获取对端用户在线状态
    + * 发生级联错误、对端用户在线状态异常时返回 + */ + + ByteRTCUserOnlineStatusUnreachable = 2, +}; + +/** + * + * @type errorcode + * @brief 房间内广播消息发送结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomMessageSendResult) { + /** + * + * @brief 消息发送成功 + */ + + ByteRTCRoomMessageSendResultSuccess = 200, + /** + * + * @brief 发送超时,没有发送 + */ + + ByteRTCRoomMessageSendResultTimeout = 1, + /** + * + * @brief 通道断开,没有发送 + */ + + ByteRTCRoomMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 超过 QPS 限制 + */ + + ByteRTCRoomMessageSendResultExceedQPS = 5, + /** + * + * @brief 失败,发送方未加入房间 + */ + + ByteRTCRoomMessageSendResultNotJoin = 100, + /** + * + * @brief 失败,连接未完成初始化。 + */ + + ByteRTCRoomMessageSendResultInit = 101, + /** + * + * @brief 失败,没有可用的连接。 + */ + + ByteRTCRoomMessageSendResultNoConnection = 102, + /** + * + * @brief 消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + ByteRTCRoomMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 失败,未知错误。 + */ + + ByteRTCRoomMessageSendResultUnknown = 1000, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief SDK 的服务器环境。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEnv) { + /** + * + * @brief 线上环境。 + */ + + ByteRTCEnvProduct = 0, + /** + * + * @brief BOE 环境。 + */ + + ByteRTCEnvBOE = 1, + /** + * + * @brief 测试环境。 + */ + + ByteRTCEnvTest = 2, +}; + +/** + * + * @type keytype + * @brief 本地日志输出等级。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalLogLevel) { + /** + * + * @brief 信息级别。 + */ + + ByteRTCLocalLogLevelInfo = 0, + /** + * + * @brief (默认值)警告级别。 + */ + + ByteRTCLocalLogLevelWarning = 1, + /** + * + * @brief 错误级别。 + */ + + ByteRTCLocalLogLevelError = 2, + /** + * + * @brief 关闭日志。 + */ + + ByteRTCLocalLogLevelNone = 3 +}; + +/** + * + * @type keytype + * @brief App 使用的 cpu 和 memory 信息
    + * 信息由 SDK 周期性(2s)地通过 `reportSysStats` 回调事件通知给用户。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSysStats : NSObject +/** + * + * @brief 当前系统 cpu 核数 + */ + +@property(assign, nonatomic) unsigned int cpuCores; +/** + * + * @brief 当前应用的 CPU 使用率,取值范围为 [0, 1]。 + */ + +@property(assign, nonatomic) double cpuAppUsage; +/** + * + * @hidden currently not available + * @brief 当前系统的 CPU 使用率,取值范围为 [0, 1]。 + */ + +@property(assign, nonatomic) double cpuTotalUsage; +/** + * + * @brief 当前 App 的内存使用(单位 MB) + */ + +@property(assign, nonatomic) double memoryUsage; +/** + * + * @brief 全量内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long fullMemory; +/** + * + * @brief 系统已使用内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long totalMemoryUsage; +/** + * + * @brief 空闲可分配内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long freeMemory; +/** + * + * @brief 当前应用的内存使用率(单位 %) + */ + +@property(assign, nonatomic) double memoryRatio; +/** + * + * @brief 系统内存使用率(单位 %) + */ + +@property(assign, nonatomic) double totalMemoryRatio; +@end + +/** + * + * @type keytype + * @brief 本地日志参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLogConfig : NSObject +/** + * + * @brief 日志存储路径,必填。 + */ + +@property(copy, nonatomic) NSString *_Nonnull logPath; + +/** + * + * @brief 日志等级,参看 ByteRTCLocalLogLevel{@link #ByteRTCLocalLogLevel},默认为警告级别,选填。 + */ + +@property(assign, nonatomic) ByteRTCLocalLogLevel logLevel; + +/** + * + * @brief 日志文件最大占用的总空间,单位为 MB,选填。取值范围为 1~100 MB,默认值为 10 MB。
    + * 若 `logFileSize` < 1,取 1 MB。若 `logFileSize` > 100,取 100 MB。
    + * 其中,单个日志文件最大为 2 MB:
    + *
    • 若 1 ≤ logFileSize ≤ 2,则会生成一个日志文件。
    • 若 logFileSize > 2,假设 logFileSize/2 的整数部分为 N,则前 N 个文件,每个文件会写满 2 MB,第 N+1 个文件大小不超过 logFileSize mod 2,否则会删除最老的文件,以此类推。
    + */ + +@property(assign, nonatomic) int logFileSize; + +/** + * + * @brief 日志文件名前缀,选填。该字符串必须符合正则表达式:[a-zA-Z0-9_@\-\.]{1,128}。
    + * 最终的日志文件名为`前缀 + "_" + 文件创建时间 + "_rtclog".log`,如 `logPrefix_2023-05-25_172324_rtclog.log`。 + */ + +@property(copy, nonatomic) NSString *_Nonnull logFilenamePrefix; +@end + +/** + * + * @hidden for internal use only + * @type callback + * @brief 非业务相关的监控事件回调 + */ + +@protocol ByteRTCMonitorDelegate +@optional +/** + * + * @type callback + * @brief 埋点日志回调 + * @param data
    + * 具体的埋点内容 + * @param type
    + * 埋点的类型 + */ + +- (void)onMonitorLog:(NSDictionary * _Nullable)data withType:(NSString * _Nullable)type; + +/** + * + * @type api + * @brief 是否进行控制台输出 + * @return + * 返回是否进行控制台输出
    + * - YES 输出所有的日志到控制台 + * - NO 不输出任何控制台信息 + */ + +- (BOOL)isConsole; + +/** + * + * @type callback + * @brief 输出更多的调试信息。 + * @param level 日志等级,参看 ByteRTCLogLevel{@link #ByteRTCLogLevel}。 + * @param filename 日志文件名称。 + * @param tag 日志标签。 + * @param line 行数 + * @param funcName 函数名称 + * @param format 格式 + */ + +- (void)onVerboseLogWithLevel:(ByteRTCLogLevel)level + filename:(NSString * _Nonnull)filename + tag:(NSString * _Nonnull)tag + line:(int)line + functionName:(NSString * _Nonnull)funcName + format:(NSString * _Nonnull)format; +@end + +/** + * + * @type keytype + * @brief 云代理信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCCloudProxyInfo: NSObject +/** + * + * @type keytype + * @brief 云代理服务器 IP + */ + +@property(strong, nonatomic) NSString* _Nonnull cloudProxyIp; +/** + * + * @type keytype + * @brief 云代理服务器端口 + */ + +@property(assign, nonatomic) int cloudProxyPort; +@end + +/** + * + * @type keytype + * @brief 本地代理的类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyType) { + /** + * + * @brief Socks5 代理。选用此代理服务器,需满足 Socks5 协议标准文档的要求。 + */ + + ByteRTCLocalProxyTypeSocks5 = 1, + /** + * + * @brief Http 隧道代理。 + */ + + ByteRTCLocalProxyTypeHttpTunnel = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理配置详细信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalProxyInfo : NSObject +/** + * + * @brief 本地代理的类型,参看 ByteRTCLocalProxyType{@link #ByteRTCLocalProxyType}。 + */ + +@property(assign, nonatomic) ByteRTCLocalProxyType localProxyType; +/** + * + * @type keytype + * @brief 本地代理服务器 IP。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyIp; +/** + * + * @type keytype + * @brief 本地代理服务器端口。 + */ + +@property(assign, nonatomic) int localProxyPort; + /** + * + * @type keytype + * @brief 本地代理用户名。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyUsername; + /** + * + * @brief 本地代理密码。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyPassword; +@end + +/** + * + * @type keytype + * @brief 本地代理连接状态。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyState) { + /** + * + * @brief TCP 代理服务器连接成功。 + */ + + ByteRTCLocalProxyStateInited = 0, + + /** + * + * @brief 本地代理连接成功。 + */ + + ByteRTCLocalProxyStateConnected = 1, + + /** + * + * @brief 本地代理连接出现错误。 + */ + + ByteRTCLocalProxyStateError = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理错误。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyError) { + /** + * + * @brief 本地代理服务器无错误。 + */ + + ByteRTCLocalProxyErrorOK = 0, + + /** + * + * @brief 代理服务器回复的版本号不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5VersionError = 1, + + /** + * + * @brief 代理服务器回复的格式错误不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5FormatError = 2, + + /** + * + * @brief 代理服务器回复的字段值不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5InvalidValue = 3, + + /** + * + * @brief 未提供代理服务器的用户名及密码,导致 Socks5 代理连接失败。请重新调用 `setLocalProxy`,在设置本地代理时填入用户名和密码。 + */ + + ByteRTCLocalProxyErrorSocks5UserPassNotGiven = 4, + + /** + * + * @brief TCP 关闭,导致 Socks5 代理连接失败。请检查网络或者代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5TcpClosed = 5, + + /** + * + * @brief Http 隧道代理错误。请检查 Http 隧道代理服务器或者网络是否存在异常。 + */ + + ByteRTCLocalProxyErrorHttpTunnelFailed = 6, +}; + +/** + * + * @type keytype + * @brief 创建引擎参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEngineConfig: NSObject +/** + * + * @brief 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 + */ + +@property(copy, nonatomic) NSString* _Nonnull appID; + +/** + * + * @brief 是否是游戏场景。 + */ + +@property(assign, nonatomic) BOOL isGameScene; + +/** + * + * @brief 私有参数。如需使用请联系技术支持人员。 + */ + +@property(copy, nonatomic) NSDictionary* _Nullable parameters; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h new file mode 100644 index 0000000..548c8c0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. +*/ + +#pragma once + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +#define BYTE_RTC_EXPORT __attribute__((visibility("default"))) +/** + * + * @type callback + * @brief 屏幕采集相关扩展协议,仅适用于 SDK 内部采集。
    + * 用户创建 extension 后生成的 SampleHandler 需继承此协议以实现屏幕共享相关能力。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +BYTE_RTC_EXPORT @protocol ByteRtcScreenCapturerExtDelegate +/** + * + * @type api + * @brief 通知 Broadcast Upload Extension 停止采集屏幕并退出。 + * @note iOS 端调用 stopScreenCapture{@link #ByteRTCEngine#stopScreenCapture},或 macOS 端调用 stopScreenVideoCapture{@link #ByteRTCEngine#stopScreenVideoCapture},会触发该方法通知 extension 端的 SDK 停止屏幕采集。 + * @list 视频管理 + */ + +- (void)onQuitFromApp; +/** + * + * @type api + * @brief Socket 收到 App 侧发来的信息时,触发该回调 + * @param message App 侧发送的消息 + * @list 视频管理 + */ + +- (void)onReceiveMessageFromApp:(NSData *)message; +/** + * + * @type api + * @brief Socket 连接断开时触发此回调 + * @list 视频管理 + */ + +- (void)onSocketDisconnect; +/** + * + * @type api + * @brief Socket 连接成功时触发此回调 + * @list 视频管理 + */ + +- (void)onSocketConnect; +/** + * + * @type api + * @brief 检测到 App 正在进行音视频通话时触发此回调。 + * @list 视频管理 + */ + +- (void)onNotifyAppRunning; +@end + +/** + * + * @type keytype + * @brief 屏幕采集相关扩展实例,仅适用于 SDK 内部采集。
    + * 用户创建 extension 后生成的 SampleHandler 需通过此实例实现屏幕共享相关能力。 + */ + +BYTE_RTC_EXPORT @interface ByteRtcScreenCapturerExt : NSObject +/** + * + * @type keytype + * @brief 只读变量,用于获取 ByteRtcScreenCapturerExt 实例。 + */ + +@property (readonly, class) ByteRtcScreenCapturerExt *shared; +/** + * + * @type keytype + * @brief ByteRtcScreenCapturerExt 实例的回调代理。 + */ + +@property (nonatomic, weak, nullable) NSObject *delegate; +/** + * + * @type api + * @brief 开始屏幕采集
    + * Extension 启动后,系统将自动调用该方法开启屏幕采集。 + * @param delegate 回调代理,参看 ByteRtcScreenCapturerExtDelegate{@link #ByteRtcScreenCapturerExtDelegate} + * @param groupId App groups 中配置的 group ID + * @list 视频管理 + */ + +- (void)startWithDelegate:(NSObject *)delegate groupId:(NSString *)groupId; +/** + * + * @type api + * @brief 结束屏幕采集
    + * Extension 关闭后,系统将自动调用该方法停止屏幕采集。 + * @list 视频管理 + */ + +- (void)stop; +/** + * + * @type api + * @brief 推送 Extension 采集的数据 + * @param sampleBuffer 采集到的数据 + * @param sampleBufferType 数据类型 + * @list 视频管理 + */ + +- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType API_AVAILABLE(ios(10)); +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h new file mode 100644 index 0000000..28d841d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h @@ -0,0 +1,145 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCAudioMixingManager +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief K 歌评分事件回调类。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCSingScoringDelegate +@required +/** + * + * @type callback + * @brief 实时评分信息回调。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 后,会收到该回调。 + * @param info 实时评分信息。详见 ByteRTCSingScoringRealtimeInfo{@link #ByteRTCSingScoringRealtimeInfo}。 + * @list 在线 KTV + */ + +- (void)onCurrentScoringInfo:(ByteRTCSingScoringRealtimeInfo * _Nullable)info; +@end +/** + * + * @type api + * @brief K 歌评分管理接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringManager :NSObject +/** + * + * @type api + * @brief 初始化 K 歌评分。 + * @param singScoringAppkey K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param singScoringToken K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param delegate K 歌评分事件回调类,详见 ByteRTCSingScoringDelegate{@link #ByteRTCSingScoringDelegate}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note 输入正确的鉴权信息才可以使用 K 歌评分相关的功能,鉴权方式为离线鉴权,根据包名(bundleID)绑定 Appkey 及 Token,K 歌评分密钥请联系技术支持人员申请。 + * @list 在线 KTV + */ + +-(int)initSingScoring:(NSString * _Nullable)singScoringAppkey + singScoringToken:(NSString * _Nullable)singScoringToken + delegate:(id _Nullable)delegate; +/** + * + * @type api + * @brief 设置 K 歌评分参数。 + * @param config K 歌评分的各项参数,详见 ByteRTCSingScoringConfig{@link #ByteRTCSingScoringConfig}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @list 在线 KTV + */ + +-(int)setSingScoringConfig:(ByteRTCSingScoringConfig * _Nullable)config; +/** + * + * @type api + * @brief 获取标准音高数据。 + * @param midiFilepath 歌曲 midi 文件路径。 + * @return ByteRTCStandardPitchInfo{@link #ByteRTCStandardPitchInfo} 标准音高数据数组。 + * @note + * - 请保证此接口传入的 midi 文件路径与 setSingScoringConfig:{@link #ByteRTCSingScoringManager#setSingScoringConfig:} 接口中传入的路径一致。 + * @list 在线 KTV + */ + +-(NSArray * _Nullable)getStandardPitchInfo:(NSString* _Nullable)midiFilepath; +/** + * + * @type api + * @brief 开始 K 歌评分。 + * @param position 开始评分时,音乐的播放进度,单位:ms。 + * @param scoringInfoInterval 实时回调的时间间隔,单位:ms;默认 50 ms。最低间隔为 20 ms。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note + * - 在调用 initSingScoring:singScoringToken:delegate:{@link #ByteRTCSingScoringManager#initSingScoring:singScoringToken:delegate:} 初始化 K 歌评分功能后调用该接口。 + * - 调用该接口后,将会根据设置的回调时间间隔,收到评分结果 onCurrentScoringInfo:{@link #ByteRTCSingScoringDelegate#onCurrentScoringInfo:} 回调。 + * - 如果使用 `ByteRTCMediaPlayer` 播放伴奏,请在收到 onMediaPlayerStateChanged:state:error:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerStateChanged:state:error:} 回调且播放状态为 ByteRTCPlayerStatePlaying 后,调用此接口。 + * @list 在线 KTV + */ + +-(int)startSingScoring:(int)position + scoringInfoInterval:(int)scoringInfoInterval; +/** + * + * @type api + * @brief 停止 K 歌评分。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 在线 KTV + */ + +-(int)stopSingScoring; +/** + * + * @type api + * @brief 获取上一句的演唱评分。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 开始评分后可以调用该接口。 + * @return + * - <0:获取评分失败。 + * - >=0:上一句歌词的演唱评分。 + * @list 在线 KTV + */ + +-(int)getLastSentenceScore; +/** + * + * @type api + * @brief 获取当前演唱总分。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 开始评分后可以调用该接口。 + * @return + * - <0:获取总分失败。 + * - >=0:当前演唱总分。 + * @list 在线 KTV + */ + + -(int)getTotalScore; + /** + * + * @type api + * @brief 获取当前演唱歌曲的平均分。 + * @return + * - <0:获取平均分失败。 + * - >=0:当前演唱平均分。 + * @list 在线 KTV + */ + +-(int)getAverageScore; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h new file mode 100644 index 0000000..94cf1cb --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief spatial audio interface + */ + +#pragma once + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type api + * @brief 空间音频接口实例 + * @list + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSpatialAudio : NSObject +/** + * + * @type api + * @brief 开启/关闭空间音频功能。 + * @param enable 是否开启空间音频功能:
    + * - YES:开启 + * - NO:关闭(默认) + * @note 该方法仅开启空间音频功能,你须调用 updateSelfPosition:{@link #ByteRTCSpatialAudio#updateSelfPosition:} 设置自身位置坐标后方可收听空间音频效果。空间音频相关 API 和调用时序详见[空间音频](https: + * @list 音频处理 + */ + +- (void)enableSpatialAudio:(BOOL)enable; +/** + * + * @type api + * @brief 关闭本地用户朝向对本地用户发声效果的影响。
    + * 调用此接口后,房间内的其他用户收听本地发声时,声源都在收听者正面。 + * @note + * - 调用本接口关闭朝向功能后,在当前的空间音频实例的生命周期内无法再次开启。 + * - 调用此接口不影响本地用户收听朝向的音频效果。要改变本地用户收听朝向,参看 updateSelfPosition:{@link #ByteRTCSpatialAudio#updateSelfPosition:} 和 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:}。 + * @list 高级功能 + */ + +-(void)disableRemoteOrientation; +/** + * + * @valid since 3.52 + * @type api + * @brief 设置本地用户在自建空间直角坐标系中的收听坐标和收听朝向,以实现本地用户预期的空间音频收听效果。 + * @param positionInfo 空间音频位置信息。参看 ByteRTCPositionInfo{@link #ByteRTCPositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验本地用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在进房后调用。 + * - 调用该接口更新坐标前,你需调用 enableSpatialAudio:{@link #ByteRTCSpatialAudio#enableSpatialAudio:} 开启空间音频功能。空间音频相关 API 和调用时序详见[空间音频](https: + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + +-(int)updateSelfPosition:(ByteRTCPositionInfo* _Nonnull)positionInfo; +/** + * + * @valid since 3.52 + * @type api + * @brief 设置房间内某一远端用户在本地用户自建的空间音频坐标系中的发声位置和发声朝向,以实现本地用户预期的空间音频收听效果。 + * @param uid 用户 ID + * @param positionInfo 远端用户的空间音频位置信息。参看 ByteRTCPositionInfo{@link #ByteRTCPositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验远端用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * 该方法需在创建房间后调用。
    + * 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 音频管理 + */ + +-(int)updateRemotePosition:(NSString * _Nonnull)uid + positionInfo:(ByteRTCPositionInfo* _Nonnull)positionInfo; +/** + * + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:} 为某一远端用户设置的空间音频效果。 + * @param uid 远端用户 ID。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + +-(int)removeRemotePosition:(NSString * _Nonnull)uid; +/** + * + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:} 为所有远端用户设置的空间音频效果。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + +-(int)removeAllRemotePosition; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h new file mode 100644 index 0000000..967a779 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h @@ -0,0 +1,5660 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Video Defines +*/ + +#import "ByteRTCAudioDefines.h" +#import "ByteRTCMediaDefines.h" + +#pragma mark - ByteRTCVideoSource +/** + * + * @type keytype + * @hidden + * @brief 视频源。预留参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSource : NSObject + +@end + +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRenderMode) { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + ByteRTCRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + ByteRTCRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + ByteRTCRenderModeFill = 3, +}; + +/** + * + * @type keytype + * @brief 视频流类型
    + * 目前 C++ SDK 只支持 ByteRTCVideoStreamTypeHigh 类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamType) { + /** + * + * @brief 高分辨率视频流 + */ + + ByteRTCVideoStreamTypeHigh = 0, + /** + * + * @brief 低分辨率视频 + */ + + ByteRTCVideoStreamTypeLow = 1, +}; + +/** + * + * @type keytype + * @brief 设置本地视频属性的返回状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamState) { + /** + * + * @brief 设置本地视频属性成功 + */ + + ByteRTCVideoStreamStateSuccess = 0, + /** + * + * @brief 本地视频属性参数不合法 + */ + + ByteRTCVideoStreamStateInvalid = -2, +}; + +/** + * + * @type keytype + * @brief 视频输出方向模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoOutputOrientationMode) { + /** + * + * @brief 自适应布局 + */ + + ByteRTCVideoOutputOrientationModeAdaptative = 0, + /** + * + * @brief 横屏布局 + */ + + ByteRTCVideoOutputOrientationModeFixedLandscape = 1, + /** + * + * @brief 竖屏布局 + */ + + ByteRTCVideoOutputOrientationModeFixedPortrait = 2, +}; + +/** + * + * @type keytype + * @brief 视频帧朝向 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoOrientation) { + /** + * + * @brief (默认)使用相机输出的原始视频帧的角度,不对视频帧进行额外旋转。 + */ + + ByteRTCVideoOrientationAdaptive = 0, + /** + * + * @brief 固定为竖屏,将相机采集到的视频帧转换为竖屏,在整个 RTC 链路中传递竖屏帧。 + */ + + ByteRTCVideoOrientationPortrait = 1, + /** + * + * @brief 固定为横屏,将相机采集到的视频帧转换为横屏,在整个 RTC 链路中传递横屏帧。 + */ + + ByteRTCVideoOrientationLandscape = 2 +}; + +/** + * + * @hidden + * @type keytype + * @deprecated since 3.29 and will be deleted in 3.51, use ByteRTCMirrorType{@link #ByteRTCMirrorType} instead. + * @brief 是否开启镜像模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMirrorMode) { + /** + * + * @brief 不开启 + */ + + ByteRTCMirrorModeOff = 0, + /** + * + * @brief 开启 + */ + + ByteRTCMirrorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 镜像类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMirrorType) { + /** + * + * @brief 本地预览和编码传输时均无镜像效果 + */ + + ByteRTCMirrorTypeNone = 0, + /** + * + * @brief 本地预览时有镜像效果,编码传输时无镜像效果 + */ + + ByteRTCMirrorTypeRender = 1, + /** + * + * @brief 本地预览时无镜像效果,仅编码传输时有镜像效果 + */ + + ByteRTCMirrorTypeEncoder = 2, + /** + * + * @brief 本地预览和编码传输时均有镜像效果 + */ + + ByteRTCMirrorTypeRenderAndEncoder = 3, +}; + +/** + * + * @type keytype + * @brief 远端流的镜像类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRemoteMirrorType) { + /** + * + * @brief (默认值)远端视频渲染无镜像效果。 + */ + + ByteRTCRemoteMirrorTypeNone = 0, + /** + * + * @brief 远端视频渲染有镜像效果。 + */ + + ByteRTCRemoteMirrorTypeRender = 1, +}; + +/** + * + * @type keytype + * @brief 截图错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSnapshotErrorCode) { + /** + * + * @brief 截图成功。 + */ + + ByteRTCSnapshotErrorCodeOk = 0, + /** + * + * @brief 截图错误。生成图片数据失败或 RGBA 编码失败。 + */ + + ByteRTCSnapshotErrorCodeCreateFail = -1, + /** + * + * @brief 截图错误。流无效。 + */ + + ByteRTCSnapshotErrorCodeStreamInvalid = -2, + /** + * + * @brief 截图错误。截图超时,超时时间 1 秒。 + */ + + ByteRTCSnapshotErrorCodeTimeout = -3, + /** + * + * @brief 截图错误。图片保存失败。 + */ + + ByteRTCSnapshotErrorCodeFileSaveError = -4 +}; +/** + * + * @type keytype + * @brief 基础美颜模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCEffectBeautyMode) { + /** + * + * @brief 美白。 + */ + + ByteRTCEffectBeautyModeWhite = 0, + /** + * + * @brief 磨皮。 + */ + + ByteRTCEffectBeautyModeSmooth = 1, + /** + * + * @brief 锐化。 + */ + + ByteRTCEffectBeautyModeSharpen = 2, + /** + * + * @valid since 3.55 + * @brief 清晰,需集成 v4.4.2+ 版本的特效 SDK。 + */ + + ByteRTCEffectBeautyModeClear = 3, +}; + +/** + * + * @type keytype + * @brief 视频帧旋转信息 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoRotation) { + /** + * + * @brief 不旋转 + */ + + ByteRTCVideoRotation0 = 0, + /** + * + * @brief 顺时针旋转 90 度 + */ + + ByteRTCVideoRotation90 = 90, + /** + * + * @brief 顺时针旋转 180 度 + */ + + ByteRTCVideoRotation180 = 180, + /** + * + * @brief 顺时针旋转 270 度 + */ + + ByteRTCVideoRotation270 = 270, +}; + +/** + * + * @type keytype + * @brief 发布大小流模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSimulcastMode) { + /** + * + * @brief 单流模式。始终只有 1 路分辨率的流。 + */ + + ByteRTCVideoSimulcastModeOnlyOne = 0, + /** + * + * @brief 按需订阅模式。发送端会根据订阅端的状态,按需发布。无订阅偏好设置默认发送 2 路。 + */ + + ByteRTCVideoSimulcastModeOnDemand, + /** + * + * @brief 订阅弱流。发送端始终按照设置的参数发布所有大小流。默认发送 2 路。 + */ + + ByteRTCVideoSimulcastModeAlwaysSimulcast, +}; + + +/** + * + * @type keytype + * @brief 订阅大小流偏好 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSimulcastStreamType) { + /** + * + * @brief 弱流,最小分辨率的流。 + */ + + ByteRTCVideoSimulcastStreamTypeWeak = 0, + /** + * + * @brief 小流 + */ + + ByteRTCVideoSimulcastStreamTypeLow, + /** + * + * @brief 中流 + */ + + ByteRTCVideoSimulcastStreamTypeMid, + /** + * + * @brief 大流 + */ + + ByteRTCVideoSimulcastStreamTypeHigh, +}; + +/** + * + * @type keytype + * @brief 自定义视频前处理(Video Processor)的作用范围,包括仅预览、仅编码和同时预览与编码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCProcessorActionDomain) { + /** + * + * @brief 处理后的视频帧同时用于本地预览和推流编码。 + */ + + ByteRTCProcessorActionDomainPreviewAndEncode = 0, + /** + * + * @brief 处理后的视频帧仅用于本地预览。 + */ + + ByteRTCProcessorActionDomainPreview = 1, + /** + * + * @brief 处理后的视频帧仅用于推流编码。 + */ + + ByteRTCProcessorActionDomainEncode = 2 +}; + +/** + * + * @type keytype + * @brief 视频帧像素格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoPixelFormat) { + /** + * + * @brief 未知格式 + */ + + ByteRTCVideoPixelFormatUnknown = 0, + /** + * + * @brief YUV I420 格式 + */ + + ByteRTCVideoPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + ByteRTCVideoPixelFormatNV12 = 2, + /** + * + * @brief YUV NV21 格式 + */ + + ByteRTCVideoPixelFormatNV21 = 3, + /** + * + * @brief RGB 24bit 格式, + */ + + ByteRTCVideoPixelFormatRGB24 = 4, + /** + * + * @brief RGBA 编码格式 + */ + + ByteRTCVideoPixelFormatRGBA = 5, + /** + * + * @brief ARGB 编码格式 + */ + + ByteRTCVideoPixelFormatARGB = 6, + /** + * + * @brief BGRA 编码格式 + */ + + ByteRTCVideoPixelFormatBGRA = 7, + + + /** + * + * @brief 像素格式结束标志。新加的格式数值应该小于ByteRTCVideoPixelFormatEndMark。 + */ + + ByteRTCVideoPixelFormatEndMark = 0xFF, + + /** + * + * @brief Texture2D 格式 + */ + + ByteRTCVideoPixelFormatTexture2D = 0x0DE1, + /** + * + * @brief TextureOES 格式 + */ + + ByteRTCVideoPixelFormatTextureOES = 0x8D65, +}; +/** + * + * @type keytype + * @brief 视频帧缓冲区类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoBufferType) { + /** + * + * @brief 原始内存数据 + */ + + ByteRTCVideoBufferTypeRawMemory = 0, + /** + * + * @brief CVPixelBufferRef 类型 + */ + + ByteRTCVideoBufferTypeCVPixelBuffer = 1, + /** + * + * @brief OpenGL 纹理数据类型 + */ + + ByteRTCVideoBufferTypeGLTexture = 2, + /** + * + * @brief cuda 数据类型 + */ + + ByteRTCVideoBufferTypeCuda = 3, + /** + * + * @brief direct3d11 纹理 + */ + + ByteRTCVideoBufferTypeD3D11 = 4, + /** + * + * @brief vaapi 数据格式 + */ + + ByteRTCVideoBufferTypeVAAPI = 5, + /** + * + * @hidden(Windows) + * @brief nvidia jetson dma 数据格式 + */ + + ByteRTCVideoBufferTypeNvidiaJetsonDma =6, +}; +/** + * + * @type keytype + * @brief 视频内容类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoContentType) { + /** + * + * @brief 普通视频 + */ + + ByteRTCVideoContentTypeNormalFrame = 0, + /** + * + * @brief 黑帧视频 + */ + + ByteRTCVideoContentTypeBlackFrame = 1, +}; + +/** + * + * @type keytype + * @brief 视频帧缩放模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamScaleMode) { + /** + * + * @brief 自动缩放模式,默认设置为 ByteRTCVideoStreamScaleModeFitWithCropping。 + */ + + ByteRTCVideoStreamScaleModeAuto = 0, + /** + * + * @brief 对视频帧进行缩放,直至充满和视窗分辨率一致为止。这一过程不保证等比缩放。 + */ + + ByteRTCVideoStreamScaleModeStretch = 1, + /** + * + * @brief 视窗填满优先。
    + * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + ByteRTCVideoStreamScaleModeFitWithCropping = 2, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。保持纵横比来缩放图像,填充短边 + */ + + ByteRTCVideoStreamScaleModeFitWithFilling = 3, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 视频编码模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCodecMode) { + /** + * + * @brief 自动选择 + */ + + ByteRTCVideoCodecModeAuto = 0, + /** + * + * @brief 硬编码 + */ + + ByteRTCVideoCodecModeHardware = 1, + /** + * + * @brief 软编码 + */ + + ByteRTCVideoCodecModeSoftware = 2 +}; + +/** + * + * @type keytype + * @brief 编码帧类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoPictureType) { + /** + * + * @brief 未知类型 + */ + + ByteRTCVideoPictureTypeUnknown = 0, + /** + * + * @brief I 帧,关键帧,编解码不需要参考其他视频帧 + */ + + ByteRTCVideoPictureTypeI = 1, + /** + * + * @brief P 帧,向前参考帧,编解码需要参考前一帧视频帧 + */ + + ByteRTCVideoPictureTypeP = 2, + /** + * + * @brief B 帧,前后参考帧,编解码需要参考前后两帧视频帧 + */ + + ByteRTCVideoPictureTypeB = 3, +}; + +/** + * + * @type keytype + * @brief 编码策略偏好。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoEncoderPreference) { + /** + * + * @brief 无偏好。不降低帧率和分辨率。 + */ + + ByteRTCVideoEncoderPreferenceDisabled = 0, + /** + * + * @brief 优先保障帧率。适用于动态画面。 + */ + + ByteRTCVideoEncoderPreferenceMaintainFramerate = 1, + /** + * + * @brief 清晰模式,优先保障分辨率。适用于静态画面。 + */ + + ByteRTCVideoEncoderPreferenceMaintainQuality = 2, + /** + * + * @brief 平衡帧率与分辨率。 + * 对于屏幕流来说是无偏好。不降低帧率和分辨率。 + */ + + ByteRTCVideoEncoderPreferenceAuto = 3, +}; + + +/** + * + * @hidden + * @deprecated since 3.32 and will be deleted in 3.51, use ByteRTCVirtualBackgroundSourceType{@link #ByteRTCVirtualBackgroundSourceType} instead. + * @type keytype + * @brief 背景模式设置。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCBackgroundMode) { + /** + * + * @brief 无 + */ + + ByteRTCBackgroundModeNone = 0, + /** + * + * @brief 虚化 + */ + + ByteRTCBackgroundModeBlur = 1, + /** + * + * @brief 背景 1 + */ + + ByteRTCBackgroundModeA = 2, + /** + * + * @brief 背景 2 + */ + + ByteRTCBackgroundModeB = 3, +}; + +/** + * + * @hidden + * @deprecated since 3.32 and will be deleted in 3.51. + * @type keytype + * @brief 分割模型设置。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCDivideModel) { + /** + * + * @brief 自研 + */ + + ByteRTCDivideModelDefault = 0, + /** + * + * @brief effect 分割模型 + */ + + ByteRTCDivideModelEffect = 1, +}; + +/** + * + * @type keytype + * @brief 数据类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCDataFrameType) { + /** + * + * @brief SEI 数据 + */ + + ByteRTCDataFrameTypeSei = 0, + /** + * + * @brief 人脸识别数据 + */ + + ByteRTCDataFrameTypeRoi = 1, + /** + * + * @brief 其他数据帧类型 + */ + + ByteRTCDataFrameTypeOther = 2, +}; + +/** + * + * @type keytype + * @brief 视频采集模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCapturePreference) { + /** + * + * @brief (默认)自动设置采集参数。
    + * SDK 在开启采集时根据服务端下发的采集配置结合编码参数设置最佳采集参数。 + */ + + ByteRTCVideoCapturePreferenceAuto = 0, + /** + * + * @brief 手动设置采集参数,包括采集分辨率、帧率。 + */ + + ByteRTCVideoCapturePreferenceMannal = 1, + /** + * + * @brief 采集参数与编码参数一致 + */ + + ByteRTCVideoCapturePreferenceAutoPerformance = 2, +}; + +/** + * + * @type keytype + * @brief 视频帧类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoFrameType) { + /** + * + * @brief 视频帧类型:内存数据 + */ + + ByteRTCVideoFrameTypeRawMemory = 0, + /** + * + * @brief 视频帧类型:CVPixelBuffer + */ + + ByteRTCVideoFrameTypePixelBuffer, +}; + + +/** + * + * @type keytype + * @brief 本地视频帧回调位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoSinkPosition) { + /** + * + * @brief 采集后。 + */ + + ByteRTCLocalVideoSinkPositionAfterCapture = 0, + /** + * + * @brief (默认值)前处理后。 + */ + + ByteRTCLocalVideoSinkPositionAfterPreprocess = 1 +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoSinkPosition) { + /** + * + * @hidden not available + * @brief 解码后。 + */ + + ByteRTCRemoteVideoSinkPositionAfterDecoder = 0, + /** + * + * @brief (默认值)后处理后。 + */ + + ByteRTCRemoteVideoSinkPositionAfterPostprocess = 1 +}; + +/** + * + * @type keytype + * @brief 视频帧编码格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSinkPixelFormat) { + /** + * + * @brief 原始视频帧格式 + */ + + ByteRTCVideoSinkPixelFormatOriginal = 0, + /** + * + * @brief YUV I420 格式 + */ + + ByteRTCVideoSinkPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + ByteRTCVideoSinkPixelFormatNV12 = 2, + /** + * + * @brief RGBA 格式, 字节序为 R8 G8 B8 A8 + */ + + ByteRTCVideoSinkPixelFormatRGBA = 5, + /** + * + * @brief BGRA 格式 + */ + + ByteRTCVideoSinkPixelFormatBGRA = 7 +}; + +/** + * + * @type keytype + * @brief 是否将视频帧自动转正。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoApplyRotation) { + /** + * + * @brief (默认值)不旋转。 + */ + + ByteRTCVideoApplyRotationDefault = -1, + /** + * + * @brief 自动转正视频,即根据视频帧的旋转角信息将视频帧旋转到 0 度。 + */ + + ByteRTCVideoApplyRotation0 = 0 +}; + +/** + * + * @type keytype + * @brief 是否将视频帧镜像。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSinkMirrorType) { + /** + * + * @brief 开启镜像。 + */ + + ByteRTCVideoSinkMirrorTypeOn = 1, + /** + * + * @brief (默认值)不开启镜像。 + */ + + ByteRTCVideoSinkMirrorTypeOff = 2, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分状态改变原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSuperResolutionModeChangedReason) { + /** + * + * @brief 调用 setRemoteVideoSuperResolution:withMode:{@link #ByteRTCEngine#setRemoteVideoSuperResolution:withMode:} 成功关闭超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonAPIOff = 0, + /** + * + * @brief 调用 setRemoteVideoSuperResolution:withMode:{@link #ByteRTCEngine#setRemoteVideoSuperResolution:withMode:} 成功开启超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonAPIOn = 1, + /** + * + * @brief 开启超分失败,远端视频流的原始视频分辨率超过 640 × 360 px。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonResolutionExceed = 2, + /** + * + * @brief 开启超分失败,已对一路远端流开启超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOverUse = 3, + /** + * + * @brief 设备不支持使用超分辨率。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonDeviceNotSupport = 4, + /** + * + * @brief 当前设备性能存在风险,已动态关闭 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonDynamicClose = 5, + /** + * + * @brief 超分因其他原因关闭。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOtherSettingDisabled = 6, + /** + * + * @brief 超分因其他原因开启。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOtherSettingEnabled = 7, + /** + * + * @brief SDK 没有编译超分组件。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonNoComponent = 8, + /** + * + * @brief 远端流不存在。房间 ID 或用户 ID 无效,或对方没有发布流。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonStreamNotExist = 9, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式状态改变原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDenoiseModeChangedReason) { + /** + * + * @brief 未知原因导致视频降噪状态改变。 + */ + + ByteRTCVideoDenoiseModeChangedReasonNull = -1, + /** + * + * @brief 通过调用 setVideoDenoiser:{@link #ByteRTCEngine#setVideoDenoiser:} 成功关闭视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonApiOff = 0, + /** + * + * @brief 通过调用 setVideoDenoiser:{@link #ByteRTCEngine#setVideoDenoiser:} 成功开启视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonApiOn = 1, + /** + * + * @brief 后台未配置视频降噪,视频降噪开启失败,请联系技术人员解决。 + */ + + ByteRTCVideoDenoiseModeChangedReasonConfigDisabled = 2, + /** + * + * @brief 后台配置开启了视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonConfigEnabled = 3, + /** + * + * @brief 由于内部发生了异常,视频降噪关闭。 + */ + + ByteRTCVideoDenoiseModeChangedReasonInternalException = 4, + /** + * + * @brief 当前设备性能过载,已动态关闭视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonDynamicClose = 5, + /** + * + * @brief 当前设备性能裕量充足,已动态开启视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonDynamicOpen = 6, + /** + * + * @brief 分辨率导致视频降噪状态发生改变。分辨率过高会导致性能消耗过大,从而导致视频降噪关闭。如若希望继续使用视频降噪,可选择降低分辨率。 + */ + + ByteRTCVideoDenoiseModeChangedReasonResolution = 7, +}; +#pragma mark CDN/WTN ENUM +/** + * + * @type keytype + * @brief 转推任务事件 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamTaskEvent) { + /** + * + * @hidden for internal use only + */ + + ByteRTCMixedStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + ByteRTCMixedStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + ByteRTCMixedStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务更新成功。 + */ + + ByteRTCMixedStreamTaskEventUpdateSuccess = 3, + /** + * + * @brief 任务更新失败。 + */ + + ByteRTCMixedStreamTaskEventUpdateFailed = 4, + /** + * + * @brief 任务停止。 + */ + + ByteRTCMixedStreamTaskEventStopSuccess = 5, + /** + * + * @brief 结束任务失败。 + */ + + ByteRTCMixedStreamTaskEventStopFailed = 6, + /** + * + * @brief Warning 事件 + */ + + ByteRTCMixedStreamTaskEventWarning = 7, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流方式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamType) { + /** + * + * @brief 通过服务端合流 + */ + + ByteRTCMixedStreamByServer = 0, + /** + * + * @brief 端云一体合流。SDK 智能决策在客户端或服务端完成合流。
    + * 使用前,请联系技术支持同学开通,否则不生效。 + */ + + ByteRTCMixedStreamByClient = 1, +}; +/** + * + * @type keytype + * @brief 任务类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamPushTargetType) { + /** + * + * @brief 推到 CDN + */ + + ByteRTCMixedStreamPushTargetTypeToCDN = 0, + /** + * + * @brief WTN 流 + */ + + ByteRTCMixedStreamPushTargetTypeToWTN = 1, +}; +/** + * + * @type keytype + * @brief WTN 流的补帧模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCInterpolationMode) { + /** + * + * @type keytype + * @brief 补最后一帧 + */ + + ByteRTCInterpolationModeLastFrameFill = 0, + /** + * + * @type keytype + * @brief 补背景图片 + */ + + ByteRTCInterpolationModeBackgroundImageFill = 1, +}; +/** + * + * @type keytype + * @brief WTN 流的布局模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamLayoutMode) { + /** + * + * @brief 自动布局 + */ + + ByteRTCStreamLayoutModeAuto = 0, + /** + * + * @brief 自定义 + */ + + ByteRTCStreamLayoutModeCustom = 2, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 客户端合流回调视频格式。
    + * 设置为系统不支持的格式时,自动回调系统默认格式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamClientMixVideoFormat) { + /** + * + * @brief YUV I420。Android、Windows 默认回调格式。支持系统:Android、Windows。 + */ + + ByteRTCMixedStreamClientMixVideoFormatI420 = 0, + /** + * + * @brief OpenGL GL_TEXTURE_2D 格式纹理。支持系统:安卓。 + */ + + ByteRTCMixedStreamClientMixVideoFormatTexture2D = 1, + /** + * + * @brief CVPixelBuffer BGRA。iOS 默认回调格式。支持系统: iOS。 + */ + + ByteRTCMixedStreamClientMixVideoFormatCVPixelBufferBGRA = 2, + /** + * + * @brief YUV NV12。macOS 默认回调格式。支持系统: macOS。 + */ + + ByteRTCMixedStreamClientMixVideoFormatNV12 = 3, +}; + +/** + * + * @type keytype + * @brief 视频编码格式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamVideoCodecType) { + /** + * + * @brief H.264 格式,默认值。 + */ + + ByteRTCMixedStreamVideoCodecTypeH264 = 0, + /** + * + * @brief ByteVC1 格式。 + */ + + ByteRTCMixedStreamVideoCodecTypeByteVC1 = 1, +}; +/** + * + * @type keytype + * @brief 合流输出媒体类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamMediaType) { + /** + * + * @brief 包含音频和视频 + */ + + ByteRTCMixedStreamMediaTypeAudioAndVideo = 0, + /** + * + * @brief 只包含音频 + */ + + ByteRTCMixedStreamMediaTypeAudioOnly = 1, + /** + * + * @hidden currently not available + * @brief 只包含视频 + */ + + ByteRTCMixedStreamMediaTypeVideoOnly = 2, +}; +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamRenderMode) { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + ByteRTCMixedStreamRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + ByteRTCMixedStreamRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + ByteRTCMixedStreamRenderModeAdaptive = 3, +}; +/** + * + * @type keytype + * @brief 合流布局区域类型,视频区或水印图片区。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamLayoutRegionType) { + + /** + * + * @brief 视频。 + */ + + ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0, + + /** + * + * @brief 水印图片。 + */ + + ByteRTCMixedStreamLayoutRegionTypeImage = 1, +}; + +/** + * + * @hidden internal use only + * @type keytype + * @brief 合流同步策略 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamSyncStrategy) { + /** + * + * @brief 不使用同步策略 + */ + + ByteRTCMixedStreamSyncStrategyNoSync = 0, + /** + * + * @brief 使用音频精准同步策略 + */ + + ByteRTCMixedStreamSyncStrategyAudioPreciseSync = 1, + /** + * + * @brief 使用单通模式同步策略 + */ + + ByteRTCMixedStreamSyncStrategySimplexModeSync = 2, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamVideoType) { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的流 + * - 通过自定义采集,采集到的流。 + */ + + ByteRTCMixedStreamVideoTypeMain = 0, + + /** + * + * @hidden for internal use only + * @brief 屏幕流。 + */ + + ByteRTCMixedStreamVideoTypeScreen = 1, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推 SEI 内容。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamSEIContentMode) { + /** + * + * @brief 视频流中包含全部的 SEI 信息。默认设置。 + */ + + ByteRTCMixedStreamSEIContentModeDefault = 0, + /** + * + * @brief 随非关键帧传输的 SEI 数据中仅包含音量信息。
    + * 当设置 `ByteRTCMixedStreamControlConfig.enableVolumeIndication` 为 True 时,此参数设置生效。 + */ + + ByteRTCMixedStreamSEIContentModeEnableVolumeIndication = 1, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推发起模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamPushMode) { + /** + * + * @brief 无用户发布媒体流时,发起合流任务无效。默认设置。 + * 当有用户发布媒体流时,才能发起合流任务。 + */ + + ByteRTCMixedStreamPushModeOnStream = 0, + /** + * + * @brief 无用户发布媒体流时,可以使用占位图发起合流任务。
    + * 占位图设置参看 alternateImageUrl{@link #ByteRTCMixedStreamLayoutRegionConfig#alternateImageUrl} 和 alternateImageFillMode{@link #ByteRTCMixedStreamLayoutRegionConfig#alternateImageFillMode} + */ + + ByteRTCMixedStreamPushModeOnStartRequest = 1, +}; +/** + * + * @type keytype + * @brief 服务端合流占位图填充模式。
    + * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。默认值为 `ByteRTCMixedStreamAlternateImageFillModeFit`,占位图跟随用户原始视频帧相同的比例缩放。
    + * 参看 ByteRTCMixedStreamAlternateImageFillMode{@link #ByteRTCMixedStreamAlternateImageFillMode}。
    + * WTN 流任务不支持设置本参数。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAlternateImageFillMode) { + /** + * + * @brief 占位图跟随用户原始视频帧相同的比例缩放。默认设置。 + */ + + ByteRTCMixedStreamAlternateImageFillModeFit = 0, + /** + * + * @brief 占位图不跟随用户原始视频帧相同的比例缩放,保持图片原有比例。 + */ + + ByteRTCMixedStreamAlternateImageFillModeFill = 1, +}; +/** + * + * @type errorcode + * @brief 单流转推直播事件 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSingleStreamTaskEvent) { + /** + * + * @hidden for internal use only + */ + + ByteRTCSingleStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + ByteRTCSingleStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + ByteRTCSingleStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务停止。 + */ + + ByteRTCSingleStreamTaskEventStopSuccess = 3, + /** + * + * @brief 结束任务失败。 + */ + + ByteRTCSingleStreamTaskEventStopFailed= 4, + /** + * + * @brief Warning 事件 + */ + + ByteRTCSingleStreamTaskEventWarning = 5, +}; + +/** + * + * @type errorcode + * @brief 单流转推直播错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSingleStreamTaskErrorCode) { + /** + * + * @brief 推流成功。 + */ + + ByteRTCSingleStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + ByteRTCSingleStreamTaskErrorCodeBase = 1090, + /** + * + * @brief 服务端合流错误 + */ + + ByteRTCSingleStreamTaskErrorCodeUnknownByServer = 1091, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + ByteRTCSingleStreamTaskErrorCodeSignalRequestTimeout = 1092, + /** + * + * @brief 服务端检测任务参数不合法 + */ + + ByteRTCSingleStreamTaskErrorCodeInvalidParamByServer = 1093, + /** + * + * @brief 转推任务在目标房间的用户ID被踢出目标房间 + */ + + ByteRTCSingleStreamTaskErrorCodeRemoteKicked = 1094, + /** + * + * @brief 转推任务加入目标房间失败 + */ + + ByteRTCSingleStreamTaskErrorCodeJoinDestRoomFailed = 1095, + /** + * + * @brief 转推任务在源房间拉流超时 + */ + + ByteRTCSingleStreamTaskErrorCodeReceiveSrcStreamTimeout = 1096, + /** + * + * @brief 音视频编码转推任务不支持 + */ + + ByteRTCSingleStreamTaskErrorCodeNotSurportCodec = 1097, + /** + * + * @brief 转推到CDN失败 + */ + + ByteRTCSingleStreamTaskErrorCodePushToCDN = 1098, + /** + * + * @brief 超过单流转推的任务数限制(单主播可同时转推任务数不超过20) + */ + + ByteRTCSingleStreamTaskErrorCodeTaskCountOverLimit = 1099, +}; +/** + * + * @type keytype + * @brief 订阅媒体的类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeMediaType) { + /** + * + * @brief 既不订阅音频,也不订阅视频 + */ + + ByteRTCSubscribeMediaTypeNone = 0, + /** + * + * @brief 只订阅音频,不订阅视频 + */ + + ByteRTCSubscribeMediaTypeAudioOnly = 1, + /** + * + * @brief 只订阅视频,不订阅音频 + */ + + ByteRTCSubscribeMediaTypeVideoOnly = 2, + /** + * + * @brief 同时订阅音频和视频 + */ + + ByteRTCSubscribeMediaTypeAudioAndVideo = 3, +}; + +/** + * + * @type keytype + * @brief 暂停/恢复接收远端的媒体流类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPauseResumControlMediaType) { + /** + * + * @brief 只控制音频,不影响视频 + */ + + ByteRTCControlMediaTypeAudio = 0, + /** + * + * @brief 只控制视频,不影响音频 + */ + + ByteRtcControlMediaTypeVideo = 1, + /** + * + * @brief 同时控制音频和视频 + */ + + ByteRtcControlMediaTypeAudioAndVideo = 2, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 视频输入类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaInputType) { + /** + * + * @brief 自定义采集。
    + * 设置完成后方可直接向 SDK 推送视频帧。 + */ + + ByteRTCMediaInputTypeExternal = 0, + /** + * + * @brief 内部 SDK 采集。
    + * 此设置仅切换至内部采集,你需继续调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集。 + */ + + ByteRTCMediaInputTypeInternal = 1 +}; + +/** + * + * @type keytype + * @brief 视频输入源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSourceType) { + /** + * + * @brief 自定义采集视频源 + */ + + ByteRTCVideoSourceTypeExternal = 0, + /** + * + * @brief 内部采集视频源 + */ + + ByteRTCVideoSourceTypeInternal = 1, + /** + * + * @brief 自定义编码视频源。
    + * 你仅需推送分辨率最大的一路编码后视频流,SDK 将自动转码生成多路小流 + */ + + ByteRTCVideoSourceTypeEncodedAutoSimulcast = 2, + /** + * + * @brief 自定义编码视频源。
    + * SDK 不会自动生成多路流,你需要自行生成并推送多路流 + */ + + ByteRTCVideoSourceTypeEncodedManualSimulcast = 3 +}; + +/** + * + * @type keytype + * @brief Alpha 通道相对于 RGB 通道数据的排列位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAlphaLayout) { + /** + * + * @brief Alpha 数据置于 RGB 数据上方。 + */ + + ByteRTCAlphaLayoutTop = 0, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据下方。 + */ + + ByteRTCAlphaLayoutBottom = 1, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据左方。 + */ + + ByteRTCAlphaLayoutLeft = 2, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据右方。 + */ + + ByteRTCAlphaLayoutRight = 3, +}; + +/** + * + * @type keytype + * @brief 数码变焦参数类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCZoomConfigType) { + /** + * + * @brief 设置缩放系数 + */ + + ByteRTCZoomConfigTypeFocusOffset = 0, + /** + * + * @brief 设置移动步长 + */ + + ByteRTCZoomConfigTypeMoveOffset = 1 +}; + +/** + * + * @type keytype + * @brief 数字变焦操作类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCZoomDirectionType) { + /** + * + * @brief 相机向左移动 + */ + + ByteRTCZoomDirectionTypeMoveLeft = 0, + /** + * + * @brief 相机向右移动 + */ + + ByteRTCZoomDirectionTypeMoveRight = 1, + /** + * + * @brief 相机向上移动 + */ + + ByteRTCZoomDirectionTypeMoveUp = 2, + /** + * + * @brief 相机向下移动 + */ + + ByteRTCZoomDirectionTypeMoveDown = 3, + /** + * + * @brief 相机缩小焦距 + */ + + ByteRTCZoomDirectionTypeZoomOut = 4, + /** + * + * @brief 相机放大焦距 + */ + + ByteRTCZoomDirectionTypeZoomIn = 5, + /** + * + * @brief 恢复到原始画面 + */ + + ByteRTCZoomDirectionTypeReset = 6 +}; + +/** + * + * @type keytype + * @brief 视频解码方式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDecoderConfig) { + /** + * + * @brief 开启 SDK 内部解码,只回调解码后的数据。回调为 renderPixelBuffer:rotation:contentType:extendedData:{@link #ByteRTCVideoSinkDelegate#renderPixelBuffer:rotation:contentType:extendedData:} + */ + + ByteRTCVideoDecoderConfigRaw = 0, + /** + * + * @brief 开启自定义解码,只回调解码前数据。回调为 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:}。 + */ + + ByteRTCVideoDecoderConfigEncode = 1, + /** + * + * @brief 开启 SDK 内部解码,同时回调解码前和解码后的数据 + */ + + ByteRTCVideoDecoderConfigBoth = 2 +}; + +/** + * + * @type keytype + * @brief 虚拟背景类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVirtualBackgroundSourceType){ + /** + * + * @brief 使用纯色背景替换视频原有背景。 + */ + + ByteRTCVirtualBackgroundSourceTypeColor = 0, + /** + * + * @brief 使用自定义图片替换视频原有背景。 + */ + + ByteRTCVirtualBackgroundSourceTypeImage = 1 +}; + +/** + * + * @type keytype + * @brief 摄像头类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCCameraID) { + /** + * + * @brief 前置摄像头 + */ + + ByteRTCCameraIDFront = 0, + /** + * + * @brief 后置摄像头 + */ + + ByteRTCCameraIDBack = 1, + /** + * + * @hidden currently not available + * @brief 外接摄像头 + */ + + ByteRTCCameraIDExternal = 2, + /** + * + * @brief 无效值 + */ + + ByteRTCCameraIDInvalid = 3, +}; + +/** + * + * @type errorcode + * @brief 合流和 WTN 流任务错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamTaskErrorCode) { + /** + * + * @brief 推流成功。 + */ + + ByteRTCMixedStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + ByteRTCMixedStreamTaskErrorCodeBase = 1090, + /** + * + * @brief 任务处理超时,请检查网络状态并重试 + */ + + ByteRTCMixedStreamTaskErrorCodeTimeOut = 1091, + /** + * + * @brief 服务端检测到错误的推流参数 + */ + + ByteRTCMixedStreamTaskErrorCodeInvalidParamByServer = 1092, + /** + * + * @brief 对流的订阅超时 + */ + + ByteRTCMixedStreamTaskErrorCodeSubTimeoutByServer = 1093, + /** + * + * @brief 合流服务端内部错误。 + */ + + ByteRTCMixedStreamTaskErrorCodeInvalidStateByServer = 1094, + /** + * + * @brief 合流服务端推 CDN 失败。 + */ + + ByteRTCMixedStreamTaskErrorCodeAuthenticationByCDN = 1095, + /** + * + * @brief 服务端未知错误。 + */ + + ByteRTCMixedStreamTaskErrorCodeUnKnownErrorByServer = 1096, + /** + * + * @brief 服务端接收信令超时,请检查网络状态并重试。 + */ + + ByteRTCMixedStreamTaskErrorCodeSignalRequestTimeout = 1097, + /** + * + * @brief 图片合流失败。 + */ + + ByteRTCMixedStreamTaskErrorCodeMixImageFailed = 1098, + /** + * + * @hidden currently not available + * @brief 缓存未同步。 + */ + + ByteRTCMixedStreamTaskErrorCodeStreamSyncWorse = 1099, + /** + * + * @brief 发布 WTN 流失败 + */ + + ByteRTCMixedStreamTaskErrorCodePushWTNFailed = 1195, + /** + * + * @hidden for internal use only + */ + + ByteRTCMixedStreamTaskErrorCodeMax = 1199, +}; +/** + * + * @type keytype + * @brief 本地录制的媒体类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingType) { + /** + * + * @brief 只录制音频 + */ + + ByteRTCRecordingTypeAudioOnly = 0, + /** + * + * @brief 只录制视频 + */ + + ByteRTCRecordingTypeVideoOnly = 1, + /** + * + * @brief 同时录制音频和视频 + */ + + ByteRTCRecordingTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 屏幕采集媒体类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCScreenMediaType) { + /** + * + * @brief 只采集视频数据 + */ + + ByteRTCScreenMediaTypeVideoOnly = 0, + /** + * + * @brief 只采集音频数据 + */ + + ByteRTCScreenMediaTypeAudioOnly = 1, + /** + * + * @brief 音视频数据都采集 + */ + + ByteRTCScreenMediaTypeVideoAndAudio = 2 +}; + +/** + * + * @type keytype + * @brief 屏幕采集对象的类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCScreenCaptureSourceType) { + /** + * + * @brief 类型未知 + */ + + ByteRTCScreenCaptureSourceTypeUnknown = 0, + /** + * + * @brief 应用程序的窗口 + */ + + ByteRTCScreenCaptureSourceTypeWindow = 1, + /** + * + * @brief 桌面 + */ + + ByteRTCScreenCaptureSourceTypeScreen = 2 +}; +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流时,是否采集鼠标信息。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMouseCursorCaptureState) { + /** + * + * @brief 采集鼠标信息。 + */ + + ByteRTCMouseCursorCaptureStateOn, + /** + * + * @brief 不采集鼠标信息。 + */ + + ByteRTCMouseCursorCaptureStateOff, +}; +/** + * + * @type keytype + * @brief 屏幕共享时的边框高亮设置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHighlightConfig: NSObject +/** + * + * @brief 是否显示高亮边框,默认显示。 + */ + +@property (assign, nonatomic) BOOL enableHighlight; +/** + * + * @brief 边框的颜色, 颜色格式为十六进制 ARGB: 0xAARRGGB。 + */ + +@property (assign, nonatomic) uint32_t borderColor; +/** + * + * @brief 边框的宽度,单位:像素。 + */ + +@property (assign, nonatomic) int borderWidth; +@end + +/** + * + * @type keytype + * @brief 相机补光灯状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCTorchState) { + /** + * + * @brief 相机补光灯关闭 + */ + + ByteRTCTorchStateOff = 0, + /** + * + * @brief 相机补光灯打开 + */ + + ByteRTCTorchStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 当前视频设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDeviceType) { + /** + * + * @brief 未知视频设备 + */ + + ByteRTCVideoDeviceTypeUnknown = -1, + /** + * + * @brief 视频渲染设备类型 + */ + + ByteRTCVideoDeviceTypeRenderDevice = 0, + /** + * + * @brief 视频采集设备类型 + */ + + ByteRTCVideoDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流视频设备 + */ + + ByteRTCVideoDeviceTypeScreenCaptureDevice = 2 +}; + +/** + * + * @type keytype + * @brief 媒体流类型 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCMediaStreamType) { + /** + * + * @brief 只控制音频 + */ + + ByteRTCMediaStreamTypeAudio = (1 << 0), + /** + * + * @brief 只控制视频 + */ + + ByteRTCMediaStreamTypeVideo = (1 << 1), + /** + * + * @brief 同时控制音频和视频 + */ + + ByteRTCMediaStreamTypeBoth = ByteRTCMediaStreamTypeAudio | ByteRTCMediaStreamTypeVideo, +}; + +/** + * + * @type keytype + * @brief 占发布端原始帧率的比例 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFrameRateRatio) { + /** + * + * @brief 100% + */ + + ByteRTCFrameRateRatioOrigin = 0, + /** + * + * @brief 50% + */ + + ByteRTCFrameRateRatioHalf = 1, + /** + * + * @brief 25% + */ + + ByteRTCFrameRateRatioQuater = 2, +}; + +/** + * + * @type keytype + * @brief 视频旋转模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoRotationMode) { + /** + * + * @brief App 方向 + */ + + ByteRTCVideoRotationModeFollowApp = 0, + /** + * + * @brief 重力方向 + */ + + ByteRTCVideoRotationModeFollowGSensor = 1, +}; + +/** + * + * @type keytype + * @brief 弱光适应类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoEnhancementMode) { + /** + * + * @brief 关闭弱光适应 + */ + + ByteRTCVideoEnhancementModeDisabled = 0, + + /** + * + * @brief 开启弱光适应 + */ + + ByteRTCVideoEnhancementModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 人像属性检测参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectConfig : NSObject +/** + * + * @brief 是否开启年龄检测。 + */ + +@property (assign, nonatomic) BOOL enableAgeDetect; +/** + * + * @brief 是否开启性别检测。 + */ + +@property (assign, nonatomic) BOOL enableGenderDetect; +/** + * + * @brief 是否开启表情检测。 + */ + +@property (assign, nonatomic) BOOL enableEmotionDetect; +/** + * + * @brief 是否开启吸引力检测。 + */ + +@property (assign, nonatomic) BOOL enableAttractivenessDetect; +/** + * + * @brief 是否开启开心程度检测。 + */ + +@property (assign, nonatomic) BOOL enableHappinessDetect; +@end + +/** + * + * @type keytype + * @brief 人像属性检测信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectInfo : NSObject +/** +* +* @brief 预测年龄,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float age; +/** +* +* @brief 预测为男性的概率,取值范围 (0.0, 1.0)。 +*/ + +@property (assign, nonatomic) float boyProb; +/** +* +* @brief 预测的吸引力分数,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float attractive; +/** +* +* @brief 预测的微笑程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float happyScore; +/** +* +* @brief 预测的伤心程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float sadScore; +/** +* +* @brief 预测的生气程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float angryScore; +/** +* +* @brief 预测的吃惊程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float surpriseScore; +/** +* +* @brief 预测的情绪激动程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float arousal; +/** +* +* @brief 预测的情绪正负程度,取值范围 (-100, 100)。 +*/ + +@property (assign, nonatomic) float valence; +@end + +/** + * + * @type keytype + * @brief 人像属性检测结果 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectResult : NSObject +/** + * + * @brief 特征识别结果
    + * - 0:识别成功 + * - !0:识别失败 + */ + +@property (assign, nonatomic) int detectResult; +/** + * + * @brief 识别到的人脸数量。 + */ + +@property (assign, nonatomic) int faceCount; + +/** + * + * @brief 特征识别信息。数组的长度和检测到的人脸数量一致。参看 ByteRTCExpressionDetectInfo{@link #ByteRTCExpressionDetectInfo}。 + */ + +@property (nonatomic, copy) NSArray * _Nonnull detectInfo; + +@end + +/** + * + * @type keytype + * @brief 矩形区域,用于指定屏幕区域。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRectangle : NSObject +/** + * + * @brief 矩形区域左上角的 x 坐标。 + */ + +@property(assign, nonatomic) int x; +/** + * + * @brief 矩形区域左上角的 y 坐标。 + */ + +@property(assign, nonatomic) int y; +/** + * + * @brief 矩形宽度,单位:px。 + */ + +@property(assign, nonatomic) int width; +/** + * + * @brief 矩形高度,单位:px。 + */ + +@property(assign, nonatomic) int height; +@end +/** + * + * @type keytype + * @brief 人脸检测结果 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFaceDetectionResult : NSObject +/** + * + * @brief 人脸检测结果
    + * - 0:检测成功 + * - !0:检测失败。详见[错误码](https: + */ + +@property(assign, nonatomic) int detectResult; +/** + * + * @brief 原始图片宽度(px) + */ + +@property(assign, nonatomic) int imageWidth; +/** + * + * @brief 原始图片高度(px) + */ + +@property(assign, nonatomic) int imageHeight; +/** + * + * @brief 识别到人脸的矩形框。数组的长度和检测到的人脸数量一致。参看 ByteRTCRectangle{@link #ByteRTCRectangle}。 + */ + +@property(nonatomic, copy) NSArray * _Nullable faces; +/** + * + * @brief 进行人脸识别的视频帧的时间戳。 + */ + +@property(assign, nonatomic) CMTime frameTimestamp; + +@end +/** + * + * @type keytype + * @brief 视频帧渲染设置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoCanvas : NSObject +/** + * + * @brief 本地视图句柄 + */ + +@property(strong, nonatomic) ByteRTCView* _Nullable view; +/** + * + * @brief 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + */ + +@property(assign, nonatomic) ByteRTCRenderMode renderMode; +/** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`,格式为 BGR。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + +@property(assign, nonatomic) NSInteger backgroundColor; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。默认为 0 度,即不做旋转处理。
    + * 该设置仅对远端视频有效,对本地视频设置不生效。 + */ + +@property(assign, nonatomic) ByteRTCVideoRotation renderRotation; +@end + +/** + * + * @type keytype + * @brief 远端视频帧渲染设置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoRenderConfig : NSObject +/** + * + * @brief 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + */ + +@property(assign, nonatomic) ByteRTCRenderMode renderMode; +/** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`,格式为 BGR。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + +@property(assign, nonatomic) NSInteger backgroundColor; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。默认为 0 度,即不做旋转处理。 + */ + +@property(assign, nonatomic) ByteRTCVideoRotation renderRotation; +@end + + +/** + * + * @type keytype + * @brief 视频帧附加的数据,视频解码后获得的附加数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFrameExtendedData : NSObject +/** + * + * @brief 数据类型,详见 ByteRTCDataFrameType{@link #ByteRTCDataFrameType}。 + */ + +@property(assign, nonatomic) ByteRTCDataFrameType frameType; +/** + * + * @brief 附加数据 + */ + +@property(strong, nonatomic) NSData * _Nullable extendedData; +/** + * + * @brief 附加数据长度 + */ + +@property(assign, nonatomic) NSInteger extendedDataLen; +@end + +NS_ASSUME_NONNULL_BEGIN + +/** + * + * @type keytype + * @brief 视频流参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSolution: NSObject +/** + * + * @brief 视频分辨率 + */ + +@property(nonatomic, assign) CGSize videoSize; +/** + * + * @brief 视频预设帧率 + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 最高编码码率(千比特每秒)。建议使用 `-1`,SDK 会自动根据分辨率和帧率适配合适的码率。 + */ + +@property(nonatomic, assign) NSInteger maxKbps; +/** + * + * @brief 最低编码码率(千比特每秒) + */ + +@property(nonatomic, assign) NSInteger minKbps; +/** + * + * @brief 视频编码质量策略,参见 ByteRTCVideoEncoderPreference{@link #ByteRTCVideoEncoderPreference} + */ + +@property(nonatomic, assign) ByteRTCVideoEncoderPreference encoderPreference; +@end + +/** + * + * @type keytype + * @brief 视频采集参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoCaptureConfig: NSObject +/** + * + * @brief 视频采集模式,参看 ByteRTCVideoCapturePreference{@link #ByteRTCVideoCapturePreference} + */ + +@property(nonatomic, assign) ByteRTCVideoCapturePreference preference; + +/** + * + * @brief 视频采集分辨率 + */ + +@property(nonatomic, assign) CGSize videoSize; +/** + * + * @brief 视频采集帧率,单位:fps。 + */ + +@property(nonatomic, assign) NSInteger frameRate; +@end + +/** + * + * @type keytype + * @brief 流属性。 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCStream +/** + * + * @brief 发布此流的用户 ID。 + */ + +@property(nonatomic, copy, readonly) NSString * userId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign, readonly) BOOL isScreen; +/** + * + * @brief 此流是否包括视频流。 + */ + +@property(nonatomic, assign, readonly) BOOL hasVideo; +/** + * + * @brief 流是否包括音频流。 + */ + +@property(nonatomic, assign, readonly) BOOL hasAudio; +/** + * + * @brief 视频流的分辨率信息。
    + * 当远端用户调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 方法发布多个配置的视频流时,此处会包含该用户发布的所有视频流的属性信息。
    + * 参看 ByteRTCVideoSolution{@link #ByteRTCVideoSolution}。 + */ + +@property(nonatomic, copy, readonly) NSArray * videoStreamDescriptions; +/** + * + * @brief 视频流最大分辨率,在开启多分辨率发布订阅时,回调发布端能支持的最大发布分辨率。 + */ + +@property(nonatomic, retain, readonly) ByteRTCVideoSolution *maxVideoStreamDescription; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end + +/** + * + * @type keytype + * @brief 订阅流的参数配置。用户手动订阅一路音视频流所使用的订阅配置参数。
    + * 用户关闭自动订阅功能,使用手动订阅模式时,通过调用 `subscribeStream` 方法订阅音视频流,调用时传入的参数即为此数据类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeConfig: NSObject +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 是否订阅视频。
    + * 用户通过设置此参数,选择是否订阅远端流中的视频。 YES 为订阅视频,NO 为不订阅视频,默认值为 YES 。 + */ + +@property(nonatomic, assign) BOOL subscribeVideo; +/** + * + * @brief 是否订阅音频。
    + * 用户通过设置此参数,选择是否订阅远端流中的音频。YES 为订阅音频,NO 为不订阅音频,默认值为 YES 。 + */ + +@property(nonatomic, assign) BOOL subscribeAudio; +/** + * + * @brief 订阅的视频流分辨率下标。
    + * 用户可以通过调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 方法发布多个不同分辨率的视频。因此订阅流时,需要指定订阅的具体分辨率。此参数即用于指定需订阅的分辨率的下标,默认值为 0 。 + */ + +@property(nonatomic, assign) NSInteger videoIndex; +/** + * + * @brief 订阅的视频流时域分层,默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger svcLayer; +/** + * + * @brief 订阅的宽度信息,单位:px,默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 订阅的高度信息,单位:px, 默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @hidden for internal use only + */ + +@property(nonatomic, assign) NSInteger subVideoIndex; +/** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + +@property (nonatomic, assign) NSInteger framerate; + + +@end + +NS_ASSUME_NONNULL_END + +/** + * + * @type keytype + * @brief 视频帧数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoFrameData : NSObject +/** + * + * @brief 视频帧缓冲区类型,参考 ByteRTCVideoBufferType {@link #ByteRTCVideoBufferType}。必填。 + */ + +@property ByteRTCVideoBufferType bufferType; + +/** + * + * @brief 视频帧像素格式,参考 ByteRTCVideoPixelFormat {@link #ByteRTCVideoPixelFormat}。当 `bufferType` 为 `ByteRTCVideoBufferTypeGLTexture` 时必填。 + */ + +@property ByteRTCVideoPixelFormat pixelFormat; +/** + * + * @brief 视频内容类型,参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + */ + +@property ByteRTCVideoContentType contentType; +/** + * + * @brief 当前帧的时间戳。必填。 + */ + +@property CMTime timestamp; +/** + * + * @brief 视频帧宽度。必填。 + */ + +@property int width; +/** + * + * @brief 视频帧高度。必填。 + */ + +@property int height; +/** + * + * @brief `CVPixelBufferRef` 类型的数据,当 `format` 为 `kPixelFormatCVPixelBuffer` 时,必填。 + */ + +@property CVPixelBufferRef _Nullable cvpixelbuffer; +/** + * + * @brief 视频帧旋转角度,参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + */ + +@property ByteRTCVideoRotation rotation; +/** + * + * @brief 视频帧的摄像头位置信息,参考 ByteRTCCameraID{@link #ByteRTCCameraID} + */ + +@property ByteRTCCameraID cameraId; +/** + * + * @brief SEI 数据 + */ + +@property NSData * _Nullable seiData; + +/** + * + * @brief 视频帧感兴趣区域数据 + */ + +@property NSData * _Nullable roiData; + +/** + * + * @brief 视频帧平面数。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property int numberOfPlanes; + +/** + * + * @brief 视频帧平面数组。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property void ** _Nullable planeDataArray; + +/** + * + * @brief stride 数组。stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节)。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property int * _Nullable planeStrideArray; +@end + +/** + * + * @type keytype + * @brief 视频帧接口 + */ + + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoFrame +@required +/** + * + * @brief 获取视频帧缓冲区类型,参考 ByteRTCVideoBufferType {@link #ByteRTCVideoBufferType} + */ + +@property(readonly) ByteRTCVideoBufferType bufferType; + +/** + * + * @brief 获取视频帧像素格式,参考 ByteRTCVideoPixelFormat {@link #ByteRTCVideoPixelFormat} + */ + +@property(readonly) ByteRTCVideoPixelFormat pixelFormat; +/** + * + * @brief 获取视频帧内容类型,参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + */ + +@property(readonly) ByteRTCVideoContentType contentType; +/** + * + * @brief 获取时间戳 + */ + +@property(readonly) CMTime timestamp; +/** + * + * @brief 获取视频帧宽度 + */ + +@property(readonly) int width; +/** + * + * @brief 获取视频帧高度 + */ + +@property(readonly) int height; +/** + * + * @brief 获取 `CVPixelBufferRef` 类型的数据,当 format 为 `kPixelFormatCVPixelBuffer` 时有效 + */ + +@property(readonly) CVPixelBufferRef _Nullable cvpixelbuffer; +/** + * + * @brief 获取视频帧旋转角度 + */ + +@property(readonly) ByteRTCVideoRotation rotation; +/** + * + * @brief 获取视频帧的摄像头位置,参考 ByteRTCCameraID{@link #ByteRTCCameraID} + */ + +@property(readonly) ByteRTCCameraID cameraId; +/** + * + * @brief 获取 SEI 数据 + */ + +@property(readonly) NSData * _Nullable seiData; + +/** + * + * @brief 获取视频帧平面数量 + */ + +@property (readonly) int numberOfPlanes; + +/** + * + * @brief 获取视频帧平面数组 + */ + +@property (readonly) void ** _Nullable planeDataArray; + +/** + * + * @brief 获取 stride 数组。 stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节) + */ + +@property (readonly) int * _Nullable planeStrideArray; +/** + * + * @brief 视频帧引用计数加一 + * @note 视频帧消费者希望对视频帧进行异步处理时(例如切换线程进行渲染),需要调用此接口增加引用计数。异步处理结束则需要调用 `releaseRef` 使引用计数减1 + */ + +- (void)addRef; +/** + * + * @brief 视频帧引用计数减一。 + * @note 视频帧引用计数减为 0 时,视频帧对象会被释放。视频帧对象释放后,不应该继续使用视频帧。 + */ + +- (long)releaseRef; +@end + +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEncodedVideoFrame : NSObject +/** + * + * @brief 视频编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} + */ + +@property(assign, nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 视频帧编码类型。参看 ByteRTCVideoPictureType{@link #ByteRTCVideoPictureType} + */ + +@property(assign, nonatomic) ByteRTCVideoPictureType pictureType; +/** + * + * @brief 视频采集时间戳,单位:微秒 + */ + +@property(assign, nonatomic) SInt64 timestampUs; +/** + * + * @brief 视频编码时间戳,单位:微秒 + */ + +@property(assign, nonatomic) SInt64 timestampDtsUs; +/** + * + * @brief 视频帧宽,单位:px + */ + +@property(assign, nonatomic) int width; +/** + * + * @brief 视频帧高,单位:px + */ + +@property(assign, nonatomic) int height; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation} + */ + +@property(nonatomic, assign) ByteRTCVideoRotation rotation; +/** + * + * @brief 视频帧数据指针地址 + */ + +@property(strong, nonatomic) NSData * _Nonnull data; + +@end + +#pragma mark CDN/WTN object +/** + * + * @type keytype + * @brief 转推任务详情 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamTaskInfo : NSObject +/** + * + * @type keytype + * @brief 任务 ID + * 对于 WTN 流任务,该值代表 WTN 流 ID。你可以通过该 ID,指定需要订阅的 WTN 流。 + */ + +@property(nonatomic, copy) NSString * _Nonnull taskId; +/** + * + * @type keytype + * @brief 任务类型,合流转推 CDN 还是 WTN 流。 + */ + +@property(nonatomic, assign) ByteRTCMixedStreamPushTargetType pushTargetType; +@end +/** + * + * @type keytype + * @brief WTN 流裁剪信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSourceCropInfo : NSObject +/** + * + * @brief 裁剪后得到的视频帧左上角横坐标相对于裁剪前整体画面的比例,取值范围[0.0, 1.0) + */ + +@property(assign, nonatomic) CGFloat locationX; +/** + * + * @brief 裁剪后得到的视频帧左上角纵坐标相对于裁剪前整体画面的比例,取值范围[0.0, 1.0) + */ + +@property(assign, nonatomic) CGFloat locationY; +/** + * + * @brief 裁剪后得到的视频帧宽度相对于裁剪前整体画面的比例,取值范围(0.0, 1.0] + */ + +@property(assign, nonatomic) CGFloat widthProportion; +/** + * + * @brief 裁剪后得到的视频帧高度相对于裁剪前整体画面的比例,取值范围(0.0, 1.0] + */ + +@property(assign, nonatomic) CGFloat heightProportion; +@end +/** + * + * @type keytype + * @brief 图片合流水印图片分辨率。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig : NSObject +/** + * + * @brief 原始图片的宽度,单位为 px。 + */ + +@property (assign, nonatomic) NSInteger imageWidth; +/** + * + * @brief 原始图片的高度,单位为 px。 + */ + +@property (assign, nonatomic) NSInteger imageHeight; +@end + +/** + * + * @type keytype + * @brief 单个图片或视频流在合流中的布局信息。
    + * 开启合流功能后,在多路图片或视频流合流时,你可以设置其中一路流在合流中的预设布局信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamLayoutRegionConfig : NSObject +/** + * + * @brief 视频流发布用户的用户 ID 。建议设置。 + */ + +@property(copy, nonatomic) NSString * _Nonnull userID; +/** + * + * @brief 图片或视频流所在房间的房间 ID。建议设置。
    + * 如果此图片或视频流是通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 转发到你所在房间的媒体流时,你应将房间 ID 设置为你所在的房间 ID。 + */ + +@property(copy, nonatomic) NSString * _Nonnull roomID; +/** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 X 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的横向位移。
    + * 取值范围为 [0, 整体画布宽度)。默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger locationX; +/** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 Y 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的纵向位移。
    + * 取值范围为 [0, 整体画布高度)。默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger locationY; +/** + * + * @brief 单个用户画面的宽度。取值范围为 [0, 整体画布宽度],默认值为 360。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 单个用户画面的高度。取值范围为 [0, 整体画布高度],默认值为 640。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 用户视频布局在画布中的层级。取值范围为 [0 - 100],0 为底层,值越大越上层。默认值为 0。建议设置。 + */ + +@property(assign, nonatomic) NSInteger zOrder; +/** + * + * @brief 是否为本地用户 + */ + +@property(assign, nonatomic) BOOL isLocalUser; +/** + * + * @brief 流类型,默认为主流。参看 ByteRTCMixedStreamVideoType{@link #ByteRTCMixedStreamVideoType}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamVideoType streamType; +/** + * + * @brief 透明度,可选范围为 (0.0, 1.0],0.0 为全透明。默认值为 1.0。 + */ + +@property(assign, nonatomic) CGFloat alpha; +/** + * + * @brief 圆角半径相对画布宽度的比例。默认值为 `0.0`。
    + * 做范围判定时,首先根据画布的宽高,将 `width`,`height`,和 `cornerRadius` 分别转换为像素值:`width_px`,`height_px`,和 `cornerRadius_px`。然后判定是否满足 `cornerRadius_px < min(width_px/2, height_px/2)`:若满足,则设置成功;若不满足,则将 `cornerRadius_px` 设定为 `min(width_px/2, height_px/2)`,然后将 `cornerRadius` 设定为 `cornerRadius_px` 相对画布宽度的比例值。 + * WTN 流任务不支持设置本参数。 + */ + +@property(assign, nonatomic) CGFloat cornerRadius; +/** + * + * @brief 合流内容控制。默认值为 `ByteRTCTranscoderContentControlTypeHasAudioAndVideo`,参看 ByteRTCMixedStreamMediaType{@link #ByteRTCMixedStreamMediaType} 。 + */ + +@property (assign, nonatomic) ByteRTCMixedStreamMediaType mediaType; +/** + * + * @brief 图片或视频流的缩放模式,参看 ByteRTCMixedStreamRenderMode{@link #ByteRTCMixedStreamRenderMode}。默认值为 1。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamRenderMode renderMode; +/** + * + * @brief 合流布局区域类型。参看 ByteRTCMixedStreamLayoutRegionType{@link #ByteRTCMixedStreamLayoutRegionType}。建议设置。 + */ + +@property (assign, nonatomic) ByteRTCMixedStreamLayoutRegionType regionContentType; +/** + * + * @brief 水印图 RGBA 数据。当 `regionContentType` 为图片类型时需要设置。
    + * - `ByteRTCMixedStreamLayoutRegionTypeImage = 1` 时,传入图片 RGBA 数据。 + * - `ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) NSData * _Nullable imageWaterMark; +/** + * + * @brief 水印图参数。当 `regionContentType` 为图片类型时需要设置。
    + * - `ByteRTCMixedStreamLayoutRegionTypeImage = 1` 时,传入图片参数,参看 ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig{@link #ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig}。 + * - `ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig * _Nullable imageWaterMarkConfig; +/** + * + * @brief 空间位置。参看 ByteRTCPosition{@link #ByteRTCPosition}。 + */ + +@property (strong, nonatomic) ByteRTCPosition * _Nullable spatialPosition; +/** + * + * @brief 设置某用户是否应用空间音频效果:
    + * - Yes:启用(默认值) + * - No:禁用 + */ + +@property(assign, nonatomic) BOOL applySpatialAudio; +/** + * + * @valid since 3.57 + * @brief 设置占位图的填充模式。
    + * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。参看 ByteRTCMixedStreamAlternateImageFillMode{@link #ByteRTCMixedStreamAlternateImageFillMode}。 + */ + +@property (assign, nonatomic)ByteRTCMixedStreamAlternateImageFillMode alternateImageFillMode; +/** + * + * @valid since 3.57 + * @brief 设置占位图的 URL,长度小于 1024 字符. + */ + +@property(copy, nonatomic)NSString * alternateImageUrl; +/** + * + * @valid since 3.57 + * @brief WTN 流裁剪区域。参看 ByteRTCSourceCropInfo{@link #ByteRTCSourceCropInfo}。 + */ + +@property(strong, nonatomic) ByteRTCSourceCropInfo * _Nonnull sourceCrop; +@end + +/** + * + * @type keytype + * @brief 视频转码配置参数。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamVideoConfig : NSObject +/** + * + * @brief 视频编码格式,参看 ByteRTCMixedStreamVideoCodecType{@link #ByteRTCMixedStreamVideoCodecType}。默认值为 `0`。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamVideoCodecType videoCodec; +/** + * + * @brief 合流视频宽度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 640 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 合流视频高度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 360 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 合流视频帧率。单位为 FPS,取值范围为 [1,60],默认值为 15 FPS。建议设置。 + */ + +@property(assign, nonatomic) NSInteger fps; +/** + * + * @brief 视频 I 帧时间间隔。单位为秒,取值范围为 [1, 5],默认值为 2 秒。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(assign, nonatomic) NSInteger gop; +/** + * + * @brief 合流视频码率。单位为 Kbps,取值范围为 [1,10000],默认值为自适应模式。建议设置。 + */ + +@property(assign, nonatomic) NSInteger bitrate; +/** + * + * @brief 是否在合流中开启 B 帧,仅服务端合流支持. + */ + +@property(assign, nonatomic) BOOL enableBFrame; +@end + +/** + * + * @type keytype + * @brief 音频转码配置参数。
    + * 值不合法或未设置时,自动使用默认值。
    + * 本参数不支持过程中更新。
    + * WTN 流任务不支持设置本参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamAudioConfig : NSObject +/** + * + * @brief 音频编码格式。建议设置。 + * @param codec 音频编码格式,参看 ByteRTCMixedStreamAudioCodecType{@link #ByteRTCMixedStreamAudioCodecType}。默认值为 `0`。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamAudioCodecType audioCodec; +/** + * + * @brief 音频采样率,单位 Hz。可取 32000 Hz、44100 Hz、48000 Hz,默认值为 48000 Hz。建议设置。 + */ + +@property(assign, nonatomic) NSInteger sampleRate; +/** + * + * @brief 音频声道数。可取 1(单声道)、2(双声道),默认值为 2。建议设置。 + */ + +@property(assign, nonatomic) NSInteger channels; +/** + * + * @brief 音频码率,单位 Kbps。可取范围 [32, 192],默认值为 64 Kbps。建议设置。 + */ + +@property(assign, nonatomic) NSInteger bitrate; +/** + * + * @brief AAC 编码规格,参看 ByteRTCMixedStreamAudioProfile{@link #ByteRTCMixedStreamAudioProfile}。默认值为 `0`。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamAudioProfile audioProfile; +@end + +/** + * + * @type keytype + * @brief 推流 CDN 的空间音频参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamSpatialAudioConfig : NSObject +/** + * + * @brief 是否开启推流 CDN 时的空间音频效果。
    + * 当你启用此效果时,你需要设定推流中各个 ByteRTCMixedStreamLayoutRegionConfig{@link #ByteRTCMixedStreamLayoutRegionConfig} 的 `spatialPosition` 值,实现空间音频效果。 + */ + +@property(assign, nonatomic) BOOL enableSpatialRender; +/** + * + * @brief 听众的空间位置。参看 ByteRTCPosition{@link #ByteRTCPosition}。
    + * 听众指收听来自 CDN 的音频流的用户。
    + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) ByteRTCPosition * _Nullable audienceSpatialPosition; +/** + * + * @brief 听众的空间朝向。参看 ByteRTCHumanOrientation{@link #ByteRTCHumanOrientation}。
    + * 听众指收听来自 CDN 的音频流的用户。 + */ + +@property(strong, nonatomic) ByteRTCHumanOrientation * _Nullable audienceSpatialOrientation; + +@end + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 客户端合流参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCClientMixedStreamConfig : NSObject +/** + * + * @brief 客户端合流是否使用混音,默认为 true。 + */ + +@property(assign, nonatomic) BOOL useAudioMixer; +/** + * + * @brief 客户端合流回调视频格式,参看 ByteRTCMixedStreamClientMixVideoFormat{@link #ByteRTCMixedStreamClientMixVideoFormat}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamClientMixVideoFormat videoFormat; +@end + +/** + * + * @hidden internal use only + * @valid since 3.52 + * @type keytype + * @brief 转推直播单通同步参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamSyncControlConfig : NSObject +/** + * + * @brief 同步策略 + */ + +@property(assign, nonatomic)ByteRTCMixedStreamSyncStrategy syncStrategy; +/** + * + * @brief 在进行同步处理时,基准流所属用户的 ID。默认为空。 + */ + +@property(copy, nonatomic) NSString * _Nullable baseUserID; +/** + * + * @brief 在进行同步处理时,缓存音视频流的最大长度。单位为毫秒。默认值为 2000。
    + * 参与转推直播的这些媒体流延迟越高,应该将此值设置的越大。但此值越大,因缓存媒体流造成的内存占用也会更大。推荐值为 `2000`。 + */ + +@property(assign, nonatomic) NSInteger maxCacheTimeMs; +/** + * + * @brief 是否通过 RTC SDK 进行转推直播。默认为 True。
    + * 如果选择 `False`,你会通过 onCacheSyncVideo:withDataFrame:withUids:taskId:{@link #ByteRTCClientMixedStreamDelegate#onCacheSyncVideo:withDataFrame:withUids:taskId:} 收到同步的帧,你可以使用此视频帧,自行实现合流转推。 + */ + +@property(assign, nonatomic) BOOL videoNeedSdkMix; +@end + +/** + * + * @type keytype + * @brief 服务端合流控制参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamControlConfig : NSObject +/** + * + * @valid since 3.56 + * @brief 是否开启单独发送声音提示 SEI 的功能:
    + * - True:开启; + * - False:关闭。(默认值) + * 开启后,你可以通过 `ByteRTCMixedStreamControlConfig.seiContentMode` 控制 SEI 的内容是否只携带声音信息。 + */ + +@property(assign, nonatomic) BOOL enableVolumeIndication; +/** + * + * @valid since 3.56 + * @brief 声音提示间隔,单位为秒,取值范围为 [0.3,+∞),默认值为 2。
    + * 此值仅取整百毫秒。若传入两位及以上小数,则四舍五入取第一位小数的值。例如,若传入 0.36,则取 0.4。 + */ + +@property(assign, nonatomic) CGFloat volumeIndicationInterval; +/** + * + * @valid since 3.56 + * @brief 有效音量大小,取值范围为 [0, 255],默认值为 0。
    + * 超出取值范围则自动调整为默认值,即 0。 + */ + +@property(assign, nonatomic) NSInteger talkVolume; +/** + * + * @valid since 3.56 + * @brief 声音信息 SEI 是否包含音量值:
    + * - True:是; + * - False:否,默认值。 + */ + +@property(assign, nonatomic) BOOL isAddVolumeValue; +/** + * + * @valid since 3.56 + * @brief 设置 SEI 内容。参看 ByteRTCMixedStreamSEIContentMode{@link #ByteRTCMixedStreamSEIContentMode}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamSEIContentMode seiContentMode; +/** + * + * @valid since 3.56 + * @brief SEI 信息的 payload type。
    + * 默认值为 `100`,只支持设置 `5` 和 `100`。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + +@property(assign, nonatomic) NSInteger seiPayloadType; +/** + * + * @valid since 3.56 + * @brief SEI 信息的 payload UUID。 + * @note PayloadType 为 `5` 时,必须填写 PayloadUUID,否则会收到错误回调,错误码为 1091。
    + * PayloadType 不是 `5` 时,不需要填写 PayloadUUID,如果填写会被后端忽略。
    + * 该参数长度需为 32 位,否则会收到错误码为 1091 的回调。
    + * 该参数每个字符的范围需为 [0, 9] [a, f] [A, F]
    + * 该参数不应带有`-`字符,如系统自动生成的 UUID 中带有`-`,则应删去。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + +@property(copy, nonatomic) NSString *seiPayloadUUID; +/** + * + * @valid since 3.57 + * @brief 设置合流推到 CDN 时输出的媒体流类型。参看 ByteRTCMixedStreamMediaType{@link #ByteRTCMixedStreamMediaType}。
    + * 默认输出音视频流。支持输出纯音频流,但暂不支持输出纯视频流。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamMediaType mediaType; +/** + * + * @valid since 3.57 + * @brief 设置是否在没有用户发布流的情况下发起转推直播。具体参看 ByteRTCMixedStreamPushMode{@link #ByteRTCMixedStreamPushMode}。
    + * 该参数在发起合流任务后的转推直播过程中不支持动态变更。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushMode pushStreamMode; +@end + +/** + * + * @type keytype + * @brief 合流转推配置参数。
    + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。
    + * 如无特别说明,参数可用于启动和更新任务。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamPushTargetConfig : NSObject +/** + * + * @type api + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * 本参数不支持过程中更新。 + * WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushCDNURL; +/** + * + * @type keytype + * @brief WTN 流 ID。 + * 合流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushWTNStreamID; +/** + * + * @type keytype + * @brief 推流任务类型。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushTargetType pushTargetType; +@end +/** + * + * @type keytype + * @brief 合流转推配置参数。 + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamConfig : NSObject +/** + * + * @brief 合流背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +@property(copy, nonatomic) NSString *_Nonnull backgroundColor; +/** + * + * @brief 用户布局信息列表。每条流的具体布局参看 ByteRTCMixedStreamLayoutRegionConfig{@link #ByteRTCMixedStreamLayoutRegionConfig}。建议设置。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +@property(copy, nonatomic) NSArray * _Nonnull regions; + + +/** + * + * @brief 视频转码参数。详见 ByteRTCMixedStreamVideoConfig{@link #ByteRTCMixedStreamVideoConfig} 数据类型。建议设置。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamVideoConfig * _Nonnull videoConfig; +/** + * + * @brief 音频合流参数,参看 ByteRTCMixedStreamAudioConfig{@link #ByteRTCMixedStreamAudioConfig}。建议设置。
    + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamAudioConfig * _Nonnull audioConfig; +/** + * + * @hidden for internal use only + * @brief 转推同步配置。详见 ByteRTCMixedStreamSyncControlConfig{@link #ByteRTCMixedStreamSyncControlConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamSyncControlConfig * _Nullable syncControlConfig; +/** + * + * @hidden(macOS) + * @brief 转推 CDN 空间音频配置。详见 ByteRTCMixedStreamSpatialAudioConfig{@link #ByteRTCMixedStreamSpatialAudioConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamSpatialAudioConfig * _Nonnull spatialAudioConfig; +/** + * + * @brief 服务端合流控制参数。详见 ByteRTCMixedStreamControlConfig{@link #ByteRTCMixedStreamControlConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamControlConfig * _Nonnull controlConfig; +/** + * + * @hidden for internal use only + * @brief 动态扩展自定义参数。 + */ + +@property(strong, nonatomic) NSMutableDictionary * _Nullable advancedConfig; +/** + * + * @hidden for internal use only + * @brief 业务透传鉴权信息 + */ + +@property(strong, nonatomic) NSMutableDictionary * _Nullable authInfo; + +/** + * + * @hidden for internal use only + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushURL; +/** + * + * @brief 推流房间 ID。`roomID` 和 `userID` 长度相加不得超过 126 字节。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(copy, nonatomic) NSString * _Nonnull roomID; +/** + * + * @brief 推流用户 ID。`roomID` 和 `userID` 长度相加不得超过 126 字节。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(copy, nonatomic) NSString * _Nonnull userID; +/** + * + * @brief 用户配置的额外数据。
    + * WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userConfigExtraInfo; +/** + * + * @valid since 3.57 + * @brief 设置合流后整体画布的背景图片 URL,长度最大为 1023 bytes。
    + * 必须是http开头,支持的图片格式包括:JPG, JPEG, PNG。如果背景图片的宽高和整体屏幕的宽高不一致,背景图片会缩放到铺满屏幕。 + */ + +@property(copy, nonatomic) NSString *_Nonnull backgroundImageURL; +/** + * + * @brief WTN 流布局模式。参看 ByteRTCStreamLayoutMode{@link #ByteRTCStreamLayoutMode}。可选:
    + * - `auto`: 自动布局。默认值 + * - `custom`: 自定义布局。 + */ + +@property(assign, nonatomic)ByteRTCStreamLayoutMode layoutMode; +/** + * + * @brief WTN 流的补帧模式。参看 ByteRTCInterpolationMode{@link #ByteRTCInterpolationMode}。可选: + */ + +@property(assign, nonatomic) ByteRTCInterpolationMode interpolationMode; + +/** + * + * @brief 任务类型。参看 ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}。可选: + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushTargetType pushTargetType; +/** + * + * @brief 获取默认转推直播配置参数。 + * @return 转推直播配置参数,参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。 + */ +/**s + * + * @brief Gets the default configurations for pushing streams to CDN. + * @return Configurations for pushing streams to CDN. See ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}. + */ ++ (instancetype _Nonnull)defaultMixedStreamConfig; +@end + +/** + * + * @type keytype + * @brief 单流转推配置目标房间信息 + */ + +BYTERTC_APPLE_EXPORT @interface DestInfo: NSObject + /** + * + * @brief 目标房间ID + */ + + @property(nonatomic, copy) NSString * _Nonnull roomId; + + /** + * + * @brief 目标房间中的用户ID + */ + + @property(nonatomic, copy) NSString * _Nonnull userId; +@end + +/** + * + * @type keytype + * @brief 单流转推类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSingleStreamPushType) { + /** + * + * @brief 单流转推到CDN + */ + + ByteRTCSingleStreamPushToCDN = 1, + /** + * + * @brief 单流转推到RTC房间 + */ + + ByteRTCSingleStreamPushToRTC = 2 +}; + +/** + * + * @type keytype + * @brief 单流转推直播配置参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPushSingleStreamParam : NSObject +/** + * + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + */ + +@property(copy, nonatomic) NSString * _Nullable url; +/** + * + * @brief 媒体流所在的房间 ID + */ + +@property(copy, nonatomic) NSString * _Nonnull roomId; +/** + * + * @brief 媒体流所属的用户 ID + */ + +@property(copy, nonatomic) NSString * _Nullable userId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 跨房间转发的目标房间信息数组,默认值为 nil。
    + * 当需要将媒体流从当前房间转发到其他房间时,可在此数组中指定多个目标房间信息。 + */ + +@property(nonatomic, strong) NSArray * _Nullable destInfo; +/** + * + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间,默认值为转推到 CDN。 + */ + +@property(assign, nonatomic) ByteRTCSingleStreamPushType pushType; +@end + +/** + * + * @type keytype + * @brief 视频订阅配置信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeVideoConfig : NSObject +/** + * + * @brief 订阅的视频流分辨率下标。
    + * 当远端用户通过调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setlocalsimulcastmode:} 方法启动发布多路不同分辨率的视频流时,本地用户需通过此参数指定希望订阅的流。
    + * 默认值为 0,即订阅第一路流。
    + * 如果不想更改之前的设置,可以输入 -1。 + */ + +@property(assign, nonatomic) NSInteger videoIndex; +/** + * + * @brief 远端用户优先级,参看 ByteRTCRemoteUserPriority{@link #ByteRTCRemoteUserPriority},默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger priority; +@end + +/** + * + * @type keytype + * @brief 性能回退相关数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSourceWantedData : NSObject +/** + * + * @brief 推荐视频输入宽 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 推荐视频输入高 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 推荐视频输入帧率 + */ + +@property(nonatomic, assign) NSInteger frameRate; +@end + +/** + * + * @type keytype + * @brief 流切换信息。本地用户订阅的远端流触发回退策略时的流切换信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamSwitchEvent : NSObject +/** + * + * @brief 订阅的音视频流的发布者的用户 ID。 + */ + +@property(nonatomic, copy) NSString * _Nonnull uid; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 流切换前订阅视频流的分辨率对应的索引 + */ + +@property(nonatomic, assign) NSInteger beforeVideoIndex; +/** + * + * @brief 流切换后订阅视频流的分辨率对应的索引 + */ + +@property(nonatomic, assign) NSInteger afterVideoIndex; +/** + * + * @brief 流切换前是否有视频流 + */ + +@property(nonatomic, assign) BOOL beforeVideoEnabled; +/** + * + * @brief 流切换后是否有视频流 + */ + +@property(nonatomic, assign) BOOL afterVideoEnabled; +/** + * + * @brief 流切换原因,详见 ByteRTCFallbackOrRecoverReason{@link #ByteRTCFallbackOrRecoverReason}。 + */ + +@property(nonatomic, assign) ByteRTCFallbackOrRecoverReason reason; +@end +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51, use ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} instead. + * @type callback + * @brief 自定义的视频渲染 + * @list + */ + +DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate") +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSinkProtocol +@required +/** + * + * @type callback + * @brief 初始化渲染器 + * @return + * - YES: 自定义的渲染器初始化完成 + * - NO: 自定义的渲染器初始化失败,不继续往下运行 + * @note 初始化渲染器的时候会回调这个方法 + * @list + */ + +- (BOOL)shouldInitialize DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate");; +/** + * + * @type callback + * @brief 启动渲染器 + * @note 在开启渲染功能的时候会回调这个方法 + * @list + */ + +- (void)shouldStart DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 停止渲染器 + * @note 在停止渲染功能的时候会回调这个方法 + * @list + */ + +- (void)shouldStop DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 释放渲染器 + * @note 渲染器即将被废弃的时候会回调这个方法 + * @list + */ + +- (void)shouldDispose DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 获取 PixelFormat 格式 + * @return Buffer 类型,{@link #ByteRTCVideoSinkPixelFormat} + * @note 通过该方法的返回值,告知 SDK PixelFormat 的格式 + * @list + */ + +- (ByteRTCVideoPixelFormat)pixelFormat DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 输出视频的 PixelBuffer + * @param pixelBuffer 视频的 PixelBuffer + * @param rotation 视频旋转角度,{@link #ByteRTCVideoRotation} + * @param cameraId 视频的相机 Id, {@link #ByteRTCCameraID} + * @param extendedData 视频帧附加的数据,视频解码后获得的附加数据 + * @note 通过该方法获取视频的 PixelBuffer + * @list + */ + +- (void)renderPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer + rotation:(ByteRTCVideoRotation)rotation + cameraId:(ByteRTCCameraID) cameraId + extendedData:(NSData * _Nullable)extendedData DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); + +/** + * + * @hidden constructor/destructor + */ + +- (int)getRenderElapse; +@end + +/** + * + * @type keytype + * @brief 自定义视频渲染器 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSinkDelegate +@optional +/** + * + * @deprecated since 3.54, use onFrame: instead + * @type api + * @brief 输出视频的 PixelBuffer + * @param pixelBuffer 视频的 PixelBuffer + * @param rotation 视频旋转角度,参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation} + * @param contentType 视频内部类型 参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + * @param extendedData 视频解码后获得的附加数据 + * @list + */ + +- (void)renderPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer + rotation:(ByteRTCVideoRotation)rotation + contentType:(ByteRTCVideoContentType)contentType + extendedData:(NSData * _Nullable)extendedData; +/** + * + * @hidden for internal use only + */ + +- (int)getRenderElapse; + +@required +/** + * + * @type api + * @brief 输出视频的 PixelBuffer + * @param videoFrame 视频帧 + * @list + */ + +- (void)onFrame:(id _Nonnull)videoFrame; + +@end +/** + * + * @hidden for internal use only + * @type callback + * @brief 外部渲染数据的消费接口 + * @list + */ + +@protocol ByteRTCVideoFrameConsumerObserver +/** + * + * @brief 输出 yuv420 数据 + * @param ocFrame 数据 Buffer + * @param width 视频宽度 + * @param rotation 视频旋转角度 + * @param timestamp 时间戳 + */ + +- (void)consumeYUV420Buffer:(CVPixelBufferRef _Nullable)ocFrame + width:(NSInteger)width rotation:(NSInteger)rotation timestamp:(long)timestamp; +/** + * + * @brief 输出 RGBA 数据 + * @param ocFrame 数据 Buffer + * @param width 视频宽度 + * @param rotation 视频旋转角度 + * @param timestamp 时间戳 + */ + +- (void)consumeRGBABuffer:(CVPixelBufferRef _Nullable)ocFrame width:(NSInteger)width + rotation:(NSInteger)rotation timestamp:(long)timestamp; +@end +/** + * + * @type keytype + * @brief 本地视频帧回调配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalVideoSinkConfig : NSObject +/** + * + * @brief 本地视频帧回调位置,参看 ByteRTCLocalVideoSinkPosition{@link #ByteRTCLocalVideoSinkPosition},默认回调前处理后的视频帧。 + */ + +@property(nonatomic, assign) ByteRTCLocalVideoSinkPosition position; +/** + * + * @brief 本地视频帧回调格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat},默认值为 0。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkPixelFormat requiredPixelFormat; + +@end + +/** + * + * @type keytype + * @brief 远端视频帧回调配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoSinkConfig : NSObject +/** + * + * @brief 远端视频帧回调位置,参看 ByteRTCLocalVideoSinkPosition{@link #ByteRTCLocalVideoSinkPosition},默认回调后处理后的视频帧。 + */ + +@property(nonatomic, assign) ByteRTCRemoteVideoSinkPosition position; +/** + * + * @brief 远端视频帧回调格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat},默认值为 0。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkPixelFormat requiredPixelFormat; +/** + * + * @brief 是否将视频帧自动转正,参看 ByteRTCVideoApplyRotation{@link #ByteRTCVideoApplyRotation},默认为不旋转。 + */ + +@property(nonatomic, assign) ByteRTCVideoApplyRotation applyRotation; +/** + * + * @brief 是否将视频帧镜像。参看 ByteRTCVideoSinkMirrorType{@link #ByteRTCVideoSinkMirrorType},默认为不镜像。
    + * 本设置与 setRemoteVideoMirrorType:withMirrorType:{@link #ByteRTCEngine#setRemoteVideoMirrorType:withMirrorType:} (适用于内部渲染)相互独立。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkMirrorType mirrorType; + +@end + +/** + * + * @type keytype + * @brief 视频处理配置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoPreprocessorConfig : NSObject +/** + * + * @brief 视频帧的像素格式,参看 ByteRTCVideoPixelFormat{@link #ByteRTCVideoPixelFormat}。
    + * 当前仅支持 `ByteRTCVideoPixelFormatI420` 和 `ByteRTCVideoPixelFormatUnknown` 格式。 + */ + +@property(nonatomic, assign) ByteRTCVideoPixelFormat requiredPixelFormat; +/** + * + * @brief 自定义视频前处理的作用范围,参看 ByteRTCProcessorActionDomain{@link #ByteRTCProcessorActionDomain}。 + * @param actionDomain 自定义视频前处理的作用范围。 + */ + +@property(nonatomic, assign) ByteRTCProcessorActionDomain actionDomain; + +@end +/** + * + * @type callback + * @brief 视频处理回调接口类
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoProcessorDelegate +/** + * + * @type api + * @brief 获取 RTC SDK 采集得到的视频帧,根据 registerLocalVideoProcessor:withConfig:{@link #ByteRTCEngine#registerLocalVideoProcessor:withConfig:} 设置的视频前处理器,进行视频前处理,最终将处理后的视频帧给到 RTC SDK 用于编码传输。 + * @param srcFrame RTC SDK 采集得到的视频帧,参考: ByteRTCVideoFrame{@link #ByteRTCVideoFrame} + * @return 经过视频前处理后的视频帧,返回给 RTC SDK 供编码和传输,参考: ByteRTCVideoFrame{@link #ByteRTCVideoFrame} + * @note + * - 如果需要取消视频前处理,可以将视频前处理器设置为 nullptr。 + * - 应用层实现 `processVideoFrame` 接口时,可以直接修改 `src_frame` 的缓冲区,调用 `addRef` 方法将 `src_frame` 引用计数加一,然后将修改后的 `src_frame` 返回, 也可以创建一个新的视频帧并返回。 + * - 对于 `processVideoFrame` 返回的视频帧,在 SDK 层消费完成后,SDK 内部总是调用这个视频帧的 releaseRef 方法。 + * @list 自定义流处理 + */ + +- (id _Nullable)processVideoFrame:(id _Nonnull)srcFrame; + +@end +/** + * + * @hidden(iOS) + * @type keytype + * @brief 屏幕采集设置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenCaptureParam : NSObject +/** + * + * @brief 视频最大宽度,单位:像素。 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频最大高度,单位:像素。 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 屏幕采集帧率,单位:fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 发送屏幕采集码率,单位 kbps + */ + +@property(nonatomic, assign) NSInteger bitrate; +/** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, bitrate),当 `bitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `bitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `bitrate` < `0` 时,适配码率模式。 + */ + +@property(nonatomic, assign) NSInteger minBitrate; +/** + * + * @brief 采集区域 + */ + +@property(nonatomic, assign) CGRect regionRect; +/** + * + * @brief 是否采集鼠标 + */ + +@property(nonatomic, assign) ByteRTCMouseCursorCaptureState mouseCursorCaptureState; +/** + * + * @brief 屏幕过滤设置 + */ + +@property (strong, nonatomic) NSArray * _Nullable excludedWindowList; +/** + * + * @brief 采集区域的边框高亮设置,参看 ByteRTCHighlightConfig{@link #ByteRTCHighlightConfig}。 + */ + +@property (strong, nonatomic) ByteRTCHighlightConfig * _Nonnull highlightConfig; +@end +/** + * + * @type keytype + * @brief 屏幕采集对象的具体信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenCaptureSourceInfo : NSObject +/** + * + * @brief 屏幕分享时,共享对象的类型,参看 ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType} + */ + +@property (assign, nonatomic) ByteRTCScreenCaptureSourceType sourceType; +/** + * + * @brief 屏幕分享时,共享对象的 ID。 + */ + +@property (assign, nonatomic) intptr_t sourceId; +/** + * + * @brief 屏幕分享时共享对象的名称。 + */ + +@property (copy, nonatomic) NSString * _Nullable sourceName; +/** + * + * @brief 共享的应用窗体所属应用的名称
    + * 当共享对象为应用窗体时有效 + */ + +@property (copy, nonatomic) NSString * _Nullable application; +/** + * + * @brief 共享的应用窗体所属应用进程的 pid
    + * 当共享对象为应用窗体时有效 + */ + +@property (assign, nonatomic) int pid; +/** + * + * @brief 共享的屏幕是否为主屏。
    + * 当共享对象为屏幕时有效 + */ + +@property (assign, nonatomic) BOOL primaryMonitor; +/** + * + * @brief 屏幕共享对象的坐标。多显示器的场景下,屏幕坐标系统以主屏左上角为原点 (0, 0),向右向下扩展。 + */ + +@property (assign, nonatomic) CGRect regionRect; + +@end + +/** + * + * @type keytype + * @region 视频管理 + * @brief 屏幕采集设置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenParam : NSObject +/** + * + * @brief 编码帧率,单位为 fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 编码码率,小于 0 时 SDK 会根据高宽自适应码率, 单位 kbps + */ + +@property(nonatomic, assign) NSInteger bitrate; +@end + +/** + * + * @type keytype + * @brief 虚拟背景对象。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVirtualBackgroundSource: NSObject +/** + * + * @brief 虚拟背景类型,详见 ByteRTCVirtualBackgroundSourceType{@link #ByteRTCVirtualBackgroundSourceType} 。 + */ + +@property(nonatomic, assign) ByteRTCVirtualBackgroundSourceType sourceType; +/** + * + * @brief 纯色背景使用的颜色。
    + * 格式为 0xAARRGGBB 。 + */ + +@property int sourceColor; +/** + * + * @brief 自定义背景图片的绝对路径。
    + * - 支持的格式为 jpg、jpeg、png。 + * - 图片分辨率超过 1080P 时,图片会被等比缩放至和视频一致。 + * - 图片和视频宽高比一致时,图片会被直接缩放至和视频一致。 + * - 图片和视频长宽比不一致时,为保证图片内容不变形,图片按短边缩放至与视频帧一致,使图片填满视频帧,对多出的高或宽进行剪裁。 + * - 自定义图片带有局部透明效果时,透明部分由黑色代替。 + */ + +@property(nonatomic) NSString* _Nullable sourcePath; +@end +/** + * + * @type callback + * @brief 本地视频帧监测器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCLocalEncodedVideoFrameObserver + @optional +/** + * + * @type callback + * @brief 调用 registerLocalEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerLocalEncodedVideoFrameObserver:} 后,SDK 每次使用内部采集,采集到一帧视频帧,或收到一帧外部视频帧时,都会回调该事件。 + * @param videoSource 预留参数 + * @param frame 本地视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame} + * @list 自定义流处理 + */ + +- (void)onLocalEncodedVideoFrame:(ByteRTCVideoSource* _Nullable)videoSource + Frame:(ByteRTCEncodedVideoFrame * _Null_unspecified)frame; +@end + +#pragma mark - ByteRTCEngineExternalVideoEncoderEventHandler +/** + * + * @type callback + * @brief 自定义编码帧回调类 + * @note 回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCExternalVideoEncoderEventHandler +@required +/** + * + * @type callback + * @brief 提示自定义编码帧可以开始推送的回调。
    + * 收到该回调后,你即可调用 pushExternalEncodedVideoFrame:withEncodedVideoFrame:{@link #ByteRTCEngine#pushExternalEncodedVideoFrame:withEncodedVideoFrame:} 向 SDK 推送自定义编码视频帧 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @list 自定义流处理 + */ + +- (void)onStart:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info; +@required +/** + * + * @type callback + * @brief 当收到该回调时,你需停止向 SDK 推送自定义编码视频帧 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @list 自定义流处理 + */ + +- (void)onStop:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info; +@required +/** + * + * @type callback + * @brief 当自定义编码流的帧率或码率发生变化时,触发该回调 + * @param streamId 远端编码流 ID + * @param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @param fps 变化后的帧率,单位:fps + * @param bitRateKps 变化后的码率,单位:kbps + * @list 自定义流处理 + */ + +- (void)onRateUpdate:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex + withFps:(NSInteger)fps + withBitRate:(NSInteger)bitRateKps; +@required +/** + * + * @type callback + * @brief 提示流发布端需重新生成关键帧的回调 + * @param streamId 远端编码流 ID + * @param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @list 自定义流处理 + */ + +- (void)onRequestKeyFrame:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex; +@required +/** + * + * @valid since 3.56 + * @type callback + * @brief 作为自定义编码视频流的发送端,你会在视频流可发送状态发生变化时,收到此回调。
    + * 你可以根据此回调的提示,仅对可发送的视频流进行编码,以降低本端视频编码性能消耗。此回调会根据多个因素综合判断触发,包括:本端设备性能和本端网络性能,以及按需订阅场景下,远端用户是否订阅。 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @param active 该路流可发送状态 + * @note 要收到此回调,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 设置视频源是自定义编码,且通过 setExternalVideoEncoderEventHandler:{@link #ByteRTCEngine#setExternalVideoEncoderEventHandler:} 设置了回调句柄。 + * @list 自定义流处理 + */ + +- (void)onActiveVideoLayer:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex + withActive:(BOOL)active; +@end + +#pragma mark - ByteRTCEngineRemoteEncodedVideoFrameObserver +/** + * + * @type callback + * @brief 远端编码后视频数据监测器 + * @note 回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频管理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCRemoteEncodedVideoFrameObserver +@required +/** + * + * @type callback + * @brief 调用 registerRemoteEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedVideoFrameObserver:} 后,SDK 监测到远端编码后视频数据时,触发该回调 + * @param streamId 收到的远端流 ID + * @param info 收到的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoFrame 收到的远端视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame} + * @list 自定义流处理 + */ + +- (void)onRemoteEncodedVideoFrame:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withEncodedVideoFrame:(ByteRTCEncodedVideoFrame* _Nonnull)videoFrame; +@end + +/** + * + * @type keytype + * @brief 视频帧基础信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoFrameInfo : NSObject +/** + * + * @brief 视频帧的宽度(像素) + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频帧的高度(像素) + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 视频帧顺时针旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + */ + +@property(nonatomic, assign) ByteRTCVideoRotation rotation; +@end + +#pragma mark - ByteRTCPushMixedStreamToCDNObserver +/** + * + * @hidden for internal use only + * @type callback + * @brief 转推直播观察者。(Valid from 352.1)
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list CDN 推流 + */ + +@protocol ByteRTCClientMixedStreamDelegate +/** + * + * @hidden for internal use only + */ + +@optional +- (void)onClientMixedStreamEvent:(ByteRTCMixedStreamTaskEvent)event withTaskInfo:(ByteRTCMixedStreamTaskInfo*)info withMixedType:(ByteRTCMixedStreamType)type withErrorCode:(ByteRTCMixedStreamTaskErrorCode)errorCode; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流音频首帧回调 + * @param taskID 任务 ID + * @list CDN 推流 + */ + +- (void)onMixedFirstAudioFrame:(NSString *)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流视频首帧回调 + * @param taskID 任务 ID + * @list CDN 推流 + */ + + - (void)onMixedFirstVideoFrame:(NSString *)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流音频 PCM 回调 + * @param audioFrame PCM 编码的合流音频数据帧,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @param timeStamp 时间戳,单位毫秒。 + * @param taskId 转推直播任务 ID。 + * @note 收到该回调的周期为每 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * @list CDN 推流 + */ + +- (void)onMixedAudioFrame:(ByteRTCAudioFrame *_Nonnull)audioFrame withTimestamp:(int64_t)timeStamp withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流视频 YUV 回调 + * @param videoFrame YUV 合流视频数据帧,参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @param taskId 转推直播任务 ID。 + * @note 收到该回调的周期取决于视频的帧率。 + * @list CDN 推流 + */ + +- (void)onMixedVideoFrame:(id_Nonnull)videoFrame withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流视频 SEI 数据 + * @param dataFrame SEI 数据,详见 ByteRTCFrameExtendedData {@link #ByteRTCFrameExtendedData}。 + * @param taskId 转推直播任务 ID。 + * @list CDN 推流 + */ + +- (void)onMixedDataFrame:(ByteRTCFrameExtendedData *_Nonnull)dataFrame withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 同步视频帧回调。 + * @param videoFrame 同步视频帧数组,与 uids 对应。 + * @param dataFrame SEI 数据。 + * @param uids 同步视频帧对应的 uid 数组。 + * @param task_id 转推直播任务 ID。 + * @list CDN 推流 + */ + +- (void)onCacheSyncVideo:(NSArray> *_Nonnull)videoFrames withDataFrame:(NSArray *_Nonnull)dataFrames + withUids:(NSArray*_Nonnull)uids taskId:(NSString *_Nonnull)taskId; +@end +/** + * + * @type callback + * @brief 人脸检测结果回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +@protocol ByteRTCFaceDetectionObserver +/** + * + * @type callback + * @brief 特效 SDK 进行人脸检测结果的回调。
    + * 调用 enableFaceDetection:withInterval:withModelPath:{@link #ByteRTCVideoEffect#enableFaceDetection:withInterval:withModelPath:} 注册了 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver} ,并使用 RTC SDK 中包含的特效 SDK 进行视频特效处理时,你会收到此回调。 + * @param result 人脸检测结果, 参看 ByteRTCFaceDetectionResult{@link #ByteRTCFaceDetectionResult}。 + * @list 视频管理 + */ + +- (void)onFaceDetectResult:(ByteRTCFaceDetectionResult * _Nonnull)result; +/** + * + * @hidden for intrnal use only + * @type callback + * @brief 特效 SDK 进行人像属性检测结果的回调。
    + * 调用 registerFaceDetectionObserver:withInterval: 注册了 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver},并调用 setVideoEffectExpressionDetect:{@link #ByteRTCVideoEffect#setVideoEffectExpressionDetect:} 开启人像属性检测后,你会收到此回调。 + * @param result 人像属性检测结果, 参看 ByteRTCExpressionDetectResult{@link #ByteRTCExpressionDetectResult}。 + * @list 视频处理 + */ + +- (void)onExpressionDetectResult:(ByteRTCExpressionDetectResult * _Nonnull)result; +@end + +#pragma mark - ByteRTCEngineMediaMetadataObserver +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} instead. + * @type callback + * @brief 使用内部源视频采集时,配置和获取附加数据接口 + * @list Video Processing + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCMediaMetadataObserver +@required +/** + * + * @type callback + * @brief 当 SDK 准备发送一个视频帧时,会回调该接口,以确定是否需要在该视频帧中添加 metadata + * @param timestamp 待添加 metadata 视频帧的时间戳,单位微秒 + * @return 待发送的数据,大小不能超过 1024bytes + * @note + * - 返回 null 代表不需要添加 metadata + * - 回调中不能做长时间逻辑处理,以免影响视频卡顿 + * @list 自定义流处理 + */ + +- (NSData *_Nullable)videoFrameMediaMetaDataAtTime:(NSTimeInterval)timestamp; + +@optional +/** + * + * @type callback + * @brief 当 SDK 收到的视频帧包含 medatada 时,会回调该接口 + * @param uid 当前帧所属的用户 ID + * @param extendedData metadata + * @param timestamp 包含 metadata 视频帧的时间戳,单位为微秒 + * @note 回调中不能做长时间逻辑处理,以免影响视频卡顿 + * @list 自定义流处理 + */ + +- (void)receiveVideoFrameFromUID:(NSString * _Nonnull)uid + withExtendedData:(NSData* _Nullable)extendedData atTimestamp:(NSTimeInterval)timestamp; +@end +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension120x120; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension160x120; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension180x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension240x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension320x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension240x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension320x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension424x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension360x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension480x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension640x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension480x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension640x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension840x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension960x540; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension960x720; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension1280x720; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension1920x1080; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension2540x1440; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension3840x2160; +/** + * + * @type keytype + * @brief 视频编码配置。参考 [设置视频发布参数](https: + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoEncoderConfig: NSObject +/** + * + * @brief 视频宽度,单位:px + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频高度,单位:px + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 视频帧率,单位:fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 最大编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
    + * 设为 -1 即适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率。
    + * 设为 0 则不对视频流进行编码发送。
    + * 344 及以上版本,内部采集时默认值为 -1,344 以前版本无默认值,需手动设置。 + */ + +@property(nonatomic, assign) NSInteger maxBitrate; +/** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, maxBitrate),当 `maxBitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `maxBitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `maxBitrate` < `0` 时,适配码率模式。 + */ + +@property(nonatomic, assign) NSInteger minBitrate; +/** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + +@property(nonatomic, assign) NSInteger keyFrameIntervalMS; +/** + * + * @brief 编码策略偏好,默认为帧率优先。参看 ByteRTCVideoEncoderPreference{@link #ByteRTCVideoEncoderPreference}。 + */ + +@property(nonatomic, assign) ByteRTCVideoEncoderPreference encoderPreference; +@end + +/** + * + * @type keytype + * @brief 远端视频帧信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoConfig : NSObject +/** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0 即满帧订阅,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + +@property (nonatomic, assign) int framerate; +/** + * + * @brief 视频宽度,单位:px + */ + +@property(nonatomic, assign) int width; +/** + * + * @brief 视频高度,单位:px + */ + +@property(nonatomic, assign) int height; +@end +/** + * + * @type keytype + * @brief 房间参数配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomConfig : NSObject +/** + * + * @brief 房间模式,参看 ByteRTCRoomProfile{@link #ByteRTCRoomProfile},默认为普通音视频通话模式,进房后不可更改。 + */ + +@property(nonatomic) ByteRTCRoomProfile profile; + +/** + * + * @brief 直播模式,参看 ByteRTCRoomLiveMode{@link #ByteRTCRoomLiveMode},默认为 `ByteRTCRoomLiveModeCoHost`,进房后可通过 setLiveMode:{@link #ByteRTCRoom#setLiveMode:} 设置。 + * @note 只有当`room_profile_type`为`ByteRTCRoomProfileTypeLive`时,`live_mode`的值才有效。 + */ + +@property(nonatomic) ByteRTCRoomLiveMode liveMode; + +/** + * + * @brief 流 ID,默认为空。 + */ + +@property(nonatomic) NSString * streamId; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。 + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + +@property(assign, nonatomic) BOOL isPublishAudio; + /** + * + * @brief 是否自动发布视频流,默认为自动发布。
    + * + 若调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + +@property(assign, nonatomic) BOOL isPublishVideo; +/** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + +@property(assign, nonatomic) BOOL isAutoSubscribeAudio; +/** + * + * @brief 是否自动订阅主视频流,默认为自动订阅。 + */ + +@property(assign, nonatomic) BOOL isAutoSubscribeVideo; +@end + +/** + * + * @type keytype + * @brief 水印图片相对视频流的位置和大小。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoByteWatermark: NSObject +/** + * + * @brief 水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float x; +/** + * + * @brief 水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float y; +/** + * + * @brief 水印图片宽度与视频流宽度的比值,取值范围 [0,1)。 + */ + +@property(assign, nonatomic) float width; +/** + * + * @brief 水印图片高度与视频流高度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float height; +@end + +/** + * + * @type keytype + * @brief 水印参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoWatermarkConfig: NSObject +/** + * + * @brief 水印是否在视频预览中可见,默认可见。 + */ + +@property(nonatomic, assign) BOOL visibleInPreview; +/** + * + * @brief 横屏时的水印位置和大小,参看 ByteRTCVideoByteWatermark{@link #ByteRTCVideoByteWatermark}。 + */ + +@property(strong, nonatomic) ByteRTCVideoByteWatermark * _Nonnull positionInLandscapeMode; +/** + * + * @brief 竖屏时的水印位置和大小,参看 ByteRTCVideoByteWatermark{@link #ByteRTCVideoByteWatermark}。 + */ + +@property(strong, nonatomic) ByteRTCVideoByteWatermark * _Nonnull positionInPortraitMode; +@end +/** + * + * @hidden(iOS) + * @type api + * @brief 主要用于枚举、设置视频采集设备 + * @list 视频管理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoDeviceManager : NSObject +/** + * + * @type api + * @brief 获取视频采集设备列表。 + * @return 包含系统中所有视频采集设备的列表,参看 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 视频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateVideoCaptureDevices; +/** + * + * @type api + * @brief 获取当前 SDK 正在使用的视频采集设备信息 + * @param deviceID 视频设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + +- (int)getVideoCaptureDevice:(NSString * _Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置当前视频采集设备 + * @param deviceID 视频设备 ID。调用 enumerateVideoCaptureDevices{@link #ByteRTCVideoDeviceManager#enumerateVideoCaptureDevices} 获取全量视频设备。 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + +- (int)setVideoCaptureDevice:(NSString* _Nonnull)deviceID; +@end +/** + * + * @type callback + * @brief 截取视频画面回调类
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Video Management + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSnapshotCallbackDelegate +@required +/** + * + * @type callback + * @brief 调用 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot:} 截取视频画面时,收到此回调。 + * @param taskId 本地截图任务的编号。和 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot:} 的返回值一致。 + * @param videoSource 预留参数 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param errorCode 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + +- (void)onTakeLocalSnapshotResult:(NSInteger) taskId + videoSource:(ByteRTCVideoSource * _Nullable)videoSource + image:(ByteRTCImage * _Nullable)image + errorCode:(NSInteger)errorCode; +/** + * + * @type callback + * @brief 调用 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback:} 截取视频画面时,收到此回调。 + * @param taskId 远端截图任务的编号。和 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback:} 的返回值一致。 + * @param streamId 远端视频流的 ID。 + * @param info 远端视频流的属性,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param errorCode 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + +- (void)onTakeRemoteSnapshotResult:(NSInteger)taskId + streamId:(NSString*)streamId + info:(ByteRTCStreamInfo * _Nonnull)info + image:(ByteRTCImage * _Nullable)image + errorCode:(NSInteger)errorCode; +@end +/** + * + * @type api + * @brief 高级视频特效,参看[集成指南](https: + * @list 视频处理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoEffect : NSObject +/** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效算法模型地址,并初始化特效模块。 + * @param finder ResourceFinder 地址 + * @param deleter ResourceDeleter 地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + +- (int) setAlgoModelResourceFinder:(void*_Nonnull)finder deleter:(void*_Nonnull)deteter; + +/** + * + * @type api + * @brief 从特效 SDK 获取授权消息,用于获取在线许可证。 + * @param ppmsg 授权消息字符串地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 使用视频特效的功能前,你必须获取特效 SDK 的在线许可证。 + * - 通过此接口获取授权消息后,参考 [在线授权说明](https: + * @list 视频处理 + */ + +- (int)getAuthMessage:(NSString *_Nullable*_Nullable)ppmsg; +/** + * + * @type api + * @brief 检查视频特效证书,设置算法模型路径,并初始化特效模块。 + * @param licenseFile 证书文件的绝对路径,用于鉴权。 + * @param algoModelDir 算法模型绝对路径,即存放特效 SDK 所有算法模型的目录。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 鉴权时,会检查 CV 服务端时间和本地设备的时间差异。你必须保证本地系统时间和实际时间一致。 + * @list 视频处理 + */ + +- (int) initCVResource:(NSString* _Nonnull)licenseFile + withAlgoModelDir: (NSString* _Nonnull)algoModelDir; +/** + * + * @type api + * @brief 开启高级美颜、滤镜等视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource:withAlgoModelDir:{@link #ByteRTCVideoEffect#initCVResource:withAlgoModelDir:} 进行初始化。 + * - 调用该方法后,特效不直接生效,你还需调用 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 设置视频特效素材包或调用 setColorFilter:{@link #ByteRTCVideoEffect#setColorFilter:} 设置滤镜。 + * - 调用 disableVideoEffect{@link #ByteRTCVideoEffect#disableVideoEffect} 关闭视频特效。 + * @list 视频处理 + */ + +- (int) enableVideoEffect; +/** + * + * @type api + * @brief 关闭视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect} 开启视频特效。 + * @list 视频处理 + */ + +- (int) disableVideoEffect; +/** + * + * @hidden for internal use only + * @type api + * @brief 返回视频特效句柄。私有接口。 + * @list 视频处理 + */ + +- (void* _Nullable)getVideoEffectHandle; +/** + * + * @hidden for internal use only + * @type api + * @brief 私有接口
    + * 设置视频特效素材包 + * @param stickerPath 特效素材包绝对路径。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。具体错误码,参看 [错误码表](https: + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) applyStickerEffect:(NSString* _Nullable)stickerPath; +/** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效素材包。 + * @param effectPath 特效素材包绝对路径。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。 + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) setEffect:(NSString* _Nullable)effectPath; +/** + * + * @hidden for internal use only + * @type api + * @brief 重置贴纸特效。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。 + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) resetSticker; +/** + * + * @type api + * @brief 设置视频特效素材包。 + * @param effectNodes 特效素材包绝对路径数组。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) setEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @hidden for internal use only + * @type api + * @brief 叠加视频特效素材包。 + * @param effectNodes 特效素材包路径数组。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 该接口会在 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 设置的特效基础上叠加特效。 + * @list Video Processing + */ + +- (int) appendEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @hidden for internal use only + * @type api + * @brief 移除指定的视频特效资源。 + * @param effectNodes 特效素材包路径数组。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 移除 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 或 appendEffectNodes:{@link #ByteRTCVideoEffect#appendEffectNodes:} 设置的视频特效资源。 + * @list Video Processing + */ + +- (int) removeEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @type api + * @brief 设置特效强度。 + * @param node 特效素材包绝对路径,参考[素材包结构说明](https: + * @param key 需要设置的素材 key 名称,参考[素材 key 对应说明](https: + * @param value 特效强度值,取值范围 [0,1],超出范围时设置无效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) updateEffectNode:(NSString* _Nonnull)node + key:(NSString* _Nonnull)key value:(float) value; +/** + * + * @type api + * @brief 设置颜色滤镜。 + * @param filterRes 滤镜资源包绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 setColorFilterIntensity:{@link #ByteRTCVideoEffect#setColorFilterIntensity:} 设置已启用颜色滤镜的强度。设置强度为 0 时即关闭颜色滤镜。 + * @list 视频处理 + */ + +- (int) setColorFilter:(NSString* _Nonnull)filterRes; +/** + * + * @type api + * @brief 设置已启用颜色滤镜的强度。 + * @param intensity 滤镜强度。取值范围 [0,1],超出范围时设置无效。
    + * 当设置滤镜强度为 0 时即关闭颜色滤镜。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) setColorFilterIntensity:(float) intensity; +/** + * + * @type api + * @brief 将摄像头采集画面中的人像背景替换为指定图片或纯色背景。 + * @param backgroundStickerPath 背景贴纸特效素材绝对路径。 + * @param source 背景贴纸对象,参看 ByteRTCVirtualBackgroundSource{@link #ByteRTCVirtualBackgroundSource}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource:withAlgoModelDir:{@link #ByteRTCVideoEffect#initCVResource:withAlgoModelDir:} 进行初始化。 + * - 调用 disableVirtualBackground{@link #ByteRTCVideoEffect#disableVirtualBackground} 关闭虚拟背景。 + * @list 视频处理 + */ + +- (int) enableVirtualBackground:(NSString* _Nonnull)backgroundStickerPath + withSource:(ByteRTCVirtualBackgroundSource* _Nonnull)source; +/** + * + * @type api + * @brief 关闭虚拟背景。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVirtualBackground:withSource:{@link #ByteRTCVideoEffect#enableVirtualBackground:withSource:} 开启虚拟背景后,可以调用此接口关闭虚拟背景。 + * @list 视频处理 + */ + +- (int) disableVirtualBackground; +/** + * + * @hidden for internal use only + * @type api + * @brief 开启人像属性检测。 + * @param config 人像属性检测参数,参看 ByteRTCExpressionDetectConfig{@link #ByteRTCExpressionDetectConfig}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + +- (int) setVideoEffectExpressionDetect:(ByteRTCExpressionDetectConfig* _Nonnull)config; +/** + * + * @type api + * @brief 开启人脸识别功能,并设置人脸检测结果回调观察者。
    + * 回调此观察者后,你会周期性收到 onFaceDetectResult:{@link #ByteRTCFaceDetectionObserver#onFaceDetectResult:} 回调。 + * @param observer 人脸检测结果回调观察者,参看 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver}。 + * @param interval 两次回调之间的最小时间间隔,必须大于 0,单位为毫秒。实际收到回调的时间间隔大于 interval,小于 interval+视频采集帧间隔。 + * @param path 人脸检测算法模型文件路径,一般为 ttfacemodel 文件夹中 tt_face_vXXX.model 文件的绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - -1004: 初始化中,初始化完成后启动此功能。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) enableFaceDetection:(_Nullable id) observer + withInterval:(NSUInteger)interval + withModelPath:(NSString* _Nonnull)path; +/** + * + * @type api + * @brief 关闭人脸识别功能。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) disableFaceDetection; +@end + + +/** + * + * @type keytype + * @brief RTC 智能决策后得到的帧率和分辨率积(宽*高)。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFrameUpdateInfo : NSObject +/** + * + * @brief 分辨率积(宽*高)。 + */ + +@property(assign, nonatomic) int pixel; +/** + * + * @brief 帧率。 + */ + +@property(assign, nonatomic) int framerate; +@end +/** + * + * @hidden(macOS) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaTypeEnhancementConfig: NSObject +/** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceSignaling; +/** + * + * @brief 对屏幕共享以外的其他音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceAudio; +/** + * + * @brief 对屏幕共享视频以外的其他视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceVideo; +/** + * + * @brief 对屏幕共享音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceScreenAudio; +/** + * + * @brief 对屏幕共享视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceScreenVideo; +@end + +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步模式。 +*/ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncMode) { + /** + * + * @brief 合唱场景下,主唱应采用此模式,以发送带时间戳信息的媒体数据。 + */ + + ByteRTCChorusCacheSyncModeProducer= 0, + /** + * + * @brief 合唱场景下,副唱应采用此模式。
    + * 此模式下,副唱收到来自主唱的带时间戳的媒体数据。副唱发送的媒体数据中带有来自主唱的时间戳。 + */ + + ByteRTCChorusCacheSyncModeRetransmitter= 1, + /** + * + * @brief 合唱场景下,听众应采用此模式。
    + * 此模式下,听众收到来自主唱的时间戳,并据此对齐来自主唱和副唱的媒体数据,以获得良好的合唱播放效果。 + */ + + ByteRTCChorusCacheSyncModeConsumer = 2 +}; + +/** + * + * @type keytype + * @hidden for internal use + * @brief 合唱缓存同步事件。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncEvent) { + /** + * + * @brief 成功。 + */ + + ByteRTCChorusCacheSyncEventStartSuccess = 0, + /** + * + * @brief 失败。 + */ + + ByteRTCChorusCacheSyncEventStartFailed = 1, +}; + +/** + * + * @hidden for internal use only + * @type errorcode + * @brief 缓存同步错误码。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncError) { + /** + * + * @brief 成功。 + */ + + ByteRTCChorusCacheSyncErrorOK = 0, + /** + * + * @brief 失败。推送至 CDN 时,应进行以下设置:
    + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.enable_sync = true`; + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.base_user_id = {uid of producer}`。 + */ + + ByteRTCChorusCacheSyncErrorWrongState = 1, + /** + * + * @brief 缓存同步功能已启动,不需要重复开启。 + */ + + ByteRTCChorusCacheSyncErrorAlreadyRunning = 2 +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 缓存同步配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCChorusCacheSyncConfig: NSObject +/** + * + * @brief 最大媒体缓存时长(ms)。
    + * 取值范围是 `[500, 2500]`,默认值是 `2000`。
    + * 值越大,同步效果越好,但会造成占用内存较大。如果参与缓存同步的各路媒体流之间的时间差超过此值,会造成丢帧。 + */ + +@property(assign, nonatomic) int maxCacheTimeMs; +/** + * + * @brief 模式。参看 ByteRTCChorusCacheSyncMode{@link #ByteRTCChorusCacheSyncMode}. 默认值是 `retransmitter`。 + */ + +@property (assign, nonatomic) ByteRTCChorusCacheSyncMode mode; +/** + * + * @brief 收到 onSyncedVideoFrames:withUids:{@link #ByteRTCChorusCacheSyncObserver#onSyncedVideoFrames:withUids:} 的频率。
    + * 默认值是 `15`。此值通常应小于等于原始视频帧率;如果大于原始视频帧率,可能会收到重复帧。 + */ + +@property(assign, nonatomic) int videoFps; +@end +/** + * + * @hidden for internal use only + * @type callback + * @brief 缓存同步 Observer + * @list Video Processing + */ + +@protocol ByteRTCChorusCacheSyncObserver +/** + * + * @type callback + * @brief 调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer:},并设置为 `consumer` 的用户会通过此回调获取经缓存同步后的视频帧。获取频率通过启动同步时的 `fps` 进行设置。 + * @param videoFrames 对应 `uids` 的视频帧。参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @param uids 参与合唱缓存同步的 `producer` 和 `retransmitter` 的列表,不包括参与但未发送媒体数据的用户。 + * @list Video Processing + */ + +- (void)onSyncedVideoFrames:(NSArray>*)videoFrames withUids:(NSArray*)uids; +/** + * + * @type callback + * @brief 参与合唱缓存同步的 `producer` 和 `retransmitter` 发生变化时,收到此回调。 + * @param uids 当前的参与者列表 + * @note 有以下情况可能造成参与者发生变化:
    + * - 用户主动调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer:} 或 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}; + * - 原本参与缓存同步的用户发生异常退出。 + * @list Video Processing + */ + +- (void)onSyncedUsersChanged:(NSArray*)uids; +/** + * + * @type callback + * @brief 缓存同步事件回调 + * @param event 事件,参看 ByteRTCChorusCacheSyncEvent{@link #ByteRTCChorusCacheSyncEvent}。 + * @param error 错误码,参看 ByteRTCChorusCacheSyncError{@link #ByteRTCChorusCacheSyncError}。 + * @list Video Processing + */ + +- (void)onSyncEvent:(ByteRTCChorusCacheSyncEvent)event withError:(ByteRTCChorusCacheSyncError)error; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h new file mode 100644 index 0000000..6e81f64 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h @@ -0,0 +1,167 @@ +#import "ByteRTCDefines.h" +/** + * + * @type keytype + * @brief 视频内容类型 + */ +typedef NS_ENUM(NSUInteger, ByteRTCVideoContentCategory) { + /** + * + * @brief 相机采集的内容 + */ + ByteRTCVideoContentCategoryCamera = 0, + /** + * + * @brief 屏幕共享的内容 + */ + ByteRTCVideoContentCategoryScreen = 1, +}; + +/** + * + * @type keytype + * @brief 视频源设置 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSourceConfig : NSObject +/** + * + * @brief 视频源类型。参看 ByteRTCVideoSourceType{@link #ByteRTCVideoSourceType}。默认是 `kVideoSourceTypeExternal`。 + */ +@property (assign, nonatomic) ByteRTCVideoSourceType sourceType; +/** + * + * @brief 参看 ByteRTCVideoContentCategory{@link #ByteRTCVideoContentCategory}。默认是 `kVideoContentCategoryCamera`。 + */ +@property (assign, nonatomic) ByteRTCVideoContentCategory contentCategory; +@end + + +/** + * + * @type keytype + * @brief 媒体流的优先级 + */ +typedef NS_ENUM(NSUInteger, ByteRTCStreamPriority) { + /** + * + * @brief 低优先级 + */ + ByteRTCStreamPriorityLow = 0, + /** + * + * @brief 中优先级 + */ + ByteRTCStreamPriorityNormal = 1, + /** + * + * @brief 高优先级 + */ + ByteRTCStreamPriorityHigh = 2, +}; + +/** + * + * @type keytype + * @brief 音频源包含的内容 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioContentTypeConfig : NSObject +/** + * + * @brief 包含麦克风采集的音频 + */ +@property(assign, nonatomic) BOOL hasMic; +/** + * + * @brief 包含屏幕音频 + */ +@property(assign, nonatomic) BOOL hasScreenAudio; +/** + * + * @brief 包含媒体播放器的音频 + */ +@property(assign, nonatomic) BOOL hasMediaPlayer; +@end + +/** + * + * @type keytype + * @brief 音频编码设置。 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEncodeConfig : NSObject +/** + * + * @brief 编码器类型。
    + * + 0:OPUS
    + * + 1:NICO
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger codecType; +/** + * + * @brief 编码模式
    + * + 0:语音
    + * + 1:音乐
    + * + -1:根据 `channel_num` 不同,使用对应的编码模式。声道数为 `1` 时,编码模式是语音;声道数为 `2` 时,编码模式是音乐。 + */ +@property(nonatomic, assign) NSInteger encMode; +/** + * + * @brief 声道数。取值范围是:`{1, 2}`。默认值是 `-1`,配置下发的配置。 + */ +@property(nonatomic, assign) NSInteger channelNum; +/** + * + * @brief 码率。取值范围:`[6K, 510K]`。 + */ +@property(nonatomic, assign) NSInteger encBitrate; +/** + * + * @brief 是否启用非连续传输功能(DTX)。非连续传输功能能够在安静的场景下降低码率。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger useDtx; +/** + * + * @brief 带内前向纠错功能。能够提供一定的抗丢包能力。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger useInbandfec; +/** + * + * @brief 采样率。取值范围是 `[16K, 48K]`。
    + * 修改此参数会触发编码器重启。 + */ +@property(nonatomic, assign) NSInteger sampleRate; +/** + * + * @brief 编码帧长。取值范围:`{10, 20, 40, 60, 120}`。 + */ +@property(nonatomic, assign) NSInteger packetSize; +@end + +/** + * + * @type keytype + * @brief + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamKey : NSObject +/** + * + * @brief 用户 ID + */ +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 房间 ID + */ +@property(nonatomic, copy, nullable) NSString *roomId; +/** + * + * @brief 流属性,包括主流、屏幕流。参看 [StreamIndex](70083#StreamIndex-2) + */ +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h new file mode 100644 index 0000000..9e8dd22 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h @@ -0,0 +1,337 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCWTNStream +*/ + +#import +#import "ByteRTCVideoDefines.h" +/** + * + * @type keytype + * @brief WTN 媒体流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWTNSubscribeState) { + /** + * + * @brief 订阅 WTN 媒体流 + */ + + ByteRTCWTNSubscribeStateSubscribe = 0, + /** + * + * @brief 取消订阅 WTN 媒体流 + */ + + ByteRTCWTNSubscribeStateUnsubscribe = 1 +}; +/** + * + * @type keytype + * @brief WTN 媒体流订阅状态改变的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWTNSubscribeStateChangeReason) { + /** + * + * @brief 订阅 WTN 媒体流成功 + */ + + ByteRTCWTNSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 其他原因订阅失败 + */ + + ByteRTCWTNSubscribeStateChangeReasonUnsubscribe = 1300, + /** + * + * @brief 订阅失败,拉流时远端未发布 + */ + + ByteRTCWTNSubscribeStateChangeReasonRemotePublish = 1301, + /** + * + * @brief 订阅失败,超出单端订阅上限。一个引擎实例最多拉 5 路流。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverClientSubscribeStreamLimit = 1310, + /** + * + * @brief 订阅失败。超出单流订阅人数上限。该限制由 RTC 服务端决定。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverStreamSubscribeUserLimit = 1311, + /** + * + * @brief 订阅失败。超出单流订阅请求 QPS 上限。该限制由 RTC 服务端决定。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverStreamSubscribeRequestLimit = 1312 +}; + + +/** + * + * @type callback + * @brief WTN 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCWTNStreamDelegate +/** +* +* @type callback +* @valid since 3.60. +* @brief 通话中本地设备接收订阅的远端 WTN 视频流的流 ID 以及远端 WTN 视频流统计信息。 +* @param streamId WTN 流 ID +* @param videoStats 远端 WTN 视频流的统计信息,详见 ByteRTCRemoteVideoStats{@link #ByteRTCRemoteVideoStats}。 +* @list WTN +* @order 0 +*/ + +- (void)onWTNRemoteVideoStats:(NSString* _Nonnull)streamId + videoStats:(const ByteRTCRemoteVideoStats* _Nonnull)videoStats; +/** +* +* @type callback +* @valid since 3.60. +* @brief 通话中本地设备接收订阅的远端 WTN 音频流的流 ID 以及远端 WTN 音频流统计信息。 +* @param streamId WTN 流 ID +* @param audioStats 远端 WTN 音频流的统计信息,详见 ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats}。 +* @list WTN +* @order 1 +*/ + +- (void)onWTNRemoteAudioStats:(NSString* _Nonnull)streamId + audioStats:(const ByteRTCRemoteAudioStats* _Nonnull)audioStats; + +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onPlayPublicStreamResult:errorCode:` 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 视频流订阅状态变化回调
    +* 通过 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。 +* @param streamId WTN 视频流的 ID +* @param state 视频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。 +* @param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。 +* @list WTN +* @order 2 +*/ + + +- (void)onWTNVideoSubscribeStateChanged:(NSString *_Nonnull)streamId + state:(ByteRTCWTNSubscribeState)state reason:(ByteRTCWTNSubscribeStateChangeReason)reason; +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onPlayPublicStreamResult:errorCode:` 方法中的 WTN 音频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 音频流订阅状态变化回调
    +* 通过 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。 +* @param streamId WTN 音频流的 ID +* @param state 音频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。 +* @param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。 +* @list WTN +* @order 2 +*/ + +- (void)onWTNAudioSubscribeStateChanged:(NSString *_Nonnull)streamId + state:(ByteRTCWTNSubscribeState)state reason:(ByteRTCWTNSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧视频解码成功
    + * 关于 订阅 WTN 流,详见 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}。 + * @param streamId WTN 流 ID + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list WTN + * @order 4 + */ + +- (void)onWTNFirstRemoteVideoFrameDecoded:(NSString * _Nonnull)streamId withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(onWTNFirstRemoteVideoFrameDecoded(streamId:withFrameInfo:)); + +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onFirstPublicStreamAudioFrame:`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 流的首帧音频解码成功
    +* 关于订阅 WTN 音频流,详见 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}。 +* @param streamId WTN 流 ID +* @list WTN +* @order 3 +*/ + +- (void)onWTNFirstRemoteAudioFrame:(NSString * _Nonnull)streamId; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替换了 `rtcEngine:onPublicStreamSEIMessageReceived:andMessage:andSourceType:` 来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief 回调 WTN 流中包含的 SEI 信息。
    + * subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}/subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 接口启动拉 WTN 音频/视频流功能后,通过此回调收到 WTN 流中的 SEI 消息。 + * @param streamId WTN 流 ID。 + * @param channelId SEI 消息通道 ID,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message 收到的 SEI 消息内容。
    + * 通过调用客户端 `sendPublicStreamSEIMessage` 插入的 SEI 信息。 + * 当 WTN 流中的多路视频流均包含有 SEI 信息:SEI 不互相冲突时,将通过多次回调分别发送;SEI 在同一帧有冲突时,则只有一条流中的 SEI 信息被透传并融合到 WTN 流中。 + * @note 通过 Open API 插入的自定义信息,应通过回调 onWTNDataMessageReceived:andMessage:andSourceType:{@link #ByteRTCWTNStreamDelegate#onWTNDataMessageReceived:andMessage:andSourceType:} 获取。 + * @list WTN + * @order 5 + */ + +- (void)onWTNSEIMessageReceived:(NSString* _Nonnull)streamId andChannelId:(int)channelId andMessage:(NSData* _Nonnull)message; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 回调 WTN 流中包含的数据信息。
    + * 通过 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}/subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 订阅 WTN 流后,可以通过本回调获取 WTN 流中的数据消息,包括调用 Open API 发送的 SEI 消息和音量回调。 + * @param streamId WTN 流 ID + * @param message 收到的数据消息内容,如下:
    + * - 调用 WTN 流 OpenAPI 发送的自定义消息。 + * - 媒体流音量变化,需要通过 WTN 流 OpenAPI 开启回调。JSON 格式说明如下: + * {
    + * "Type" : "VolumeIndication", + * "VolumeInfos" : [ + * {
    + * "RoomId":"1000001", + * "UserId":"1000001", + * "StreamType":0, + * "LinearVolume":1 + * }
    + * @param sourceType 数据消息来源,参看 ByteRTCDataMessageSourceType{@link #ByteRTCDataMessageSourceType}。 + * @note 通过调用客户端 API 插入的 SEI 信息,应通过回调 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 获取。 + * @list WTN + */ + +- (void)onWTNDataMessageReceived:(NSString* _Nonnull)streamId andMessage:(NSData* _Nonnull)message andSourceType:(ByteRTCDataMessageSourceType)sourceType; + +@end + +/** + * + * @type api + * @region WTN + * @brief WTN 流处理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCWTNStream :NSObject +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream:` 和 `stopPlayPublicStream:` 方法来订阅/取消订阅指定 WTN 视频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 视频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 视频流。 + * @param streamId WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 + onWTNAudioSubscribeStateChanged:state:reason:{@link #ByteRTCWTNStreamDelegate#onWTNAudioSubscribeStateChanged:state:reason:} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}/subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas:withCanvas:{@link #ByteRTCWTNStream#setWTNRemoteVideoCanvas:withCanvas:} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink:withSink:withConfig:{@link #ByteRTCWTNStream#setWTNRemoteVideoSink:withSink:withConfig:} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:{@link #ByteRTCWTNStreamDelegate#onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:} 回调 WTN 视频流的首帧解码情况 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 0 + */ + +- (int)subscribeWTNVideoStream:(NSString * _Nonnull)streamId subscribe:(bool)subscribe; + +/** +* +* @type api +* @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream:` 和 `stopPlayPublicStream:` 方法来订阅/取消订阅指定 WTN 音频流,如果你使用了这两个方法,请迁移至此接口。 +* @brief 订阅/取消订阅指定 WTN 音频流
    +* 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 音频流。 +* @param streamId WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 +* @param subscribe 是否订阅 WTN 流
    +* - true:订阅 +* - false:取消订阅 +* @return +* - 0: 成功。同时将收到 onWTNVideoSubscribeStateChanged:state:reason:{@link #ByteRTCWTNStreamDelegate#onWTNVideoSubscribeStateChanged:state:reason:} 回调。 +* - !0: 失败。当参数不合法或参数为空,调用失败。 +* @note +* - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}/subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 +* - 在调用本接口之前,建议先绑定渲染视图。 +* - 调用 setWTNRemoteVideoCanvas:withCanvas:{@link #ByteRTCWTNStream#setWTNRemoteVideoCanvas:withCanvas:} 绑定内部渲染视图 +* - 调用 setWTNRemoteVideoSink:withSink:withConfig:{@link #ByteRTCWTNStream#setWTNRemoteVideoSink:withSink:withConfig:} 绑定自定义渲染视图 +* - 调用本接口后,可以通过 onWTNFirstRemoteAudioFrame:{@link #ByteRTCWTNStreamDelegate#onWTNFirstRemoteAudioFrame:} 回调 WTN 音频流首帧解码情况。 +* - 调用本接口后,可以通过 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 回调 WTN 流中包含的 SEI 信息。 +* @list WTN +* @order 1 +*/ + +- (int)subscribeWTNAudioStream:(NSString * _Nonnull)streamId subscribe:(bool)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoCanvas:withCanvas:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定内部渲染视图 + * @param streamId WTN 流 ID + * @param canvas 内部渲染视图,如果需要解除视频的绑定视图,把 videoCanvas 设置为空。详见 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} + * @return + * - 0:成功 + * - !0:失败 + * @list WTN + * @order 2 + */ + +- (int)setWTNRemoteVideoCanvas:(NSString *_Nonnull)streamId + withCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setWTNRemoteVideoCanvas(_:withCanvas:)); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoSink:withSink:withPixelFormat:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定自定义渲染器。详见[自定义视频渲染](https: + * @param streamId WTN 流 ID + * @param videoSink 自定义视频渲染器,需要释放渲染器资源时,将 videoSink 设置为 `null`。参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param config 远端视频帧回调配置,参看 ByteRTCRemoteVideoSinkConfig{@link #ByteRTCRemoteVideoSinkConfig} + * @return + * - 0: 成功 + * - <0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @list WTN + * @order 3 + */ + +- (int)setWTNRemoteVideoSink:(NSString *_Nonnull)streamId + withSink:(id _Nullable)videoSink + withConfig:(ByteRTCRemoteVideoSinkConfig*)config NS_SWIFT_NAME(setWTNRemoteVideoSink(_:withSink:withConfig:)); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamAudioPlaybackVolume:volume:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 调节 WTN 流的音频播放音量。 + * @param streamId WTN 流 ID + * @param volume 音频播放音量值和原始音量值的比值,该比值的范围是 `[0, 400]`,单位为 %,且自带溢出保护。为保证更好的音频质量,建议设定在 `[0, 100]` 之间,其中 100 为系统默认值。 + * @return + * - 0: 成功调用。 + * - -2: 参数错误。 + * @list WTN + * @order 4 + */ + +- (int)setWTNRemoteAudioPlaybackVolume:(NSString *_Nonnull)streamId volume:(NSInteger)volume; +/** +* +* @type api +* @valid since 3.60. +* @brief 设置 WTN 流回调接口 +* @param delegate WTN 回调类,参看 ByteRTCWTNStreamDelegate{@link #ByteRTCWTNStreamDelegate}。 +* @list WTN +* @order 5 +*/ + +- (void)setWTNStreamDelegate:(_Nullable id)delegate; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h new file mode 100644 index 0000000..320bfc1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Internal API +*/ + +@interface RTSRoom () + +/** + * + * @type api + * @hidden 仅内部使用接口 + */ + +- (instancetype _Nonnull)initWithRtsRoom:(byterts::IRTSRoom *_Nonnull)rtsRoom roomId:(NSString *_Nonnull)roomId; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h new file mode 100644 index 0000000..3c5ce89 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Internal API +*/ + +#import +#import "ByteRTCDefines.h" +@class ByteRTCRoom; +@class ByteRTCEngine; +@class ByteRTCVideoEncoderConfig; +@class ByteRTCAmazingEffect; + +#define BYTERTC_APPLE_EXPORT __attribute__((visibility("default"))) + +/** + * @type keytype + * @brief 5.18版本后,飞书会议弱网提示专用,设置订阅视频基线数据用于计算网络等级 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeVideoBaseline: NSObject +/** + * @brief 网络等级判定为优秀的视频分辨率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableGoodVideoPixelBaseline; +/** + * @brief 网络等级判定为优秀的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableGoodVideoFpsBaseline; +/** + * @brief 网络等级判定为差的视频分辨率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableBadVideoPixelBaseline; +/** + * @brief 网络等级判定为差的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableBadVideoFpsBaseline; +/** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableMinVideoResolutionWidth; +/** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableMinVideoResolutionHeight; +/** + * @brief 流的优先级,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger streamPriority; + +@end + +BYTERTC_APPLE_EXPORT @interface MeetingAdvance : NSObject + +/** + * + * @hidden + * @brief 推流到子频道channelName + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSString *_Nonnull] channelName 子频道 + */ ++ (int) setPublishChannel:(ByteRTCRoom *_Nonnull)room + channelName:(NSString *_Nonnull)channelName; +/** + * + * @hidden + * @brief 订阅子频道数组里的所有流 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSArray * _Nonnull] channelsInfo 子频道数组 + * @param [bool] enableVolumeRescale 是否开启音频抑制功能 + */ ++ (int) setSubscribeChannels:(ByteRTCRoom *_Nonnull)room + channelsInfo:(NSArray * _Nonnull)channelsInfo + enableVolumeRescale:(bool)enableVolumeRescale; +/** + * + * @hidden + * @brief 设置是否开启音频抑制 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [bool] enableVolumeRescale 是否抑制 + */ ++ (int) enableRescaleAudioVolume:(ByteRTCRoom *_Nonnull)room + enableVolumeRescale:(bool)enableVolumeRescale; +/** + * + * @hidden + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [int] type 流类型 + */ ++ (int) setPublishSpecialStream:(ByteRTCRoom *_Nonnull)room + type:(int)type; +/** + * + * @hidden + * @brief 设置订阅的特殊流类型 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSArray * _Nonnull] types 流类型集合 + */ ++ (int) setSubscribeSpecialStream:(ByteRTCRoom *_Nonnull)room + types:(NSArray * _Nonnull)types; + +/** + * + * @hidden +* @brief 判断本地音视频流是否取消发布成功状态 +* > 支持会中设置 +* @param [ByteRTCRoom *_Nonnull] room 目标room +* @param [ByteRTCMediaStreamType] type 需要检查的流类型 +* @return +* true: 关闭状态; +* false: 开启状态; +*/ ++ (bool)isStreamUnpublished:(ByteRTCRoom *_Nonnull)room type:(ByteRTCMediaStreamType)type; + +/** + * + * @hidden +* @brief 设置视频编码参数 +* > 该方法用于编码参数设置 +* @return +* 0: 成功; +* != 0: 失败; +*/ ++ (int) setVideoEncoderConfig:(ByteRTCEngine*_Nonnull)video channelSolutions:(NSArray * _Nonnull) channelSolutions + mainSolutions:(NSArray * _Nonnull) channelMainSolutions; + + ++ (int) enableSimulcastMode:(ByteRTCEngine*_Nonnull)video enable:(BOOL) enabled; +/** + * + * @hidden +* @brief 更新自动订阅选项 +* > 支持会中设置 +*@param [ByteRTCRoom *_Nonnull] room 目标room +*@param [ByteRTCSubscribeMode] audioMode 音频自动订阅模式 +*@param [ByteRTCSubscribeMode] videoMode 视频自动订阅模式 +*/ ++ (int) enableAutoSubscribe:(ByteRTCRoom *_Nonnull)room audioSubMode:(ByteRTCSubscribeMode)audioMode videoMode:(ByteRTCSubscribeMode)videoMode; + +/** + * + * @hidden +* @brief 订阅基线设置 +* > 支持订阅流前设置 +* @param [ByteRTCRoom *_Nonnull] room 目标room +* @param [NSString *_Nonnull] userId 订阅用户名 +* @param [BOOL] isScreen 是否屏幕流 +* @param [ByteRTCSubscribeVideoBaseline* _Nullable] videoBaseline 订阅基线设置 +*/ ++ (void) setSubscribeBaselineData:(ByteRTCRoom *_Nonnull)room userId:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen videoBaseline:(ByteRTCSubscribeVideoBaseline* _Nullable)videoBaseline; + +/** + * + * @hidden +* @brief 获取用于实时crash分子数据信息 +* @return +* [NSString * _Nonnull]: 返回json格式的信息 +*/ ++ (NSString * _Nonnull) getSessionLaunchParams; +/** + * + * @brief 获取视频特效接口ByteRTCAmazingEffect +* @param [ByteRTCEngine *_Nonnull] ivideo 目标ByteRTCVideo +*/ ++ (ByteRTCAmazingEffect* _Null_unspecified) getAmazingEffectInterface:(ByteRTCEngine *_Nonnull)video; + +/** + * + * @hidden + * @brief 设置屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ ++ (int)setScreenVideoConfigs:(ByteRTCEngine * _Nonnull)video; + +/** + * + * @hidden + * @brief 清空屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ ++ (int)resetScreenVideoConfigs:(ByteRTCEngine * _Nonnull)video; + +/** + * + * @brief 获取上行带宽状态 + * @param [ByteRTCRoom*] room 目标room + */ ++ (int)getUplinkNetworkBandwidthEstimationStatus:(ByteRTCRoom *_Nonnull)room; + +/** + * + * @brief 获取下行带宽状态 + * @param [ByteRTCRoom*] room 目标room + */ ++ (int)getDownlinkNetworkBandwidthEstimationStatus:(ByteRTCRoom *_Nonnull)room; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Info.plist b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Info.plist new file mode 100644 index 0000000..4d70a16 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 22H730 + CFBundleDevelopmentRegion + en + CFBundleExecutable + VolcEngineRTC + CFBundleIdentifier + VolcEngineRTC + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + VolcEngineRTC + CFBundlePackageType + FMWK + CFBundleShortVersionString + 3.60.107 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 20B71 + DTPlatformName + iphonesimulator + DTPlatformVersion + 16.1 + DTSDKBuild + 20B71 + DTSDKName + iphonesimulator16.1 + DTXcode + 1410 + DTXcodeBuild + 14B47b + MinimumOSVersion + 11.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Modules/module.modulemap b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Modules/module.modulemap new file mode 100644 index 0000000..f648c27 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module VolcEngineRTC { + umbrella header "VolcEngineRTC.h" + + export * + module * { export * } +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/PrivacyInfo.xcprivacy b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..76757b6 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/PrivacyInfo.xcprivacy @@ -0,0 +1,39 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/VolcEngineRTC b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/VolcEngineRTC new file mode 100755 index 0000000..41877fd Binary files /dev/null and b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64/VolcEngineRTC.framework/VolcEngineRTC differ diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/VolcEngineRTC.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/VolcEngineRTC.h new file mode 100644 index 0000000..5c97a58 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/VolcEngineRTC.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Advance API + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine.h new file mode 100644 index 0000000..e24d327 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine.h @@ -0,0 +1,3219 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_room.h" +#include "bytertc_game_room.h" +#include "rtc/bytertc_video_device_manager.h" +#include "rtc/bytertc_audio_frame.h" +#include "rtc/bytertc_audio_mixing_manager.h" +#include "rtc/bytertc_audio_effect_player.h" +#include "rtc/bytertc_media_player.h" +#include "rtc/bytertc_video_processor_interface.h" +#include "rtc/bytertc_camera_control_interface.h" +#include "bytertc_engine_event_handler.h" +#include "rtc/bytertc_sing_scoring_interface.h" +#include "rtc/bytertc_ktv_manager_interface.h" +#include "rtc/bytertc_wtn_stream_interface.h" + +namespace bytertc { + +/** + * + * @type api + * @brief 引擎 API + * @list + */ + +class IRTCEngine { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTCEngine() { + } + /** + * + * @valid since 3.58.1 + * @type api + * @brief 设置是否将录音信号静音(不改变本端硬件)。 + * @param mute 是否静音音频采集。
    + * - True:静音(关闭麦克风) + * - False:(默认)开启麦克风 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 Windows 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 方法说明。 + * - 静音后通过 setCaptureVolume{@link #IRTCEngine#setCaptureVolume} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + + virtual int muteAudioCapture(bool mute) = 0; + /** + * + * @valid since 3.60. + * @type api + * @brief 静音/取消静音屏幕共享时采集的音频。
    + * 调用此方法后,SDK 将发送静音数据来代替真实的屏幕音频数据,不影响本端音频设备的采集状态和 SDK 音频流的采集发布状态。 + * @param mute 是否静音屏幕音频。
    + * - True:静音。远端用户听不到来自你屏幕共享的声音。 + * - False:(默认)取消静音。恢复发送屏幕共享的音频。 + * @return + * - 0:调用成功。 + * - < 0:调用失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 静音后通过 setCaptureVolume{@link #IRTCEngine#setCaptureVolume} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 屏幕共享 + */ + + virtual int muteScreenAudioCapture(bool mute) = 0; + + /** + * + * @type api + * @brief 调节麦克风音频采集音量。
    + * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
    + * - 0:静音 + * - 100:原始音量 + * - 400:原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 在开启音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + + virtual int setCaptureVolume(int volume) = 0; + /** + * + * @type api + * @valid Available since 3.60. + * @brief 调节屏幕共享时采集的音频音量。
    + * 只改变音频数据的音量信息,不影响麦克风采集的音量,也不会改变本端音频设备本身的音量。 + * @param volume 采集音量与原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
    + * - 0: 静音 + * - 100: 原始音量 + * - 400: 原始音量的 4 倍(自带溢出保护) + * + * @return + * + 0: 调用成功。
    + * + < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 在开启屏幕音频采集前后,你都可以使用此接口设定采集音量。 + * @list 屏幕共享 + */ + + virtual int setScreenCaptureVolume(int volume) = 0; + /** + * + * @type api + * @brief 调节本地播放的所有远端用户音频混音后的音量,混音内容包括远端人声、音乐、音效等。
    + * 播放音频前或播放音频时,你都可以使用此接口设定播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,当该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 或 setRemoteRoomAudioPlaybackVolume{@link #IRTCRoom#setRemoteRoomAudioPlaybackVolume} 共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setPlaybackVolume(const int volume) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启/关闭耳返功能 + * @param mode 是否开启耳返功能,参看 EarMonitorMode{@link #EarMonitorMode} + * @return + * - 0:调用成功。 + * - < 0:调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorMode(EarMonitorMode mode) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 开启/关闭耳返功能,并控制是否对耳返音频应用本地音频处理。 + * @param mode 是否开启耳返功能,参看 EarMonitorMode{@link #EarMonitorMode}。默认关闭。 + * @param filter 是否对耳返音频应用本地音频处理,参看 EarMonitorAudioFilter{@link #EarMonitorAudioFilter}。默认不经过音频处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorMode(EarMonitorMode mode, int filter) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置耳返的音量 + * @param volume 耳返的音量相对原始音量的比值,取值范围:[0,100],单位:% + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 设置耳返音量前,你必须先调用 setEarMonitorMode{@link #IRTCEngine#setEarMonitorMode} 打开耳返功能。 + * @list 高级功能 + */ + + virtual int setEarMonitorVolume(const int volume) = 0; + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @type api + * @brief 设置蓝牙模式 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在媒体场景下生效。 + * @list 高级功能 + */ + + virtual int setBluetoothMode(BluetoothMode mode) = 0; + /** + * + * @type api + * @brief 开启内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法开启后,本地用户会收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStartAudioCapture{@link #IRTCEngineEventHandler#onUserStartAudioCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 若未取得当前设备的麦克风权限,调用该方法后会触发 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 回调,对应的错误码为 `MediaDeviceError.kMediaDeviceErrorDeviceNoPermission = 1`。 + * - 调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 可以关闭音频采集设备,否则,SDK 只会在销毁引擎的时候自动关闭设备。 + * - 由于不同硬件设备初始化响应时间不同,频繁调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 和本接口闭麦/开麦可能出现短暂无声问题,建议使用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 实现临时闭麦和重新开麦。 + * - 创建引擎后,无论是否发布音频数据,你都可以调用该方法开启音频采集,并且调用后方可发布音频。 + * - 对于 Windows SDK,如果需要从自定义音频采集切换为内部音频采集,你必须先停止发布流,调用 setAudioSourceType{@link #IRTCEngine#setAudioSourceType} 关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 音频管理 + */ + + virtual int startAudioCapture() = 0; + /** + * + * @type api + * @brief 立即关闭内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法,本地用户会收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 的回调。
    + * 非隐身用户进房后调用该方法后,房间中的其他用户会收到 onUserStopAudioCapture{@link #IRTCEngineEventHandler#onUserStopAudioCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 可以开启音频采集设备。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部音频采集才会停止。 + * @list 音频管理 + */ + + virtual int stopAudioCapture() = 0; + + /** + * + * @hidden(macOS,Windows,Linux) + * @valid since 3.60. + * @type api + * @brief 设置音频场景类型。
    + * 选择音频场景后,SDK 会自动根据场景切换对应的音量模式(通话音量/媒体音量)和该场景下的最佳音频配置。
    + * @param scenario 音频场景类型,参看 AudioScenarioType{@link #AudioScenarioType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 此接口必须在加入 RTC 房间前调用。 + * - 通话音量更适合通话、会议等对信息准确度更高的场景。通话音量会激活系统硬件信号处理,使通话声音更清晰。同时,音量无法降低到 0。 + * - 媒体音量更适合娱乐场景,因其声音的表现力会更强。媒体音量下,最低音量可以为 0。 + * @list Audio Management + */ + + virtual int setAudioScenario(AudioScenarioType scenario) = 0; + + /** + * + * @hidden(Linux) + * @type api + * @brief 设置变声特效类型 + * @param voice_changer 变声特效类型,参看 VoiceChangerType{@link #VoiceChangerType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - !0:失败。 + * @note + * - 如需使用该功能,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceReverbType{@link #IRTCEngine#setVoiceReverbType} 互斥,后设置的特效会覆盖先设置的特效。 + * - 在 Windows 端使用此功能前,必须额外接入 [音频技术](https: + * @list 音频处理 + */ + + virtual int setVoiceChangerType(VoiceChangerType voice_changer) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置混响特效类型 + * @param voice_reverb 混响特效类型,参看 VoiceReverbType{@link #VoiceReverbType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - !0:失败。 + * @note + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 只在包含美声特效能力的 SDK 中有效。 + * - 与 setVoiceChangerType{@link #IRTCEngine#setVoiceChangerType} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + + virtual int setVoiceReverbType(VoiceReverbType voice_reverb) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置本地采集语音的均衡效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param config 语音均衡效果,参看 VoiceEqualizationConfig{@link #VoiceEqualizationConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 根据奈奎斯特采样率,音频采样率必须大于等于设置的中心频率的两倍,否则,设置不生效。 + * @list 音频处理 + */ + + virtual int setLocalVoiceEqualization(VoiceEqualizationConfig config) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 设置本地采集音频的混响效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param param 混响效果,参看 VoiceReverbConfig{@link #VoiceReverbConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用 enableLocalVoiceReverb{@link #IRTCEngine#enableLocalVoiceReverb} 开启混响效果。 + * @list 音频处理 + */ + + virtual int setLocalVoiceReverbParam(VoiceReverbConfig param) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启本地音效混响效果 + * @param enable 是否开启 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用 setLocalVoiceReverbParam{@link #IRTCEngine#setLocalVoiceReverbParam} 设置混响效果。 + * @list 音频处理 + */ + + virtual int enableLocalVoiceReverb(bool enable) = 0; + /** + * + * @type api + * @brief 设置音质档位。
    + * 当所选的 RoomProfileType{@link #RoomProfileType} 中的音频参数无法满足你的场景需求时,调用本接口切换的音质档位。 + * @param audio_profile 音质档位,参看 AudioProfileType{@link #AudioProfileType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法在进房前后均可调用; + * - 支持通话过程中动态切换音质档位。 + * @list 音频管理 + */ + + virtual int setAudioProfile(AudioProfileType audio_profile) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 支持根据业务场景,设置通话中的音频降噪模式。 + * @param ans_mode 降噪模式。具体参见 AnsMode{@link #AnsMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该接口进房前后均可调用,可重复调用,仅最后一次调用生效。 + * - 降噪算法包含传统降噪和 AI 降噪。传统降噪主要是抑制平稳噪声,比如空调声、风扇声等。而 AI 降噪主要是抑制非平稳噪声,比如键盘敲击声、桌椅碰撞声等。 + * - 只有以下 RoomProfileType{@link #RoomProfileType} 场景时,调用本接口可以开启 AI 降噪。其余场景的 AI 降噪不会生效。 + * - 游戏语音模式:kRoomProfileTypeGame + * - 高音质游戏模式:kRoomProfileTypeGameHD + * - 云游戏模式:kRoomProfileTypeCloudGame + * - 1 vs 1 音视频通话:kRoomProfileTypeChat + * - 多端同步播放音视频:kRoomProfileTypeLwTogether + * - 云端会议中的个人设备:kRoomProfileTypeMeeting + * - 课堂互动模式:kRoomProfileTypeClassroom + * - 云端会议中的会议室终端:kRoomProfileTypeMeetingRoom + * @list 高级功能 + */ + + virtual int setAnsMode(AnsMode ans_mode) = 0; + /** + * + * @valid since 3.51 + * @type api + * @brief 打开/关闭 AAGC(Analog Automatic Gain Control)模拟自动增益控制功能。
    + * 开启该功能后,SDK 会自动调节麦克风的采集音量,确保音量稳定。 + * @param enable 是否打开 AAGC 功能:
    + * - true: 打开 AAGC 功能。 + * - false: 关闭 AAGC 功能。 + * @return + * - 0: 调用成功。 + * - -1: 调用失败。 + * @note + * 该方法在进房前后均可调用。如果你需要在进房前使用 AAGC 功能,请联系技术支持获得私有参数,传入对应 RoomProfileType{@link #RoomProfileType} 。
    + * 要想在进房后开启 AAGC 功能,你需要把 RoomProfileType{@link #RoomProfileType} 设置为 `kRoomProfileTypeMeeting` 、`kRoomProfileTypeMeetingRoom` 或 `kRoomProfileTypeClassroom` 。
    + * AAGC 功能生效后,不建议再调用 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 来调节设备麦克风的采集音量。 + * @list 音频管理 + */ + + virtual int enableAGC(bool enable) = 0; + /** + * + * @type api + * @brief 切换音频采集方式 + * @param type 音频数据源,详见 AudioSourceType{@link #AudioSourceType}。
    + * 默认使用内部音频采集。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法由内部采集切换至自定义采集,SDK 会自动关闭内部采集。然后,调用 pushExternalAudioFrame{@link #IRTCEngine#pushExternalAudioFrame} 推送自定义采集的音频数据到 RTC SDK 用于传输。 + * - 如果你调用此方法由自定义采集切换至内部采集,你必须再调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 手动开启内部采集。 + * @list 自定义流处理 + */ + + virtual int setAudioSourceType (AudioSourceType type) = 0; + /** + * + * @type api + * @brief 切换音频渲染方式 + * @param type 音频输出类型,详见 AudioRenderType{@link #AudioRenderType}
    + * 默认使用内部音频渲染。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法切换至自定义渲染,调用 pullExternalAudioFrame{@link #IRTCEngine#pullExternalAudioFrame} 获取音频数据。 + * @list 自定义流处理 + */ + + virtual int setAudioRenderType (AudioRenderType type) = 0; + /** + * + * @type api + * @brief 推送自定义采集的音频数据到 RTC SDK。 + * @param audio_frame 10 ms 对应的音频数据。详见 IAudioFrame{@link #IAudioFrame}。
    + * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 推送自定义采集的音频数据前,必须先调用 setAudioSourceType{@link #IRTCEngine#setAudioSourceType} 开启自定义采集。 + * - 你必须每 10 ms 推送一次数据。 + * @list 自定义流处理 + */ + + virtual int pushExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @region 自定义音频采集渲染 + * @brief 拉取下行音频数据用于自定义音频渲染。
    + * 调用该方法后,SDK 会主动拉取待播放的音频数据,包括远端已解码和混音后的音频数据,用于外部播放。 + * @param audio_frame 获取的 10 ms 内的音频数据。详见 IAudioFrame{@link #IAudioFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 获取音频数据用于自定义渲染前,必须先调用 setAudioRenderType{@link #IRTCEngine#setAudioRenderType} 开启自定义渲染。 + * - 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒拉取一次音频数据。确保音频采样点数(sample)x 拉取频率等于 audio_frame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口拉取数据,每次应拉取 480 个采样点。 + * - 该函数运行在用户调用线程内,是一个同步函数。 + * @list 自定义流处理 + * @order 9 + */ + + virtual int pullExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @hidden(Linux) + * @type api + * @region 自定义音频回声消除参考信号 + * @brief 向 SDK 发送由自定义处理后的 PCM 音频数据,作为回声消除的参考信号 + * @param audio_frame 10 ms 对应的音频数据。详见 IAudioFrame{@link #IAudioFrame}。 + * @return 方法调用结果
    + * + 0:方法调用成功
    + * + <-1:方法调用失败
    + * + <-302:警告,配置下发了无效的aec场景
    + * + <-303:警告,配置下发了错误的aec类型
    + * @note 你必须每 10 ms 推送一次数据。 + * @list 自定义流处理 + */ + + virtual int pushReferenceAudioPCMData(IAudioFrame* audio_frame) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 推送opus编码音频数据到 RTC SDK,RTC SDK纯转发。 + * @param audio_stream 对应的opus音频数据。详见 EncodedAudioFrameData{@link #EncodedAudioFrameData}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 推送音频数据前,必须先调用 enableAudioEncoding{@link #IRTCEngine#enableAudioEncoding} 关闭音频编码。 + * @list 自定义流处理 + */ + + virtual int pushExternalEncodedAudioFrame(const EncodedAudioFrameData& audio_stream) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频编码功能。 + * @param enable 是否使用sdk音频编码功能。 + * true: 打开音频编码(默认) + * false: 关闭音频编码直接转推。 + * @note + * - 在pushExternalEncodedAudioFrame{@link #IRTCEngine#pushExternalEncodedAudioFrame}之前调用。 + * @list 自定义流处理 + */ + + virtual void enableAudioEncoding(bool enable) = 0; + /** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频解码功能。 + * @param enable 是否使用sdk音频解码功能。 + * true: 打开音频解码功能(默认) + * false: 关闭音频解码功能直接转推。 + * @note + * - 在registerRemoteEncodedAudioFrameObserver 之前调用。 + * @list 自定义流处理 + */ + + virtual void enableAudioDecoding(bool enable) = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 注册远端音频帧监测器。
    + * 调用该方法后,SDK 每监测到一帧远端音频帧时,都会将音频帧信息通过 OnRemoteEncodedAudioFrame{@link #IRemoteEncodedAudioFrameObserver#OnRemoteEncodedAudioFrame} 回调给用户 + * @param observer 远端音频帧监测器,参看 IRemoteEncodedAudioFrameObserver{@link #IRemoteEncodedAudioFrameObserver} + * @note + * - 该方法建议在进房前调用。 + * - 将参数设置为 nullptr 则取消注册。 + * - 调用前,必须先调用 enableAudioDecoding{@link #IRTCEngine#enableAudioDecoding} 关闭音频解码功能。 + * @list 自定义流处理 + */ + + virtual void registerRemoteEncodedAudioFrameObserver(IRemoteEncodedAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
    + * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 onUserStartVideoCapture{@link #IRTCEngineEventHandler#onUserStartVideoCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 stopVideoCapture{@link #IRTCEngine#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。 + * - 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。 + * - 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 视频管理 + */ + + virtual int startVideoCapture() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStopVideoCapture{@link #IRTCEngineEventHandler#onUserStopVideoCapture} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 可以开启内部视频采集。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + * @list 视频管理 + */ + + virtual int stopVideoCapture() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param video_capture_config 视频采集参数。参看: VideoCaptureConfig{@link #VideoCaptureConfig}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 前调用本接口。 + * - 建议同一设备上的不同引擎使用相同的视频采集参数。 + * - 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + * @list 视频管理 + */ + + virtual int setVideoCaptureConfig(const VideoCaptureConfig& video_capture_config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本端采集的视频帧的旋转角度。
    + * 当摄像头倒置或者倾斜安装时,可调用本接口进行调整。 + * @param rotation 相机朝向角度,默认为 `VIDEO_ROTATION_0(0)`,无旋转角度。详见 VideoRotation{@link #VideoRotation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口也将对自定义采集视频画面生效,在原有的旋转角度基础上叠加本次设置。 + * - 对于 Windows SDK,视频贴纸特效或通过 enableVirtualBackground{@link #IVideoEffect#enableVirtualBackground} 增加的虚拟背景,也会跟随本接口的设置进行旋转。 + * @list 视频处理 + */ + + virtual int setVideoCaptureRotation(VideoRotation rotation) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置期望发布的最大分辨率视频流参数,包括分辨率、帧率、码率、网络不佳时的回退策略等(包含摄像头和屏幕的编码配置)。 + * @param encoder_config 期望发布的最大分辨率视频流参数。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * @return 方法调用结果: + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 本接口仅设置一路视频流参数。默认状态下只有单流,如需开启多路小流请使用:setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode}。 + * - 调用该方法前,SDK 默认仅发布一路视频流,分辨率为 640px × 360px @15fps,编码偏好为帧率优先。 + * - 使用自定义采集时,必须调用该方法设置编码参数,以保证远端收到画面的完整性。 + * @list 视频管理 + */ + + virtual int setVideoEncoderConfig(const VideoEncoderConfig& encoder_config) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端进行大小流(simulcast)设置。 + * @param mode 详见 VideoSimulcastMode{@link #VideoSimulcastMode}。默认为只发送单流。你应在进房前调用修改本参数。 + * @param stream_config 小流参数。分辨率按照从小到大顺序,且每路流参数分辨率需小于大流 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置参数。否则可能会设置失败。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @param num 自定义小流路数。与 stream_config 指向的数组长度一致。最大值为 3。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 调用本方法前,SDK 默认仅发布一条分辨率为 640px × 360px @15fps 的视频流。 + * - 本方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + + virtual int setLocalSimulcastMode(VideoSimulcastMode mode, const VideoEncoderConfig* stream_config, int num) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @brief 发布端开启大小流(simulcast)功能。 + * @param mode 详见 VideoSimulcastMode{@link #VideoSimulcastMode}。默认为只发送单流。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 你应在进房前调用本接口。 + * - 调用该方法前,SDK 默认仅发布一条分辨率为 640px × 360px,帧率为 15fps 的视频流。 + * - 如需自定义小流参数请查看它的重载方法 setLocalSimulcastMode(VideoSimulcastMode mode, const VideoEncoderConfig* stream_config, int num)。 + * - 该方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + + virtual int setLocalSimulcastMode(VideoSimulcastMode mode) = 0; + + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置全景视频,包括分辨率、高清视野和低清背景分辨率、Tile 大小,以及其他常规编码参数。 + * @param encoder_config 期望发布的最大分辨率视频流参数。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。
    + * 支持 8K 和 4K 两种分辨率的全景视频。 + * @param parameters 全景视频的编码参数,JSON 字符串格式
    + * - 8K: HD: 7680x3840, LD: 2560x1280, Tile: 640x640 + * - 4K: HD: 3840x1920, LD: 1280x640, Tile: 320x320 + * {
    + * ```rtc.fov_config":{ + * "mode":0, + * "hd_width":3840, + * "hd_height":1920, + * "ld_width":1280, + * "ld_height":640, + * "tile_width":320, + * "tile_height":320, + * "framerate":30, + * "max_kbps":40000} + * }``` + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 发布全景视频前,绑定自定义采集器,必须调用该方法设置编码参数。支持的视频格式包括 YUV 或者 Texture 纹理。 + * - 通过 onFrame{@link #IVideoSink#onFrame} ,接收端获取到视频帧和解码需要的信息,传给自定义渲染器进行渲染。 + * @list 视频管理 + */ + + virtual int setVideoEncoderConfig(const VideoEncoderConfig& encoder_config, const char* parameters) = 0; + /** + * + * @hidden(Linux, macOS) + * @valid since 3.58 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启自定义采集视频帧的 Alpha 通道编码功能。
    + * 适用于需要分离推流端视频主体与背景,且在拉流端可自定义渲染背景的场景。 + + * @param alpha_layout 分离后的 Alpha 通道相对于 RGB 通道信息的排列位置。当前仅支持 `AlphaLayout.kAlphaLayoutTop`,即置于 RGB 通道信息上方。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该接口仅作用于自定义采集的、并且使用 RGBA 色彩模型的视频帧,包括: + * - Windows:VideoPixelFormat.kVideoPixelFormatRGBA; + * - Android:VideoPixelFormat.TEXTURE_2D、VideoPixelFormat.TEXTURE_OES、VideoPixelFormat.RGBA; + * - iOS:ByteRTCVideoPixelFormat.ByteRTCVideoPixelFormatCVPixelBuffer。 + * - 该接口须在发布视频流之前调用。 + * - 调用本接口开启 Alpha 通道编码后,你需调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 把自定义采集的视频帧推送至 RTC SDK。若推送了不支持的视频帧格式,则调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 时会返回错误码 ReturnStatus.kReturnStatusParameterErr。 + * @list 视频管理 + */ + + virtual int enableAlphaChannelVideoEncode(AlphaLayout alpha_layout) = 0; + /** + * + * @valid since 3.58 + * @hidden(Linux, macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭外部采集视频帧的 Alpha 通道编码功能。 + + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 该接口须在停止发布视频流之后调用。 + * @list 视频管理 + */ + + virtual int disableAlphaChannelVideoEncode() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地视频渲染时使用的视图,并设置渲染模式。 + + * @param canvas 视图信息和渲染模式,参看:VideoCanvas{@link #VideoCanvas} + * @return + * - 0:成功。 + * - -2: 参数错误。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 你应在加入房间前,绑定本地视图。退出房间后,此设置仍然有效。 + * - 如果需要解除绑定,你可以调用本方法传入空视图。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 视频管理 + */ + + virtual int setLocalVideoCanvas(const VideoCanvas& canvas) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 修改本地视频渲染模式和背景色。 + + * @param render_mode 渲染模式,参看 RenderMode{@link #RenderMode} + * @param background_color 背景颜色,参看 VideoCanvas{@link #VideoCanvas}.background_color + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 你可以在本地视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateLocalVideoCanvas(const enum RenderMode render_mode, const uint32_t background_color) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置渲染指定视频流 `stream_key` 时,使用的视图和渲染模式。
    + * 如果需要解除某个用户的绑定视图,你可以把 `canvas` 设置为空。 + * @param stream_id 流标识 + * @param canvas 视图信息和渲染模式,参看:VideoCanvas{@link #VideoCanvas} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本地用户离开房间时,会解除调用此 API 建立的绑定关系;远端用户离开房间则不会影响。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 视频管理 + */ + + virtual int setRemoteVideoCanvas(const char* stream_id, const VideoCanvas& canvas) = 0; + /** + * + * @deprecated since 3.56, and will be deleted in 3.62. + * @type api + * @hiddensdk(audiosdk) + * @brief 修改远端视频帧的渲染设置,包括渲染模式和背景颜色。 + * @param stream_id 流标识 + * @param render_mode 渲染模式,参看 RenderMode{@link #RenderMode}。 + * @param background_color 背景颜色,参看 VideoCanvas{@link #VideoCanvas}.background_color + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 你可以在远端视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateRemoteStreamVideoCanvas(const char* stream_id, const enum RenderMode render_mode, const uint32_t background_color) = 0; + /** + * + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 SDK 内部渲染时,修改远端视频帧的渲染设置,包括渲染模式、背景颜色和旋转角度。 + * @param stream_id 流标识 + * @param remote_video_render_config 视频帧渲染设置。具体参看 RemoteVideoRenderConfig{@link #RemoteVideoRenderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 setRemoteVideoCanvas{@link #IRTCEngine#setRemoteVideoCanvas} 设置了远端视频渲染模式后,你可以调用此接口更新渲染模式、背景颜色、旋转角度的设置。 + * - 该接口可以在远端视频渲染过程中调用,调用结果会实时生效。 + * @list 视频管理 + */ + + virtual int updateRemoteStreamVideoCanvas(const char* stream_id, const RemoteVideoRenderConfig& remote_video_render_config) = 0; + /** + * + * @deprecated since 3.60, use setLocalVideoSink(IVideoSink* video_sink, LocalVideoSinkConfig& config) instead. + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param required_format video_sink 适用的视频帧编码格式,参看 PixelFormat{@link #PixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 如果需要解除绑定,必须将 video_sink 设置为 null。退房时将清除绑定状态。 + * - 一般在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * - 本方法获取的是前处理后的视频帧。 + * @list 自定义流处理 + */ + + BYTERTC_DEPRECATED virtual int setLocalVideoSink(IVideoSink* video_sink, IVideoSink::PixelFormat required_format) = 0; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param config 本地视频帧回调配置,参看 LocalVideoSinkConfig{@link #LocalVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 video_sink 设置为 null。 + * - 一般在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * @list 自定义流处理 + */ + + virtual int setLocalVideoSink(IVideoSink* video_sink, LocalVideoSinkConfig& config) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setRemoteVideoSink{@link #IRTCEngine#setRemoteVideoSink} instead. + * @region 自定义视频采集渲染 + * @brief 将远端视频流与自定义渲染器绑定。 + * @param stream_id 流标识 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param required_format video_sink 适用的视频帧编码格式,参看 PixelFormat{@link #PixelFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取到远端流信息之后,再调用该方法。 + * - 如果需要解除绑定,必须将 video_sink 设置为 null。退房时将清除绑定状态。 + * - 本方法获取的是后处理后的视频帧。 + * @list 自定义流处理 + */ + + BYTERTC_DEPRECATED virtual int setRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, IVideoSink::PixelFormat required_format) = 0; + + /** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @region 自定义视频帧回调 + * @brief 将远端视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param stream_id 流标识 + * @param video_sink 自定义视频渲染器,参看 IVideoSink{@link #IVideoSink}。 + * @param config 远端视频帧回调配置,参看 RemoteVideoSinkConfig{@link #RemoteVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取到远端流信息之后,再调用该方法。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 video_sink 设置为 null。 + * @list 自定义流处理 + * @order 3 + */ + + + virtual int setRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, RemoteVideoSinkConfig& config) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 切换视频内部采集时使用的前置/后置摄像头
    + * 调用此接口后,在本地会触发 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 回调。 + * @param camera_id 参看 CameraID {@link #CameraID}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 默认使用前置摄像头。 + * - 如果你正在使用相机进行视频采集,切换操作当即生效;如果相机未启动,后续开启内部采集时,会打开设定的摄像头。 + * - 如果本地有多个摄像头且想选择特定工作摄像头可通过 IVideoDeviceManager{@link #IVideoDeviceManager} 来控制。 + * @list 视频管理 + */ + + virtual int switchCamera(CameraID camera_id) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新采集区域。仅用于采集源为显示器屏幕时。 + * @param region_rect 采集区域。参见 Rectangle{@link #Rectangle}
    + * 此参数描述了调用此接口后的采集区域,和 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 中 `source_info` 设定区域的相对关系。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 5 + */ + + virtual int updateScreenCaptureRegion(const Rectangle& region_rect) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 采集屏幕视频流,用于共享。屏幕视频流包括:应用窗口中显示的内容,或虚拟屏幕中显示的内容。
    + * 其中,虚拟屏幕中显示的内容仅在 Windows 平台上支持。 + * @param source_info 待共享的屏幕源,参看 ScreenCaptureSourceInfo{@link #ScreenCaptureSourceInfo}。
    + * 你可以调用 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 获得所有可以共享的屏幕源。 + * @param capture_params 共享参数。参看 ScreenCaptureParameters{@link #ScreenCaptureParameters}。 + * @return + * - 0: 成功 + * - -1: 失败 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onVideoDeviceWarning{@link #IRTCEngineEventHandler#onVideoDeviceWarning} 回调。 + * - 调用此方法仅开启屏幕流视频采集,不会发布采集到的视频。发布屏幕流视频需要调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo}。 + * - 调用 stopScreenVideoCapture{@link #IRTCEngine#stopScreenVideoCapture} 关闭屏幕视频源采集。 + * - 本地用户通过 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调获取屏幕采集状态,包括开始、暂停、恢复、错误等。 + * - 调用成功后,本端会收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调。 + * - 调用此接口前,你可以调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置屏幕视频流的采集帧率和编码分辨率。 + * - 在收到 onFirstLocalVideoFrameCaptured{@link #IRTCEngineEventHandler#onFirstLocalVideoFrameCaptured} 回调后通过调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 或 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 函数设置本地屏幕共享视图。 + * - 可以调用 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 将本地视频流与自定义渲染器绑定,通过回调 onFrame{@link #IVideoSink#onFrame} 获取采集成功的本地视频帧。 + * - 对于 Windows SDK,再开启采集屏幕视频流后,你可以调用 updateScreenCaptureHighlightConfig{@link #IRTCEngine#updateScreenCaptureHighlightConfig} 更新边框高亮设置,调用 updateScreenCaptureMouseCursor{@link #IRTCEngine#updateScreenCaptureMouseCursor} 更新对鼠标的处理设置,调用 updateScreenCaptureFilterConfig{@link #IRTCEngine#updateScreenCaptureFilterConfig} 设置需要过滤的窗口。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 1 + */ + + virtual int startScreenVideoCapture(const ScreenCaptureSourceInfo& source_info, const ScreenCaptureParameters& capture_params) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止屏幕视频流采集。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onVideoDeviceWarning{@link #IRTCEngineEventHandler#onVideoDeviceWarning} 回调。 + * - 要开启屏幕视频流采集,调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture}。 + * - 调用后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。 + * - 调用此接口不影响屏幕视频流发布。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 6 + */ + + virtual int stopScreenVideoCapture() = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新边框高亮设置。默认展示边框。 + * @param highlight_config 边框高亮设置。参见 HighlightConfig{@link #HighlightConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 2 + */ + + virtual int updateScreenCaptureHighlightConfig(const HighlightConfig& highlight_config) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,更新对鼠标的处理设置。默认采集鼠标。 + * @param capture_mouse_cursor 参看 MouseCursorCaptureState{@link #MouseCursorCaptureState} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 3 + */ + + virtual int updateScreenCaptureMouseCursor(MouseCursorCaptureState capture_mouse_cursor) = 0; + /** + * + * @hidden(Linux,iOS,Android) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,设置需要过滤的窗口。 + * @param filter_config 窗口过滤设置,参看 ScreenFilterConfig{@link #ScreenFilterConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 开启了内部屏幕流采集。 + * - 本函数在屏幕源类别是屏幕而非应用窗体时才起作用。详见:ScreenCaptureSourceType{@link #ScreenCaptureSourceType}。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 4 + */ + + virtual int updateScreenCaptureFilterConfig(const ScreenFilterConfig& filter_config) = 0; + + /** + * + * @hidden(Android,iOS) + * @brief 获取共享对象列表。 + * @return 共享对象列表,包括应用窗口和屏幕。详见 IScreenCaptureSourceList{@link #IScreenCaptureSourceList}。用户选择后,可调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 进行共享。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。采用 Wayland 协议,调用 startScreenVideoCapture{@link #IRTCEngine#startScreenVideoCapture} 时,系统会通过弹窗供用户选择共享对象。 + * - 使用完之后需要调用 release{@link #IScreenCaptureSourceList#release} 接口释放。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 0 + */ + + virtual IScreenCaptureSourceList* getScreenCaptureSourceList() = 0; + + /** + * + * @hidden(Android,iOS) + * @brief 获取共享对象缩略图 + * @region 屏幕共享 + * @param type 屏幕采集对象的类型。详见 ScreenCaptureSourceType{@link #ScreenCaptureSourceType}。 + * @param source_id 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 枚举共享对象列表中获取。详见 view_t{@link #view_t}。 + * @param max_width 最大宽度。保持采集对象本身的宽高比不变,将缩略图缩放到指定范围内的最大宽高。如果给出的尺寸与共享对象比例不同,得到的缩略图会有黑边。 + * @param max_height 最大高度。参见 max_width 的说明。 + * @return 共享对象缩略图,详见 IVideoFrame{@link #IVideoFrame}。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 9 + */ + + virtual IVideoFrame* getThumbnail( + ScreenCaptureSourceType type, view_t source_id, int max_width, int max_height) = 0; + /** + * + * @hidden(Android,iOS) + * @region 屏幕共享 + * @brief 获取应用窗体所属应用的图标。 + * @param source_id 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #IRTCEngine#getScreenCaptureSourceList} 枚举共享对象列表中获取。 + * @param max_width 最大宽度。返回的图标将是宽高相等的,输入宽高不等时,取二者较小值。宽高范围为 [32,256],超出该范围将返回 nullptr,默认输出 100 x 100 的图像。 + * @param max_height 最大高度。参见 max_width 的说明。 + * @return 详见 IVideoFrame{@link #IVideoFrame}。当屏幕共享对象为应用窗体,且有图标时有效,否则返回 nullptr。 + * @note + * - 对 Linux 系统,采用 X11 协议时可用;采用 Wayland 协议时不可用。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 屏幕共享 + * @order 10 + */ + + virtual IVideoFrame* getWindowAppIcon(view_t source_id, int max_width = 100, int max_height = 100) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置向 SDK 输入的视频源,包括屏幕流
    + * 默认使用内部采集。内部采集指:使用 RTC SDK 内置的视频采集机制进行视频采集。 + + * @param type 视频输入源类型,参看 VideoSourceType{@link #VideoSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法进房前后均可调用。 + * - 当你已调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集后,再调用此方法切换至自定义采集时,SDK 会自动关闭内部采集。 + * - 当你调用此方法开启自定义采集后,想要切换至内部采集,你必须先调用此方法关闭自定义采集,然后调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 手动开启内部采集。 + * - 当你需要向 SDK 推送自定义编码后的视频帧,你需调用该方法将视频源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + + virtual int setVideoSourceType(VideoSourceType type) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送外部视频帧。 + * @param frame 设置视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 支持格式:I420, NV12, RGBA, BGRA, ARGB。不支持 RGB24。 + * - 该函数运行在用户调用线程内。 + * - 推送外部视频帧前,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 开启外部视频源采集。 + * @list 自定义流处理 + */ + + virtual int pushExternalVideoFrame(const VideoFrameData& frame) = 0; + + /** + * + * @hidden(Windows,Linux,macOS) + * @type api + * @brief 设置音频播放设备。默认使用通过 setDefaultAudioRoute{@link #IRTCEngine#setDefaultAudioRoute} 设置的默认音频路由。
    + * 音频播放设备发生变化时,会收到 onAudioRouteChanged{@link #IRTCEngineEventHandler#onAudioRouteChanged} 回调。 + * @param device 音频播放设备。参看 AudioRoute{@link #AudioRoute}。仅支持听筒或者扬声器。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 对于绝大多数音频场景,推荐使用 setDefaultAudioRoute{@link #IRTCEngine#setDefaultAudioRoute} 设置默认音频路由,并借助 RTC SDK 的音频路由自动切换逻辑即可完成。切换逻辑参见[移动端设置音频路由](https: + * - 本接口在 Android 端仅支持在通话模式下使用;在 iOS 端支持在通话模式和媒体模式下使用,但切换的目标路由仅支持内置扬声器。 + * @list 音频管理 + */ + + virtual int setAudioRoute(AudioRoute route) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 将默认的音频播放设备设置为听筒或扬声器。 + * @param route 音频播放设备。参看 AudioRoute{@link #AudioRoute} + * @return 方法调用结果
    + * - 0: 方法调用成功。立即生效。当所有音频外设移除后,音频路由将被切换到默认设备。 + * - < 0: 方法调用失败。指定除扬声器和听筒以外的设备将会失败。 + * @note 对于音频路由切换逻辑,参见[移动端设置音频路由](https: + * @list 音频管理 + */ + + virtual int setDefaultAudioRoute(AudioRoute route) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 获取当前音频播放设备
    + * 音频播放设备发生变化时,会收到 onAudioRouteChanged{@link #IRTCEngineEventHandler#onAudioRouteChanged} 回调。 + * @return device 当前音频播放设备。参看 AudioRoute{@link #AudioRoute} + * @note + * - 1. 该接口仅适用于移动设备。 + * - 2. 通话前和通话中都可以调用该方法。 + * @list 音频管理 + */ + + virtual AudioRoute getAudioRoute() = 0; + /** + * + * @type api + * @brief 创建 RTC 房间实例。
    + * 调用此方法仅返回一个 RTC 房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 IRTCRoom{@link #IRTCRoom} 实例。分别调用各 IRTCRoom 实例中的 joinRoom{@link #IRTCRoom#joinRoom} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTCRoom{@link #IRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTCRoom 实例,再调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * - 如果你需要在多个房间发布音视频流,无须创建多房间,直接调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 开始跨房间转发媒体流。 + * @list 房间管理 + */ + + virtual IRTCRoom* createRTCRoom(const char* room_id) = 0; + + /** + * + * @type api + * @brief 创建游戏语音房间实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IGameRoom#joinRoom} 才能真正地创建/加入游戏房间。
    + * 多次调用此方法以创建多个 IGameRoom{@link #IGameRoom} 实例。分别调用各 IGameRoom 实例中的 joinRoom{@link #IGameRoom#joinRoom} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @param room_config 游戏语音房间配置。参看 GameRoomConfig{@link #GameRoomConfig}。 + * @return 创建的 IGameRoom{@link #IGameRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误或当前场景是否是游戏场景。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IGameRoom 实例,再调用 joinRoom{@link #IGameRoom#joinRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + + virtual IGameRoom* createGameRoom(const char* room_id, const GameRoomConfig& room_config) = 0; + /** + * + * @type api + * @brief 创建 RTS 房间实例。
    + * 调用此方法仅返回一个 RTS 房间实例,你仍需调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 IRTSRoom{@link #IRTSRoom} 实例。分别调用各 IRTSRoom 实例中的 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时收发各房间的消息。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTSRoom{@link #IRTSRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 room_id 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTSRoom 实例,再调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 请勿使用同样的 room_id 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + + virtual IRTSRoom* createRTSRoom(const char* room_id) = 0; + /** + * + * @type api + * @brief 设置发布的音视频流的回退选项。
    + * 你可以调用该接口设置网络不佳或设备性能不足时从大流起进行降级处理,以保证通话质量。 + * @param option 本地发布的音视频流回退选项,参看 PublishFallbackOption{@link #PublishFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅在调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效。 + * - 该方法必须在进房前设置,进房后设置或更改设置无效。 + * - 调用该方法后,如因性能或网络不佳产生发布性能回退或恢复,本端会提前收到 onPerformanceAlarms{@link #IRTCEngineEventHandler#onPerformanceAlarms} 回调发出的告警,以便采集设备配合调整。 + * - 设置回退后,本地发布的音视频流发生回退或从回退中恢复后,远端会收到 onSimulcastSubscribeFallback{@link #IRTCEngineEventHandler#onSimulcastSubscribeFallback} 回调,通知该情况。 + * - 你可以调用客户端 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + + virtual int setPublishFallbackOption(PublishFallbackOption option) = 0; + /** + * + * @type api + * @brief 设置订阅的音视频流的回退选项。
    + * 你可调用该接口设置网络不佳或设备性能不足时允许订阅流进行降级或只订阅音频流,以保证通话流畅。 + * @param option 订阅的音视频流回退选项,参看 SubscribeFallbackOption{@link #SubscribeFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 你必须在进房前设置,进房后设置或更改设置无效。 + * - 设置回退选项后,订阅的音视频流发生回退或从回退中恢复时,会收到 onSimulcastSubscribeFallback{@link #IRTCEngineEventHandler#onSimulcastSubscribeFallback} 和 onRemoteVideoSizeChanged{@link #IRTCEngineEventHandler#onRemoteVideoSizeChanged} 回调通知。 + * - 你可以调用 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + + virtual int setSubscribeFallbackOption(SubscribeFallbackOption option) = 0; + /** + * + * @type api + * @brief 设置用户优先级。 + * @param room_id 房间 ID + * @param user_id 远端用户的 ID + * @param priority 远端用户的需求优先级,详见枚举类型 RemoteUserPriority{@link #RemoteUserPriority} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 1. 该方法与 setSubscribeFallbackOption{@link #IRTCEngine#setSubscribeFallbackOption} 搭配使用。 + * - 2. 如果开启了订阅流回退选项,弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + * - 3. 该方法在进房前后都可以使用,可以修改远端用户的优先级。 + * @list 网络管理 + */ + + virtual int setRemoteUserPriority(const char* room_id, const char* user_id, RemoteUserPriority priority) = 0; + /** + * + * @type api + * @brief 设置业务标识参数
    + * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param business_id
    + * 用户设置的自己的 businessId 值
    + * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return + * - 0: 成功。 + * - -2: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符,分别是:英文句号,短横线,下划线和 @ 。 + * @note + * - 需要在调用 joinRoom{@link #IRTCRoom#joinRoom} 之前调用,joinRoom{@link #IRTCRoom#joinRoom} 之后调用该方法无效。 + * @list 引擎管理 + */ + + virtual int setBusinessId(const char* business_id) = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置采集视频的旋转模式。默认以 App 方向为旋转参考系。
    + * 接收端渲染视频时,将按照和发送端相同的方式进行旋转。 + * @param rotation_mode 视频旋转参考系为 App 方向或重力方向,参看 VideoRotationMode{@link #VideoRotationMode} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 旋转仅对内部视频采集生效,不适用于外部视频源和屏幕源。 + * - 调用该接口时已开启视频采集,将立即生效;调用该接口时未开启视频采集,则将在采集开启后生效。 + * - 更多信息请参考[视频采集方向](https: + * @list Engine Management + */ + + virtual int setVideoRotationMode(VideoRotationMode rotation_mode) = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 为采集到的视频流开启镜像 + * @param mirror_type 镜像类型,参看 MirrorType{@link #MirrorType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 切换视频源不影响镜像设置。 + * - 屏幕视频流始终不受镜像设置影响。 + * - 使用外部渲染器时,`mirrorType` 支持设置为 `0`(无镜像)和 `3`(本地预览和编码传输镜像),不支持设置为 `1`(本地预览镜像)。 + * - 该接口调用前,各视频源的初始状态如下: + * + * + * + * + *
    前置摄像头后置摄像头自定义采集视频源 桌面端摄像头
    移动端本地预览镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 /
    桌面端// 本地预览不镜像,编码传输不镜像 本地预览镜像,编码传输不镜像
    + * @list 视频处理 + */ + + virtual int setLocalVideoMirrorType(MirrorType mirror_type) = 0; + /** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用内部渲染时,为远端流开启镜像。 + * @param stream_id 流标识 + * @param mirror_type 远端流的镜像类型,参看 RemoteMirrorType{@link #RemoteMirrorType}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败,参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list 视频处理 + */ + + virtual int setRemoteVideoMirrorType(const char* stream_id, RemoteMirrorType mirror_type) = 0; + /** + * + * @type api + * @brief 获取视频特效接口。 + * @return 视频特效接口,参看 IVideoEffect{@link #IVideoEffect}。 + * @list 视频处理 + */ + + virtual IVideoEffect* getVideoEffectInterface() = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 开启/关闭基础美颜。 + * @param enable 基础美颜开关
    + * - true: 开启基础美颜 + * - false: 关闭基础美颜(默认) + * @return + * - 0: 调用成功。 + * - –1001: RTC SDK 版本不支持此功能。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 本方法不能与高级视频特效接口共用。如已购买高级视频特效,建议参看[集成指南](https: + * - 使用此功能需要集成特效 SDK,建议使用特效 SDK v4.4.2+ 版本。更多信息参看 [Native 端基础美颜](https: + * - 调用 setBeautyIntensity{@link #IRTCEngine#setBeautyIntensity} 设置基础美颜强度。若在调用本方法前没有设置美颜强度,则使用默认强度。各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * - 本方法仅适用于视频源,不适用于屏幕源。 + * @list 视频处理 + */ + + virtual int enableEffectBeauty(bool enable) = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 调整基础美颜强度。 + * @param beauty_mode 基础美颜模式,参看 EffectBeautyMode{@link #EffectBeautyMode}。 + * @param intensity 美颜强度,取值范围为 [0,1]。强度为 0 表示关闭。
    + * 各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * @return + * - 0: 调用成功。 + * - –2: `intensity` 范围超限。 + * - –1001: RTC SDK 版本不支持此功能。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 若在调用 enableEffectBeauty{@link #IRTCEngine#enableEffectBeauty} 前设置美颜强度,则对应美颜功能的强度初始值会根据设置更新。 + * - 销毁引擎后,美颜功能强度恢复默认值。 + * @list 视频处理 + */ + + virtual int setBeautyIntensity(EffectBeautyMode beauty_mode, float intensity) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置远端视频超分模式。 + * @param stream_id 流标识 + * @param mode 超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + * @return + * - 0: kReturnStatusSuccess,SDK 调用成功,并不代表超分模式实际状态,需要根据回调 onRemoteVideoSuperResolutionModeChanged{@link #IRTCEngineEventHandler#onRemoteVideoSuperResolutionModeChanged} 判断实际状态。 + * - -1: kReturnStatusNativeInvalid,native library 未加载。 + * - -2: kReturnStatusParameterErr,参数非法,指针为空或字符串为空。 + * - -9: kReturnStatusScreenNotSupport,不支持对屏幕流开启超分。 + * @note + * - 该方法须进房后调用。 + * - 远端用户视频流的原始分辨率不能超过 640 × 360 px。 + * - 支持对一路远端流开启超分,不支持对多路流开启超分。 + * @list 视频处理 + */ + + virtual int setRemoteVideoSuperResolution(const char* stream_id, VideoSuperResolutionMode mode) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置视频降噪模式。 + * @param mode 视频降噪模式,启用后能够增强视频画质,但同时会增加性能负载。参看 VideoDenoiseMode{@link #VideoDenoiseMode}。 + * @return + * - 0: API 调用成功。 用户可以根据回调函数 onVideoDenoiseModeChanged{@link #IRTCEngineEventHandler#onVideoDenoiseModeChanged} 判断视频降噪是否开启。 + * - < 0:API 调用失败。 + * @list 视频处理 + */ + + virtual int setVideoDenoiser(VideoDenoiseMode mode) = 0; + /** + * + * @hidden(Windows, Linux, macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在自定义视频前处理及编码前,设置 RTC 链路中的视频帧朝向,默认为 Adaptive 模式。
    + * 移动端开启视频特效贴纸,或使用自定义视频前处理时,建议固定视频帧朝向为 Portrait 模式。单流转推场景下,建议根据业务需要固定视频帧朝向为 Portrait 或 Landscape 模式。不同模式的具体显示效果参看[视频帧朝向](https: + * @param orientation 视频帧朝向,参看 VideoOrientation{@link #VideoOrientation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 视频帧朝向设置仅适用于内部采集视频源。对于自定义采集视频源,设置视频帧朝向可能会导致错误,例如宽高对调。屏幕源不支持设置视频帧朝向。 + * - 编码分辨率的更新与视频帧处理是异步操作,进房后切换视频帧朝向可能导致画面出现短暂的裁切异常,因此建议在进房前设置视频帧朝向,且不在进房后进行切换。 + * @list 自定义流处理 + */ + + virtual int setVideoOrientation(VideoOrientation orientation) = 0; + /** + * + * @hidden(macOS, Windows,Linux) + * @type api + * @brief 获取相机控制接口 + * @return 相机控制接口指针,参看 ICameraControl{@link #ICameraControl} + * @list 视频管理 + */ + + virtual ICameraControl* getCameraControl() = 0; + /** + * + * @type api + * @brief 设置传输时使用内置加密的方式。 + * @param encrypt_type 内置加密算法,详见 EncryptType{@link #EncryptType} + * @param key 加密密钥,长度限制为 36 位,超出部分将会被截断 + * @param key_size 参数 key 的长度 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 使用传输时内置加密时,使用此方法;如果需要使用传输时自定义加密,参看 onEncryptData{@link #IEncryptHandler#onEncryptData}。 内置加密和自定义加密互斥,根据最后一个调用的方法确定传输是加密的方案。 + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * @list 通话加密 + */ + + virtual int setEncryptInfo(EncryptType encrypt_type, const char* key, int key_size) = 0; + /** + * + * @type api + * @brief 设置自定义加密和解密方式。 + * @param handler 自定义加密 handler,需要实现 handler 的加密和解密方法。参看 IEncryptHandler{@link #IEncryptHandler}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法与 setEncryptInfo{@link #IRTCEngine#setEncryptInfo} 为互斥关系,只能选择自定义加密方式或者默认加密方式。最终生效的加密方式取决于最后一个调用的方法。 + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * - 无论加密或者解密,其对原始数据的长度修改,需要控制在 180% 之间,即如果输入数据为 100 字节,则处理完成后的数据必须不超过 180 字节,如果加密或解密结果超出该长度限制,则该音视频帧可能会被丢弃。 + * - 数据加密/解密为串行执行,因而视实现方式不同,可能会影响到最终渲染效率。是否使用该方法,需要由使用方谨慎评估。 + * @list 通话加密 + */ + + virtual int setCustomizeEncryptHandler(IEncryptHandler* handler) = 0; + /** + * + * @type api + * @brief 设置并开启指定的音频数据帧回调 + * @param method 音频回调方法,参看 AudioFrameCallbackMethod{@link #AudioFrameCallbackMethod}。
    + * 当音频回调方法设置为 `kRecord`、`kPlayback`、`kMixed`、`kRecordScreen`、`kCaptureMixed`时,你需要在参数 `format` 中指定准确的采样率和声道,暂不支持设置为自动。
    + * 当音频回调方法设置为 `kRemoteUser`时,将 `format` 中的各个字段设置为默认值。 + * @param format 音频参数格式,参看 AudioFormat{@link #AudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 开启音频回调并调用 registerAudioFrameObserver{@link #IRTCEngine#registerAudioFrameObserver} 后,IAudioFrameObserver{@link #IAudioFrameObserver} 会收到对应的音频回调。两者调用顺序没有限制且相互独立。 + * @list 自定义流处理 + */ + + virtual int enableAudioFrameCallback(AudioFrameCallbackMethod method, AudioFormat format) = 0; + /** + * + * @type api + * @brief 关闭音频回调 + * @param method 音频回调方法,参看 AudioFrameCallbackMethod{@link #AudioFrameCallbackMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该方法需要在调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 之后调用。 + * @list 自定义流处理 + */ + + virtual int disableAudioFrameCallback(AudioFrameCallbackMethod method) = 0; + /** + * + * @type api + * @brief 注册音频数据回调观察者。 + * @param observer 音频数据观察者,参看 IAudioFrameObserver{@link #IAudioFrameObserver}。如果传入 null,则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 注册音频数据回调观察者并调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 后,IAudioFrameObserver{@link #IAudioFrameObserver} 会收到对应的音频回调。对回调中收到的音频数据进行处理,不会影响 RTC 的编码发送或渲染。 + * @list 自定义流处理 + */ + + virtual int registerAudioFrameObserver(IAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @brief 注册自定义音频处理器。
    + * 注册完成后,你可以调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},对本地采集到的音频进行处理,RTC SDK 将对处理后的音频进行编码和发送。也可以对接收到的远端音频进行自定义处理,RTC SDK 将对处理后的音频进行渲染。 + * @param processor 自定义音频处理器,详见 IAudioFrameProcessor{@link #IAudioFrameProcessor}。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。需要取消注册时,设置此参数为 nullptr。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 重复调用此接口时,仅最后一次调用生效。 + * - 更多相关信息,详见[音频自定义处理](https: + * @list 自定义流处理 + */ + + virtual int registerAudioProcessor(IAudioFrameProcessor* processor) = 0; + /** + * + * @type api + * @brief 设置并开启指定的音频帧回调,进行自定义处理。 + * @param method 音频帧类型,参看 AudioProcessorMethod{@link #AudioProcessorMethod}。可多次调用此接口,处理不同类型的音频帧。
    + * 选择不同类型的音频帧将收到对应的回调:
    + * - 选择本地采集的音频时,会收到 onProcessRecordAudioFrame{@link #IAudioFrameProcessor#onProcessRecordAudioFrame}。 + * - 选择远端音频流的混音音频时,会收到 onProcessPlayBackAudioFrame{@link #IAudioFrameProcessor#onProcessPlayBackAudioFrame}。 + * - 选择远端音频流时,会收到 onProcessRemoteUserAudioFrame{@link #IAudioFrameProcessor#onProcessRemoteUserAudioFrame}。 + * - 选择屏幕共享音频流时,会收到 onProcessScreenAudioFrame{@link #IAudioFrameProcessor#onProcessScreenAudioFrame}。(Linux 不适用) + * @param format 设定自定义处理时获取的音频帧格式,参看 AudioFormat{@link #AudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在调用此接口前,你需要调用 registerAudioProcessor{@link #IRTCEngine#registerAudioProcessor} 注册自定义音频处理器。 + * - 要关闭音频自定义处理,调用 disableAudioProcessor{@link #IRTCEngine#disableAudioProcessor}。 + * @list 自定义流处理 + */ + + virtual int enableAudioProcessor(AudioProcessorMethod method, AudioFormat format) = 0; + /** + * + * @type api + * @brief 关闭自定义音频处理。 + * @param method 音频帧类型,参看 AudioProcessorMethod{@link #AudioProcessorMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 自定义流处理 + */ + + virtual int disableAudioProcessor(AudioProcessorMethod method) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置自定义视频前处理器。
    + * 使用这个视频前处理器,你可以调用 processVideoFrame{@link #IVideoProcessor#processVideoFrame} 对 RTC SDK 采集得到的视频帧进行前处理,并将处理后的视频帧用于 RTC 音视频通信。 + * @param processor 自定义视频处理器,详见 IVideoProcessor{@link #IVideoProcessor}。如果传入 null,则不对 RTC SDK 采集得到的视频帧进行前处理。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。 + * @param config 自定义视频前处理器适用的设置,详见 VideoPreprocessorConfig{@link #VideoPreprocessorConfig}。
    + * 当前,`config` 中的 `required_pixel_format` 仅支持:`kVideoPixelFormatI420` 和 `kVideoPixelFormatUnknown`:
    + * - 设置为 `kVideoPixelFormatUnknown` 时,RTC SDK 给出供 processor 处理的视频帧格式即采集的格式。 + * 你可以通过 VideoBufferType{@link #VideoBufferType} 和 VideoPixelFormat{@link #VideoPixelFormat} 获取实际采集的视频帧格式和像素类型。
    + * - 设置为 `kVideoPixelFormatI420` 时,RTC SDK 会将采集得到的视频帧转变为对应的格式,供前处理使用。 + * - 设置为其他值时,此方法调用失败。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 对于 Windows 平台,经前处理返回的视频帧格式仅支持 `kVideoPixelFormatI420` + * - 对于 Windows 平台,将 `config` 中的 required_pixel_format 设置为 `kVideoPixelFormatI420`,可以通过避免格式转换带来一些性能优化。 + * - 重复调用此接口时,仅最后一次调用生效。效果不会叠加。 + * @list 自定义流处理 + */ + + virtual int registerLocalVideoProcessor(IVideoProcessor* processor, VideoPreprocessorConfig config) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地摄像头数码变焦参数,包括缩放倍数,移动步长。 + * @param type 数码变焦参数类型,缩放系数或移动步长。参看 ZoomConfigType{@link #ZoomConfigType}。必填。 + * @param size 缩放系数或移动步长,保留到小数点后三位。默认值为 0。必填。
    + * 选择不同 `type` 时有不同的取值范围。当计算后的结果超过缩放和移动边界时,取临界值。
    + * - `kZoomConfigTypeFocusOffset`:缩放系数增量,范围为 [0, 7]。例如,设置为 0.5 时,如果调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 选择 Zoom in,则缩放系数增加 0.5。缩放系数范围 [1,8],默认为 `1`,原始大小。 + * - `kZoomConfigTypeMoveOffset`:移动百分比,范围为 [0, 0.5],默认为 0,不移动。如果调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 选择的是左右移动,则移动距离为 size x 原始视频宽度;如果选择的是上下移动,则移动距离为 size x 原始视频高度。例如,视频帧边长为 1080 px,设置为 0.5 时,实际移动距离为 0.5 x 1080 px = 540 px。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 每次调用本接口只能设置一种参数。如果缩放系数和移动步长都需要设置,分别调用本接口传入相应参数。 + * - 由于移动步长的默认值为 `0` ,在调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 或 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl} 进行数码变焦操作前,应先调用本接口。 + * @list 视频处理 + */ + + virtual int setVideoDigitalZoomConfig(ZoomConfigType type, float size) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 控制本地摄像头数码变焦,缩放或移动一次。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ZoomDirectionType{@link #ZoomDirectionType}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig{@link #IRTCEngine#setVideoDigitalZoomConfig} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 如果你希望实现持续数码变焦操作,调用 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio`。 + * @list 视频处理 + */ + + virtual int setVideoDigitalZoomControl(ZoomDirectionType direction) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地摄像头持续数码变焦,缩放或移动。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ZoomDirectionType{@link #ZoomDirectionType}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig{@link #IRTCEngine#setVideoDigitalZoomConfig} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值并停止操作。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 你也可以调用 stopVideoDigitalZoomControl{@link #IRTCEngine#stopVideoDigitalZoomControl} 手动停止控制。 + * - 如果你希望实现单次数码变焦操作,调用 setVideoDigitalZoomControl{@link #IRTCEngine#setVideoDigitalZoomControl}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio`。 + * @list 视频处理 + */ + + virtual int startVideoDigitalZoomControl(ZoomDirectionType direction) = 0; + /** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地摄像头持续数码变焦。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 关于开始数码变焦,参看 startVideoDigitalZoomControl{@link #IRTCEngine#startVideoDigitalZoomControl}。 + * @list 视频处理 + */ + + virtual int stopVideoDigitalZoomControl() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 通过视频帧发送 SEI 数据。
    + * 在视频通话场景下,SEI 数据会随视频帧发送;在语音通话场景下,SDK 会自动生成一路 16px × 16px 的黑帧视频流用来发送 SEI 数据。 + + * 语音通话场景下,该值需设为 `kStreamIndexMain`,否则 SEI 数据会被丢弃从而无法送达远端。 + * @param message SEI 消息。 + * @param length SEI 消息长度,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeat_count 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 SEICountPerFrame{@link #SEICountPerFrame}。 + * @return + * - >= 0: 将被添加到视频帧中的 SEI 的数量。 + * - < 0: 发送失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。在语音通话场景下,黑帧帧率为 15 fps。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 语音通话场景中,仅支持在内部采集模式下调用该接口发送 SEI 数据。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据;语音通话场景下,若调用此接口后 1min 内未有 SEI 数据发送,则 SDK 会自动取消发布视频黑帧。 + * - 消息发送成功后,远端会收到 onSEIMessageReceived{@link #IRTCEngineEventHandler#onSEIMessageReceived} 回调。 + * - 语音通话切换至视频通话时,会停止使用黑帧发送 SEI 数据,自动转为用采集到的正常视频帧发送 SEI 数据。 + * @list 消息 + */ + + virtual int sendSEIMessage(const uint8_t* message, int length, int repeat_count, SEICountPerFrame mode) = 0; + /** + * + * @type api + * @list 消息 + * @brief 以 Key-Value 格式通过视频帧发送 SEI 数据。 + * 调用此接口前,必须在调用 setLiveMode{@link #IRTCRoom#setLiveMode} 时将房间模式设置为 `kRoomLiveModeSoloHost` 开启单人直播模式。 + * @param json_string JSON 格式的键值对,例如 `{"key1":"value1","key2":"value2"}`: + * - 如果某个 Key 对应的 Value 为空(例如 `""` 或 `null`),则会从 SEI 字典中删除该 Key。 + * - 所有 Key-Value 合并后的总 SEI 数据大小不能超过 10KB。 + * @param count 连续发送该 SEI 数据的次数。 + * - 当 `is_key_frame_only` 为 true 时,代表伴随 `count` 个关键帧(I 帧)发送。 + * - 当 `is_key_frame_only` 为 false 时,代表伴随 `count` 个视频帧发送。 + * @param is_key_frame_only 是否只随关键帧(I 帧)发送: + * - true:只在关键帧发送。 + * - false:所有帧都会发送。 + * @param allow_overwrite 设置该 Key 写入后,后续请求是否允许覆盖它: + * - true:后续请求可覆盖该 Key 的 Value,且 `count` 也会更新为新值; + * - false:后续请求会忽略该 Key 的新值,保持原样。对于已存在的 Key,是否允许本次覆盖取决于该 Key 已保存的覆盖策略。 + * @return + * - 0: 调用成功。 + * - < 0: 发送失败。 + * - -1: 视频模块未启用。 + * - -2: 参数错误(JSON 为空或 count <= 0)。 + * - -3: JSON 格式错误。 + * - -4: SEI 数据总大小超过限制。 + */ + + virtual int sendLivePushSEIMessage(std::string json_string, int count, bool is_key_frame_only, bool allow_overwrite) = 0; + /** + * + * @hidden for internal use only + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief WTN 流视频帧发送 SEI 数据。 + * @param channel_id SEI 消息传输通道,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message SEI 消息。 + * @param length SEI 消息长度,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeat_count 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 SEICountPerFrame{@link #SEICountPerFrame}。 + * @return + * - < 0:说明调用失败 + * - = 0:说明当前发送队列已满,无法发送 + * - > 0: 说明调用成功,该数值为已经发送 SEI 的数量 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据。 + * - 消息发送成功后,远端会收到 onPublicStreamSEIMessageReceivedWithChannel 回调。 + * - 调用失败时,本地及远端都不会收到回调。 + * @list 消息 + */ + + virtual int sendPublicStreamSEIMessage(int channel_id, const uint8_t* message, int length, + int repeat_count, SEICountPerFrame mode) = 0; + /** + * + * @type api + * @brief 创建视频设备管理实例 + * @return 视频设备管理实例,详见 IVideoDeviceManager{@link #IVideoDeviceManager} + * @list 视频管理 + */ + + virtual IVideoDeviceManager* getVideoDeviceManager() = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @brief 设备音频管理接口创建 + * @return 音频设备管理接口,详见 IAudioDeviceManager{@link #IAudioDeviceManager} + * @list 音频管理 + */ + + virtual IAudioDeviceManager* getAudioDeviceManager() = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 录制通话过程中的音视频数据到本地的文件中。 + * @param type 流属性,指定录制主流还是屏幕流,参看 StreamIndex{@link #StreamIndex} + * @param config 本地录制参数配置,参看 RecordingConfig{@link #RecordingConfig} + * @param recording_type 本地录制的媒体类型,参看 RecordingType{@link #RecordingType}
    + * 注意:屏幕流仅支持录制视频(kRecordingTypeVideoOnl);主流支持录制所有类型。 + * @return + * - 0: 正常 + * - -1: 参数设置异常 + * - -2: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 该方法需在进房后调用。 + * - 调用该方法后,你会收到 onRecordingStateUpdate{@link #IRTCEngineEventHandler#onRecordingStateUpdate} 回调。 + * - 如果录制正常,系统每秒钟会通过 onRecordingProgressUpdate{@link #IRTCEngineEventHandler#onRecordingProgressUpdate} 回调通知录制进度。 + * @list 高级功能 + */ + + virtual int startFileRecording(RecordingConfig config, RecordingType recording_type) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地录制 + * @param type 流属性,指定停止主流或者屏幕流录制,参看 StreamIndex{@link #StreamIndex} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 startFileRecording{@link #IRTCEngine#startFileRecording} 开启本地录制后,你必须调用该方法停止录制。 + * - 调用该方法后,你会收到 onRecordingStateUpdate{@link #IRTCEngineEventHandler#onRecordingStateUpdate} 回调提示录制结果。 + * @list 高级功能 + */ + + virtual int stopFileRecording() = 0; + /** + * + * @type api + * @brief 开始音频录制,并生成录音文件保存到本地。 + * @param config 参看 AudioRecordingConfig{@link #AudioRecordingConfig} + * @return + * - 0: 正常 + * - -2: 参数设置异常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 调用该方法后,会立即启动录制任务并创建录音文件。 + * - 录制包含各种音频效果。但不包含背景音乐。 + * - 录制本地麦克风的音频时,请确保已调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 接口打开麦克风采集。 + * - 调用 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 关闭录制。 + * - 加入房间前后均可调用。在进房前调用该方法,退房之后,录制任务不会自动停止,需调用 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 关闭录制。在进房后调用该方法,退房之后,录制任务会自动被停止。如果加入了多个房间,录制的文件中会包含各个房间的音频。 + * - 调用该方法后,你会收到 onAudioRecordingStateUpdate{@link #IRTCEngineEventHandler#onAudioRecordingStateUpdate} 回调。 + * @list 高级功能 + */ + + virtual int startAudioRecording(AudioRecordingConfig& config) = 0; + /** + * + * @type api + * @brief 停止音频文件录制 + * @return + * - 0: 正常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note 调用 startAudioRecording{@link #IRTCEngine#startAudioRecording} 开启本地录制。 + * @list 高级功能 + */ + + virtual int stopAudioRecording() = 0; + /** + * + * @type api + * @brief 启用匹配外置声卡的音频处理模式 + * @param enable
    + * - true: 开启 + * - false: 不开启(默认) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 当采用外接声卡进行音频采集时,建议开启此模式,以获得更好的音质。 + * - 开启此模式时,仅支持耳机播放。如果需要使用扬声器或者外置音箱播放,关闭此模式。 + * @list 音频管理 + */ + + virtual int enableExternalSoundCard(bool enable) = 0; + /** + * + * @type api + * @brief 设置运行时的参数 + * @param json_string json 序列化之后的字符串 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口需在 joinRoom{@link #IRTCRoom#joinRoom} 和 startAudioCapture{@link #IRTCEngine#startAudioCapture} 之前调用。 + * @list 引擎管理 + */ + + virtual int setRuntimeParameters(const char * json_string) = 0; + /** + * + * @type api + * @brief 将用户反馈的问题上报到 RTC。 + * @param type 预设问题列表,参看 ProblemFeedbackOption{@link #ProblemFeedbackOption} + * @param info 预设问题以外的其他问题的具体描述,房间信息。 参看 ProblemFeedbackInfo{@link #ProblemFeedbackInfo} + * @return + * - 0: 成功。 + * - -3: 失败。 + * @note + * - 你可以在 [RTC 控制台](https: + * - 如果用户上报时在房间内,那么问题会定位到用户当前所在的一个或多个房间;如果用户上报时不在房间内,那么问题会定位到引擎此前退出的房间。 + * @list 引擎管理 + */ + + virtual int feedback(uint64_t type, const ProblemFeedbackInfo* info) = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音效播放器实例。 + * @return 音效播放器。详见 IAudioEffectPlayer{@link #IAudioEffectPlayer}。 + * @list 混音 + */ + + virtual IAudioEffectPlayer* getAudioEffectPlayer() = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音乐播放器实例。 + * @param player_id 音乐播放器实例 id。取值范围为 `[0, 3]`。最多同时存在 4 个实例,超出取值范围时返回 nullptr。 + * @return 音乐播放器实例,详见 IMediaPlayer{@link #IMediaPlayer} + * @list 混音 + */ + + virtual IMediaPlayer* getMediaPlayer(int player_id) = 0; + /** + * + * @type api + * @brief 登陆 RTS 服务器。
    + * 必须先登录,才能调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 和 sendServerMessage{@link #IRTCEngine#sendServerMessage} 发送房间外点对点消息和向应用服务器发送消息
    + * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #IRTCEngine#logout}。 + * @param token 用户登录必须携带的 Token,用于鉴权验证。
    + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid
    + * 用户 ID
    + * 用户 ID 在 appid 的维度下是唯一的。 + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 本地用户调用此方法登录后,会收到 onLoginResult{@link #IRTCEngineEventHandler#onLoginResult} 回调通知登录结果,远端用户不会收到通知。 + * @list 消息 + */ + + virtual int login(const char* token, const char* uid) = 0; + /** + * + * @type api + * @brief 登出 RTS 服务器。
    + * 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口登出前,必须先调用 login{@link #IRTCEngine#login} 登录。 + * - 本地用户调用此方法登出后,会收到 onLogout{@link #IRTCEngineEventHandler#onLogout} 回调通知结果,远端用户不会收到通知。 + * @list 消息 + */ + + virtual int logout() = 0; + /** + * + * @type api + * @brief 更新用户用于登录的 Token
    + * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
    + * 调用 login{@link #IRTCEngine#login} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 onLoginResult{@link #IRTCEngineEventHandler#onLoginResult} 回调通知,错误码为 kLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
    + * 更新的动态密钥 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login{@link #IRTCEngine#login} 方法。 + * - Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + * @list 消息 + */ + + virtual int updateLoginToken(const char* token) = 0; + /** + * + * @type api + * @brief 设置应用服务器参数
    + * 客户端调用 sendServerMessage{@link #IRTCEngine#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTCEngine#sendServerBinaryMessage} 发送消息给应用服务器之前,必须设置有效签名和应用服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
    + * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
    + * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 用户必须调用 login{@link #IRTCEngine#login} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 onServerParamsSetResult{@link #IRTCEngineEventHandler#onServerParamsSetResult} 返回相应结果。 + * @list 消息 + */ + + virtual int setServerParams(const char* signature, const char* url) = 0; + /** + * + * @type api + * @brief 查询对端用户或本端用户的登录状态 + * @param peer_user_id
    + * 需要查询的用户 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 必须调用 login{@link #IRTCEngine#login} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 onGetPeerOnlineStatus{@link #IRTCEngineEventHandler#onGetPeerOnlineStatus} 回调通知查询结果。 + * - 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + * @list 消息 + */ + + virtual int getPeerOnlineStatus(const char* peer_user_id) = 0; + /** + * + * @type api + * @brief 给房间外指定的用户发送文本消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的文本消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外文本消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录。 + * - 用户调用本接口发送文本信息后,会收到一次 onUserMessageSendResultOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageSendResultOutsideRoom} 回调,得知消息是否成功发送。 + * - 若文本消息发送成功,则 uid 所指定的用户会通过 onUserMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageReceivedOutsideRoom} 回调收到该消息。 + * @list 消息 + */ + + virtual int64_t sendUserMessageOutsideRoom(const char* uid, const char* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 给房间外指定的用户发送二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param length 二进制字符串的长度 + * @param message 发送的二进制消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外二进制消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录。 + * - 用户调用本接口发送二进制消息后,会收到一次 onUserMessageSendResultOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageSendResultOutsideRoom} 回调,通知消息是否发送成功。 + * - 若二进制消息发送成功,则 uid 所指定的用户会通过 onUserBinaryMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserBinaryMessageReceivedOutsideRoom} 回调收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendUserBinaryMessageOutsideRoom(const char* uid, int length, const uint8_t* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 客户端给应用服务器发送文本消息(P2Server)。 + * @param message 发送的文本消息内容。消息不超过 64 KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送文本消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录,随后调用 setServerParams{@link #IRTCEngine#setServerParams} 设置应用服务器。 + * - 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTCEngineEventHandler#onServerMessageSendResult} 回调,通知消息发送方是否发送成功。 + * - 若文本消息发送成功,则之前调用 setServerParams{@link #IRTCEngine#setServerParams} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendServerMessage(const char* message) = 0; + /** + * + * @type api + * @brief 客户端给应用服务器发送二进制消息(P2Server)。 + * @param length 二进制字符串的长度 + * @param message 发送的二进制消息内容。消息不超过 64KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送二进制消息前,必须先调用 login{@link #IRTCEngine#login} 完成登录,随后调用 setServerParams{@link #IRTCEngine#setServerParams} 设置应用服务器。 + * - 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTCEngineEventHandler#onServerMessageSendResult} 回调,通知消息发送方发送成功或失败。 + * - 若二进制消息发送成功,则之前调用 setServerParams{@link #IRTCEngine#setServerParams} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + + virtual int64_t sendServerBinaryMessage(int length, const uint8_t* message) = 0; + /** + * + * @type api + * @brief 开启通话前网络探测 + * @param is_test_uplink 是否探测上行带宽 + * @param expected_uplink_bitrate 期望上行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @param is_test_downlink 是否探测下行带宽 + * @param expected_downlink_biterate 期望下行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 成功调用本接口后,会在 3s 内收到一次 onNetworkDetectionResult{@link #IRTCEngineEventHandler#onNetworkDetectionResult} 回调,此后每 2s 会收到一次该回调,通知探测结果; + * - 若探测停止,则会收到一次 onNetworkDetectionStopped{@link #IRTCEngineEventHandler#onNetworkDetectionStopped} 通知探测停止。 + * @list 网络管理 + */ + + virtual int startNetworkDetection(bool is_test_uplink, int expected_uplink_bitrate, bool is_test_downlink, int expected_downlink_biterate) = 0; + /** + * + * @type api + * @brief 停止通话前网络探测 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口后,会收到一次 onNetworkDetectionStopped{@link #IRTCEngineEventHandler#onNetworkDetectionStopped} 回调通知探测停止。 + * @list 网络管理 + */ + + virtual int stopNetworkDetection() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 在屏幕共享时,设置屏幕音频的采集方式(内部采集/自定义采集) + * @param source_type 屏幕音频输入源类型, 参看 AudioSourceType{@link #AudioSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 默认采集方式是 RTC SDK 内部采集。 + * - 如果设定为内部采集,你必须再调用 startScreenAudioCapture{@link #IRTCEngine#startScreenAudioCapture} 开始采集。 + * - 如果设定为自定义采集,你必须再调用 pushScreenAudioFrame{@link #IRTCEngine#pushScreenAudioFrame} 将自定义采集到的屏幕音频帧推送到 RTC SDK。 + * - 无论是内部采集还是自定义采集,你都必须调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * @list 屏幕共享 + * @order 11 + */ + + virtual int setScreenAudioSourceType(AudioSourceType source_type) = 0; + + /** + * + * @hidden(iOS,Android,Linux) + * @type api + * @brief 在屏幕共享时,设置屏幕音频流的声道数 + * @param channel 声道数,参看 AudioChannel{@link #AudioChannel} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 屏幕共享 + */ + + virtual int setScreenAudioChannel(AudioChannel channel) = 0; + /** + * + * @hidden(Android,iOS,macOS,Windows) + * @deprecated on Windows since 3.59, use `startScreenAudioCapture` with the "device_id" parameter as a replacement. + * @type api + * @brief 在屏幕共享时,开始使用 RTC SDK 内部采集方式,采集屏幕音频 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。对于 Windows SDK,若已调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 将音频输入源设置为 `kAudioSourceTypeExternal` 自定义采集,需先切换为 `kAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #IRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int startScreenAudioCapture() = 0; + /** + * + * @hidden(Linux,Android,iOS) + * @valid since 3.59 + * @type api + * @brief 使用 RTC SDK 内部采集方式,采集桌面端系统声音,用于屏幕共享。
    + * 该接口会采集桌面端系统声卡的音频数据,采集到的音频会混入本地音频流中。 + * @param device_id
    + * - 对于 Windows 平台,该参数用于设置采集本地指定音频进程的音频。例如可将该参数设为某应用程序可执行文件的文件名(如 QQMusic.exe),此时 SDK 只会采集该应用程序的音频。传入 nullptr 或置空时即代表采集整个系统除本进程之外的所有应用程序的音频。当前,应用程序仅支持 QQ 音乐、网易云音乐和酷狗音乐,采集其他进程可能会导致未知行为。 + * - 对于 macOS 平台,该参数表示虚拟设备 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。若已调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 将音频输入源设置为 `kAudioSourceTypeExternal` 自定义采集,需先切换为 `kAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #IRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int startScreenAudioCapture(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @hidden(Android,iOS) + * @type api + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式,采集屏幕音频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 + * - 本接口仅对内部采集生效。如果为外部采集模式,调用本接口失败。你需要在外部采集器中实现停止采集的逻辑。 + * - 要开始屏幕音频内部采集,调用 startScreenAudioCapture{@link #IRTCEngine#startScreenAudioCapture}。 + * @list 屏幕共享 + */ + + virtual int stopScreenAudioCapture() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 使用自定义采集方式,采集屏幕共享时的屏幕音频时,将音频帧推送至 RTC SDK 处进行编码等处理。 + * @param frame 音频数据帧,参见 IAudioFrame{@link #IAudioFrame}
    + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 samples × frame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 设置成功。 + * - < 0: 设置失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用此接口推送屏幕共享时的自定义采集的音频数据前,必须调用 setScreenAudioSourceType{@link #IRTCEngine#setScreenAudioSourceType} 开启屏幕音频自定义采集。 + * - 你应每隔 10 毫秒,调用一次此方法推送一次自定义采集的音频帧。一次推送的音频帧中应包含 frame.sample_rate / 100 个音频采样点。比如,假如采样率为 48000Hz,则每次应该推送 480 个采样点。 + * - 调用此接口将自定义采集的音频帧推送到 RTC SDK 后,你必须调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 将采集到的屏幕音频推送到远端。在调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 前,推送到 RTC SDK 的音频帧信息会丢失。 + * @list 屏幕共享 + * @order 14 + */ + + virtual int pushScreenAudioFrame(IAudioFrame* frame) = 0; + /** + * + * @type api + * @hidden internal use only + * @brief 在听众端,设置订阅的所有远端音频流精准对齐后播放。 + * @param stream_id 流标识 + * 一般选择主唱的音频流。
    + * 你必须在收到 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio},确认此音频流已发布后,调用此 API。 + * @param mode 是否对齐,默认不对齐。参看 AudioAlignmentMode{@link #AudioAlignmentMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 你必须在实时合唱场景下使用此功能。在加入房间时,所有人应设置 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeChorus`。 + * - 订阅的所有远端流必须通过 startAudioMixing 开启了背景音乐混音,并将 AudioMixingConfig 中的 `sync_progress_to_record_frame` 设置为 `true`。 + * - 如果订阅的某个音频流延迟过大,可能无法实现精准对齐。 + * - 合唱的参与者不应调用此 API,因为调用此 API 会增加延迟。如果希望从听众变为合唱参与者,应关闭对齐功能。 + * @list 在线 KTV + */ + + virtual int setAudioAlignmentProperty(const char* stream_id, AudioAlignmentMode mode) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 Extension 配置项 + * @param group_id App 和 Extension 应该归属于同一个 App Group,此处需要传入 Group Id + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该函数必须在 sharedEngineWithAppId 函数之后立即调用。如果不调用或者调用时机比较晚,本地用户会收到 onMediaDeviceStateChanged 的回调。
    + * - 参数 device_state 值为 ByteRTCMediaDeviceStateStopped,device_error 值为 `ByteRTCMediaDeviceErrorNotFindGroupId` + * @list 屏幕共享 + */ + + virtual int setExtensionConfig(const char* group_id) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 发送屏幕共享 Extension 程序消息 + * @param message 发送给 Extension 程序的消息内容 + * @param size 消息内容大小 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该函数必须在 startScreenCapture 函数之后调用 + * @list 屏幕共享 + */ + + virtual int sendScreenCaptureExtensionMessage(const char* message, size_t size) = 0; + /** + * + * @hidden(macOS,Windows,Android,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地屏幕共享数据采集 + * @param type 屏幕共享数据采集类型 + * @param bundle_id 传入 Broadcast Upload Extension 的 Bundle Id,用于在设置中优先展示 Extension + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 当从 iOS 控制中心异常启动 Extension 时可以不用调用本函数
    + * 本地用户会收到 onMediaDeviceStateChanged 的回调。
    + * 参数 device_state 值为 ByteRTCMediaDeviceStateStarted,device_error 值为 ByteRTCMediaDeviceErrorOK + * @list 屏幕共享 + */ + + virtual int startScreenCapture(ScreenMediaType type, const char* bundle_id) = 0; + /** + * + * @hidden(macOS,Windows,iOS,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过传入的 Type 和 Context 开启屏幕音视频内部采集。 + * @param type 指定的屏幕媒体采集类型,参看 ScreenMediaType{@link #ScreenMediaType} + * @param context Android 平台传入 Intent 对象,由业务方申请系统录屏权限后获得。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 采集后,你还需要调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 或 publishStreamVideo{@link #IRTCRoom#publishStreamVideo} 将采集到的屏幕音视频推送到远端。 + * - 开启屏幕音视频内部采集,Android 专用接口。 + * @list 屏幕共享 + */ + + virtual int startScreenCapture(ScreenMediaType type, void* context) = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地屏幕共享数据采集 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 屏幕共享 + */ + + virtual int stopScreenCapture() = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @region 转推直播 + * @brief 推送客户端合流外部视频帧。
    + * @param uid
    + * 外部视频帧对应的合流布局中的uid + * @param frame
    + * 用于合流的外部视频帧 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int pushClientMixedStreamExternalVideoFrame(const char* uid, const VideoFrameData& frame) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief 设置转推直播观察者。 + * @param observer + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int setClientMixedStreamObserver(IClientMixedStreamObserver* observer) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief 客户端合流转推 CDN。 + * @param task_id 任务 ID。 + * @param config 合流转推 CDN 任务配置。 + * @param extra_config + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list Pushing Streams to CDN + */ + + virtual int startClientMixedStream(const char* task_id, IMixedStreamConfig* config, ClientMixedStreamConfig extra_config) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief + * @param task_id + * @param config + * @param extra_config + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int updateClientMixedStream(const char* task_id, IMixedStreamConfig* config, ClientMixedStreamConfig extra_config) = 0; + /** + * + * @hidden for internal use only on Windows + * @type api + * @hiddensdk(audiosdk) + * @brief + * @param task_id + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + + virtual int stopClientMixedStream(const char* task_id) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushMixedStreamToCDN` 和 `startPushPublicStream` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 指定房间中的媒体流,合成后一路流发布到 CDN 或发布一路 WTN 流。 + * @param task_id 转推直播任务 ID,长度不超过 127 字节。 当 IMixedStreamConfig{@link #IMixedStreamConfig} 中的 `PushTargetType = 0` 时, 用于标识转推直播任务。你可以在同一房间内发起多个转推直播任务,并用不同的 ID 加以区分。当你需要发起多个转推直播任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * 当 `PushTargetType = 1` 时,设置无效,传空即可。 + * @param push_target_config 推流目标配置参数,比如设置推流地址、WTN 流 ID。参看 MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}。 + * @param config 合流转推配置参数,比如设置合流的图片、视频视图布局和音频属性。参看 IMixedStreamConfig{@link #IMixedStreamConfig}。 + * @return + * - 0: 成功。你可以通过 onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} 回调获取启动结果和推流过程中的事件。 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 在[控制台](https: + * - 调用 stopPushMixedStream{@link #IRTCEngine#stopPushMixedStream} 可以停止转推任务。 + * - 调用 updatePushMixedStream{@link #IRTCEngine#updatePushMixedStream} 可以更新部分任务参数。 + * @list CDN 推流 + */ + + virtual int startPushMixedStream(const char* task_id, MixedStreamPushTargetConfig push_target_config, IMixedStreamConfig* config) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `updatePushMixedStreamToCDN` 和 `updatePublicStreamParam` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 更新由 startPushMixedStream{@link #IRTCEngine#startPushMixedStream} 启动的任务参数,会收到 onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} 回调。 + * @param task_id 转推直播任务 ID。指定想要更新参数设置的转推直播任务。仅当 IMixedStreamConfig{@link #IMixedStreamConfig} 中的 `PushTargetType = 0` 时有效。 + * @param push_target_config 推流目标配置参数,比如设置推流地址、WTN 流 ID。参看 MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}。 + * @param config 转推直播配置参数,参看 IMixedStreamConfig{@link #IMixedStreamConfig}。除特殊说明外,均支持过程中更新。
    + * 调用时,结构体中没有传入值的属性,会被更新为默认值。 + * @return + * - 0: 成功。 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int updatePushMixedStream(const char* task_id, MixedStreamPushTargetConfig push_target_config, IMixedStreamConfig* config) = 0; + /** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN` 方法来停止合流转推任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hidden(Linux) + * @hiddensdk(audiosdk) + * @brief 停止由 startPushMixedStream{@link #IRTCEngine#startPushMixedStream} 启动的任务。 + * @param task_id 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param target_type 参看 MixedStreamPushTargetType{@link #MixedStreamPushTargetType}。 + * @return + * - 0: 成功 + * - !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int stopPushMixedStream(const char* task_id, MixedStreamPushTargetType target_type) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自版本 3.60 起,该接口取代了 `startPushSingleStreamToCDN` 方法。如果您已升级到版本 3.60 或更高版本,且仍在使用此方法,请迁移到该接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 将房间内某一路音视频流,推送到指定的 RTC 房间或 CDN 地址。此过程不涉及编解码。 + * @param task_id 任务 ID。
    + * 你可以发起多个单流转推任务,并用不同的任务 ID 加以区分。当你需要发起多个单流转推任务时,应使用多个 ID;当你仅需发起一个单流转推任务时,建议使用空字符串。 + * @param param 单流转推配置参数。详见 PushSingleStreamParam{@link #PushSingleStreamParam}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 在调用该接口前,你需要在[控制台](https: + * - 调用该方法后,关于启动结果和推流过程中的错误,会收到 onSingleStreamEvent{@link #IRTCEngineEventHandler#onSingleStreamEvent} 回调。 + * - 在[控制台](https: + * - 调用 stopPushSingleStream{@link #IRTCEngine#stopPushSingleStream} 停止任务。 + * - 由于本功能不进行编解码,所以推到 RTMP 的视频流会根据推流端的分辨率、编码方式、关闭摄像头等变化而变化。 + * @list CDN 推流 + */ + + virtual int startPushSingleStream(const char* task_id, PushSingleStreamParam& param) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN` 方法来停止单流转推直播任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止由 startPushSingleStream{@link #IRTCEngine#startPushSingleStream} 启动的单流转推任务。 + * @param task_id 任务 ID。可以指定想要停止的单流转推任务。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + */ + + virtual int stopPushSingleStream(const char* task_id) = 0; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 开启缓存同步功能。开启后,会缓存收到的实时音视频数据,并对齐不同数据中的时间戳完成同步。此功能会影响音视频数据消费的实时性。 + * @param config 参看 ChorusCacheSyncConfig{@link #ChorusCacheSyncConfig}。 + * @param observer 事件和数据观察者,参看 IChorusCacheSyncObserver{@link #IChorusCacheSyncObserver}。 + * @return 查看 ReturnStatus{@link #ReturnStatus}。 + * @note 要关闭缓存同步功能,调用 stopChorusCacheSync{@link #IRTCEngine#stopChorusCacheSync}。 + * @list Pushing Streams to CDN + */ + + virtual int startChorusCacheSync(ChorusCacheSyncConfig * config, IChorusCacheSyncObserver* observer) = 0; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭缓存同步功能。 + * @return 查看 ReturnStatus{@link #ReturnStatus}。 + * @list Pushing Streams to CDN + */ + + virtual int stopChorusCacheSync() = 0; + /** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新屏幕采集数据类型 + * @param type 屏幕采集数据类型 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该函数必须在 startScreenCapture 函数之后调用。本地用户会收到 onMediaDeviceStateChanged 的回调。
    + * 参数 device_state 值为 ByteRTCMediaDeviceStateStarted 或 ByteRTCMediaDeviceStateStopped,device_error 值为 ByteRTCMediaDeviceErrorOK。 + * @list 屏幕共享 + */ + + virtual int updateScreenCapture(ScreenMediaType type) = 0; + + /** + * + * @type api + * @brief 启用音频信息提示。开启提示后,你会收到 onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport},onRemoteAudioPropertiesReport{@link #IRTCEngineEventHandler#onRemoteAudioPropertiesReport} 和 onActiveSpeaker{@link #IRTCEngineEventHandler#onActiveSpeaker}。 + * @param config 详见 AudioPropertiesConfig{@link #AudioPropertiesConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioPropertiesReport(const AudioPropertiesConfig& config) = 0; + + /** + * + * @type api + * @hidden 3.60 for internal use only + * @brief Enable audio voice detection. After that, you will receive onAudioVADStateUpdate{@link #IRTCEngineEventHandler#onAudioVADStateUpdate}. + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭人声识别能力回调。 + * + `[100, 3000]`: 开启人声识别能力回调,并将信息提示间隔设置为此值。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioVADReport(int interval) = 0; + /** + * + * @hidden 3.60 for internal use only + * @type api + * @brief Enable audio music detection. After that, you will receive onAudioAEDStateUpdate{@link #IRTCEngineEventHandler#onAudioAEDStateUpdate}. + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭回调。 + * + `[100, 3000]`: 开启回调并将信息提示间隔设置为此值。推荐设置为 2000。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enableAudioAEDReport(int interval) = 0; + + /** + * + * @type api + * @brief 调节本端播放收到的远端流时的音量。你必须在进房后进行设置。流的发布状态改变不影响设置生效。 + * @param stream_id 流标识 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内:
    + * - 当该方法与 setRemoteRoomAudioPlaybackVolume{@link #IRTCRoom#setRemoteRoomAudioPlaybackVolume} 共同使用时,本地收听用户 A 的音量为后调用的方法设置的音量; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * - 当你调用该方法设置远端流音量后,如果远端退房,接口设置失效。 + * @list 音频管理 + */ + + virtual int setRemoteAudioPlaybackVolume(const char* stream_id, int volume) = 0; + /** + * + * @type api + * @brief 开启/关闭音量均衡功能。
    + * 开启音量均衡功能后,人声的响度会调整为 -16lufs。如果已调用 setAudioMixingLoudness 传入了混音音乐的原始响度,此音乐播放时,响度会调整为 -20lufs。(Linux 不支持) + * @param enable 是否开启音量均衡功能:
    + * - true: 是 + * - false: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口须在调用 start{@link #IAudioEffectPlayer#start} 开始播放音频文件之前调用。 + * @list 音频管理 + */ + + virtual int enableVocalInstrumentBalance(bool enable) = 0; + /** + * + * @type api + * @brief 打开/关闭音量闪避功能,适用于在 RTC 通话过程中会同时播放短视频或音乐的场景,如“一起看”等。
    + * 开启该功能后,当检测到远端人声时,RTC 本地的媒体播放音量会自动减弱,从而保证远端人声的清晰可辨;当远端人声消失时,RTC 的本地媒体音量会恢复到闪避前的音量水平。 + * @param enable 是否开启音量闪避:
    + * - true: 是 + * - false: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + + virtual int enablePlaybackDucking(bool enable) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册本地视频帧监测器。
    + * 无论使用内部采集还是自定义采集,调用该方法后,SDK 每监测到一帧本地视频帧时,都会将视频帧信息通过 onLocalEncodedVideoFrame{@link #ILocalEncodedVideoFrameObserver#onLocalEncodedVideoFrame} 回调给用户 + * @param observer 本地视频帧监测器,参看 ILocalEncodedVideoFrameObserver{@link #ILocalEncodedVideoFrameObserver}。将参数设置为 nullptr 则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该方法可在进房前后的任意时间调用,在进房前调用可保证尽可能早地监测视频帧并触发回调 + * @list 自定义流处理 + */ + + virtual int registerLocalEncodedVideoFrameObserver(ILocalEncodedVideoFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册远端编码后视频数据回调。
    + * 完成注册后,当 SDK 监测到远端编码后视频帧时,会触发 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame} 回调 + * @param observer 远端编码后视频数据监测器,参看 IRemoteEncodedVideoFrameObserver{@link #IRemoteEncodedVideoFrameObserver} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 更多自定义解码功能说明参看 [自定义视频编解码](https: + * - 该方法适用于手动订阅,并且进房前后均可调用,建议在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + + virtual int registerRemoteEncodedVideoFrameObserver(IRemoteEncodedVideoFrameObserver* observer) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册自定义编码帧推送事件回调 + * @param encoder_handler 自定义编码帧回调类,参看 IExternalVideoEncoderEventHandler{@link #IExternalVideoEncoderEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法需在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + + virtual int setExternalVideoEncoderEventHandler(IExternalVideoEncoderEventHandler* encoder_handler) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送自定义编码后的视频流 + + * @param video_index 对应的编码流下标,从 0 开始,如果调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 设置了多路流,此处数量须与之保持一致 + * @param video_stream 编码流视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 目前仅支持推送 H264 和 ByteVC1 格式的视频帧,且视频流协议格式须为 Annex B 格式。 + * - 该函数运行在用户调用线程内 + * - 推送自定义编码视频帧前,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 将视频输入源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + + virtual int pushExternalEncodedVideoFrame(int video_index, IEncodedVideoFrame* video_stream) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之前,设置远端视频数据解码方式 + * @param stream_id 远端流 ID,指定对哪一路视频流进行解码方式设置 + * @param config 视频解码方式,参看 VideoDecoderConfig{@link #VideoDecoderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 当你想要对远端流进行自定义解码时,你需要先调用 registerRemoteEncodedVideoFrameObserver{@link #IRTCEngine#registerRemoteEncodedVideoFrameObserver} 注册远端视频流监测器,然后再调用该接口将解码方式设置为自定义解码。监测到的视频数据会通过 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame} 回调出来。 + * - 自 3.56 起,要用于自动订阅场景下,你可以设置 `key` 中的 `RoomId` 和 `UserId` 为 `nullptr`,此时,通过此接口设置的解码方式根据 `key` 中的 `StreamIndex` 值,适用于所有的远端主流或屏幕流的解码方式。 + * @list 自定义流处理 + */ + + virtual int setVideoDecoderConfig(const char* stream_id, VideoDecoderConfig config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之后,向远端请求关键帧 + * @param stream_id 远端流 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 + * - 该方法适用于调用 setVideoDecoderConfig{@link #IRTCEngine#setVideoDecoderConfig} 开启自定义解码功能后,并且自定义解码失败的情况下使用 + * @list 音视频传输 + */ + + virtual int requestRemoteVideoKeyFrame(const char* stream_id) = 0; + /** + * + * @type api + * @brief 发送音频流同步信息。将消息通过音频流发送到远端,并实现与音频流同步,该接口调用成功后,远端用户会收到 onStreamSyncInfoReceived{@link #IRTCEngineEventHandler#onStreamSyncInfoReceived} 回调。 + * @param data 消息内容。 + * @param length 消息长度。取值范围是 [1,255] 字节,建议小于 16 字节,否则可能占用较大带宽。 + * @param config 媒体流信息同步的相关配置,详见 StreamSyncInfoConfig{@link #StreamSyncInfoConfig} 。 + * @return + * - >=0: 消息发送成功。返回成功发送的次数。 + * - -1: 消息发送失败。消息长度大于 255 字节。 + * - -2: 消息发送失败。传入的消息内容为空。 + * - -3: 消息发送失败。通过屏幕流进行消息同步时,此屏幕流还未发布。 + * - -4: 消息发送失败。通过用麦克风或自定义设备采集到的音频流进行消息同步时,此音频流还未发布,详见错误码 ErrorCode{@link #ErrorCode}。 + * @note + * - 调用本接口的频率建议不超过 50 次每秒。 + * - 在 `kRoomProfileTypeInteractivePodcast` 房间模式下,此消息一定会送达。在其他房间模式下,如果本地用户未说话,此消息不一定会送达。 + * @list 消息 + */ + + virtual int sendStreamSyncInfo(const uint8_t* data, int32_t length, const StreamSyncInfoConfig& config) = 0; + /** + * + * @type api + * @brief 开启本地语音变调功能,多用于 K 歌场景。
    + * 使用该方法,你可以对本地语音的音调进行升调或降调等调整。 + * @param pitch 相对于语音原始音调的升高/降低值,取值范围[-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。
    + * 超出取值范围则设置失败,并且会触发 onWarning{@link #IRTCEngineEventHandler#onWarning} 回调,提示 WarningCode{@link #WarningCode} 错误码为 `WARNING_CODE_SET_SCREEN_STREAM_INVALID_VOICE_PITCH` 设置语音音调不合法 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 音频处理 + */ + + virtual int setLocalVoicePitch(int pitch) = 0; + + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在指定视频流上添加水印。 + * @param image_path 水印图片路径,仅支持本地文件绝对路径,长度限制为 512 字节。
    + * 水印图片为 PNG 或 JPG 格式。 + * @param config 水印参数,参看 RTCWatermarkConfig{@link #RTCWatermarkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 clearVideoWatermark{@link #IRTCEngine#clearVideoWatermark} 移除指定视频流的水印。 + * - 同一路流只能设置一个水印,新设置的水印会代替上一次的设置。你可以多次调用本方法来设置不同流的水印。 + * - 若开启本地预览镜像,或开启本地预览和编码传输镜像,则远端水印均不镜像;在开启本地预览水印时,本端水印会镜像。 + * - 开启大小流后,水印对大小流均生效,且针对小流进行等比例缩小。 + * @list 视频处理 + */ + + virtual int setVideoWatermark(const char* image_path, RTCWatermarkConfig config) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 移除指定视频流的水印。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 视频处理 + */ + + virtual int clearVideoWatermark() = 0; + /** + * + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 截取本地视频画面 + * @param callback 本地截图的回调。参看 ISnapshotResultCallback{@link #ISnapshotResultCallback}。 + * @return 本地截图任务的编号,从 `1` 开始递增。 + * @note + * - 对截取的画面,包含本地视频处理的全部效果,包含旋转,镜像,美颜等。 + * - 不管采用 SDK 内部采集,还是自定义采集,都可以进行截图。 + * @list 高级功能 + */ + + virtual long takeLocalSnapshot(ISnapshotResultCallback* callback) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 截取远端视频画面 + * @param stream_id 流标识 + * @param callback 参看 ISnapshotResultCallback{@link #ISnapshotResultCallback}。 + * @return 远端截图任务的编号,从 `1` 开始递增。 + * @list 高级功能 + */ + + virtual long takeRemoteSnapshot(const char* stream_id, ISnapshotResultCallback* callback) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 截取远端的视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 onRemoteSnapshotTakenToFile{@link #IRTCEngineEventHandler#onRemoteSnapshotTakenToFile} 报告截图是否成功,以及截取的图片信息。 + * @param stream_id 待截取的远端视频流 ID。 + * @param file_path 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。以 Windows 为例:`C:\\Users\\YourName\\Pictures\\snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + + virtual long takeRemoteSnapshotToFile(const char* stream_id, const char* file_path) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.60. + * @type api + * @brief 截取本地视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 onLocalSnapshotTakenToFile{@link #IRTCEngineEventHandler#onLocalSnapshotTakenToFile} 报告截图是否成功,以及截取的图片信息。 + * @param file_path 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。以 Windows 为例:`C:\\Users\\YourName\\Pictures\\snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + + virtual long takeLocalSnapshotToFile(const char* file_path) = 0; + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 摄像头处于关闭状态时,使用静态图片填充本地推送的视频流。
    + * 调用 `stopVideoCapture` 接口时,会开始推静态图片。若要停止发送图片,可传入空字符串或启用内部摄像头采集。
    + * 可重复调用该接口来更新图片。 + * @param file_path 设置静态图片的路径。
    + * 支持本地文件绝对路径,不支持网络链接,长度限制为 512 字节。
    + * 静态图片支持类型为 JPEG/JPG、PNG、BMP。
    + * 若图片宽高比与设置的编码宽高比不一致,图片会按编码高宽等比缩放,并裁剪长边。推流帧率与码率与设置的编码参数一致。 + * @return + * - 0: 成功。 + * - -2: 失败。确保传入的 file_path 为有效路径。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 该接口只适用于 SDK 内部摄像头采集,不适用于自定义视频采集。 + * - 本地预览无法看到静态图片。 + * - 进入房间前后均可调用此方法。在多房间场景中,静态图片仅在发布的房间中生效。 + * - 针对该静态图片,滤镜和镜像效果不生效,水印效果生效。 + * - 只有主流能设置静态图片,屏幕流不支持设置。 + * - 开启大小流后,静态图片对大小流均生效,且针对小流进行等比例缩小。 + * @list 音视频传输 + */ + + virtual int setDummyCaptureImagePath(const char* file_path) = 0; + /** + * + * @type api + * @brief 开启云代理 + * @param configuration 云代理服务器信息列表。参看 CloudProxyConfiguration{@link #CloudProxyConfiguration}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在加入房间前调用此接口 + * - 在开启云代理后,进行通话前网络探测 + * - 开启云代理后,并成功连接云代理服务器后,会收到 onCloudProxyConnected{@link #IRTCEngineEventHandler#onCloudProxyConnected}。 + * - 要关闭云代理,调用 stopCloudProxy{@link #IRTCEngine#stopCloudProxy}。 + * @list 通话加密 + */ + + virtual int startCloudProxy(const CloudProxyConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 关闭云代理 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 要开启云代理,调用 startCloudProxy{@link #IRTCEngine#startCloudProxy}。 + * @list 通话加密 + */ + + virtual int stopCloudProxy() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启音视频回路测试。
    + * 在进房前,用户可调用该接口对音视频通话全链路进行检测,包括对音视频设备以及用户上下行网络的检测,从而帮助用户判断是否可以正常发布和接收音视频流。
    + * 开始检测后,SDK 会录制你的声音或视频。如果你在设置的延时范围内收到了回放,则视为音视频回路测试正常。 + * @param echo_test_config 回路测试参数设置,参看 EchoTestConfig{@link #EchoTestConfig}。 + * @param play_delay_time 音视频延迟播放的时间间隔,用于指定在开始检测多长时间后期望收到回放。取值范围为 [2,10],单位为秒,默认为 2 秒。 + * @return 方法调用结果:
    + * - 0:成功 + * - -2:失败,参数异常 + * - -4:失败,用户已进房 + * - -6:失败,当前用户已经在检测中 + * - -7:失败,音视频均不检查 + * - -8:失败,已经存在相同 roomId 的房间 + * @note + * - 调用该方法开始音视频回路检测后,你可以调用 stopEchoTest{@link #IRTCEngine#stopEchoTest} 立即结束测试,也可等待测试 60s 后自动结束,以更换设备进行下一次测试,或进房。 + * - 在该方法之前调用的所有跟设备控制、流控制相关的方法均在开始检测时失效,在结束检测后恢复生效。 + * - 在调用 startEchoTest{@link #IRTCEngine#startEchoTest} 和 stopEchoTest{@link #IRTCEngine#stopEchoTest} 之间调用的所有跟设备采集、流控制、进房相关的方法均不生效,并会收到 onWarning{@link #IRTCEngineEventHandler#onWarning} 回调,提示警告码为 `kWarningCodeInEchoTestMode`。 + * - 音视频回路检测的结果会通过 onEchoTestResult{@link #IRTCEngineEventHandler#onEchoTestResult} 回调通知。 + * @list 网络管理 + */ + + virtual int startEchoTest(EchoTestConfig echo_test_config, unsigned int play_delay_time) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 停止音视频回路测试。
    + * 调用 startEchoTest{@link #IRTCEngine#startEchoTest} 开启音视频回路检测后,你必须调用该方法停止检测。 + * @return 方法调用结果:
    + * - 0:成功。 + * - -3:失败,未开启回路检测。 + * @note 音视频回路检测结束后,所有对系统设备及音视频流的控制均会恢复到开始检测前的状态。 + * @list 网络管理 + */ + + virtual int stopEchoTest() = 0; + /** + * + * @hidden + * @type api + * @brief 创建 K 歌评分管理接口。 + * @return K 歌评分管理接口,详见 ISingScoringManager{@link #ISingScoringManager#ISingScoringManager}。 + * @note 如需使用 K 歌评分功能,即调用该方法以及 `ISingScoringManager` 类下全部方法,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * @list 在线 KTV + */ + + virtual ISingScoringManager* getSingScoringManager() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 通过 NTP 协议,获取网络时间。 + * @return 网络时间。参看 NetworkTimeInfo{@link #NetworkTimeInfo}。 + * @note + * 第一次调用此接口会启动网络时间同步功能,并返回 `0`。同步完成后,会收到 onNetworkTimeSynchronized{@link #IRTCEngineEventHandler#onNetworkTimeSynchronized},此后,再次调用此 API,即可获取准确的网络时间。 + * @list 网络管理 + */ + + virtual NetworkTimeInfo getNetworkTimeInfo() = 0; + /** + * + * @hidden currently not available + * @type api + * @brief 创建 KTV 管理接口。 + * @return KTV 管理接口,参看 IKTVManager{@link #IKTVManager}。 + * @list 在线 KTV + */ + + virtual IKTVManager* getKTVManager() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开启通话前回声检测 + * @param test_audio_file_path 用于回声检测的音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。
    + * 音频文件不为静音文件,推荐时长为 10 ~ 20 秒。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。上一次检测未结束,请先调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测 后重新调用本接口。 + * - -2:失败。路径不合法或音频文件格式不支持。 + * @note + * - 只有当 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeMeeting` 和 `kRoomProfileTypeMeetingRoom` 时支持开启本功能。 + * - 开启检测前,你需要向用户获取音频设备的使用权限。 + * - 开启检测前,请确保音频设备没有被静音,采集和播放音量正常。 + * - 调用本接口后监听 onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult} 获取检测结果。 + * - 检测期间,进程将独占音频设备,无法使用其他音频设备测试接口 startEchoTest{@link #IRTCEngine#startEchoTest}。 + * - 调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * @list 音频管理 + */ + + virtual int startHardwareEchoDetection(const char* test_audio_file_path) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 停止通话前回声检测 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。 + * @note + * - 关于开启通话前回声检测,参看 startHardwareEchoDetection{@link #IRTCEngine#startHardwareEchoDetection} 。 + * - 建议在收到 onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult} 通知的检测结果后,调用本接口停止检测。 + * - 在用户进入房间前结束回声检测,释放对音频设备的占用,以免影响正常通话。 + * @list 音频管理 + */ + + virtual int stopHardwareEchoDetection() = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param config 参看 MediaTypeEnhancementConfig{@link #MediaTypeEnhancementConfig}。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败,内部错误。 + * - -2: 失败,输入参数错误。 + * @note 此功能默认不开启。 + * @list Audio Management + */ + + virtual int setCellularEnhancement(const MediaTypeEnhancementConfig& config) = 0; + /** + * + * @type api + * @brief 设置本地代理。 + * @param configurations 本地代理配置参数。参看 LocalProxyConfiguration{@link #LocalProxyConfiguration}。
    + * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
    + * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @param configuration_num 本地代理配置参数的数量。 + * @note + * - 该方法需要在进房前调用。 + * - 调用该方法设置本地代理后,SDK 会触发 onLocalProxyStateChanged{@link #IRTCEngineEventHandler#onLocalProxyStateChanged} ,返回代理连接的状态。 + * @list 通话加密 + */ + + virtual int setLocalProxy(const LocalProxyConfiguration* configurations, int configuration_num) = 0; + /** + * + * @hidden(Android,iOS) + * @valid since 3.57 + * @type api + * @brief 设置视频暗光增强模式。
    + * 对于光线不足、照明不均匀或背光等场景下推荐开启,可有效改善画面质量。 + * @param mode 默认不开启。参看 VideoEnhancementMode{@link #VideoEnhancementMode}。 + * @return + * - 0: API 调用成功。会立即生效,但需要等待下载和检测完成后才能看到增强后的效果。 + * - < 0: API 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 开启后会影响设备性能,应根据实际需求和设备性能决定是否开启。 + * - 对 RTC SDK 内部采集的视频和自定义采集的视频都生效。 + * @list 视频处理 + */ + + virtual int setLowLightAdjusted(VideoEnhancementMode mode) = 0; + + /** + * + * @valid since 3.60 + * @type api + * @brief 获取 WTN 流对象。
    + * 你可以通过此方法获取 WTN 流对象,以实现自定义的视频渲染和处理。
    + * 调用此方法后,可以通过调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 或 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 订阅指定的 WTN 流。
    + * 如需发布 WTN 流,调用 startPushMixedStream{@link #IRTCEngine#startPushMixedStream}。 + * @return WTN 流对象。参看 IWTNStream{@link #IWTNStream}。 + * @list WTN + */ + + virtual IWTNStream* getWTNStream() = 0; + + /** + * + * @type api + * @brief 创建 IRTCEngine 实例。
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Handler,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} + * @return + * - IRTCEngine:创建成功。返回一个可用的 IRTCEngine{@link #IRTCEngine} 实例 + * - Null:app_id 或者 event_handler 为空, event_handler 为空。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API IRTCEngine* createRTCEngine(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + /** + * + * @hidden internal use only + * @type api + * @brief 创建多实例引擎对象
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param handler SDK 回调给应用层的 Handler,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} + * @return + * - RTCEngine:创建成功。返回一个可用的 IRTCEngine{@link #IRTCEngine} 实例 + * - Null:.so 文件加载失败,创建失败。 + * @note 你应注意保持 handler 的生命周期必须大于 IRTCEngine{@link #IRTCEngine} 的生命周期,即 handler 必须在调用 destroyRTCEngine{@link #IRTCEngine#destroyRTCEngine} 之后销毁。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API IRTCEngine* createRTCEngineMulti(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + /** + * + * @type api + * @brief 销毁由 createRTCEngine{@link #IRTCEngine#createRTCEngine} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngine{@link #IRTCEngine} 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 IRTCEngine{@link #IRTCEngine} 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 IRTCEngine{@link #IRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互。 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API void destroyRTCEngine(); + /** + * + * @hidden internal use only + * @type api + * @brief 销毁由 createRTCEngineMulti{@link #IRTCEngine#createRTCEngineMulti} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngine{@link #IRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 IRTCEngine{@link #IRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API void destroyRTCEngineMulti(IRTCEngine* instance_multi); + /** + * + * @type api + * @brief 获取当前 SDK 版本信息。 + * @return 当前 SDK 版本信息。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API const char* getSDKVersion(); + /** + * + * @type api + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param log_config 本地日志参数,参看 LogConfig{@link #LogConfig}。 + * @return + * - 0:成功。 + * - –1:失败,本方法必须在创建引擎前调用。 + * - –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTCEngine{@link #IRTCEngine#createRTCEngine} 之前调用。 + * @list 引擎管理 + */ + + static BYTERTC_STATIC_API int setLogConfig(const LogConfig& log_config); +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h new file mode 100644 index 0000000..a80a1d3 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_event_handler.h @@ -0,0 +1,1292 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Event Handler Lite +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @hidden + * @brief 该接口为预留接口,还未实现。 + */ + +class IVideoSource; +/** + * + * @type keytype + * @hidden + * @brief 该接口为预留接口,还未实现。 + */ + +class IAudioSource; +/** + * + * @type callback + * @brief 音视频引擎事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class IRTCEngineEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTCEngineEventHandler() { + } + /** + * + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。
    + * 你可能需要干预。 + * @param warn 警告标识码,详见:WarningCode{@link #WarningCode} + * @list 引擎管理 + */ + + virtual void onWarning(int warn) { + (void)warn; + } + /** + * + * @type callback + * @brief 发生错误回调。
    + * SDK 运行时出现了网络或媒体相关的错误,且无法自动恢复时触发此回调。 + * @param err 错误标识码,参看 ErrorCode{@link #ErrorCode} + * @list 引擎管理 + */ + + virtual void onError(int err) { + (void)err; + } + /** + * + * @hidden internal use only + * @valid since 3.57 + * @type callback + * @brief 当内部线程发生 block 时,将收到此回调。 + * @param msg block 线程的线程名和 block 检测次数。参看 DeadLockMsg{#DeadLockMsg}。 + * @list Engine Management + */ + + virtual void onDeadLockError(const DeadLockMsg& msg) { + (void)msg; + } + /** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。
    + * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param extension_name 插件名字 + * @param msg 失败说明 + * @list 高级功能 + */ + + virtual void onExtensionAccessError(const char* extension_name, const char* msg) { + + } + /** + * + * @type callback + * @deprecated since 3.54, use onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} instead. + * @brief 混音音频文件播放进度回调 + * @param mix_id 混音 ID + * @param progress 当前混音音频文件播放进度,单位毫秒 + * @note 调用 setAudioMixingProgressInterval 将时间间隔设为大于 0 的值后,或调用 startAudioMixing 将 AudioMixingConfig 中的时间间隔设为大于 0 的值后,SDK 会按照设置的时间间隔回调该事件。 + * @list 混音 + */ + + virtual void onAudioMixingPlayingProgress(int mix_id, int64_t progress) { + } + /** + * + * @type callback + * @brief 上报日志时回调该事件。 + * @param log_type
    + * 事件类型。目前类型固定为 "live_webrtc_monitor_log"。 + * @param log_content
    + * 端监控日志内容。 + * @list 引擎管理 + */ + + virtual void onLogReport(const char* log_type, const char* log_content) { + (void)log_type; + (void)log_content; + } + /** + * + * @hidden(macOS,Windows,Linux) + * @type callback + * @brief 音频播放设备变化时回调该事件。 + * @param device 变化后的音频播放设备,参看 AudioRoute{@link #AudioRoute}。 + * @list 音频管理 + */ + + virtual void onAudioRouteChanged(AudioRoute route) { + (void)route; + }; + /** + * + * @type callback + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ConnectionState{@link #ConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + * @list 网络管理 + */ + + virtual void onConnectionStateChanged(bytertc::ConnectionState state) { + } + /** + * + * @type callback + * @brief SDK 当前网络连接类型改变回调。当 SDK 的当前网络连接类型发生改变时回调该事件。 + * @param type
    + * SDK 当前的网络连接类型,详见:NetworkType{@link #NetworkType} 。 + * @list 网络管理 + */ + + virtual void onNetworkTypeChanged(bytertc::NetworkType type) { + } + /** + * + * @type callback + * @brief 音视频流因网络环境变化等原因发生回退,或从回退中恢复时,触发该回调。 + * @param stream_id 流 ID + * @param stream_info 流信息, 参看 StreamInfo{@link #StreamInfo}。 + * @param event 音视频流发生变化的信息。参看 RemoteStreamSwitch{@link #RemoteStreamSwitch}。 + * @list 网络管理 + */ + + virtual void onSimulcastSubscribeFallback(const char* stream_id, const StreamInfo& stream_info, const bytertc::RemoteStreamSwitch& event) { + (void)stream_id; + (void)stream_info; + (void)event; + } + /** + * + * @type callback + * @brief 本地未通过 setPublishFallbackOption{@link #IRTCEngine#setPublishFallbackOption} 开启发布性能回退,检测到设备性能不足时,收到此回调。
    + * 本地通过 setPublishFallbackOption{@link #IRTCEngine#setPublishFallbackOption} 开启发布性能回退,因设备性能/网络原因,造成发布性能回退/恢复时,收到此回调。 + * @param stream_id 流 ID + * @param stream_info 流信息,参看 StreamInfo{@link #StreamInfo} + * @param mode 指示本地是否开启发布性能回退功能。参看 PerformanceAlarmMode{@link #PerformanceAlarmMode}
    + * - 当发布端未开启发布性能回退时,mode 值为 kPerformanceAlarmModeNormal。 + * - 当发布端开启发布性能回退时,mode 值为 kPerformanceAlarmModeSimulcast。 + * @param room_id 房间 ID
    + * - 未开启发布性能回退时,room_id 为空。 + * - 开启发布性能回退时,room_id 是告警影响的房间 ID。 + * @param reason 告警原因,参看 PerformanceAlarmReason{@link #PerformanceAlarmReason} + * @param data 性能回退相关数据,详见 SourceWantedData{@link #SourceWantedData}。 + * @list 网络管理 + */ + + virtual void onPerformanceAlarms(const char* stream_id, const StreamInfo& stream_info, bytertc::PerformanceAlarmMode mode, + bytertc::PerformanceAlarmReason reason, const bytertc::SourceWantedData& data) { + (void)stream_id; + (void)stream_info; + (void)mode; + (void)reason; + (void)data; + } + /** + * + * @type callback + * @brief 音频设备状态回调。提示音频采集、音频播放等设备的状态。 + * @param device_id 设备 ID。 + * @param device_type 设备类型,详见 RTCAudioDeviceType{@link #RTCAudioDeviceType} + * @param device_state 设备状态,详见 MediaDeviceState{@link #MediaDeviceState} + * @param device_error 设备错误类型,详见 MediaDeviceError{@link #MediaDeviceError} + * @list 音频管理 + */ + + virtual void onAudioDeviceStateChanged(const char* device_id, bytertc::RTCAudioDeviceType device_type, + bytertc::MediaDeviceState device_state, bytertc::MediaDeviceError device_error) { + (void)device_id; + (void)device_type; + (void)device_state; + (void)device_error; + } + /** + * + * @type callback + * @brief 视频设备状态回调。提示摄像头视频采集、屏幕视频采集等设备的状态。 + * @param device_id 设备 ID。采集屏幕共享流时,设备 ID 为固定字符串 `screen_capture_video` + * @param device_type 设备类型,详见 RTCVideoDeviceType{@link #RTCVideoDeviceType} + * @param device_state 设备状态,详见 MediaDeviceState{@link #MediaDeviceState} + * @param device_error 设备错误类型,详见 MediaDeviceError{@link #MediaDeviceError} + * @list 视频管理 + */ + + virtual void onVideoDeviceStateChanged(const char* device_id, bytertc::RTCVideoDeviceType device_type, + bytertc::MediaDeviceState device_state, bytertc::MediaDeviceError device_error) { + (void)device_id; + (void)device_type; + (void)device_state; + (void)device_error; + } + /** + * + * @type callback + * @brief 音频设备警告回调。音频设备包括音频采集设备和音频渲染设备。 + * @param device_id 设备 ID + * @param device_type 详见 RTCAudioDeviceType{@link #RTCAudioDeviceType} + * @param device_warning 详见 MediaDeviceWarning{@link #MediaDeviceWarning} + * @list 音频管理 + */ + + virtual void onAudioDeviceWarning(const char* device_id, bytertc::RTCAudioDeviceType device_type, + bytertc::MediaDeviceWarning device_warning) { + (void)device_id; + (void)device_type; + (void)device_warning; + } + /** + * + * @type callback + * @brief 视频设备警告回调,包括视频采集设备等。 + * @param device_id 设备 ID + * @param device_type 详见 RTCVideoDeviceType{@link #RTCVideoDeviceType} + * @param device_warning 详见 MediaDeviceWarning{@link #MediaDeviceWarning} + * @list 视频管理 + */ + + virtual void onVideoDeviceWarning(const char* device_id, bytertc::RTCVideoDeviceType device_type, + bytertc::MediaDeviceWarning device_warning) { + (void)device_id; + (void)device_type; + (void)device_warning; + } + /** + * + * @type callback + * @brief 周期性(2s)发出回调,报告当前 CPU 与内存的相关信息。 + * @param stats 包含当前 CPU 与内存相关信息的结构体。详见 SysStats{@link #SysStats}。 + * @list 引擎管理 + */ + + virtual void onSysStats(const bytertc::SysStats& stats) { + } + /** + * + * @type callback + * @brief 获取本地录制状态回调。
    + * 该回调由 startFileRecording{@link #IRTCEngine#startFileRecording} 或 stopFileRecording{@link #IRTCEngine#stopFileRecording} 触发。 + * @param video_source 预留参数 + * @param state 录制状态,参看 RecordingState{@link #RecordingState} + * @param error_code 录制错误码,参看 RecordingErrorCode{@link #RecordingErrorCode} + * @param info 录制文件的详细信息,参看 RecordingInfo{@link #RecordingInfo} + * @list 高级功能 + */ + + virtual void onRecordingStateUpdate( + IVideoSource* video_source, RecordingState state, RecordingErrorCode error_code, RecordingInfo info) { + } + /** + * + * @type callback + * @brief 本地录制进度回调。
    + * 该回调由 startFileRecording{@link #IRTCEngine#startFileRecording} 触发,录制状态正常时,系统每秒钟都会通过该回调提示录制进度。 + * @param video_source 预留参数。 + * @param process 录制进度,参看 RecordingProgress{@link #RecordingProgress} + * @param info 录制文件的详细信息,参看 RecordingInfo{@link #RecordingInfo} + * @list 高级功能 + */ + + virtual void onRecordingProgressUpdate(IVideoSource* video_source, RecordingProgress process, RecordingInfo info) { + } + /** + * + * @type callback + * @brief 调用 startAudioRecording{@link #IRTCEngine#startAudioRecording} 或 stopAudioRecording{@link #IRTCEngine#stopAudioRecording} 改变音频文件录制状态时,收到此回调。 + * @param state 录制状态,参看 AudioRecordingState{@link #AudioRecordingState} + * @param error_code 录制错误码,参看 AudioRecordingErrorCode{@link #AudioRecordingErrorCode} + * @list 高级功能 + */ + + virtual void onAudioRecordingStateUpdate(AudioRecordingState state, AudioRecordingErrorCode error_code) { + } + /** + * + * @type callback + * @brief 登录结果回调 + * @param uid
    + * 登录用户 ID + * @param error_code
    + * 登录结果
    + * 详见 LoginErrorCode{@link #LoginErrorCode}。 + * @param elapsed
    + * 从调用 login{@link #IRTCEngine#login} 接口开始到返回结果所用时长
    + * 单位为 ms。 + * @note 调用 login{@link #IRTCEngine#login} 后,会收到此回调。 + * @list 消息 + */ + + virtual void onLoginResult(const char* uid, int error_code, int elapsed) { + (void)uid; + (void)error_code; + (void)elapsed; + } + /** + * + * @type callback + * @brief 登出结果回调 + * @param reason 用户登出的原因,参看 LogoutReason{@link #LogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #IRTCEngine#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + * @list 消息 + */ + + virtual void onLogout(LogoutReason reason) { + } + /** + * + * @type callback + * @brief 设置应用服务器参数的返回结果 + * @param error
    + * 设置结果
    + * - 返回 200,设置成功 + * - 返回其他,设置失败,详见 UserMessageSendResult{@link #UserMessageSendResult} + * @note 调用 setServerParams{@link #IRTCEngine#setServerParams} 后,会收到此回调。 + * @list 消息 + */ + + virtual void onServerParamsSetResult(int error) { + (void)error; + } + /** + * + * @type callback + * @brief 查询对端或本端用户登录状态的返回结果 + * @param peer_user_id
    + * 需要查询的用户 ID + * @param status
    + * 查询的用户登录状态
    + * 详见 UserOnlineStatus{@link #UserOnlineStatus}. + * @note 必须先调用 getPeerOnlineStatus{@link #IRTCEngine#getPeerOnlineStatus},才能收到此回调。 + * @list 消息 + */ + + virtual void onGetPeerOnlineStatus(const char* peer_user_id, int status) { + (void)peer_user_id; + (void)status; + } + /** + * + * @type callback + * @brief > 该接口将于 3.64 版本废弃,请使用 onUserMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageReceivedOutsideRoom-2} 代替。 + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 发来的文本消息时,会收到此回调。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + + virtual void onUserMessageReceivedOutsideRoom(const char* uid, const char* message) { + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserBinaryMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserBinaryMessageReceivedOutsideRoom-2} 代替。 + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发来的二进制消息时,会收到此回调 + * @param uid 消息发送者 ID。 + * @param size 收到的二进制消息长度。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceivedOutsideRoom(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + /** + * + * @type callback + * @brief 给房间外指定的用户发送消息的结果回调。
    + * 当调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 或 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发送消息后,会收到此回调。 + * @param msgid 本条消息的 ID。
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @list 消息 + */ + + virtual void onUserMessageSendResultOutsideRoom(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + /** + * + * @type callback + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom{@link #IRTCEngine#sendUserMessageOutsideRoom} 发来的文本消息时,会收到此回调。 + * @param msgid 收到的文本消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息的内容。 + * @list 消息 + */ + + virtual void onUserMessageReceivedOutsideRoom(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 当收到来自房间外用户通过 sendUserBinaryMessageOutsideRoom{@link #IRTCEngine#sendUserBinaryMessageOutsideRoom} 发送的二进制消息时,触发此回调。 + * @param msgid 本条消息的 ID。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @param size 二进制消息的长度,单位为字节。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceivedOutsideRoom(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } + /** + * + * @type callback + * @brief 给应用服务器发送消息的回调。 + * @param msgid 本条消息的 ID。
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @param msg 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。消息不超过 64 KB。 + * @note 本回调为异步回调。当调用 sendServerMessage{@link #IRTCEngine#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTCEngine#sendServerBinaryMessage} 接口发送消息后,会收到此回调。 + * @list 消息 + */ + + virtual void onServerMessageSendResult(int64_t msgid, int error, const bytertc::ServerACKMsg& msg) { + (void)msgid; + (void)error; + (void)msg; + } + /** + * + * @type callback + * @brief 收到通过调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 发送带有 SEI 消息的视频帧时,收到此回调。 + * @param stream_id 收到 SEI 消息的视频流 ID + * @param stream_info 包含 SEI 发送者的用户名,所在的房间名和媒体流, 参看 StreamInfo{@link #StreamInfo} + * @param message 收到的 SEI 消息内容 + * @param length 收到的 SEI 消息长度 + * @list 网络管理 + */ + + virtual void onSEIMessageReceived(const char* stream_id, const StreamInfo& stream_info, const uint8_t* message, int length){ + (void)stream_id; + (void)stream_info; + (void)message; + (void)length; + } + /** + * + * @type callback + * @brief 黑帧视频流发布状态回调。
    + * 在语音通话场景下,本地用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 通过黑帧视频流发送 SEI 数据时,流的发送状态会通过该回调通知远端用户。
    + * 你可以通过此回调判断携带 SEI 数据的视频帧为黑帧,从而不对该视频帧进行渲染。 + * @param stream_id 收到 SEI 消息的视频流 ID + * @param stream_info 包含 SEI 发送者的用户名,所在的房间名和媒体流, 参看 StreamInfo{@link #StreamInfo} + * @param type 黑帧视频流状态,参看 SEIStreamEventType{@link #SEIStreamEventType} + * @list 消息 + */ + + virtual void onSEIStreamUpdate(const char* stream_id, const StreamInfo& stream_info, SEIStreamEventType type) { + (void)stream_id; + (void)stream_info; + (void)type; + } + + /** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 音乐场景检测结果回调。
    + * 调用 enableAudioAEDReport{@link #IRTCEngine#enableAudioAEDReport} 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 音乐场景检测结果,参看 AudioAEDType{@link #AudioAEDType}。 + * @list 音频管理 + */ + + virtual void onAudioAEDStateUpdate(const AudioAEDType state) { + (void)state; + } + + /** + * + * @type callback + * @brief 远端用户进房后,本地调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport},根据设置的 interval 值,本地会周期性地收到此回调,了解订阅的远端用户的瞬时音频信息。
    + * 远端用户的音频包括使用 RTC SDK 内部机制/自定义机制采集的麦克风音频和屏幕音频。 + * @param audio_properties_infos 远端音频信息,其中包含音频流属性、房间 ID、用户 ID ,详见 RemoteAudioPropertiesInfo{@link #RemoteAudioPropertiesInfo}。 + * @param audio_properties_info_number 数组长度 + * @param total_remote_volume 所有订阅的远端流混音后的音量,范围是 [0,255]。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @list 音频管理 + */ + + virtual void onRemoteAudioPropertiesReport(const RemoteAudioPropertiesInfo* audio_properties_infos, int audio_properties_info_number, int total_remote_volume) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + (void)total_remote_volume; + } + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport} 后,根据设置的 interval 值,你会周期性地收到此回调,了解本地音频的瞬时相关信息。
    + * 本地音频包括使用 RTC SDK 内部机制采集的麦克风音频,屏幕音频和本地混音音频信息。 + * @param audio_properties_infos 本地音频信息,详见 LocalAudioPropertiesInfo{@link #LocalAudioPropertiesInfo}。本地音量可通过 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 设置。 + * @param audio_properties_info_number 数组长度 + * @list 音频管理 + */ + + virtual void onLocalAudioPropertiesReport(const LocalAudioPropertiesInfo * audio_properties_infos, int audio_properties_info_number) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief 音量调节前的音量大小 + * @list Audio Management + */ + + virtual void onRemoteAudioPropertiesReportEx(const RemoteAudioPropertiesInfo* audio_properties_infos, int audio_properties_info_number) { + (void)audio_properties_infos; + (void)audio_properties_info_number; + } + + /** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 人声检测结果回调。
    + * 调用 enableAudioVADReport{@link #IRTCEngine#enableAudioVADReport} 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 人声检测结果,参看 AudioVADType{@link #AudioVADType}。 + * @list 音频管理 + */ + + virtual void onAudioVADStateUpdate(AudioVADType state) { + (void)state; + } + /** + * + * @type callback + * @brief 回调音频设备测试时的播放音量 + * @param volume 音频设备测试播放音量。取值范围:[0,255] + * @note 调用 startAudioPlaybackDeviceTest{@link #IAudioDeviceManager#startAudioPlaybackDeviceTest} 或 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest},开始播放音频文件或录音时,将开启该回调。本回调为周期性回调,回调周期由上述接口的 `interval` 参数指定。 + * @list 音频管理 + */ + + virtual void onAudioPlaybackDeviceTestVolume(int volume) { + (void)volume; + } + /** + * + * @hidden(Android,iOS) + * @type callback + * @brief 音频设备音量改变回调。当通过系统设置,改变音频设备音量或静音状态时,触发本回调。本回调无需手动开启。 + * @param device_type 设备类型,包括麦克风和扬声器,参阅 RTCAudioDeviceType{@link #RTCAudioDeviceType}。 + * @param volume 音量值,[0, 255]。当 volume 变为 0 时,muted 会变为 True。注意:在 Windows 端,当麦克风 volume 变为 0 时,muted 值不变。 + * @param muted 是否禁音状态。扬声器被设置为禁音时,muted 为 True,但 volume 保持不变。 + * @list 音频管理 + */ + + virtual void onAudioDeviceVolumeChanged(bytertc::RTCAudioDeviceType device_type, int volume, bool muted) { + (void)device_type; + (void)volume; + (void)muted; + } + /** + * + * @type callback + * @brief 本地音频流的状态发生改变时,收到此回调。 + * @param audio_source 本地音频流对象,详见:IAudioSource{@link #IAudioSource} + * @param state 本地音频流的状态,详见: LocalAudioStreamState{@link #LocalAudioStreamState} + * @param error 本地音频状态改变时的错误码,详见:LocalAudioStreamError{@link #LocalAudioStreamError} + * @list 音频管理 + */ + + virtual void onLocalAudioStateChanged(IAudioSource* audio_source, LocalAudioStreamState state, LocalAudioStreamError error) { + (void)audio_source; + (void)state; + (void)error; + } + /** + * + * @type callback + * @brief 房间内的用户调用 startAudioCapture{@link #IRTCEngine#startAudioCapture} 开启音频采集时,房间内其他用户会收到此回调。 + * @param stream_id 开启音频采集的远端用户发布的流 ID + * @param stream_info 开启音频采集的远端流信息,详见 StreamInfo{@link #StreamInfo} + * @list 音频管理 + */ + + virtual void onUserStartAudioCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 房间内的用户调用 stopAudioCapture{@link #IRTCEngine#stopAudioCapture} 关闭音频采集时,房间内其他用户会收到此回调。 + * @param stream_id 关闭音频采集的远端用户发布的流 ID + * @param stream_info 关闭音频采集的远端流信息,详见 StreamInfo{@link #StreamInfo} + * @list 音频管理 + */ + + virtual void onUserStopAudioCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport} 后,根据设置的 `config.interval`,你会周期性地收到此回调,获取房间内的最活跃用户信息。 + * @param room_id 房间 ID + * @param uid 最活跃用户(ActiveSpeaker)的用户 ID + * @list 音频管理 + */ + + virtual void onActiveSpeaker(const char* room_id, const char* uid) { + (void)room_id; + (void)uid; + } + /** + * + * @type callback + * @brief 音频流同步信息回调。可以通过此回调,在远端用户调用 sendStreamSyncInfo{@link #IRTCEngine#sendStreamSyncInfo} 发送音频流同步消息后,收到远端发送的音频流同步信息。 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,详见 StreamInfo{@link #StreamInfo}。 + * @param stream_type 媒体流类型,详见 SyncInfoStreamType{@link #SyncInfoStreamType} 。 + * @param data 消息内容。 + * @param length 消息长度。 + * @list 音频管理 + */ + + virtual void onStreamSyncInfoReceived(const char* stream_id, const StreamInfo& stream_info, SyncInfoStreamType stream_type, + const uint8_t* data, int32_t length) { + (void)stream_id; + (void)stream_info; + (void)stream_type; + (void)data; + (void)length; + } + /** + * + * @type callback + * @brief 通话前网络探测结果。
    + * 成功调用 startNetworkDetection{@link #IRTCEngine#startNetworkDetection} 接口开始探测后,会在 3s 内首次收到该回调,之后每 2s 收到一次该回调。 + * @param type 探测网络类型为上行/下行 + * @param quality 探测网络的质量,参看 NetworkQuality{@link #NetworkQuality}。 + * @param rtt 探测网络的 RTT,单位:ms + * @param lost_rate 探测网络的丢包率 + * @param bitrate 探测网络的带宽,单位:kbps + * @param jitter 探测网络的抖动,单位:ms + * @list 网络管理 + */ + + virtual void onNetworkDetectionResult(NetworkDetectionLinkType type, NetworkQuality quality, int rtt, double lost_rate, + int bitrate, int jitter){ + (void)type; + (void)quality; + (void)rtt; + (void)lost_rate; + (void)bitrate; + (void)jitter; + } + /** + * + * @type callback + * @brief 通话前网络探测结束
    + * 以下情况将停止探测并收到一次本回调:
    + * 1. 当调用 stopNetworkDetection{@link #IRTCEngine#stopNetworkDetection} 接口停止探测后,会收到一次该回调;
    + * 2. 当收到远端/本端音频首帧后,停止探测;
    + * 3. 当探测超过 3 分钟后,停止探测;
    + * 4. 当探测链路断开一定时间之后,停止探测。 + * @param reason
    + * 停止探测的原因类型,参考 NetworkDetectionStopReason{@link #NetworkDetectionStopReason} + * @list 网络管理 + */ + + virtual void onNetworkDetectionStopped(NetworkDetectionStopReason reason){ + (void)reason; + } + /** + * + * @type callback + * @brief 房间内的可见用户调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部视频采集时,房间内其他用户会收到此回调。 + * @param stream_id 视频流 ID + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo}。 + * @list 视频管理 + */ + + virtual void onUserStartVideoCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 房间内的可见用户调用 stopVideoCapture{@link #IRTCEngine#stopVideoCapture} 关闭内部视频采集时,房间内其他用户会收到此回调。
    + * 若发布视频数据前未开启采集,房间内所有可见用户会收到此回调。 + * @param stream_id 视频流 ID + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo}。 + * @list 视频管理 + */ + + virtual void onUserStopVideoCapture(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 本地视频大小或旋转信息发生改变时,收到此回调。 + * @param video_source 预留参数。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list 音视频传输 + */ + + virtual void onLocalVideoSizeChanged(IVideoSource* video_source, const VideoFrameInfo& info) { + (void)video_source; + (void)info; + } + /** + * + * @type callback + * @brief 远端视频大小或旋转信息发生改变时,房间内订阅此视频流的用户会收到此回调。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list 音视频传输 + */ + + virtual void onRemoteVideoSizeChanged(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief RTC SDK 在本地完成第一帧视频帧或屏幕视频帧采集时,收到此回调。 + * @param video_source 视频源对象。参看 IVideoSource{@link #IVideoSource}。 + * @param info 视频信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note 对于采集到的本地视频帧,你可以调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 或 setLocalVideoSink{@link #IRTCEngine#setLocalVideoSink} 在本地渲染。 + * @list 音视频传输 + */ + + virtual void onFirstLocalVideoFrameCaptured(IVideoSource* video_source, const VideoFrameInfo& info) { + (void)video_source; + (void)info; + } + /** + * + * @type callback + * @brief 订阅端接收并解码远端音频流首帧时,收到此回调。包含以下情况:
    + * 1. 发布端发布音频,包含首次发布和取消后再次发布。取消发布还包括发布端主动退房后或掉线。
    + * 2. 发布端关闭音频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布音频后,订阅端取消订阅音频后,又再次订阅音频。 + * @param stream_id 远端音频流 ID。 + * @param stream_info 远端音频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @note + * - 用户刚收到房间内每一路音频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源、自动订阅和手动订阅的音频流,都符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteAudioFrame(const char* stream_id, const StreamInfo& stream_info) { + (void)stream_id; + (void)stream_info; + } + /** + * + * @type callback + * @brief 用户订阅来自远端的音频流状态发生改变时,会收到此回调,了解当前的远端音频流状态。 + * @param stream_id 远端音频流 ID。 + * @param stream_info 远端音频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param state 远端音频流状态,参看 RemoteAudioState{@link #RemoteAudioState} + * @param reason 远端音频流状态改变的原因,参看 RemoteAudioStateChangeReason{@link #RemoteAudioStateChangeReason} + * @list 音视频传输 + */ + + virtual void onRemoteAudioStateChanged( + const char* stream_id, const StreamInfo& stream_info, RemoteAudioState state, RemoteAudioStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + /** + * + * @type callback + * @brief 本地视频流的状态发生改变时,收到该事件。 + * @param video_source 本地视频流对象。参看 IVideoSource{@link #IVideoSource}。 + * @param state 本地视频流状态,参看 LocalVideoStreamState{@link #LocalVideoStreamState} + * @param error 本地视频状态改变时的错误码,参看 LocalVideoStreamError{@link #LocalVideoStreamError} + * @list 视频管理 + */ + + virtual void onLocalVideoStateChanged(IVideoSource* video_source, LocalVideoStreamState state, LocalVideoStreamError error) { + (void)video_source; + (void)state; + (void)error; + } + /** + * + * @type callback + * @brief 远端视频流的状态发生改变时,房间内订阅此流的用户会收到该事件。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息,包括房间 ID、用户 ID、流属性,等。参看 StreamInfo{@link #StreamInfo}。 + * @param state 远端视频流状态,参看 RemoteVideoState{@link #RemoteVideoState}。 + * @param reason 远端视频流状态改变的原因,参看 RemoteVideoStateChangeReason{@link #RemoteVideoStateChangeReason}。 + * @note 本回调仅适用于主流,不适用于屏幕流。 + * @list 音视频传输 + */ + + virtual void onRemoteVideoStateChanged( + const char* stream_id, const StreamInfo& stream_info, RemoteVideoState state, RemoteVideoStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type callback + * @brief 远端视频流的超分状态发生改变时,房间内订阅此流的用户会收到该回调。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息,包括房间 ID、用户 ID、流属性,等。参看 StreamInfo{@link #StreamInfo}。 + * @param mode 超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + * @param reason 超分模式改变原因,参看 VideoSuperResolutionModeChangedReason{@link #VideoSuperResolutionModeChangedReason}。 + * @list 视频处理 + */ + + virtual void onRemoteVideoSuperResolutionModeChanged( + const char* stream_id, const StreamInfo& stream_info, VideoSuperResolutionMode mode, VideoSuperResolutionModeChangedReason reason) { + (void)stream_id; + (void)stream_info; + (void)mode; + (void)reason; + } + /** + * + * @hidden for internal use only + * @valid since 3.54 + * @type callback + * @brief 降噪模式状态变更回调。当降噪模式的运行状态发生改变,SDK 会触发该回调,提示用户降噪模式改变后的运行状态及状态发生改变的原因。 + * @param mode 视频降噪模式,参看 VideoDenoiseMode{@link #VideoDenoiseMode}。 + * @param reason 视频降噪模式改变的原因,参看 VideoDenoiseModeChangedReason{@link #VideoDenoiseModeChangedReason}。 + * @list 视频处理 + */ + + virtual void onVideoDenoiseModeChanged(VideoDenoiseMode mode, VideoDenoiseModeChangedReason reason) { + (void)mode; + (void)reason; + } + /** + * + * @type callback + * @brief 本地音频首帧发送状态发生改变时,收到此回调。 + * @param stream_id 音频发布用户所在的房间 ID + * @param stream_info 音频流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 本地用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧发送状态,详见 FirstFrameSendState{@link #FirstFrameSendState} + * @list 音视频传输 + */ + + virtual void onAudioFrameSendStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFrameSendState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 本地视频首帧发送状态发生改变时,收到此回调。 + * @param stream_id 流 ID。 + * @param stream_info 视频流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 本地用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧发送状态,详见 FirstFrameSendState{@link #FirstFrameSendState} + * @list 音视频传输 + */ + + virtual void onVideoFrameSendStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFrameSendState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief SDK 内部渲染成功远端视频流首帧后,收到此回调。包含以下情况:
    + * 1. 发布端首次发布视频
    + * 2. 在 1 条件下,发布端取消发布视频后,再次发布视频
    + * 3. 在 1 条件下,发布端关闭视频采集后,再次打开采集(或使用外部源时,停止推流后再次推流)
    + * 4. 在 1 条件下,订阅端取消订阅视频后,再次订阅视频(调用接口包括 subscribeAllStreamsVideo{@link #IRTCRoom#subscribeallstreamsVideo},pauseAllSubscribedStreamVideo{@link #IRTCRoom#pauseAllSubscribedStreamVideo}/resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}) + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note 仅在采用内部渲染时,符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteVideoFrameRendered(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief 订阅端接收并解码远端视频流首帧时,收到此回调。包含以下情况:
    + * 1. 发布端发布视频,包含首次发布和取消后再次发布。取消发布还包括发布端主动退房后或掉线。
    + * 2. 发布端关闭视频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布视频后,订阅端取消订阅视频后,又再次订阅视频。 + * @param stream_id 远端视频流 ID。 + * @param stream_info 远端视频流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param info 视频帧信息。参看 VideoFrameInfo{@link #VideoFrameInfo}。 + * @note + * - 用户刚收到房间内订阅的每一路视频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源,自动订阅和手动订阅的视频流,都符合上述策略。 + * @list 音视频传输 + */ + + virtual void onFirstRemoteVideoFrameDecoded(const char* stream_id, const StreamInfo& stream_info, const VideoFrameInfo& info) { + (void)stream_id; + (void)stream_info; + (void)info; + } + /** + * + * @type callback + * @brief 音频首帧播放状态发生改变时,收到此回调。 + * @param stream_id 音频首帧播放状态发生改变的流 ID + * @param stream_info 音频首帧播放状态发生改变的流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 远端用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧播放状态,详见 FirstFramePlayState{@link #FirstFramePlayState} + * @list 音视频传输 + */ + + virtual void onAudioFramePlayStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFramePlayState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 远端视频流的首帧播放状态改变时,收到此回调。 + * @param stream_id 视频首帧播放状态发生改变的流 ID + * @param stream_info 视频首帧播放状态发生改变的流信息,详见 StreamInfo{@link #StreamInfo} + * @param user 远端用户信息,详见 RtcUser{@link #RtcUser} + * @param state 首帧播放状态,详见 FirstFramePlayState{@link #FirstFramePlayState} + * @list 音视频传输 + */ + + virtual void onVideoFramePlayStateChanged(const char* stream_id, const StreamInfo& stream_info, const RtcUser& user, FirstFramePlayState state) { + (void)stream_id; + (void)stream_info; + (void)user; + (void)state; + } + /** + * + * @type callback + * @brief 发布音频流时,采集到第一帧音频帧,收到该回调。 + * @param audio_source 音频源,详见 IAudioSource{@link #IAudioSource}。 + * @note 如果发布音频流时,未开启本地音频采集,SDK 会推送静音帧,也会收到此回调。 + * @list 音视频传输 + */ + + virtual void onFirstLocalAudioFrame(IAudioSource* audio_source) { + (void)audio_source; + } + /** + * + * @deprecated since 3.60, use onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} instead. + * @type callback + * @hidden(Linux) + * @brief WTN 流发布结果回调。
    + * 调用 startPushMixedStream 接口发布 WTN 流后,启动结果通过此回调方法通知用户。 + * @param room_id WTN 流的发布房间的 ID + * @param public_streamid WTN 流 ID + * @param error_code WTN 流发布结果状态码。详见 PublicStreamErrorCode{@link #PublicStreamErrorCode} + * @list 音视频传输 + * @order 24 + */ + + virtual void onPushPublicStreamResult(const char* room_id, const char* public_streamid, PublicStreamErrorCode error_code) { + (void)room_id; + (void)public_streamid; + (void)error_code; + } + + /** + * + * @type callback + * @brief 调用 startCloudProxy{@link #IRTCEngine#startCloudProxy} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + * @list 通话加密 + */ + + virtual void onCloudProxyConnected(int interval) { + (void)interval; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 关于音视频回路测试结果的回调。 + * @param result 测试结果,参看 EchoTestResult{@link #EchoTestResult} + * @note 该回调触发的时机包括:
    + * - 检测过程中采集设备发生错误时; + * - 检测成功后; + * - 非设备原因导致检测过程中未接收到音/视频回放,停止检测后。 + * @list 网络管理 + */ + + virtual void onEchoTestResult(EchoTestResult result) { + (void)result; + }; + /** + * + * @hidden for internal use only + * @type callback + * @brief 音频 dump 状态改变回调 + * @param status 音频 dump 状态,参见 AudioDumpStatus{@link #AudioDumpStatus} + * @note 本回调用于内部排查音质相关异常问题,开发者无需关注。 + * @list Network Processing + */ + + virtual void onAudioDumpStateChanged(AudioDumpStatus status) { + (void)status; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 首次调用 getNetworkTimeInfo{@link #IRTCEngine#getNetworkTimeInfo} 后,SDK 内部启动网络时间同步,同步完成时会触发此回调。 + * @list 网络管理 + */ + + virtual void onNetworkTimeSynchronized() { + } + /** + * + * @hidden internal use only + * @type callback + * @brief license 过期提醒。在剩余天数低于 30 天时,收到此回调。 + * @param days license 剩余有效天数 + * @list Network Processing + */ + + virtual void onLicenseWillExpire(int days) { + (void)days; + } + /** + * + * @type callback + * @brief AIGC(AI 音视频互动方案)使用 License 计费的场景下,当 License 配额用尽时,会收到该回调。收到该回调时,AIGC 服务会中止,请及时续费,并且建议离开房间、销毁 SDK。 + * @param message 回调消息 + * @list 高级功能 + */ + + virtual void onLicenseQuotaExceeded(const char* message) { + (void)message; + } + /** + * + * @hidden + * @type callback + * @brief 外部采集时,调用 setOriginalScreenVideoInfo设置屏幕或窗口大小改变前的分辨率后,若屏幕采集模式为智能模式,你将收到此回调,根据 RTC 智能决策合适的帧率和分辨率积(宽*高)重新采集。 + * @param frame_update_info RTC 智能决策后合适的帧率和分辨率积(宽*高)。参看 FrameUpdateInfo{@link #FrameUpdateInfo}。 + * @list 屏幕共享 + */ + + virtual void onExternalScreenFrameUpdate(FrameUpdateInfo frame_update_info) { + (void)frame_update_info; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 通话前回声检测结果回调。 + * @param hardware_echo_detection_result 参见 HardwareEchoDetectionResult{@link #HardwareEchoDetectionResult} + * @note + * - 通话前调用 startHardwareEchoDetection{@link #IRTCEngine#startHardwareEchoDetection} 后,将触发本回调返回检测结果。 + * - 建议在收到检测结果后,调用 stopHardwareEchoDetection{@link #IRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * - 如果 SDK 在通话中检测到回声,将通过 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调 `kMediaDeviceWarningDetectLeakEcho`。 + * @list 音频管理 + */ + + virtual void onHardwareEchoDetectionResult(HardwareEchoDetectionResult hardware_echo_detection_result) { + (void)hardware_echo_detection_result; + } + /** + * + * @type callback + * @brief 本地代理状态发生改变回调。调用 setLocalProxy{@link #IRTCEngine#setLocalProxy} 设置本地代理后,SDK 会触发此回调,返回代理连接的状态。 + * @param local_proxy_type 本地代理类型。参看 LocalProxyType{@link #LocalProxyType}。 + * @param local_proxy_state 本地代理状态。参看 LocalProxyState{@link #LocalProxyState}。 + * @param local_proxy_error 本地代理错误。参看 LocalProxyError{@link #LocalProxyError}。 + * @list 通话加密 + */ + + virtual void onLocalProxyStateChanged(LocalProxyType local_proxy_type, LocalProxyState local_proxy_state, LocalProxyError local_proxy_error) { + (void)local_proxy_type; + (void)local_proxy_state; + (void)local_proxy_error; + } + /** + * + * @hidden internal use only + * @type callback + * @brief 当特效设置失败时,收到此回调。 + * @param error 特效错误类型。参看 EffectErrorType{@link #EffectErrorType}。 + * @param msg 错误信息。 + * @list Encryption + */ + + virtual void onEffectError(EffectErrorType error, const char* msg) { + (void)error; + (void)msg; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief SDK 远端视频渲染发生错误时收到此回调 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息。参看 StreamInfo{@link #StreamInfo}。 + * @param error 渲染错误类型。参看 RenderError{@link #RenderError}。 + * @param message 错误信息。 + * @note 本回调暂时仅内部使用,开发者无需关注。 + * @list 视频管理 + */ + + virtual void onRemoteRenderError(const char* stream_id, const StreamInfo& stream_info, RenderError error, const char* message) { + (void)stream_id; + (void)stream_info; + (void)error; + (void)message; + } + /** + * + * @hidden(Linux) + * @valid since 3.60. 自 3.60 起,该回调替代了 `onStreamMixingEvent` 和 `onPushPublicStreamResult` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此回调。 + * @type callback + * @brief 合流转推 CDN / WTN 流状态回调 + * @param info 任务详情,参看 MixedStreamTaskInfo{@link #MixedStreamTaskInfo}。 + * @param event 任务事件,参看 MixedStreamTaskEvent{@link #MixedStreamTaskEvent}。 + * @param error_code 任务错误码,参看 MixedStreamTaskErrorCode{@link #MixedStreamTaskErrorCode} + * @list CDN 推流 + */ + + virtual void onMixedStreamEvent(MixedStreamTaskInfo info, MixedStreamTaskEvent event, MixedStreamTaskErrorCode error_code) { + (void)info; + (void)event; + (void)error_code; + } + /** + * + * @valid since 3.60. + * @type callback + * @hidden(Linux) + * @brief 单流转推 CDN 状态回调 + * @param task_id 任务 ID + * @param event 任务状态, 参看 SingleStreamTaskEvent{@link #SingleStreamTaskEvent} + * @param error_code 错误码,参看 SingleStreamTaskErrorCode{@link #SingleStreamTaskErrorCode} + * @list CDN 推流 + */ + + virtual void onSingleStreamEvent(const char *task_id, SingleStreamTaskEvent event, SingleStreamTaskErrorCode error_code) { + (void)task_id; + (void)event; + (void)error_code; + } + /** + * + * @hidden internal use only + * @valid since 3.60. + * @type callback + * @brief 试验性接口回调 + * @param param 回调内容(JSON string) + * @list 引擎管理 + */ + + virtual void onExperimentalCallback(const char* param) { + (void)param; + } + + /** + * + * @valid since 3.60. + * @hidden(Linux) + * @type callback + * @brief 调用 takeLocalSnapshotToFile{@link #IRTCEngine#takeLocalSnapshotToFile} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param video_source 被截图的视频流,参看 IVideoSource{@link #IVideoSource}。 + * @param file_path 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param error_code 截图错误码。请参看 SnapshotErrorCode{@link #SnapshotErrorCode}。 + * @param task_id 截图任务的编号,和 takeLocalSnapshotToFile{@link #IRTCEngine#takeLocalSnapshotToFile} 的返回值一致。 + * @list 高级功能 + */ + + virtual void onLocalSnapshotTakenToFile(IVideoSource* video_source, const char* file_path, int width, int height, SnapshotErrorCode error_code, long task_id) { + (void)video_source; + (void)file_path; + (void)width; + (void)height; + (void)error_code; + (void)task_id; + } + + /** + * + * @type callback + * @hidden(Linux) + * @valid since 3.60. + * @brief 调用 takeRemoteSnapshotToFile{@link #IRTCEngine#takeRemoteSnapshotToFile} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param stream_id 被截图的视频流 ID。 + * @param stream_info 被截图的视频流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param file_path 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param error_code 截图错误码。请参看 SnapshotErrorCode{@link #SnapshotErrorCode}。 + * @param task_id 截图任务的编号,和 takeRemoteSnapshotToFile{@link #IRTCEngine#takeRemoteSnapshotToFile} 的返回值一致。 + * @list 高级功能 + */ + + virtual void onRemoteSnapshotTakenToFile(const char* stream_id, const StreamInfo& stream_info, const char* file_path, int width, int height, SnapshotErrorCode error_code, long task_id) { + (void)stream_id; + (void)stream_info; + (void)file_path; + (void)width; + (void)height; + (void)error_code; + (void)task_id; + } + +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h new file mode 100644 index 0000000..3d78b82 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_engine_ex.h @@ -0,0 +1,231 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_engine.h" +#include "rtc/bytertc_defines.h" +#include "rtc/bytertc_video_defines_ex.h" +#include "bytertc_engine_event_handler.h" + +namespace bytertc { + +/** + * + * @hidden + */ +class IRTCRoomEx; +/** + * + * @hidden + */ +class IVideoSource; +/** + * + * @hidden + */ +class IPublisher; +/** + * + * @type api + * @brief IRTCEngineEx class + */ +class IRTCEngineEx : public IRTCEngine { +public: + /** + * + * @type api + * @brief 创建 IRTCRoomEx{@link #IRTCRoomEx} 实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTCRoomEx{@link #IRTCRoomEx} 房间实例。 + * @note 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + */ + virtual IRTCRoomEx* createRTCRoomEx(const char* room_id) = 0; + /** + * + * @type api + * @brief 设置视频源的相关配置。 + * @param stream_index 源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 参看 VideoSourceConfig{@link #VideoSourceConfig}。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setVideoSource(StreamIndex stream_index, const VideoSourceConfig& config) = 0; + /** + * + * @type api + * @brief 推送外部视频帧。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param frame 设置视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 支持格式:I420, NV12, RGBA, BGRA, ARGB
    + * + 该函数运行在用户调用线程内
    + * + 推送外部视频帧前,必须调用 setVideoSource{@link #IRTCEngineEx#setVideoSource} 开启外部视频源采集。 + */ + virtual int pushExternalVideoFrame(StreamIndex stream_index, const VideoFrameData& frame) = 0; + /** + * + * @type api + * @brief 设置流的优先级。
    + * 在网络条件有限的情况下,优先保障高优先级视频流的清晰度和流畅度,优先保障高优先级流的音频流畅度和音质。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param priority 参看 StreamPriority{@link #StreamPriority}。 + */ + virtual int setLocalStreamPriority(StreamIndex stream_index, StreamPriority priority) = 0; + /** + * + * @type api + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
    + * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 onUserStartVideoCapture{@link #IRTCEngineEventHandler#onUserStartVideoCapture} 的回调。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param device_id 设备 ID + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 stopVideoCapture{@link #IRTCEngineEx#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。
    + * + 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。
    + * + 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + */ + virtual int startVideoCapture(StreamIndex stream_index, const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 onUserStopVideoCapture{@link #IRTCEngineEventHandler#onUserStopVideoCapture} 的回调。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 可以开启内部视频采集。
    + * + 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + */ + virtual int stopVideoCapture(StreamIndex stream_index) = 0; + /** + * + * @type api + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param video_capture_config 视频采集参数。参看: VideoCaptureConfig{@link #VideoCaptureConfig}。 + * @return + * + 0: 成功;
    + * + < 0: 失败; + * @note + * + 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #IRTCEngineEx#startVideoCapture} 前调用本接口。
    + * + 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + */ + virtual int setVideoCaptureConfig(StreamIndex stream_index, const VideoCaptureConfig& video_capture_config) = 0; + + /** + * + * @type api + * @brief 设置音频源的整体音量。 + * @param stream_index 音频源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioSourceVolume(StreamIndex stream_index, int volume) = 0; + /** + * + * @type api + * @brief 设置音频源的内容。单个音频源的内容可以包含一个或多个原始音频来源。 + * @param stream_index 音频源对应的流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 内容构成。参看 AudioContentTypeConfig{@link #AudioContentTypeConfig}。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioContentType(StreamIndex stream_index, const AudioContentTypeConfig& config) = 0; + /** + * + * @type api + * @brief 设置音频流的编码配置。 + * @param stream_index 音频流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param config 编码设置。参看 AudioEncodeConfig{@link #AudioEncodeConfig}。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setAudioEncodeConfig(StreamIndex stream_index, const AudioEncodeConfig& config) = 0; + + + /** + * + * @type api + * @brief 设置多路流编码配置,在开启simulcast功能下可同时设置4路分辨率的流 + * @param stream_index 视频频流的索引。参看 StreamIndex{@link #StreamIndex}。 + * @param solutions 编码设置。参看 VideoEncoderConfig{@link #VideoEncoderConfig}。 + * @param solution_num 需要传入的solutions数组大小。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + virtual int setVideoEncoderConfig(StreamIndex stream_index, const VideoEncoderConfig* solutions, + int solution_num) = 0; + + /** + * + * @type api + * @brief 创建 IRTCEngineEx 实例。
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} 。 + * @return IRTCEngineEx:创建成功。返回一个可用的 IRTCEngineEx{@link #IRTCEngineEx} 实例 + */ + static BYTERTC_STATIC_API IRTCEngineEx* createRTCEngineEx(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + + /** +* +* @type api +* @brief 创建 IRTCEngineEx 实例。
    +* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    +* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新的引擎实例。 +* @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} +* @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTCEngineEventHandler{@link #IRTCEngineEventHandler} 。 +* @return IRTCEngineEx:创建成功。返回一个可用的 IRTCEngineEx{@link #IRTCEngineEx} 实例 +*/ + static BYTERTC_STATIC_API IRTCEngineEx* createRTCEngineExMulti(const EngineConfig& config, IRTCEngineEventHandler* event_handler); + + /** + * + * @type api + * @brief 销毁由 IRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 IRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 IRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 IRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ + static BYTERTC_STATIC_API void destroyRTCEngineEx(); + + /** + * + * @hidden internal use only + * @type apx + * @brief 销毁由 createRTCEngineExMulti{@link #IRTCEngine#createRTCEngineExMulti} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 IRTCEngineEx{@link #IRTCEngineEx} 实例相关的业务场景全部结束后,才调此方法 + * - 该方法在调用之后,会销毁所有和此 IRTCEngineEx{@link #IRTCEngineEx} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * @list 引擎管理 + */ + static BYTERTC_STATIC_API void destroyRTCEngineExMulti(IRTCEngineEx* instance_multi); +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h new file mode 100644 index 0000000..95c9a6b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_game_room.h @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2024 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_video_effect_interface.h" +#include "rtc/bytertc_defines.h" +#include "bytertc_room_event_handler.h" +#include "rtc/bytertc_range_audio_interface.h" +#include "rtc/bytertc_spatial_audio_interface.h" +#include "rtc/bytertc_panoramic_video_interface.h" +namespace bytertc { +/** + * + * @type api + * @brief 游戏房间接口 + */ + +class IGameRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IGameRoom() { + } + /** + * + * @type api + * @brief 退出并销毁调用 createGameRoom{@link #IRTCEngine#createGameRoom} 所创建的游戏房间实例。 + * @list 房间管理 + */ + + virtual void destroy() = 0; + /** + * + * @type api + * @brief 加入游戏房间。
    + * 调用 createGameRoom{@link #IRTCEngine#createGameRoom} 创建房间实例后,调用此方法加入房间,同房间内其他用户进行音频通话。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 回调通知。 + * - -1:room_id/user_info.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #IGameRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 onConnectionStateChanged{@link #IRTCEngineEventHandler#onConnectionStateChanged} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。 + * @list 房间管理 + */ + + virtual int joinRoom(const char* token, const UserInfo& user_info) = 0; + /** + * + * @type api + * @brief 离开游戏房间。
    + * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,远端用户收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。 + * - < 0: 调用失败,参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。你必须在收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调后,再销毁房间或引擎,或调用 joinRoom{@link #IGameRoom#joinRoom} 再次加入房间。 + * @list 房间管理 + */ + + virtual int leaveRoom() = 0; + /** + * + * @type api + * @brief 更新游戏房间 Token。
    + * 收到 onTokenWillExpire{@link #IRTCRoomEventHandler#onTokenWillExpire},onPublishPrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onPublishPrivilegeTokenWillExpire},或 onSubscribePrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onSubscribePrivilegeTokenWillExpire} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged},错误码是 `-1010`。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note 请勿同时调用 updateToken{@link #IGameRoom#updateToken} 和 joinRoom{@link #IGameRoom#joinRoom} 方法更新 Token。若因 Token 过期或无效导致加入房间失败或已被移出房间,你应该在获取新的有效 Token 后调用 joinRoom{@link #IGameRoom#joinRoom} 重新加入房间。 + * @list 房间管理 + */ + + virtual int updateToken(const char* token) = 0; + /** + * + * @type api + * @brief 通过设置 IGameRoom{@link #IGameRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandler{@link #IRTCRoomEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + virtual int setRTCRoomEventHandler(IRTCRoomEventHandler* room_event_handler) = 0; + /** + * + * @type api + * @brief 获取游戏房间范围语音接口实例。 + * @return 方法调用结果:
    + * - IRangeAudio:成功,返回一个 IRangeAudio{@link #IRangeAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + + virtual IRangeAudio* getRangeAudio() = 0; + /** + * + * @type api + * @brief 开始讲话或者停止讲话时调用,调用该接口启动或停止音频采集。同房间其他用户会收到 + * 回调 OnAudioDeviceStateChanged{@link #IRTCEngineEventHandler#OnAudioDeviceStateChanged} + * @param [in] enable + * true 表示开启采集 + * false 表示关闭采集,默认设置 + * @return + * 0: 表示参数检查通过,不代表打开麦克风会成功,比如房间不存在 + * -2: 传入的room_id为空导致失败 + * @note 不可与 EnableAudioSend{@link #IGameRoom#EnableAudioSend} 同时调用。 + * @list 音频管理 + */ + + virtual int enableMicrophone(bool enable) = 0; + /** + * + * @type api + * @brief 开启或关闭扬声器。 + * @param enable 是否开启扬声器:
    + * - true:开启扬声器,订阅所有远端用户的音频流。 + * - false:默认设置。关闭扬声器,取消订阅所有远端用户的音频流。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @list 音频管理 + */ + + virtual int enableSpeakerphone(bool enable) = 0; + /** + * + * @type api + * @brief 开始或停止发送音频流。调用此接口不影响音频采集。同房间其他用户会收到相应的回调。 + * @param enable 是否发送音频流:
    + * - true:发送音频流。 + * - false:默认设置。停止发送音频流(不会关闭麦克风)。 + * @return + * 0: 表示参数检查通过,不代表打开麦克风会成功,比如房间不存在 + * -2: 传入的room_id为空导致失败 + * @note 不可与 EnableMicrophone{@link #IGameRoom#EnableMicrophone} 同时调用。 + * @list 音频管理 + */ + + virtual int enableAudioSend(bool enable) = 0; + /** + * + * @type api + * @brief 是否接收某个特定用户的音频流。关闭声音接收不会影响扬声器或其他音频输出设备的状态。 + * @param user_id 用户 ID,最大长度为128字节的非空字符串。支持的字符集范围为:
    + * 1. 26个大写字母 A ~ Z
    + * 2. 26个小写字母 a ~ z
    + * 3. 10个数字 0 ~ 9
    + * 4. 下划线"_", at符"@", 减号"-" + * @param enable 是否接收指定用户的音频流:
    + * - true:接收该用户的音频流。即允许该用户的音频数据被传递到本地设备并播放。 + * - false:默认设置,不接收该用户的音频流,即不播放该用户的声音。但不会关闭扬声器,扬声器仍可用于其他音频输出。 + * @return + * - 0:接口调用成功。 + * - -2:传入的用户 ID 为空字符串。 + * @list 音频管理 + */ + + virtual int enableAudioReceive(const char* user_id, bool enable) = 0; + /** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setRemoteRoomAudioPlaybackVolume(int volume) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room.h new file mode 100644 index 0000000..eb7283a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room.h @@ -0,0 +1,649 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_video_effect_interface.h" +#include "rtc/bytertc_defines.h" +#include "bytertc_room_event_handler.h" +#include "bytertc_rts_room.h" +#include "rtc/bytertc_range_audio_interface.h" +#include "rtc/bytertc_spatial_audio_interface.h" +#include "rtc/bytertc_panoramic_video_interface.h" +namespace bytertc { +/** + * + * @type api + * @brief 房间接口 + */ + +class IRTCRoom : public IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTCRoom() { + } + /** + * + * @type api + * @brief 退出并销毁调用 createRTCRoom{@link #IRTCEngine#createRTCRoom} 所创建的 RTC 房间实例。 + * @list 房间管理 + */ + + virtual void destroy() = 0; + /** + * + * @type api + * @brief 设置用户可见性。未调用该接口前,本地用户默认对他人可见。
    + * 默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,最多 30 人可同时上麦。更多信息参看[用户和媒体流上限](https: + * @param enable 设置用户是否对房间内其他用户可见:
    + * - true: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - false: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。参看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * 设置用户可见性,会收到设置成功/失败回调 onUserVisibilityChanged{@link #IRTCRoomEventHandler#onUserVisibilityChanged}。(v3.54 新增) + * - 在加入房间前设置用户可见性,若设置的可见性与默认值不同,将在加入房间时触发本回调。 + * - 在加入房间后设置用户可见性,若可见性前后不同,会触发本回调。 + * - 断网重连后,若可见性发生改变,会触发本回调。 + * @note + * - 在加入房间前后,用户均可调用此方法设置用户可见性。 + * - 在房间内,调用此方法成功切换用户可见性后,房间内其他用户会收到相应的回调。 + * - 从可见换至不可见时,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave}。 + * - 从不可见切换至可见时,房间内其他用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + * - 若调用该方法将可见性设为 `false`,此时尝试发布流会收到 `kWarningCodePublishStreamForbidden` 警告。 + * @list 房间管理 + */ + + virtual int setUserVisibility(bool enable) = 0; + /** + * + * @type api + * @brief 通过设置 IRTCRoom{@link #IRTCRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandler{@link #IRTCRoomEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + virtual int setRTCRoomEventHandler(IRTCRoomEventHandler* room_event_handler) = 0; + /** + * + * @type api + * @brief 加入 RTC 房间。
    + * 调用 createRTCRoom{@link #IRTCEngine#createRTCRoom} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。
    + * > 用户(包括后端机器人)成功进入 RTC 房间后便开始计费。即使房间内只有 1 个用户,也会计算音频计费时长。具体计费说明,请参见[音视频通话计费](69871)。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @param user_visibility 用户可见性。建议在进房时将用户可见性都设置为 `false`,并在用户需要发送音视频流时再通过 setUserVisibility{@link #IRTCRoom#setUserVisibility} 设置为 `true`。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * @param config 房间参数配置,设置房间模式以及是否自动发布或订阅流。具体配置模式参看 RTCRoomConfig{@link #RTCRoomConfig}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + * - 本端收到本地流发布状态通知 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。 + * - 本端收到流订阅状态通知 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。 + * - 本端收到房间内已发布流的通知 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 回调通知。 + * - -1:room_id / user_info.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #IRTSRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 onConnectionStateChanged{@link #IRTCEngineEventHandler#onConnectionStateChanged} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调通知。 + * @list 房间管理 + */ + + virtual int joinRoom(const char* token, const UserInfo& user_info, bool user_visibility, const RTCRoomConfig& config) = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @region 房间管理 + * @brief 发布/取消发布视频流。 + * @param publish 是否发布视频流。
    + * - `true`: 发布。 + * - `false`: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头视频流。 + * - 如果你需要发布麦克风采集到的音频流,调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。 + * - 调用此方法后,房间中的所有远端用户会收到 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调通知,订阅了视频流的远端用户会收到 onFirstRemoteVideoFrameDecoded{@link #IRTCEngineEventHandler#onFirstRemoteVideoFrameDecoded} 回调。 + * @list 音视频传输 + */ + + virtual int publishStreamVideo(bool publish) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @region 房间管理 + * @brief 发布/取消发布音频流。 + * @param publish 是否发布音频流。
    + * - `true`: 发布。 + * - `false`: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布音频流。 + * - 如果你需要发布摄像头采集到的视频流,调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。 + * - 调用此方法后,房间中的所有远端用户会收到 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调通知,其中成功收到了音频流的远端用户会收到 onFirstRemoteAudioFrame{@link #IRTCEngineEventHandler#onFirstRemoteAudioFrame} 回调。 + * @list 音视频传输 + * @order 0 + */ + + virtual int publishStreamAudio(bool publish) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream`、`unsubscribeStream`、`subscribeScreen` 和 `unsubscribeScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端视频流。 + * @param stream_id 目标远端视频流 ID。 + * @param subscribe 是否订阅该视频流。
    + * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端视频流(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo} 回调获取当前房间里的远端摄像头流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged} 回调通知,具体异常原因参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + + virtual int subscribeStreamVideo(const char *stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream`, `unsubscribeStream`, `subscribeScreen` 和 `unsubscribeScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端音频流。 + * @param stream_id 目标远端音频流 ID。 + * @param subscribe 是否订阅该音频流。
    + * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调获取当前房间里的远端麦克风流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知,具体异常原因参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @list 音视频传输 + */ + + virtual int subscribeStreamAudio(const char *stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. + * @brief 设置期望订阅的远端视频流类型。比如大流、中流、小流等。 + * @param stream_id 目标要订阅的远端视频流 ID。 + * @param stream_type 远端视频流类型,参看 SimulcastStreamType{@link #SimulcastStreamType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 该方法仅在发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效。 + * - 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。该方法可在进房后调用。 + * @list 视频管理 + * @order 1 + */ + + virtual int setRemoteSimulcastStreamType(const char* stream_id, SimulcastStreamType stream_type) = 0; + + /** + * + * @type api + * @list 视频管理 + * @brief 设置期望订阅的远端视频流的参数。 + * @param stream_id 期望配置订阅参数的远端视频流 ID。 + * @param remote_video_config 期望配置的远端视频流参数,参看 RemoteVideoConfig{@link #RemoteVideoConfig}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
    + * + 该方法需在进房后调用。 + * + 该方法仅在发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setLocalSimulcastMode} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
    + * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
    + * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + */ + + virtual int setRemoteVideoConfig(const char *stream_id, const RemoteVideoConfig &remote_video_config) = 0; + /** + * + * @type api + * @valid Available since 3.60 + * @brief 设置当前推流的流附加信息。 + * @param extra_info 流附加信息。长度不超过1024的字符串。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + !0:失败。 + * @note + * + 可通过此函数设置当前推流的流附加信息。流附加信息是流 ID 的附加信息标识,不同于流 ID 在推流过程中不可修改,流附加信息可以在对应流 ID 的推流中途修改。开发者可根据流附加信息来实现流 ID 相关的可变内容的同步。 + * + 该方法在进房前后均可调用 + * + 相同房间内的其他用户会通过 onRoomStreamExtraInfoUpdate{@link #IRTCRoomEventHandler#onRoomStreamExtraInfoUpdate} 回调函数获得通知。 + * @list 音视频传输 + */ + + virtual int setStreamExtraInfo(const char* extra_info) = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内所有远端视频流(通过摄像头采集的)。 + * @param subscribe 是否订阅所有远端视频流。
    + * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置:subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio}。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用单流订阅接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果,包含异常原因。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * @list 音视频传输 + */ + + virtual int subscribeAllStreamsVideo(bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @region 房间管理 + * @brief 订阅/取消订阅房间内所有远端音频流(通过麦克风采集的)。 + * @param subscribe 是否订阅所有远端音频流。
    + * - `true`: 订阅。 + * - `false`: 取消订阅。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置:subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio}。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用单流订阅接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 通知方法调用结果,包含异常原因。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo}、subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 取消订阅或本端用户退房。 + * @list 音视频传输 + * + */ + + virtual int subscribeAllStreamsAudio(bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStreamAudio` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + + virtual int pauseAllSubscribedStreamVideo() = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #IRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + + virtual int pauseAllSubscribedStreamAudio() = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + + virtual int resumeAllSubscribedStreamVideo() = 0; + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送。 + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + + virtual int resumeAllSubscribedStreamAudio() = 0; + /** + * + * @hidden for internal use only. + */ + + virtual int enableSubscribeLocalStream(bool enable) = 0; + /** + * + * @type api + * @brief 设置发流端音画同步。
    + * 当同一用户同时使用两个通话设备分别采集发送音频和视频时,有可能会因两个设备所处的网络环境不一致而导致发布的流不同步,此时你可以在视频发送端调用该接口,SDK 会根据音频流的时间戳自动校准视频流,以保证接收端听到音频和看到视频在时间上的同步性。 + * @param audio_user_id 音频发送端的用户 ID,将该参数设为空则可解除当前音视频的同步关系。 + * @return + * - 0: 调用成功。调用该接口后音画同步状态发生改变时,你会收到 onAVSyncStateChange{@link #IRTCRoomEventHandler#onAVSyncStateChange} 回调。 + * - < 0 : 调用失败。你也可以通过监听 onAVSyncEvent{@link #IRTCRoomEventHandler#onAVSyncEvent} 获取错误详情。同一 RTC 房间内允许存在多个音视频同步关系,但需注意单个音频源不支持与多个视频源同时同步。 + * @note + * - 该方法在进房前后均可调用。 + * - 进行音画同步的音频发布用户 ID 和视频发布用户 ID 须在同一个 RTC 房间内。 + * - 如需更换同步音频源,再次调用该接口传入新的 `audio_user_id` 即可;如需更换同步视频源,需先解除当前的同步关系,后在新视频源端开启同步。 + * @list 音视频传输 + */ + + virtual int setMultiDeviceAVSync(const char* audio_user_id) = 0; + + /** + * + * @hidden for internal use only. + */ + + virtual int setCustomUserRole(const char* role) = 0; + /** + * + * @type api + * @brief 开始跨房间转发媒体流。
    + * 在调用 joinRoom{@link #IRTCRoom#joinRoom} 后调用本接口,实现向多个房间转发媒体流,适用于跨房间连麦等场景。 + * @param configuration 跨房间媒体流转发指定房间的信息。参看 ForwardStreamConfiguration{@link #ForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调。 + * - 调用本方法后,你可以通过监听 onForwardStreamEvent{@link #IRTCRoomEventHandler#onForwardStreamEvent} 回调来获取各个目标房间在转发媒体流过程中的相关事件。 + * - 开始转发后,目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发流 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * - 调用本方法后,可以调用 updateForwardStreamToRooms{@link #IRTCRoom#updateForwardStreamToRooms} 更新目标房间信息,例如,增加或减少目标房间等。 + * - 调用本方法后,可以调用 stopForwardStreamToRooms{@link #IRTCRoom#stopForwardStreamToRooms} 停止向所有房间转发媒体流。 + * - 调用本方法后,可以调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms} 暂停向所有房间转发媒体流。 + * @list 音视频传输 + */ + + virtual int startForwardStreamToRooms(const ForwardStreamConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 更新跨房间媒体流转发信息。
    + * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法增加或者减少目标房间,或更新房间密钥。
    + * 调用本方法增加或删减房间后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调,包含发生了变动的目标房间中媒体流转发状态。 + * @param configuration 跨房间媒体流转发目标房间信息。参看 ForwardStreamConfiguration{@link #ForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * 增加或删减目标房间后,新增目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * @list 音视频传输 + */ + + virtual int updateForwardStreamToRooms(const ForwardStreamConfiguration& configuration) = 0; + /** + * + * @type api + * @brief 停止跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法停止向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} 回调。 + * - 调用本方法后,原目标房间中的用户将接收到本地用户停止发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调和退房 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 的回调。 + * - 如果需要停止向指定的房间转发媒体流,请调用 updateForwardStreamToRooms{@link #IRTCRoom#updateForwardStreamToRooms} 更新房间信息。 + * - 如果需要暂停转发,请调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms},并在之后随时调用 resumeForwardStreamToAllRooms{@link #IRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @list 音视频传输 + */ + + virtual int stopForwardStreamToRooms() = 0; + /** + * + * @type api + * @brief 暂停跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法暂停向所有目标房间转发媒体流。
    + * 调用本方法暂停向所有目标房间转发后,你可以随时调用 resumeForwardStreamToAllRooms{@link #IRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note 调用本方法后,目标房间中的用户将接收到本地用户停止发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调和退房 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 的回调。 + * @list 音视频传输 + */ + + virtual int pauseForwardStreamToAllRooms() = 0; + /** + * + * @type api + * @brief 恢复跨房间媒体流转发。
    + * 调用 pauseForwardStreamToAllRooms{@link #IRTCRoom#pauseForwardStreamToAllRooms} 暂停转发之后,调用本方法恢复向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 + * @note + * 目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调。 + * @list 音视频传输 + */ + + virtual int resumeForwardStreamToAllRooms() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 获取范围语音接口实例。 + * @return 方法调用结果:
    + * - IRangeAudio:成功,返回一个 IRangeAudio{@link #IRangeAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + + virtual IRangeAudio* getRangeAudio() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 获取空间音频接口实例。 + * @return 方法调用结果:
    + * - ISpatialAudio:成功,返回一个 ISpatialAudio{@link #ISpatialAudio} 实例。 + * - nullptr:失败,当前 SDK 不支持空间音频功能。 + * @note + * - 首次调用该方法须在创建房间后、加入房间前。空间音频相关 API 和调用时序详见[空间音频](https: + * - 只有在使用支持真双声道播放的设备时,才能开启空间音频效果; + * - 机型性能不足可能会导致音频卡顿,使用低端机时,不建议开启空间音频效果; + * - SDK 最多支持 30 个用户同时开启空间音频功能。 + * @list 高级功能 + */ + + virtual ISpatialAudio* getSpatialAudio() = 0; + /** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume{@link #IRTCEngine#setRemoteAudioPlaybackVolume} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume{@link #IRTCEngine#setPlaybackVolume} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + + virtual int setRemoteRoomAudioPlaybackVolume(int volume) = 0; + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @brief 接收端调用本接口获取全景视频接口引擎。 + * @return 方法调用结果:
    + * - IPanoramicVideo:成功,返回一个 IPanoramicVideo{@link #IPanoramicVideo} 实例。 + * - null:失败,当前 SDK 不支持全景视频功能。 + * @note + * - 接收端的调用时序为 createRTCEngine{@link #IRTCEngine#createRTCEngine} > createRTCRoom{@link #IRTCEngine#createRTCRoom} > 本接口 > joinRoom{@link #IRTCRoom#joinRoom}。 + * - 获取 IPanoramicVideo 实例后,再调用 updateQuaternionf{@link #IPanoramicVideo#updateQuaternionf} 更新头位姿四元数。 + * - 你需要使用外部渲染器对接收到的全景视频进行渲染,参见 setRemoteVideoSink{@link #IRTCEngine#setRemoteVideoSink}。 + * @list 视频管理 + */ + + virtual IPanoramicVideo* getPanoramicVideo() = 0; + /** + * + * @valid since 3.52. + * @type api + * @brief 设置本端发布流在音频选路中的优先级。 + * @param audio_selection_priority 本端发布流在音频选路中的优先级,默认正常参与音频选路。参见 AudioSelectionPriority{@link #AudioSelectionPriority}。 + * @note + * - 在控制台上为本 appId 开启音频选路后,调用本接口才会生效。进房前后调用均可生效。更多信息参见[音频选路](https: + * - 如果本端用户同时加入不同房间,使用本接口进行的设置相互独立。 + * @list 音频管理 + */ + + virtual int setAudioSelectionConfig(AudioSelectionPriority audio_selection_priority) = 0; + /** + * + * @valid since 3.52. + * @type api + * @brief 设置/更新房间附加信息,可用于标识房间状态或属性,或灵活实现各种业务逻辑。 + * @param key 房间附加信息键值,长度小于 10 字节。
    + * 同一房间内最多可存在 5 个 key,超出则会从第一个 key 起进行替换。 + * @param value 房间附加信息内容,长度小于 128 字节。 + * @return + * - 0: 方法调用成功,返回本次调用的任务编号; + * - <0: 方法调用失败,具体原因详见 SetRoomExtraInfoResult{@link #SetRoomExtraInfoResult}。 + * @note + * - 在设置房间附加信息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * - 调用该方法后,会收到一次 onSetRoomExtraInfoResult{@link #IRTCRoomEventHandler#onSetRoomExtraInfoResult} 回调,提示设置结果。 + * - 调用该方法成功设置附加信息后,同一房间内的其他用户会收到关于该信息的回调 onRoomExtraInfoUpdate{@link #IRTCRoomEventHandler#onRoomExtraInfoUpdate}。 + * - 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual int64_t setRoomExtraInfo(const char*key,const char*value) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 识别或翻译房间内所有用户的语音,形成字幕。
    + * 调用该方法时,可以在 SubtitleMode{@link #SubtitleMode} 中选择语音识别或翻译模式。如果选择识别模式,语音识别文本会通过 onSubtitleMessageReceived{@link #IRTCRoomEventHandler#onSubtitleMessageReceived} 事件回调给你;
    + * 如果选择翻译模式,你会同时收到两个 onSubtitleMessageReceived{@link #IRTCRoomEventHandler#onSubtitleMessageReceived} 回调,分别包含字幕原文及字幕译文。
    + * 调用该方法后,用户会收到 onSubtitleStateChanged{@link #IRTCRoomEventHandler#onSubtitleStateChanged} 回调,通知字幕是否开启。 + * @param subtitle_config 字幕配置信息。参看 SubtitleConfig{@link #SubtitleConfig}。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @note + * - 使用字幕功能前,你需要在 [RTC 控制台](https: + * - 如果你需要使用流式语音识别模式,你应在 [豆包语音控制台](https: + * - 如果你需要使用实时语音翻译模式,你应开通机器翻译服务,参考 [开通服务](https: + * - 此方法需要在进房后调用。 + * - 如需指定源语言,你需要在调用 `joinRoom` 接口进房时,通过 extraInfo 参数传入格式为`"语种英文名": "语种代号"` JSON 字符串,例如设置源语言为英文时,传入 `"source_language": "en"`。如未指定源语言,SDK 会将系统语种设定为源语言。如果你的系统语种不是中文、英文和日文,此时 SDK 会自动将中文设为源语言。 + * - 识别模式下,你可以传入 [RTC 控制台](https: + * - 翻译模式下,你需要传入机器翻译规定的语种英文名和语种代号。翻译模式下支持的语言及对应的代号参看[翻译模式语言支持](https: + * @list 字幕翻译服务 + */ + + virtual int startSubtitle(const SubtitleConfig& subtitle_config) = 0; + /** + * + * @valid since 3.52 + * @type api + * @brief 关闭字幕。
    + * 调用该方法后,用户会收到 onSubtitleStateChanged{@link #IRTCRoomEventHandler#onSubtitleStateChanged} 回调,通知字幕是否关闭。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 字幕翻译服务 + */ + + virtual int stopSubtitle() = 0; + /** + * + * @valid since 3.53 + * @type api + * @brief 获取房间 ID。 + * @return 房间 ID。 + * @list 房间管理 + */ + + virtual const char* getRoomId() = 0; + + /** + * + * @type api + * @valid since 3.60. + * @brief 获取通话 ID。
    + * 该方法需要在加入房间后调用。当创建一个房间开启音视频通话后,系统会为该房间生成一个对应的通话 ID,标识此房间的通话。 + * @return 通话 ID。 + * @list 房间管理 + */ + + virtual const char* getCallId() = 0; + + /** + * + * @valid since 3.60. + * @type api + * @brief 设置房间直播模式。
    + * 该方法需要在加入房间后调用。 + * @param live_mode 直播模式。参看 RoomLiveMode{@link #RoomLiveMode} 。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 房间管理 + */ + + virtual int setLiveMode(RoomLiveMode live_mode) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h new file mode 100644 index 0000000..1833721 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_event_handler.h @@ -0,0 +1,582 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" +#include "bytertc_rts_room_event_handler.h" + +namespace bytertc { +/** + * + * @type callback + * @brief RTS房间事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class IRTCRoomEventHandler : public IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTCRoomEventHandler() { + } + /** + * + * @hidden + * @type callback + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参见 RoomStateChangeReason{@link #RoomStateChangeReason}。 + * @list 房间管理 + */ + + virtual void onRoomStateChangedWithReason( + const char* room_id, const char* uid, RoomState state, RoomStateChangeReason reason) { + (void)room_id; + (void)uid; + (void)state; + (void)reason; + } + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调取代 `onStreamStateChanged` 回调,用于报告视频发布状态改变。如果您已升级 SDK 至版本 3.60 或以上,仍在使用 `onStreamStateChanged` 回调,请迁移至该回调。 + * @region 房间管理 + * @brief 视频发布状态改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 发布状态码,参看 PublishState{@link #PublishState}。 + * @param reason 本地视频流发布状态改变的具体原因,参看 PublishStateChangeReason{@link #PublishStateChangeReason}。 + * @note 除了本地视频流发布状态改变时触发,本端用户进房时也会收到本回调。 + * @list 音视频传输 + */ + + virtual void onVideoPublishStateChanged( + const char* stream_id, const StreamInfo& stream_info, PublishState state, PublishStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. + * @region 房间管理 + * @brief 音频发布状态改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 发布状态码,参看 PublishState{@link #PublishState}。 + * @param reason 本地音频流发布状态改变的具体原因,参看 PublishStateChangeReason{@link #PublishStateChangeReason}。 + * @note 除了状态改变时触发,本端用户进房时也会收到本回调。 + * @list 音视频传输 + */ + + virtual void onAudioPublishStateChanged( + const char* stream_id, const StreamInfo& stream_info, PublishState state, PublishStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onStreamStateChanged` 和 `onStreamSubscribed` 方法,用于报告视频流订阅状态的改变。如果您已升级到 SDK 版本 3.60 或以上,仍在使用这两个方法,请迁移到该回调。 + * @region 房间管理 + * @brief 视频订阅状态发生改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 订阅状态码,参看 SubscribeState{@link #SubscribeState}。 + * @param reason 视频流订阅状态改变的具体原因,参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 后会收到该通知。 + * @list 音视频传输 + */ + + virtual void onVideoSubscribeStateChanged( + const char* stream_id, const StreamInfo& stream_info, SubscribeState state, SubscribeStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. + * @region 房间管理 + * @brief 音频订阅状态发生改变回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param state 订阅状态码,参看 SubscribeState{@link #SubscribeState}。 + * @param reason 音频订阅状态改变的具体原因,参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 后会收到该通知。 + * @list 音视频传输 + */ + + virtual void onAudioSubscribeStateChanged( + const char* stream_id, const StreamInfo& stream_info, SubscribeState state, SubscribeStateChangeReason reason) { + (void)stream_id; + (void)stream_info; + (void)state; + (void)reason; + } + + /** + * + * @hidden + * @deprecated since 3.41 and will be deleted in 3.51, use onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} and onStreamStateChanged instead. + * @type callback + * @brief SDK 发生警告回调。
    + * SDK 内部遇到可恢复错误时,在尝试自动恢复的同时,会通过此回调通知用户。此回调事件仅用作通知。 + * @param warn 警告码,参看 WarningCode{@link #WarningCode}。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onRoomWarning(int warn) { + (void)warn; + } + /** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 进房权限。 + * @note 若未能及时更新 Token 进房权限导致其过期而失效:
    + * - 用户此时尝试进房会收到 回调,提示错误码为 `-1000` Token 过期; + * - 用户已在房间内则会被移出房间,本地用户会收到 回调,提示错误码为 `-1009` Token 过期,同时远端用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调,提示原因为 `2` Token 进房权限过期。 + * @list 引擎管理 + */ + + virtual void onTokenWillExpire() { + + } + /** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 发布权限。 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调,提示该流已停止发布。 + * @list 引擎管理 + */ + + virtual void onPublishPrivilegeTokenWillExpire() { + + } + /** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken{@link #IRTSRoom#updateToken} 更新 Token 订阅权限有效期。 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调,提示`kSubscribeStateChangeReasonNoSubscribePermission`,没有订阅权限。 + * @list 引擎管理 + */ + + virtual void onSubscribePrivilegeTokenWillExpire() { + + } + /** + * + * @type callback + * @brief 房间内通话统计信息回调。
    + * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param stats 当前 RtcEngine 统计数据,详见 RtcRoomStats{@link #RtcRoomStats} + * @list 房间管理 + */ + + virtual void onRoomStats(const RtcRoomStats& stats) { + (void)stats; + } + /** + * + * @hidden for internal use only + * @type callback + * @brief 房间事件回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 RoomEvent{@link #RoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 RoomEventInfo{@link #RoomEventInfo}。 + * @list 房间管理 + */ + + virtual void onRoomEvent(const char* room_id, const char* uid, RoomEvent state, const RoomEventInfo& info) { + (void)room_id; + (void)uid; + (void)state; + (void)info; + } + /** + * + * @hidden(Linux) + * @type callback + * @brief 本地流数据统计以及网络质量回调。
    + * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
    + * 统计信息通过 LocalStreamStats{@link #LocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param stats 当前 RtcEngine 统计数据,详见 LocalStreamStats{@link #LocalStreamStats}。 + * @list 音视频传输 + */ + + virtual void onLocalStreamStats(const char* stream_id, const bytertc::StreamInfo& stream_info, const LocalStreamStats& stats) { + (void)stream_id; + (void)stream_info; + (void)stats; + } + /** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
    + * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param stats 当前 RtcEngine 统计数据,详见 RemoteStreamStats{@link #RemoteStreamStats} + * @list 音视频传输 + */ + + virtual void onRemoteStreamStats(const char* stream_id, const bytertc::StreamInfo& stream_info, const RemoteStreamStats& stats) { + (void)stream_id; + (void)stream_info; + (void)stats; + } + /** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
    + * 1. 远端用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设为可见后加入房间时,房间内其他用户将收到该事件。
    + * 2. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
    + * 3. 房间内隐身远端用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法切换至可见时,房间内其他用户将收到该事件。
    + * 4. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param user_info 用户信息,详见 UserInfo{@link #UserInfo} + * @list 房间管理 + */ + + virtual void onUserJoined(const UserInfo& user_info) { + (void)user_info; + } + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use onUserUnpublishStream and onUserUnpublishScreen instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调。 + * @param stream 流的属性。参看 MediaStreamInfo{@link #MediaStreamInfo} 。 + * @param reason 远端流移除的原因。参看 StreamRemoveReason{@link #StreamRemoveReason} 。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onStreamRemove(const MediaStreamInfo& stream, StreamRemoveReason reason) { + (void)stream; + } + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use onUserPublishStream and onUserPublishScreen instead. + * @type callback + * @brief 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调。包括移除后又重新发布的流。 + * @param stream 流属性,参看 MediaStreamInfo{@link #MediaStreamInfo} 。 + * @list 房间管理 + */ + + BYTERTC_DEPRECATED virtual void onStreamAdd(const MediaStreamInfo& stream) { + (void)stream; + } + + /** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream` 、`onUserUnpublishStream` 、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param is_publish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamVideo{@link #IRTCRoom#publishStreamVideo} 成功发布采集的视频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamVideo{@link #IRTCRoom#subscribeStreamVideo} 订阅此流。 + * @list 音视频传输 + */ + + virtual void onUserPublishStreamVideo(const char* stream_id, const StreamInfo& stream_info, bool is_publish){ + (void)stream_id; + (void)stream_info; + (void)is_publish; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这些方法,请迁移至该回调。 + * @brief 房间内远端用户发布或取消发布音频流的回调。 + * @param stream_id 流 ID。 + * @param stream_info 流信息。 + * @param is_publish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamAudio{@link #IRTCRoom#publishStreamAudio} 成功发布音频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamAudio{@link #IRTCRoom#subscribeStreamAudio} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + + virtual void onUserPublishStreamAudio(const char* stream_id, const StreamInfo& stream_info, bool is_publish){ + (void)stream_id; + (void)stream_info; + (void)is_publish; + } + + /** + * + * @hidden for internal use only + * @type callback + * @brief 当发布流成功的时候回调该事件。 + * @param user_id 发布流的用户 ID。 + * @param is_screen 该流是否为屏幕流。
    + * - Ture: 屏幕流。 + * - False: 非屏幕流。 + * @list 音视频传输 + */ + + virtual void onStreamPublishSuccess(const char* user_id, bool is_screen) { + (void)is_screen; + } + + /** + * + * @hidden for internal use only + */ + + virtual void onRoomModeChanged(RtcRoomMode mode) { + (void)mode; + } + + /** + * + * @hidden for internal use only + * @brief callback when the maximum screen share fps is changed + * @param fps maximum screen share fps + */ + + virtual void onMaximumScreenShareFpsUpdated(int fps) { + (void)fps; + } + + /** + * + * @hidden for internal use only + * @brief 最大屏幕共享帧率改变时的回调 + * @param screen_pixels 为了保持帧率而推荐的最大视频宽度×高度的值。 + */ + + virtual void onMaximumScreenSharePixelsUpdated(int screen_pixels) { + (void)screen_pixels; + } + /** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
    + * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + + virtual void onVideoStreamBanned(const char* uid, bool banned) { + (void)uid; + (void)banned; + } + /** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync{@link #IRTCRoom#setMultiDeviceAVSync} 后音视频同步状态发生改变时,会收到此回调。 + * @param state 音视频同步状态,参看 AVSyncState{@link #AVSyncState}。 + * @list 音视频传输 + */ + + virtual void onAVSyncStateChange(AVSyncState state) { + (void)state; + } + /** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
    + * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + + virtual void onAudioStreamBanned(const char* uid, bool banned) { + (void)uid; + (void)banned; + } + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ForwardStreamStateInfo{@link #ForwardStreamStateInfo} + * @param info_count 数组长度,代表目标房间数 + * @list 音视频传输 + */ + + virtual void onForwardStreamStateChanged(ForwardStreamStateInfo* infos, int info_count) { + } + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ForwardStreamEventInfo{@link #ForwardStreamEventInfo} + * @param info_count 数组长度,代表目标房间数 + * @list 音视频传输 + */ + + virtual void onForwardStreamEvent(ForwardStreamEventInfo* infos, int info_count) { + } + /** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param local_quality 本端网络质量,详见 NetworkQualityStats{@link #NetworkQualityStats}。 + * @param remote_qualities 已订阅用户的网络质量,详见 NetworkQualityStats{@link #NetworkQualityStats}。 + * @param remote_quality_num `remoteQualities` 数组长度 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + + virtual void onNetworkQuality(const NetworkQualityStats& local_quality, const NetworkQualityStats* remote_qualities, int remote_quality_num) { + } + /** + * + * @valid since 3.52. + * @type callback + * @brief 调用 setRoomExtraInfo{@link #IRTCRoom#setRoomExtraInfo} 设置房间附加信息结果的回调。 + * @param task_id 调用 setRoomExtraInfo 的任务编号。 + * @param result 设置房间附加信息的结果,详见 SetRoomExtraInfoResult{@link #SetRoomExtraInfoResult} + * @list 房间管理 + */ + + virtual void onSetRoomExtraInfoResult(int64_t task_id, SetRoomExtraInfoResult result) { + (void)task_id; + (void)result; + } + /** + * + * @valid since 3.52. + * @type callback + * @brief 接收同一房间内,其他用户调用 setRoomExtraInfo{@link #IRTCRoom#setRoomExtraInfo} 设置的房间附加信息的回调。 + * @param key 房间附加信息的键值 + * @param value 房间附加信息的内容 + * @param last_update_user_id 最后更新本条信息的用户 ID。 + * @param last_update_time_ms 最后更新本条信息的 Unix 时间,单位:毫秒。 + * @note 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual void onRoomExtraInfoUpdate(const char*key, const char* value, const char* last_update_user_id, int64_t last_update_time_ms) { + (void)key; + (void)value; + (void)last_update_user_id; + (void)last_update_time_ms; + } + /** + * + * @valid since 3.60. + * @type callback + * @brief 接收同一房间内,其他用户调用 setStreamExtraInfo{@link #IRTCRoom#setStreamExtraInfo} 设置的流附加信息的回调。 + * @param stream_id 流 ID + * @param stream_info 流信息,详见 StreamInfo{@link #StreamInfo} + * @param extra_info 流附加信息的内容 + * @note 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + + virtual void onRoomStreamExtraInfoUpdate(const char* stream_id, const StreamInfo& stream_info, const char* extra_info) { + (void)stream_id; + (void)stream_info; + (void)extra_info; + } + /** + * + * @valid since 3.54 + * @type callback + * @brief 用户调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 设置用户可见性的回调。 + * @param current_user_visibility 当前用户的可见性。
    + * - true: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - false: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param error_code 设置用户可见性错误码,参看 UserVisibilityChangeError{@link #UserVisibilityChangeError}。 + * @list 房间管理 + */ + + virtual void onUserVisibilityChanged(bool current_user_visibility, UserVisibilityChangeError error_code) { + (void)current_user_visibility; + (void)error_code; + } + /** + * + * @type callback + * @brief 字幕状态发生改变回调。
    + * 当用户调用 startSubtitle{@link #IRTCRoom#startSubtitle} 和 stopSubtitle{@link #IRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param state 字幕状态。参看 SubtitleState{@link #SubtitleState}。 + * @param error_code 字幕任务错误码。参看 SubtitleErrorCode{@link #SubtitleErrorCode}。 + * @param error_message 与第三方服务有关的错误信息。 + * @list 字幕翻译服务 + */ + + virtual void onSubtitleStateChanged(SubtitleState state, SubtitleErrorCode error_code, const char* error_message) { + } + /** + * + * @type callback + * @brief 字幕相关内容回调。
    + * 当用户调用 startSubtitle{@link #IRTCRoom#startSubtitle} 后会收到此回调,通知字幕的相关信息。 + * @param subtitles 字幕消息内容。参看 SubtitleMessage{@link #SubtitleMessage}。 + * @param cnt 字幕消息个数。 + * @list 字幕翻译服务 + */ + + virtual void onSubtitleMessageReceived(const SubtitleMessage* subtitles, int cnt) { + } + + /** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync{@link #IRTCRoom#setMultiDeviceAVSync} 后音视频同步状态发生错误时,会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param event 音视频同步状态错误,参看 AVSyncEvent{@link #AVSyncEvent}。 + * @list 音视频传输 + */ + + virtual void onAVSyncEvent(const char* room_id, const char* uid, AVSyncEvent event) { + } +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h new file mode 100644 index 0000000..fee9556 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_room_ex.h @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface Lite + */ + +#pragma once + +#include "bytertc_room.h" + +namespace bytertc { + +class IRTCRoomEventHandlerEx; +/** + * + * @type api + * @brief IRTCRoomEx Class + */ +class IRTCRoomEx : public IRTCRoom { +public: + /** + * + * @type api + * @region 房间管理 + * @brief 在当前所在房间内发布媒体流 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 MediaStreamType{@link #MediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 如果你已经在用户进房时通过调用 joinRoom{@link #IRTCRoom#joinRoom} 成功选择了自动发布,则无需再调用本接口。
    + * + 调用 setUserVisibility{@link #IRTCRoom#setUserVisibility} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头音视频流。
    + * + 如果你需要向多个房间发布流,调用 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms}。
    + * + 调用此方法后,房间中的所有远端用户会收到 onUserPublishStream{@link #IRTCRoomEventHandler#onUserPublishStream} 回调通知,其中成功收到了音频流的远端用户会收到 onFirstRemoteAudioFrame{@link #IRTCEngineEventHandler#onFirstRemoteAudioFrame} 回调,订阅了视频流的远端用户会收到 onFirstRemoteVideoFrameDecoded{@link #IRTCEngineEventHandler#onFirstRemoteVideoFrameDecoded} 回调。
    + * + 调用 unpublishStream{@link #IRTCRoom#unpublishStream} 取消发布。 + */ + virtual int publishStream(StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 停止将本地摄像头/麦克风采集的媒体流发布到当前所在房间中 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定停止发布音频/视频,参看 MediaStreamType{@link #MediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * + 调用 publishStream{@link #IRTCRoomEx#publishStream} 手动发布摄像头音视频流后,你需调用此接口停止发布。
    + * + 调用此方法停止发布音视频流后,房间中的其他用户将会收到 onUserUnpublishStream{@link #IRTCRoomEventHandler#onUserUnpublishStream} 回调通知。 + */ + virtual int unpublishStream(StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 订阅房间内指定的媒体流,或更新对指定媒体流的订阅选项 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param user_id 指定订阅的远端发布音视频流的用户 ID。 + * @param type 媒体流类型,用于指定订阅音频/视频。参看 MediaStreamType{@link #MediaStreamType}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。
    + * + 你必须先通过 onUserPublishStream{@link #IRTCRoomEventHandler#onUserPublishStream} 回调获取当前房间里的远端摄像头音视频流信息,然后调用本方法按需订阅。
    + * + 调用该方法后,你会收到 onStreamSubscribed{@link #IRTCRoomEventHandler#onStreamSubscribed} 通知方法调用结果。
    + * + 成功订阅远端用户的媒体流后,订阅关系将持续到调用 unsubscribeStream{@link #IRTCRoom#unsubscribeStream} 取消订阅或本端用户退房。
    + * + 关于其他调用异常,你会收到 onStreamStateChanged{@link #IRTCRoomEventHandler#onStreamStateChanged} 回调通知,具体异常原因参看 ErrorCode{@link #ErrorCode}。 + */ + virtual int subscribeStream(const char *user_id, StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 取消订阅房间内指定的媒体流。
    + * 该方法对自动订阅和手动订阅模式均适用。 + * @param user_id 指定取消订阅的远端发布音视频流的用户 ID。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param type 媒体流类型,用于指定取消订阅音频/视频。参看 MediaStreamType{@link #MediaStreamType}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * + 调用该方法后,你会收到 onStreamSubscribed{@link #IRTCRoomEventHandler#onStreamSubscribed} 通知方法调用结果。
    + * + 关于其他调用异常,你会收到 onStreamStateChanged{@link #IRTCRoomEventHandler#onStreamStateChanged} 回调通知,具体失败原因参看 ErrorCode{@link #ErrorCode}。 + */ + virtual int unsubscribeStream(const char *user_id, StreamIndex stream_index, MediaStreamType type) = 0; + /** + * + * @type api + * @region 房间管理 + * @brief 通过设置 IRTCRoomEx{@link #IRTCRoomEx} 对象的事件句柄,监听此对象对应的回调事件。 + * @param room_event_handler 参见 IRTCRoomEventHandlerEx{@link #IRTCRoomEventHandlerEx} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + + /** + * + * @type api + * @region 视频管理 + * @brief 设置期望订阅的远端视频流的参数。 + * @param userId 期望配置订阅参数的远端视频流发布用户的 ID。 + * @param stream_index 流索引,参看 StreamIndex{@link #StreamIndex}。 + * @param remoteVideoConfig 期望配置的远端视频流参数,参看 ByteRTCRemoteVideoConfig{@link #ByteRTCRemoteVideoConfig}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
    + * + 该方法仅在发布端调用 setLocalSimulcastMode:{@link #IRTCEngine#setLocalSimulcastMode:} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
    + * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
    + * + 该方法需在进房后调用,若想进房前设置,你需调用 joinRoom:userInfo:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:roomConfig:},并对 `roomConfig` 中的 `remoteVideoConfig` 进行设置。
    + * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + */ + +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h new file mode 100644 index 0000000..ef6a8f8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room.h @@ -0,0 +1,175 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" +#include "rtc/bytertc_media_defines.h" +#include "bytertc_rts_room_event_handler.h" + +namespace bytertc { + +/** + * + * @type api + * @brief RTS 房间接口 + */ + +class IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoom() { + } + + /** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRTSRoom{@link #IRTCEngine#createRTSRoom} 所创建的 RTS 房间实例。 + */ + + virtual void destroy() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 离开 RTC 或 RTS 房间。
    + * 用户调用此方法离开房间,结束通话过程,释放所有通话相关的资源。
    + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调通知。
    + * + 可见的用户离开房间后,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。
    + * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调。
    + * + 调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 方法加入房间后,必须调用此方法离开房间,否则无法进入下一个房间。无论当前是否在房间内,都可以调用此方法。重复调用此方法没有负面影响。
    + */ + + virtual int leaveRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 设置 IRTSRoom{@link #IRTSRoom} 对象的事件句柄。 + * 通过设置事件句柄可以监听此 IRTSRoom{@link #IRTSRoom} 对象对应的房间的回调事件。 + * @param room_event_handler 回调处理器,详见 IRTSRoomEventHandler{@link #IRTSRoomEventHandler} + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int setRTSRoomEventHandler(IRTSRoomEventHandler* room_event_handler) = 0; + + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param message 用户发送的广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
    + * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。 + * + 同一房间内的其他用户会收到 onRoomMessageReceived{@link #IRTSRoomEventHandler#onRoomMessageReceived} 回调。 + */ + + virtual int64_t sendRoomMessage(const char* message) = 0; + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param size 发送的二进制消息长度 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。
    + * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
    + * + 同一房间内的其他用户会收到 onRoomBinaryMessageReceived{@link #IRTSRoomEventHandler#onRoomBinaryMessageReceived} 回调。 + */ + + virtual int64_t sendRoomBinaryMessage(int size, const uint8_t* message) = 0; + /** + * + * @type api + * @list 房间管理 + * @brief 创建/加入 RTS 房间。
    + * 同一房间内的用户间可以相互通话。
    + * 进房后重复调用无效,用户必须调用 `leaveRoom` 退出当前房间后,才能加入下一个房间。 + * @param token 用户登录必须携带的 Token,用于鉴权验证。
    + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,roomId 置为空字符串(即 roomId:""),Token 有效期及生成方式参看[使用 Token 完成鉴权](https: + * @param user_info 用户信息,参看 UserInfo{@link #UserInfo}。 + * @return + * + 0: 成功
    + * + -1:token / user_info 包含了无效的参数。
    + * + -2:已经在房间内。 + * @note
    + * + 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 OnError{@link #IRTCEngineEventHandler#OnError} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。
    + * + 本地用户调用此方法加入房间成功后,会收到回调通知。
    + * + 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,此时 SDK 将会自动重连。重连成功后,本地会收到 回调通知。如果加入房间的用户可见,远端用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + */ + + virtual int joinRTSRoom(const char* token, const UserInfo& user_info) = 0; + /** + * + * @type api + * @brief 更新 Token。
    + * 收到 onTokenWillExpire{@link #IRTCRoomEventHandler#onTokenWillExpire},onPublishPrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onPublishPrivilegeTokenWillExpire}, 或 onSubscribePrivilegeTokenWillExpire{@link #IRTCRoomEventHandler#onSubscribePrivilegeTokenWillExpire} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged},错误码是 `-1010`。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @note + * - 3.50(不含)以前的版本中,Token 中的发布和订阅权限为保留参数,无实际控制权限;3.50 及以后版本开放 Token 发布订阅控制权限,如需通过 Token 控制连麦权限,请联系技术支持团队开通白名单后支持。 + * - 请勿同时调用 updateToken{@link #IRTSRoom#updateToken} 和 joinRoom{@link #IRTCRoom#joinRoom} 方法更新 Token。若因 Token 过期或无效导致加入房间失败或已被移出房间,你应该在获取新的有效 Token 后调用 joinRoom{@link #IRTCRoom#joinRoom} 重新加入房间。 + * @list 房间管理 + */ + + virtual int updateToken(const char* token) = 0; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点文本消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 调用该函数后会收到一次 onUserMessageSendResult{@link #IRTSRoomEventHandler#onUserMessageSendResult} 回调,通知消息发送方发送成功或失败; + * - 若文本消息发送成功,则 uid 所指定的用户会收到 onUserMessageReceived{@link #IRTSRoomEventHandler#onUserMessageReceived} 回调。 + * @list 消息 + */ + + virtual int64_t sendUserMessage(const char* uid, const char* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param length 二进制字符串的长度。 + * @param message 二进制消息的内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 或 joinRTSRoom{@link #IRTSRoom#joinRTSRoom} 加入房间。 + * - 调用该函数后会收到一次 onUserMessageSendResult{@link #IRTSRoomEventHandler#onUserMessageSendResult} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则 uid 所指定的用户会收到 onUserBinaryMessageReceived{@link #IRTSRoomEventHandler#onUserBinaryMessageReceived} 回调。 + * @list 消息 + */ + + virtual int64_t sendUserBinaryMessage(const char* uid, int length, const uint8_t* message, MessageConfig config = kMessageConfigReliableOrdered) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h new file mode 100644 index 0000000..7e9c70d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/bytertc_rts_room_event_handler.h @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +#include "rtc/bytertc_defines.h" + +namespace bytertc { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoomEventHandler() {} + + /** + * + * @type callback + * @region 房间管理 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * + 0: 加入房间成功。
    + * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ErrorCode{@link #ErrorCode} 及 WarningCode{@link #WarningCode}。 + * @param extra_info 额外信息,如 `{"elapsed":1187,"join_type":0}`。 + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。 + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom{@link #IRTCRoom#joinRoom} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + */ + + virtual void onRoomStateChanged(const char* room_id, const char* uid, + int state, const char* extra_info) { + (void)room_id; + (void)state; + (void)extra_info; + } + + /** + * + * @type callback + * @brief 离开房间回调。
    + * 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并在释放所有与通话相关的音频资源后,通过此回调通知用户离开房间成功。
    + * @param stats 保留参数,目前为空。 + * @note
    + * + 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #IRTSRoom#destroy} 销毁房间实例方法销毁 RTS 引擎,则将无法收到此回调事件。
    + * + 离开房间后,如果 App 需要使用系统音频设备,则建议收到此回调后再初始化音频设备,否则可能由于 SDK 占用音频设备而导致初始化失败。
    + * @list 房间管理 + */ + + virtual void onLeaveRoom(const RtcRoomStats& stats) { + (void)stats; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 远端用户加入房间的回调。 + * @param user_info 用户信息,详见 UserInfo{@link #UserInfo} + * @list 房间管理 + */ + + virtual void onUserJoined(const UserInfo& user_info) { + (void)user_info; + } + + /** + * + * @type callback + * @brief 远端用户离开房间时,本地用户会收到此事件 + * @param uid 离开房间的远端用户 ID。
    + * @param reason 用户离开房间的原因。参看 UserOfflineReason{@link #UserOfflineReason}。 + * @list 房间管理 + */ + + virtual void onUserLeave(const char* uid, UserOfflineReason reason) { + (void)uid; + (void)reason; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内广播消息的回调。 + * @param uid 消息发送者 ID。 + * @param message 收到的消息内容。 + * @note 同一房间内其他用户调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 发送广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内二进制广播消息的回调。 + * @param uid 消息发送者 ID。 + * @param size
    + * 收到的二进制消息长度 + * @param message 收到的二进制消息内容。 + * @note 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 当调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 函数发送消息后,回调此条消息的发送结果(反馈)。 + * @param msgid 消息的 ID。 + * @param error 消息发送结果。详见 RoomMessageSendResult{@link #RoomMessageSendResult}。 + * @list 消息 + */ + + virtual void onRoomMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserMessageReceived{@link #IRTSRoomEventHandler#onUserMessageReceived-2} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发来的点对点文本消息时,会收到此回调。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 方法,才能收到该回调。 + * @list 消息 + */ + + virtual void onUserMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 发来的点对点二进制消息时,会收到此回调。
    + * > 该接口将于 3.64 被 onUserBinaryMessageReceived{@link #IRTSRoomEventHandler#onUserBinaryMessageReceived-2} 代替。 + * @param uid 消息发送者 ID。 + * @param size 收到的消息长度。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param msgid 消息的 ID。 + * @param error 文本或二进制消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult} + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 或 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 接口,才能收到此回调。 + * @list 消息 + */ + + virtual void onUserMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @brief 接收到房间内广播消息的回调。
    + * 同一房间内其他用户调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发送广播消息时会收到该回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者的 ID。 + * @param message 收到的消息内容。 + * @list 消息 + */ + + virtual void onRoomMessageReceived(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送广播二进制消息时,收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @param size 收到的二进制消息长度。 + * @note 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @list 消息 + */ + + virtual void onRoomBinaryMessageReceived(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage{@link #IRTSRoom#sendUserMessage} 发来的点对点文本消息时,会收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @note + * 你必须先调用 sendUserMessage{@link #IRTSRoom#sendUserMessage} 方法,才能收到该回调。 + * @list 消息 + */ + + virtual void onUserMessageReceived(int64_t msgid, const char* uid, const char* message) { + (void)msgid; + (void)uid; + (void)message; + } + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage{@link #IRTSRoom#sendUserBinaryMessage} 发来的点对点二进制消息时,会收到此回调。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @param size 消息长度。 + * @list 消息 + */ + + virtual void onUserBinaryMessageReceived(int64_t msgid, const char* uid, const uint8_t* message, int size) { + (void)msgid; + (void)uid; + (void)message; + (void)size; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts.h new file mode 100644 index 0000000..8b0d88a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts.h @@ -0,0 +1,356 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Interface + */ + +#pragma once + +#include +#include +#include +#include +#include "rtc/bytertc_rts_defines.h" +#include "byterts_event_handler.h" +#include "byterts_room.h" + +namespace byterts { + +class IRTSRoomEventHandler; +/** + * + * @type api + * @brief 引擎API + * IRtcEngine用IRTSEventHandler 注册接口类方法向应用程序发送回调通知 + */ + +class IRTS { +public: + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTS() { + } + + /** + * + * @type api + * @region 引擎管理 + * @brief 设置业务标识参数
    + * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param business_id
    + * 用户设置的自己的 businessId 值 + * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return
    + * + 0: 成功
    + * + < 0: 失败,具体原因参照 BusinessCheckCode{@link #BusinessCheckCode} 。
    + * + -6001: 用户已经在房间中。
    + * + -6002: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符,分别是:英文句号,短横线,下划线和 @ 。 + * @note
    + * + 需要在进房之前调用,进房之后调用该方法无效。 + */ + + virtual int setBusinessId(const char* business_id) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 登录 RTS 服务器。 + * 必须先登录,才能发送点对点消息和向应用服务器发送消息
    + * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #IRTS#logout}。
    + * @param [in]token 用户登录必须携带的 Token,用于鉴权验证。 + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid
    + * 用户 ID
    + * 用户 ID 在 appid 的维度下是唯一的。 + * @return
    + * + `0`:成功
    + * + `-1`:失败。无效参数
    + * + `-2`:无效调用。用户已经登录。成功登录后再次调用本接口将收到此返回值
    + * @note 本地用户调用此方法登录后,会收到 onLoginResult{@link #IRTSEventHandler#onLoginResult} 回调通知登录结果,远端用户不会收到通知。 + */ + + virtual int login(const char* token, const char* uid) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 调用本接口登出前,必须先调用 login{@link #IRTS#login} 登录。
    + * + 本地用户调用此方法登出后,会收到 onLogout{@link #IRTSEventHandler#onLogout} 回调通知结果,远端用户不会收到通知。 + */ + + virtual int logout() = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 更新用户用于登录的 Token
    + * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
    + * 调用 login{@link #IRTS#login} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 onLoginResult{@link #IRTSEventHandler#onLoginResult} 回调通知,错误码为 kLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
    + * 更新的动态密钥 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login{@link #IRTS#login} 方法。
    + * + Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + */ + + virtual int updateLoginToken(const char* token) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 设置应用服务器参数
    + * 客户端调用 sendServerMessage{@link #IRTS#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTS#sendServerBinaryMessage} 发送消息给业务服务器之前,必须设置有效签名和业务服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
    + * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
    + * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 用户必须调用 login{@link #IRTS#login} 登录后,才能调用本接口。
    + * + 调用本接口后,SDK 会使用 onServerParamsSetResult{@link #IRTSEventHandler#onServerParamsSetResult} 返回相应结果。 + */ + + virtual int setServerParams(const char* signature, const char* url) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 查询对端用户或本端用户的登录状态 + * @param peer_user_id
    + * 需要查询的用户 ID + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 必须调用 login{@link #IRTS#login} 登录后,才能调用本接口。
    + * + 调用本接口后,SDK 会使用 onGetPeerOnlineStatus{@link #IRTSEventHandler#onGetPeerOnlineStatus} 回调通知查询结果。
    + * + 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + */ + + virtual int getPeerOnlineStatus(const char* peer_user_id) = 0; + + /** + * + * @type api + * @region 实时消息通信 + * @brief 给房间外指定的用户发送文本消息(P2P) + * @param uid
    + * 消息接收用户的 ID + * @param message
    + * 发送的文本消息内容
    + * 消息不超过 62KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return
    + * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
    + * + -1:发送失败,RtcEngine 实例未创建
    + * + -2:发送失败,uid 为空 + * @note
    + * + 在发送点对点文本消息,必须先调用 login{@link #IRTS#login} 完成登录。
    + * + 用户调用本接口发送文本信息后,会收到一次 onMessageSendResult{@link #IRTSEventHandler#onMessageSendResult} 回调,得知消息是否成功发送。
    + * + 若文本消息发送成功,则 uid 所指定的用户会通过 onMessageReceived{@link #IRTSEventHandler#onMessageReceived} 回调收到该消息。 + */ + + virtual int64_t sendMessage(const char* uid, const char* message, bytertc::MessageConfig config) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 给房间外指定的用户发送二进制消息(P2P) + * @param uid
    + * 消息接收用户的 ID + * @param length
    + * 二进制字符串的长度 + * @param message
    + * 发送的二进制消息内容
    + * 消息不超过 64KB。 + * @param config 消息类型,参看 MessageConfig{@link #MessageConfig}。 + * @return
    + * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
    + * + -1:发送失败,RtcEngine 实例未创建
    + * + -2:发送失败,uid 为空 + * @note
    + * + 在发送点对点二进制消息前,必须先调用 login{@link #IRTS#login} 完成登录。
    + * + 用户调用本接口发送二进制消息后,会收到一次 onMessageSendResult{@link #IRTSEventHandler#onMessageSendResult} 回调,通知消息是否发送成功。
    + * + 若二进制消息发送成功,则 uid 所指定的用户会通过 onBinaryMessageReceived{@link #IRTSEventHandler#onBinaryMessageReceived} 回调收到该条消息。 + */ + + virtual int64_t sendBinaryMessage(const char* uid, int length, const uint8_t* message, bytertc::MessageConfig config) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 客户端给应用服务器发送文本消息(P2Server) + * @param message
    + * 发送的文本消息内容
    + * 消息不超过 62KB。 + * @return
    + * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
    + * + -1:发送失败,RtcEngine 实例未创建 + * @note
    + * + 在向业务服务器发送文本消息前,必须先调用 login{@link #IRTS#login} 完成登录,随后调用 setServerParams{@link #IRTS#setServerParams} 设置业务服务器。
    + * + 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTSEventHandler#onServerMessageSendResult} 回调,通知消息发送方是否发送成功。
    + * + 若文本消息发送成功,则之前调用 setServerParams{@link #IRTS#setServerParams} 设置的业务服务器会收到该条消息。 + */ + + virtual int64_t sendServerMessage(const char* message) = 0; + /** + * + * @type api + * @region 实时消息通信 + * @brief 客户端给应用服务器发送二进制消息(P2Server) + * @param length
    + * 二进制字符串的长度 + * @param message
    + * 发送的二进制消息内容
    + * 消息不超过 64KB。 + * @return
    + * + >0:发送成功,返回这次发送消息的编号,从 1 开始递增
    + * + -1:发送失败,RtcEngine 实例未创建 + * @note
    + * + 在向业务服务器发送二进制消息前,必须先调用 login{@link #IRTS#login} 完成登录,随后调用 setServerParams{@link #IRTS#setServerParams} 设置业务服务器。
    + * + 调用本接口后,会收到一次 onServerMessageSendResult{@link #IRTSEventHandler#onServerMessageSendResult} 回调,通知消息发送方发送成功或失败。
    + * + 若二进制消息发送成功,则之前调用 setServerParams{@link #IRTS#setServerParams} 设置的业务服务器会收到该条消息。 + */ + + virtual int64_t sendServerBinaryMessage(int length, const uint8_t* message) = 0; + + /** + * + * @type api + * @region 房间管理 + * @brief 创建房间实例。 + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom{@link #IRTCRoom#joinRoom} 才能真正地创建/加入房间。 + * 多次调用此方法以创建多个 IRTSRoom{@link #IRTSRoom} 实例。分别调用各 IRTSRoom 实例中的 joinRoom{@link #IRTCRoom#joinRoom} 方法,同时加入多个房间。 + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param room_id 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 IRTSRoom{@link #IRTSRoom} 房间实例。 + * @note
    + * + 如果需要加入的房间已存在,你仍需先调用本方法来获取 IRTSRoom 实例,再调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。 + * + 多房间模式下,创建多个房间实例需要使用不同的 room_id,否则会导致创建房间失败。 + */ + + virtual IRTSRoom* createRoom(const char* room_id) = 0; + + /** + * + * @type api + * @region 引擎管理 + * @brief 设置运行时的参数 + * @param json_string json 序列化之后的字符串 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + */ + + virtual int setRuntimeParameters(const char * json_string) = 0; + + /** + * + * @hidden(macOS, Windows, Linux) + * @type api + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param enhance 是否开启。默认不开启。 + * @return 方法调用结果:
    + * + 0: 成功。
    + * + -1:失败,内部错误。
    + */ + + virtual int setCellularEnhancement(bool enhance) = 0; + + /** + * + * @type api + * @region 代理 + * @brief 设置本地代理 + * @param configurations 本地代理配置参数。参看 LocalProxyConfiguration{@link #LocalProxyConfiguration}。
    + * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
    + * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @param configuration_num 本地代理配置参数的数量。 + * @note 要设置本地代理,调用 setLocalProxy{@link #IRTS#setLocalProxy}。 + */ + + virtual int setLocalProxy( + const bytertc::LocalProxyConfiguration* configurations, + int configuration_num) = 0; + + /** + * + * @type api + * @region 引擎管理 + * @brief 创建 RTCEngine 实例。
    + * 如果当前线程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前线程中已创建了引擎实例,再次调用此方法时,会创建另一个独立的引擎实例。 + * @param config 创建引擎参数配置,详见 EngineConfig{@link #EngineConfig} + * @param event_handler SDK 回调给应用层的 Callback 对象,详见 IRTSEventHandler{@link #IRTSEventHandler} 。 + * @return
    + * + IRTS:创建成功。返回一个可用的 IRTS{@link #IRTS} 实例
    + * + Null:创建失败。 + * @note
    + * + 如果你在同一个线程中创建了多个引擎实例,这些实例必须分别调用 destroyRTS{@link #destroyRTS} 销毁。 + * + 在 Linux 平台上创建引擎实例的数量取决于系统的硬件性能。 + */ + + static BYTERTC_STATIC_API IRTS* createRTS(const bytertc::EngineConfig& config, IRTSEventHandler* event_handler); + + /** + * + * @type api + * @region 引擎管理 + * @brief 销毁由 createRTS{@link #createRTS} 创建的 RTCEngine 实例,并释放所有相关资源。 + * @param engine createRTS{@link #createRTS} 时,返回的实例。 + * @note
    + * + 请确保和需要销毁的 IRTS{@link #IRTS} 实例相关的业务场景全部结束后,才调用此方法。
    + * + 该方法在调用之后,会销毁所有和此 IRTS{@link #IRTS} 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ + + static BYTERTC_STATIC_API void destroyRTS(); + + /** + * + * @type api + * @region 引擎管理 + * @brief 获取当前 SDK 版本信息。 + * @return 当前 SDK 版本信息。 + */ + + static BYTERTC_STATIC_API const char* getSDKVersion(); + + /** + * + * @type api + * @region 引擎管理 + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param log_config 本地日志参数,参看 LogConfig{@link #LogConfig}。 + * @return
    + * + 0:成功。 + * + –1:失败,本方法必须在创建引擎前调用。 + * + –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTS{@link #createRTS} 之前调用。 + */ + + static BYTERTC_STATIC_API int setLogConfig(const bytertc::LogConfig& log_config); +}; +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h new file mode 100644 index 0000000..f121d32 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_event_handler.h @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Event Handler Lite +*/ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" + +namespace byterts { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSEventHandler { +public: + + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRTSEventHandler() { + } + + /** + * + * @type callback + * @region 警告码 + * @brief 当内部发生警告事件时触发该回调 + * @param warn + * 警告标识码,详见:WarningCode{@link #WarningCode} + */ + + virtual void onWarning(int warn) { + (void)warn; + } + + /** + * + * @type callback + * @region 错误码 + * @brief 当 SDK 内部发生不可逆转错误时触发该回调。 + * @param err 错误标识码,参看 ErrorCode{@link #ErrorCode} + */ + + virtual void onError(int err) { + (void)err; + } + + /** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。 + * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param extension_name 插件名字 + * @param msg 失败说明 + */ + + void onExtensionAccessError(const char* extension_name, const char* msg) { + (void)extension_name; + (void)msg; + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 端监控日志回调。当产生一个端监控事件时触发该回调。 + * @param log_type
    + * 事件类型。目前类型固定为 "live_webrtc_monitor_log"。 + * @param log_content
    + * 端监控日志内容。 + */ + + virtual void onLogReport(const char* log_type, const char* log_content) { + (void)log_type; + (void)log_content; + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ConnectionState{@link #ConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + */ + + virtual void onConnectionStateChanged(bytertc::ConnectionState state) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief SDK 当前网络连接类型改变回调。当 SDK 的当前网络连接类型发生改变时回调该事件。 + * @param type
    + * SDK 当前的网络连接类型,详见:NetworkType{@link #NetworkType} 。 + */ + + virtual void onNetworkTypeChanged(bytertc::NetworkType type) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 周期性(2s)地发出回调,报告当前cpu与memory使用率 + * @param stats 返回包含当前系统状态信息的结构体,详见 SysStats{@link #SysStats} + */ + + virtual void onSysStats(const bytertc::SysStats& stats) { + } + + /** + * + * @type callback + * @region 引擎管理 + * @brief 创建房间失败回调。 + * @param room_id 房间 ID。 + * @param error_code 创建房间错误码,具体原因参看 ErrorCode{@link #ErrorCode}。 + */ + + virtual void onCreateRoomStateChanged(const char* room_id, int error_code) { + (void)room_id; + (void)error_code; + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief HTTP 代理连接状态改变时,收到该回调。 + * @param state 当前 HTTP 代理连接状态,详见 HttpProxyState{@link #HttpProxyState} + */ + + virtual void onHttpProxyState(int state) { + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief HTTPS 代理连接状态改变时,收到该回调。 + * @param state 当前 HTTPS 代理连接状态,详见 HttpProxyState{@link #HttpProxyState} + */ + + virtual void onHttpsProxyState(int state) { + } + + /** + * + * @type callback + * @deprecated 在3.52及之后废弃,将在3.57删除,使用 onLocalProxyStateChanged{@link #IRTSEventHandler#onLocalProxyStateChanged} 替换 + * @region 代理回调 + * @brief Socks5 代理状态改变时,收到该回调。 + * @param state SOCKS5 代理连接状态,详见 Socks5ProxyState{@link #Socks5ProxyState} + * @param cmd 代理连接的每一步操作命令 + * @param proxy_address 代理地址信息 + * @param local_address 当前连接使用的本地地址 + * @param remote_address 远端的连接地址 + */ + + virtual void onSocks5ProxyState(int state, + const char* cmd, + const char* proxy_address, + const char* local_address, + const char* remote_address) { + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 登录结果回调 + * @param uid
    + * 登录用户 ID + * @param error_code
    + * 登录结果
    + * 详见 LoginErrorCode{@link #LoginErrorCode}。 + * @param elapsed
    + * 从调用 login{@link #IRTS#login} 接口开始到返回结果所用时长
    + * 单位为 ms。 + * @note 调用 login{@link #IRTS#login} 后,会收到此回调。 + */ + + virtual void onLoginResult(const char* uid, int error_code, int elapsed) { + (void)uid; + (void)error_code; + (void)elapsed; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 登出结果回调 + * @param reason 用户登出的原因,参看 LogoutReason{@link #LogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #IRTS#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + */ + + virtual void onLogout(bytertc::LogoutReason reason) { + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 设置应用服务器参数的返回结果 + * @param error
    + * 设置结果
    + * + 返回 200,设置成功
    + * + 返回其他,设置失败 + * @note 调用 setServerParams{@link #IRTS#setServerParams} 后,会收到此回调。 + */ + + virtual void onServerParamsSetResult(int error) { + (void)error; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 查询对端或本端用户登录状态的返回结果 + * @param peer_user_id 需要查询的用户 ID。 + * @param status 查询的用户登录状态。详见 UserOnlineStatus{@link #UserOnlineStatus}。 + * @note 必须先调用 getPeerOnlineStatus{@link #IRTS#getPeerOnlineStatus},才能收到此回调。 + */ + + virtual void onGetPeerOnlineStatus(const char* peer_user_id, int status) { + (void)peer_user_id; + (void)status; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 收到房间外用户调用 sendMessage{@link #IRTS#sendMessage} 发来的文本消息时,会收到此回调 + * @param uid 消息发送者 ID。 + * @param message
    + * 收到的文本消息内容 + */ + + virtual void onMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 收到房间外用户调用 sendBinaryMessage{@link #IRTS#sendBinaryMessage} 发来的二进制消息时,会收到此回调。 + * @param uid 消息发送者 ID。 + * @param size 二进制消息长度。 + * @param message 收到的二进制消息内容。 + */ + + virtual void onBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + /** + * + * @type callback + * @region 实时消息通信 + * @brief 给房间外指定的用户发送消息的回调。 + * @param msgid 消息的 ID。
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @note 当调用 sendMessage{@link #IRTS#sendMessage} 或 sendBinaryMessage{@link #IRTS#sendBinaryMessage} 发送消息后,会收到此回调。 + */ + + virtual void onMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 给应用服务器发送消息的回调 + * @param msgid 本条消息的 ID
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果,详见 UserMessageSendResult{@link #UserMessageSendResult}。 + * @param message 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。 + * @note 当调用 sendServerMessage{@link #IRTS#sendServerMessage} 或 sendServerBinaryMessage{@link #IRTS#sendServerBinaryMessage} 发送消息后,会收到此回调。 + */ + + virtual void onServerMessageSendResult(int64_t msgid, int error, const bytertc::ServerACKMsg& msg) { + (void)msgid; + (void)error; + (void)msg; + } + + /** + * + * @type callback + * @brief 调用 StartCloudProxy{@link #IRtcEngineLite#StartCloudProxy} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + */ + + virtual void onCloudProxyConnected(int interval) { + (void)interval; + } + + /** + * + * @type callback + * @brief 调用 setLocalProxy{@link #IRTS#setLocalProxy} 设置本地代理,SDK对代理连接的状态 + * 回调此接口。 + * @param local_proxy_type 本地代理类型:sock5 或 httptunnel + * @param local_proxy_state 本地代理状态。参看 LocalProxyState{@link #LocalProxyState}。
    + * @param local_proxy_error 本地代理错误。参看 LocalProxyError{@link #LocalProxyError}。
    + */ + + virtual void onLocalProxyStateChanged(bytertc::LocalProxyType local_proxy_type, bytertc::LocalProxyState local_proxy_state, bytertc::LocalProxyError local_proxy_error) { + (void)local_proxy_type; + (void)local_proxy_state; + (void)local_proxy_error; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room.h new file mode 100644 index 0000000..5c8952e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Interface + */ + +#pragma once + +#include "rtc/bytertc_rts_defines.h" +#include "byterts_room_event_handler.h" + +namespace byterts { + +/** + * + * @type api + * @brief 房间接口 + */ + +class IRTSRoom { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoom() { + } + + /** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRoom{@link #IRTS#createRoom} 所创建的房间实例。 + */ + + virtual void destroy() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 创建/加入 RTS 房间:房间不存在时即创建房间;房间存在时,未加入房间的用户可加入这个房间。
    + * 同一房间内的用户间可以相互通话。
    + * 进房后重复调用无效,用户必须调用 `leaveRoom` 退出当前房间后,才能加入下一个房间。 + * @return
    + * + 0: 成功
    + * + -1:room_id / user_info.uid 包含了无效的参数。
    + * + -2:已经在房间内。 + * @note
    + * + 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 OnError{@link #IRTCAudioEventHandler#OnError} 回调通知,错误类型详见 ErrorCode{@link #ErrorCode} 中的 kErrorCodeDuplicateLogin。
    + * + 本地用户调用此方法加入房间成功后,会收到 回调通知。
    + * + 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,此时 SDK 将会自动重连。重连成功后,本地会收到 回调通知。如果加入房间的用户可见,远端用户会收到 onUserJoined{@link #IRTSRoomEventHandler#onUserJoined}。 + */ + + virtual int joinRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 离开 RTS 房间。
    + * 用户调用此方法离开房间,结束通话过程,释放所有通话相关的资源。
    + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note
    + * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调通知。
    + * + 可见的用户离开房间后,房间内其他用户会收到 onUserLeave{@link #IRTSRoomEventHandler#onUserLeave} 回调通知。
    + * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 onLeaveRoom{@link #IRTSRoomEventHandler#onLeaveRoom} 回调。
    + * + 调用 joinRoom{@link #IRTCRoom#joinRoom} 方法加入房间后,必须调用此方法离开房间,否则无法进入下一个房间。无论当前是否在房间内,都可以调用此方法。重复调用此方法没有负面影响。
    + */ + + virtual int leaveRoom() = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 设置 IRTSRoom{@link #IRTSRoom} 对象的事件句柄。 + * 通过设置事件句柄可以监听此 IRTSRoom{@link #IRTSRoom} 对象对应的房间的回调事件。 + * @param room_event_handler 回调处理器,详见 IRTSRoomEventHandler{@link #IRTSRoomEventHandler} + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + */ + + virtual int setRTSRoomEventHandler(IRTSRoomEventHandler* room_event_handler) = 0; + + /** + * + * @type api + * @list 房间管理 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param message 用户发送的广播消息,消息不超过 62KB。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
    + * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
    + * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
    + * + 同一房间内的其他用户会收到 onRoomMessageReceived{@link #IRTSRoomEventHandler#onRoomMessageReceived} 回调。 + */ + + virtual int64_t sendRoomMessage(const char* message) = 0; + /** + * + * @type api + * @list 消息 + * @brief 给房间内的所有其他用户发送广播消息。 + * @param size 发送的二进制消息长度 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * + 在发送房间内二进制消息前,必须先调用 joinRoom{@link #IRTCRoom#joinRoom} 加入房间。
    + * + 调用该函数后,会收到一次 onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} 回调。
    + * + 同一房间内的其他用户会收到 onRoomBinaryMessageReceived{@link #IRTSRoomEventHandler#onRoomBinaryMessageReceived} 回调。 + */ + + virtual int64_t sendRoomBinaryMessage(int size, const uint8_t* message) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h new file mode 100644 index 0000000..dcf9351 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/byterts_room_event_handler.h @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Event Handler Interface +*/ + +#pragma once + +namespace byterts { +/** + * + * @type callback + * @brief 实时信令事件回调接口 + */ + +class IRTSRoomEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRTSRoomEventHandler() {} + + /** + * + * @type callback + * @region 房间管理 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param room_id 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * + 0: 加入房间成功。
    + * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ErrorCode{@link #ErrorCode} 及 WarningCode{@link #WarningCode}。 + * @param extra_info 额外信息,如 `{"elapsed":1187,"join_type":0}`。 + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。 + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom{@link #IRTCRoom#joinRoom} 到加入房间成功所经历的时间间隔,单位为 ms。 + */ + + virtual void onRoomStateChanged(const char* room_id, const char* uid, + int state, const char* extra_info) { + (void)room_id; + (void)state; + (void)extra_info; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 离开房间回调。
    + * 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并在释放所有与通话相关的音频资源后,通过此回调通知用户离开房间成功。
    + * @note
    + * + 用户调用 leaveRoom{@link #IRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #IRTSRoom#destroy} 销毁房间实例方法销毁 RTS 引擎,则将无法收到此回调事件。
    + * + 离开房间后,如果 App 需要使用系统音频设备,则建议收到此回调后再初始化音频设备,否则可能由于 SDK 占用音频设备而导致初始化失败。
    + */ + + virtual void onLeaveRoom() { + } + + /** + * + * @deprecated since 3.41 and will be deleted in 3.51, user instead. + * @type callback + * @region 房间管理 + * @brief SDK 发生警告回调。
    + * SDK内部遇到可恢复错误时,在尝试自动恢复的同时,会通过此回调通知用户。此回调事件仅用作通知。
    + * @param warn 警告码,参看 WarningCode{@link #WarningCode}。
    + */ + + virtual void onRoomWarning(int warn) { + (void)warn; + } + + /** + * + * @deprecated since 3.41 and will be deleted in 3.51. + * @type callback + * @region 房间管理 + * @brief SDK 发生错误回调。
    + * SDK 内部遇到不可恢复错误时,会通过此回调通知 App,需要 App 根据错误码进行操作或提示用户。
    + * @param err 错误码,参看 ErrorCode{@link #ErrorCode}。
    + */ + + virtual void onRoomError(int err) { + (void)err; + } + + /** + * + * @type callback + * @region 房间管理 + * @brief 远端用户加入房间的回调。 + * @param uid 加入房间的用户 ID
    + * @param elapsed 此参数无意义 + */ + + virtual void onUserJoined(const char* uid, int elapsed) { + (void)uid; + (void)elapsed; + } + + /** + * + * @type callback + * @brief 远端用户离开房间时,本地用户会收到此事件 + * @param uid 离开房间的远端用户 ID。 + * @param reason 用户离开房间的原因。参看 UserOfflineReason{@link #UserOfflineReason}。 + */ + + virtual void onUserLeave(const char* uid, bytertc::UserOfflineReason reason) { + (void)uid; + (void)reason; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内广播消息的回调。
    + * 当房间内的其他用户调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 时,你会收到此回调。 + * @param uid 发送该消息的用户的 ID。 + * @param message 收到的消息内容。 + */ + + virtual void onRoomMessageReceived(const char* uid, const char* message) { + (void)uid; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 接收到房间内二进制广播消息的回调。
    + * 同一房间内其他用户调用 sendRoomBinaryMessage{@link #IRTSRoom#sendRoomBinaryMessage} 发送二进制广播消息时会收到该回调。 + * @param uid 发送该消息的用户的 ID。 + * @param size 收到的二进制消息长度。 + * @param message 收到的二进制消息内容。 + */ + + virtual void onRoomBinaryMessageReceived(const char* uid, int size, const uint8_t* message) { + (void)uid; + (void)size; + (void)message; + } + + /** + * + * @type callback + * @region 实时消息通信 + * @brief 当调用 sendRoomMessage{@link #IRTSRoom#sendRoomMessage} 函数发送消息后,回调此条消息的发送结果(反馈)。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果。详见 RoomMessageSendResult{@link #RoomMessageSendResult}。 + */ + + virtual void onRoomMessageSendResult(int64_t msgid, int error) { + (void)msgid; + (void)error; + } +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h new file mode 100644 index 0000000..0c81547 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_advance.h @@ -0,0 +1,273 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Advance API +*/ + +#pragma once + +#include "../bytertc_engine.h" + +#include +#ifdef __ANDROID__ +#include "jni.h" +#endif + + +#ifdef __GNUC__ +# define attribute_deprecated __attribute__((deprecated)) +#elif defined(_MSC_VER) +# define attribute_deprecated __declspec(deprecated) +#else +# define attribute_deprecated +#endif + +namespace bytertc { +/** + * + * @hidden for internal use only + * @brief 设置应用的状态 + * @param engine
    + * 要通知的引擎 + * @param app_state 应用状态字符串 + */ + +BYTERTC_API void setAppState(void* engine, const char* app_state); +/** + * + * @hidden(iOS,macOS,Windows,Linux) for internal use only + * @type api + * @brief 用于设置 Android 的 ApplicationContext 给 Engine 使用,
    + * 如果 Android 使用纯 C++接口,则该方法必须在引擎创建前设置 + * @param j_egl_context
    + * 传入 Java 的 android.content.Context 类型的 EGLContext + * @list 引擎管理 + */ + +BYTERTC_API void setApplicationContext(void* j_application_context); +BYTERTC_API int setLogConfig(const LogConfig& log_config); + +/** + * + * @region 视频管理 + * @type keytype + * @brief 硬件加速设备类型 + */ + +enum HWDeviceType { + /** + * + * @brief 未知的设备类型 + */ + + kHWDeviceTypeNone, + + /** + * + * @brief direct3d 11 视频加速设备 + */ + + kHWDeviceTypeD3D11, + + /** + * + * @brief cuda 硬件加速设备 + * @note cuda 是 nvidia 平台下硬件加速设备 + */ + + kHWDeviceTypeCuda, + + /** + * + * @brief intel 平台下 qsv 加速设备 + */ + + kHWDeviceTypeQsv, + + /** + * + * @brief windows 平台 dx 硬件加速设备 + */ + + kHWDeviceTypeDxva2, + + /** + * + * @brief Android 平台下硬件加速设备 mediacodec + */ + + kHWDeviceTypeMediaCodec, + + /** + * + * @brief IOS、MACOS 平台下硬件加速设备 VideoToolbox + */ + + kHWDeviceTypeVideoToolbox, + /** + * + * @brief android、linux 平台下硬件加速设备 egl context + */ + + kHWDeviceTypeEglContext, + + /** + * + * @brief linux、windows 平台下硬件加速设备 va context + */ + + kHWDeviceTypeVaapi, +}; + +/** + * + * @hidden(macOS, Linux, iOS, Android) + * @type keytype + * @brief 硬编码设备 context + */ + +enum HWDeviceContextKey { + /** + * + * @brief cuda context + */ + + kHWDeviceContextKeyCudaContext, + /** + * + * @brief derict3D11 设备 + */ + + kHWDeviceContextKeyD3D11Device, + /** + * + * @brief derict3D11 设备 context + */ + + kHWDeviceContextKeyD3D11DeviceContext, + /** + * + * @brief egl 设备 context + */ + + kHWDeviceContextKeyEglContext, + /** + * + * @brief vadisplay 设备 context + */ + + kHWDeviceContextKeyVADisplay, +}; + +/** + * + * @hidden(macOS, Linux, iOS, Android) + * @type keytype + * @brief 硬件加速设备 context + */ + +class IHWDeviceContext { +public: + virtual ~IHWDeviceContext() = default; + /** + * + * @brief 获取硬件加速设备 context 类型 + * @return 硬件加速设备类型,详见 HWDeviceType{@link #HWDeviceType} + */ + + virtual HWDeviceType deviceType() const = 0; + /** + * + * @brief 设置属性 + * @param key 硬件加速设备 context 类型,详见 HWDeviceContextKey{@link #HWDeviceContextKey} + * @param value 指向硬件加速设备 context 地址的指针 + */ + + virtual void setProperty(HWDeviceContextKey key, void* value) = 0; + /** + * + * @brief 获取属性 + * @param key 硬件加速设备 context 类型,详见 HWDeviceContextKey{@link #HWDeviceContextKey} + * @return 返回硬件加速设备 context 地址的指针 + */ + + virtual void* getProperty(HWDeviceContextKey key) = 0; + /** + * + * @brief 内部 context 是否由该实例拥有 + * @return + * - true: 硬件设备 context 被实例对象拥有 + * - false: 硬件设备上 context 文不被实例对象拥有 + */ + + virtual bool ownContext() const = 0; + /** + * + * @brief 设置 context 是否被实例对象拥有 + * @param own_context
    + * - true: context 被实例对象拥有 + * - false: context 不被实例对象拥有 + */ + + virtual void setOwnContext(bool own_context) = 0; + /** + * + * @brief 转移硬件设备 context, + * @return 指向硬件设备 context 的指针 + */ + + virtual IHWDeviceContext* moveContext() = 0; + /** + * + * @brief 释放实例对象 + */ + + virtual void release() = 0; +}; + +/** + * + * @hidden for internal use only + * @brief 创建一个具有指定设备类型的硬件设备上下文 + */ + + +BYTERTC_API IHWDeviceContext* createHwDeviceContext(HWDeviceType device_type); + +/** + * + * @hidden for internal use only + * @brief 设置视频源的设备上下文信息 + * @param engine
    + * 要设置的引擎,详见 IRTCEngine{@link #IRTCEngine} + * @param hw_context
    + * 设置视频帧,详见:IHWDeviceContext{@link #IHWDeviceContext} + * @note 用于硬件编码传入 GPU 内存时使用 + */ + +BYTERTC_API void setVideoSourceHWDeviceContext(void* engine, IHWDeviceContext* hw_context); + +/** + * + * @hidden for internal use only + * @type callback + * @brief 本地音频帧监测器 + * @list 自定义流处理 + */ + +class ILocalEncodedAudioFrameObserver { +public: + virtual ~ILocalEncodedAudioFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 RegisterLocalEncodedAudioFrameObserver 后,SDK 收到本地音频帧信息时,回调该事件 + * @param audio_source 本地音频源类型,详见 IAudioSource{@link #IAudioSource} + * @param audio_stream 本地音频帧信息,参看 IEncodedAudioFrame + * @list 自定义流处理 + */ + + virtual void onLocalEncodedAudioFrame(IAudioSource* audio_source, const EncodedAudioFrameData& audio_stream) = 0; +}; +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h new file mode 100644 index 0000000..1a35cd8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_defines.h @@ -0,0 +1,2275 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Defines + */ + +#pragma once + +#include "bytertc_media_defines.h" +#include +#include + +#define SPECTRUM_SIZE 257 + +namespace bytertc { +/** + * + * @type keytype + * @brief 音频采样率,单位为 Hz。 + */ + +enum AudioSampleRate { + /** + * + * @brief 默认设置。48000Hz。 + */ + + kAudioSampleRateAuto = -1, + /** + * + * @brief 8000Hz + */ + + kAudioSampleRate8000 = 8000, + /** + * + * @brief 11025Hz + */ + + kAudioSampleRate11025 = 11025, + /** + * + * @brief 16000Hz + */ + + kAudioSampleRate16000 = 16000, + /** + * + * @brief 22050Hz + */ + + kAudioSampleRate22050 = 22050, + /** + * + * @brief 24000Hz + */ + + kAudioSampleRate24000 = 24000, + /** + * + * @brief 32000Hz + */ + + kAudioSampleRate32000 = 32000, + /** + * + * @brief 44100Hz + */ + + kAudioSampleRate44100 = 44100, + /** + * + * @brief 48000Hz + */ + + kAudioSampleRate48000 = 48000 +}; +/** + * + * @type keytype + * @brief 音频声道。 + */ + +enum AudioChannel { + /** + * + * @brief 默认设置。 + */ + + kAudioChannelAuto = -1, + /** + * + * @brief 单声道 + */ + + kAudioChannelMono = 1, + /** + * + * @brief 双声道 + */ + + kAudioChannelStereo = 2 +}; + +/** + * + * @type keytype + * @brief 音频格式 + */ + +struct AudioFormat { + /** + * + * @brief 音频采样率,详见 AudioSampleRate{@link #AudioSampleRate} + */ + + AudioSampleRate sample_rate = kAudioSampleRateAuto; + /** + * + * @brief 音频声道,详见 AudioChannel{@link #AudioChannel} + */ + + AudioChannel channel = kAudioChannelAuto; + /** + * + * @brief 单次回调的音频帧中包含的采样点数。默认值为 `0`,此时,采样点数取最小值。
    + * 最小值为回调间隔是 0.01s 时的值,即 `sampleRate * channel * 0.01s`。
    + * 最大值是 `2048`。超出取值范围时,采样点数取默认值。
    + * 该参数仅在设置读写回调时生效,调用 enableAudioFrameCallback{@link #IRTCEngine#enableAudioFrameCallback} 开启只读模式回调时设置该参数不生效。 + */ + + int samples_per_call = 0; +}; +/** + * + * @type keytype + * @brief 返回给音频处理器的音频类型。 + */ + +enum AudioProcessorMethod{ + /** + * + * @brief 本地采集的音频。 + */ + + kAudioProcessorMethodRecord = 0, + /** + * + * @brief 远端音频流的混音音频。 + */ + + kAudioProcessorMethodPlayback = 1, + /** + * + * @brief 各个远端音频流。 + */ + + kAudioProcessorMethodRemoteUser = 2, + /** + * + * @hidden(Windows,Linux,macOS) + * @brief 软件耳返音频。 + */ + + kAudioProcessorMethodEarMonitor = 3, + /** + * + * @hidden(Linux) + * @brief 屏幕共享音频。 + */ + + kAudioProcessorMethodScreen = 4, +}; +/** + * + * @type keytype + * @brief 音频设备类型 + */ + +enum RTCAudioDeviceType { + /** + * + * @brief 未知设备类型 + */ + + kRTCAudioDeviceTypeUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + kRTCAudioDeviceTypeRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + kRTCAudioDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流音频设备 + */ + + kRTCAudioDeviceTypeScreenCaptureDevice = 2, +}; + +/** + * + * @type keytype + * @brief 音频播放设备 + */ + +enum AudioRoute { + /** + * + * @brief 默认设备 + */ + + kAudioRouteDefault = -1, + /** + * + * @brief 有线耳机 + */ + + kAudioRouteHeadset = 1, + /** + * + * @brief 听筒 + */ + + kAudioRouteEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + kAudioRouteSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + kAudioRouteHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + kAudioRouteHeadsetUSB = 5 +}; + +/** + * + * @type keytype + * @brief 音频播放设备 + */ + +enum AudioPlaybackDevice { + /** + * + * @brief 有线耳机 + */ + + kAudioPlaybackDeviceHeadset = 1, + /** + * + * @brief 听筒 + */ + + kAudioPlaybackDeviceEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + kAudioPlaybackDeviceSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + kAudioPlaybackDeviceHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + kAudioPlaybackDeviceHeadsetUSB = 5 +}; + +/** + * + * @type keytype + * @brief 音频场景类型。
    + * 选择音频场景后,SDK 会根据操作系统和开麦、闭麦状态,应用通话音量或媒体音量。参看[通话音量与媒体音量](https: + * 你可以调用 `setAudioScenario` 设置音频场景。
    + * 如果以下音频场景类型无法满足你的业务需要,请联系技术支持人员。 + */ + +enum AudioScenarioType { + /** + * + * @brief 默认场景,适用大部分场景。 + */ + + kAudioScenarioTypeDefault = 0, + /** + * + * @brief 聊天室场景。通话清晰度较高,适用于会议,聊天室场景。 + */ + + kAudioScenarioTypeChatRoom = 1, + /** + * + * @brief 高音质场景。适用于音乐为主的场景,如 KTV,音乐聊天室等。 + */ + + kAudioScenarioTypeGameStreaming = 2, + /** + * + * @brief 合唱场景。延迟较低。 + */ + + kAudioScenarioTypeChorus = 3, + /** + * + * @brief 教育场景。适用于以人声教学内容为主的高音质场景。 + */ + + kAudioScenarioTypeEducation = 4, + /** + * + * @brief AI 对话场景。适用于真人与 AI 智能体互动的场景。使用此场景时,还需在通过 `createRTCEngine` 创建引擎时,通过 parameters 字段传入私有参数 `"rtc.fg_config":"aigc_media_360=true"`。 + */ + + kAudioScenarioTypeAiClient = 5, + +}; + +/** + * + * @type keytype + * @brief 变声特效类型。如需更多类型,联系技术支持。 + */ + +enum VoiceChangerType { + /** + * + * @brief 原声,不含特效 + */ + + kVoiceChangerTypeOriginal = 0, + /** + * + * @brief 巨人 + */ + + kVoiceChangerTypeGiant = 1, + /** + * + * @brief 花栗鼠 + */ + + kVoiceChangerTypeChipmunk = 2, + /** + * + * @brief 小黄人 + */ + + kVoiceChangerTypeMinionst = 3, + /** + * + * @brief 颤音 + */ + + kVoiceChangerTypeVibrato = 4, + /** + * + * @brief 机器人 + */ + + kVoiceChangerTypeRobot = 5, +}; + +/** + * + * @type keytype + * @brief 混响特效类型 + */ + +enum VoiceReverbType { + /** + * + * @brief 原声,不含特效 + */ + + kVoiceReverbTypeOriginal = 0, + /** + * + * @brief 回声 + */ + + kVoiceReverbTypeEcho = 1, + /** + * + * @brief 演唱会 + */ + + kVoiceReverbTypeConcert = 2, + /** + * + * @brief 空灵 + */ + + kVoiceReverbTypeEthereal = 3, + /** + * + * @brief KTV + */ + + kVoiceReverbTypeKTV = 4, + /** + * + * @brief 录音棚 + */ + + kVoiceReverbTypeStudio = 5, + /** + * + * @brief 虚拟立体声 + */ + + kVoiceReverbTypeVirtualStereo = 6, + /** + * + * @brief 空旷 + */ + + kVoiceReverbTypeSpacious = 7, + /** + * + * @brief 3D 人声 + */ + + kVoiceReverbType3D = 8, + /** + * + * @hidden for internal use only + * @brief 流行 + */ + + kVoiceReverbTypePop = 9, + /** + * + * @hidden for internal use only + * @brief 蹦迪 + */ + + kVoiceReverbTypeDisco = 10, + /** + * + * @hidden for internal use only + * @brief 老唱片 + */ + + kVoiceReverbTypeOldRecord = 11, + /** + * + * @hidden for internal use only + * @brief 和声 + */ + + kVoiceReverbTypeHarmony = 12, + /** + * + * @hidden for internal use only + * @brief 摇滚 + */ + + kVoiceReverbTypeRock = 13, + /** + * + * @hidden for internal use only + * @brief 蓝调 + */ + + kVoiceReverbTypeBlues = 14, + /** + * + * @hidden for internal use only + * @brief 爵士 + */ + + kVoiceReverbTypeJazz = 15, + /** + * + * @hidden for internal use only + * @brief 电子 + */ + + kVoiceReverbTypeElectronic = 16, + /** + * + * @hidden for internal use only + * @brief 黑胶 + */ + + kVoiceReverbTypeVinyl = 17, + /** + * + * @hidden for internal use only + * @brief 密室 + */ + + kVoiceReverbTypeChamber = 18, + /** + * + * @hidden for internal use only + * @brief 增强原声 + */ + + kVoiceReverbTypeEnhanceOriginal = 19, + /** + * + * @hidden for internal use only + * @brief 浴室 + */ + + kVoiceReverbTypeBathroom = 20, + /** + * + * @hidden for internal use only + * @brief 自然 + */ + + kVoiceReverbTypeNatural = 21, + + /** + * + * @hidden for internal use only + * @brief 楼道 + */ + + kVoiceReverbTypeHallway = 22, +}; +/** + * + * @type keytype + * @brief 音频均衡效果。 + */ + +enum VoiceEqualizationBandFrequency { + /** + * + * @brief 中心频率为 31Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency31 = 0, + /** + * + * @brief 中心频率为 62Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency62 = 1, + /** + * + * @brief 中心频率为 125Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency125 = 2, + /** + * + * @brief 中心频率为 250Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency250 = 3, + /** + * + * @brief 中心频率为 500Hz 的频带。 + */ + + kVoiceEqualizationBandFrequency500 = 4, + /** + * + * @brief 中心频率为 1kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency1k = 5, + /** + * + * @brief 中心频率为 2kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency2k = 6, + /** + * + * @brief 中心频率为 4kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency4k = 7, + /** + * + * @brief 中心频率为 8kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency8k = 8, + /** + * + * @brief 中心频率为 16kHz 的频带。 + */ + + kVoiceEqualizationBandFrequency16k = 9, +}; +/** + * + * @type keytype + * @brief 语音均衡效果。 + */ + +struct VoiceEqualizationConfig { + /** + * + * @brief 频带。参看 VoiceEqualizationBandFrequency{@link #VoiceEqualizationBandFrequency}。 + */ + + VoiceEqualizationBandFrequency frequency; + /** + * + * @brief 频带增益(dB)。取值范围是 `[-15, 15]`。 + */ + + int gain; +}; +/** + * + * @type keytype + * @brief 音频混响效果。 + */ + +struct VoiceReverbConfig { + /** + * + * @brief 混响模拟的房间大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。房间越大,混响越强。 + */ + + float room_size = 50.0f; + /** + * + * @brief 混响的拖尾长度,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + + float decay_time = 50.0f; + /** + * + * @brief 混响的衰减阻尼大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + + float damping = 50.0f; + /** + * + * @brief 早期反射信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + + float wet_gain = 0.0f; + /** + * + * @brief 原始信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + + float dry_gain = 0.0f; + /** + * + * @brief 早期反射信号的延迟。取值范围 `[0.0, 200.0]`,单位为 ms。默认值为 `0.0f`。 + */ + + float pre_delay = 0.0f; +}; + +/** + * + * @type keytype + * @brief 音频流来源的用户 ID 及对应的音量。 + */ + +struct AudioVolumeInfo { + /** + * + * @brief 线性音量,取值范围是:[0, 255],与原始音量呈线性关系,数值越大,音量越大。
    + * 无声为 25 以下(绝对无声为 0,25 以下可视为无声),低音量为 25~76,中音量为 76~204,高音量为 204 以上。 + */ + + int linear_volume; + /** + * + * @brief 非线性音量,取值范围是:[–127, 0],单位 dB。此音量范围是将原始音量进行对数转化,在中低音量时分辨更为灵敏,适用于 Active Speaker(房间内最活跃用户)的识别。
    + * 高音量为 0~–20 dB,中音量为 –20~–40dB,低音量为 –40~–60dB,若低于 –60 dB,则为无声。 + */ + + int nonlinear_volume; + /** + * + * @brief 音频流来源的用户 ID + */ + + const char* uid; +}; + +/** + * + * @type keytype + * @brief 音频混音文件播放状态。 + */ + +enum AudioMixingState { + /** + * + * @brief 混音已加载 + */ + + kAudioMixingStatePreloaded = 0, + /** + * + * @brief 混音正在播放 + */ + + kAudioMixingStatePlaying, + /** + * + * @brief 混音暂停 + */ + + kAudioMixingStatePaused, + /** + * + * @brief 混音停止 + */ + + kAudioMixingStateStopped, + /** + * + * @brief 混音播放失败 + */ + + kAudioMixingStateFailed, + /** + * + * @brief 混音播放结束 + */ + + kAudioMixingStateFinished, + /** + * + * @brief 准备 PCM 混音 + */ + + kAudioMixingStatePCMEnabled, + /** + * + * @brief PCM 混音播放结束 + */ + + kAudioMixingStatePCMDisabled, +}; +/** + * + * @type keytype + * @brief 混音错误码。 + */ + +enum AudioMixingError { + /** + * + * @brief 正常 + */ + + kAudioMixingErrorOk = 0, + /** + * + * @brief 预加载失败。找不到混音文件或者文件长度超出 20s + */ + + kAudioMixingErrorPreloadFailed, + /** + * + * @brief 混音开启失败。找不到混音文件或者混音文件打开失败 + */ + + kAudioMixingErrorStartFailed, + /** + * + * @brief 混音 ID 异常 + */ + + kAudioMixingErrorIdNotFound, + /** + * + * @brief 设置混音文件的播放位置出错 + */ + + kAudioMixingErrorSetPositionFailed, + /** + * + * @brief 音量参数不合法,仅支持设置的音量值为[0, 400] + */ + + kAudioMixingErrorInValidVolume, + /** + * + * @brief 播放的文件与预加载的文件不一致。请先使用 unloadAudioMixing 卸载此前的文件。 + */ + + kAudioMixingErrorLoadConflict, + /** + * + * @brief 不支持此混音类型。 + */ + + kAudioMixingErrorIdTypeNotMatch, + /** + * + * @brief 设置混音文件的音调不合法 + */ + + kAudioMixingErrorInValidPitch, + /** + * + * @brief 设置混音文件的音轨不合法 + */ + + kAudioMixingErrorInValidAudioTrack, + /** + * + * @brief 混音文件正在启动中 + */ + + kAudioMixingErrorIsStarting, + /** + * + * @brief 设置混音文件的播放速度不合法 + */ + + kAudioMixingErrorInValidPlaybackSpeed, + /** + * + * @deprecated since 3.25 and will be deleted in 3.51 + * @brief 混音错误码,失败,已废弃 + */ + + kAudioMixingErrorCanNotOpen = 701, +}; +/** + * + * @type keytype + * @brief 播放状态。 + */ + +enum PlayerState { + /** + * + * @brief 播放未启动 + */ + + kPlayerStateIdle = 0, + /** + * + * @brief 已加载 + */ + + kPlayerStatePreloaded, + /** + * + * @brief 已打开 + */ + + kPlayerStateOpened, + /** + * + * @brief 正在播放 + */ + + kPlayerStatePlaying, + /** + * + * @brief 播放已暂停 + */ + + kPlayerStatePaused, + /** + * + * @brief 播放已被主动停止 + */ + + kPlayerStateStopped, + /** + * + * @brief 播放失败 + */ + + kPlayerStateFailed, + /** + * + * @brief 播放自然结束 + */ + + kPlayerStateFinished, + /** + * + * @brief 循环播放结束 + */ + + kPlayerStateLoopFinished, +}; + +/** + * + * @type keytype + * @brief 播放事件 + */ + +enum PlayerEvent { + /** + * + * @brief 开始切换音轨
    + * 开始调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 时,返回此状态。 + */ + + kPlayerEventSelectAudioTrackBegin, + /** + * + * @brief 切换音轨成功
    + * 调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 成功后,播放器切换到指定音轨播放,返回此状态。 + */ + + kPlayerEventSelectAudioTrackCompleted, + /** + * + * @brief 切换音轨失败
    + * 调用 `selectAudioTrack`{@link #IMediaPlayer#selectAudioTrack} 失败后,播放器无法切换到指定音轨,继续之前的音轨播放过程,返回此状态。 + */ + + kPlayerEventSelectAudioTrackFailed, + /** + * + * @brief 试图移动播放位置
    + * 开始调用 `setPosition`{@link #IMediaPlayer#setPosition} 时,返回此状态。 + */ + + kPlayerEventSeekBegin, + /** + * + * @brief 移动播放位置成功
    + * 调用 `setPosition`{@link #IMediaPlayer#setPosition} 成功后,返回此状态。 + */ + + kPlayerEventSeekCompleted, + /** + * + * @brief 移动播放位置失败
    + * 调用 `setPosition`{@link #IMediaPlayer#setPosition} 失败时,返回此状态。 + */ + + kPlayerEventSeekFailed, +}; + +/** + * + * @type keytype + * @brief 播放错误码。 + */ + +enum PlayerError { + /** + * + * @brief 正常 + */ + + kPlayerErrorOK = 0, + /** + * + * @brief 不支持此类型 + */ + + kPlayerErrorFormatNotSupport, + /** + * + * @brief 无效的播放路径 + */ + + kPlayerErrorInvalidPath, + /** + * + * @brief 未满足前序接口调用的要求。请查看具体接口文档。 + */ + + kPlayerErrorInvalidState, + /** + * + * @brief 设置播放位置出错。 + */ + + kPlayerErrorInvalidPosition, + /** + * + * @brief 音量参数不合法。 + */ + + kPlayerErrorInvalidVolume, + /** + * + * @brief 音调参数设置不合法。 + */ + + kPlayerErrorInvalidPitch, + /** + * + * @brief 音轨参数设置不合法。 + */ + + kPlayerErrorInvalidAudioTrackIndex, + /** + * + * @brief 播放速度参数设置不合法 + */ + + kPlayerErrorInvalidPlaybackSpeed, + /** + * + * @brief 音效 ID 异常。还未加载或播放文件,就调用其他 API。 + */ + + kPlayerErrorInvalidEffectId, + /** + * + * @brief 资源正在播放中 + */ + + kPlayerErrorCurrentlyPlaying, +}; + +/** + * + * @type keytype + * @brief 是否开启耳返功能。 + */ + +enum EarMonitorMode { + /** + * + * @brief 关闭 + */ + + kEarMonitorModeOff = 0, + /** + * + * @brief 开启 + */ + + kEarMonitorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 耳返音频是否经过本地音频处理。 + */ + +enum EarMonitorAudioFilter { + /** + * + * @brief 无音频处理。 + */ + + kEarMonitorAudioFilterNone = 0x1, + /** + * + * @brief 经本地音频处理后的音频,包括 3A、变声、混响等 SDK 提供处理能力以及自定义音频处理。 + */ + + kEarMonitorAudioFilterReuseAudioProcessing = 0x8000 +}; + +/** + * + * @hidden currently not available + * @type keytype + * @region 音频管理 + * @brief 音频编码类型 + */ + +enum AudioCodecType { + /** + * + * @brief 未知编码类型 + */ + + kAudioCodecTypeNone = 0, + /** + * + * @brief Opus 编码类型 + */ + + kAudioCodecTypeOpus, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAAC, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACLC = 2, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACHEv1, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACHEv2, + /** + * + * @hidden currently not available + */ + + kAudioCodecTypeAACLCadts, +}; +/** + * + * @type keytype + * @brief 音频输入格式 + */ + +enum class AudioFormatType { + /** + * + * @brief PCM_S16 + */ + + kRawPCMs16 = 0, + /** + * + * @brief PCM_S32 + */ + + kRawPCMs32 = 1, +}; + +/** + * + * @type keytype + * @brief 蓝牙模式, 仅能在媒体模式下被设置 + */ + +enum BluetoothMode { + /** + * + * @brief 自动选择模式 + */ + + kBluetoothModeAuto = 0, + /** + * + * @brief 使用 A2DP 模式 + */ + + kBluetoothModeA2DP, + /** + * + * @brief HFP 模式 + */ + + kBluetoothModeHFP +}; + +/** + * + * @type keytype + * @brief 音频输入源类型 + */ + +enum AudioSourceType { + /** + * + * @brief 自定义采集音频源 + */ + + kAudioSourceTypeExternal = 0, + /** + * + * @brief RTC SDK 内部采集音频源 + */ + + kAudioSourceTypeInternal, +}; + +/** + * + * @type keytype + * @brief 音频输出类型 + */ + +enum AudioRenderType { + /** + * + * @brief 自定义渲染 + */ + + kAudioRenderTypeExternal = 0, + /** + * + * @brief RTC SDK 内部渲染 + */ + + kAudioRenderTypeInternal, +}; + +/** + * + * @type keytype + * @brief 混音播放类型 + */ + +enum AudioMixingType { + /** + * + * @brief 仅本地播放 + */ + + kAudioMixingTypePlayout, + /** + * + * @brief 仅远端播放 + */ + + kAudioMixingTypePublish, + /** + * + * @brief 本地和远端同时播放 + */ + + kAudioMixingTypePlayoutAndPublish +}; + +/** + * + * @type keytype + * @brief 混音播放声道类型 + */ + +enum AudioMixingDualMonoMode{ + /** + * + * @brief 和音频文件一致 + */ + + kAudioMixingDualMonoModeAuto, + /** + * + * @brief 只能听到音频文件中左声道的音频 + */ + + kAudioMixingDualMonoModeL, + /** + * + * @brief 只能听到音频文件中右声道的音频 + */ + + kAudioMixingDualMonoModeR, + /** + * + * @brief 能同时听到音频文件中左右声道的音频 + */ + + kAudioMixingDualMonoModeMix +}; +/** + * + * @type keytype + * @brief 混音配置 + */ + +struct AudioEffectPlayerConfig { + /** + * + * @brief 混音播放类型,详见 AudioMixingType{@link #AudioMixingType} + */ + + AudioMixingType type = kAudioMixingTypePlayoutAndPublish; + /** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + + int play_count = 1; + /** + * + * @brief 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + */ + + int pitch = 0; + /** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + + int start_pos = 0; +}; +/** + * + * @type keytype + * @brief 混音配置 + */ + +struct MediaPlayerConfig { + /** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + + int play_count = 1; + /** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + + int start_pos = 0; + /** + * + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} 的间隔。单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + */ + + int64_t callback_on_progress_interval = 0; + /** + * + * @brief 在采集音频数据时,附带本地混音文件播放进度的时间戳。启用此功能会提升远端人声和音频文件混音播放时的同步效果。
    + * - 仅在单个音频文件混音时使用有效。 + * - `true` 时开启此功能,`false` 时关闭此功能,默认为关闭。 + */ + + bool sync_progress_to_record_frame = false; + /** + * + * @brief 是否自动播放。如果不自动播放,调用 start{@link #IMediaPlayer#start} 播放音乐文件。 + */ + + bool auto_play = true; + /** + * + * @brief 混音播放类型,详见 AudioMixingType{@link #AudioMixingType} + */ + + AudioMixingType type = kAudioMixingTypePlayoutAndPublish; +}; + +/** + * + * @type keytype + * @brief 音量回调模式。 + */ + +enum AudioReportMode { + /** + * + * @brief 默认始终开启音量回调。 + */ + + kAudioReportModeNormal, + /** + * + * @brief 可见用户进房并停止推流后,关闭音量回调。 + */ + + kAudioReportModeDisconnect, + /** + * + * @brief 可见用户进房并停止推流后,开启音量回调,回调值重置为 0。 + */ + + kAudioReportModeReset, +}; + +/** + * + * @type keytype + * @brief onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 中包含的音频信息的范围。 + */ + +enum AudioPropertiesMode { + /** + * + * @brief 仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + kAudioPropertiesModeMicrophone, + /** + * + * @brief 包含以下信息:
    + * - 本地麦克风采集的音频数据和本地屏幕音频采集数据; + * - 本地混音的音频数据。 + */ + + kAudioPropertiesModeAudioMixing +}; + +/** + * + * @type keytype + * @brief 音频属性信息提示的相关配置。 + */ + +struct AudioPropertiesConfig { + /** + * + * @brief 信息提示间隔,单位:ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + + int interval = 0; + + /** + * + * @brief 是否开启音频频谱检测。 + */ + + bool enable_spectrum = false; + + /** + * + * @brief 是否开启人声检测 (VAD)。 + */ + + bool enable_vad = false; + + /** + * + * @brief 音量回调配置模式。详见 AudioReportMode{@link #AudioReportMode}。 + */ + + AudioReportMode local_main_report_mode = kAudioReportModeNormal; + + /** + * + * @brief 适用于音频属性信息提示的平滑系数。取值范围是 `(0.0, 1.0]`。
    + * 默认值为 `1.0`,不开启平滑效果;值越小,提示音量平滑效果越明显。如果要开启平滑效果,可以设置为 `0.3`。 + */ + + float smooth = 1.0f; + + /** + * + * @brief onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 中包含音频数据的范围。参看 AudioPropertiesMode{@link #AudioPropertiesMode}。
    + * 默认仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + AudioPropertiesMode audio_report_mode = kAudioPropertiesModeMicrophone; + /** + * + * @brief 是否回调本地用户的人声基频。 + */ + + bool enable_voice_pitch = false; +}; +/** + * + * @type keytype + * @brief 音频属性信息 + */ + +struct AudioPropertiesInfo { + /** + * + * @brief 线性音量,与原始音量呈线性关系,数值越大,音量越大。取值范围是:[0,255]。
    + * - [0, 25]:近似无声 + * - [26, 75]:低音量 + * - [76, 204]:中音量 + * - [205, 255]:高音量 + */ + + int linear_volume = 0; + /** + * + * @brief 非线性音量。由原始音量的对数值转化而来,因此在中低音量时更灵敏,可以用作 Active Speaker(房间内最活跃用户)的识别。取值范围是:[-127,0],单位 dB。
    + * - [-127, -60]:无声 + * - [-59, -40]:低音量 + * - [-39, -20]:中音量 + * - [-19, 0]:高音量 + */ + + int nonlinear_volume = 0; + /** + * + * @brief 频谱数组。默认长度为 257。 + */ + + float spectrum[SPECTRUM_SIZE] = {0}; + /** + * + * @brief 人声检测(VAD)结果
    + * - 1: 检测到人声。 + * - 0: 未检测到人声。 + * - -1: 未开启 VAD。 + */ + + int vad = -1; + + /** + * + * @brief 本地用户的人声基频,单位为赫兹。
    + * 同时满足以下两个条件时,返回的值为本地用户的人声基频:
    + * - 调用 enableAudioPropertiesReport{@link #IRTCEngine#enableAudioPropertiesReport},并设置参数 enable_voice_pitch 的值为 `true`。 + * - 本地采集的音频中包含本地用户的人声。 + * 其他情况下返回 `0`。 + */ + + double voice_pitch = 0; +}; + +/** + * + * @type keytype + * @brief 远端音频属性信息 + */ + +struct RemoteAudioPropertiesInfo { + /** + * + * @type keytype + * @brief 流 ID + */ + + const char* stream_id; + /** + * + * @brief 流信息。参看 StreamInfo{@link #StreamInfo} + */ + + StreamInfo stream_info; + /** + * + * @type keytype + * @brief 音频属性信息,详见 AudioPropertiesInfo{@link #AudioPropertiesInfo} + */ + + AudioPropertiesInfo audio_properties_info; +}; + +/** + * + * @type keytype + * @brief 本地音频属性信息 + */ + +struct LocalAudioPropertiesInfo { + /** + * + * @type keytype + * @brief 音频源 + */ + + IAudioSource* audio_source; + /** + * + * @type keytype + * @brief 音频属性信息,详见 AudioPropertiesInfo{@link #AudioPropertiesInfo} + */ + + AudioPropertiesInfo audio_properties_info; +}; + +/** + * + * @type keytype + * @brief 音质档位 + */ + +enum AudioProfileType { + /** + * + * @brief 默认音质
    + * 服务器下发或客户端已设置的 RoomProfileType{@link #RoomProfileType} 的音质配置 + */ + + kAudioProfileTypeDefault = 0, + /** + * + * @brief 流畅
    + * 单声道,采样率为 16 kHz,编码码率为 32 Kbps。
    + * 流畅优先、低功耗、低流量消耗,适用于大部分游戏场景,如小队语音、组队语音、国战语音等。 + */ + + kAudioProfileTypeFluent = 1, + /** + * + * @brief 单声道标准音质。
    + * 采样率为 24 kHz,编码码率为 48 Kbps。
    + * 适用于对音质有一定要求的场景,同时延时、功耗和流量消耗相对适中,适合教育场景和狼人杀等游戏。 + */ + + kAudioProfileTypeStandard = 2, + /** + * + * @brief 双声道音乐音质
    + * 采样率为 48 kHz,编码码率为 128 kbps。
    + * 超高音质,同时延时、功耗和流量消耗相对较大,适用于连麦 PK 等音乐场景。
    + * 游戏场景不建议使用。 + */ + + kAudioProfileTypeHD = 3, + /** + * + * @brief 双声道标准音质。采样率为 48 KHz,编码码率最大值为 80 Kbps + */ + + kAudioProfileTypeStandardStereo = 4, + /** + * + * @brief 单声道音乐音质。采样率为 48 kHz,编码码率最大值为 64 Kbps + */ + + kAudioProfileTypeHDMono = 5, +}; + +/** + * + * @type keytype + * @brief 降噪模式。降噪算法受调用 joinRoom{@link #IRTCRoom#joinRoom} 时设置的房间模式影响。 + */ + +enum AnsMode { + /** + * + * @brief 禁用音频降噪。 + */ + + kAnsModeDisable = 0, + /** + * + * @brief 适用于微弱降噪。 + */ + + kAnsModeLow = 1, + /** + * + * @brief 适用于抑制中度平稳噪音,如空调声、风扇声。 + */ + + kAnsModeMedium = 2, + /** + * + * @brief 适用于抑制嘈杂非平稳噪音,如键盘声、敲击声、碰撞声、动物叫声。 + */ + + kAnsModeHigh = 3, + /** + * + * @brief 启用音频降噪能力。具体的降噪算法由 RTC 决定。 + */ + + kAnsModeAutomatic = 4, +}; + +/** + * + * @type keytype + * @brief 本地用户在房间内的位置坐标,需自行建立空间直角坐标系 + */ + +struct Position { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const Position& pos) const { + return (fabs(x - pos.x) < 1e-2) && + (fabs(y - pos.y) < 1e-2) && + (fabs(z - pos.z) < 1e-2); + } +}; + +/** + * + * @type keytype + * @brief 方向朝向信息 + */ + +struct Orientation { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const Orientation& orientation) const { + return x == orientation.x && y == orientation.y && z == orientation.z; + } +}; + +/** + * + * @type keytype + * @brief 三维朝向信息,三个向量需要两两垂直。参看 Orientation{@link #Orientation}。 + */ + +struct HumanOrientation { + /** + * + * @brief 正前方朝向,默认值为 {1,0,0},即正前方朝向 x 轴正方向 + */ + + Orientation forward = { 1, 0, 0 }; + /** + * + * @brief 正右方朝向,默认值为 {0,1,0},即右手朝向 y 轴正方向 + */ + + Orientation right = { 0, 1, 0 }; + /** + * + * @brief 正上方朝向,默认值为 {0,0,1},即头顶朝向 z 轴正方向 + */ + + Orientation up = { 0, 0, 1 }; + /** + * + * @hidden constructor/destructor + */ + + bool isEqual(const HumanOrientation& human_orientation) const { + return forward.isEqual(human_orientation.forward) && right.isEqual(human_orientation.right) && up.isEqual(human_orientation.up); + } +}; + +/** + * + * @type keytype + * @brief 音频音量是否可设置 + */ + +enum AudioAbilityType { + /** + * + * @brief 未知 + */ + + kAudioAbilityTypeUnknown = -1, + /** + * + * @brief 音量可设置 + */ + + kAudioAbilityTypeAble = 0, + /** + * + * @brief 音量不可设置 + */ + + kAudioAbilityTypeUnable = 1, +}; +/** + * + * @type keytype + * @brief 远端音频流精准对齐模式 + */ + +enum AudioAlignmentMode { + /** + * + * @brief 不对齐 + */ + + kAudioAlignmentModeOff, + /** + * + * @brief 远端音频流都对齐伴奏进度同步播放 + */ + + kAudioAlignmentModeAudioMixing, +}; + +/** + * + * @type keytype + * @brief 音频设备信息 + */ + +struct AudioDeviceInfo { + /** + * + * @brief 设备 ID + */ + + char device_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备全称,包含设备类型与设备名称。例如 "扬声器 (XYZ Audio Adapter)" + */ + + char device_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备名称,不含设备类型。例如 "XYZ Audio Adapter" + */ + + char device_short_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备所连接的声卡 ID,便于选择使用同一声卡的扬声器和麦克风。 + */ + + char device_container_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备的厂商 ID + */ + + int64_t device_vid; + /** + * + * @brief 设备的产品编码 + */ + + int64_t device_pid; + /** + * + * @brief 设备的传输方式 + */ + + DeviceTransportType transport_type; + /** + * + * @brief 是否支持设置音量 + */ + + AudioAbilityType volume_settable; + /** + * + * @brief 是否系统默认设备 + */ + + bool is_system_default; + /** + * + * @hidden constructor/destructor + */ + + AudioDeviceInfo() { + memset(device_id, 0, MAX_DEVICE_ID_LENGTH); + memset(device_name, 0, MAX_DEVICE_ID_LENGTH); + memset(device_short_name, 0, MAX_DEVICE_ID_LENGTH); + memset(device_container_id, 0, MAX_DEVICE_ID_LENGTH); + this->device_vid = 0; + this->device_pid = 0; + this->transport_type = DeviceTransportType::kDeviceTransportTypeUnknown; + this->volume_settable = AudioAbilityType::kAudioAbilityTypeUnknown; + this->is_system_default = false; + } + /** + * + * @hidden constructor/destructor + */ + + AudioDeviceInfo& operator=(const AudioDeviceInfo& src) { + if (this != &src) { + strncpy(device_id, src.device_id, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_name, src.device_name, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_short_name, src.device_short_name, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_container_id, src.device_container_id, MAX_DEVICE_ID_LENGTH - 1); + device_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_short_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_container_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_vid = src.device_vid; + device_pid = src.device_pid; + transport_type = src.transport_type; + volume_settable = src.volume_settable; + is_system_default = src.is_system_default; + } + + return *this; + } +}; +/** + * + * @type keytype + * @brief 标准音高数据 + */ + +struct StandardPitchInfo { + /** + * + * @brief 开始时间,单位 ms。 + */ + + int start_time; + /** + * + * @brief 持续时间,单位 ms。 + */ + + int duration; + /** + * + * @brief 音高。 + */ + + int pitch; +}; +/** + * + * @type keytype + * @hidden + * @brief K 歌打分维度。 + */ + +enum MulDimSingScoringMode { + /** + * + * @brief 按照音高进行评分。 + */ + + kMulDimSingScoringModeNote = 0 +}; +/** + * + * @type keytype + * @hidden + * @brief K 歌评分配置。 + */ + +struct SingScoringConfig { + /** + * + * @brief 音频采样率。仅支持 44100 Hz、48000 Hz。 + */ + + AudioSampleRate sample_rate; + /** + * + * @brief 打分维度,详见 MulDimSingScoringMode{@link #MulDimSingScoringMode}。 + */ + + MulDimSingScoringMode mode; + /** + * + * @brief 歌词文件路径。打分功能仅支持 KRC 歌词文件。 + */ + + const char* lyrics_filepath; + /** + * + * @brief 歌曲 midi 文件路径。 + */ + + const char* midi_filepath; +}; +/** + * + * @type keytype + * @hidden + * @brief 实时评分信息。 + */ + +struct SingScoringRealtimeInfo { + /** + * + * @brief 当前播放进度。 + */ + + int current_position; + /** + * + * @brief 演唱者的音高。 + */ + + int user_pitch; + /** + * + * @brief 标准音高。 + */ + + int standard_pitch; + /** + * + * @brief 歌词分句索引。 + */ + + int sentence_index; + /** + * + * @brief 上一句歌词的评分。 + */ + + int sentence_score; + /** + * + * @brief 当前演唱的累计分数。 + */ + + int total_score; + /** + * + * @brief 当前演唱的平均分数。 + */ + + int average_score; +}; +/** + * + * @type keytype + * @brief 音频文件录制内容来源。 + */ + +enum AudioFrameSource { + /** + * + * @brief 本地麦克风采集的音频数据。 + */ + + kAudioFrameSourceMic = 0, + /** + * + * @brief 远端所有用户混音后的数据 + */ + + kAudioFrameSourcePlayback = 1, + /** + * + * @brief 本地麦克风和所有远端用户音频流的混音后的数据 + */ + + kAudioFrameSourceMixed = 2, +}; +/** + * + * @type keytype + * @brief 音频质量。 + */ + +enum AudioQuality { + /** + * + * @brief 低音质 + */ + + kAudioQualityLow = 0, + /** + * + * @brief 中音质 + */ + + kAudioQualityMedium = 1, + /** + * + * @brief 高音质 + */ + + kAudioQualityHigh = 2, + /** + * + * @brief 超高音质 + */ + + kAudioQualityUltraHigh = 3, +}; +/** + * + * @type keytype + * @brief 录音配置 + */ + +struct AudioRecordingConfig { + /** + * + * @hidden constructor/destructor + */ + + AudioRecordingConfig() { + absolute_file_name = nullptr; + frame_source = kAudioFrameSourceMixed; + sample_rate = kAudioSampleRateAuto; + channel = kAudioChannelAuto; + quality = kAudioQualityMedium; + } + /** + * + * @brief 录制文件路径。一个有读写权限的绝对路径,包含文件名和文件后缀。
    + * 录制文件的格式仅支持 .aac 和 .wav。 + */ + + const char* absolute_file_name; + /** + * + * @brief 录音内容来源,参看 AudioFrameSource{@link #AudioFrameSource}。
    + * 默认为 kAudioFrameSourceMixed = 2。 + */ + + AudioFrameSource frame_source; + /** + * + * @brief 录音采样率。参看 AudioSampleRate{@link #AudioSampleRate}。 + */ + + AudioSampleRate sample_rate; + /** + * + * @brief 录音音频声道。参看 AudioChannel{@link #AudioChannel}。
    + * 如果录制时设置的音频声道数与采集时的音频声道数不同:
    + * - 如果采集的声道数为 1,录制的声道数为 2,那么,录制的音频为经过单声道数据拷贝后的双声道数据,而不是立体声。 + * - 如果采集的声道数为 2,录制的声道数为 1,那么,录制的音频为经过双声道数据混合后的单声道数据。 + */ + + AudioChannel channel; + /** + * + * @brief 录音音质。仅在录制文件格式为 .aac 时可以设置。参看 AudioQuality{@link #AudioQuality}。
    + * 采样率为 32kHz 时,不同音质录制文件(时长为 10min)的大小分别是:
    + * - 低音质:1.2MB; + * - 【默认】中音质:2MB; + * - 高音质:3.75MB; + * - 超高音质:7.5MB。 + */ + + AudioQuality quality; +}; +/** + * + * @type keytype + * @brief 录音配置 + */ + +enum AudioRecordingState { + /** + * + * @brief 录制异常 + */ + + kAudioRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + kAudioRecordingStateProcessing = 1, + /** + * + * @brief 已结束录制,并且录制文件保存成功。 + */ + + kAudioRecordingStateSuccess = 2, +}; +/** + * + * @type errorcode + * @brief 音频文件录制的错误码 + */ + +enum AudioRecordingErrorCode { + /** + * + * @brief 录制正常 + */ + + kAudioRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + kAudioRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 没有进入房间 + */ + + kAudioRecordingErrorCodeNotInRoom = -2, + /** + * + * @brief 录制已经开始 + */ + + kAudioRecordingErrorCodeAlreadyStarted = -3, + /** + * + * @brief 录制还未开始 + */ + + kAudioRecordingErrorCodeNotStarted = -4, + /** + * + * @brief 录制失败。文件格式不支持。 + */ + + kAudioRecordingErrorCodeNotSupport = -5, + /** + * + * @brief 其他异常 + */ + + kAudioRecordingErrorCodeOther = -6, +}; +/** + * + * @hidden(macOS, Windows, Linux) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +struct AudioEnhancementConfig { + /** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_signaling = false; + /** + * + * @brief 对音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_audio = false; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h new file mode 100644 index 0000000..7922bc3 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_device_manager.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Device Manager +*/ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @deprecated since 3.42 and will be deleted in 3.51, use IAudioDeviceCollection{@link #IAudioDeviceCollection} and IVideoDeviceCollection{@link #IVideoDeviceCollection} instead. + * @type api + * @brief 音视频设备相关的信息 + * @list 引擎管理 + */ + +class IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IDeviceCollection() { + } + /** + * + * @type api + * @brief 获取当前系统内音视频设备数量 + * @return 音视频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() = 0; + /** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 释放当前 IAudioDeviceCollection{@link #IAudioDeviceCollection} 对象占用的资源。 + * @note 不需要返回音视频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release() = 0; +/** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IDeviceCollection() { + } +}; +/** + * + * @hidden(Android,iOS) + * @type api + * @brief 音频设备相关的信息 + * @list 引擎管理 + */ + +class IAudioDeviceCollection : public IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IAudioDeviceCollection() {}; + /** + * + * @type api + * @brief 获取当前系统内音频设备数量 + * @return 音频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() override {return 0;}; + /** + * + * @type api + * @brief 根据索引号,获取设备信息 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) override {return 0;}; + /** + * + * @type api + * @brief 释放当前 IAudioDeviceCollection{@link #IAudioDeviceCollection} 对象占用的资源。 + * @note 不需要返回音频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release()override {}; + /** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备信息(ID、设备的产品编码等)获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IAudioDeviceCollection#getCount} 返回值。 + * @param audio_device_info 设备信息,详见 AudioDeviceInfo{@link #AudioDeviceInfo} + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, AudioDeviceInfo* audio_device_info) = 0; +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioDeviceCollection() {}; +}; +/** + * + * @hidden(Android,iOS) + * @type api + * @brief 音频设备管理类 + * @list 引擎管理 + */ + +class IAudioDeviceManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IAudioDeviceManager() { + } + /** + * + * @type api + * @brief 获取当前系统内音频播放设备列表。如果后续设备有变更,你会收到 `onAudioMediaDeviceStateChanged` 回调通知,然后需要重新调用本接口以获得新的设备列表。 + * @return 包含系统中所有音频播放设备的列表,参看 IAudioDeviceCollection{@link #IAudioDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 音频管理 + */ + + virtual IAudioDeviceCollection* enumerateAudioPlaybackDevices() = 0; + /** + * + * @type api + * @brief 获取当前系统内音频采集设备列表。如果后续设备有变更,你需要重新调用本接口以获得新的设备列表。 + * @return 一个包含系统中所有音频采集设备列表的对象,详见 IAudioDeviceCollection{@link #IAudioDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note + * - 你可以在收到 onAudioDeviceStateChanged{@link #IRTCEngineEventHandler#onAudioDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual IAudioDeviceCollection* enumerateAudioCaptureDevices() = 0; + /** + * + * @type api + * @brief 设置音频播放路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioPlaybackDevice{@link #IAudioDeviceManager#setAudioPlaybackDevice} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioPlaybackDevice{@link #IAudioDeviceManager#setAudioPlaybackDevice} 进行设置。 + * @list 音频管理 + */ + + virtual void followSystemPlaybackDevice(bool followed) = 0; + /** + * + * @type api + * @brief 设置音频采集路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioCaptureDevice{@link #IAudioDeviceManager#setAudioCaptureDevice} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioCaptureDevice{@link #IAudioDeviceManager#setAudioCaptureDevice} 进行设置。 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual void followSystemCaptureDevice(bool followed) = 0; + /** + * + * @type api + * @brief 设置音频播放设备。 + * @param device_id 音频播放设备 ID,可通过 enumerateAudioPlaybackDevices{@link #IAudioDeviceManager#enumerateAudioPlaybackDevices}
    + * 获取。 + * @return + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemPlaybackDevice{@link #IAudioDeviceManager#followSystemPlaybackDevice} 设置音频播放设备跟随系统后,将无法调用此接口设置音频播放设备。 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 设置音频采集设备。 + * @param device_id 音频采集设备 ID,可通过 enumerateAudioCaptureDevices{@link #IAudioDeviceManager#enumerateAudioCaptureDevices} 获取。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 当你调用 followSystemCaptureDevice{@link #IAudioDeviceManager#followSystemCaptureDevice} 设置音频采集设备跟随系统后,将无法调用此接口设置音频采集设备。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 设置当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围为 [0,255], 超出此范围设置无效。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDeviceVolume(unsigned int volume) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备音量 + * @param volume 音频播放设备音量,范围应在 [0,255] 内。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDeviceVolume(unsigned int* volume) = 0; + /** + * + * @type api + * @brief 设置当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围为 [0,255], 超出此范围设置无效。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功。将影响 onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport} 回调的音量信息。 + * - < 0:方法调用失败。 + * @note + * + 对于已静音设备,音量设置会在调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 取消静音后生效。 + * + 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDeviceVolume(unsigned int volume) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备音量 + * @param volume 音频采集设备音量,范围应在 [0,255] 内。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDeviceVolume(unsigned int* volume) = 0; + /** + * + * @type api + * @brief 设置当前音频播放设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int setAudioPlaybackDeviceMute(bool mute) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDeviceMute(bool* mute) = 0; + /** + * + * @type api + * @brief 设置当前音频采集设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法用于静音整个系统的音频采集。你也可以仅对麦克风采集到的音频信号做静音处理,而不影响媒体播放器的音乐声音,具体参看 muteAudioCapture{@link #IRTCEngine#muteAudioCapture} 方法说明。 + * - 设该方法为 `true` 静音后仍可通过 setAudioCaptureDeviceVolume{@link #IAudioDeviceManager#setAudioCaptureDeviceVolume} 调整采集音量,调整后的音量会在取消静音后生效。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int setAudioCaptureDeviceMute(bool mute) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDeviceMute(bool* mute) = 0; + /** + * + * @type api + * @brief 获取当前音频播放设备 ID。 + * @param device_id 音频播放设备 ID + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int getAudioPlaybackDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 获取当前音频采集设备 ID。 + * @param device_id 音频采集设备 ID,使用方负责按 MAX_DEVICE_ID_LENGTH 大小,分配与释放内存 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int getAudioCaptureDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 尝试初始化音频播放设备,可检测出设备不存在、权限被拒绝/禁用等异常问题。 + * @param device_id 设备索引号 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口状态不正确,例如在正常启动采集后再调用该接口进行检测 + * - -2: 采集设备无麦克风权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note 1. 该接口需在进房前调用;
    + * 2. 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + + virtual int initAudioPlaybackDeviceForTest(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 尝试初始化音频采集设备,可检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param device_id 设备索引 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口状态不正确,例如在正常启动采集后再调用该接口进行检测 + * - -2: 采集设备无麦克风权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用;
    + * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int initAudioCaptureDeviceForTest(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 启动音频播放设备检测。测试启动后,循环播放指定的音频文件,同时将通过 `onAudioPlaybackDeviceTestVolume` 回调播放时的音量信息。 + * @param test_audio_file_path 指定播放设备检测的音频文件网络地址。支持的格式包括 mp3,aac,m4a,3gp 和 wav。 + * @param indication_interval 设置 `onAudioPlaybackDeviceTestVolume` 音量回调的时间间隔,推荐设置为 200 毫秒或以上。单位为毫秒。最小值为 10 毫秒。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法可在进房前和进房后调用,不可与其它音频设备测试功能同时应用。 + * - 调用 stopAudioPlaybackDeviceTest{@link #IAudioDeviceManager#stopAudioPlaybackDeviceTest} 可以停止测试。 + * @list 音频管理 + */ + + virtual int startAudioPlaybackDeviceTest(const char* test_audio_file_path, int indication_interval) = 0; + /** + * + * @type api + * @brief 停止音频播放测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 调用 startAudioPlaybackDeviceTest{@link #IAudioDeviceManager#startAudioPlaybackDeviceTest} 后,调用本方法停止测试。 + * @list 音频管理 + */ + + virtual int stopAudioPlaybackDeviceTest() = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 开始音频采集设备和音频播放设备测试。 + * @param indication_interval 测试中会收到 `onLocalAudioPropertiesReport` 回调,本参数指定了该周期回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法在进房前后均可调用。且不可与其它音频设备测试功能同时应用。 + * - 调用本接口 30 s 后,采集自动停止,并开始播放采集到的声音。录音播放完毕后,设备测试流程自动结束。你也可以在 30 s 内调用 stopAudioDeviceRecordAndPlayTest{@link #IAudioDeviceManager#stopAudioDeviceRecordAndPlayTest} 来停止采集并开始播放此前采集到的声音。 + * - 调用 stopAudioDevicePlayTest{@link #IAudioDeviceManager#stopAudioDevicePlayTest} 可以停止音频设备采集和播放测试。 + * - 你不应在测试过程中,调用 `enableAudioPropertiesReport` 注册音量提示回调。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int startAudioDeviceRecordTest(int indication_interval) = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 停止采集本地音频,并开始播放采集到的声音。录音播放完毕后,设备测试流程结束。
    + * 调用 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest} 30 s 内调用本接口来停止采集并开始播放此前采集到的声音。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 调用本接口开始播放录音后,可以在播放过程中调用 stopAudioDevicePlayTest{@link #IAudioDeviceManager#stopAudioDevicePlayTest} 停止播放。 + * - 对 Linux SDK:仅在 Client 版本有,在 Server 版本上没有。 + * @list 音频管理 + */ + + virtual int stopAudioDeviceRecordAndPlayTest() = 0; + /** + * + * @hidden(iOS, Linux) + * @type api + * @brief 停止由调用 startAudioDeviceRecordTest{@link #IAudioDeviceManager#startAudioDeviceRecordTest} 开始的音频播放设备测试。
    + * 在音频播放设备测试自动结束前,可调用本接口停止音频采集与播放测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + + virtual int stopAudioDevicePlayTest() = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioDeviceManager() { + } +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h new file mode 100644 index 0000000..b914a5e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_effect_player.h @@ -0,0 +1,307 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Effect Player +*/ +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type callback + * @brief IAudioEffectPlayer{@link #IAudioEffectPlayer} 对应的回调句柄。你必须调用 setEventHandler{@link #IAudioEffectPlayer#setEventHandler} 完成设置后,才能收到对应回调。 + * @list 混音 + */ + +class IAudioEffectPlayerEventHandler { +public: + virtual ~IAudioEffectPlayerEventHandler() {} + /** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param effect_id IAudioEffectPlayer{@link #IAudioEffectPlayer} 的 ID。通过 getAudioEffectPlayer{@link #IRTCEngine#getAudioEffectPlayer} 设置。 + * @param state 混音状态。参考 PlayerState{@link #PlayerState}。 + * @param error 错误码。参考 PlayerError{@link #PlayerError}。 + * @list 混音 + */ + + virtual void onAudioEffectPlayerStateChanged(int effect_id, PlayerState state, PlayerError error) = 0; +}; +/** + * + * @valid since 3.53 + * @type api + * @brief 音效播放器
    + * 调用 setEventHandler{@link #IAudioEffectPlayer#setEventHandler} 设置回调句柄以获取相关回调。 + * @list 混音 + */ + +class IAudioEffectPlayer { +public: + IAudioEffectPlayer(){} + virtual ~IAudioEffectPlayer() {} + /** + * + * @type api + * @brief 开始播放音效文件。
    + * 可以通过传入不同的 ID 和 filepath 多次调用本方法,以实现同时播放多个音效文件,实现音效叠加。 + * @param effect_id 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法后,上一个音效会停止,下一个音效开始,并收到 onAudioEffectPlayerStateChanged{@link #IAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged}。 + * @param file_path 音效文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的音效文件采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 音效配置,详见 AudioEffectPlayerConfig{@link #AudioEffectPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果已经通过 preload{@link #IAudioEffectPlayer#preload} 将文件加载至内存,确保此处的 ID 与 preload{@link #IAudioEffectPlayer#preload} 设置的 ID 相同。 + * - 开始播放音效文件后,可以调用 stop{@link #IAudioEffectPlayer#stop} 方法停止播放音效文件。 + * @list 混音 + */ + + virtual int start(int effect_id, const char* file_path, const AudioEffectPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 停止播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以调用本方法停止播放音效文件。 + * - 调用本方法停止播放音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + + virtual int stop(int effect_id) = 0; + /** + * + * @type api + * @brief 停止播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以调用本方法停止播放所有音效文件。 + * - 调用本方法停止播放所有音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + + virtual int stopAll() = 0; + /** + * + * @type api + * @brief 预加载指定音乐文件到内存中,以避免频繁播放同一文件时的重复加载,减少 CPU 占用。 + * @param effect_id 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法,后一次会覆盖前一次。
    + * 如果先调用 start{@link #IAudioEffectPlayer#start},再使用相同的 ID 调用本方法 ,会收到回调 onAudioEffectPlayerStateChanged{@link #IAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged} ,通知前一个音效停止,然后加载下一个音效。
    + * 调用本方法预加载 A.mp3 后,如果需要使用相同的 ID 调用 start{@link #IAudioEffectPlayer#start} 播放 B.mp3,请先调用 unload{@link #IAudioEffectPlayer#unload} 卸载 A.mp3 ,否则会报错 AUDIO_MIXING_ERROR_LOAD_CONFLICT。 + * @param file_path 音效文件路径。支持本地文件的 URI。
    + * 预加载的文件长度不得超过 20s。
    + * 不同平台支持的音效文件格式和 start{@link #IAudioEffectPlayer#start} 一致。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 本方法只是预加载指定音效文件,只有调用 start{@link #IAudioEffectPlayer#start} 方法才开始播放指定音效文件。 + * - 调用本方法预加载的指定音效文件可以通过 unload{@link #IAudioEffectPlayer#unload} 卸载。 + * @list 混音 + */ + + virtual int preload(int effect_id, const char* file_path) = 0; + /** + * + * @type api + * @brief 卸载指定音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 或 preload{@link #IAudioEffectPlayer#preload} 后调用此接口。 + * @list 混音 + */ + + virtual int unload(int effect_id) = 0; + /** + * + * @type api + * @brief 卸载所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int unloadAll() = 0; + /** + * + * @type api + * @brief 暂停播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以通过调用本方法暂停播放音效文件。 + * - 调用本方法暂停播放音效文件后,可调用 resume{@link #IAudioEffectPlayer#resume} 方法恢复播放。 + * @list 混音 + */ + + virtual int pause(int effect_id) = 0; + /** + * + * @type api + * @brief 暂停播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以通过调用本方法暂停播放所有音效文件。 + * - 调用本方法暂停播放所有音效文件后,可调用 resumeAll{@link #IAudioEffectPlayer#resumeAll} 方法恢复所有播放。 + * @list 混音 + */ + + virtual int pauseAll() = 0; + /** + * + * @type api + * @brief 恢复播放音效文件。 + * @param effect_id 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 调用 pause{@link #IAudioEffectPlayer#pause} 方法暂停播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + + virtual int resume(int effect_id) = 0; + /** + * + * @type api + * @brief 恢复播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 调用 pauseAll{@link #IAudioEffectPlayer#pauseAll} 方法暂停所有正在播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + + virtual int resumeAll() = 0; + /** + * + * @type api + * @brief 设置音效文件的起始播放位置。 + * @param effect_id 音效 ID + * @param pos 音效文件起始播放位置,单位为毫秒。
    + * 你可以通过 getDuration{@link #IAudioEffectPlayer#getDuration} 获取音效文件总时长,pos 的值应小于音效文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int setPosition(int effect_id, int pos) = 0; + /** + * + * @type api + * @brief 获取音效文件播放进度。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 音效文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getPosition(int effect_id) = 0; + /** + * + * @type api + * @brief 调节指定音效的音量大小,包括音效文件和 PCM 音频。 + * @param effect_id 音效 ID + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int setVolume(int effect_id, int volume) = 0; + /** + * + * @type api + * @brief 设置所有音效的音量大小,包括音效文件和 PCM 音效。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 该接口的优先级低于 setVolume{@link #IAudioEffectPlayer#setVolume},即通过 setVolume{@link #IAudioEffectPlayer#setVolume} 单独设置了音量的音效 ID,不受该接口设置的影响。 + * @list 混音 + */ + + virtual int setVolumeAll(int volume) = 0; + /** + * + * @type api + * @brief 获取当前音量。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getVolume(int effect_id) = 0; + /** + * + * @type api + * @brief 获取音效文件时长。 + * @param effect_id 音效 ID + * @return + * - >0: 成功, 音效文件时长,单位为毫秒。 + * - < 0: 失败 + * @note 仅在调用 start{@link #IAudioEffectPlayer#start} 后调用此接口。 + * @list 混音 + */ + + virtual int getDuration(int effect_id) = 0; + /** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 IAudioEffectPlayerEventHandler{@link #IAudioEffectPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + + virtual int setEventHandler(IAudioEffectPlayerEventHandler* handler) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h new file mode 100644 index 0000000..7da1a8b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_frame.h @@ -0,0 +1,528 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC audio Frame + */ + +#pragma once + +#include +#include +#include +#include "bytertc_audio_defines.h" + +namespace bytertc { + +/** + * + * @type keytype + * @region 音频管理 + * @brief 音频帧类型 + */ + +enum AudioFrameType { + /** + * + * @brief PCM 16bit + */ + + kAudioFrameTypePCM16 = 0 +}; + +/** + * + * @type keytype + * @region 音频管理 + * @brief 音频帧构建类 + */ + +typedef struct AudioFrameBuilder { + /** + * + * @brief 音频采样率 + */ + + AudioSampleRate sample_rate; + + /** + * + * @brief 音频通道数 + */ + + AudioChannel channel; + + /** + * + * @brief 音频帧时间戳,单位:微秒 + * @note 此时间戳不是 Linux 时间戳,只是 SDK 内部时间戳,仅保证帧之间时间戳的相对关系。 + */ + + int64_t timestamp_us = 0; + + /** + * + * @brief 音频帧数据 + */ + + uint8_t* data; + + /** + * + * @brief 音频帧数据大小 + */ + + int64_t data_size = 0; + + /** + * + * @brief 是否深拷贝 + */ + + bool deep_copy = true; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据 + */ + + uint8_t* extra_info = nullptr; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据大小 + */ + + int64_t extra_info_size = 0; +} AudioFrameBuilder; +/** + * + * @type keytype + * @brief 音频帧 + */ + +class IAudioFrame { +public: + /** + * + * @type api + * @brief 获取音频帧时间戳。 + * @return 音频帧时间戳,单位:微秒 + * @list Screen Sharing + */ + + virtual int64_t timestampUs() const = 0; + /** + * + * @type api + * @brief 获取音频采样率。参看 AudioSampleRate{@link #AudioSampleRate} + * @return 音频采样率,单位:Hz + * @list 音频管理 + */ + + virtual AudioSampleRate sampleRate() const = 0; + /** + * + * @type api + * @brief 获取音频通道数。参看 AudioChannel{@link #AudioChannel} + * @return 音频通道数 + * @note 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + * @list 音频管理 + */ + + virtual AudioChannel channel() const = 0; + /** + * + * @type api + * @brief 获取音频帧内存块地址 + * @return 音频帧内存块地址 + * @list 音频管理 + */ + + virtual uint8_t* data() const = 0; + /** + * + * @type api + * @brief 获取音频帧数据大小 + * @return 音频帧数据大小,单位:字节。 + * @list 音频管理 + */ + + virtual int dataSize() const = 0; + /** + * + * @type api + * @brief 获取音频帧类型 + * @return 音频帧类型,目前只支持 PCM,详见 AudioFrameType{@link #AudioFrameType} + * @list 音频管理 + */ + + virtual AudioFrameType frameType() const = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 获取音频帧额外信息内存块地址 + * @return 音频帧额外信息内存块地址 + * @list 音频管理 + */ + + virtual uint8_t* extraInfo() const = 0; + /** + * + * @type api + * @hidden for internal use only + * @brief 获取音频帧额外信息大小 + * @return 音频帧数据额外信息大小,单位:字节。 + * @list 音频管理 + */ + + virtual int extraInfoSize() const = 0; + /** + * + * @type api + * @brief 释放音频帧 + * @list 音频管理 + */ + + virtual void release() = 0; + /** + * + * @type api + * @brief 获取音频静音标志 + * @return 是否静音数据
    + * - true: 是 + * - false: 否 + * @list 音频管理 + */ + + virtual bool isMutedData() const = 0; + /** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrame() = default; +}; +/** + * + * @type api + * @brief 创建 IAudioFrame + * @param builder 音频帧构建实例,参看 AudioFrameBuilder{@link #AudioFrameBuilder} + * @return 详见 IAudioFrame{@link #IAudioFrame} + * @list 音频管理 + */ + +BYTERTC_API IAudioFrame* buildAudioFrame(const AudioFrameBuilder& builder); + +/** + * + * @type keytype + * @brief 音频回调方法 + */ + +enum class AudioFrameCallbackMethod{ + /** + * + * @brief 本地麦克风录制的音频数据回调 + */ + + kRecord, + /** + * + * @brief 订阅的远端所有用户混音后的音频数据回调 + */ + + kPlayback, + /** + * + * @brief 本地麦克风录制和订阅的远端所有用户混音后的音频数据回调 + */ + + kMixed, + /** + * + * @brief 订阅的远端每个用户混音前的音频数据回调 + */ + + kRemoteUser, + /** + * + * @brief 本地屏幕录制的音频数据回调 + */ + + kRecordScreen, + /** + * + * @brief 本地麦克风录制和本地 `MediaPlayer`, `EffectPlayer` 播放的音频混音后的音频数据回调 + */ + + kCaptureMixed, +}; +/** + * + * @type callback + * @brief 音频数据回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
    + * 本接口类中的回调周期均为 20 ms。 + * @list 自定义流处理 + */ + +class IAudioFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrameObserver() { + } + /** + * + * @hidden for internal use only + * @valid since 3.50 + */ + + virtual void onRecordAudioFrameOriginal(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回麦克风录制的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onRecordAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回订阅的所有远端用户混音后的音频数据。 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onPlaybackAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回远端单个用户的音频数据 + * @param stream_id 远端流 ID。 + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param audio_frame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。 + * @note 此回调在播放线程调用。不要在此回调中做任何耗时的事情,否则可能会影响整个音频播放链路。 + * @list 自定义流处理 + */ + + virtual void onRemoteUserAudioFrame(const char* stream_id, const StreamInfo& stream_info, const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回本地麦克风录制和订阅的所有远端用户混音后的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onMixedAudioFrame(const IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 返回本地屏幕录制的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onRecordScreenAudioFrame(const IAudioFrame& audio_frame) { + } + /** + * + * @type callback + * @brief 返回本地麦克风录制的音频数据,本地 `MediaPlayer` / `EffectPlayer` 播放音频文件混音后的音频数据 + * @param audio_frame 音频数据, 详见:IAudioFrame{@link #IAudioFrame} + * @list 自定义流处理 + */ + + virtual void onCaptureMixedAudioFrame(const IAudioFrame& audio_frame) = 0; + +}; +/** + * + * @type callback + * @brief 自定义音频处理器。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +class IAudioFrameProcessor{ +public: + /** + * + * @type callback + * @brief 回调本地采集的音频帧地址,供自定义音频处理。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note + * - 完成自定义音频处理后,SDK 会对处理后的音频帧进行编码,并传输到远端。 + * - 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择本地采集的音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessRecordAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 回调远端音频混音的音频帧地址,供自定义音频处理。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择远端音频流的混音音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessPlayBackAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 回调单个远端用户的音频帧地址,供自定义音频处理。 + * @param stream_id 远端流 ID。 + * @param stream_info 远端流信息, 参看 StreamInfo{@link #StreamInfo}。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并在参数中选择各个远端音频流时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + + virtual int onProcessRemoteUserAudioFrame(const char* stream_id, const StreamInfo& stream_info, IAudioFrame& audio_frame) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 3.50 + * @type callback + * @brief 软件耳返音频数据的回调。你可根据此回调自定义处理音频。
    + * 耳返音频中包含通过调用 `setVoiceReverbType` 和 `setVoiceChangerType` 设置的音频特效。 + * @param audio_frame 音频帧地址。参看 IAudioFrame{@link #IAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 此数据处理只影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},并选择耳返音频,每 10 ms 收到此回调。 + * @list Custom Stream Processing + */ + + virtual int onProcessEarMonitorAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @type callback + * @brief 屏幕共享的音频帧地址回调。你可根据此回调自定义处理音频。 + * @param audio_frame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame}。 + * @note 调用 enableAudioProcessor{@link #IRTCEngine#enableAudioProcessor},把返回给音频处理器的音频类型设置为屏幕共享音频后,每 10 ms 收到此回调。 + * @list 屏幕共享 + */ + + virtual int onProcessScreenAudioFrame(IAudioFrame& audio_frame) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioFrameProcessor() { + } +}; +/** + * + * @type keytype + * @hidden for internal use only + * @region 音频管理 + * @brief 音频帧构建类 + */ + +typedef struct EncodedAudioFrameData { + /** + * + * @brief 音频编码类型 + */ + + AudioCodecType codec_type = kAudioCodecTypeNone; + /** + * + * @brief 音频数据 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 音频数据大小 + */ + + int size = 0; + /** + * + * @brief 音频时间戳,单位:微秒 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 音频采样率 + */ + + int sample_rate = 0; + /** + * + * @brief 音频通道数 + */ + + int channel_num = 0; + /** + * + * @brief 音频帧大小,单位:毫秒 + */ + + int frame_size_ms = 0; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据 + */ + + uint8_t* extra_info = nullptr; + /** + * + * @hidden for internal use only + * @brief 音频帧额外信息数据大小 + */ + + int extra_info_size = 0; +} EncodedAudioFrameData; + +/** + * + * @type callback + * @hidden for internal use only + * @brief 远端音频帧监测器 + * @list 自定义流处理 + */ + +class IRemoteEncodedAudioFrameObserver { +public: + virtual ~IRemoteEncodedAudioFrameObserver () { + } + /** + * + * @type callback + * @hidden for internal use only + * @brief 调用 RegisterRemoteEncodedAudioFrameObserver 后,SDK 收到远端音频帧信息时,回调该事件 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo} + * @param audio_stream 远端音频帧信息,参看 EncodedAudioFrameData{@link #EncodedAudioFrameData} + * @list 自定义流处理 + */ + + virtual void onRemoteEncodedAudioFrame(const char* stream_id, + const StreamInfo& stream_info, const EncodedAudioFrameData& audio_stream) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h new file mode 100644 index 0000000..e443668 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_audio_mixing_manager.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Mixing Manager +*/ + +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @hidden(Linux) + * @type callback + * @brief 本地音频文件混音的音频帧观察者。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +class IAudioFileFrameObserver { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IAudioFileFrameObserver(){} + /** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param mix_id 混音 ID。 + * @param audio_frame 参看 IAudioFrame{@link #IAudioFrame}。 + * @list 自定义流处理 + */ + + virtual void onAudioFileFrame(int mix_id, const IAudioFrame& audio_frame) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h new file mode 100644 index 0000000..a4ca364 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_camera_control_interface.h @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. +*/ + +#pragma once + +#include + +namespace bytertc { +/** + * + * @type keytype + * @brief 相机补光灯状态 + */ + +enum TorchState{ + + /** + * + * @brief 相机补光灯关闭 + */ + + kTorchStateOff=0, + /** + * + * @brief 相机补光灯打开 + */ + + kTorchStateOn=1, +}; +/** + * + * @hidden(macOS,Windows,Linux) + * @type api + * @brief 相机控制接口 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能使用这个接口。 + */ + +class ICameraControl { +public: + virtual ~ICameraControl() = default; + /** + * + * @type api + * @brief 设置当前使用的摄像头(前置/后置)的变焦倍数 + * @param zoom_val 变焦倍数。取值范围是 [1, <最大变焦倍数>]。
    + * 最大变焦倍数可以通过调用 getCameraZoomMaxRatio{@link #ICameraControl#getCameraZoomMaxRatio} 获取。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置摄像头变焦倍数。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraZoomRatio(float zoom_val) = 0; + /** + * + * @type api + * @brief 获取当前使用的摄像头(前置/后置)的最大变焦倍数 + * @return 最大变焦倍数 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头最大变焦倍数。 + */ + + virtual float getCameraZoomMaxRatio() = 0; + /** + * + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持变焦(数码/光学变焦)。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头变焦能力。 + */ + + virtual bool isCameraZoomSupported() = 0; + /** + * + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持闪光灯。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测闪光能力。 + */ + + virtual bool isCameraTorchSupported() = 0; + /** + * + * @type api + * @brief 打开/关闭当前使用的摄像头(前置/后置)的闪光灯 + * @param torch_state 打开/关闭。参看 TorchState{@link #TorchState}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置闪光灯。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraTorch(TorchState torch_state) = 0; + /** + * + * @type api + * @brief 检查当前使用的摄像头是否支持对焦点设置 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查对焦点设置能力。 + */ + + virtual bool isCameraFocusPositionSupported() = 0; + /** + * + * @type api + * @brief 设置当前使用的摄像头的对焦点 + * @param x 对焦点水平方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最左边,1 为最右边。 + * @param y 对焦点垂直方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最上边,1 为最下边。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置对焦点。 + * - 对焦点设置为画布中央(即[0.5, 0.5]) 时,恢复系统默认值。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraFocusPosition(float x, float y) = 0; + /** + * + * @type api + * @brief 检查当前使用的摄像头是否支持曝光点设置 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。 + */ + + virtual bool isCameraExposurePositionSupported() = 0; + /** + * + * @type api + * @brief 设置当前使用的摄像头的曝光点 + * @param x 曝光点水平方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最左边,1 为最右边。 + * @param y 曝光点垂直方向归一化坐标。以本地预览画布的左上为原点。取值范围为[0, 1],0 为最上边,1 为最下边。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 + * - 曝光点设置为画布中央(即[0.5, 0.5]) 时,恢复系统默认值。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraExposurePosition(float x, float y) = 0; + /** + * + * @type api + * @brief Sets the exposure point of the currently used camera. + * @param val 曝光补偿值,取值范围[-1, 1],0 为系统默认值(没有曝光补偿)。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 必须已调用 StartVideoCapture{@link #IRTCEngine#StartVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。 + * - 设置结果在调用 StopVideoCapture{@link #IRTCEngine#StopVideoCapture} 关闭内部采集后失效。 + */ + + virtual int setCameraExposureCompensation(float val) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 353 + * @type api + * @brief 启用或禁用内部采集时人脸自动曝光模式。此模式会改善强逆光下,脸部过暗的问题;但也会导致 ROI 以外区域过亮/过暗的问题。 + * @param enable 是否启用。iOS默认开启,Android默认关闭。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 对 Android,你必须在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 对 iOS,在采集前或采集中调用此接口均可生效。 + * @list 视频管理 + */ + + virtual int enableCameraAutoExposureFaceMode(bool enable) = 0; + /** + * + * @hidden(macOS, Windows, Linux) + * @valid since 353 + * @type api + * @brief 设置内部采集适用动态帧率时,帧率的最小值。 + * @param framerate 最小值。单位为 fps。默认值是 7。
    + * 动态帧率的最大帧率是通过 setVideoCaptureConfig{@link #IRTCEngine#setVideoCaptureConfig} 设置的帧率值。当传入参数大于最大帧率时,使用固定帧率模式,帧率为最大帧率;当传入参数小于最大帧率时,使用动态帧率。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 你必须在调用 startVideoCapture{@link #IRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 如果由于性能降级、静态适配等原因导致采集最大帧率变化时,已设置的最小帧率值会与新的采集最大帧率值重新比较。比较结果变化可能导致固定/动态帧率模式切换。 + * - 对 Android,默认开启动态帧率模式 + * - 对 iOS,默认使用固定帧率模式 + * @list 视频管理 + */ + + virtual int setCameraAdaptiveMinimumFrameRate(int framerate) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h new file mode 100644 index 0000000..6779d62 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_defines.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Defines + */ + +#pragma once + +#include "bytertc_rts_defines.h" +#include "bytertc_media_defines.h" +#include "bytertc_audio_defines.h" +#include "bytertc_video_defines.h" +#include "bytertc_transcoder_define.h" diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h new file mode 100644 index 0000000..1cef74b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_internal.h @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Internal API +*/ + +#pragma once + +#include "bytertc_defines.h" +#include +#include + +namespace bytertc { + +/** + * @brief 设置 ByteRTC SDK 默认开启使用QUIC获取配置 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableQuicGetAccess(); + +/** + * @brief 设置 ByteRTC SDK 默认开启使用KCP获取配置 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableKcpGetAccess(); + +/** + * @brief 设置 ByteRTC SDK 默认开启通话前网络探测 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableNetworkDetect(); + +/** + * @brief 设置 ByteRTC SDK 默认开启使用KCP消息通道 + * @notes 一般在linux端SDK使用 + */ +BYTERTC_API void setDefaultEnableKcpDataChannel(); + +struct VideoStreamDescription { + unsigned int width; + unsigned int height; + unsigned int frame_rate; + unsigned int max_kbps; +}; + +enum class PixelFormat { + kDefault = 0, + kI420 = 1, + kRGBA = 2, + kTexture = 3, +}; + +enum class NetworkFamily { + kNetworkFamilyNone = 0, + kNetworkFamilyIPv4 = 1, + kNetworkFamilyIPv6 = 2, + kNetworkFamilyBoth = 3, +}; + +enum StreamFlag { + kStreamFlagNone = 0, + kStreamFlagNormal = 1 << 0, + kStreamFlagDocShare = 1 << 1, + kStreamFlagMCU = 1 << 2, + kStreamFlagMeetTogether = 1 << 3, + + kStreamFlagIntelligentStream = 1 << 6, +}; + +} + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h new file mode 100644 index 0000000..5f162fa --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_defines.h @@ -0,0 +1,586 @@ +#pragma once + +#include + +namespace bytertc { + +/** + * + * @type keytype + * @brief 歌曲过滤方式。 + */ + +enum MusicFilterType { + /** + * + * @brief 不过滤。 + */ + + kMusicFilterTypeNone = 0, + /** + * + * @brief 过滤没有歌词的歌曲。 + */ + + kMusicFilterTypeWithoutLyric = 1 << 0, + /** + * + * @brief 过滤不支持打分的歌曲。 + */ + + kMusicFilterTypeUnsupportedScore = 1 << 1, + /** + * + * @brief 过滤不支持伴唱切换的歌曲。 + */ + + kMusicFilterTypeUnsupportedAccopmay = 1 << 2, + /** + * + * @brief 过滤没有高潮片段的歌曲。 + */ + + kMusicFilterTypeUnsupportedClimx = 1 << 3, +}; + +/** + * + * @type keytype + * @brief 原唱伴唱类型。 + */ + +enum class AudioTrackType { + /** + * + * @brief 播放原唱。 + */ + + kOriginal = 1, + /** + * + * @brief 播放伴唱。 + */ + + kAccompy = 2 +}; + +/** + * + * @type keytype + * @brief 音乐播放类型。 + */ + +enum class AudioPlayType { + /** + * + * @brief 仅本地播放。 + */ + + kLocal, + /** + * + * @brief 仅远端播放。 + */ + + kRemote, + /** + * + * @brief 本地、远端同时播放。 + */ + + kLocalAndRemote +}; + +/** + * + * @type keytype + * @brief 音乐播放状态。 + */ + +enum class PlayState { + /** + * + * @brief 播放中。 + */ + + kPlaying = 1, + /** + * + * @brief 暂停中。 + */ + + kPaused = 2, + /** + * + * @brief 已停止。 + */ + + kStoped = 3, + /** + * + * @brief 播放失败。 + */ + + kFailed = 4, + /** + * + * @brief 播放结束。 + */ + + kFinished = 5, +}; + +/** + * + * @type keytype + * @brief 歌词格式类型。 + */ + +enum class LyricStatus { + /** + * + * @brief 无歌词。 + */ + + kNone = 0, + /** + * + * @brief KRC 歌词。 + */ + + kKRC = 1, + /** + * + * @brief LRC 歌词。 + */ + + kLRC = 2, + /** + * + * @brief KRC 歌词和 LRC 歌词均有。 + */ + + kKRCAndLRC = 3 +}; + +/** + * + * @type keytype + * @brief 歌词文件类型。 + */ + +enum class DownloadLyricType { + /** + * + * @brief KRC 歌词文件。 + */ + + kKRC, + /** + * + * @brief LRC 歌词文件。 + */ + + kLRC +}; + + + +/** + * + * @type keytype + * @brief 歌曲数据。 + */ + +struct MusicInfo +{ + /** + * + * @brief 音乐 ID。 + */ + + const char* music_id; + /** + * + * @brief 音乐名称。 + */ + + const char* music_name; + /** + * + * @brief 歌手。 + */ + + const char* singer; + /** + * + * @brief 版权商 ID。 + */ + + const char* vendor_id; + /** + * + * @brief 版权商名称。 + */ + + const char* vendor_name; + /** + * + * @brief 最新更新时间戳,单位为毫秒。 + */ + + int64_t update_timestamp; + /** + * + * @brief 封面地址。 + */ + + const char* poster_url; + /** + * + * @brief 歌词格式类型,参看 LyricStatus{@link #LyricStatus}。 + */ + + LyricStatus lyric_status; + /** + * + * @brief 歌曲长度,单位为毫秒。 + */ + + int duration; + /** + * + * @brief 歌曲是否支持打分。 + */ + + bool enable_score; + /** + * + * @brief 歌曲高潮片段开始时间,单位为毫秒。 + */ + + int climax_start_time; + /** + * + * @brief 歌曲高潮片段停止时间,单位为毫秒。 + */ + + int climax_stop_time; + +}; + +/** + * + * @type keytype + * @brief 热榜歌曲数据。 + */ + +struct HotMusicInfo { + /** + * + * @brief 热榜名称。 + */ + + const char* hot_name; + /** + * + * @brief 歌曲数据,参看 MusicInfo{@link #MusicInfo}。 + */ + + MusicInfo* musics; + /** + * + * @brief 歌曲列表的数量。 + */ + + int music_count; +}; + +/** + * + * @type keytype + * @brief 下载文件类型。 + */ + +enum DownloadFileType { + /** + * + * @brief 音频文件。 + */ + + kDownloadFileTypeMusic = 1, + /** + * + * @brief KRC 歌词文件。 + */ + + kDownloadFileTypeKRC = 2, + /** + * + * @brief LRC 歌词文件。 + */ + + kDownloadFileTypeLRC = 3, + /** + * + * @brief MIDI 文件。 + */ + + kDownloadFileTypeMIDI = 4 + +} ; + +/** + * + * @type keytype + * @brief 歌曲下载信息。 + */ + +struct DownloadResult { + /** + * + * @brief 文件存放路径。 + */ + + const char* local_file_path; + /** + * + * @brief 音乐 ID。 + */ + + const char* music_id; + /** + * + * @brief 下载文件类型,参看 DownloadFileType{@link #DownloadFileType}。 + */ + + DownloadFileType type; +}; + + +/** + * + * @type errorcode + * @brief KTV 错误码。 + */ + +enum KTVErrorCode { + /** + * + * @brief 成功。 + */ + + kKTVErrorCodeOK = 0, + /** + * + * @brief AppID 异常。 + */ + + kKTVErrorCodeAppidInValid = -3000, + /** + * + * @brief 非法参数,传入的参数不正确。 + */ + + kKTVErrorCodeParasInValid = -3001, + /** + * + * @brief 获取歌曲资源失败。 + */ + + kKTVErrorCodeGetMusicFailed = -3002, + /** + * + * @brief 获取歌词失败。 + */ + + kKTVErrorCodeGetLyricFailed = -3003, + /** + * + * @brief 歌曲下架。 + */ + + kKTVErrorCodeMusicTakedown = -3004, + /** + * + * @brief 歌曲文件下载失败。 + */ + + kKTVErrorCodeMusicDownload = -3005, + /** + * + * @brief MIDI 文件下载失败。 + */ + + kKTVErrorCodeMidiDownloadFailed = -3006, + /** + * + * @brief 系统繁忙。 + */ + + kKTVErrorCodeSystemBusy = -3007, + /** + * + * @brief 网络异常。 + */ + + kKTVErrorCodeNetwork = -3008, + /** + * + * @brief KTV 功能未加入房间。 + */ + + kKTVErrorCodeNotJoinRoom = -3009, + /** + * + * @brief 解析数据失败。 + */ + + kKTVErrorCodeParseData = -3010, + /** + * + * @hidden + * @deprecated 从 353 开始。 + * @brief 下载失败。 + */ + + kKTVErrorCodeDownload = -3011, + /** + * + * @brief 已在下载中。 + */ + + kKTVErrorCodeDownloading = -3012, + /** + * + * @brief 内部错误,联系技术支持人员。 + */ + + kKTVErrorCodeInternalDomain = -3013, + /** + * + * @brief 下载失败,磁盘空间不足。清除缓存后重试。 + */ + + kKTVErrorCodeInsufficientDiskSpace = -3014, + /** + * + * @brief 下载失败,音乐文件解密失败,联系技术支持人员。 + */ + + kKTVErrorCodeMusicDecryptionFailed = -3015, + /** + * + * @brief 下载失败,音乐文件重命名失败,请重试。 + */ + + kKTVErrorCodeFileRenameFailed = -3016, + /** + * + * @brief 下载失败,下载超时,请重试。 + */ + + kKTVErrorCodeDownloadTimeOut = -3017, + /** + * + * @brief 清除缓存失败,可能原因是文件被占用或者系统异常,请重试。 + */ + + kKTVErrorCodeClearCacheFailed = -3018, + /** + * + * @brief 取消下载。 + */ + + kKTVErrorCodeDownloadCanceled = -3019 +}; + +/** + * + * @type keytype + * @brief KTV 播放器错误码。 + */ + +enum KTVPlayerErrorCode { + /** + * + * @brief 成功。 + */ + + kKTVPlayerErrorCodeOK = 0, + /** + * + * @brief 播放错误,请下载后播放。 + */ + + kKTVPlayerErrorCodeFileNotExist = -3020, + /** + * + * @brief 播放错误,请确认文件播放格式。 + */ + + kKTVPlayerErrorCodeFileError = -3021, + /** + * + * @brief 播放错误,未进入房间。 + */ + + kKTVPlayerErrorCodeNotJoinRoom = -3022, + /** + * + * @brief 参数错误。 + */ + + kKTVPlayerErrorCodeParam = -3023, + /** + * + * @brief 播放失败,找不到文件或文件打开失败。 + */ + + kKTVPlayerErrorCodeStartError = -3024, + /** + * + * @brief 混音 ID 异常。 + */ + + kKTVPlayerErrorCodeMixIdError = -3025, + /** + * + * @brief 设置播放位置出错。 + */ + + kKTVPlayerErrorCodePositionError = -3026, + /** + * + * @brief 音量参数不合法,可设置的取值范围为 [0,400]。 + */ + + kKTVPlayerErrorCodeAudioVolumeError = -3027, + /** + * + * @brief 不支持此混音类型。 + */ + + kKTVPlayerErrorCodeTypeError = -3028, + /** + * + * @brief 音调文件不合法。 + */ + + kKTVPlayerErrorCodePitchError = -3029, + /** + * + * @brief 音轨不合法。 + */ + + kKTVPlayerErrorCodeAudioTrackError = -3030, + /** + * + * @brief 混音启动中。 + */ + + kKTVPlayerErrorCodeStartingError = -3031 +}; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h new file mode 100644 index 0000000..053a139 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_ktv_manager_interface.h @@ -0,0 +1,483 @@ +#pragma once + +#include "bytertc_ktv_defines.h" +namespace bytertc { +/** + * + * @type callback + * @brief KTV 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 在线 KTV + */ + +class IKTVManagerEventHandler { + +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVManagerEventHandler() { + } + /** + * + * @type callback + * @brief 歌曲列表回调。 + * @param music_infos 歌曲数据数组,参看 MusicInfo{@link #MusicInfo}。 + * @param music_count 当前查询的数据条目数。 + * @param total_musics_size 数据条目总数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onMusicListResult(MusicInfo* music_infos, int music_count, int total_musics_size, KTVErrorCode error_code) { + (void)music_infos; + (void)music_count; + (void)total_musics_size; + (void)error_code; + } + /** + * + * @type callback + * @brief 搜索歌曲结果回调。 + * @param music_infos 歌曲数据数组,参看 MusicInfo{@link #MusicInfo}。 + * @param music_count 当前查询的数据条目数。 + * @param total_musics_size 数据条目总数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onSearchMusicResult(MusicInfo* music_infos, int music_count, int total_musics_size, KTVErrorCode error_code) { + (void)music_infos; + (void)music_count; + (void)total_musics_size; + (void)error_code; + } + /** + * + * @type callback + * @brief 热榜歌曲结果回调。 + * @param hot_infos 热榜歌曲数据数组,参看 HotMusicInfo{@link #HotMusicInfo}。 + * @param hot_count 当前查询的热榜歌曲数据条目数。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onHotMusicResult(HotMusicInfo* hot_infos, int hot_count, KTVErrorCode error_code) { + (void)hot_infos; + (void)hot_count; + (void)error_code; + } + /** + * + * @type callback + * @brief 歌曲详细信息回调。 + * @param music_info 歌曲数据,参看 MusicInfo{@link #MusicInfo}。 + * @param error_code 错误码,成功时返回 0,其余值参看 KTVErrorCode{@link #KTVErrorCode}。
    + * @list 在线 KTV + */ + + virtual void onMusicDetailResult(MusicInfo* music_info, KTVErrorCode error_code) { + (void)music_info; + (void)error_code; + } + /** + * + * @type callback + * @brief 下载成功回调。 + * @param download_id 下载任务 ID。 + * @param download_info 下载信息,参看 DownloadResult{@link #DownloadResult}。 + * @list 在线 KTV + */ + + virtual void onDownloadSuccess(int download_id, DownloadResult* download_info) { + (void)download_id; + (void)download_info; + } + /** + * + * @type callback + * @brief 下载失败回调。 + * @param download_id 下载任务 ID。 + * @param error_code 错误码,参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list 在线 KTV + */ + + virtual void onDownloadFailed(int download_id, KTVErrorCode error_code) { + (void)download_id; + (void)error_code; + } + /** + * + * @type callback + * @brief 歌曲文件下载进度回调。 + * @param download_id 下载任务 ID。 + * @param download_percentage 下载进度百分比,取值范围 [0,100]。 + * @list 在线 KTV + */ + + virtual void onDownloadMusicProgress(int download_id, int download_percentage) { + (void)download_id; + (void)download_percentage; + } + /** + * + * @type callback + * @brief 清理文件缓存结果回调。 + * @param error_code 错误码,非 0 为失败,参看 KTVErrorCode{@link #KTVErrorCode}。 + * @list Online Karaoke + */ + + virtual void onClearCacheResult(KTVErrorCode error_code) { + (void)error_code; + } +}; +/** + * + * @type callback + * @brief KTV 播放器回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Online Karaoke + */ + +class IKTVPlayerEventHandler { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVPlayerEventHandler() { + } + /** + * + * @type callback + * @brief 音乐播放进度回调。 + * @param music_id 音乐 ID。 + * @param progress 音乐播放进度,单位为毫秒。 + * @list 在线 KTV + */ + + virtual void onPlayProgress(const char *music_id, int64_t progress) { + (void)music_id; + (void)progress; + } + /** + * + * @type callback + * @brief 音乐播放状态改变回调。 + * @param music_id 音乐 ID。 + * @param play_state 音乐播放状态,参看 PlayState{@link #PlayState}。 + * @param error_code 错误码,参看 KTVPlayerErrorCode{@link #KTVPlayerErrorCode}。 + * @note + * 此回调被触发的时机汇总如下:
    + * - 调用 playMusic{@link #IKTVPlayer#playMusic} 成功后,会触发 playState 值为 PlayStatePlaying 的回调;否则会触发 playState 值为 PlayStateFailed 的回调。 + * - 使用相同的音乐 ID 重复调用 playMusic{@link #IKTVPlayer#playMusic} 后,后一次播放会覆盖前一次,且会触发 playState 值为 PlayStatePlaying 的回调,表示后一次音乐播放已开始。 + * - 调用 pauseMusic{@link #IKTVPlayer#pauseMusic} 方法暂停播放成功后,会触发 playState 值为 PlayStatePaused 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 调用 resumeMusic{@link #IKTVPlayer#resumeMusic} 方法恢复播放成功后,会触发 playState 值为 PlayStatePlaying 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 调用 stopMusic{@link #IKTVPlayer#stopMusic} 方法停止播放成功后,会触发 playState 值为 PlayStateStoped 的回调;否则触发 playState 值为 PlayStateFailed 的回调。 + * - 音乐播放结束会触发 playState 值为 PlayStateFinished 的回调。 + * @list 在线 KTV + */ + + virtual void onPlayStateChanged(const char* music_id, PlayState play_state, bytertc::KTVPlayerErrorCode error_code) { + (void)music_id; + (void)play_state; + (void)error_code; + } +}; +/** + * + * @type api + * @brief KTV 播放器接口。 + * @list Online Karaoke + */ + +class IKTVPlayer { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVPlayer() = default; + /** + * + * @type api + * @brief 设置 KTV 播放器进度及状态回调接口。 + * @param handler KTV 播放器回调类,参看 IKTVPlayerEventHandler{@link #IKTVPlayerEventHandler}。 + * @list 在线 KTV + */ + + virtual void setPlayerEventHandler(IKTVPlayerEventHandler *handler) = 0; + /** + * + * @type api + * @brief 播放歌曲。 + * @param music_id 音乐 ID。
    + * 若同一 music_id 的歌曲正在播放,再次调用接口会从开始位置重新播放。若 music_id 对应的音频文件不存在会触发报错。 + * @param track_type 原唱伴唱类型,参看 AudioTrackType{@link #AudioTrackType}。 + * @param play_type 音乐播放类型。参看 AudioPlayType{@link #AudioPlayType}。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * - 若音乐文件不存在,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3020,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void playMusic(const char* music_id, AudioTrackType track_type, AudioPlayType play_type) = 0; + /** + * + * @type api + * @brief 暂停播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void pauseMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 继续播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void resumeMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 停止播放歌曲。 + * @param music_id 音乐 ID。 + * @note + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void stopMusic(const char *music_id) = 0; + /** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param music_id 音乐 ID。 + * @param position 音乐起始位置,单位为毫秒,取值小于音乐文件总时长。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 调用接口后,你会收到 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void seekMusic(const char *music_id, int position) = 0; + /** + * + * @type api + * @brief 设置歌曲播放音量,只能在开始播放后进行设置。 + * @param music_id 音乐 ID。 + * @param volume 歌曲播放音量,调节范围:[0,400]。
    + * - 0:静音。 + * - 100:原始音量。 + * - 400: 原始音量的 4 倍(自带溢出保护)。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的音量大于 400,则按最大值 400 进行调整;若设置的音量小于 0,则按最小值 0 进行调整。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void setMusicVolume(const char *music_id, int volume) = 0; + /** + * + * @type api + * @brief 切换歌曲原唱伴唱。 + * @param music_id 音乐 ID。 + * @note 调用本接口时音乐必须处于播放中状态。 + * @list 在线 KTV + */ + + virtual void switchAudioTrackType(const char *music_id) = 0; + /** + * + * @type api + * @brief 对播放中的音乐设置升降调信息。 + * @param music_id 音乐 ID。 + * @param pitch 相对于音乐文件原始音调的升高/降低值,取值范围 [-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的 pitch 大于 12,则按最大值 12 进行调整;若设置的 pitch 小于 –12,则按最小值 –12 进行调整。 + * - 若音乐 ID 错误,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3023,play_state 为 4。 + * - 若未进房,会触发 onPlayStateChanged{@link #IKTVPlayerEventHandler#onPlayStateChanged} 回调,error_code 为 –3022,play_state 为 4。 + * @list 在线 KTV + */ + + virtual void setMusicPitch(const char* music_id, int pitch) = 0; + +}; +/** + * + * @type api + * @brief KTV 管理接口。 + * @list Online Karaoke + */ + +class IKTVManager { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IKTVManager() = default; + /** + * + * @type api + * @brief 设置歌曲文件最大占用的本地缓存。 + * @param max_cache_size_mb 本地缓存,单位 MB。
    + * 设置值小于等于 0 时,使用默认值 1024 MB。 + * @list 在线 KTV + */ + + virtual void setMaxCacheSize(int max_cache_size_mb) = 0; + /** + * + * @type api + * @brief 设置 KTV 回调接口。 + * @param ktv_manager_event_handler KTV 回调类,参看 IKTVManagerEventHandler{@link #IKTVManagerEventHandler}。 + * @list 在线 KTV + */ + + virtual void setKTVManagerEventHandler(IKTVManagerEventHandler *ktv_manager_event_handler) = 0; + /** + * + * @type api + * @brief 获取歌曲列表。 + * @param page_num 页码,默认从 1 开始。 + * @param page_size 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onMusicListResult{@link #IKTVManagerEventHandler#onMusicListResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void getMusicList(int page_num, int page_size, int filters) = 0; + /** + * + * @type api + * @brief 根据关键词搜索歌曲。 + * @param key_word 关键词,字符串长度最大为 20 个字符。 + * @param page_num 页码,默认从 1 开始。 + * @param page_size 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onSearchMusicResult{@link #IKTVManagerEventHandler#onSearchMusicResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void searchMusic(const char* key_word, int page_num, int page_size, int filters) = 0; + /** + * + * @type api + * @brief 指定歌曲榜单,并获取其歌曲列表。 + * @param custom_hotlist_id 榜单 ID。
    + * 默认榜单 ID 有:`ContentCenter` 和 `Project`,分别是火山内容中心热歌榜和项目热歌榜。如果你需要其他榜单,请联系技术支持人员。 + * @param id_num 榜单 ID 的个数。 + * @param filters 歌曲过滤方式,参看 MusicFilterType{@link #MusicFilterType}。 + * @note 调用接口后,你会收到 onHotMusicResult{@link #IKTVManagerEventHandler#onHotMusicResult} 回调歌曲列表。 + * @list 在线 KTV + */ + + virtual void getHotMusic(const char** custom_hotlist_id, int id_num, int filters) = 0; + /** + * + * @type api + * @brief 获取音乐详细信息。 + * @param music_id 音乐 ID。 + * @note 调用接口后,你会收到 onMusicDetailResult{@link #IKTVManagerEventHandler#onMusicDetailResult} 回调。 + * @list 在线 KTV + */ + + virtual void getMusicDetail(const char* music_id) = 0; + /** + * + * @type api + * @brief 下载音乐。 + * @param music_id 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若音乐下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若音乐下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * - 音乐下载进度更新时,你会收到 onDownloadMusicProgress{@link #IKTVManagerEventHandler#onDownloadMusicProgress} 回调。 + * @list 在线 KTV + */ + + virtual int downloadMusic(const char* music_id) = 0; + /** + * + * @type api + * @brief 下载歌词。 + * @param music_id 音乐 ID。 + * @param type 歌词文件类型,参看 DownloadLyricType{@link #DownloadLyricType}。 + * @return 下载任务 ID。 + * @note + * - 若歌词下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若歌词下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * @list 在线 KTV + */ + + virtual int downloadLyric(const char* music_id, DownloadLyricType type) = 0; + /** + * + * @type api + * @brief 下载 MIDI 文件。 + * @param music_id 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若文件下载成功,你会收到 onDownloadSuccess{@link #IKTVManagerEventHandler#onDownloadSuccess} 回调。 + * - 若文件下载失败,你会收到 onDownloadFailed{@link #IKTVManagerEventHandler#onDownloadFailed} 回调。 + * @list 在线 KTV + */ + + virtual int downloadMidi(const char* music_id) = 0; + /** + * + * @type api + * @brief 取消下载任务。 + * @param download_id 下载任务 ID。 + * @list 在线 KTV + */ + + virtual void cancelDownload(int download_id) = 0; + /** + * + * @type api + * @brief 清除当前音乐缓存文件,包括音乐音频和歌词。 + * @list 在线 KTV + */ + + virtual void clearCache() = 0; + /** + * + * @type api + * @brief 获取 KTV 播放器。 + * @return KTV 播放器接口,参看 IKTVPlayer{@link #IKTVPlayer}。 + * @list 在线 KTV + */ + + virtual IKTVPlayer *getKTVPlayer() = 0; + +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h new file mode 100644 index 0000000..f5979c0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_defines.h @@ -0,0 +1,5285 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Stream Defines + */ + +#pragma once + +#include +#include + +#include "bytertc_rts_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 方法调用结果。 + */ + +enum ReturnStatus { + /** + * + * @brief 成功。 + */ + + kReturnStatusSuccess = 0, + /** + * + * @brief 失败。 + */ + + kReturnStatusFailure = -1, + /** + * + * @brief 参数错误。 + */ + + kReturnStatusParameterErr = -2, + /** + * + * @brief 接口状态错误。 + */ + + kReturnStatusWrongState = -3, + /** + * + * @brief 失败,用户已在房间内。 + */ + + kReturnStatusHasInRoom = -4, + /** + * + * @brief 失败,用户已登录。 + */ + + kReturnStatusHasInLogin = -5, + /** + * + * @brief 失败,用户已经在进行通话回路测试中。 + */ + + kReturnStatusHasInEchoTest = -6, + /** + * + * @brief 失败,音视频均未采集。 + */ + + kReturnStatusNeitherVideoNorAudio = -7, + /** + * + * @brief 失败,该 roomId 已被使用。 + */ + + kReturnStatusRoomIdInUse = -8, + /** + * + * @brief 失败,屏幕流不支持。 + */ + + kReturnStatusScreenNotSupport = -9, + /** + * + * @brief 失败,不支持该操作。 + */ + + kReturnStatusNotSupport = -10, + /** + * + * @brief 失败,资源已占用。 + */ + + kReturnStatusResourceOverflow = -11, + /** + * + * @brief 失败,不支持视频接口调用。 + */ + + kReturnStatusVideoNotSupport = -12, + /** + * + * @brief 游戏场景不支持调用该接口,会与游戏房间模块的 enableMicrophone{@link #IGameRoom#enableMicrophone} 接口互相冲突 + */ + + kReturnStatusGameSceneNotSupport = -13, + /** + * + * @brief 失败,没有音频帧。 + */ + + kReturnStatusAudioNoFrame = -101, + /** + * + * @brief 失败,未实现。 + */ + + kReturnStatusAudioNotImplemented = -102, + /** + * + * @brief 失败,采集设备无麦克风权限,尝试初始化设备失败。 + */ + + kReturnStatusAudioNoPermission = -103, + /** + * + * @brief 失败,设备不存在。当前没有设备或设备被移除时返回该值。 + */ + + kReturnStatusAudioDeviceNotExists = -104, + /** + * + * @brief 失败,设备音频格式不支持。 + */ + + kReturnStatusAudioDeviceFormatNotSupport = -105, + /** + * + * @brief 失败,系统无可用设备。 + */ + + kReturnStatusAudioDeviceNoDevice = -106, + /** + * + * @brief 失败,当前设备不可用,需更换设备。 + */ + + kReturnStatusAudioDeviceCannotUse = -107, + /** + * + * @brief 系统错误,设备初始化失败。 + */ + + kReturnStatusAudioDeviceInitFailed = -108, + /** + * + * @brief 系统错误,设备开启失败。 + */ + + kReturnStatusAudioDeviceStartFailed = -109, + /** + * + * @brief 指定的音频进程不存在,采集失败。 + */ + + kReturnStatusAudioDeviceProcessNotExist = -110, + /** + * + * @brief 不支持指定进程采集音频 + */ + + kReturnStatusAudioDeviceSpecifyingProcessUnsupport = -111, + /** + * + * @brief 失败,无效对象。 + */ + + kReturnStatusNativeInvalid = -201, + /** + * + * @brief 警告。推送视频帧到 RTC SDK 时,相邻视频帧的时间戳差异应当和推帧操作的间隔相同。如果不同,会收到此警告。 + */ + + kReturnStatusVideoTimeStampWarning = -202, + /** + * + * @brief 告警,配置下发了无效的aec场景。 + */ + + kReturnStatusAecSceneWarning = -302, + /** + * + * @brief 警告,配置下发了错误的aec类型。 + */ + + kReturnStatusAecTypeWarning = -303, +}; + +/** + * + * @type keytype + * @brief 房间内远端流被移除的原因。 + */ + +enum StreamRemoveReason { + /** + * + * @brief 远端用户停止发布流。 + */ + + kStreamRemoveReasonUnpublish = 0, + /** + * + * @brief 远端用户发布流失败。 + */ + + kStreamRemoveReasonPublishFailed = 1, + /** + * + * @brief 媒体服务器 10s 没收到客户端的媒体数据。 + */ + + kStreamRemoveReasonKeepLiveFailed = 2, + /** + * + * @brief 远端用户断网。 + */ + + kStreamRemoveReasonClientDisconnected = 3, + /** + * + * @brief 远端用户重新发布流。 + */ + + kStreamRemoveReasonRepublish = 4, + /** + * + * @brief 其他原因。 + */ + + kStreamRemoveReasonOther = 5, + /** + * + * @brief 远端用户 Token 发布权限过期。 + */ + + kStreamRemoveReasonPrivilegeTokenExpired = 6, + /** + * + * @brief 远端用户流被踢。 + */ + + kStreamRemoveReasonStreamKickedByOther = 7, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 用户角色。 + */ + +enum UserRoleType { + /** + * + * @brief 主播角色。该角色用户可在房间内发布和订阅音视频流,房间中的其他用户可以感知到该用户的存在。 + */ + + kUserRoleTypeBroadcaster = 1, + /** + * + * @brief 隐身用户角色。此角色用户只可在房间内订阅音视频流,房间中的其他用户无法感知到该用户的存在。 + */ + + kUserRoleTypeSilentAudience = 2, +}; + +/** + * + * @type keytype + * @brief 用户可见性状态改变错误码。 + */ + +enum UserVisibilityChangeError { + /** + * + * @brief 成功。 + */ + + kUserVisibilityChangeErrorOk = 0, + /** + * + * @brief 未知错误。 + */ + + kUserVisibilityChangeErrorUnknown = 1, + /** + * + * @brief 房间内可见用户达到上限。 + */ + + kUserVisibilityChangeErrorTooManyVisibleUser = 2, +}; + +/** + * + * @type keytype + * @brief 数据消息来源 + */ + +enum DataMessageSourceType { + /** + * + * @brief 通过客户端或服务端的插入的自定义消息。 + */ + + kDataMessageSourceTypeDefault = 0, + /** + * + * @brief 系统数据,包含音量指示信息。 + */ + + kDataMessageSourceTypeSystem, +}; + +/** + * + * @type keytype + * @brief SEI 发送模式。 + */ + +enum SEICountPerFrame { + /** + * + * @brief 单发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,SEI 数据会按顺序跟随连续的视频帧逐帧发送,单个视频帧最多只有一个 SEI 数据。 + * 例如,假设在某一帧间隔内需要发送 3 个 SEI 数据,那么第 1 个 SEI 会在当前帧发送,第 2 个 SEI 会在下一帧发送,第 3 个 SEI 会在再下一帧发送。 + */ + + kSEICountPerFrameSingle = 0, + /** + * + * @brief 多发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,这些 SEI 数据会全部在下一个视频帧上发送。这种模式可以降低发送延迟,但单个视频帧会携带多个 SEI 数据。 + * 例如,假设在某一帧间隔内有 3 个 SEI 数据需要发送,这 3 个 SEI 数据将全部在下一个视频帧上发送。 + */ + + kSEICountPerFrameMulti, +}; + +/** + * + * @type keytype + * @brief 上行/下行网络质量 + */ + +struct NetworkQualityStats { + /** + * + * @brief 用户 ID + */ + + const char* uid; + /** + * + * @brief 本端的上行/下行的丢包率,范围 [0.0,1.0]
    + * 当 `uid` 为本地用户时,代表发布流的上行丢包率。
    + * 当 `uid` 为远端用户时,代表接收所有订阅流的下行丢包率。 + */ + + double fraction_lost; + /** + * + * @brief 当 `uid` 为本地用户时有效,客户端到服务端的往返延时(RTT),单位:ms + */ + + int rtt; + /** + * + * @brief 本端的音视频 RTP 包 2 秒内的平均传输速率,单位:bps
    + * 当 `uid` 为本地用户时,代表发送速率。
    + * 当 `uid` 为远端用户时,代表所有订阅流的接收速率。 + */ + + int total_bandwidth; + /** + * + * @brief 上行网络质量评分,详见 NetworkQuality{@link #NetworkQuality}。 + */ + + NetworkQuality tx_quality; + /** + * + * @brief 下行网络质量评分,详见 NetworkQuality{@link #NetworkQuality}。 + */ + + NetworkQuality rx_quality; + /** + * + * @hidden constructor/destructor + */ + + NetworkQualityStats() : uid(""), fraction_lost(0.), rtt(0), total_bandwidth(0), + tx_quality(kNetworkQualityUnknown), rx_quality(kNetworkQualityUnknown) { + } +}; + +/** + * + * @type keytype + * @brief 房间模式
    + * 根据所需场景,选择合适的房间模式,应用不同的音视频算法、视频参数和网络配置
    + * 调用 `setAudioProfile` 改变音频参数配置 + */ + +enum RoomProfileType : int { + /** + * + * @brief 默认场景,通用模式
    + * 与 `kRoomProfileTypeMeeting = 16` 配置相同。
    + * 你可以联系技术支持更换默认配置参数。 + */ + + kRoomProfileTypeCommunication = 0, + /** + * + * @brief 游戏语音模式,低功耗、低流量消耗。
    + * 低端机在此模式下运行时,进行了额外的性能优化:
    + * - 部分低端机型配置编码帧长 40/60 + * - 部分低端机型关闭软件 3A 音频处理 + * 增强对 iOS 其他屏幕录制进行的兼容性,避免音频录制被 RTC 打断。 + */ + + kRoomProfileTypeGame = 2, + /** + * + * @brief 云游戏模式。
    + * 如果你的游戏场景需要低延迟的配置,使用此设置。
    + * 此设置下,弱网抗性较差。 + */ + + kRoomProfileTypeCloudGame = 3, + /** + * + * @brief 云渲染模式。超低延时配置。
    + * 如果你的应用并非游戏但又对延时要求较高时,选用此模式
    + * 该模式下,音视频通话延时会明显降低,但同时弱网抗性、通话音质等均会受到一定影响。 + */ + + kRoomProfileTypeLowLatency = 4, + /** + * + * @brief 适用于 3 人及以上纯语音通话。
    + * 通话中,闭麦时是媒体模式,上麦后切换为通话模式。 + */ + + kRoomProfileTypeChatRoom = 6, + /** + * + * @brief 适用于单主播和观众进行音视频互动的直播。通话模式,上下麦不会有模式切换,避免音量突变现象 + */ + + kRoomProfileTypeInteractivePodcast = 10, + /** + * + * @brief 适合在线实时合唱场景,高音质,超低延迟。使用本配置前请联系技术支持进行协助完成其他配置。 + */ + + kRoomProfileTypeChorus = 12, + /** + * + * @brief 适用于 1 vs 1 游戏串流,支持公网或局域网。 + */ + + kRoomProfileTypeGameStreaming = 14, + /** + * + * @brief 适用于云端会议中的个人设备 + */ + + kRoomProfileTypeMeeting = 16, + /** + * + * @brief 适用于云端会议中的会议室终端设备,例如 Rooms,投屏盒子等。 + */ + + kRoomProfileTypeMeetingRoom = 17, + /** + * + * @brief 适用于课堂互动,房间内所有成员都可以进行音视频互动
    + * 当你的场景中需要同时互动的成员超过 10 人时使用此模式 + */ + + kRoomProfileTypeClassroom = 18, + /** + * + * @brief 注重流畅性,缺省码率相对低。适用于通话。 + */ + + kRoomProfileTypeCall = 19, + /** + * + * @brief 直播模式。更注重画质,视频缺省码率相对高。适用于直播互动。 + */ + + kRoomProfileTypeLive = 20, +}; +/** + * + * @type keytype + * @brief 直播模式。 + */ + +enum RoomLiveMode : int { + /** + * + * @brief 多人直播、连麦直播等模式。 + */ + + kRoomLiveModeCoHost = 1, + /** + * + * @brief 单人直播。 + */ + + kRoomLiveModeSoloHost = 2, +}; + +/** + * + * @type keytype + * @brief 多房间参数配置 + */ + +struct AudioRoomConfig { + /** + * + * @brief 房间模式,参看 RoomProfileType{@link #RoomProfileType},默认为 `kRoomProfileTypeCommunication`,进房后不可更改。 + */ + + RoomProfileType room_profile_type = kRoomProfileTypeCommunication; + /** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_audio = true; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。
    + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_audio = true; +}; + +/** + * + * @type keytype + * @brief 媒体设备类型 + */ + +enum MediaDeviceType { + /** + * + * @brief 未知设备 + */ + + kMediaDeviceTypeAudioUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + kMediaDeviceTypeAudioRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + kMediaDeviceTypeAudioCaptureDevice = 1, + /** + * + * @hidden currently not available + * @brief 视频渲染设备类型,该类型暂无使用 + */ + + kMediaDeviceTypeVideoRenderDevice = 2, + /** + * + * @brief 视频采集设备 + */ + + kMediaDeviceTypeVideoCaptureDevice = 3, + /** + * + * @brief 屏幕流视频设备 + */ + + kMediaDeviceTypeScreenVideoCaptureDevice = 4, + /** + * + * @brief 屏幕流音频设备 + */ + + kMediaDeviceTypeScreenAudioCaptureDevice = 5, +}; + +/** + * + * @type keytype + * @brief 媒体设备状态。 + */ + +enum MediaDeviceState { + /** + * + * @brief 设备已开启 + */ + + kMediaDeviceStateStarted = 1, + /** + * + * @brief 设备已停止 + */ + + kMediaDeviceStateStopped = 2, + /** + * + * @brief 设备运行时错误
    + * 例如,当媒体设备的预期行为是正常采集,但没有收到采集数据时,将回调该状态。 + */ + + kMediaDeviceStateRuntimeError = 3, + /** + * + * @brief 设备已暂停。包括:
    + * - 采集过程中,目标应用窗体最小化到任务栏。 + * - 开启采集或采集过程中,目标应用窗体被隐藏。 + * - 采集过程中,目标应用窗体正在被拉伸。 + * - 采集过程中,目标应用窗体正在被拖动。 + */ + + kMediaDeviceStatePaused = 4, + /** + * + * @brief 设备已恢复 + */ + + kMediaDeviceStateResumed = 5, + /** + * + * @brief 设备已插入
    + * 你可以调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateAdded = 10, + /** + * + * @brief 设备被移除
    + * 你可以调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateRemoved = 11, + /** + * + * @brief 用户合盖打断了视频通话。如果系统未休眠或关机,将在开盖后自动恢复视频通话。 + */ + + kMediaDeviceStateInterruptionBegan = 12, + /** + * + * @brief 视频通话已从合盖打断中恢复 + */ + + kMediaDeviceStateInterruptionEnded = 13, + /** + * + * @brief 设备成为系统默认 + */ + + kMediaDeviceStateBecomeSystemDefault = 14, + /** + * + * @brief 设备不再是系统默认 + */ + + kMediaDeviceStateResignSystemDefault = 15, + + /** + * + * @brief 获取设备列表超时后,收到设备列表通知。
    + * 再次调用获取设备接口更新设备列表。 + */ + + kMediaDeviceStateListUpdated = 16, +}; + +/** + * + * @type keytype + * @brief 媒体设备错误类型 + */ + +enum MediaDeviceError { + /** + * + * @brief 媒体设备正常 + */ + + kMediaDeviceErrorOK = 0, + /** + * + * @brief 没有权限启动媒体设备 + */ + + kMediaDeviceErrorDeviceNoPermission = 1, + /** + * + * @brief 媒体设备已经在使用中 + */ + + kMediaDeviceErrorDeviceBusy = 2, + /** + * + * @brief 媒体设备错误 + */ + + kMediaDeviceErrorDeviceFailure = 3, + /** + * + * @brief 未找到指定的媒体设备 + */ + + kMediaDeviceErrorDeviceNotFound = 4, + /** + * + * @brief 媒体设备被移除。
    + * 对象为采集屏幕流时,表明窗体被关闭或显示器被移除。 + */ + + kMediaDeviceErrorDeviceDisconnected = 5, + /** + * + * @brief 设备没有数据回调 + */ + + kMediaDeviceErrorDeviceNoCallback = 6, + /** + * + * @brief 设备采样率不支持 + */ + + kMediaDeviceErrorDeviceUNSupportFormat = 7, + /** + * + * @hidden(Android,macOS,Windows,Linux) + * @brief ios 屏幕采集没有 group id 参数 + */ + + kMediaDeviceErrorDeviceNotFindGroupId = 8, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:使用 camera 过程中被送到后台 + */ + + kMediaDeviceErrorDeviceNotAvailableInBackground = 9, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:被其他客户端打断,比如一个正在使用 capture session 的 app + */ + + kMediaDeviceErrorDeviceVideoInUseByAnotherClient = 10, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:使用 Slide Over,、Split View 或者 PIP 时被中断,比如台前调度,画中画 + */ + + kMediaDeviceErrorDeviceNotAvailableWithMultipleForegroundApps = 11, + /** + * + * @hidden(Android,Windows,Linux) + * @brief 打断类型:系统压力,比如过热 + */ + + kMediaDeviceErrorDeviceNotAvailableDueToSystemPressure = 12, + /** + * + * @hidden(Android, iOS, Linux) + * @brief 系统服务错误或长时间不响应,建议重启音频服务进程或重启设备。 + */ + + kMediaDeviceErrorAudioServerNeedRestart = 13, +}; + +/** + * + * @type keytype + * @brief 媒体设备警告 + */ + +enum MediaDeviceWarning { + /** + * + * @brief 无警告 + */ + + kMediaDeviceWarningOK = 0, + /** + * + * @brief 非法设备操作。在使用外部设备时,调用了 SDK 内部设备 API。 + */ + + kMediaDeviceWarningOperationDenied = 1, + /** + * + * @brief 采集静音。 + */ + + kMediaDeviceWarningCaptureSilence = 2, + /** + * + * @hidden(iOS,macOS,Windows,Linux) + * @brief Android 特有的静音,系统层面的静音上报 + */ + + kMediaDeviceWarningAndroidSysSilence = 3, + /** + * + * @hidden(iOS,macOS,Windows,Linux) + * @brief Android 特有的静音消失 + */ + + kMediaDeviceWarningAndroidSysSilenceDisappear = 4, + + /** + * + * @hidden for internal use only + * @brief 音量过大,超过设备采集范围。建议降低麦克风音量或者降低声源音量。 + */ + + kMediaDeviceWarningDetectClipping = 10, + /** + * + * @brief 通话中出现回声现象。
    + * 当 RoomProfileType{@link #RoomProfileType} 为 `kRoomProfileTypeMeeting` 和
    + * `kRoomProfileTypeMeetingRoom`,且 AEC 关闭时,SDK 自动启动回声检测,如果检测到回声问题,将通过
    + * `onAudioDeviceWarning` 返回本枚举值。 + */ + + kMediaDeviceWarningDetectLeakEcho = 11, + /** + * + * @hidden for internal use only + * @brief 低信噪比 + */ + + kMediaDeviceWarningDetectLowSNR = 12, + /** + * + * @hidden for internal use only + * @brief 采集插零现象 + */ + + kMediaDeviceWarningDetectInsertSilence = 13, + /** + * + * @hidden for internal use only + * @brief 设备采集静音(算法层) + */ + + kMediaDeviceWarningCaptureDetectSilence = 14, + /** + * + * @hidden for internal use only + * @brief 设备采集静音消失 + */ + + kMediaDeviceWarningCaptureDetectSilenceDisappear = 15, + /** + * + * @hidden(Linux) + * @brief 啸叫。
    + * 触发该回调的情况如下:
    + * - 不支持啸叫抑制的房间模式下,检测到啸叫; + * - 支持啸叫抑制的房间模式下,检测到未被抑制的啸叫。仅 kRoomProfileTypeCommunication、kRoomProfileTypeMeeting、kRoomProfileTypeMeetingRoom 三种房间模式支持啸叫抑制。 建议提醒用户检查客户端的距离或将麦克风和扬声器调至静音。 + */ + + kMediaDeviceWarningCaptureDetectHowling = 16, + + /** + * + * @hidden for internal use only + * @brief 检测到突发脉冲噪声 + */ + + kMediaDeviceWarningSuddenImpluseDetected = 17, + + /** + * + * @hidden for internal use only + * @brief 检测到方波声音 + */ + + kMediaDeviceWarningSquareWavSoundDetected = 18, + + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 该 scenario 下不支持设置 + */ + + kMediaDeviceWarningSetAudioRouteInvalidScenario = 20, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, routing device 不存在 (Android) + */ + + kMediaDeviceWarningSetAudioRouteNotExists = 21, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 系统高优先级路由占用 (IOS) + */ + + kMediaDeviceWarningSetAudioRouteFailedByPriority = 22, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief 当前非通话模式 kAudioScenarioTypeCommunication,不支持设置音频路由 + */ + + kMediaDeviceWarningSetAudioRouteNotVoipMode = 23, + /** + * + * @hidden(Windows,macOS,Linux) + * @brief setAudioRoute 结果回调, 设备没有启动 + */ + + kMediaDeviceWarningSetAudioRouteDeviceNotStart = 24, + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @brief setBluetoothMode 结果回调, 当前场景不会立即生效 + */ + + kMediaDeviceWarningSetBluetoothModeScenarioUnsupport = 25, + /** + * + * @hidden(macOS,Windows,Linux,Android) + * @brief setBluetoothMode 结果回调, 当前不支持设置蓝牙模式 + */ + + kMediaDeviceWarningSetBluetoothModeUnsupport = 26, + /** + * + * @hidden currently not available + * @brief 使用无声的采集设备 + */ + + kMediaDeviceWarningRecordingUseSilentDevice = 27, + /** + * + * @hidden(Linux) + * @brief 使用无声的播放设备 + */ + + kMediaDeviceWarningPlayoutUseSilentDevice = 28, + /** + * + * @hidden(macOS,Linux,Android,iOS) + * @brief 不支持排除本进程采集,当前采集全部进程音频 + */ + + kMediaDeviceWarningRecordingAllProcess = 29, + /** + * + * @hidden(macOS,Linux,Android,iOS) + * @brief 全部进程采集开启失败 + */ + + kMediaDeviceWarningRecordingAllProcessFailed = 30, +}; + +/** + * + * @type keytype + * @brief 订阅媒体流状态 + */ + +enum StreamSubscribeState { + /** + * + * @brief 订阅/取消订阅流成功 + */ + + kStreamSubscribeStateSuccess, + /** + * + * @brief 订阅/取消订阅流失败,本地用户未在房间中 + */ + + kStreamSubscribeStateFailedNotInRoom, + /** + * + * @brief 订阅/取消订阅流失败,房间内未找到指定的音视频流 + */ + + kStreamSubscribeStateFailedStreamNotFound, + /** + * + * @brief 超过订阅流数上限 + */ + + kStreamSubscribeStateFailedOverLimit, +}; + +/** + * + * @type keytype + * @brief 发布状态 + */ + +enum PublishState { + /** + * + * @brief 发布成功 + */ + + kPublishStatePublished, + /** + * + * @brief 发布失败 + */ + + kPublishStateUnpublished, +}; + +/** + * + * @type keytype + * @brief 订阅状态 + */ + +enum SubscribeState { + /** + * + * @brief 订阅成功 + */ + + kSubscribeStateSubscribed, + /** + * + * @brief 订阅失败 + */ + + kSubscribeStateUnsubscribed, +}; + +/** + * + * @type keytype + * @brief 发布状态变化原因 + */ + +enum PublishStateChangeReason { + /** + * + * @brief 用户调用发布 + */ + + kPublishStateChangeReasonPublish, + /** + * + * @brief 用户取消发布 + */ + + kPublishStateChangeReasonUnpublish, + /** + * + * @brief 发布 token 没有权限 + */ + + kPublishStateChangeReasonNoPublishPermission, + /** + * + * @brief 发布流总数超过上限 + */ + + kPublishStateChangeReasonOverStreamPublishLimit, + /** + * + * @brief 将一路流发布到多个房间时,其中一个房间取消发布失败。 + */ + + kPublishStateChangeReasonMultiRoomUnpublishFailed, + /** + * + * @brief 服务器错误导致发布失败 + */ + + kPublishStateChangeReasonPublishStreamFailed, + /** + * + * @brief 观众尝试发布操作 + */ + + kPublishStateChangeReasonPublishStreamForbidden, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布。 + */ + + kPublishStateChangeReasonUserInPublish, + /** + * + * @brief 其他用户发布了相同 streamid 的流,导致本端发布的流被踢掉。 + */ + + kPublishStateChangeReasonStreamPublishByOther, + /** + * + * @brief 流 ID 校验失败。 + */ + + kPublishStateChangeReasonStreamIdInvalid +}; + +/** + * + * @type keytype + * @brief 订阅状态变化原因 + */ + +enum SubscribeStateChangeReason { + /** + * + * @brief 本端调用订阅 + */ + + kSubscribeStateChangeReasonSubscribe, + /** + * + * @brief 本端取消订阅 + */ + + kSubscribeStateChangeReasonUnsubscribe, + /** + * + * @brief 远端发布流 + */ + + kSubscribeStateChangeReasonRemotePublish, + /** + * + * @brief 远端取消发布流 + */ + + kSubscribeStateChangeReasonRemoteUnpublish, + /** + * + * @brief 由于服务器错误导致订阅失败。SDK 会自动重试订阅 + */ + + kSubscribeStateChangeReasonStreamFailed5xx, + /** + * + * @brief 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + kSubscribeStateChangeReasonStreamFailed404, + /** + * + * @brief 当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + kSubscribeStateChangeReasonOverStreamSubscribeLimit, + /** + * + * @brief 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + kSubscribeStateChangeReasonNoSubscribePermission +}; + +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use RoomConfig in joinRoom{@link #IRTCRoom#joinRoom} instead. + * @type keytype + * @brief 订阅模式选项。 + */ + +enum SubscribeMode { + /** + * + * @brief 自动订阅模式。SDK 会自动为你订阅房间中的每一路流。 + */ + + kSubscribeModeAuto = 0, + /** + * + * @brief 手动订阅模式。SDK 不会自动订阅房间内的音视频流,你应根据根据需要手动订阅其他用户发布的音视频流。 + */ + + kSubscribeModeManual = 1 +}; + +/** + * + * @type keytype + * @brief 远端用户优先级,在性能不足需要回退时,会优先回退优先级低的用户的音视频流 + */ + +enum RemoteUserPriority { + /** + * + * @brief 用户优先级为低(默认值) + */ + + kRemoteUserPriorityLow = 0, + /** + * + * @brief 用户优先级为正常 + */ + + kRemoteUserPriorityMedium = 100, + /** + * + * @brief 用户优先级为高 + */ + + kRemoteUserPriorityHigh = 200, +}; +/** + * + * @type keytype + * @brief 发布端音视频流回退选项 + */ + +enum PublishFallbackOption { + /** + * + * @brief 上行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + kPublishFallbackOptionDisabled = 0, + /** + * + * @brief 上行网络不佳或设备性能不足时,发布的视频流会从大流到小流依次降级,直到与当前网络性能匹配,具体降级规则参看[性能回退](https: + */ + + kPublishFallbackOptionSimulcast = 1, +}; +/** + * + * @type keytype + * @brief 订阅端音视频流回退选项。 + */ + +enum SubscribeFallbackOption { + /** + * + * @brief 下行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + kSubscribeFallbackOptionDisable = 0, + /** + * + * @brief 下行网络不佳或设备性能不足时,对视频流做降级处理,具体降级规则参看[音视频流回退](70137)。
    + * 该设置仅对发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setlocalsimulcastmode-2} 开启发送多路流功能的情况生效。 + */ + + kSubscribeFallbackOptionVideoStreamLow = 1, + /** + * + * @brief 下行网络不佳或设备性能不足时,先对视频流做回退处理。当网络状况不满足接收弱流时,则自动取消接收视频,仅接收音频。
    + * 该设置仅对发布端调用 setLocalSimulcastMode{@link #IRTCEngine#setlocalsimulcastmode-2} 开启发送多路流功能的情况生效。 + */ + + kSubscribeFallbackOptionAudioOnly = 2, +}; + +/** + * + * @type keytype + * @brief 远端订阅流发生回退或恢复的原因 + */ + +enum FallbackOrRecoverReason { + /** + * + * @brief 其他原因,非带宽和性能原因引起的回退或恢复。默认值 + */ + + kFallbackOrRecoverReasonUnknown = -1, + /** + * + * @brief 由带宽不足导致的订阅端音视频流回退。 + */ + + kFallbackOrRecoverReasonSubscribeFallbackByBandwidth = 0, + /** + * + * @brief 由性能不足导致的订阅端音视频流回退。 + */ + + kFallbackOrRecoverReasonSubscribeFallbackByPerformance = 1, + /** + * + * @brief 由带宽恢复导致的订阅端音视频流恢复。 + */ + + kFallbackOrRecoverReasonSubscribeRecoverByBandwidth = 2, + /** + * + * @brief 由性能恢复导致的订阅端音视频流恢复。 + */ + + kFallbackOrRecoverReasonSubscribeRecoverByPerformance = 3, + /** + * + * @brief 由带宽不足导致的发布端音视频流回退。 + */ + + kFallbackOrRecoverReasonPublishFallbackByBandwidth = 4, + /** + * + * @brief 由性能不足导致的发布端音视频流回退。 + */ + + kFallbackOrRecoverReasonPublishFallbackByPerformance = 5, + /** + * + * @brief 由带宽恢复导致的发布端音视频流恢复。 + */ + + kFallbackOrRecoverReasonPublishRecoverByBandwidth = 6, + /** + * + * @brief 由性能恢复导致的发布端音视频流恢复。 + */ + + kFallbackOrRecoverReasonPublishRecoverByPerformance = 7, +}; + +/** + * + * @type keytype + * @brief 性能相关告警的原因 + */ + +enum PerformanceAlarmReason { + /** + * + * @brief 网络原因差,造成了发送性能回退。仅在开启发送性能回退时,会收到此原因。 + */ + + kPerformanceAlarmReasonBandwidthFallbacked = 0, + /** + * + * @brief 网络性能恢复,发送性能回退恢复。仅在开启发送性能回退时,会收到此原因。 + */ + + kPerformanceAlarmReasonBandwidthResumed = 1, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足,且已发生发送性能回退。 + */ + + kPerformanceAlarmReasonPerformanceFallbacked = 2, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足已恢复;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足已恢复,且已发生发送性能回退恢复。 + */ + + kPerformanceAlarmReasonPerformanceResumed = 3, +}; + +/** + * + * @type keytype + * @brief 是否开启发布性能回退 + */ + +enum PerformanceAlarmMode { + /** + * + * @brief 未开启发布性能回退 + */ + + kPerformanceAlarmModeNormal = 0, + /** + * + * @brief 已开启发布性能回退 + */ + + kPerformanceAlarmModeSimulcast = 1, +}; + +/** + * + * @type keytype + * @brief 房间状态码。 + */ + +enum RoomState { + /** + * + * @brief 加入房间成功 + */ + + kRoomStateJoinSuccess = 0, + /** + * + * @brief 加入房间失败 + */ + + kRoomStateJoinFailed = 1, + /** + * + * @brief 离开房间 + */ + + kRoomStateLeft = 2, +}; + +/** + * + * @type keytype + * @brief 房间状态变化原因。 + */ + +enum RoomStateChangeReason { + /** + * + * @brief 首次进房成功。 + */ + + kRoomStateChangeReasonJoinRoom = 0, + /** + * + * @brief 重新进房,比如断网重连。 + */ + + kRoomStateChangeReasonReconnect = 1, + /** + * + * @brief 离开房间。 + */ + + kRoomStateChangeReasonLeaveRoom = 2, + + /** + * + * @brief 进房失败。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kRoomStateChangeReasonJoinRoomFailed = -2001, + + /** + * + * @brief Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 调用 joinRoom{@link #IRTCRoom#joinRoom} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken{@link #IRTSRoom#updateToken} 方法更新 Token。 + */ + + kRoomStateChangeReasonInvalidToken = -1000, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 房间被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonUserForbidden = -1026, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonKickedOut = -1006, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonRoomDismiss = -1011, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonDuplicateLogin = -1004, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kRoomStateChangeReasonWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonServerLicenseExpired = -1017, + + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseNotMatchWithCache = -1024, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomStateChangeReasonLicenseFunctionNotFound = -1027, + /** + * + * @brief 服务端异常状态导致退出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kRoomStateChangeReasonStateAbnormalServerStatus = -1084, + /** + * + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kRoomStateChangeReasonUnknown = -1001 +}; +/** + * + * @type keytype + * @brief 房间事件码。 + */ + +enum RoomEvent { + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomEventUserNotifyStop = -2013, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + kRoomEventForbidden = -2012, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + kRoomEventRetryOnServerError = -2014 +}; + +/** + * + * @type keytype + * @brief 房间事件信息 + */ + +struct RoomEventInfo { + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + int64_t forbidden_time = 0; +}; + +/** + * + * @type errorcode + * @brief 回调错误码。 + */ + +enum ErrorCode { + /** + * + * @brief Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 调用 joinRoom{@link #IRTCRoom#joinRoom} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken{@link #IRTSRoom#updateToken} 方法更新 Token。 + */ + + kErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kErrorCodeJoinRoom = -1001, + /** + * + * @brief 没有发布音视频流权限。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。
    + * 用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。 + */ + + kErrorCodeNoPublishPermission = -1002, + /** + * + * @brief 没有订阅音视频流权限。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
    + * 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + kErrorCodeNoSubscribePermission = -1003, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeDuplicateLogin = -1004, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeKickedOut = -1006, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomErrorTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kRoomErrorUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeRoomDismiss = -1011, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kErrorCodeJoinRoomWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeRoomAlreadyExist = -1013, + /** + * + * @brief 加入多个房间时使用了不同的 uid。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + kErrorCodeUserIDDifferent = -1014, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseNotMatchWithCache = -1024, + /** + * + * @brief 房间被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomUserForbidden = -1026, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kErrorCodeJoinRoomLicenseFunctionNotFound = -1027, + /** + * + * @brief 订阅音视频流失败,订阅音视频流总数超过上限。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
    + * 游戏场景下,为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + kErrorCodeOverStreamSubscribeLimit = -1070, + /** + * + * @brief 发布流失败,发布流总数超过上限。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。
    + * RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。 + */ + + kErrorCodeOverStreamPublishLimit = -1080, + /** + * + * @deprecated since 3.52, use kErrorCodeOverStreamPublishLimit(-1080)instead + * @brief 发布视频流总数超过上限。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。 + */ + + kErrorCodeOverVideoPublishLimit = -1082, + /** + * + * @deprecated since 3.60, use kAVSyncEventInvalidUidRepeated carried by onAVSyncEvent{@link #IRTCRoomEventHandler#onAVSyncEvent} instead. + * @brief 音视频同步失败。通过 onStreamStateChanged 回调。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。 + */ + + kErrorCodeInvalidAudioSyncUidRepeated = -1083, + /** + * + * @brief 服务端异常状态导致退出房间。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。 + */ + + kErrorCodeMultiRoomUnpublishFailed = -1085, + /** + * + * @hidden for internal use only + * @brief 指定服务区域时传入错误参数。 + */ + + kErrorCodeWrongAreaCode = -1086, + /** + * + * @hidden for internal use only + */ + + kErrorCodeInternalDeadLockNotify = -1111, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅起通知作用。 + */ + +enum WarningCode { + + + /** + * + * @brief 进房失败。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + kWarningCodePublishStreamFailed = -2002, + /** + * + * @brief 订阅音视频流失败。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
    + * 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + kWarningCodeSubscribeStreamFailed404 = -2003, + /** + * + * @brief 订阅音视频流失败。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调。
    + * 当你订阅所在房间中的音视频流时,由于服务器错误导致订阅失败。SDK 会自动重试订阅。 + */ + + kWarningCodeSubscribeStreamFailed5xx = -2004, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误。 + */ + + kWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + kWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 当调用 `setUserVisibility` 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。
    + */ + + kWarningCodePublishStreamForbidden = -2009, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + kWarningCodeSendCustomMessage = -2011, + + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kWarningCodeUserNotifyStop = -2013, + + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布 WTN 流。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。 + */ + + kWarningCodeUserInPublish = -2014, + + /** + * + * @brief 当前正在进行回路测试,该接口调用无效 + */ + + kWarningCodeInEchoTestMode = -2017, + + /** + * + * @brief 摄像头权限异常,当前应用没有获取摄像头权限。 + */ + + kWarningCodeNoCameraPermission = -5001, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNoPermission 代替。
    + * 麦克风权限异常,当前应用没有获取麦克风权限。 + */ + + kWarningCodeNoMicrophonePermission = -5002, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceFailure 代替。
    + * 音频采集设备启动失败,当前设备可能被其他应用占用。 + */ + + kWarningCodeRecodingDeviceStartFailed = -5003, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceFailure 代替。
    + * 音频播放设备启动失败警告,可能由于系统资源不足,或参数错误。 + */ + + kWarningCodePlayoutDeviceStartFailed = -5004, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频采集设备,请插入可用的音频采集设备。 + */ + + kWarningCodeNoRecordingDevice = -5005, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceError{@link #MediaDeviceError}.kMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频播放设备,请插入可用的音频播放设备。 + */ + + kWarningCodeNoPlayoutDevice = -5006, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceWarning{@link #MediaDeviceWarning}.kMediaDeviceWarningCaptureSilence 代替。
    + * 当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。 + */ + + kWarningCodeRecordingSilence = -5007, + /** + * + * @brief 已在 3.33 版本中废弃,使用 MediaDeviceWarning{@link #MediaDeviceWarning}.kMediaDeviceWarningOperationDenied 代替。
    + * 媒体设备误操作警告。
    + * 使用自定义采集时,不可调用内部采集开关,调用时将触发此警告。 + */ + + kWarningCodeMediaDeviceOperationDenied = -5008, + + /** + * + * @brief 你需要在 publishStreamAudio 之前调用 `setScreenAudioSourceType` 设置屏幕音频采集类型。 + */ + + kWarningCodeSetScreenAudioSourceTypeFailed = -5009, + + /** + * + * @brief 不支持在 publishStreamAudio 之后, 通过 `setScreenAudioStreamIndex` 设置屏幕共享时的音频采集方式。 + */ + + kWarningCodeSetScreenAudioStreamIndexFailed = -5010, + /** + * + * @brief 设置语音音高不合法 + */ + + kWarningCodeInvalidVoicePitch = -5011, + /** + * + * @brief 设置音频格式不合法 + */ + + kWarningCodeInvalidAudioFormat = -5012, + /** + * + * @brief 外部音频源新旧接口混用 + */ + + kWarningCodeInvalidCallForExtAudio = -5013, + /** + * + * @brief 非法的远端流索引 + */ + + kWarningCodeInvalidRemoteStreamKey = -5014, + /** + * + * @brief 指定的内部渲染画布句柄无效。
    + * 当你调用 setLocalVideoCanvas{@link #IRTCEngine#setLocalVideoCanvas} 时指定了无效的画布句柄,触发此回调。 + */ + + kWarningCodeInvalidCanvasHandle = -6001, + /** + * + * @brief 鉴权文件失效,当检查鉴权文件状态时,本地文件与远端文件不一致会触发警告。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。 + */ + + kWarningLicenseFileExpired = -7001, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiAppkeyORToken = -7002, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiResourcePath = -7003, + + /** + * + * @brief [音频技术](https: + */ + + kWarningLoadSamiLibraryFailed = -7004, + + /** + * + * @brief [音频技术](https: + */ + + kWarningInvaildSamiEffectType = -7005, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态。 + */ + +enum LocalAudioStreamState { + /** + * + * @brief 本地音频默认初始状态。
    + * 麦克风停止工作时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateStopped = 0, + + /** + * + * @brief 本地音频录制设备启动成功。
    + * 采集到音频首帧时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateRecording, + + /** + * + * @brief 本地音频首帧编码成功。
    + * 音频首帧编码成功时回调该状态,对应错误码 kLocalAudioStreamErrorOk + */ + + kLocalAudioStreamStateEncoding, + + /** + * + * @brief 本地音频启动失败,在以下时机回调该状态:
    + * - 本地录音设备启动失败,对应错误码 kLocalAudioStreamErrorRecordFailure + * - 检测到没有录音设备权限,对应错误码 kLocalAudioStreamErrorDeviceNoPermission + * - 音频编码失败,对应错误码 kLocalAudioStreamErrorEncodeFailure + */ + + kLocalAudioStreamStateFailed, + + /** + * + * @brief 本地音频静音成功后回调该状态。
    + * 调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 成功后回调,对应错误码 LocalAudioStreamError{@link #LocalAudioStreamError} 中的 kLocalAudioStreamErrorOk 。 + */ + + kLocalAudioStreamStateMute, + + /** + * + * @brief 本地音频解除静音成功后回调该状态。
    + * 调用 setAudioCaptureDeviceMute{@link #IAudioDeviceManager#setAudioCaptureDeviceMute} 成功后回调,对应错误码 LocalAudioStreamError{@link #LocalAudioStreamError} 中的 kLocalAudioStreamErrorOk 。 + */ + + kLocalAudioStreamStateUnmute +}; + +/** + * + * @type keytype + * @brief 本地音频流状态改变时的错误码。 + */ + +enum LocalAudioStreamError { + /** + * + * @brief 本地音频状态正常 + */ + + kLocalAudioStreamErrorOk = 0, + /** + * + * @brief 本地音频出错原因未知 + */ + + kLocalAudioStreamErrorFailure, + /** + * + * @brief 没有权限启动本地音频录制设备 + */ + + kLocalAudioStreamErrorDeviceNoPermission, + /** + * + * @hidden currently not available + * @brief 本地音频录制设备已经在使用中 + * @note 该错误码暂未使用 + */ + + kLocalAudioStreamErrorDeviceBusy, + /** + * + * @brief 本地音频录制失败,建议你检查录制设备是否正常工作 + */ + + kLocalAudioStreamErrorRecordFailure, + /** + * + * @brief 本地音频编码失败 + */ + + kLocalAudioStreamErrorEncodeFailure, + /** + * + * @brief 没有可用的音频录制设备 + */ + + kLocalAudioStreamErrorNoRecordingDevice +}; + +/** + * + * @type keytype + * @brief 本地视频流状态 + */ + +enum LocalVideoStreamState { + /** + * + * @brief 本地视频采集停止状态 + */ + + kLocalVideoStreamStateStopped = 0, + /** + * + * @brief 本地视频采集设备启动成功 + */ + + kLocalVideoStreamStateRecording, + /** + * + * @brief 本地视频采集后,首帧编码成功 + */ + + kLocalVideoStreamStateEncoding, + /** + * + * @brief 本地视频采集设备启动失败 + */ + + kLocalVideoStreamStateFailed, +}; + +/** + * + * @type errorcode + * @brief 本地视频状态改变时的错误码 + */ + +enum LocalVideoStreamError { + /** + * + * @brief 状态正常 + */ + + kLocalVideoStreamErrorOk = 0, + /** + * + * @brief 本地视频流发布失败 + */ + + kLocalVideoStreamErrorFailure, + /** + * + * @brief 没有权限启动本地视频采集设备 + */ + + kLocalVideoStreamErrorDeviceNoPermission, + /** + * + * @brief 本地视频采集设备已被占用 + */ + + kLocalVideoStreamErrorDeviceBusy, + /** + * + * @brief 本地视频采集设备不存在 + */ + + kLocalVideoStreamErrorDeviceNotFound, + /** + * + * @brief 本地视频采集失败,建议检查采集设备是否正常工作 + */ + + kLocalVideoStreamErrorCaptureFailure, + /** + * + * @brief 本地视频编码失败 + */ + + kLocalVideoStreamErrorEncodeFailure, + /** + * + * @brief 通话过程中本地视频采集设备被其他程序抢占,导致设备连接中断 + */ + + kLocalVideoStreamErrorDeviceDisconnected +}; + +/** + * + * @type keytype + * @brief 远端音频流状态。 + */ + +enum RemoteAudioState { + /** + * + * @brief 不接收远端音频流。 + */ + + kRemoteAudioStateStopped = 0, + /** + * + * @brief 开始接收远端音频流首包。 + */ + + kRemoteAudioStateStarting, + /** + * + * @brief 远端音频流正在解码,正常播放。 + */ + + kRemoteAudioStateDecoding, + /** + * + * @brief 远端音频流卡顿。 + */ + + kRemoteAudioStateFrozen, + /** + * + * @hidden currently not available + * @brief 远端音频流播放失败 + * @note 该错误码暂未使用 + */ + + kRemoteAudioStateFailed, +}; + +/** + * + * @type keytype + * @brief 接收远端音频流状态改变的原因。 + */ + +enum RemoteAudioStateChangeReason { + /** + * + * @brief 内部原因 + */ + + kRemoteAudioStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + kRemoteAudioStateChangeReasonNetworkCongestion, + /** + * + * @brief 网络恢复正常 + */ + + kRemoteAudioStateChangeReasonNetworkRecovery, + /** + * + * @brief 本地用户停止接收远端音频流 + */ + + kRemoteAudioStateChangeReasonLocalMuted, + /** + * + * @brief 本地用户恢复接收远端音频流 + */ + + kRemoteAudioStateChangeReasonLocalUnmuted, + /** + * + * @brief 远端用户停止发送音频流 + */ + + kRemoteAudioStateChangeReasonRemoteMuted, + /** + * + * @brief 远端用户恢复发送音频流 + */ + + kRemoteAudioStateChangeReasonRemoteUnmuted, + /** + * + * @brief 远端用户离开房间 + */ + + kRemoteAudioStateChangeReasonRemoteOffline, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态。状态改变时,会收到 `onRemoteVideoStateChanged` 回调 + */ + +enum RemoteVideoState { + /** + * + * @brief 远端视频流默认初始状态,视频尚未开始播放。 + */ + + kRemoteVideoStateStopped = 0, + /** + * + * @brief 本地用户已接收远端视频流首包。 + */ + + kRemoteVideoStateStarting, + /** + * + * @brief 远端视频流正在解码,正常播放。 + */ + + kRemoteVideoStateDecoding, + /** + * + * @brief 远端视频流卡顿,可能有网络等原因。 + */ + + kRemoteVideoStateFrozen, + /** + * + * @brief 远端视频流播放失败。 + */ + + kRemoteVideoStateFailed, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态改变的原因 + */ + +enum RemoteVideoStateChangeReason { + /** + * + * @brief 内部原因 + */ + + kRemoteVideoStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + kRemoteVideoStateChangeReasonNetworkCongestion, + /** + * + * @brief 网络恢复正常 + */ + + kRemoteVideoStateChangeReasonNetworkRecovery, + /** + * + * @brief 本地用户停止接收远端视频流或本地用户禁用视频模块 + */ + + kRemoteVideoStateChangeReasonLocalMuted, + /** + * + * @brief 本地用户恢复接收远端视频流或本地用户启用视频模块 + */ + + kRemoteVideoStateChangeReasonLocalUnmuted, + /** + * + * @brief 远端用户停止发送视频流或远端用户禁用视频模块 + */ + + kRemoteVideoStateChangeReasonRemoteMuted, + /** + * + * @brief 远端用户恢复发送视频流或远端用户启用视频模块 + */ + + kRemoteVideoStateChangeReasonRemoteUnmuted, + /** + * + * @brief 远端用户离开房间。 + */ + + kRemoteVideoStateChangeReasonRemoteOffline, +}; + +/** + * + * @type keytype + * @brief 黑帧视频流状态 + */ + +enum SEIStreamEventType { + /** + * + * @brief 远端用户发布黑帧视频流。
    + * 纯语音通话场景下,远端用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 发送 SEI 数据时,SDK 会自动发布一路黑帧视频流,并触发该回调。 + */ + + kSEIStreamEventTypeStreamAdd = 0, + /** + * + * @brief 远端黑帧视频流移除。该回调的触发时机包括:
    + * - 远端用户开启摄像头采集,由语音通话切换至视频通话,黑帧视频流停止发布; + * - 远端用户调用 sendSEIMessage{@link #IRTCEngine#sendSEIMessage} 后 1min 内未有 SEI 数据发送,黑帧视频流停止发布; + * - 远端用户调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 切换至自定义视频采集时,黑帧视频流停止发布。 + */ + + kSEIStreamEventTypeStreamRemove, +}; + +/** + * + * @type keytype + * @brief 性能回退相关数据 + */ + +struct SourceWantedData { + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入宽度;
    + * 如果开启了发送性能回退,此值表示当前推流的最大宽度。 + */ + + int width; + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入高度;
    + * 如果开启了发送性能回退,此值表示当前推流的最大高度。 + */ + + int height; + /** + * + * @brief 如果未开启发送性能回退,此值表示推荐的视频输入帧率,单位 fps;
    + * 如果开启了发送性能回退,此值表示当前推流的最大帧率,单位 fps。 + */ + + int frame_rate; +}; +/** + * + * @type keytype + * @brief 用户信息 + */ + +struct UserInfo { + /** + * + * @brief 用户 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + */ + + const char* uid = nullptr; + /** + * + * @brief 用户的额外信息,最大长度为 200 字节。会在 `onUserJoined` 中回调给远端用户。 + */ + + const char* extra_info = nullptr; +}; + +/** + * + * @type keytype + * @brief 通话相关的统计信息 + */ + +struct RtcRoomStats { + /** + * + * @brief 当前应用的上行丢包率,取值范围为 [0, 1] + */ + + float tx_lostrate; + /** + * + * @brief 当前应用的下行丢包率,取值范围为 [0, 1] + */ + + float rx_lostrate; + /** + * + * @brief 客户端到服务端数据传输的往返时延(单位 ms) + */ + + int rtt; + /** + * + * @brief 本地用户在本次通话中的参与时长,单位为 s + */ + + unsigned int duration; + /** + * + * @brief 本地用户的总发送字节数 (bytes),累计值 + */ + + unsigned int tx_bytes; + /** + * + * @brief 本地用户的总接收字节数 (bytes),累计值 + */ + + unsigned int rx_bytes; + /** + * + * @brief 发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_kbitrate; + /** + * + * @brief 接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_kbitrate; + /** + * + * @brief 音频接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_audio_kbitrate; + /** + * + * @brief 音频包的发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_audio_kbitrate; + /** + * + * @brief 视频接收码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short rx_video_kbitrate; + /** + * + * @brief 视频发送码率(kbps),获取该数据时的瞬时值 + */ + + unsigned short tx_video_kbitrate; + /** + * + * @brief 屏幕接收码率,获取该数据时的瞬时值,单位为 Kbps + */ + + unsigned short rx_screen_kbitrate; + /** + * + * @brief 屏幕发送码率,获取该数据时的瞬时值,单位为 Kbps + */ + + unsigned short tx_screen_kbitrate; + /** + * + * @brief 当前房间内的可见用户人数 + */ + + unsigned int user_count; + /** + * + * @brief 当前应用的 CPU 使用率 (%) + */ + + double cpu_app_usage; + /** + * + * @hidden currently not available + * @brief 当前系统的 CPU 使用率 (%) + */ + + double cpu_total_usage; + /** + * + * @hidden currently not available + * @brief 系统上行网络抖动(ms) + */ + + int tx_jitter; + /** + * + * @hidden currently not available + * @brief 系统下行网络抖动(ms) + */ + + int rx_jitter; + /** + * + * @brief 蜂窝路径发送的码率 (kbps),为获取该数据时的瞬时值 + */ + + unsigned short tx_cellular_kbitrate; + /** + * + * @brief 蜂窝路径接收码率 (kbps),为获取该数据时的瞬时值 + */ + + unsigned short rx_cellular_kbitrate; +}; + +/** + * + * @type keytype + * @brief 视频的编码类型 + */ + +enum VideoCodecType { + /** + * + * @brief 未知类型 + */ + + kVideoCodecTypeUnknown = 0, + /** + * + * @brief 标准 H264 编码格式 + */ + + kVideoCodecTypeH264 = 1, + /** + * + * @brief ByteVC1 编码格式 + */ + + kVideoCodecTypeByteVC1 = 2, +}; + + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分模式。 + */ + +enum VideoSuperResolutionMode { + /** + * + * @brief 关闭超分。 + */ + + kVideoSuperResolutionModeOff = 0, + /** + * + * @brief 开启超分。 + */ + + kVideoSuperResolutionModeOn = 1, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式。 + */ + +enum VideoDenoiseMode { + /** + * + * @brief 视频降噪关闭。 + */ + + kVideoDenoiseModeOff = 0, + /** + * + * @brief 视频降噪开启,由 ByteRTC 后台配置视频降噪算法。 + */ + + kVideoDenoiseModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 本地音频流统计信息,统计周期为 2s 。
    + * 本地用户发布音频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知用户发布的音频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalAudioStats { + /** + * + * @brief 音频丢包率。此次统计周期内的音频上行丢包率,取值范围为 [0, 1]。 + */ + + float audio_loss_rate; + /** + * + * @brief 发送码率。此次统计周期内的音频发送码率,单位为 kbps 。 + */ + + int send_kbitrate; + /** + * + * @brief 采集采样率。此次统计周期内的音频采集采样率信息,单位为 Hz 。 + */ + + int record_sample_rate; + /** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 往返时延。单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 音频声道数。 + */ + + int num_channels; + /** + * + * @brief 音频发送采样率。此次统计周期内的音频发送采样率信息,单位为 Hz 。 + */ + + int sent_sample_rate; + /** + * + * @brief 音频上行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @brief 音频设备采集播放时延,单位为 ms 。 + */ + + int audio_device_loop_delay; + /** + * + * @brief 音频编码帧率。 + */ + + double encode_frame_rate; +}; + +/** + * + * @type keytype + * @brief 远端音频流统计信息,统计周期为 2s。
    + * 本地用户订阅远端音频流成功后,SDK 会周期性地通过 `onRemoteStreamStats` 通知本地用户订阅的音频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteAudioStats { + /** + * + * @brief 音频丢包率。统计周期内的音频下行丢包率,取值范围为 [0, 1] 。 + */ + + float audio_loss_rate; + /** + * + * @brief 接收码率。统计周期内的音频接收码率,单位为 kbps 。 + */ + + int received_kbitrate; + /** + * + * @brief 音频卡顿次数。统计周期内的卡顿次数。 + */ + + int stall_count; + /** + * + * @brief 音频卡顿时长。统计周期内的卡顿时长,单位为 ms 。 + */ + + int stall_duration; + /** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + + long e2e_delay; + /** + * + * @brief 播放采样率。统计周期内的音频播放采样率信息,单位为 Hz 。 + */ + + int playout_sample_rate; + /** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。 + */ + + int stats_interval; + /** + * + * @brief 客户端到服务端数据传输的往返时延,单位为 ms。 + */ + + int rtt; + /** + * + * @brief 发送端——服务端——接收端全链路数据传输往返时延。单位为 ms 。 + */ + + int total_rtt; + /** + * + * @brief 远端用户发送的音频流质量。远端用户发送的音频流质量。值含义参考 NetworkQuality{@link #NetworkQuality}。 + */ + + int quality; + /** + * + * @brief 因引入 jitter buffer 机制导致的延时。单位为 ms 。 + */ + + int jitter_buffer_delay; + /** + * + * @brief 音频声道数。 + */ + + int num_channels; + /** + * + * @brief 音频接收采样率。统计周期内接收到的远端音频采样率信息,单位为 Hz 。 + */ + + int received_sample_rate; + /** + * + * @brief 远端用户在加入房间后发生音频卡顿的累计时长占音频总有效时长的百分比。音频有效时长是指远端用户进房发布音频流后,除停止发送音频流和禁用音频模块之外的音频时长。 + */ + + int frozen_rate; + /** + * + * @brief 音频丢包补偿(PLC) 样点总个数。 + */ + + int concealed_samples; + /** + * + * @brief 音频丢包补偿(PLC) 累计次数。 + */ + + int concealment_event; + /** + * + * @brief 音频解码采样率。统计周期内的音频解码采样率信息,单位为 Hz 。 + */ + + int dec_sample_rate; + /** + * + * @brief 此次订阅中,对远端音频流进行解码的累计耗时。单位为 s。 + */ + + int dec_duration; + /** + * + * @brief 音频下行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @brief 音频解码帧率。 + */ + + double decode_frame_rate; +}; + +/** + * + * @type keytype + * @brief 本地视频流统计信息,统计周期为 2s 。
    + * 本地用户发布视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知用户发布的视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalVideoStats { + /** + * + * @brief 发送码率。此次统计周期内实际发送的分辨率最大的视频流的发送码率,单位为 Kbps + */ + + int sent_kbitrate; + /** + * + * @brief 采集帧率。此次统计周期内的视频采集帧率,单位为 fps 。 + */ + + int input_frame_rate; + /** + * + * @brief 发送帧率。此次统计周期内实际发送的分辨率最大的视频流的视频发送帧率,单位为 fps 。 + */ + + int sent_frame_rate; + /** + * + * @brief 编码器输出帧率。当前编码器在此次统计周期内实际发送的分辨率最大的视频流的输出帧率,单位为 fps 。 + */ + + int encoder_output_frame_rate; + /** + * + * @brief 本地渲染帧率。此次统计周期内的本地视频渲染帧率,单位为 fps 。 + */ + + int renderer_output_frame_rate; + /** + * + * @brief 统计间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 视频丢包率。此次统计周期内的视频上行丢包率,取值范围为 [0, 1] 。 + */ + + float video_loss_rate; + /** + * + * @brief 往返时延,单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 视频编码码率。此次统计周期内的实际发送的分辨率最大的视频流视频编码码率,单位为 Kbps 。 + */ + + int encoded_bitrate; + /** + * + * @brief 实际发送的分辨率最大的视频流的视频编码宽度,单位为 px 。 + */ + + int encoded_frame_width; + /** + * + * @brief 实际发送的分辨率最大的视频流的视频编码高度,单位为 px 。 + */ + + int encoded_frame_height; + /** + * + * @brief 此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数。 + */ + + int encoded_frame_count; + /** + * + * @brief 视频的编码类型,具体参考 VideoCodecType{@link #VideoCodecType} 。 + */ + + VideoCodecType codec_type; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 视频上行网络抖动,单位为 ms 。 + */ + + int jitter; + /** + * + * @hidden(Windows, Linux, macOS) for internal use + * @brief 视频降噪模式。具体参看 VideoDenoiseMode{@link #VideoDenoiseMode} 。 + */ + + VideoDenoiseMode video_denoise_mode; + /** + * + * @brief 视频编码平均耗时,单位 ms。 + */ + + int codec_elapse_per_frame; + +}; + +/** + * + * @type keytype + * @brief 远端视频流统计信息,统计周期为 2s 。
    + * 本地用户订阅远端视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteVideoStats { + /** + * + * @brief 视频宽度 + */ + + int width; + /** + * + * @brief 视频高度 + */ + + int height; + /** + * + * @brief 视频丢包率。统计周期内的视频下行丢包率,取值范围: [0, 1] 。 + */ + + float video_loss_rate; + /** + * + * @brief 接收码率。统计周期内的视频接收码率,单位为 kbps 。 + */ + + int received_kbitrate; + /** + * + * @brief 解码器输出帧率。统计周期内的视频解码器输出帧率,单位 fps 。 + */ + + int decoder_output_frame_rate; + /** + * + * @brief 渲染帧率。统计周期内的视频渲染帧率,单位 fps 。 + */ + + int renderer_output_frame_rate; + /** + * + * @brief 卡顿次数。统计周期内的卡顿次数。 + */ + + int stall_count; + /** + * + * @brief 卡顿时长。统计周期内的视频卡顿总时长。单位 ms 。 + */ + + int stall_duration; + /** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + + long e2e_delay; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 统计间隔,此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,目前设置为 2s 。 + */ + + int stats_interval; + /** + * + * @brief 往返时延,单位为 ms 。 + */ + + int rtt; + /** + * + * @brief 远端用户在进房后发生视频卡顿的累计时长占视频总有效时长的百分比(%)。视频有效时长是指远端用户进房发布视频流后,除停止发送视频流和禁用视频模块之外的视频时长。 + */ + + int frozen_rate; + /** + * + * @brief 视频的编码类型,具体参考 VideoCodecType{@link #VideoCodecType} 。 + */ + + VideoCodecType codec_type; + /** + * + * @brief 对应多种分辨率的流的下标。 + */ + + int video_index; + /** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + + int jitter; + /** + * + * @hidden(Windows, Linux, macOS) for internal use + * @brief 远端视频超分模式,参看 VideoSuperResolutionMode{@link #VideoSuperResolutionMode}。 + */ + + VideoSuperResolutionMode super_resolution_mode; + /** + * + * @brief 视频解码平均耗时,单位 ms。 + */ + + int codec_elapse_per_frame; + /** + * + * @brief 用户体验级别的端到端延时。从发送端开始采集到接收端渲染完成的延时,单位为 ms 。 + */ + + int cap_to_render_delay; + /** + * + * @brief 音画同步差异,单位为 ms 。 + */ + + int av_sync_diff_ms; +}; + +/** + * + * @type keytype + * @brief 本地音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 本地用户发布音/视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的音/视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +struct LocalStreamStats { + /** + * + * @brief 本地设备发送音频流的统计信息,详见 LocalAudioStats{@link #LocalAudioStats} + */ + + LocalAudioStats audio_stats; + /** + * + * @brief 本地设备发送视频流的统计信息,详见 LocalVideoStats{@link #LocalVideoStats} + */ + + LocalVideoStats video_stats; + /** + * + * @brief 所属用户的媒体流上行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality local_tx_quality; + /** + * + * @brief 所属用户的媒体流下行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality local_rx_quality; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 用户订阅的远端音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 订阅远端用户发布音/视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端音/视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +struct RemoteStreamStats { + /** + * + * @brief 用户 ID 。音/视频来源的远端用户 ID 。 + */ + + const char* uid; + /** + * + * @brief 远端音频流的统计信息,详见 RemoteAudioStats{@link #RemoteAudioStats} + */ + + RemoteAudioStats audio_stats; + /** + * + * @brief 远端视频流的统计信息,详见 RemoteVideoStats{@link #RemoteVideoStats} + */ + + RemoteVideoStats video_stats; + /** + * + * @brief 所属用户的媒体流上行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality remote_tx_quality; + /** + * + * @brief 所属用户的媒体流下行网络质量,详见 NetworkQuality{@link #NetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use onNetworkQuality{@link #IRTCRoomEventHandler#onNetworkQuality} instead. + */ + + NetworkQuality remote_rx_quality; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈问题类型 + */ + +enum ProblemFeedbackOption : uint64_t { + /** + * + * @brief 没有问题 + */ + + kProblemFeedbackOptionNone = 0, + /** + * + * @brief 其他问题 + */ + + kProblemFeedbackOptionOtherMessage = (1ULL << 0), + /** + * + * @brief 连接失败 + */ + + kProblemFeedbackOptionDisconnected = (1ULL << 1), + /** + * + * @brief 耳返延迟大 + */ + + kProblemFeedbackOptionEarBackDelay = (1ULL << 2), + + /** + * + * @brief 本端有杂音 + */ + + kProblemFeedbackOptionLocalNoise = (1ULL << 10), + /** + * + * @brief 本端声音卡顿 + */ + + kProblemFeedbackOptionLocalAudioLagging = (1ULL << 11), + /** + * + * @brief 本端无声音 + */ + + kProblemFeedbackOptionLocalNoAudio = (1ULL << 12), + /** + * + * @brief 本端声音大/小 + */ + + kProblemFeedbackOptionLocalAudioStrength = (1ULL << 13), + /** + * + * @brief 本端有回声 + */ + + kProblemFeedbackOptionLocalEcho = (1ULL << 14), + /** + * + * @brief 本端视频模糊 + */ + + kProblemFeedbackOptionLocalVideoFuzzy = (1ULL << 24), + /** + * + * @brief 本端音视频不同步 + */ + + kProblemFeedbackOptionLocalNotSync = (1ULL << 25), + /** + * + * @brief 本端视频卡顿 + */ + + kProblemFeedbackOptionLocalVideoLagging = (1ULL << 26), + /** + * + * @brief 本端无画面 + */ + + kProblemFeedbackOptionLocalNoVideo = (1ULL << 27), + + /** + * + * @brief 远端有杂音 + */ + + kProblemFeedbackOptionRemoteNoise = (1ULL << 37), + /** + * + * @brief 远端声音卡顿 + */ + + kProblemFeedbackOptionRemoteAudioLagging = (1ULL << 38), + /** + * + * @brief 远端无声音 + */ + + kProblemFeedbackOptionRemoteNoAudio = (1ULL << 39), + /** + * + * @brief 远端声音大/小 + */ + + kProblemFeedbackOptionRemoteAudioStrength = (1ULL << 40), + /** + * + * @brief 远端有回声 + */ + + kProblemFeedbackOptionRemoteEcho = (1ULL << 41), + + /** + * + * @brief 远端视频模糊 + */ + + kProblemFeedbackOptionRemoteVideoFuzzy = (1ULL << 51), + /** + * + * @brief 远端音视频不同步 + */ + + kProblemFeedbackOptionRemoteNotSync = (1ULL << 52), + /** + * + * @brief 远端视频卡顿 + */ + + kProblemFeedbackOptionRemoteVideoLagging = (1ULL << 53), + /** + * + * @brief 远端无画面 + */ + + kProblemFeedbackOptionRemoteNoVideo = (1ULL << 54), +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈的房间信息 + */ + +struct ProblemFeedbackRoomInfo { + /** + * + * @brief 房间 ID。 + */ + + const char* room_id = nullptr; + + /** + * + * @brief 本地用户 ID。 + */ + + const char* user_id = nullptr; +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈的信息 + */ + +struct ProblemFeedbackInfo { + /** + * + * @brief 预设问题以外的其他问题的具体描述。 + */ + + const char* problem_desc = nullptr; + + /** + * + * @type keytype + * @brief 音视频质量反馈的房间信息。查看 ProblemFeedbackRoomInfo{@link #ProblemFeedbackRoomInfo}。 + */ + + ProblemFeedbackRoomInfo* room_info = nullptr; + /** + * + * @type keytype + * @brief `FeedbackRoomInfo` 的数组长度。 + */ + + int room_info_count = 0; +}; + +/** + * + * @type keytype + * @brief 自定义加密类型 + */ + +enum EncryptType { + /** + * + * @brief 不使用加密。默认值。 + */ + + kEncryptTypeNone = 0, + /** + * + * @brief AES-128-CBC 加密算法 + */ + + kEncryptTypeAES128CBC = 1, + /** + * + * @brief AES-256-CBC 加密算法 + */ + + kEncryptTypeAES256CBC = 2, + /** + * + * @brief AES-128-ECB 加密算法 + */ + + kEncryptTypeAES128ECB = 3, + /** + * + * @brief AES-256-ECB 加密算法 + */ + + kEncryptTypeAES256ECB = 4 +}; +/** + * + * @type callback + * @brief 加密/解密处理函数
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 通话加密 + */ + +class IEncryptHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IEncryptHandler() { + } + /** + * + * @type api + * @brief 自定义加密。
    + * 使用设定的自定义加密方式,对编码后传输前的音视频帧数据进行加密。
    + * 暂不支持对原始音视频帧进行加密。 + * @param data 原始音视频帧数据 + * @param length 原始音视频帧数据的长度 + * @param buf 可供写入的加密后数据缓冲区 + * @param buf_len 可供写入的加密后数据缓冲区大小 + * @return 加密后的数据
    + * - ≥ 0:加密后实际写入缓冲区的数据大小 + * - 0:丢弃该帧 + * @note + * - 使用此接口进行自定义加密前,你必须先设置自定义加密方式,参看 `setCustomizeEncryptHandler`。 + * - 使用 onDecryptData{@link #IEncryptHandler#onDecryptData} 对已加密的音视频帧数据进行解密。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + + virtual unsigned int onEncryptData( + const unsigned char* data, unsigned int length, unsigned char* buf, unsigned int buf_len) = 0; + /** + * + * @type api + * @brief 自定义解密。
    + * 对自定义加密后的音视频帧数据进行解密。关于自定义加密,参看 onEncryptData{@link #IEncryptHandler#onEncryptData}。 + * @param data 原始音视频帧数据 + * @param length 原始音视频帧数据的长度 + * @param buf 可供写入的加密后数据缓冲区 + * @param buf_len 可供写入的加密后数据缓冲区大小 + * @return 加密后的数据
    + * - ≥ 0:加密后实际写入缓冲区的数据大小 + * - 0:丢弃该帧 + * @note + * - 使用此接口进行解密前,你必须先设定解密方式,参看 `setCustomizeEncryptHandler`。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + + virtual unsigned int onDecryptData( + const unsigned char* data, unsigned int length, unsigned char* buf, unsigned int buf_len) = 0; +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 用户信息 + */ + +struct RtcUser { + /** + * + * @brief 用户 id + */ + + const char* user_id; + /** + * + * @brief 元数据 + */ + + const char* meta_data; +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 首帧发送状态 + */ + +enum FirstFrameSendState { + /** + * + * @brief 发送中 + */ + + kFirstFrameSendStateSending = 0, + /** + * + * @brief 发送成功 + */ + + kFirstFrameSendStateSent = 1, + /** + * + * @brief 发送失败 + */ + + kFirstFrameSendStateEnd = 2, +}; + +/** + * + * @type keytype + * @region 房间管理 + * @brief 首帧播放状态 + */ + +enum FirstFramePlayState { + /** + * + * @brief 播放中 + */ + + kFirstFramePlayStatePlaying = 0, + /** + * + * @brief 播放成功 + */ + + kFirstFramePlayStatePlayed = 1, + /** + * + * @brief 播放失败 + */ + + kFirstFramePlayStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 音视频流的发送/播放状态 + */ + +enum MuteState { + /** + * + * @brief 发送 + */ + + kMuteStateOff = 0, + /** + * + * @brief 停止发送 + */ + + kMuteStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +enum StreamIndex { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的视频/音频; + * - 通过自定义采集,采集到的视频/音频。 + */ + + kStreamIndexMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。屏幕共享时共享的视频流,或来自声卡的本地播放音频流。 + */ + + kStreamIndexScreen = 1, + /** + * + * @hidden for internal use only + */ + + kStreamIndex3rd, + /** + * + * @hidden for internal use only + */ + + kStreamIndex4th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex5th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex6th, + /** + * + * @hidden for internal use only + */ + + kStreamIndex7th, + /** + * + * @hidden for internal use only + */ + + kStreamIndexMax, +}; + +/** + * + * @valid since 3.56 + * @type keytype + * @brief 流聚合策略 + */ + +enum AggregationOption { + /** + * + * @brief 流聚合向下取值 (默认策略) + */ + + kAggregationOptionMin = 0, + /** + * + * @brief 流聚合向上取值 + */ + + kAggregationOptionMax = 1, + /** + * + * @brief 流聚合按比例取值,比例相同时,向下取值 + */ + + kAggregationOptionMajority = 2, + +}; + +/** + * + * @type keytype + * @brief 远端流信息 + */ + +struct RemoteStreamKey { + /** + * + * @brief 媒体流所在房间的房间 ID。
    + * 如果此媒体流是通过 `startForwardStreamToRooms` 转发到你所在房间的媒体流时,你应将房间 ID 设置为你所在的房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 用户 ID + */ + + const char* user_id; + /** + * + * @brief 预留字段。 + */ + + StreamIndex stream_index; +}; + +/** + * + * @type keytype + * @brief 截图错误码 + */ + +enum SnapshotErrorCode { + /** + * + * @brief 截图成功。 + */ + + kSnapshotErrorCodeOk = 0, + /** + * + * @brief 截图错误。生成图片数据失败或 RGBA 编码失败。 + */ + + kSnapshotErrorCodeCreateFail = -1, + /** + * + * @brief 截图错误。流无效。 + */ + + kSnapshotErrorCodeStreamInvalid = -2, + /** + * + * @brief 截图错误。截图超时,超时时间 1 秒。 + */ + + kSnapshotErrorCodeTimeout = -3, + /** + * + * @brief 截图错误。图片保存失败。 + */ + + kSnapshotErrorCodeFileSaveError = -4 +}; +/** + * + * @type keytype + * @brief 本地录制文件的存储格式 + */ + +enum RecordingFileType { + /** + * + * @brief aac 格式文件 + */ + + kRecordingFileTypeAAC = 0, + /** + * + * @brief mp4 格式文件 + */ + + kRecordingFileTypeMP4 = 1, +}; + +/** + * + * @type keytype + * @brief 本地录制的状态 + */ + +enum RecordingState { + /** + * + * @brief 录制异常 + */ + + kRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + kRecordingStateProcessing = 1, + /** + * + * @brief 录制文件保存成功。正常调用 stopFileRecording 后触发。此外,若录制中途编码分辨率发生变更,SDK 会自动结束当前文件保存并触发此状态码,随后开启新一轮录制,直到调用停止录制。 + */ + + kRecordingStateSuccess = 2, +}; + +/** + * + * @type keytype + * @brief 本地录制的错误码 + */ + +enum RecordingErrorCode { + /** + * + * @brief 录制正常 + */ + + kRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + kRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 当前版本 SDK 不支持本地录制功能,请联系技术支持人员 + */ + + kRecordingErrorCodeNotSupport = -2, + /** + * + * @brief 其他异常 + */ + + kRecordingErrorCodeOther = -3, +}; + +/** + * + * @type keytype + * @brief 本地录制进度 + */ + +struct RecordingProgress { + /** + * + * @brief 当前文件的累计录制时长,单位:毫秒 + */ + + unsigned long long duration; + /** + * + * @brief 当前录制文件的大小,单位:byte + */ + + unsigned long long file_size; +}; + +/** + * + * @type keytype + * @brief 本地录制的详细信息 + */ + +struct RecordingInfo { + /** + * + * @brief 录制文件的绝对路径,包含文件名和文件后缀 + */ + + const char* file_path; + /** + * + * @brief 录制文件的视频编码类型,参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType video_codec_type; + /** + * + * @brief 录制视频的宽,单位:像素。纯音频录制请忽略该字段 + */ + + int width; + /** + * + * @brief 录制视频的高,单位:像素。纯音频录制请忽略该字段 + */ + + int height; +}; + +/** + * + * @type keytype + * @brief 本地录制参数配置 + */ + +struct RecordingConfig { + /** + * + * @brief 录制文件保存的绝对路径,需精确到文件夹,文件名由 RTC 自动生成。你需要确保对该路径具有读写权限。 + */ + + const char* dir_path; + /** + * + * @brief 录制存储文件格式,参看 RecordingFileType{@link #RecordingFileType} + */ + + RecordingFileType file_type; +}; + +/** + * + * @type keytype + * @brief 定义 linux 用户的用户功能 + */ + +enum UserWorkerType { + /** + * + * @brief 正常用户,没有任何特殊属性 + */ + + kUserWorkerTypeNormal = 0, + /** + * + * @brief 用户支持 SIP 流,信令只下发 SIP 流 + */ + + kUserWorkerTypeSupportSip = (1 << 0), + /** + * + * @brief 用户支持屏幕流的 bytevc1 到 H264 转码 + */ + + kUserWorkerTypeByteVc1Transcoder = (1 << 1), + /** + * + * @brief 用户需要信令服务器下发全量的用户列表和回调函数 + */ + + kUserWorkerTypeNeedUserListAndCb = (1 << 2), + /** + * + * @brief 用户需要在房间进入多人模式时获取房间内所有流的相关回调 + */ + + kUserWorkerTypeNeedStreamCallBack = (1 << 3), + /** + * + * @brief 用户选择设置不支持音频选路功能 + */ + + kUserWorkerTypeAudioSelectionExemption = (1 << 4), +}; + +/** + * + * @type keytype + * @brief 音视频同步状态 + */ + +enum AVSyncState { + /** + * + * @brief 音视频开始同步 + */ + + kAVSyncStateAVStreamSyncBegin = 0, + /** + * + * @brief 音视频同步过程中音频移除,但不影响当前的同步关系 + */ + + kAVSyncStateAudioStreamRemove, + /** + * + * @brief 音视频同步过程中视频移除,但不影响当前的同步关系 + */ + + kAVSyncStateVdieoStreamRemove, + /** + * + * @hidden for internal use only + * @brief 订阅端设置同步 + */ + + kAVSyncStateSetAVSyncStreamId, +}; + +/** + * + * @hidden + * @deprecated + * @type keytype + */ + +enum RtcRoomMode { + kRtcRoomNormalMode = 0, + kRtcRoomAudioSelectionMode = 1, +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的流类型 + */ + +enum SyncInfoStreamType { + /** + * + * @brief 音频流 + */ + + kSyncInfoStreamTypeAudio = 0 +}; + +/** + * + * @type keytype + * @brief 流属性。 + */ + +struct StreamInfo { + /** + * + * @brief 流 ID 。 + */ + + const char* stream_id; + /** + * + * @brief 房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 发布此流的用户 ID 。 + */ + + const char* user_id; + /** + * + * @hidden for internal use only + * @brief 该流的标识 ID,用户内唯一。 + */ + + int stream_index; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的相关配置 + */ + +struct StreamSyncInfoConfig { + /** + * + * @brief 消息发送的重复次数,取值范围是 [0,25],建议设置为 [3,5]。 + */ + + int repeat_count; + /** + * + * @brief 媒体流信息同步的流类型,见 SyncInfoStreamType{@link #SyncInfoStreamType} + */ + + SyncInfoStreamType stream_type; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +struct ForwardStreamInfo { + /** + * + * @brief 使用转发目标房间 roomID 和 UserID 生成 Token。
    + * 测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。
    + * 如果 Token 无效,转发失败。 + */ + + const char* token; + /** + * + * @brief 跨间转发媒体流过程中目标房间 ID + */ + + const char* room_id; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +struct ForwardStreamConfiguration { + /** + * + * @brief 目标房间信息,数组中的每个元素包含一个房间的信息。 + */ + + ForwardStreamInfo* forward_stream_dests = nullptr; + /** + * + * @brief 目标房间数量。媒体流同时转发的目标房间数量建议小于等于 4 个。 + */ + + int dest_count = 0; +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发状态 + */ + +enum ForwardStreamState { + /** + * + * @brief 空闲状态
    + * - 成功调用 `stopForwardStreamToRooms` 后,所有目标房间为空闲状态。 + * - 成功调用 `updateForwardStreamToRooms` 减少目标房间后,本次减少的目标房间为空闲状态。 + */ + + kForwardStreamStateIdle = 0, + /** + * + * @brief 开始转发
    + * - 调用 `startForwardStreamToRooms` 成功向所有房间开始转发媒体流后,返回此状态。 + * - 调用 `updateForwardStreamToRooms` 后,成功向新增目标房间开始转发媒体流后,返回此状态。 + */ + + kForwardStreamStateSuccess = 1, + /** + * + * @brief 转发失败,失败详情参考 ForwardStreamError{@link #ForwardStreamError}
    + * 调用 `startForwardStreamToRooms` 或 `updateForwardStreamToRooms` 后,如遇转发失败,返回此状态。 + */ + + kForwardStreamStateFailure = 2, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发过程中抛出的错误码 + */ + +enum ForwardStreamError { + /** + * + * @brief 正常 + */ + + kForwardStreamErrorOK = 0, + /** + * + * @brief 参数异常 + */ + + kForwardStreamErrorInvalidArgument = 1201, + /** + * + * @brief token 错误 + */ + + kForwardStreamErrorInvalidToken = 1202, + /** + * + * @brief 服务端异常 + */ + + kForwardStreamErrorResponse = 1203, + /** + * + * @brief 目标房间有相同 user id 的用户加入,转发中断 + */ + + kForwardStreamErrorRemoteKicked = 1204, + /** + * + * @brief 服务端不支持转发功能 + */ + + kForwardStreamErrorNotSupport = 1205, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发事件 + */ + +enum ForwardStreamEvent { + /** + * + * @brief 本端与服务器网络连接断开,暂停转发。 + */ + + kForwardStreamEventDisconnected = 0, + /** + * + * @brief 本端与服务器网络连接恢复,转发服务连接成功。 + */ + + kForwardStreamEventConnected = 1, + /** + * + * @brief 转发中断。转发过程中,如果相同 user_id 的用户进入目标房间,转发中断。 + */ + + kForwardStreamEventInterrupt = 2, + /** + * + * @brief 目标房间已更新,由 `updateForwardStreamToRooms` 触发。 + */ + + kForwardStreamEventDstRoomUpdated = 3, + /** + * + * @brief API 调用时序错误。例如,在调用 `startForwardStreamToRooms` 之前调用 `updateForwardStreamToRooms` 。 + */ + + kForwardStreamEventUnExpectAPICall = 4, +}; + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间的状态和错误信息 + */ + +struct ForwardStreamStateInfo { + /** + * + * @brief 跨间转发媒体流过程中目标房间 ID + */ + + const char* room_id; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间的状态,参看 ForwardStreamState{@link #ForwardStreamState} + */ + + ForwardStreamState state; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间抛出的错误码,参看 ForwardStreamError{@link #ForwardStreamError} + */ + + ForwardStreamError error; +}; + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间发生的事件 + */ + +struct ForwardStreamEventInfo { + /** + * + * @brief 跨房间转发媒体流过程中的发生该事件的目标房间 ID
    + * 空字符串代表所有目标房间 + */ + + const char* room_id; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间发生的事件,参看 ForwardStreamEvent{@link #ForwardStreamEvent} + */ + + ForwardStreamEvent event; +}; + +/** + * + * @type keytype + * @brief 水印图片相对视频流的位置和大小。 + */ + +struct ByteWatermark { + /** + * + * @hidden currently not available + */ + + const char* url = nullptr; + /** + * + * @brief 水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0,1)。 + */ + + float x; + /** + * + * @brief 水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0,1)。 + */ + + float y; + /** + * + * @brief 水印图片宽度与视频流宽度的比值,取值范围 [0,1)。 + */ + + float width; + /** + * + * @brief 水印图片高度与视频流高度的比值,取值范围为 [0,1)。 + */ + + float height; +}; + +/** + * + * @type keytype + * @brief 水印参数 + */ + +struct RTCWatermarkConfig { + /** + * + * @type keytype + * @brief 水印是否在视频预览中可见,默认可见。 + */ + + bool visible_in_preview = true; + /** + * + * @type keytype + * @brief 横屏时的水印位置和大小,参看 ByteWatermark{@link #ByteWatermark}。 + */ + + ByteWatermark position_in_landscape_mode; + /** + * + * @type keytype + * @brief 视频编码的方向模式为竖屏时的水印位置和大小,参看 ByteWatermark{@link #ByteWatermark}。 + */ + + ByteWatermark position_in_portrait_mode; +}; + +/** + * + * @type keytype + * @brief 设备的传输方式 + */ + +enum DeviceTransportType { + /** + * + * @brief 未知类型 + */ + + kDeviceTransportTypeUnknown = 0, + /** + * + * @brief 系统内置 + */ + + kDeviceTransportTypeBuiltIn = 1, + /** + * + * @brief 未知模式蓝牙 + */ + + kDeviceTransportTypeBlueToothUnknownMode = 2, + /** + * + * @brief 免提模式蓝牙 + */ + + kDeviceTransportTypeBlueToothHandsFreeMode = 3, + /** + * + * @brief 立体声模式蓝牙 + */ + + kDeviceTransportTypeBlueToothStereoMode = 4, + /** + * + * @brief 显示器/电视机音频设备 + */ + + kDeviceTransportTypeDisplayAudio = 5, + /** + * + * @brief 虚拟设备 + */ + + kDeviceTransportTypeVirtual = 6, + /** + * + * @brief USB 设备 + */ + + kDeviceTransportTypeUSB = 7, + /** + * + * @brief PCI 设备 + */ + + kDeviceTransportTypePCI = 8, + /** + * + * @brief AirPlay 设备 + */ + + kDeviceTransportTypeAirPlay = 9, + /** + * + * @brief 连续互通相机 + */ + + kDeviceTransportTypeContinuityCamera = 100, +}; + +/** + * + * @type keytype + * @brief 音视频回路测试结果 + */ + +enum class EchoTestResult { + /** + * + * @brief 接收到采集的音视频的回放,通话回路检测成功 + */ + + kTestSuccess = 0, + /** + * + * @brief 测试超过 60s 仍未完成,已自动停止 + */ + + kTestTimeout, + /** + * + * @brief 上一次测试结束和下一次测试开始之间的时间间隔少于 5s + */ + + kTestIntervalShort, + /** + * + * @brief 音频采集异常 + */ + + kAudioDeviceError, + /** + * + * @brief 视频采集异常 + */ + + kVideoDeviceError, + /** + * + * @brief 音频接收异常 + */ + + kAudioReceiveError, + /** + * + * @brief 视频接收异常 + */ + + kVideoReceiveError, + /** + * + * @brief 内部错误,不可恢复 + */ + + kInternalError +}; + +/** + * + * @type keytype + * @brief 音视频回路测试参数 + */ + +struct EchoTestConfig { + /** + * + * @brief 用于渲染接收到的视频的视图 + */ + + void* view; + /** + * + * @brief 是否检测音频。检测设备为系统默认音频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备麦克风会自动开启,并在 audioPropertiesReportInterval 值大于 0 时触发 `onLocalAudioPropertiesReport` 回调,你可以根据该回调判断麦克风的工作状态 + * - 若使用自定义采集,此时你需调用 pushExternalAudioFrame{@link #IRTCEngine#pushExternalAudioFrame} 将采集到的音频推送给 SDK + * - false:否 + */ + + bool enable_audio; + /** + * + * @brief 是否检测视频。PC 端默认检测列表中第一个视频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备摄像头会自动开启 + * - 若使用自定义采集,此时你需调用 pushExternalVideoFrame{@link #IRTCEngine#pushExternalVideoFrame} 将采集到的视频推送给 SDK + * - false:否 + * @note 视频的发布参数固定为:分辨率 640px × 360px,帧率 15fps。 + */ + + bool enable_video; + /** + * + * @brief 音量信息提示间隔,单位:ms,默认为 100ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + + int audio_properties_report_interval; + /** + * + * @brief 进行音视频通话回路测试的用户 ID + */ + + const char* uid; + /** + * + * @brief 测试用户加入的房间 ID。 + */ + + const char* room_id; + /** + * + * @brief 对用户进房时进行鉴权验证的动态密钥,用于保证音视频通话回路测试的安全性。 + */ + + const char* token; +}; + +/** + * + * @type keytype + * @brief 音频 dump 状态。 + */ + +enum AudioDumpStatus { + /** + * + * @brief 音频 dump 启动失败 + */ + + kAudioDumpStatusStartFailure = 0, + /** + * + * @brief 音频 dump 启动成功 + */ + + kAudioDumpStatusStartSuccess = 1, + /** + * + * @brief 音频 dump 停止失败 + */ + + kAudioDumpStatusStopFailure = 2, + /** + * + * @brief 音频 dump 停止成功 + */ + + kAudioDumpStatusStopSuccess = 3, + /** + * + * @brief 音频 dump 运行失败 + */ + + kAudioDumpStatusRunningFailure = 4, + /** + * + * @brief 音频 dump 运行成功 + */ + + kAudioDumpStatusRunningSuccess = 5, +}; + +/** + * + * @type errorcode + * @brief 开始探测的返回值
    + * `startNetworkDetection` 返回对象类型 + */ + +enum NetworkDetectionStartReturn { + /** + * + * @brief 成功开启网络探测。 + */ + + kNetworkDetectionStartReturnSuccess = 0, + /** + * + * @brief 开始探测失败。参数错误,上下行探测均为 `false`,或期望带宽超过了范围 [100,10000] + */ + + kNetworkDetectionStartReturnParamErr = 1, + /** + * + * @brief 开始探测失败。失败原因为,本地已经开始推拉流 + */ + + kNetworkDetectionStartReturnStreaming = 2, + /** + * + * @brief 已经开始探测,无需重复开启 + */ + + kNetworkDetectionStartReturnStarted = 3, + /** + * + * @brief 不支持该功能 + */ + + kNetworkDetectionStartReturnNotSupport = 4, +}; + +/** + * + * @type keytype + * @brief 通话前探测的停止原因
    + * `onNetworkDetectionStopped` 回调的参数类型 + */ + +enum NetworkDetectionStopReason { + /** + * + * @brief 用户主动停止 + */ + + kNetworkDetectionStopReasonUser, + /** + * + * @brief 探测超过三分钟 + */ + + kNetworkDetectionStopReasonTimeout, + /** + * + * @brief 探测网络连接断开。
    当超过 12s 没有收到回复,SDK 将断开网络连接,并且不再尝试重连。 + */ + + kNetworkDetectionStopReasonConnectionLost, + /** + * + * @brief 本地开始推拉流,停止探测 + */ + + kNetworkDetectionStopReasonStreaming, + /** + * + * @brief 网络探测失败,内部异常 + */ + + kNetworkDetectionStopReasonInnerErr, +}; + +/** + * + * @type keytype + * @brief 通话前探测链接的类型。
    + * `onNetworkDetectionResult` 回调的参数类型 + */ + +enum NetworkDetectionLinkType { + /** + * + * @brief 上行网络探测 + */ + + kNetworkDetectionLinkTypeUp = 0, + /** + * + * @brief 下行网络探测 + */ + + kNetworkDetectionLinkTypeDown, +}; + +/** + * + * @type keytype + * @brief 网络时间信息 + */ + +struct NetworkTimeInfo { + /** + * + * @brief 网络时间,单位:ms + */ + + int64_t timestamp; + /** + * + * @hidden constructor/destructor + */ + + explicit NetworkTimeInfo(int64_t ts): timestamp(ts) { + } +}; + +/** + * + * @type keytype + * @brief 通话前回声检测结果 + */ + +enum HardwareEchoDetectionResult{ + /** + * + * @brief 主动调用 `stopHardwareEchoDetection` 结束流程时,未有回声检测结果。 + */ + + kHardwareEchoDetectionResultCanceled = 0, + /** + * + * @brief 未检测出结果。建议重试,如果仍然失败请联系技术支持协助排查。 + */ + + kHardwareEchoDetectionResultUnknown = 1, + /** + * + * @brief 无回声 + */ + + kHardwareEchoDetectionResultNormal = 2, + /** + * + * @brief 有回声。可通过 UI 建议用户使用耳机设备入会。 + */ + + kHardwareEchoDetectionResultPoor = 3, +}; + +/** + * + * @type keytype + * @brief 音频选路优先级设置 + */ + +enum AudioSelectionPriority { + /** + * + * @brief 正常,参加音频选路 + */ + + kAudioSelectionPriorityNormal = 0, + /** + * + * @brief 高优先级,跳过音频选路 + */ + + kAudioSelectionPriorityHigh = 1 +}; + +/** + * + * @type keytype + * @brief 设置房间附加消息结果。 + */ + +enum SetRoomExtraInfoResult { + /** + * + * @brief 设置房间附加信息成功 + */ + + kSetRoomExtraInfoResultSuccess = 0, + /** + * + * @brief 设置失败,尚未加入房间 + */ + + kSetRoomExtraInfoResultErrorNotJoinRoom = -1, + /** + * + * @brief 设置失败,key 指针为空 + */ + + kSetRoomExtraInfoResultErrorKeyIsNull = -2, + /** + * + * @brief 设置失败,value 指针为空 + */ + + kSetRoomExtraInfoResultErrorValueIsNull = -3, + /** + * + * @brief 设置失败,未知错误 + */ + + kSetRoomExtraInfoResultResultUnknow = -99, + /** + * + * @brief 设置失败,key 长度为 0 + */ + + kSetRoomExtraInfoResultErrorKeyIsEmpty = -400, + /** + * + * @brief 调用 `setRoomExtraInfo` 过于频繁,建议不超过 10 次/秒。 + */ + + kSetRoomExtraInfoResultErrorTooOften = -406, + /** + * + * @brief 设置失败,用户已调用 `setUserVisibility` 将自身设为隐身状态。 + */ + + kSetRoomExtraInfoResultErrorSilentUser = -412, + /** + * + * @brief 设置失败,Key 长度超过 10 字节 + */ + + kSetRoomExtraInfoResultErrorKeyTooLong = -413, + /** + * + * @brief 设置失败,value 长度超过 128 字节 + */ + + kSetRoomExtraInfoResultErrorValueTooLong = -414, + /** + * + * @brief 设置失败,服务器错误 + */ + + kSetRoomExtraInfoResultErrorServer = -500 +}; +/** + * + * @type keytype + * @brief 字幕任务状态。 + */ + +enum SubtitleState { + /** + * + * @brief 开启字幕。 + */ + + kSubtitleStateStarted, + /** + * + * @brief 关闭字幕。 + */ + + kSubtitleStateStoped, + /** + * + * @brief 字幕任务出现错误。 + */ + + kSubtitleStateError +}; +/** + * + * @type keytype + * @brief 字幕模式。 + */ + +enum SubtitleMode { + /** + * + * @brief 识别模式。在此模式下,房间内用户语音会被转为文字。 + */ + + kSubtitleModeRecognition = 0, + /** + * + * @brief 翻译模式。在此模式下,房间内用户语音会先被转为文字,再被翻译为目标语言。 + */ + + kSubtitleModeTranslation +}; +/** + * + * @type errorcode + * @brief 字幕任务错误码。 + */ + +enum SubtitleErrorCode { + /** + * + * @brief 客户端无法识别云端媒体处理发送的错误码。请联系技术支持。 + */ + + kSubtitleErrorCodeUnknow = -1, + /** + * + * @brief 字幕已开启。 + */ + + kSubtitleErrorCodeSuccess, + /** + * + * @brief 云端媒体处理内部出现错误,请联系技术支持。 + */ + + kSubtitleErrorCodePostProcessError, + /** + * + * @brief 第三方服务连接失败,请联系技术支持。 + */ + + kSubtitleErrorCodeASRConnectionError, + /** + * + * @brief 第三方服务内部出现错误,请联系技术支持。 + */ + + kSubtitleErrorCodeASRServiceError, + /** + * + * @brief 未进房导致调用`startSubtitle`失败。请加入房间后再调用此方法。 + */ + + kSubtitleErrorCodeBeforeJoinRoom, + /** + * + * @brief 重复调用 `startSubtitle`。 + */ + + kSubtitleErrorCodeAlreadyOn, + /** + * + * @brief 用户选择的目标语言目前暂不支持。 + */ + + kSubtitleErrorCodeUnsupportedLanguage, + /** + * + * @brief 云端媒体处理超时未响应,请联系技术支持。 + */ + + kSubtitleErrorCodePostProcessTimeout +}; +/** + * + * @type keytype + * @brief 字幕配置信息。 + */ + +struct SubtitleConfig { + /** + * + * @brief 字幕模式。可以根据需要选择识别和翻译两种模式。开启识别模式,会将识别后的用户语音转化成文字;开启翻译模式,会在语音识别后进行翻译。参看 SubtitleMode{@link #SubtitleMode}。 + */ + + SubtitleMode mode = kSubtitleModeRecognition; + /** + * + * @brief 目标翻译语言。可点击 [语言支持](https: + */ + + const char* target_language = ""; +}; +/** + * + * @type keytype + * @brief 字幕具体内容。 + */ + +struct SubtitleMessage { + /** + * + * @brief 说话者的用户 ID。 + */ + + const char* user_id; + /** + * + * @brief 字幕文本, 采用 UTF-8 编码。 + */ + + const char* text; + /** + * + * @brief 字幕语种,根据字幕模式为原文或译文对应的语种。 + */ + + const char* language; + /** + * + * @brief 字幕模式,参看 SubtitleMode{@link #SubtitleMode}。 + */ + + SubtitleMode mode; + /** + * + * @brief 字幕文本序列号,同一发言人的完整发言和不完整发言会按递增顺序单独分别编号。 + */ + + int sequence; + /** + * + * @brief 语音识别出的文本是否为一段完整的一句话。 True 代表是, False 代表不是。 + */ + + bool definite; +}; +/** + * + * @type keytype + * @hidden internal use only + * @brief 特效错误类型。 + */ + +enum EffectErrorType { + /** + * + * @hidden 仅用于会议 + * @brief 虚拟背景设置错误。 + */ + + kEffectErrorVirtualBackgroundFailure = 1, + /** + * + * @hidden 仅用于会议 + * @brief 特效独立进程崩溃。 + */ + + kEffectErrorChildProcTerminate, +}; + +/** + * + * @type render error code + * @hidden for internal use only + * @brief 渲染错误码。 + */ + +enum RenderError { + /** + * + * @brief 渲染正常 + */ + + kRenderErrorOk = 0, + /** + * + * @brief Android 外部直显时使用了内部 surface + */ + + kRenderErrorUsingInternalSurface = -1, + /** + * + * @brief 设置 Android 外部直显时使用软解 + */ + + kRenderErrorUsingSoftwareDecoder = -2, + +}; + +/** + * + * @type keytype + * @brief 线程 block 信息,包含 block_session_id, 线程等待链,是否卡住了 rtc 主线程 + * @hidden internal use only + */ + +struct DeadLockMsg { + const char* block_session_id; + const char* blocking_paths; + bool is_critical; +}; + + +/** + * + * @type keytype + * @brief AVSync 事件类型 + */ + +enum AVSyncEvent { + /** + * + * @brief 音视频同步失败。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。 + */ + + kAVSyncEventInvalidUidRepeated +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人声检测结果 + */ + +enum AudioVADType { + /** + * + * @brief 未检测到人声 + */ + + kAudioVADTypeNoSpeech = 0, + + /** + * + * @brief 检测到人声。 + */ + + kAudioVADTypeSpeech = 1, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 音乐场景检测结果 + */ + +enum AudioAEDType { + /** + * + * @brief 未检测到音乐场景 + */ + + kAudioAEDTypeNoMusic = 0, + /** + * + * @brief 检测到音乐场景。 + */ + + kAudioAEDTypeMusic = 1, +}; + +class IVideoSource { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoSource() { + } +}; + +class IAudioSource { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IAudioSource() { + } +}; + + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h new file mode 100644 index 0000000..2e85f04 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_media_player.h @@ -0,0 +1,588 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Audio Effect Player +*/ +#pragma once + +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type callback + * @brief 本地音频文件混音的音频帧观察者。 + * @list 自定义流处理 + */ + +class IMediaPlayerAudioFrameObserver { +public: + /** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param player_id 播放器 ID + * @param frame 参看 IAudioFrame{@link #IAudioFrame}。 + * @list 混音 + */ + + virtual void onFrame(int player_id, const IAudioFrame& frame) = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~IMediaPlayerAudioFrameObserver() { + } +}; +/** + * + * @type keytype + * @brief 自定义音频源模式 + */ + +enum MediaPlayerCustomSourceMode{ + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceModePush = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceModePull, +}; + +/** + * + * @type keytype + * @brief 音频数据的起始读取位置。 + */ + +enum MediaPlayerCustomSourceSeekWhence{ + /** + * + * @brief 从音频数据的头开始读取,读取的实际偏移量为参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceSet = 0, + /** + * + * @brief 从音频数据的某一位置开始读取,读取的实际偏移量为音频数据当前的读取位置位置加上参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceCur = 1, + /** + * + * @brief 从音频数据的尾开始读取,读取的实际数据偏移量为用户传入的音频数据大小加上参数 offset 的值。 + */ + + kMediaPlayerCustomSourceSeekWhenceEnd = 2, + /** + * + * @brief 返回音频数据的大小。 + */ + + kMediaPlayerCustomSourceSeekWhenceSize = 3, +}; +/** + * + * @type keytype + * @brief 自定义音频流类型 + */ + +enum MediaPlayerCustomSourceStreamType{ + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceStreamTypeRaw = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + kMediaPlayerCustomSourceStreamTypeEncoded, +}; +/** + * + * @type callback + * @brief 内存播放数据源回调 + * @list 自定义流处理 + */ + +class IMediaPlayerCustomSourceProvider { +public: + /** + * + * @valid since 3.53 + * @type callback + * @brief 调用 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口播放用户传入的内存音频数据时,会触发此回调,用户需要写入音频数据。 + * @param buffer 内存地址。在该地址中写入音频数据,写入音频数据的大小不超过 bufferSize 中填入的数值。支持的音频数据格式有: mp3,aac,m4a,3gp,wav。 + * @param buffer_size 音频数据大小,单位为字节。如果你想停止播放内存音频数据,可在 bufferSize 中填入小于或等于 0 的数,此时 SDK 会停止调用此接口。 + * @return 返回实际读取的音频数据大小。 + * @note 若 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口调用失败,请在 buffer 和 bufferSize 两个参数中填入 0。 此时 SDK 会停止调用此接口。 + * @list 混音 + */ + + virtual int onReadData(uint8_t *buffer, int buffer_size) = 0; + /** + * + * @valid since 3.53 + * @type callback + * @brief 根据设置好的内存音频数据的读取位置和读取偏移量对音频数据进行偏移,以便 SDK 读取和分析音频数据。
    + * 在调用 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 接口传入内存音频数据,或者调用 setPosition{@link #IMediaPlayer#setPosition} 设置了音频数据的起始播放位置后,SDK 会对音频数据进行读取和分析,此时会触发该回调,你需要根据参数中设置的起始读取位置和偏移量进行操作。 + * @param offset 音频数据读取偏移量,单位为字节,取值可正可负。 + * @param whence 音频数据的起始读取位置。参看 MediaPlayerCustomSourceSeekWhence{@link #MediaPlayerCustomSourceSeekWhence} + * @return + * 定位成功,返回偏移后的位置信息,或返回音频数据的大小。
    + * 定位失败,返回 -1。 + * @list 混音 + */ + + virtual int64_t onSeek(int64_t offset, MediaPlayerCustomSourceSeekWhence whence) = 0; + + virtual ~IMediaPlayerCustomSourceProvider() {} +}; +/** + * + * @type keytype + * @brief 音频源 + */ + +struct MediaPlayerCustomSource { + /** + * + * @hidden reserved for later use + */ + + IMediaPlayerCustomSourceProvider* provider = nullptr; + /** + * + * @type keytype + * @brief 数据源模式,详见 MediaPlayerCustomSourceMode{@link #MediaPlayerCustomSourceMode}。 + */ + + MediaPlayerCustomSourceMode mode = kMediaPlayerCustomSourceModePush; + /** + * + * @type keytype + * @brief 数据源类型,详见 MediaPlayerCustomSourceStreamType{@link #MediaPlayerCustomSourceStreamType} + */ + + MediaPlayerCustomSourceStreamType type = kMediaPlayerCustomSourceStreamTypeRaw; +}; +/** + * + * @type callback + * @brief IMediaPlayer{@link #IMediaPlayer} 对应的回调句柄。你必须调用 setEventHandler{@link #IMediaPlayer#setEventHandler} 完成设置后,才能收到对应回调。 + * @list Audio Mixing + */ + +class IMediaPlayerEventHandler { +public: + virtual ~IMediaPlayerEventHandler() {} + /** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param state 混音状态。参考 PlayerState{@link #PlayerState}。 + * @param error 错误码。参考 PlayerError{@link #PlayerError}。 + * @list 混音 + */ + + virtual void onMediaPlayerStateChanged(int player_id, PlayerState state, PlayerError error) = 0; + /** + * + * @type callback + * @brief 播放进度周期性回调。回调周期通过 setProgressInterval{@link #IMediaPlayer#setProgressInterval} 设置。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param progress 进度。单位 ms。 + * @list 混音 + */ + + virtual void onMediaPlayerPlayingProgress(int player_id, int64_t progress) = 0; + /** + * + * @valid since 3.59 + * @type callback + * @brief 播放事件回调。调用 selectAudioTrack{@link #IMediaPlayer#selectAudioTrack} 和 setPosition{@link #IMediaPlayer#setPosition} 后,会触发此回调。 + * @param player_id IMediaPlayer{@link #IMediaPlayer} 的 ID。通过 getMediaPlayer{@link #IRTCEngine#getMediaPlayer} 设置。 + * @param event 播放器事件。参看 PlayerEvent{@link #PlayerEvent}。 + * @param message 事件描述信息,可能为空。 + * @list 混音 + */ + + virtual void onMediaPlayerEvent(int player_id, PlayerEvent event, const char* message) = 0; +}; +/** + * + * @valid since 3.53 + * @type api + * @brief 音乐播放器
    + * 调用 setEventHandler{@link #IMediaPlayer#setEventHandler} 设置回调句柄以获取相关回调。 + * @list Audio Mixing + */ + +class IMediaPlayer { +public: + IMediaPlayer(){} + virtual ~IMediaPlayer() {} + /** + * + * @type api + * @brief 打开音乐文件。
    + * 一个播放器实例仅能够同时打开一个音乐文件。如果需要同时打开多个音乐文件,请创建多个音乐播放器实例。
    + * 要播放 PCM 格式的音频数据,参看 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource}。`openWithCustomSource` 和此 API 互斥。 + * @param file_path 音乐文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 详见 MediaPlayerConfig{@link #MediaPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int open(const char* file_path, const MediaPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 播放音乐。你仅需要在调用 open{@link #IMediaPlayer#open},且未开启自动播放时,调用此方法。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 要播放 PCM 格式的音频数据,参看 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource}。`openWithCustomSource` 和此 API 互斥。 + * - 调用本方法播放音频文件后,可调用 stop{@link #IMediaPlayer#stop} 方法暂停播放。 + * @list 混音 + */ + + virtual int start() = 0; + /** + * + * @type api + * @brief 启动音频裸数据混音。
    + * 要播放音乐文件,参看 open{@link #IMediaPlayer#open}。`open` 与此 API 互斥。 + * @param source 数据源,详见 MediaPlayerCustomSource{@link #MediaPlayerCustomSource} + * @param config 详见 MediaPlayerConfig{@link #MediaPlayerConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法启动后,再调用 pushExternalAudioFrame{@link #IMediaPlayer#pushExternalAudioFrame} 推送音频数据,才会开始混音。 + * - 如要结束 PCM 音频数据混音,调用 stop{@link #IMediaPlayer#stop}。 + * @list 混音 + */ + + virtual int openWithCustomSource(const MediaPlayerCustomSource& source, const MediaPlayerConfig& config) = 0; + /** + * + * @type api + * @brief 调用 open{@link #IMediaPlayer#open}, start{@link #IMediaPlayer#start}, 或 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 开始播放后,可以调用本方法停止。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @list 混音 + */ + + virtual int stop() = 0; + /** + * + * @type api + * @brief 调用 open{@link #IMediaPlayer#open},或 start{@link #IMediaPlayer#start} 开始播放音频文件后,调用本方法暂停播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法暂停播放后,可调用 resume{@link #IMediaPlayer#resume} 恢复播放。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int pause() = 0; + /** + * + * @type api + * @brief 调用 pause{@link #IMediaPlayer#pause} 暂停音频播放后,调用本方法恢复播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int resume() = 0; + /** + * + * @type api + * @brief 调节指定混音的音量大小,包括音乐文件混音和 PCM 混音。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @param type 详见 AudioMixingType{@link #AudioMixingType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * @list 混音 + */ + + virtual int setVolume(int volume, AudioMixingType type) = 0; + /** + * + * @type api + * @brief 获取当前音量 + * @param type 详见 AudioMixingType{@link #AudioMixingType}。 + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在音频播放进行状态时,调用此方法。包括音乐文件混音和 PCM 混音。 + * @list 混音 + */ + + virtual int getVolume(AudioMixingType type) = 0; + /** + * + * @type api + * @brief 获取音乐文件时长。 + * @return + * - >0: 成功, 音乐文件时长,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getTotalDuration() = 0; + /** + * + * @type api + * @brief 获取混音音乐文件的实际播放时长,单位为毫秒。 + * @return + * - >0: 实际播放时长。 + * - < 0: 失败。 + * @note + * - 实际播放时长指的是歌曲不受停止、跳转、倍速、卡顿影响的播放时长。例如,若歌曲正常播放到 1:30 时停止播放 30s 或跳转进度到 2:00, 随后继续正常播放 2 分钟,则实际播放时长为 3 分 30 秒。 + * - 仅在音频播放进行状态,且 setProgressInterval{@link #IMediaPlayer#setProgressInterval} 设置间隔大于 `0` 时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getPlaybackDuration() = 0; + /** + * + * @type api + * @brief 获取音乐文件播放进度。 + * @return + * - >0: 成功, 音乐文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getPosition() = 0; + /** + * + * @valid since 3.59 + * @type api + * @brief 获取播放器状态 + * @return 播放器当前状态,参看 PlayerState{@link #PlayerState}。 + * @note 仅在音频实例创建后,调用此方法。 + * @list 混音 + */ + + virtual PlayerState getState() = 0; + /** + * + * @type api + * @brief 开启变调功能,多用于 K 歌场景。 + * @param pitch 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音乐文件混音,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setAudioPitch(int pitch) = 0; + /** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param position 音乐文件起始播放位置,单位为毫秒。
    + * 你可以通过 getTotalDuration{@link #IMediaPlayer#getTotalDuration} 获取音乐文件总时长,position 的值应小于音乐文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 调用本接口后,会收到 onMediaPlayerEvent{@link #IMediaPlayerEventHandler#onMediaPlayerEvent} 回调。 + * @list 混音 + */ + + virtual int setPosition(int position) = 0; + /** + * + * @type api + * @brief 设置当前音乐文件的声道模式 + * @param mode 声道模式。默认的声道模式和源文件一致,详见 AudioMixingDualMonoMode{@link #AudioMixingDualMonoMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setAudioDualMonoMode(AudioMixingDualMonoMode mode) = 0; + /** + * + * @type api + * @brief 获取当前音乐文件的音轨数 + * @return + >= 0:成功,返回当前音乐文件的音轨数 + * - < 0:方法调用失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int getAudioTrackCount() = 0; + /** + * + * @type api + * @brief 指定当前音乐文件的播放音轨 + * @param index 指定的播放音轨,从 0 开始,取值范围为 `[0, getAudioTrackCount()-1]`。
    + * 设置的参数值需要小于 getAudioTrackCount{@link #IMediaPlayer#getAudioTrackCount} 的返回值 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * - 调用本接口后,会收到 onMediaPlayerEvent{@link #IMediaPlayerEventHandler#onMediaPlayerEvent} 回调。 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * @list 混音 + */ + + virtual int selectAudioTrack(int index) = 0; + /** + * + * @type api + * @brief 设置播放速度 + * @param speed 播放速度与原始文件速度的比例,单位:%,取值范围为 `[50,200]`,默认值为 100。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件可用,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setPlaybackSpeed(int speed) = 0; + /** + * + * @type api + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} 的间隔。 + * @param interval 时间间隔,单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int setProgressInterval(int64_t interval) = 0; + /** + * + * @type api + * @brief 如果你需要使用 enableVocalInstrumentBalance{@link #IRTCEngine#enableVocalInstrumentBalance} 对音频文件/PCM 音频数据设置音量均衡,你必须通过此接口传入其原始响度。 + * @param loudness 原始响度,单位:lufs,取值范围为 `[-70.0, 0.0]`。
    + * 当设置的值小于 -70.0lufs 时,则默认调整为 -70.0lufs,大于 0.0lufs 时,则不对该响度做音量均衡处理。默认值为 1.0lufs,即不做处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件和音频裸数据播放都可用。 + * @list 混音 + */ + + virtual int setLoudness(float loudness) = 0; + /** + * + * @type api + * @brief 注册回调句柄以在本地音乐文件混音时,收到相关回调。 + * @param observer 参看 IMediaPlayerAudioFrameObserver{@link #IMediaPlayerAudioFrameObserver}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + + virtual int registerAudioFrameObserver(IMediaPlayerAudioFrameObserver* observer) = 0; + /** + * + * @type api + * @brief 推送用于混音的 PCM 音频帧数据 + * @param audio_frame 音频帧,详见 IAudioFrame{@link #IAudioFrame}。
    + * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return + * - 0: 成功 + * - < 0: 失败 + * @note + * - 调用该方法前,须通过 openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} 启动外部音频流混音。 + * - 使用参考建议:首次推送数据,请在应用侧先缓存一定数据(如 200 毫秒),然后一次性推送过去;此后的推送操作定时 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * - 如果要暂停播放,暂停推送即可。 + * @list 混音 + */ + + virtual int pushExternalAudioFrame(IAudioFrame* audio_frame) = 0; + /** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 IMediaPlayerEventHandler{@link #IMediaPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + + virtual int setEventHandler(IMediaPlayerEventHandler* handler) = 0; + }; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h new file mode 100644 index 0000000..dfc8a26 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_panoramic_video_interface.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief panoramic video interface + */ + +#pragma once + +namespace bytertc { +/** + * + * @hidden for internal use only on Windows and Android + * @type keytype + * @brief 四元数表示的头部位姿信息
    + * q = xi + yj + zk + w,i^2 = j^2 = k^2 = −1 + */ + +typedef struct Quaternionf { + /** + * + * @brief x 坐标 + */ + + float x; + /** + * + * @brief y 坐标 + */ + + float y; + /** + * + * @brief z 坐标 + */ + + float z; + /** + * + * @brief 旋转角 + */ + + float w; +} Quaternionf; + +/** + * + * @hidden (Windows, Android) internal use only + * @type api + * @brief 全景视频接口实例 + */ + +class IPanoramicVideo { +public: + /** + * + * @type api + * @brief 更新接收者的头位姿四元数。RTC 将根据头位姿下发相应的 Tile 视频。 + * @param info 参考 Quaternionf{@link #Quaternionf}。 + */ + + virtual int updateQuaternionf(const Quaternionf& info) = 0; + + virtual ~IPanoramicVideo() = default; +}; +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h new file mode 100644 index 0000000..169500e --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_range_audio_interface.h @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief range audio interface + */ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 本地用户能收听到、且具有衰减效果的音频接收范围 + */ + +struct ReceiveRange { + /** + * + * @brief 能够接收语音、并且具有衰减效果的最小距离值,该值须 ≥ 0,但 ≤ max。
    + * 小于该值的范围内没有范围语音效果,即收听到的音频音量相同。 + */ + + int min; + /** + * + * @brief 能够收听语音的最大距离值,该值须 > 0 且 ≥ min。
    + * 当收听者和声源距离处于 [min, max) 之间时,收听到的音量根据距离呈衰减效果。
    + * 超出该值范围的音频将无法收听到。 + */ + + int max; +}; + +/** + * + * @type keytype + * @brief 空间音频音量随距离衰减模式 + */ + +enum AttenuationType { + /** + * + * @brief 不随距离衰减 + */ + + kAttenuationTypeNone = 0, + /** + * + * @brief 线性衰减,音量随距离增大而线性减小 + */ + + kAttenuationTypeLinear = 1, + /** + * + * @brief 指数型衰减,音量随距离增大进行指数衰减 + */ + + kAttenuationTypeExponential = 2, +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 范围语音接口实例 + * @list + */ + +class IRangeAudio { +public: + /** + * + * @type api + * @brief 开启/关闭范围语音功能。
    + * 范围语音是指,在同一 RTC 房间中设定的音频接收距离范围内,本地用户收听到的远端用户音频音量会随着远端用户的靠近/远离而放大/衰减;若远端用户在房间内的位置超出设定范围,则本地用户无法接收其音频。音频接收范围设置参看 updateReceiveRange{@link #IRangeAudio#updateReceiveRange}。 + * @param enable 是否开启范围语音功能:
    + * - true: 开启 + * - false: 关闭(默认) + * @note 该方法进房前后都可调用,为保证进房后范围语音效果的平滑切换,你需在该方法前先调用 updatePosition{@link #IRangeAudio#updatePosition} 设置自身位置坐标,然后开启该方法收听范围语音效果。 + * @list 高级功能 + */ + + virtual void enableRangeAudio(bool enable) = 0; + /** + * + * @type api + * @brief 更新本地用户的音频收听范围。 + * @param range 音频收听范围,参看 ReceiveRange{@link #ReceiveRange}。 + * @return 方法调用结果:
    + * - 0:成功; + * - !0: 失败。 + * @list 高级功能 + */ + + virtual int updateReceiveRange(const ReceiveRange &range) = 0; + /** + * + * @type api + * @brief 更新本地用户在房间内空间直角坐标系中的位置坐标。 + * @param pos 三维坐标的值,默认为 [0, 0, 0],参看 Position{@link #Position} + * @return 方法调用结果:
    + * - 0:成功; + * - !0:失败。 + * @note + * - 调用该接口更新坐标后,你需调用 enableRangeAudio{@link #IRangeAudio#enableRangeAudio} 开启范围语音功能以收听范围语音效果。 + * @list 高级功能 + */ + + virtual int updatePosition(const Position &pos) = 0; + /** + * + * @type api + * @brief 设置范围语音的音量衰减模式。 + * @param type 音量衰减模式。默认为线性衰减。详见 AttenuationType{@link #AttenuationType}。 + * @param coefficient 指数衰减模式下的音量衰减系数,默认值为 1。范围 [0.1,100],推荐设置为 `50`。数值越大,音量的衰减速度越快。 + * @return 调用是否成功
    + * - `0`:调用成功 + * - `-1`:调用失败。原因为在调用 enableRangeAudio{@link #IRangeAudio#enableRangeAudio} 开启范围语音前或进房前调用本接口 + * @note 音量衰减范围通过 updateReceiveRange{@link #IRangeAudio#updateReceiveRange} 进行设置。 + * @list 高级功能 + */ + + virtual int setAttenuationModel(AttenuationType type, float coefficient) = 0; + /** + * + * @type api + * @brief 添加标签组,用于标记相互之间通话不衰减的用户组。
    + * 在同一个 RTC 房间中,如果多个用户的标签组之间有交集,那么,他们之间互相通话时,通话不衰减。
    + * 比如,用户身处多个队伍,队伍成员间通话不衰减。那么,可以为每个队伍绑定专属标签,每个用户的标签组包含用户所属各个队伍的标签。 + * @param flags 标签组 + * @param len 列表长度 + * @list 高级功能 + */ + + virtual void setNoAttenuationFlags(const char** flags, int len) = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~IRangeAudio() {} +}; +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h new file mode 100644 index 0000000..745263d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_rts_defines.h @@ -0,0 +1,1281 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Common Defines + */ + +#pragma once + +#ifdef WIN32 +#define BYTERTC_API extern "C" __declspec(dllexport) +#elif defined(__APPLE__) +#include +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) +#define BYTERTC_API __attribute__((__visibility__("default"))) extern "C" +#else +#define BYTERTC_API __attribute__((__visibility__("default"))) +#endif +#else +#define BYTERTC_API __attribute__((__visibility__("default"))) +#endif + +#ifdef __GNUC__ +# define GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y)) +#else +# define GCC_VERSION_AT_LEAST(x,y) 0 +#endif + +#if GCC_VERSION_AT_LEAST(3,1) +# define BYTERTC_DEPRECATED __attribute__((deprecated)) +#elif defined(_MSC_VER) +# define BYTERTC_DEPRECATED __declspec(deprecated) +#else +# define BYTERTC_DEPRECATED +#endif + +#ifdef WIN32 +#define BYTERTC_STATIC_API __declspec(dllexport) +#elif defined(__APPLE__) +#include +#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#else +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#endif +#else +#define BYTERTC_STATIC_API __attribute__((__visibility__("default"))) +#endif + +#include +#include + +namespace bytertc { + + +/** + * + * @hidden currently not available + */ + +enum RtsReturnStatus { + + kRtsReturnStatusSuccess = 0, + + kRtsReturnStatusFailure = -1, + + kRtsReturnStatusParameterErr = -2, + + kRtsReturnStatusWrongState = -3, + + kRtsReturnStatusHasInRoom = -4, + + kRtsReturnStatusHasInLogin = -5, + + kRtsReturnStatusRoomIdInUse = -8, + +}; + +/** + * + * @type keytype + * @brief 用户离开房间的原因。 + */ + +enum UserOfflineReason { + /** + * + * @brief 远端用户调用 `leaveRoom` 方法退出房间。 + */ + + kUserOfflineReasonQuit = 0, + /** + * + * @brief 远端用户因网络等原因掉线。 + */ + + kUserOfflineReasonDropped = 1, + /** + * + * @brief 远端用户切换至隐身状态。 + */ + + kUserOfflineReasonSwitchToInvisible = 2, + /** + * + * @brief 远端用户被踢出房间。
    + * 因调用踢出用户的 OpenAPI,远端用户被踢出房间。 + */ + + kUserOfflineReasonKickedByAdmin = 3, +}; + +/** + * + * @type keytype + * @brief 用户加入房间的类型。 + */ + +enum JoinRoomType { + /** + * + * @brief 首次加入房间。用户手动调用 `joinRoom` 加入房间。 + */ + + kJoinRoomTypeFirst = 0, + /** + * + * @brief 重新加入房间。用户网络较差,失去与服务器的连接,进行重连时收到加入成功。 + */ + + kJoinRoomTypeReconnected = 1, +}; + +/** + * + * @type keytype + * @brief 用户登录的类型 + */ + +enum LoginType { + /** + * + * @brief 首次登录。用户手动调用 `login`,收到登录成功。 + */ + + kLoginTypeFirst = 0, + /** + * + * @brief 重连。用户网络较差,失去与服务器的连接,SDK 自动重连登录成功。 + */ + + kLoginTypeReconnected = 1, +}; + +/** + * + * @type errorcode + * @brief 登录结果
    + * 调用 `login` 登录的结果,会通过 `onLoginResult` 回调通知用户。 + */ + +enum LoginErrorCode { + /** + * + * @brief 调用 `login` 方法登录成功 + */ + + kLoginErrorCodeSuccess = 0, + /** + * + * @brief 调用 `login` 方法时使用的 Token 无效或过期失效,需要用户重新获取 Token。 + */ + + kLoginErrorCodeInvalidToken = -1000, + /** + * + * @brief 登录错误
    + * 调用 `login` 方法时发生未知错误导致登录失败,需要重新登录。 + */ + + kLoginErrorCodeLoginFailed = -1001, + /** + * + * @brief 调用 `login` 方法时传入的用户 ID 有问题。 + */ + + kLoginErrorCodeInvalidUserId = -1002, + /** + * + * @brief 调用 `login` 登录时服务端出错。 + */ + + kLoginErrorCodeServerError = -1003, + /** + * + * @brief 当前为受限模式,禁止 `login` 登录。 + */ + + kLoginErrorCodeLimitedMode = -1004, +}; + +/** + * + * @type keytype + * @brief 用户登出的原因 + */ + +enum LogoutReason { + /** + * + * @brief 用户主动退出
    + * 用户调用 `logout` 接口登出,或者销毁引擎登出。 + */ + + kLogoutReasonLogout = 0, + /** + * + * @brief 用户被动退出
    + * 另一个用户以相同 UserId 进行了 `login`,导致本端用户被踢出。 + */ + + kLogoutReasonDuplicateLogin = 1, +}; + +/** + * + * @type keytype + * @brief 用户在线状态。 + */ + +enum UserOnlineStatus { + /** + * + * @brief 对端用户离线
    + * 对端用户已调用 `logout`,或者没有调用 `login` 进行登录。 + */ + + kUserOnlineStatusOffline = 0, + /** + * + * @brief 对端用户在线
    + * 对端用户调用 `login` 登录,并且连接状态正常。 + */ + + kUserOnlineStatusOnline = 1, + /** + * + * @brief 无法获取对端用户在线状态
    + * 发生级联错误、对端用户在线状态异常时返回。 + */ + + kUserOnlineStatusUnreachable = 2, +}; + +/** + * + * @type keytype + * @brief 服务端消息发送结果回调内容 + */ + +struct ServerACKMsg { + /** + * + * @brief 回调消息长度 + */ + + int length; + /** + * + * @brief 回调消息内容 + */ + + char* ack_msg; +}; + +/** + * + * @type keytype + * @brief 消息类型 + */ + +enum MessageConfig { + /** + * + * @brief 低延时可靠有序消息 + */ + + kMessageConfigReliableOrdered = 0, + /** + * + * @brief 超低延时有序消息 + */ + + kMessageConfigUnreliableOrdered = 1, + /** + * + * @brief 超低延时无序消息 + */ + + kMessageConfigUnreliableUnordered = 2 +}; + +/** + * + * @type errorcode + * @brief 发送消息结果,成功或失败,及失败原因 + */ + +enum UserMessageSendResult { + /** + * + * @brief 发送消息成功。 + */ + + kUserMessageSendResultSuccess = 0, + /** + * + * @brief 消息发送失败。发送超时。 + */ + + kUserMessageSendResultTimeout = 1, + /** + * + * @brief 消息发送失败。连接断开,消息未发出。 + */ + + kUserMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 消息发送失败。找不到接收方。 + */ + + kUserMessageSendResultNoReceiver = 3, + /** + * + * @brief 消息发送失败。远端用户没有登录或进房。 + */ + + kUserMessageSendResultNoRelayPath = 4, + /** + * + * @brief 消息发送失败。超过 QPS 限制。 + */ + + kUserMessageSendResultExceedQPS = 5, + /** + * + * @brief 消息发送失败。应用服务器未收到客户端发送的消息。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + kUserMessageSendResultE2BSSendFailed = 17, + /** + * + * @brief 消息发送失败。应用服务器接收到了客户端发送的消息,但响应失败。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + kUserMessageSendResultE2BSReturnFailed = 18, + /** + * + * @brief 消息发送失败。消息发送方没有加入房间。 + */ + + kUserMessageSendResultNotJoin = 100, + /** + * + * @brief 消息发送失败。连接未完成初始化。 + */ + + kUserMessageSendResultInit = 101, + /** + * + * @brief 消息发送失败。没有可用的数据传输通道连接。 + */ + + kUserMessageSendResultNoConnection = 102, + /** + * + * @brief 消息发送失败。消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + kUserMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 消息发送失败。接收方用户 ID 为空。 + */ + + kUserMessageSendResultEmptyUser = 104, + /** + * + * @brief 消息发送失败。房间外或应用服务器消息发送方没有登录。 + */ + + kUserMessageSendResultNotLogin = 105, + /** + * + * @brief 消息发送失败。发送消息给业务方服务器之前没有设置参数。 + */ + + kUserMessageSendResultServerParamsNotSet = 106, + /** + * + * @brief 消息发送失败。未知错误。 + */ + + kUserMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief 房间内广播消息发送结果 + */ + +enum RoomMessageSendResult { + /** + * + * @brief 消息发送成功 + */ + + kRoomMessageSendResultSuccess = 200, + /** + * + * @brief 发送超时,没有发送 + */ + + kRoomMessageSendResultTimeout = 1, + /** + * + * @brief 通道断开,没有发送 + */ + + kRoomMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 超过 QPS 限制 + */ + + kRoomMessageSendResultExceedQPS = 5, + /** + * + * @brief 失败,发送方未加入房间 + */ + + kRoomMessageSendResultNotJoin = 100, + /** + * + * @brief 失败,没有可用的数据传输通道连接 + */ + + kRoomMessageSendResultNoConnection = 102, + /** + * + * @brief 失败。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + kRoomMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 失败,未知错误 + */ + + kRoomMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief SDK 与信令服务器连接状态。 + */ + +enum ConnectionState { + /** + * + * @brief 连接断开超过 12s,此时 SDK 会尝试自动重连。 + */ + + kConnectionStateDisconnected = 1, + /** + * + * @brief 首次请求建立连接,正在连接中。 + */ + + kConnectionStateConnecting = 2, + /** + * + * @brief 首次连接成功。 + */ + + kConnectionStateConnected = 3, + /** + * + * @brief 涵盖了以下情况:
    + * - 首次连接时,10 秒连接不成功; + * - 连接成功后,断连 10 秒。自动重连中。 + */ + + kConnectionStateReconnecting = 4, + /** + * + * @brief 连接断开后,重连成功。 + */ + + kConnectionStateReconnected = 5, + /** + * + * @brief 处于 `kConnectionStateDisconnected` 状态超过 10 秒,且期间重连未成功。SDK 仍将继续尝试重连。 + */ + + kConnectionStateLost = 6, + /** + * + * @brief 连接失败,服务端状态异常。SDK 不会自动重连,请重新进房,或联系技术支持。 + */ + + kConnectionStateFailed = 7, +}; + +/** + * + * @type keytype + * @brief 媒体流网络质量。 + */ + +enum NetworkQuality { + /** + * + * @brief 网络质量未知。 + */ + + kNetworkQualityUnknown = 0, + /** + * + * @brief 网络质量极好。 + */ + + kNetworkQualityExcellent, + /** + * + * @brief 主观感觉和 kNetworkQualityExcellent 差不多,但码率可能略低。 + */ + + kNetworkQualityGood, + /** + * + * @brief 主观感受有瑕疵但不影响沟通。 + */ + + kNetworkQualityPoor, + /** + * + * @brief 勉强能沟通但不顺畅。 + */ + + kNetworkQualityBad, + /** + * + * @brief 网络质量非常差,基本不能沟通。 + */ + + kNetworkQualityVbad, + /** + * + * @brief 网络连接断开,无法通话。网络可能由于 12s 内无应答、开启飞行模式、拔掉网线等原因断开。
    + * 更多网络状态信息参见 [连接状态提示](https: + */ + + kNetworkQualityDown, +}; + +/** + * + * @type keytype + * @brief SDK 网络连接类型。 + */ + +enum NetworkType { + /** + * + * @brief 网络连接类型未知。 + */ + + kNetworkTypeUnknown = -1, + /** + * + * @brief 网络连接已断开。 + */ + + kNetworkTypeDisconnected = 0, + /** + * + * @brief 网络连接类型为 LAN 。 + */ + + kNetworkTypeLAN = 1, + /** + * + * @brief 网络连接类型为 Wi-Fi(包含热点)。 + */ + + kNetworkTypeWIFI = 2, + /** + * + * @brief 网络连接类型为 2G 移动网络。 + */ + + kNetworkTypeMobile2G = 3, + /** + * + * @brief 网络连接类型为 3G 移动网络。 + */ + + kNetworkTypeMobile3G = 4, + /** + * + * @brief 网络连接类型为 4G 移动网络。 + */ + + kNetworkTypeMobile4G = 5, + /** + * + * @brief 网络连接类型为 5G 移动网络。 + */ + + kNetworkTypeMobile5G = 6, +}; + +/** + * + * @type errorcode + * @brief 回调错误码。 + */ + +enum RtsErrorCode { + /** + * + * @brief Token 无效。
    + * 进房时使用的 Token 无效或过期失效。需要用户重新获取 Token,并调用 `updateToken` 方法更新 Token。 + */ + + kRtsErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + kRtsErrorCodeJoinRoom = -1001, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间 + */ + + kRtsErrorCodeDuplicateLogin = -1004, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间 + */ + + kRtsErrorCodeKickedOut = -1006, + /** + * + * @brief 当调用 `createRTCRoom` ,如果 roomid 非法,会返回 null,并抛出该 error + */ + + kRtsRoomErrorCodeRoomIdIllegal = -1007, + /** + * + * @brief Token 过期。调用 `joinRoom` 使用新的 Token 重新加入房间。 + */ + + kRtsRoomErrorTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken` 传入的 Token 无效 + */ + + kRtsRoomErrorUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。 + */ + + kRtsErrorCodeRoomDismiss = -1011, + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了 + */ + + kRtsErrorCodeRoomAlreadyExist = -1013, + /** + * + * @brief 同一个引擎实例在进入多个房间时设置的用户名必须相同 + */ + + kRtsErrorCodeUserIDDifferent = -1014, + /** + * + * @brief 服务端异常状态导致退出房间。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + kRtsErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + */ + + kRtsErrorCodeInternalDeadLockNotify = -1111, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 onRoomStateChanged{@link #IRTSRoomEventHandler#onRoomStateChanged} 回调。
    + * 进房时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + kRtsErrorCodeJoinRoomWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @brief 加入RTS房间错误。当前为受限模式。 + */ + + kRtsErrorCodeJoinRoomLimitedMode = -1013, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅起通知作用。 + */ + +enum RtsWarningCode { + /** + * + * @brief 进房失败。
    + * 当你调用初次加入房间或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + kRtsWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + kRtsWarningCodePublishStreamFailed = -2002, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误。 + */ + + kRtsWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + kRtsWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + kRtsWarningCodeSendCustomMessage = -2011, + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `onUserJoined` 和 `onUserLeave` 回调,并通过广播提示房间内所有用户。 + */ + + kRtsWarningCodeUserNotifyStop = -2013, + + + /** + * + * @brief 新生成的房间已经替换了同样 roomId 的旧房间 + */ + + kRtsWarningCodeOldRoomBeenReplaced = -2016 +}; + +/** + * + * @hidden + * @deprecated since 3.50 + * @type keytype + * @brief 事务检查码
    + * 用户调用 `setBusinessId` 方法设置业务标识参数的返回错误码。 + */ + +enum BusinessCheckCode { + /** + * + * @brief 用户已经在房间中。
    + * 业务标识需要在加入房间之前设置,加入后设置无效。 + */ + + kBusinessCheckCodeAlreadyInRoom = -6001, + + /** + * + * @brief 输入参数非法。
    + * 用户传入的业务标识参数非法,参数合法性参考 `setBusinessId` 方法的参数说明。 + */ + + kBusinessCheckCodeInputInvalidate = -6002, +}; + +/** + * + * @type keytype + * @brief App 使用的 CPU 和内存信息。
    + * 该信息由 SDK 周期性(2s)通过 `onSysStats` 回调通知给用户。 + */ + +struct SysStats { + /** + * + * @brief 当前系统 CPU 核数。 + */ + + unsigned int cpu_cores; + /** + * + * @brief 当前应用的 CPU 使用率,取值范围为 [0, 1]。 + */ + + double cpu_app_usage; + /** + * + * @hidden currently not available + * @brief 当前系统的 cpu 使用率,取值范围为 [0, 1]。 + */ + + double cpu_total_usage; + /** + * + * @brief 当前应用的内存使用量(单位 MB)。 + */ + + double memory_usage; + /** + * + * @brief 全量内存(单位 MB)。 + */ + + unsigned long long full_memory; + /** + * + * @brief 系统已使用内存(单位 MB)。 + */ + + unsigned long long total_memory_usage; + /** + * + * @brief 空闲可分配内存(单位 MB)。 + */ + + unsigned long long free_memory; + /** + * + * @brief 当前应用的内存使用率(单位 %)。 + */ + + double memory_ratio; + /** + * + * @brief 系统内存使用率(单位 %)。 + */ + + double total_memory_ratio; +}; + +/** + * + * @type keytype + * @brief HTTP/HTTPS 代理状态 + */ + +enum HttpProxyState { + /** + * + * @brief HTTP/HTTPS 初始化状态 + */ + + kHttpProxyStateInit, + /** + * + * @brief HTTP/HTTPS 连接成功 + */ + + kHttpProxyStateConnected, + /** + * + * @brief HTTP/HTTPS 连接失败 + */ + + kHttpProxyStateError +}; + +/** + * + * @type keytype + * @brief SOCKS5 代理连接状态 + */ + +enum Socks5ProxyState { + /** + * + * @brief SOCKS5 连接初始化 + */ + + kSocks5Init, + /** + * + * @brief SOCKS5 连接成功 + */ + + kSocks5Connected, + /** + * + * @brief SOCKS5 连接错误 + */ + + kSocks5Error, + /** + * + * @brief TCP 连接失败 + */ + + kSocks5TcpConnectFail, + /** + * + * @brief TCP 连接关闭 + */ + + kSocks5TcpClose, + /** + * + * @brief SOCKS 协议 TCP 协商阶段失败 + */ + + kSocks5ProtocolTcpFail, + /** + * + * @brief UDP 连接失败 + */ + + kSocks5ProtocolUdpFail, + /** + * + * @brief 授权失败 + */ + + kSocks5AuthFail, + /** + * + * @brief 未知状态 + */ + + kSocks5Unknown +}; + +/** + * + * @type keytype + * @brief 云代理信息 + */ + +struct CloudProxyInfo { + /** + * + * @type keytype + * @brief 云代理服务器 IP + */ + + const char* cloud_proxy_ip; + /** + * + * @type keytype + * @brief 云代理服务器端口 + */ + + int cloud_proxy_port; +}; + +/** + * + * @type keytype + * @brief 云代理相关信息 + */ + +struct CloudProxyConfiguration { + /** + * + * @brief 云代理信息。 + */ + + CloudProxyInfo* cloud_proxies = nullptr; + /** + * + * @brief 云代理数量。 + */ + + int cloud_proxy_count = 0; +}; + +/** + * + * @type keytype + * @brief ID 最大长度 + */ + +const unsigned int MAX_DEVICE_ID_LENGTH = 512; + +/** + * + * @type keytype + * @brief 本地代理的类型。 + */ + +enum LocalProxyType { + /** + * + * @brief Socks5 代理。选用此代理服务器,需满足 Socks5 协议标准文档的要求。 + */ + + kLocalProxyTypeSocks5 = 1, + /** + * + * @brief Http 隧道代理。 + */ + + kLocalProxyTypeHttpTunnel = 2 +}; + +/** + * + * @type keytype + * @brief 本地代理配置详细信息。 + */ + +struct LocalProxyConfiguration { + /** + * + * @brief 本地代理类型,参看 LocalProxyType{@link #LocalProxyType}。 + */ + + LocalProxyType local_proxy_type; + /** + * + * @type keytype + * @brief 本地代理服务器 IP。 + */ + + const char* local_proxy_ip; + /** + * + * @type keytype + * @brief 本地代理服务器端口。 + */ + + int local_proxy_port; + /** + * + * @type keytype + * @brief 本地代理用户名。 + */ + + const char* local_proxy_username; + /** + * + * @type keytype + * @brief 本地代理密码。 + */ + + const char* local_proxy_password; +}; + +/** + * + * @type keytype + * @brief 本地代理连接状态。 + */ + +enum LocalProxyState { + /** + * + * @brief TCP 代理服务器连接成功。 + */ + + kLocalProxyStateInited = 0, + + /** + * + * @brief 本地代理连接成功。 + */ + + kLocalProxyStateConnected = 1, + + /** + * + * @brief 本地代理连接出现错误。 + */ + + kLocalProxyStateError = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理错误。 + */ + +enum LocalProxyError { + /** + * + * @brief 本地代理服务器无错误。 + */ + + kLocalProxyErrorOK = 0, + + /** + * + * @brief 代理服务器回复的版本号不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5VersionError = 1, + + /** + * + * @brief 代理服务器回复的格式错误不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5FormatError = 2, + + /** + * + * @brief 代理服务器回复的字段值不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5InvalidValue = 3, + + /** + * + * @brief 未提供代理服务器的用户名及密码,导致 Socks5 代理连接失败。请重新调用 `setLocalProxy`,在设置本地代理时填入用户名和密码。 + */ + + kLocalProxyErrorSocks5UserPassNotGiven = 4, + + /** + * + * @brief TCP 关闭,导致 Socks5 代理连接失败。请检查网络或者代理服务器是否存在异常。 + */ + + kLocalProxyErrorSocks5TcpClosed = 5, + + /** + * + * @brief Http 隧道代理错误。请检查 Http 隧道代理服务器或者网络是否存在异常。 + */ + + kLocalProxyErrorHttpTunnelFailed = 6, +}; + +/** + * + * @type keytype + * @brief 本地日志输出等级。 + */ + +enum class LocalLogLevel { + /** + * + * @brief 信息级别。 + */ + + kInfo = 0, + /** + * + * @brief (默认值)警告级别。 + */ + + kWarning = 1, + /** + * + * @brief 错误级别。 + */ + + kError = 2, + /** + * + * @brief 关闭日志。 + */ + + kNone = 3 +}; + +/** + * + * @type keytype + * @brief 本地日志参数。 + */ + +struct LogConfig { + /** + * + * @brief 日志存储路径,必填。 + */ + + const char* log_path = nullptr; + /** + * + * @brief 日志等级,参看 LocalLogLevel{@link #LocalLogLevel},默认为警告级别,选填。 + */ + + LocalLogLevel log_level = LocalLogLevel::kWarning; + + /** + * + * @brief 日志文件最大占用的总空间,单位为 MB,选填。取值范围为 1~100 MB,默认值为 10 MB。
    + * 若 `log_file_size` < 1,取 1 MB。若 `log_file_size` > 100,取 100 MB。
    + * 其中,单个日志文件最大为 2 MB:
    + *
    • 若 1 ≤ log_file_size ≤ 2,则会生成一个日志文件。
    • 若 log_file_size > 2,假设 log_file_size/2 的整数部分为 N,则前 N 个文件,每个文件会写满 2 MB,第 N+1 个文件大小不超过 log_file_size mod 2,否则会删除最老的文件,以此类推。
    + */ + + uint32_t log_file_size = 10; + + /** + * + * @brief 日志文件名前缀,选填。该字符串必须符合正则表达式:[a-zA-Z0-9_@\-\.]{1,128}。
    + * 最终的日志文件名为`前缀 + "_" + 文件创建时间 + "_rtclog".log`,如 `logPrefix_2023-05-25_172324_rtclog.log`。 + */ + + const char* log_filename_prefix = nullptr; +}; + +/** + * + * @type keytype + * @brief 创建引擎参数 + */ + +struct EngineConfig { + /** + * + * @brief 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 + */ + + const char* app_id = nullptr; + + /** + * + * @brief 如需使用请联系技术支持人员。 + */ + + const char* parameters = nullptr; + + /** + * + * @brief 自定义插件动态库加载目录,目前仅 Android 平台支持。 + */ + + const char* native_load_path = nullptr; + + /** + * + * @brief 用于存储 Android 应用程序的上下文(Application Context),仅 Android 平台支持。 + */ + + void* j_application_context = nullptr; + /** + * + * @brief 选填,是否为游戏场景。默认值为 `false`。 + */ + + bool is_game_scene = false; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h new file mode 100644 index 0000000..56fb9ad --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_sing_scoring_interface.h @@ -0,0 +1,223 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC SAMI SDK +*/ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type callback + * @brief K 歌评分事件回调类。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +class ISingScoringEventHandler { +public: + /** + * + * @type callback + * @brief 实时评分信息回调。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 后,会收到该回调。 + * @param info 实时评分信息。 + * @list 在线 KTV + */ + + virtual void onCurrentScoringInfo( + const SingScoringRealtimeInfo& info) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ISingScoringEventHandler() { + } +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 标准音高数据数组。 + * @list Online Karaoke + */ + +class IStandardPitchCollection { +public: + /** + * + * @type api + * @brief 获取歌词句子总数 + * @list 在线 KTV + */ + + virtual int getCount() = 0; + /** + * + * @type api + * @brief 获取每句歌词的标准音高信息 + * @param index 歌词句子数,取值范围为 0 到调用 getCount{@link #IStandardPitchCollection#getCount} 获取到的句子总数减 1。 + * @return 标准音高数据,参看 StandardPitchInfo{@link #StandardPitchInfo}。 + * @list 在线 KTV + */ + + virtual StandardPitchInfo getStandardPitchInfo(int index) = 0; + /** + * + * @type api + * @brief 销毁 IStandardPitchCollection 类,释放资源 + * @list 在线 KTV + */ + + virtual void release() = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IStandardPitchCollection() { + } +}; +/** + * + * @hidden(Linux) + * @type api + * @brief K 歌评分管理接口。 + * @list Online Karaoke + */ + +class ISingScoringManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + ISingScoringManager() { + } + /** + * + * @type api + * @brief 初始化 K 歌评分。 + * @param sing_scoring_appkey K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param sing_scoring_token K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param handler K 歌评分事件回调类,详见 ISingScoringEventHandler{@link #ISingScoringEventHandler}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note 输入正确的鉴权信息才可以使用 K 歌评分相关的功能,鉴权方式为离线鉴权,根据包名(bundleID)绑定 Appkey 及 Token,K 歌评分密钥请联系技术支持人员申请。 + * @list 在线 KTV + */ + + virtual int initSingScoring( + const char* sing_scoring_appkey, + const char* sing_scoring_token, + ISingScoringEventHandler* handler) = 0; + /** + * + * @type api + * @brief 设置 K 歌评分参数。 + * @param config K 歌评分的各项参数,详见 SingScoringConfig{@link #SingScoringConfig}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @list 在线 KTV + */ + + virtual int setSingScoringConfig( + const SingScoringConfig& config) = 0; + /** + * + * @type api + * @brief 获取标准音高数据。 + * @param midi_filepath 歌曲 midi 文件路径。 + * @return IStandardPitchCollection{@link #IStandardPitchCollection} 标准音高数据数组。 + * @note 请保证此接口传入的 midi 文件路径与 setSingScoringConfig{@link #ISingScoringManager#setSingScoringConfig} 接口中传入的路径一致。 + * @list 在线 KTV + */ + + virtual IStandardPitchCollection* getStandardPitchInfoCollection(const char* midi_filepath) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 开始 K 歌评分。 + * @param position 开始评分时,音乐的播放进度,单位:ms。 + * @param scoring_info_interval 实时回调的时间间隔,单位:ms;默认 50 ms。最低间隔为 20 ms。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note + * - 在调用 initSingScoring{@link #ISingScoringManager#initSingScoring} 初始化 K 歌评分功能后调用该接口。 + * - 调用该接口后,将会根据设置的回调时间间隔,收到评分结果 onCurrentScoringInfo{@link #ISingScoringEventHandler#onCurrentScoringInfo} 回调。 + * - 如果使用 `IMediaPlayer` 播放伴奏,请在收到 onMediaPlayerStateChanged{@link #IMediaPlayerEventHandler#onMediaPlayerStateChanged} 回调且播放状态为 kPlayerStatePlaying{@link #PlayerState#kPlayerStatePlaying} 后,调用此接口。 + * @list 在线 KTV + */ + + virtual int startSingScoring(int position, + int scoring_info_interval) = 0; + /** + * + * @type api + * @brief 停止 K 歌评分。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 在线 KTV + */ + + virtual int stopSingScoring() = 0; + /** + * + * @type api + * @brief 获取上一句的演唱评分。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 开始评分后可以调用该接口。 + * @return + * - <0:获取评分失败。 + * - >=0:上一句歌词的演唱评分。 + * @list 在线 KTV + */ + + virtual int getLastSentenceScore() = 0; + /** + * + * @type api + * @brief 获取当前演唱总分。调用 startSingScoring{@link #ISingScoringManager#startSingScoring} 开始评分后可以调用该接口。 + * @return + * - <0:获取总分失败。 + * - >=0:当前演唱总分。 + * @list 在线 KTV + */ + + virtual int getTotalScore() = 0; + /** + * + * @type api + * @brief 获取当前演唱歌曲的平均分。 + * @return + * - <0:获取平均分失败。 + * - >=0:当前演唱平均分。 + * @list 在线 KTV + */ + + virtual int getAverageScore() = 0; + /** + * + * @hidden constructor/destructor + */ + + virtual ~ISingScoringManager() { + } +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h new file mode 100644 index 0000000..12c9565 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_spatial_audio_interface.h @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief spatial audio interface + */ + +#pragma once + +#include "bytertc_audio_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 用户在空间音频坐标系里的位置信息。 + */ + +struct PositionInfo { + /** + * + * @brief 用户在空间音频坐标系里的位置,需自行建立空间直角坐标系。参看 Position{@link #Position} + */ + + Position position; + /** + * + * @brief 用户在空间音频坐标系里的三维朝向信息。三个向量需要两两垂直。参看 HumanOrientation{@link #HumanOrientation}。 + */ + + HumanOrientation orientation; +}; +/** + * + * @hidden(Linux) + * @type api + * @brief 空间音频接口实例 + * @list + */ + +class ISpatialAudio { +public: + /** + * + * @type api + * @brief 开启/关闭空间音频功能。 + * @param enable 是否开启空间音频功能:
    + * - true:开启 + * - false:关闭(默认) + * @note 该方法仅开启空间音频功能,你须调用 updateSelfPosition{@link #ISpatialAudio#updateSelfPosition} 设置自身位置坐标后方可收听空间音频效果。空间音频相关 API 和调用时序详见[空间音频](https.www.volcengine.com/docs/6348/93903)。 + * @list 高级功能 + */ + + virtual void enableSpatialAudio(bool enable) = 0; + /** + * + * @type api + * @brief 关闭本地用户朝向对本地用户发声效果的影响。
    + * 调用此接口后,房间内的其他用户收听本地发声时,声源都在收听者正面。 + * @note + * - 调用本接口关闭朝向功能后,在当前的空间音频实例的生命周期内无法再次开启。 + * - 调用此接口不影响本地用户收听朝向的音频效果。要改变本地用户收听朝向,参看 updateSelfPosition{@link #ISpatialAudio#updateSelfPosition} 和 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 。 + * @list 高级功能 + */ + + virtual void disableRemoteOrientation() = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 设置本地用户在自建空间直角坐标系中的收听坐标和收听朝向,以实现本地用户预期的空间音频收听效果。 + * @param position_info 空间音频位置信息。参看 PositionInfo{@link #PositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验本地用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在进房后调用。 + * - 调用该接口更新坐标前,你需调用 enableSpatialAudio{@link #ISpatialAudio#enableSpatialAudio} 开启空间音频功能。空间音频相关 API 和调用时序详见[空间音频](https: + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + + virtual int updateSelfPosition(const PositionInfo& position_info) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 设置房间内某一远端用户在本地用户自建的空间音频坐标系中的发声位置和发声朝向,以实现本地用户预期的空间音频收听效果。 + * @param uid 用户 ID + * @param position_info 远端用户的空间音频位置信息。参看 PositionInfo{@link #PositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验远端用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在创建房间后调用。 + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + + virtual int updateRemotePosition(const char* uid, const PositionInfo& position_info) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 为某一远端用户设置的空间音频效果。 + * @param uid 远端用户 ID。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + + virtual int removeRemotePosition(const char* uid) = 0; + /** + * + * @hidden(Linux) + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition{@link #ISpatialAudio#updateRemotePosition} 为所有远端用户设置的空间音频效果。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + + virtual int removeAllRemotePosition() = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ISpatialAudio() = default; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h new file mode 100644 index 0000000..2db9b29 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_transcoder_define.h @@ -0,0 +1,1990 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + */ + +#pragma once +#include "bytertc_video_frame.h" +#include "bytertc_audio_frame.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 转推任务事件 + */ + +enum MixedStreamTaskEvent { + /** + * + * @hidden for internal use only + */ + + kMixedStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + kMixedStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + kMixedStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务更新成功。 + */ + + kMixedStreamTaskEventUpdateSuccess = 3, + /** + * + * @brief 任务更新失败。 + */ + + kMixedStreamTaskEventUpdateFailed = 4, + /** + * + * @brief 任务停止。 + */ + + kMixedStreamTaskEventStopSuccess = 5, + /** + * + * @brief 结束任务失败。 + */ + + kMixedStreamTaskEventStopFailed = 6, + /** + * + * @brief Warning 事件 + */ + + kMixedStreamTaskEventWarning = 7, +}; + + +/** + * + * @type errorcode + * @brief 单流转推直播事件 + */ + +enum SingleStreamTaskEvent { + /** + * + * @hidden for internal use only + */ + + kSingleStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + kSingleStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + kSingleStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务停止。 + */ + + kSingleStreamTaskEventStopSuccess = 3, + /** + * + * @brief 结束任务失败。 + */ + + kSingleStreamTaskEventStopFailed = 4, + /** + * + * @brief Warning 事件 + */ + + kSingleStreamTaskEventWarning = 5, +}; + +/** + * + * @type errorcode + * @brief 合流和 WTN 流任务错误码 + */ + +enum MixedStreamTaskErrorCode { + /** + * + * @brief 推流成功。 + */ + + kMixedStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + kMixedStreamTaskErrorCodeBase= 1090, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + kMixedStreamTaskErrorCodeTimeout = 1091, + /** + * + * @brief 服务端检测到错误的推流参数。 + */ + + kMixedStreamTaskErrorCodeInvalidParamByServer = 1092, + /** + * + * @brief 对流的订阅超时 + */ + + kMixedStreamTaskErrorCodeSubTimeoutByServer = 1093, + /** + * + * @brief 合流服务端内部错误。 + */ + + kMixedStreamTaskErrorCodeInvalidStateByServer = 1094, + /** + * + * @brief 合流服务端推 CDN 失败。 + */ + + kMixedStreamTaskErrorCodeAuthenticationByCDN = 1095, + /** + * + * @brief 服务端未知错误。 + */ + + kMixedStreamTaskErrorCodeUnKnownByServer = 1096, + /** + * + * @brief 服务端接收信令超时,请检查网络状态并重试。 + */ + + kMixedStreamTaskErrorCodeSignalRequestTimeout = 1097, + /** + * + * @brief 图片合流失败。 + */ + + kMixedStreamTaskErrorCodeMixImageFailed = 1098, + /** + * + * @hidden internal use only + * @brief 缓存未同步。 + */ + + kMixedStreamTaskErrorCodeStreamSyncWorse = 1099, + /** + * + * @brief 发布 WTN 流失败 + */ + + kMixedStreamTaskErrorCodePushWTNFailed = 1195, + /** + * + * @hidden for internal use only + */ + + kMixedStreamTaskErrorCodeMax = 1199, +}; + +/** + * + * @type errorcode + * @brief 单流转推任务错误码 + */ + +enum SingleStreamTaskErrorCode { + /** + * + * @brief 推流成功。 + */ + + kSingleStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + kSingleStreamTaskErrorCodeBase= 1090, + /** + * + * @brief 服务端未知错误。 + */ + + kSingleStreamTaskErrorCodeUnKnownByServer = 1091, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + kSingleStreamTaskErrorCodeSignalRequestTimeout = 1092, + /** + * + * @brief 服务端检测任务参数不合法 + */ + + kSingleStreamTaskErrorCodeInvalidParamByServer = 1093, + /** + * + * @brief 转推任务在目标房间的用户ID被踢出目标房间 + */ + + kSingleStreamTaskErrorRemoteKicked = 1094, + /** + * + * @brief 转推任务加入目标房间失败 + */ + + kSingleStreamTaskErrorCodeJoinDestRoomFailed = 1095, + /** + * + * @brief 转推任务在源房间拉流超时 + */ + + kSingleStreamTaskErrorCodeReceiveSrcStreamTimeout = 1096, + /** + * + * @brief 音视频编码转推任务不支持 + */ + + kSingleStreamTaskErrorCodeNotSurportCodec = 1097, + /** + * + * @brief 推CDN失败 + */ + + kSingleStreamTaskErrorCodePushToCDN = 1098, + /** + * + * @brief 超过单流转推的任务数限制(单主播可同时转推任务数不超过20) + */ + + kSingleStreamTaskErrorCodeCountOverLimit = 1099, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流类型。 + */ + +enum MixedStreamType { + /** + * + * @brief 服务端合流 + */ + + kMixedStreamTypeByServer = 0, + /** + * + * @brief 端云一体合流。SDK 智能决策在客户端或服务端完成合流。
    + * 使用前,请联系技术支持同学开通,否则不生效。 + */ + + kMixedStreamTypeByClient = 1, +}; + +/** + * + * @type keytype + * @brief 合流推送目标类型,指定混流后的媒体流推送到 CDN 还是 WTN。 + */ + +enum MixedStreamPushTargetType { + /** + * + * @brief 推送到 CDN + */ + + kMixedStreamPushTargetTypeToCDN = 0, + /** + * + * @brief 推送到 WTN + */ + + kMixedStreamPushTargetTypeToWTN = 1, +}; + +/** + * + * @type keytype + * @brief AAC 编码规格。 + */ + +enum MixedStreamAudioProfile { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + kMixedStreamAudioProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + kMixedStreamAudioProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + kMixedStreamAudioProfileHEv2 = 2, +}; + +/** + * + * @hidden + * @brief 遗漏的音符 + */ + +enum MixedStreamSyncStrategy { + /** + * + * @brief 不使用同步策略 + */ + + kMixedStreamSyncStrategyNoSync = 0, + /** + * + * @brief 使用音频精准同步策略 + */ + + kMixedStreamSyncStrategyAudioPreciseSync = 1, + /** + * + * @brief 使用单通模式同步策略 + */ + + kMixedStreamSyncStrategySimplexModeSync = 2, +}; + +/** + * + * @type keytype + * @brief 音频编码格式。 + */ + +enum MixedStreamAudioCodecType { + /** + * + * @brief AAC 格式。 + */ + + kMixedStreamAudioCodecTypeAAC = 0, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推 SEI 内容。 + */ + +enum MixedStreamSEIContentMode { + /** + * + * @brief 视频流中包含全部的 SEI 信息。默认设置。 + */ + + kMixedStreamSEIContentModeDefault = 0, + /** + * + * @brief 随非关键帧传输的 SEI 数据中仅包含音量信息。
    + * 当设置 `MixedStreamControlConfig.enable_volume_indication` 为 True 时,此参数设置生效。 + */ + + kMixedStreamSEIContentModeEnableVolumeIndication = 1, +}; + +/** + * + * @type keytype + * @brief 视频编码格式。 + */ + +enum MixedStreamVideoCodecType { + /** + * + * @brief H.264 格式,默认值。 + */ + + kMixedStreamVideoCodecTypeH264 = 0, + /** + * + * @brief ByteVC1 格式。 + */ + + kMixedStreamVideoCodecTypeByteVC1 = 1, +}; + +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +enum MixedStreamRenderMode { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + kMixedStreamRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + kMixedStreamRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + kMixedStreamRenderModeAdaptive = 3, +}; + +/** + * + * @type keytype + * @brief 合流输出媒体类型。 + */ + +enum MixedStreamMediaType { + /** + * + * @brief 包含音频和视频 + */ + + kMixedStreamMediaTypeAudioAndVideo = 0, + /** + * + * @brief 只包含音频 + */ + + kMixedStreamMediaTypeAudioOnly = 1, + /** + * + * @hidden currently not available + * @brief 只包含视频 + */ + + kMixedStreamMediaTypeVideoOnly = 2, +}; + +/** + * + * @type keytype + * @brief 合流布局区域类型,视频区或水印图片区。 + */ + +enum MixedStreamLayoutRegionType { + /** + * + * @brief 视频。 + */ + + kMixedStreamLayoutRegionTypeVideoStream = 0, + /** + * + * @brief 水印图片。 + */ + + kMixedStreamLayoutRegionTypeImage = 1, +}; + +/** + * + * @type keytype + * @hidden for internal use only on Windows + * @brief 客户端合流回调视频格式。
    + * 设置为系统不支持的格式时,自动回调系统默认格式。 + */ + +enum MixedStreamClientMixVideoFormat { + /** + * + * @brief YUV I420。Android、Windows 默认回调格式。支持系统:Android、Windows。 + */ + + kMixedStreamClientMixVideoFormatI420 = 0, + /** + * + * @brief OpenGL GL_TEXTURE_2D 格式纹理。支持系统:安卓。 + */ + + kMixedStreamClientMixVideoFormatTexture2D = 1, + /** + * + * @brief CVPixelBuffer BGRA。iOS 默认回调格式。支持系统: iOS。 + */ + + kMixedStreamClientMixVideoFormatCVPixelBufferBGRA = 2, + /** + * + * @brief YUV NV12。macOS 默认回调格式。支持系统: macOS。 + */ + + kMixedStreamClientMixVideoFormatNV12 = 3, + /** + * + * @brief D3D11Texture2D, BGRA。支持系统: windows。 + */ + + kMixedStreamClientMixVideoFormatD3D11Texture2D = 4, +}; +/** + * + * @type keytype + * @brief 服务端合流转推发起模式。 + */ + +enum MixedStreamPushMode { + /** + * + * @brief 无用户发布媒体流时,发起合流任务无效。默认设置。
    + * 当有用户发布媒体流时,才能发起合流任务。 + */ + + kMixedStreamPushModeOnStream = 0, + /** + * + * @brief 无用户发布媒体流时,可以使用占位图发起合流任务。
    + * 占位图设置参看 alternate_image_url{@link #MixedStreamLayoutRegionConfig-alternate_image_url} 和 alternate_image_fill_mode{@link #MixedStreamLayoutRegionConfig-alternate_image_fill_mode} + */ + + kMixedStreamPushModeOnStartRequest = 1, +}; +/** + * + * @type keytype + * @brief 服务端合流占位图填充模式。 + */ + +enum MixedStreamAlternateImageFillMode { + /** + * + * @brief 占位图跟随用户原始视频帧相同的比例缩放。默认设置。 + */ + + kMixedStreamAlternateImageFillModeFit = 0, + /** + * + * @brief 占位图不跟随用户原始视频帧相同的比例缩放,保持图片原有比例。 + */ + + kMixedStreamAlternateImageFillModeFill = 1, +}; +/** + * + * @type keytype + * @brief 预留字段。 + */ + +enum MixedStreamVideoType { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的流 + * - 通过自定义采集,采集到的流。 + */ + + kMixedStreamVideoTypeMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。 + */ + + kMixedStreamVideoTypeScreen = 1, +}; + +/** + * + * @type keytype + * @brief WTN 流任务详情
    + * + */ + +typedef struct MixedStreamTaskInfo { + /** + * + * @brief 任务 ID
    + * 对于 WTN 流任务,该值代表 WTN 流 ID。你可以通过该 ID,指定需要订阅的 WTN 流。 + */ + + const char* task_id; + /** + * + * @brief 任务类型,合流转推 CDN 还是 WTN 流。 + */ + + MixedStreamPushTargetType push_target_type; +} MixedStreamInfo; + +/** + * + * @type keytype + * @brief 音频合流参数。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +typedef struct MixedStreamAudioConfig { + /** + * + * @brief 音频采样率,单位 Hz。可取 32000 Hz、44100 Hz、48000 Hz,默认值为 48000 Hz。建议设置。 + */ + + int32_t sample_rate = 48000; + /** + * + * @brief 音频声道数。可取 1(单声道)、2(双声道),默认值为 2。建议设置。 + */ + + int32_t channels = 2; + /** + * + * @brief 音频码率,单位 Kbps。可取范围 [32, 192],默认值为 64 Kbps。建议设置。 + */ + + int32_t bitrate = 64; + /** + * + * @brief AAC 编码规格,参看 MixedStreamAudioProfile{@link #MixedStreamAudioProfile}。默认值为 `0` 代表 AAC-LC。 + */ + + MixedStreamAudioProfile audio_profile = MixedStreamAudioProfile::kMixedStreamAudioProfileLC; + /** + * + * @brief 音频编码格式,参看 MixedStreamAudioCodecType{@link #MixedStreamAudioCodecType}。当前只有一个值为 `0`,代表 AAC。
    + * WTN 流任务不支持设置本参数。 + */ + + MixedStreamAudioCodecType audio_codec = MixedStreamAudioCodecType::kMixedStreamAudioCodecTypeAAC; +} MixedStreamAudioConfig; + +#define MIXED_STREAM_VIDEO_DEFAULT_WIDTH 360 +#define MIXED_STREAM_DEFAULT_VIDEO_HEIGHT 640 +/** + * + * @type keytype + * @brief 视频合流配置参数。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +typedef struct MixedStreamVideoConfig { + /** + * + * @brief 合流视频宽度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 360 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + + int32_t width = MIXED_STREAM_VIDEO_DEFAULT_WIDTH; + /** + * + * @brief 合流视频高度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 640 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + + int32_t height = MIXED_STREAM_DEFAULT_VIDEO_HEIGHT; + /** + * + * @brief 合流视频帧率。单位为 FPS,取值范围为 [1,60],默认值为 15 FPS。建议设置。 + */ + + int32_t fps = 15; + /** + * + * @brief 视频 I 帧时间间隔。单位为秒,取值范围为 [1, 5],默认值为 2 秒。建议设置。
    + * WTN 流任务不支持设置本参数。
    + * 本参数不支持过程中更新。 + */ + + int32_t gop = 2; + /** + * + * @brief 合流视频码率。单位为 Kbps,取值范围为 [1,10000],默认值为 `500`。建议设置。 + */ + + int32_t bitrate = 500; + /** + * + * @brief 视频编码格式,参看 MixedStreamVideoCodecType{@link #MixedStreamVideoCodecType}。默认值为 `0`。建议设置。
    + * WTN 流的视频编码格式只能为设置为 `0`,H264。
    + * 本参数不支持过程中更新。 + */ + + MixedStreamVideoCodecType video_codec = MixedStreamVideoCodecType::kMixedStreamVideoCodecTypeH264; + /** + * + * @brief 是否在服务端合流转推中开启 B 帧。
    + * - true: 是 + * - false: 否 + */ + + bool enable_bframe = false; +} MixedStreamVideoConfig; + +/** + * + * @hidden for internal use only on Windows + * @type keytype + * @brief 客户端合流参数。 + */ + +typedef struct ClientMixedStreamConfig { + /** + * + * @brief 客户端合流是否使用混音,默认为 true。 + */ + + bool use_audio_mixer = true; + /** + * + * @brief 客户端合流回调视频格式,参看 MixedStreamClientMixVideoFormat{@link #MixedStreamClientMixVideoFormat}。 + */ + + MixedStreamClientMixVideoFormat video_format; +} ClientMixedStreamConfig; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 转推直播单通同步参数。 + */ + +typedef struct MixedStreamSyncControlConfig { + /** + * + * @brief 在进行同步处理时,缓存音视频流的最大长度。单位为毫秒。默认值为 2000。 + * @note 参与转推直播的这些媒体流延迟越高,应该将此值设置的越大。但此值越大,因缓存媒体流造成的内存占用也会更大。推荐值为 `2000`。 + */ + + int32_t max_cache_time_ms = 2000; + /** + * + * @brief 是否在转推直播时,启用单通模式。默认为 false,不启用。
    + * 启用单通模式时,RTC SDK 会对指定的多个用户的媒体流进行同步处理,再合流后推送到 CDN,但基准流所属用户不会播放来自其他用户的媒体流。你需要设定以下参数。
    + * 非单通模式时,RTC SDK 不会对媒体流进行同步处理,只是简单合流后推送到 CDN。以下参数设定无效。 + */ + + MixedStreamSyncStrategy sync_strategy = MixedStreamSyncStrategy::kMixedStreamSyncStrategyNoSync; + /** + * + * @brief 在进行同步处理时,基准流所属用户的 ID。默认为空。 + */ + + const char* base_user_id = nullptr; + /** + * + * @brief 是否通过 RTC SDK 进行转推直播。默认为 True。
    + * 如果选择 `False`,你会通过 onCacheSyncVideoFrames{@link #IClientMixedStreamObserver#onCacheSyncVideoFrames} 收到同步的帧,你可以使用此视频帧,自行实现合流转推。 + */ + + bool video_need_sdk_mix = true; +} MixedStreamSyncControlConfig; + +/** + * + * @type keytype + * @brief 图片合流水印图片分辨率。 + */ + +typedef struct MixedStreamLayoutRegionImageWaterMarkConfig { + /** + * + * @brief 原始图片的宽度,单位为 px。 + */ + + int image_width = 0; + /** + * + * @brief 原始图片的高度,单位为 px。 + */ + + int image_height = 0; +} MixedStreamLayoutRegionImageWaterMarkConfig; + +/** + * + * @type keytype + * @brief 推流 CDN 的空间音频参数。 + */ + +typedef struct MixedStreamSpatialAudioConfig { + /** + * + * @brief 是否开启推流 CDN 时的空间音频效果。 + * @note 当你启用此效果时,你需要设定推流中各个 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig} 的 `spatial_position` 值,实现空间音频效果。 + */ + + bool enable_spatial_render; + /** + * + * @brief 听众的空间位置。参看 Position{@link #Position}。
    + * 听众指收听来自 CDN 的音频流的用户。
    + * WTN 流任务不支持设置本参数。 + */ + + Position audience_spatial_position; + /** + * + * @brief 听众的空间朝向。参看 HumanOrientation{@link #HumanOrientation}。
    + * 听众指收听来自 CDN 的音频流的用户。 + */ + + HumanOrientation audience_spatial_orientation; +} MixedStreamSpatialAudioConfig; + +/** + * + * @type keytype + * @brief 服务端合流控制参数 + */ + +typedef struct MixedStreamControlConfig { + /** + * + * @valid since 3.56 + * @brief 是否开启单独发送声音提示 SEI 的功能:
    + * - true:开启; + * - false:(默认)关闭。 + * 开启后,你可以通过 `MixedStreamControlConfig.sei_content_mode` 控制 SEI 的内容是否只携带声音信息。 + */ + + bool enable_volume_indication = false; + /** + * + * @valid since 3.56 + * @brief 声音提示间隔,单位为秒,取值范围为 [0.3,+∞),默认值为 2。
    + * 此值仅取整百毫秒。若传入两位及以上小数,则四舍五入取第一位小数的值。例如,若传入 0.36,则取 0.4。 + */ + + float volume_indication_interval = 2.0f; + /** + * + * @valid since 3.56 + * @brief 有效音量大小,取值范围为 [0, 255],默认值为 0。
    + * 超出取值范围则自动调整为默认值,即 0。 + */ + + int talk_volume = 0; + /** + * + * @valid since 3.56 + * @brief 声音信息 SEI 是否包含音量值:
    + * - true:是。 + * - false:(默认)否。 + */ + + bool is_add_volume_value = false; + /** + * + * @valid since 3.56 + * @brief 设置 SEI 内容。参看 MixedStreamSEIContentMode{@link #MixedStreamSEIContentMode}。
    + * 默认值为 `0`,视频流中包含全部的 SEI 信息 + */ + + MixedStreamSEIContentMode sei_content_mode = kMixedStreamSEIContentModeDefault; + /** + * + * @valid since 3.56 + * @brief SEI 信息的 payload type。
    + * 默认值为 `100`,只支持设置 `5` 和 `100`。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + + int sei_payload_type = 100; + /** + * + * @valid since 3.56 + * @brief SEI 信息的 payload UUID。 + * @note PayloadType 为 `5` 时,必须填写 PayloadUUID,否则会收到错误回调,错误码为 1091。
    + * PayloadType 不是 `5` 时,不需要填写 PayloadUUID,如果填写会被后端忽略。
    + * 该参数长度需为 32 位,否则会收到错误码为 1091 的回调。
    + * 该参数每个字符的范围需为 [0, 9] [a, f] [A, F]
    + * 该参数不应带有`-`字符,如系统自动生成的 UUID 中带有`-`,则应删去。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + + const char* sei_payload_uuid = nullptr; + /** + * + * @valid since 3.57 + * @brief 设置合流推到 CDN 时输出的媒体流类型。参看 MixedStreamMediaType{@link #MixedStreamMediaType}。
    + * 默认输出音视频流。支持输出纯音频流,但暂不支持输出纯视频流。 + */ + + MixedStreamMediaType media_type = MixedStreamMediaType::kMixedStreamMediaTypeAudioAndVideo; + /** + * + * @valid since 3.57 + * @brief 设置是否在没有用户发布流的情况下发起转推直播,默认不允许。具体参看 MixedStreamPushMode{@link #MixedStreamPushMode}。
    + * 该参数在发起合流任务后的转推直播过程中不支持动态变更。 + */ + + MixedStreamPushMode push_stream_mode = MixedStreamPushMode::kMixedStreamPushModeOnStream; +} MixedStreamControlConfig; + +/** + * + * @type keytype + * @brief WTN 流的布局模式 + */ + +enum StreamLayoutMode { + /** + * + * @brief 自动布局 + */ + + kStreamLayoutModeAuto = 0, + /** + * + * @brief 自定义 + */ + + kStreamLayoutModeCustom = 2 +}; +/** + * + * @type keytype + * @brief WTN 流的补帧模式 + */ + +enum InterpolationMode { + /** + * + * @type keytype + * @brief 补最后一帧 + */ + + kInterpolationModeLastFrameFill = 0, + /** + * + * @type keytype + * @brief 补背景图片 + */ + + kInterpolationModeBackgroundImageFill = 1 +}; +/** + * + * @type keytype + * @brief WTN 流视频裁剪配置 + */ + +typedef struct SourceCrop { + /** + * + * @brief 裁剪后得到的视频帧左上角横坐标相对于裁剪前整体画面的归一化比例,取值范围[0.0, 1.0)。
    + * 默认值为 0.0 + */ + + float location_x = 0.0; + /** + * + * @brief 裁剪后得到的视频帧左上角纵坐标相对于裁剪前整体画面的归一化比例,取值范围[0.0, 1.0)
    + * 默认值为 0.0 + */ + + float location_y = 0.0; + /** + * + * @brief 裁剪后得到的视频帧宽度相对于裁剪前整体画面的归一化比例,取值范围(0.0, 1.0]
    + * 默认值为 1.0 + */ + + float width_proportion = 1.0; + /** + * + * @brief 裁剪后得到的视频帧高度相对于裁剪前整体画面的归一化比例,取值范围(0.0, 1.0]
    + * 默认值为 1.0 + */ + + float height_proportion = 1.0; +} SourceCrop; +/** + * + * @type keytype + * @brief 单个图片或视频流在合流中的布局信息。
    + * 开启合流功能后,在多路图片或视频流合流时,你可以设置其中一路流在合流中的预设布局信息。 + */ + +typedef struct MixedStreamLayoutRegionConfig { + /** + * + * @brief 合流用户的 ID。建议设置。 + */ + + const char* user_id = nullptr; + /** + * + * @brief 图片或视频流所在房间的房间 ID。建议设置。
    + * 如果此图片或视频流是通过 startForwardStreamToRooms{@link #IRTCRoom#startForwardStreamToRooms} 转发到用户所在房间的媒体流时,你应将房间 ID 设置为用户所在的房间 ID。 + */ + + const char* room_id = nullptr; + /** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 X 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的横向位移。
    + * 取值范围为 [0, 整体画布宽度)。默认值为 0。 + */ + + int location_x = 0; + /** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 Y 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的纵向位移。
    + * 取值范围为 [0, 整体画布高度)。默认值为 0。 + */ + + int location_y = 0; + /** + * + * @brief 单个用户画面的宽度。取值范围为 [0, 整体画布宽度],默认值为 360。 + */ + + int width = MIXED_STREAM_VIDEO_DEFAULT_WIDTH; + /** + * + * @brief 单个用户画面的高度。取值范围为 [0, 整体画布高度],默认值为 640。 + */ + + int height = MIXED_STREAM_DEFAULT_VIDEO_HEIGHT; + /** + * + * @brief 透明度,可选范围为 (0.0, 1.0],0.0 为全透明。默认值为 1.0。 + */ + + float alpha = 1.0f; + /** + * + * @brief 圆角半径相对画布宽度的比例。默认值为 `0.0`。
    + * 做范围判定时,首先根据画布的宽高,将 `width`,`height`,和 `corner_radius` 分别转换为像素值:`width_px`,`height_px`,和 `corner_radius_px`。然后判定是否满足 `corner_radius_px < min(width_px/2, height_px/2)`:若满足,则设置成功;若不满足,则将 `corner_radius_px` 设定为 `min(width_px/2, height_px/2)`,然后将 `corner_radius` 设定为 `corner_radius_px` 相对画布宽度的比例值。
    + * WTN 流任务不支持设置本参数。 + */ + + float corner_radius = 0; + + /** + * + * @brief 用户视频布局在画布中的层级。取值范围为 [0 - 100],0 为底层,值越大越上层。默认值为 0。 + */ + + int32_t z_order = 0; + /** + * + * @brief 是否为本地用户:
    + * - true:是 + * - false:(默认值)否 + * WTN 流任务不支持设置本参数。 + */ + + bool is_local_user = false; + /** + * + * @brief 预留字段。 + */ + + MixedStreamVideoType stream_type = MixedStreamVideoType::kMixedStreamVideoTypeMain; + /** + * + * @brief 合流内容控制。默认值为 `kMediaTypeAudioAndVideo`,参看 MixedStreamMediaType{@link #MixedStreamMediaType}。 + */ + + MixedStreamMediaType media_type = MixedStreamMediaType::kMixedStreamMediaTypeAudioAndVideo; + /** + * + * @brief 图片或视频流的缩放模式,参看 MixedStreamRenderMode{@link #MixedStreamRenderMode}。默认值为 `1`,视窗填满优先。建议设置。 + */ + + MixedStreamRenderMode render_mode = MixedStreamRenderMode::kMixedStreamRenderModeHidden; + /** + * + * @brief 合流布局区域类型,视频区或水印图片区。参看 MixedStreamLayoutRegionType{@link #MixedStreamLayoutRegionType}。默认值为 `0`,视频。
    + * WTN 流任务不支持设置本参数。 + */ + + MixedStreamLayoutRegionType region_content_type = MixedStreamLayoutRegionType:: kMixedStreamLayoutRegionTypeVideoStream; + /** + * + * @brief 水印图 RGBA 数据。当 `region_content_type` 为图片类型时需要设置。
    + * - `kMixedStreamLayoutRegionTypeImage = 1` 时,传入图片 RGBA 数据。 + * - `kMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + + uint8_t* image_water_mark = nullptr; + /** + * + * @type keytype + * @brief 水印图参数。当 `region_content_type` 为图片类型时需要设置。
    + * - `kMixedStreamLayoutRegionTypeImage = 1` 时,传入图片参数,参看 MixedStreamLayoutRegionImageWaterMarkConfig{@link #MixedStreamLayoutRegionImageWaterMarkConfig}。 + * - `kMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + + MixedStreamLayoutRegionImageWaterMarkConfig image_water_mark_param; + /** + * + * @valid since 3.57 + * @brief 设置占位图的填充模式。
    + * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。默认值为 `kMixedStreamAlternateImageFillModeFit`,占位图跟随用户原始视频帧相同的比例缩放。
    + * 参看 MixedStreamAlternateImageFillMode{@link #MixedStreamAlternateImageFillMode}。
    + * WTN 流任务不支持设置本参数。 + */ + + MixedStreamAlternateImageFillMode alternate_image_fill_mode = kMixedStreamAlternateImageFillModeFit; + /** + * + * @valid since 3.57 + * @brief 设置占位图的 URL,长度小于 1024 字符. + */ + + const char* alternate_image_url = nullptr; + /** + * + * @type keytype + * @brief 空间位置。参看 Position{@link #Position}。
    + * WTN 流任务不支持设置本参数。 + */ + + Position spatial_position; + /** + * + * @type keytype + * @brief 是否开启空间音频效果。默认值为 true。
    + * WTN 流任务不支持设置本参数。 + */ + + bool apply_spatial_audio = true; + /** + * + * @brief 支持对每一路参与WTN 流的视频进行裁剪,参看 SourceCrop{@link #SourceCrop}
    + * 合流转推任务不支持。 + */ + + SourceCrop source_crop; +} MixedStreamLayoutRegionConfig; +/** + * + * @type keytype + * @brief 数据帧类型 + */ + +enum DataFrameType { + /** + * + * @brief SEI 视频帧 + */ + + kDataFrameTypeSei = 0, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流房间状态 + */ + +enum TranscoderRoomStatus { + /** + * @brief join room status + */ + kRoomStatusJoinRoom, + /** + * @brief leave room status + */ + kRoomStatusLeaveRoom, + /** + * @brief room status was offline + */ + kRoomStatusOffline, + /** + * @brief room status was online + */ + kRoomStatusOnline, +}; + +/** + * @hidden for internal use only + */ +typedef size_t status_t; +/** + * + * @hidden for internal use only + */ + +class IVideoFrame; +/** + * + * @hidden for internal use only + */ + +class IAudioFrame; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 数据帧 + */ + +typedef struct IDataFrame { + /** + * + * @brief 数据帧类型,参看 DataFrameType{@link #DataFrameType} + */ + + DataFrameType frame_type = kDataFrameTypeSei; + /** + * + * @brief 数据帧数据 + */ + + uint8_t* u8_data = nullptr; + /** + * + * @brief 数据帧数据大小 + */ + + uint32_t u32_data_size = 0; + /** + * + * @brief 数据帧时间戳,单位:微秒 + */ + + uint64_t u64_ts_us = 0; +} IDataFrame; + +/** + * + * @type keytype + * @brief 合流/WTN 流的转推目标参数。 + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +typedef struct MixedStreamPushTargetConfig { + /** + * + * @type keytype + * @brief WTN 流 ID。合流任务不支持设置本参数。 + */ + + const char* push_wtn_stream_id = nullptr; + /** + * + * @type api + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + + const char* push_cdn_url = nullptr; + /** + * + * @type keytype + * @brief 推流任务类型。 + */ + + MixedStreamPushTargetType push_target_type = kMixedStreamPushTargetTypeToCDN; +} MixedStreamPushTargetConfig; + +/** + * + * @type keytype + * @brief 合流转推配置参数。 + * 如无特别说明,参数可适用于WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +class IMixedStreamConfig { +public: + /** + * + * @type api + * @brief 构建合流任务参数 + * @return 合流任务参数 + */ + + static BYTERTC_STATIC_API IMixedStreamConfig* createMixedStreamConfig(); + /** + * + * @type api + * @brief 获取发起合流任务用户所在的房间 ID。 + * @return 合流房间 ID + */ + + virtual const char* getRoomID() = 0; + /** + * + * @type api + * @brief 设置合流房间 ID + * @param room_id 发起合流的用户所在的房间 ID + * @note + * 本参数不支持过程中更新。 + */ + + virtual void setRoomID(const char* room_id) = 0; + /** + * + * @type api + * @brief 获取发起合流任务的用户 ID。 + * @return 用户 ID。 + */ + + virtual const char* getUserID() = 0; + /** + * + * @type api + * @brief 设置发起合流任务的用户 ID。`room_id` 和 `user_id` 长度相加不得超过 126 字节。建议设置。
    + * 本参数不支持过程中更新。 + * @param user_id 推流用户 ID。 + */ + + virtual void setUserID(const char* user_id) = 0; + /** + * + * @type api + * @brief 获取合流音频参数。 + * @return 合流音频参数内容,参看 MixedStreamAudioConfig{@link #MixedStreamAudioConfig}。 + */ + + virtual MixedStreamAudioConfig getAudioConfig() = 0; + /** + * + * @type api + * @brief 设置音频参数。建议设置。 + * @param MixedStreamAudioConfig 音频参数,参看 MixedStreamAudioConfig{@link #MixedStreamAudioConfig}。 + * @note + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + + virtual void setAudioConfig(const MixedStreamAudioConfig&) = 0; + /** + * + * @type api + * @brief 获取视频转码参数。 + * @return 视频转码参数内容,参看 MixedStreamVideoConfig{@link #MixedStreamVideoConfig}。 + */ + + virtual MixedStreamVideoConfig getVideoConfig() = 0; + /** + * + * @type api + * @brief 设置视频参数。建议设置。 + * @param MixedStreamVideoConfig 视频参数,参看 MixedStreamVideoConfig{@link #MixedStreamVideoConfig}。 + */ + + virtual void setVideoConfig(const MixedStreamVideoConfig&) = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @brief 获取转推 CDN 时的空间音频参数。 + * @return 参看 MixedStreamSpatialAudioConfig{@link #MixedStreamSpatialAudioConfig}。 + */ + + virtual MixedStreamSpatialAudioConfig getSpatialAudioConfig() = 0; + /** + * + * @hidden(Windows,macOS,Linux) + * @type api + * @brief 设定转推 CDN 时的空间音频效果。参看 MixedStreamSpatialAudioConfig{@link #MixedStreamSpatialAudioConfig}。 + */ + + virtual void setSpatialAudioConfig(const MixedStreamSpatialAudioConfig&) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取动态扩展自定义参数 + * @return 动态扩展自定义参数 + */ + + virtual const char* getAdvancedConfig() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置动态扩展自定义参数 + * @param advanced_config 动态扩展自定义参数 + */ + + virtual void setAdvancedConfig(const char* advanced_config) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取业务透传鉴权信息 + * @return 业务透传鉴权信息 + */ + + virtual const char* getAuthInfo() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置业务透传鉴权信息 + * @param auth_info 业务透传鉴权信息 + */ + + virtual void setAuthInfo(const char* auth_info) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 获取转推直播同步参数。 + * @return 转推直播同步参数,参看 MixedStreamSyncControlConfig{@link #MixedStreamSyncControlConfig}。 + */ + + virtual MixedStreamSyncControlConfig getSyncControlConfig() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置转推直播同步参数。参看 MixedStreamSyncControlConfig{@link #MixedStreamSyncControlConfig}。 + */ + + virtual void setSyncControlConfig(MixedStreamSyncControlConfig&) = 0; + /** + * + * @type api + * @brief 获取服务端合流控制参数。参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}。 + */ + + virtual MixedStreamControlConfig getControlConfig() = 0; + /** + * + * @type api + * @brief 设置服务端合流控制参数。参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}。 + * @param config 参看 MixedStreamControlConfig{@link #MixedStreamControlConfig}. + */ + + virtual void setControlConfig(MixedStreamControlConfig& config) = 0; + /** + * + * @type api + * @brief 获取用户配置的额外信息。 + * @return 用户配置的额外信息。 + */ + + virtual const char* getUserConfigExtraInfo() = 0; + /** + * + * @type api + * @brief 设置用户配置的额外信息。 + * @param user_ext_info 用户配置的额外信息。 + * @note + * WTN 流任务不支持设置本参数。 + */ + + virtual void setUserConfigExtraInfo(const char* user_ext_info) = 0; + /** + * + * @type api + * @brief 获取 WTN 流的布局模式。 + * @return StreamLayoutMode{@link #StreamLayoutMode} 信息。 + */ + + virtual StreamLayoutMode getStreamLayoutMode() = 0; + /** + * + * @type api + * @brief 设置 WTN 流的布局模式。 + * @param mode 布局模式。参看 StreamLayoutMode{@link #StreamLayoutMode}。 + */ + + virtual void setStreamLayoutMode(StreamLayoutMode mode) = 0; + /** + * + * @type api + * @brief 获取 WTN 流的补帧模式。 + * @return InterpolationMode{@link #InterpolationMode} 信息。 + */ + + virtual InterpolationMode getInterpolationMode() = 0; + /** + * + * @type api + * @brief 设置 WTN 流的补帧模式。 + * @param mode 补帧模式。参看 InterpolationMode{@link #InterpolationMode}。 + */ + + virtual void setInterpolationMode(InterpolationMode mode) = 0; + + /** + * + * @type api + * @brief 获取 WTN 流 ID。 + * @return WTN 流 ID。 + */ + + virtual const char* getPushWTNStreamID() = 0; + /** + * + * @type api + * @brief 设置 WTN 流 ID。 + * @param stream_id WTN 流 ID。 + */ + + virtual void setPushWTNStreamID(const char* stream_id) = 0; + /** + * + * @type api + * @brief 获取任务类型。 + * @return MixedStreamPushTargetType{@link #MixedStreamPushTargetType} + */ + + virtual MixedStreamPushTargetType getPushTargetType() = 0; + /** + * + * @type api + * @brief 设置推流目标。 + * @param type 参看 MixedStreamPushTargetType{@link #MixedStreamPushTargetType}。 + */ + + virtual void setPushTargetType(MixedStreamPushTargetType type) = 0; + + /** + * + * @type api + * @brief 获取背景颜色。 + * @return 背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。 + */ + + virtual const char* getBackgroundColor() = 0; + /** + * + * @type api + * @brief 设置背景颜色。 + * @param background_color 背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。 + */ + + virtual void setBackgroundColor(const char* background_color) = 0; + /** + * + * @type api + * @brief 获取背景图片的地址。 + * @return 背景图片的地址。 + */ + + virtual const char* getBackgroundImageURL() = 0; + /** + * + * @type api + * @brief 设置合流后整体画布的背景图片。 + * @param background_image_url 图片的 URL,长度最大为 1023 bytes。
    + * 必须是 http 开头,支持的图片格式包括:JPG, JPEG, PNG。如果背景图片的宽高和整体屏幕的宽高不一致,背景图片会缩放到铺满屏幕。 + */ + + virtual void setBackgroundImageURL(const char* background_image_url) = 0; + /** + * + * @type api + * @brief 获取合流视窗布局信息。 + * @param index 视窗对应下标。 + * @return 合流视窗布局信息,参看 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig}。 + */ + + virtual MixedStreamLayoutRegionConfig getLayoutByIndex(int32_t index) = 0; + /** + * + * @type api + * @brief 获取合流参数中视窗的数量 + * @return 合流参数中视窗的数量 + */ + + virtual int32_t getLayoutRegionsSize() = 0; + /** + * + * @type api + * @brief 设置视频流合流整体布局信息。 + * @param regions 用户布局信息列表。为 MixedStreamLayoutRegionConfig{@link #MixedStreamLayoutRegionConfig} 数据类型的数组。每一个该类型对象为一路单独的视频流的布局信息。
    + * 值不合法或未设置时,自动使用默认值。建议设置。 + * @param regions_size 合流视窗数量。建议设置。 + */ + + virtual void setLayoutConfig(MixedStreamLayoutRegionConfig regions[], int32_t regions_size) = 0; + virtual ~IMixedStreamConfig() = default; +}; + +/** + * + * @type keytype + * @brief 单流转推配置目标房间信息 + */ + +typedef struct DestInfo { + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID + */ + + const char* room_id; + /** + * + * @brief 转发目标房间中自定义用户ID + */ + + const char* user_id; +} DestInfo; + +/** + * + * @type keytype + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间。 + */ + +enum SingleStreamPushType { + /** + * + * @brief 转推到 CDN + */ + + kPushToCDN = 1, + /** + * + * @brief 转推到 RTC 房间 + */ + + kPushToRTC = 2 +}; + +/** + * + * @type keytype + * @brief 单流转推直播配置参数。 + */ + +typedef struct PushSingleStreamParam { + /** + * + * @brief 媒体流所在的房间 ID + */ + + const char* room_id; + /** + * + * @brief 媒体流所属的用户 ID + */ + + const char* user_id; + /** + * + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * 本参数不支持过程中更新。 + */ + + const char* uri; + /** + * + * @brief 预留字段。 + */ + + bool is_screen_stream; + /** + * + * @brief 转推目标房间数组,默认值为nullptr + */ + + DestInfo* dest_info = nullptr; + /** + * + * @brief 转推目标房间数量,`dest_info` 的数组长度,
    + * 默认值为0,取值范围[0, 8] + */ + + int32_t dest_info_size = 0; + /** + * + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间,默认值为转推到 CDN。 + */ + + SingleStreamPushType push_type = kPushToCDN; +}PushSingleStreamParam; + +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步模式。 +*/ + +enum ChorusCacheSyncMode { + /** + * + * @brief 合唱场景下,主唱应采用此模式,以发送带时间戳信息的媒体数据。 + */ + + kChorusCacheSyncModeProducer= 0, + /** + * + * @brief 合唱场景下,副唱应采用此模式。
    + * 此模式下,副唱收到来自主唱的带时间戳的媒体数据。副唱发送的媒体数据中带有来自主唱的时间戳。 + */ + + kChorusCacheSyncModeRetransmitter= 1, + /** + * + * @brief 合唱场景下,听众应采用此模式。
    + * 此模式下,听众收到来自主唱的时间戳,并据此对齐来自主唱和副唱的媒体数据,以获得良好的合唱播放效果。 + */ + + kChorusCacheSyncModeConsumer = 2 +}; +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步事件。 +*/ + +enum ChorusCacheSyncEvent { + /** + * + * @brief 成功 + */ + + kChorusCacheSyncEventStartSuccess = 0, + /** + * + * @brief 失败。 + */ + + kChorusCacheSyncEventStartFailed = 1, +}; +/** +* +* @hidden internal use only +* @type errorcode +* @brief 缓存同步错误码。 +*/ + +enum ChorusCacheSyncError { + /** + * + * @brief 成功。 + */ + + kChorusCacheSyncErrorOK = 0, + /** + * + * @brief 失败。推送至 CDN 时,应进行以下设置:
    + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.enable_sync = true`; + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.base_user_id = {uid of producer}`。 + */ + + kChorusCacheSyncErrorWrongState = 1, + /** + * + * @brief 缓存同步功能已启动,不需要重复开启。 + */ + + kChorusCacheSyncErrorAlreadyRunning = 2 +}; +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步配置。 +*/ + +struct ChorusCacheSyncConfig { + /** + * + * @brief 最大媒体缓存时长(ms)。
    + * 取值范围是 `[500, 2500]`,默认值是 `2000`。
    + * 值越大,同步效果越好,但会造成占用内存较大。如果参与缓存同步的各路媒体流之间的时间差超过此值,会造成丢帧。 + */ + + int32_t max_cache_time_ms = 2000; + /** + * + * @brief 收到 onSyncedVideoFrames{@link #IChorusCacheSyncObserver#onSyncedVideoFrames} 的频率。
    + * 默认值是 `15`。此值通常应小于等于原始视频帧率;如果大于原始视频帧率,可能会收到重复帧。 + */ + + int32_t video_fps = 15; + /** + * + * @brief 模式。参看 ChorusCacheSyncMode{@link #ChorusCacheSyncMode}. 默认值是 `retransmitter`。 + */ + + ChorusCacheSyncMode mode = kChorusCacheSyncModeRetransmitter; +}; + +/** + * + * @type callback + * @hidden for internal use only on Windows + * @brief 合流推流 Observer
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +class IClientMixedStreamObserver { +public: + /** + * + * @hidden for internal use only on Windows + * @type callback + * @brief 转推直播状态回调 + * @param info 参看 MixedStreamTaskInfo{@link #MixedStreamTaskInfo} + * @param type 转推直播类型,参看 MixedStreamType{@link #MixedStreamType} + * @param event 转推直播任务状态,参看 MixedStreamTaskEvent{@link #MixedStreamTaskEvent} + * @param error_code 转推直播错误码,参看 MixedStreamTaskErrorCode{@link #MixedStreamTaskErrorCode}。 + */ + + virtual void onClientMixedStreamEvent(MixedStreamTaskInfo info, MixedStreamType type, MixedStreamTaskEvent event, MixedStreamTaskErrorCode error_code) = 0; + /** + * + * @hidden for internal use only on Windows + * @type callback + * @region CDN 推流 + * @brief 客户端合流音频首帧回调 + * @param task_id 任务 ID + */ + + virtual void onMixedFirstAudioFrame(const char* task_id) = 0; + /** + * + * @hidden for internal use only on Windows + * @type callback + * @region CDN 推流 + * @brief 客户端合流视频首帧回调 + * @param task_id 任务 ID + */ + + virtual void onMixedFirstVideoFrame(const char* task_id) = 0; + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 合流视频回调,运行在视频回调线程 + * @param task_id 合流任务 ID + * @param video_frame 视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @note 收到该回调的周期与视频的帧间隔一致。 + */ + + virtual void onMixedVideoFrame(const char* task_id, IVideoFrame* video_frame) = 0; + + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 合流音频回调,运行在音频回调线程 + * @param task_id 转推直播任务 ID + * @param audio_frame 音频帧,参看 IAudioFrame{@link #IAudioFrame}。 + * @note 收到该回调的周期为每 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + */ + + virtual void onMixedAudioFrame(const char* task_id, IAudioFrame* audio_frame) = 0; + + /** + * + * @type callback + * @hidden for internal use only on Windows + * @region CDN 推流 + * @brief 视频 SEI 帧回调,运行在视频回调线程 + * @param task_id 转推直播任务 ID + * @param data_frame SEI 数据 + */ + + virtual void onMixedDataFrame(const char* task_id, IDataFrame* data_frame) = 0; + + /** + * + * @hidden for internal use only + * @type callback + * @region CDN 推流 + * @brief 同步视频帧回调。 + * @param task_id 转推直播任务 ID。 + * @param uids 同步视频帧对应的 uid 数组。 + * @param video_frames 同步视频帧数组,与 uids 对应。 + * @param data_frame SEI 数据。 + * @param count 数组的长度。 + */ + + virtual void onCacheSyncVideoFrames(const char* task_id, const char* uids[], IVideoFrame* video_frames[], + IDataFrame* data_frame[], int count) = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IClientMixedStreamObserver() = default; +}; + +/** + * + * @hidden internal use only + * @type callback + * @brief 缓存同步 Observer + */ + +class IChorusCacheSyncObserver { +public: + /** + * @hidden constructor/destructor + */ + virtual ~IChorusCacheSyncObserver() { + } + /** + * + * @type callback + * @brief 调用 startChorusCacheSync{@link #IRTCEngine#startChorusCacheSync},并设置为 `consumer` 的用户会通过此回调获取经缓存同步后的视频帧。获取频率通过启动同步时的 `fps` 进行设置。 + * @param count `uids` 和 `videoFrames` 的数组长度 + * @param uids 参与合唱缓存同步的 `producer` 和 `retransmitter` 的列表,不包括参与但未发送媒体数据的用户。 + * @param video_frames 对应 `uids` 的视频帧。参看 IVideoFrame{@link #IVideoFrame}。 + */ + + virtual void onSyncedVideoFrames(int count, const char* uids[], bytertc::IVideoFrame* video_frames[]) = 0; + /** + * + * @type callback + * @brief 参与合唱缓存同步的 `producer` 和 `retransmitter` 发生变化时,收到此回调。 + * @param count 当前的 `uids` 的长度 + * @param uids 当前的参与者列表 + * @note 有以下情况可能造成参与者发生变化:
    + * - 用户主动调用 startChorusCacheSync{@link #IRTCEngine#startChorusCacheSync} 或 stopChorusCacheSync{@link #IRTCEngine#stopChorusCacheSync}; + * - 原本参与缓存同步的用户发生异常退出。 + */ + + virtual void onSyncedUsersChanged(int count, const char* uids[]) = 0; + /** + * + * @type callback + * @brief 缓存同步事件回调 + * @param event 事件,参看 ChorusCacheSyncEvent{@link #ChorusCacheSyncEvent}。 + * @param error 错误码,参看 ChorusCacheSyncError{@link #ChorusCacheSyncError}。 + */ + + virtual void onSyncEvent(ChorusCacheSyncEvent event, ChorusCacheSyncError error) = 0; +}; +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h new file mode 100644 index 0000000..25f0cc7 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines.h @@ -0,0 +1,2648 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Defines + */ + +#pragma once + +#include "bytertc_rts_defines.h" +#include "bytertc_video_frame.h" + +namespace bytertc { + +/** + * + * @type keytype + * @brief 订阅大小流偏好 + */ + +enum SimulcastStreamType { + /** + * + * @brief 弱流,最小分辨率的流。 + */ + + kSimulcastStreamTypeWeak = 0, + /** + * + * @brief 小流 + */ + + kSimulcastStreamTypeLow, + /** + * + * @brief 中流 + */ + + kSimulcastStreamTypeMid, + /** + * + * @brief 大流 + */ + + kSimulcastStreamTypeHigh +}; + +/** + * + * @type keytype + * @brief 发布大小流模式 + */ + +enum VideoSimulcastMode { + /** + * + * @brief 单流模式。始终只有 1 路分辨率的流。 + */ + + kVideoSimulcastModeOnlyOne = 0, + /** + * + * @brief 按需订阅模式。发送端会根据订阅端的状态,按需发布。无订阅偏好设置默认发送 2 路。 + */ + + kVideoSimulcastModeOnDemand, + /** + * + * @brief 订阅弱流。发送端始终按照设置的参数发布所有大小流。默认发送 2 路。 + */ + + kVideoSimulcastModeAlwaysSimulcast, +}; + + +/** + * + * @type keytype + * @brief 渲染模式 + */ + +enum RenderMode { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + kRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + */ + + kRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + kRenderModeFill = 3, +}; + +/** + * + * @type keytype + * @brief 订阅媒体的类型 + */ + +enum SubscribeMediaType { + /** + * + * @brief 既不订阅音频,也不订阅视频 + */ + + kRTCSubscribeMediaTypeNone = 0, + /** + * + * @brief 只订阅音频,不订阅视频 + */ + + kRTCSubscribeMediaTypeAudioOnly, + /** + * + * @brief 只订阅视频,不订阅音频 + */ + + kRTCSubscribeMediaTypeVideoOnly, + /** + * + * @brief 同时订阅音频和视频 + */ + + kRTCSubscribeMediaTypeVideoAndAudio +}; + +/** + * + * @type keytype + * @brief 暂停/恢复接收远端的媒体流类型。 + */ + +enum PauseResumeControlMediaType { + /** + * + * @brief 只控制音频,不影响视频 + */ + + kRTCPauseResumeControlMediaTypeAudio = 0, + /** + * + * @brief 只控制视频,不影响音频 + */ + + kRTCPauseResumeControlMediaTypeVideo = 1, + /** + * + * @brief 同时控制音频和视频 + */ + + kRTCPauseResumeControlMediaTypeVideoAndAudio = 2 +}; + +/** + * + * @type keytype + * @brief 时域分层定义 + */ + +enum SVCLayer { + /** + * + * @brief 不指定分层(默认值) + */ + + kSVCLayerDefault = 0, + /** + * + * @brief T0 层 + */ + + kSVCLayerBase = 1, + /** + * + * @brief T0+T1 层 + */ + + kSVCLayerMain = 2, + /** + * + * @brief T0+T1+T2 层 + */ + + kSVCLayerHigh = 3, +}; + +/** + * + * @type keytype + * @brief 流切换信息。本地用户订阅的远端流触发回退策略时的流切换信息。 + */ + +struct RemoteStreamSwitch { + /** + * + * @brief 订阅的音视频流的发布者的用户 ID。 + */ + + const char* uid; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 流切换前本地用户订阅的视频流的分辨率对应的索引。 + */ + + int before_video_index; + /** + * + * @brief 流切换后本地用户订阅的视频流的分辨率对应的索引。 + */ + + int after_video_index; + /** + * + * @brief 流切换前是否有视频流。 + */ + + bool before_enable; + /** + * + * @brief 流切换后是否有视频流。 + */ + + bool after_enable; + /** + * + * @brief 触发流回退的原因,详见类型 FallbackOrRecoverReason{@link #FallbackOrRecoverReason} 。 + */ + + FallbackOrRecoverReason reason; +}; + +/** + * + * @type keytype + * @brief 背景模式 + */ + +enum BackgroundMode { + /** + * + * @brief 无 + */ + + kBackgroundModeNone = 0, + /** + * + * @brief 虚化 + */ + + kBackgroundModeBlur = 1, + /** + * + * @brief 背景 1 + */ + + kBackgroundModeA = 2, + /** + * + * @brief 背景 2 + */ + + kBackgroundModeB = 3, +}; + +/** + * + * @type keytype + * @brief 分割模型 + */ + +enum DivideMode { + /** + * + * @brief 自研 + */ + + kDivideModeNone = 0, + /** + * + * @brief effect + */ + + kDivideModeEffect = 1, +}; + +/** + * + * @type keytype + * @brief 流属性。 + */ + +struct MediaStreamInfo { + /** + * + * @brief 发布此流的用户 ID 。 + */ + + const char* user_id; + /** + * + * @hidden for internal use only + * @brief 该流的标识 ID,用户内唯一。 + */ + + StreamIndex stream_index; + /** + * + * @brief 预留字段。 + */ + + bool is_screen; + /** + * + * @brief 此流是否包括视频流。 + */ + + bool has_video; + /** + * + * @brief 流是否包括音频流。 + */ + + bool has_audio; + /** + * + * @brief 视频流的属性。
    + * 当远端用户调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法发布多个配置的视频流时,此处会包含该用户发布的所有视频流的属性信息。 + */ + + VideoSolutionDescription* profiles; + /** + * + * @brief 不同配置流的个数。
    + * 当远端用户调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法发布多个配置的视频流时,此处会包含该用户发布的视频流的数目。 + */ + + int profile_count; + + /** + * + * @brief 最大视频流的属性。
    + * 当远端用户开启带通道划分的大小流时,回调最大视频流属性信息。用户可以使用新的订阅方式,订阅任意不超过该分辨率的流。
    + * 最终接收到的流,会受房间内其他用户的订阅行为的影响,综合确定一个最接近用户请求的分辨率的流。 + */ + + VideoSolutionDescription max_profile; +}; + +/** + * + * @type keytype + * @brief 视频订阅配置信息 + */ + +struct SubscribeVideoConfig { + /** + * + * @brief 订阅的视频流分辨率下标。
    + * 当远端用户通过调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法启动发布多路不同分辨率的视频流时,本地用户需通过此参数指定希望订阅的流。
    + * 默认值为 0,即订阅第一路流。
    + * 如果不想更改之前的设置,可以输入 -1。 + */ + + int video_index = 0; + /** + * + * @brief 远端用户优先级,参看 RemoteUserPriority{@link #RemoteUserPriority},默认值为 0。 + */ + + int priority = 0; + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeVideoConfig() : video_index(0), priority(0) { + } + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const SubscribeVideoConfig& config) const { + bool result = video_index == config.video_index && priority == config.priority; + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const SubscribeVideoConfig& config) const { + bool result = (*this == config); + return !result; + } +}; + +/** + * + * @type keytype + * @brief 手动订阅流的配置信息。 + */ + +struct SubscribeConfig { + /** + * + * @brief 预留字段。 + */ + + bool is_screen = false; + /** + * + * @brief 是否订阅视频。 + */ + + bool sub_video; + /** + * + * @brief 是否订阅音频。 + */ + + bool sub_audio; + /** + * + * @brief 订阅的视频流分辨率下标。
    + * 用户可以通过调用 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 方法在一路流中发布多个不同分辨率的视频。因此订阅流时,需要指定订阅的具体分辨率。此参数即用于指定需订阅的分辨率的下标,默认值为 0 。 + */ + + int video_index; + /** + * + * @brief 远端用户的需求优先级,参看 RemoteUserPriority{@link #RemoteUserPriority},默认值为 0 。
    + * 当开启了订阅流回退选项功能(详见 setSubscribeFallbackOption{@link #IRTCEngine#setSubscribeFallbackOption} 方法),弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + */ + + int priority = 0; + /** + * + * @brief 远端用户的时域分层,参看 SVCLayer{@link #SVCLayer},默认值为 0 。
    + * 仅码流支持 SVC 特性时可以生效。 + */ + + int svc_layer = 0; + /** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + + int framerate = 0; + /** + * + * @brief 用户通过指定 UI 对应的最合适的流的宽度,单位:px + */ + + int sub_width = 0; + /** + * + * @brief 用户通过指定 UI 对应的最合适的流的高度,单位:px + */ + + int sub_height = 0; + /** + * + * @hidden for internal use only + */ + + int sub_video_index = -1; + +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig() : is_screen(false), sub_video(true), sub_audio(true), video_index(0), priority(0) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex) + : is_screen(is_screen), sub_video(subvideo), sub_audio(subaudio), video_index(videoindex) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex, int priority) + : is_screen(is_screen), + sub_video(subvideo), + sub_audio(subaudio), + video_index(videoindex), + priority(priority) { + } + + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + SubscribeConfig(bool is_screen, bool subvideo, bool subaudio, int videoindex, + int priority,int svc_layer,int width,int height) + : is_screen(is_screen), + sub_video(subvideo), + sub_audio(subaudio), + video_index(videoindex), + priority(priority), + svc_layer(svc_layer), + sub_width(width), + sub_height(height) { + } + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const SubscribeConfig& config) const { + + bool common_result = is_screen == config.is_screen && sub_video == config.sub_video + && sub_audio == config.sub_audio && priority == config.priority + && svc_layer == config.svc_layer && framerate == config.framerate; + bool result; + if(sub_width * sub_height > 0 && config.sub_width * config.sub_height > 0) { + result = common_result && sub_width == config.sub_width && sub_height == config.sub_height ; + } else if((sub_width * sub_height == 0) && (config.sub_width * config.sub_height == 0) ) { + result = common_result && video_index == config.video_index; + } else { + result = false; + } + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const SubscribeConfig& config) const { + bool result = (*this == config); + return !result; + } +}; + +/** + * + * @type keytype + * @brief 远端视频类型
    + * 目前 C++ sdk 只支持 kVideoStreamTypeHigh 类型 + */ + +enum VideoStreamType { + /** + * + * @brief 高分辨率视频流 + */ + + kVideoStreamTypeHigh = 0, + /** + * + * @brief 低分辨率视频 + */ + + kVideoStreamTypeLow = 1, +}; + +/** + * + * @type keytype + * @brief 渲染目标类型 + */ + +enum RenderTargetType { + /** + * + * @brief 指定渲染目标类型为 SurfaceView/TextureView (Android), UIView(iOS), NSView(macOS), HWND (Windows) + */ + + kRenderTargetTypeView = 0, + /** + * + * @brief 仅在 Android 平台生效,指定渲染目标类型为 Surface + */ + + kRenderTargetTypeSurface = 1, +}; + +/** + * + * @type keytype + * @brief 视频帧渲染设置。 + */ + +struct VideoCanvas { + /** + * + * @brief 本地视图句柄 + */ + + void* view = NULL; + /** + * + * @brief 视频渲染模式,参看 RenderMode{@link #RenderMode} + */ + + int render_mode = kRenderModeHidden; + /** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + + uint32_t background_color = 0; + /** + * + * @brief 渲染目标的类型。参看 RenderTargetType{@link #RenderTargetType}。 + */ + + RenderTargetType render_target_type = kRenderTargetTypeView; + /** + * + * @brief 视频帧旋转角度。参看 VideoRotation{@link #VideoRotation}。默认为 0 度,即不做旋转处理。
    + * 该设置仅对远端视频有效,对本地视频设置不生效。 + */ + + VideoRotation render_rotation = kVideoRotation0; + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + VideoCanvas() : view(NULL), render_mode(kRenderModeHidden), background_color(0), render_target_type(kRenderTargetTypeView) { + } + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + VideoCanvas(void* v, int m, uint32_t c) : view(v), render_mode(m), background_color(c) { + } +}; + +/** + * + * @type keytype + * @brief 远端视频帧渲染设置 + */ + +struct RemoteVideoRenderConfig { + /** + * + * @brief 渲染模式:
    + * - 1(`RENDER_MODE_HIDDEN`)视窗填满优先,默认值。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + * - 2(`RENDER_MODE_FIT`)视频帧内容全部显示优先。视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将填充 `backgroundColor`。缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + * - 3(`RENDER_MODE_FILL`)视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + RenderMode render_mode = kRenderModeHidden; + /** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + + uint32_t background_color = 0; + + /** + * + * @brief 用户自定义画面旋转。可选值 0, 90, 180, 270, 默认值是 0。其中 0 代表保持原始画面,90, 180, 270 代表顺时针旋转原始 canvas 相应角度。 + */ + + VideoRotation render_rotation = kVideoRotation0; +}; + +/** + * + * @type api + * @brief Windows 窗口 id, Windows 平台下传 Windows 窗口句柄 + */ + +typedef void* view_t; + +/** + * + * @type keytype + * @brief 矩形区域,用于指定屏幕区域。 + */ + +struct Rectangle { + /** + * + * @brief 矩形区域左上角的 x 坐标。 + */ + + int x = 0; + /** + * + * @brief 矩形区域左上角的 y 坐标。 + */ + + int y = 0; + /** + * + * @brief 矩形宽度。 + */ + + int width = 0; + /** + * + * @brief 矩形高度。 + */ + + int height = 0; +}; + +/** + * + * @type keytype + * @brief 屏幕共享时的边框高亮设置。 + */ + +struct HighlightConfig { + /** + * + * @brief 是否显示高亮边框,默认显示。 + */ + + bool enable_highlight = true; + /** + * + * @brief 边框的颜色, 颜色格式为十六进制 ARGB: 0xAARRGGB。 + */ + + uint32_t border_color = 0xFF29CCA3; + /** + * + * @brief 边框的宽度,单位:像素。 + */ + + int border_width = 4; +}; + +/** + * + * @type keytype + * @brief 抓取屏幕时排除指定窗口,默认不排除任何窗体。 + */ + +struct ScreenFilterConfig { + /** + * + * @brief 抓取屏幕时排除窗口列表。这个参数仅在抓取屏幕时生效。 + */ + + view_t* excluded_window_list = nullptr; + /** + * + * @brief 排除窗口的数量。 + */ + + int excluded_window_num = 0; +}; + +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流时,是否采集鼠标信息。 + */ + +enum MouseCursorCaptureState { + /** + * + * @brief 采集鼠标信息。 + */ + + kMouseCursorCaptureStateOn, + /** + * + * @brief 不采集鼠标信息。 + */ + + kMouseCursorCaptureStateOff, +}; + +/** + * + * @type keytype + * @brief 屏幕共享参数 + */ + +struct ScreenParameters { + /** + * + * @brief 编码帧率,单位为 fps + */ + + int frame_rate = 15; + /** + * + * @brief 屏幕采集编码码率, `-1` 为自动码率, SDK 会根据宽高信息选择合适的码率,单位 kbps + */ + + int kbitrate = -1; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `min_kbitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, kbitrate),当 `kbitrate` < `min_kbitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `kbitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `kbitrate` < `0` 时,适配码率模式。 + */ + + int min_kbitrate = 0; +}; + +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流的内容类型。 + */ + +enum ContentHint { + /** + * + * @brief 细节内容。当共享文档、图片时,建议使用该内容类型。默认值。 + */ + + kContentHintDetails = 0, + /** + * + * @brief 动画内容。当共享视频、游戏时,建议使用该内容类型。 + */ + + kContentHintMotion, +}; + +/** + * + * @type keytype + * @brief 屏幕共享内部采集参数 + */ + +struct ScreenCaptureParameters { + /** + * + * @brief 采集区域,参看 Rectangle{@link #Rectangle}。 + */ + + Rectangle region_rect; + /** + * + * @brief 是否采集鼠标状态,参看 MouseCursorCaptureState{@link #MouseCursorCaptureState}。 + */ + + MouseCursorCaptureState capture_mouse_cursor = MouseCursorCaptureState::kMouseCursorCaptureStateOn; + /** + * + * @brief 屏幕过滤设置,填写不需要采集的窗口 ID,参看 ScreenFilterConfig{@link #ScreenFilterConfig}。 + */ + + ScreenFilterConfig filter_config; + /** + * + * @brief 采集区域的边框高亮设置,参看 HighlightConfig{@link #HighlightConfig}。 + */ + + HighlightConfig highlight_config; +}; + +/** + * + * @type keytype + * @brief 屏幕共享的编码参数配置。 + */ + +struct DesktopCaptureParameters { + /** + * + * @brief 屏幕采集编码最大宽度,单位 px。 + */ + + int max_width = 1920; + /** + * + * @brief 屏幕采集编码最大高度,单位 px。 + */ + + int max_height = 1080; + /** + * + * @brief 屏幕采集编码帧率, 单位 fps。 + */ + + int frame_rate = 15; + /** + * + * @brief 屏幕采集编码码率, -1 为自动码率, SDK 会根据宽高信息选择合适的码率,单位 kbps + */ + + int bitrate = -1; + /** + * + * @brief 最小编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
    + * 最小编码码率必须小于或等于最大编码,否则不对视频流进行编码发送。 + */ + + int min_bitrate = 0; + /** + * + * @brief 是否捕获鼠标光标。 + */ + + bool capture_mouse_cursor = true; + /** + * + * @brief 抓取屏幕时排除窗口列表。这个参数仅在抓取屏幕时生效。 + */ + + view_t* excluded_window_list = nullptr; + /** + * + * @brief 抓取屏幕时排除的窗口数量。 + */ + + int excluded_window_num = 0; + /** + * + * @brief 高亮边框的配置。 + */ + + HighlightConfig highlight_config; +}; + +/** + * + * @type keytype + * @brief 自定义视频渲染器 + */ + +class IVideoSink { +public: + /** + * + * @type keytype + * @brief 视频帧编码格式 + */ + + enum PixelFormat { + /** + * + * @brief YUV I420 格式 + */ + + kI420 = VideoPixelFormat::kVideoPixelFormatI420, + /** + * + * @brief RGBA 格式, 字节序为 R8 G8 B8 A8 + */ + + kRGBA = VideoPixelFormat::kVideoPixelFormatRGBA, + /** + * + * @brief 原始视频帧格式 + */ + + kOriginal = VideoPixelFormat::kVideoPixelFormatUnknown, + }; + /** + * + * @type callback + * @brief 视频帧回调 + * @param video_frame 视频帧结构类,参看 IVideoFrame{@link #IVideoFrame} + * @return 返回值暂未使用 + * @list + */ + + virtual bool onFrame(IVideoFrame* video_frame) = 0; + /** + * + * @type callback + * @brief 获取外部渲染耗时。 + * @note 获取外部渲染耗时进行上报。开发者需要自己计算平均渲染耗时。 + * @list 房间管理 + */ + + virtual int getRenderElapse() = 0; + /** + * + * @type callback + * @brief 释放渲染器。 + * @note 通知开发者渲染器即将被废弃。收到该返回通知后即可释放资源。 + * @list Room Management + */ + + virtual void release() { + } + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoSink() = default; + + /** + * + * @hidden sink id + * @brief sink id + */ + + virtual void* uniqueId() const { return (void *)this; } +}; + +/** + * + * @type keytype + * @brief 本地视频帧回调位置。 + */ + +enum LocalVideoSinkPosition { + /** + * + * @brief 采集后。 + */ + + kLocalVideoSinkPositionAfterCapture, + /** + * + * @brief (默认值)前处理后。 + */ + + kLocalVideoSinkPositionAfterPreProcess +}; + +/** + * + * @type keytype + * @brief 是否将视频帧自动转正。 + */ + +enum VideoApplyRotation { + /** + * + * @brief (默认值)不旋转。 + */ + + kVideoApplyRotationDefault = -1, + /** + * + * @brief 自动转正视频,即根据视频帧的旋转角信息将视频帧旋转到 0 度。 + */ + + kVideoApplyRotation0 = 0, +}; + +/** + * + * @type keytype + * @brief 是否将视频帧镜像。 + */ + +enum VideoSinkMirrorType { + /** + * + * @brief 开启镜像。 + */ + + kVideoSinkMirrorTypeON = 1, + /** + * + * @brief (默认值)不开启镜像。 + */ + + kVideoSinkMirrorTypeOFF = 2, +}; + +/** + * + * @type keytype + * @brief 本地视频帧回调配置。 + */ + +struct LocalVideoSinkConfig { + /** + * + * @brief 本地视频帧回调位置,参看 LocalVideoSinkPosition{@link #LocalVideoSinkPosition},默认回调前处理后的视频帧。 + */ + + LocalVideoSinkPosition position = kLocalVideoSinkPositionAfterPreProcess; + /** + * + * @brief 本地视频帧回调格式,参看 VideoPixelFormat{@link #VideoPixelFormat},默认值为 0。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调位置。 + */ + +enum RemoteVideoSinkPosition { + /** + * + * @hidden not available + * @brief 解码后。 + */ + + kRemoteVideoSinkPositionAfterDecoder, + /** + * + * @brief (默认值)后处理后。 + */ + + kRemoteVideoSinkPositionAfterPostProcess +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调配置。 + */ + +struct RemoteVideoSinkConfig { + /** + * + * @brief 远端视频帧回调位置,参看 RemoteVideoSinkPosition{@link #RemoteVideoSinkPosition},默认回调后处理后的视频帧。 + */ + + RemoteVideoSinkPosition position = kRemoteVideoSinkPositionAfterPostProcess; + /** + * + * @brief 远端视频帧回调格式,参看 VideoPixelFormat{@link #VideoPixelFormat},默认值为 0。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; + /** + * + * @brief 是否将视频帧自动转正,参看 VideoApplyRotation{@link #VideoApplyRotation},默认为不旋转。 + */ + + VideoApplyRotation apply_rotation = kVideoApplyRotationDefault; + /** + * + * @brief 是否将视频帧镜像。参看 VideoSinkMirrorType{@link #VideoSinkMirrorType},默认为不镜像。
    + * 本设置与 setRemoteVideoMirrorType{@link #IRTCEngine#setRemoteVideoMirrorType} (适用于内部渲染)相互独立。 + */ + + VideoSinkMirrorType mirror_type = kVideoSinkMirrorTypeOFF; +}; + +/** + * + * @hidden + * @type keytype + * @deprecated since 3.29 and will be deleted in 3.51, use MirrorType{@link #MirrorType} instead. + * @brief 是否开启镜像模式 + */ + +enum MirrorMode { + /** + * + * @brief 不开启 + */ + + kMirrorModeOff = 0, + /** + * + * @brief 开启 + */ + + kMirrorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 镜像类型 + */ + +enum MirrorType : int { + /** + * + * @brief 本地预览和编码传输时均无镜像效果 + */ + + kMirrorTypeNone = 0, + /** + * + * @brief 本地预览时有镜像效果,编码传输时无镜像效果 + */ + + kMirrorTypeRender = 1, + /** + * + * @brief 本地预览时无镜像效果,仅编码传输时有镜像效果 + */ + + kMirrorTypeEncoder = 2, + /** + * + * @brief 本地预览和编码传输时均有镜像效果 + */ + + kMirrorTypeRenderAndEncoder = 3, +}; + + +/** + * + * @type keytype + * @brief 远端流的镜像类型。 + */ + +enum RemoteMirrorType { + /** + * + * @brief (默认值)远端视频渲染无镜像效果。 + */ + + kRemoteMirrorTypeNone = 0, + /** + * + * @brief 远端视频渲染有镜像效果。 + */ + + kRemoteMirrorTypeRender = 1, +}; + +/** + * + * @type keytype + * @brief 弱光适应类型 + */ + +enum VideoEnhancementMode { + /** + * + * @brief 关闭弱光适应 + */ + + kVideoEnhancementModeDisabled = 0, + /** + * + * @brief 开启弱光适应 + */ + + kVideoEnhancementModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 视频输入源类型 + */ + +enum VideoSourceType { + /** + * + * @brief 自定义采集视频源 + */ + + kVideoSourceTypeExternal = 0, + /** + * + * @brief 内部采集视频源 + */ + + kVideoSourceTypeInternal = 1, + /** + * + * @brief 自定义编码视频源。
    + * 你仅需推送分辨率最大的一路编码后视频流,SDK 将自动转码生成多路小流 + */ + + kVideoSourceTypeEncodedWithAutoSimulcast = 2, + /** + * + * @brief 自定义编码视频源。
    + * SDK 不会自动生成多路流,你需要自行生成并推送多路流 + */ + + kVideoSourceTypeEncodedWithoutAutoSimulcast = 3, +}; + +/** + * + * @type keytype + * @brief Alpha 通道相对于 RGB 通道数据的排列位置。 + */ + +enum AlphaLayout { + /** + * + * @brief Alpha 数据置于 RGB 数据上方。 + */ + + kAlphaLayoutTop = 0, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据下方。 + */ + + kAlphaLayoutBottom = 1, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据左方。 + */ + + kAlphaLayoutLeft = 2, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据右方。 + */ + + kAlphaLayoutRight = 3, +}; + +/** + * + * @type keytype + * @brief 数码变焦参数类型 + */ + +enum ZoomConfigType { + /** + * + * @brief 设置缩放系数 + */ + + kZoomConfigTypeFocusOffset = 0, + /** + * + * @brief 设置移动步长 + */ + + kZoomConfigTypeMoveOffset, +}; + +/** + * + * @type keytype + * @brief 数码变焦操作类型 + */ + +enum ZoomDirectionType { + /** + * + * @brief 相机向左移动 + */ + + kZoomDirectionTypeMoveLeft = 0, + /** + * + * @brief 相机向右移动 + */ + + kZoomDirectionTypeMoveRight, + /** + * + * @brief 相机向上移动 + */ + + kZoomDirectionTypeMoveUp, + /** + * + * @brief 相机向下移动 + */ + + kZoomDirectionTypeMoveDown, + /** + * + * @brief 相机缩小焦距 + */ + + kZoomDirectionTypeZoomOut, + /** + * + * @brief 相机放大焦距 + */ + + kZoomDirectionTypeZoomIn, + /** + * + * @brief 恢复到原始画面 + */ + + kZoomDirectionTypeReset, +}; + +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +struct VideoFrameInfo { + /** + * + * @brief 宽(像素) + */ + + int width = 0; + /** + * + * @brief 高(像素) + */ + + int height = 0; + /** + * + * @brief 视频帧顺时针旋转角度。参看 VideoRotation{@link #VideoRotation}。 + */ + + VideoRotation rotation = VideoRotation::kVideoRotation0; +}; + +/** +* +* @type keytype +* @brief 自定义视频前处理(Video Processor)的作用范围,包括仅预览、仅编码和同时预览与编码。 +*/ + +enum ProcessorActionDomain { + /** + * + * @brief 处理后的视频帧同时用于本地预览和推流编码。 + */ + + kProcessorActionDomainPreviewAndEncode = 0, + /** + * + * @brief 处理后的视频帧仅用于本地预览。 + */ + + kProcessorActionDomainPreview = 1, + /** + * + * @brief 处理后的视频帧仅用于推流编码。 + */ + + kProcessorActionDomainEncode = 2 +}; +/** + * + * @type keytype + * @brief 视频前处理配置参数。 + */ + +struct VideoPreprocessorConfig { + /** + * + * @brief 视频帧像素格式,参看 VideoPixelFormat{@link #VideoPixelFormat}
    + * 当前仅支持 `kVideoPixelFormatI420` 和 `kVideoPixelFormatUnknown` 格式。 + */ + + VideoPixelFormat required_pixel_format = kVideoPixelFormatUnknown; + /** + * + * @brief 自定义视频前处理的作用范围,参看 ProcessorActionDomain{@link #ProcessorActionDomain}。 + */ + + ProcessorActionDomain action_domain = kProcessorActionDomainPreviewAndEncode; +}; + +/** + * + * @type keytype + * @brief 自定义编码流信息 + */ + +struct VideoRateInfo { + /** + * + * @brief 帧率,单位 fps + */ + + int fps = 0; + /** + * + * @brief 码率,单位 kbps + */ + + int bitrate_kbps = 0; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `min_bitrate_kbps`。
    + * 默认值为 `0`。
    + * 范围:[0, bitrate_kbps),当 `bitrate_kbps` < `min_bitrate_kbps` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `bitrate_kbps` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `bitrate_kbps` < `0` 时,适配码率模式。 + */ + + int min_bitrate_kbps = 0; +}; + +/** + * + * @type keytype + * @brief 视频解码方式 + */ + +enum VideoDecoderConfig { + /** + * + * @brief 开启 SDK 内部解码,只回调解码后的数据。回调为 onFrame{@link #IVideoSink#onFrame}。 + */ + + kVideoDecoderConfigRaw, + /** + * + * @brief 开启自定义解码,只回调解码前数据。回调为 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame}。 + */ + + kVideoDecoderConfigEncode, + /** + * + * @brief 开启 SDK 内部解码,同时回调解码前和解码后的数据。回调为 onFrame{@link #IVideoSink#onFrame} 和 onRemoteEncodedVideoFrame{@link #IRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame}。 + */ + + kVideoDecoderConfigBoth, +}; + +/** + * + * @type keytype + * @brief 视频采集配置参数。 + */ + +struct VideoCaptureConfig { + /** + * + * @type keytype + * @brief 视频采集模式 + */ + + enum CapturePreference { + /** + * + * @brief (默认)自动设置采集参数。
    + * SDK 在开启采集时根据服务端下发的采集配置结合编码参数设置最佳采集参数。 + */ + + kAuto = 0, + /** + * + * @brief 手动设置采集参数,包括采集分辨率、帧率。 + */ + + kManual = 1, + /** + * + * @brief 采集参数与编码参数一致,即在 setVideoEncoderConfig{@link #IRTCEngine#setVideoEncoderConfig} 中设置的参数。 + */ + + kAutoPerformance = 2, + }; + /** + * + * @brief 视频采集模式,参看 CapturePreference{@link #CapturePreference}. + */ + + CapturePreference capture_preference = CapturePreference::kAuto; + + /** + * + * @brief 视频采集分辨率的宽度,单位:px。 + */ + + int width = 0; + /** + * + * @brief 视频采集分辨率的高度,单位:px。 + */ + + int height = 0; + /** + * + * @brief 视频采集帧率,单位:fps。 + */ + + int frame_rate = 0; +}; + +/** + * + * @type keytype + * @brief 本地录制的媒体类型 + */ + +enum RecordingType { + /** + * + * @brief 只录制音频 + */ + + kRecordingTypeAudioOnly = 0, + /** + * + * @brief 只录制视频 + */ + + kRecordingTypeVideoOnly = 1, + /** + * + * @brief 同时录制音频和视频 + */ + + kRecordingTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 当前视频设备类型 + */ + +enum RTCVideoDeviceType { + /** + * + * @brief 未知设备类型 + */ + + kRTCVideoDeviceTypeUnknown = -1, + /** + * + * @brief 视频渲染设备类型 + */ + + kRTCVideoDeviceTypeRenderDevice = 0, + /** + * + * @brief 视频采集设备类型 + */ + + kRTCVideoDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流视频设备 + */ + + kRTCVideoDeviceTypeScreenCaptureDevice = 2, +}; + +/** + * + * @deprecated since 3.60, see onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent}. + * @type errorcode + * @brief WTN 流状态码 + */ + +enum PublicStreamErrorCode { + /** + * + * @brief 发布或订阅成功。 + */ + + kPublicStreamErrorCodeOK = 0, + /** + * + * @brief 订阅失败,发布端未开始发布流。 + */ + + kPublicStreamErrorCodePullNoPushStream = 1300, +}; + +/** + * + * @type keytype + * @brief 视频旋转模式 + */ + +enum VideoRotationMode { + /** + * + * @brief 跟随 App 界面方向 + */ + + kVideoRotationModeFollowApp = 0, + /** + * + * @brief 跟随设备重力方向 + */ + + kVideoRotationModeFollowGSensor = 1, +}; + +/** + * + * @type keytype + * @brief 媒体流类型 + */ + +enum MediaStreamType { + /** + * + * @brief 只控制音频 + */ + + kMediaStreamTypeAudio = 1 << 0, + /** + * + * @brief 只控制视频 + */ + + kMediaStreamTypeVideo = 1 << 1, + /** + * + * @brief 同时控制音频和视频 + */ + + kMediaStreamTypeBoth = kMediaStreamTypeAudio | kMediaStreamTypeVideo +}; +/** + * + * @type keytype + * @brief 占发布端原始帧率的比例 + */ + +enum FrameRateRatio { + /** + * + * @brief 100% + */ + + kFrameRateRatioOriginal = 0, + /** + * + * @brief 50% + */ + + kFrameRateRatioHalf = 1, + /** + * + * @brief 25% + */ + + kFrameRateRatioQuarter = 2, +}; +/** + * + * @type keytype + * @brief 远端视频帧信息 + */ + +struct RemoteVideoConfig { + /** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0 即满帧订阅,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + + int framerate = 0; + /** + * + * @brief 视频宽度,单位:px + */ + + int resolution_width = 0; + /** + * + * @brief 视频高度,单位:px + */ + + int resolution_height = 0; +}; + +/** + * + * @type keytype + * @brief 游戏房间类型 + */ + +enum GameRoomType { + /** + * + * @brief 小队房间。 + */ + + kGameRoomTypeTeam = 0, + /** + * + * @brief 世界房间。 + */ + + kGameRoomTypeWorld = 1 +}; + +/** + * + * @type keytype + * @brief 游戏场景类型 + */ + +enum GameSceneType { + /** + * + * @brief 普通场景。
    + * 同一个小队房间的队友,仅支持在同一个世界房间内通话。 + */ + + kGameSceneTypeNormal = 0, + /** + * + * @brief 主题公园场景。
    + * 同一个小队房间的队友,支持跨世界房间通话。 + */ + + kGameSceneTypeThemePark = 1 +}; + +/** + * + * @type keytype + * @brief 游戏房间配置。房间是 RTC 通话的抽象概念。在同一个房间中的用户可以进行音视频通话。 + */ + +struct GameRoomConfig { + /** + * + * @type keytype + * @brief 游戏房间类型。参看 GameRoomType{@link #GameRoomType},默认为 `kGameRoomTypeTeam`(小队房间),进房后不可更改。 + */ + + GameRoomType game_room_type = GameRoomType::kGameRoomTypeTeam; + /** + * + * @type keytype + * @brief 游戏场景类型。参看 GameSceneType{@link #GameSceneType},默认为 `kGameSceneTypeNormal`(普通场景),进房后不可更改。 + */ + + GameSceneType game_scene_type = GameSceneType::kGameSceneTypeNormal; +}; + +/** + * + * @type keytype + * @brief 房间参数配置。房间是 RTC 通话的抽象概念。在同一个房间中的用户可以进行音视频通话。 + */ + +struct RTCRoomConfig { + /** + * + * @brief 房间模式,参看 RoomProfileType{@link #RoomProfileType},默认为 `kRoomProfileTypeCommunication`,进房后不可更改。 + */ + + RoomProfileType room_profile_type = kRoomProfileTypeCommunication; + /** + * + * @brief 直播模式,参看 RoomLiveMode{@link #RoomLiveMode},默认为 `kRoomLiveModeCoHost`,进房后可通过 setLiveMode{@link #IRTCRoom#setLiveMode} 设置。 + * @note 只有当`room_profile_type`为`kRoomProfileTypeLive`时,`live_mode`的值才有效。 + */ + + RoomLiveMode live_mode = kRoomLiveModeCoHost; + /** + * + * @brief 流 ID。为进房发布的流设置流 ID,可设置为空字符串。若为空,SDK 自动生成 stream_id。 + */ + + const char* stream_id = nullptr; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。 + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_audio = true; + /** + * + * @brief 是否自动发布视频流,默认为自动发布。
    + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + + bool is_auto_publish_video = true; + + /** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_audio = true; + /** + * + * @brief 是否自动订阅视频流,默认为自动订阅。 + */ + + bool is_auto_subscribe_video = true; +}; + +/** + * + * @type keytype + * @brief 屏幕采集的媒体类型 + */ + +enum ScreenMediaType { + /** + * + * @brief 仅采集视频 + */ + + kScreenMediaTypeVideoOnly = 0, + /** + * + * @brief 仅采集音频 + */ + + kScreenMediaTypeAudioOnly = 1, + /** + * + * @brief 同时采集音频和视频 + */ + + kScreenMediaTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 基础美颜模式。 + */ + +enum EffectBeautyMode { + /** + * + * @brief 美白。 + */ + + kEffectBeautyModeWhite = 0, + /** + * + * @brief 磨皮。 + */ + + kEffectBeautyModeSmooth = 1, + /** + * + * @brief 锐化。 + */ + + kEffectBeautyModeSharpen = 2, + /** + * + * @valid since 3.55 + * @brief 清晰,需集成 v4.4.2+ 版本的特效 SDK。 + */ + + kEffectBeautyModeClear = 3, +}; + +/** + * + * @type keytype + * @brief 视频设备朝向类型 + */ + +enum VideoDeviceFacing { + /** + * + * @brief 前置摄像头 + */ + + kVideoDeviceFacingFront = 0, + /** + * + * @brief 后置摄像头 + */ + + kVideoDeviceFacingBack = 1, + /** + * + * @brief 未知类型 + */ + + kVideoDeviceFacingUnknown = 2, +}; + +/** + * + * @type keytype + * @brief 视频设备信息 + */ + +struct VideoDeviceInfo { + /** + * + * @brief 设备 ID + */ + + char device_id[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备名称 + */ + + char device_name[MAX_DEVICE_ID_LENGTH]; + /** + * + * @brief 设备的厂商 ID + */ + + int64_t device_vid; + /** + * + * @brief 设备的产品编码 + */ + + int64_t device_pid; + /** + * + * @brief 设备的传输方式 + */ + + DeviceTransportType transport_type; + /** + * + * @brief 视频设备朝向类型 + */ + + VideoDeviceFacing device_facing; + /** + * + * @hidden constructor/destructor + */ + + VideoDeviceInfo() { + memset(device_id, 0, MAX_DEVICE_ID_LENGTH); + memset(device_name, 0, MAX_DEVICE_ID_LENGTH); + this->device_vid = 0; + this->device_pid = 0; + this->transport_type = DeviceTransportType::kDeviceTransportTypeUnknown; + this->device_facing = VideoDeviceFacing::kVideoDeviceFacingFront; + }; + /** + * + * @hidden constructor/destructor + */ + + VideoDeviceInfo& operator=(const VideoDeviceInfo& src) { + if (this != &src) { + strncpy(device_id, src.device_id, MAX_DEVICE_ID_LENGTH - 1); + strncpy(device_name, src.device_name, MAX_DEVICE_ID_LENGTH - 1); + device_id[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_name[MAX_DEVICE_ID_LENGTH - 1] = '\0'; + device_vid = src.device_vid; + device_pid = src.device_pid; + transport_type = src.transport_type; + device_facing = src.device_facing; + } + + return *this; + } +}; + +/** + * + * @type keytype + * @brief 视频帧朝向 + */ + +enum VideoOrientation { + /** + * + * @brief (默认)使用相机输出的原始视频帧的角度,不对视频帧进行额外旋转。 + */ + + kVideoOrientationAdaptive = 0, + /** + * + * @brief 固定为竖屏,将相机采集到的视频帧转换为竖屏,在整个 RTC 链路中传递竖屏帧。 + */ + + kVideoOrientationPortrait = 1, + /** + * + * @brief 固定为横屏,将相机采集到的视频帧转换为横屏,在整个 RTC 链路中传递横屏帧。 + */ + + kVideoOrientationLandscape = 2 +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分状态改变原因。 + */ + +enum VideoSuperResolutionModeChangedReason { + /** + * + * @brief 调用 setRemoteVideoSuperResolution{@link #IRTCEngine#setRemoteVideoSuperResolution} 成功关闭超分。 + */ + + kVideoSuperResolutionModeChangedReasonAPIOff = 0, + /** + * + * @brief 调用 setRemoteVideoSuperResolution{@link #IRTCEngine#setRemoteVideoSuperResolution} 成功开启超分。 + */ + + kVideoSuperResolutionModeChangedReasonAPIOn = 1, + /** + * + * @brief 开启超分失败,远端视频流的原始视频分辨率超过 640 × 360 px。 + */ + + kVideoSuperResolutionModeChangedReasonResolutionExceed = 2, + /** + * + * @brief 开启超分失败,已对一路远端流开启超分。 + */ + + kVideoSuperResolutionModeChangedReasonOverUse = 3, + /** + * + * @brief 设备不支持使用超分辨率。 + */ + + kVideoSuperResolutionModeChangedReasonDeviceNotSupport = 4, + /** + * + * @brief 当前设备性能存在风险,已动态关闭超分。 + */ + + kVideoSuperResolutionModeChangedReasonDynamicClose = 5, + /** + * + * @brief 超分因其他原因关闭。 + */ + + kVideoSuperResolutionModeChangedReasonOtherSettingDisabled = 6, + /** + * + * @brief 超分因其他原因开启。 + */ + + kVideoSuperResolutionModeChangedReasonOtherSettingEnabled = 7, + /** + * + * @brief SDK 没有编译超分组件。 + */ + + kVideoSuperResolutionModeChangedReasonNoComponent = 8, + /** + * + * @brief 远端流不存在。房间 ID 或用户 ID 无效,或对方没有发布流。 + */ + + kVideoSuperResolutionModeChangedReasonStreamNotExist = 9, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式状态改变原因。 + */ + +enum VideoDenoiseModeChangedReason { + /** + * + * @brief 未知原因导致视频降噪状态改变。 + */ + + kVideoDenoiseModeChangedReasonNull = -1, + /** + * + * @brief 通过调用 setVideoDenoiser{@link #IRTCEngine#setVideoDenoiser} 成功关闭视频降噪。 + */ + + kVideoDenoiseModeChangedReasonApiOff = 0, + /** + * + * @brief 通过调用 setVideoDenoiser{@link #IRTCEngine#setVideoDenoiser} 成功开启视频降噪。 + */ + + kVideoDenoiseModeChangedReasonApiOn = 1, + /** + * + * @brief 后台未配置视频降噪,视频降噪开启失败,请联系技术人员解决。 + */ + + kVideoDenoiseModeChangedReasonConfigDisabled = 2, + /** + * + * @brief 后台配置开启了视频降噪。 + */ + + kVideoDenoiseModeChangedReasonConfigEnabled = 3, + /** + * + * @brief 由于内部发生了异常,视频降噪关闭。 + */ + + kVideoDenoiseModeChangedReasonInternalException = 4, + /** + * + * @brief 当前设备性能过载,已动态关闭视频降噪。 + */ + + kVideoDenoiseModeChangedReasonDynamicClose = 5, + /** + * + * @brief 当前设备性能裕量充足,已动态开启视频降噪。 + */ + + kVideoDenoiseModeChangedReasonDynamicOpen = 6, + /** + * + * @brief + * 分辨率导致视频降噪状态发生改变。分辨率过高会导致性能消耗过大,从而导致视频降噪关闭。若希望继续使用视频降噪,可选择降低分辨率。 + */ + + kVideoDenoiseModeChangedReasonResolution = 7, +}; + +/** + * + * @type keytype + * @brief 屏幕采集对象的类型 + */ + +enum ScreenCaptureSourceType { + /** + * + * @brief 类型未知 + */ + + kScreenCaptureSourceTypeUnknown, + + /** + * + * @brief 应用程序的窗口 + */ + + kScreenCaptureSourceTypeWindow, + + /** + * + * @brief 桌面 + */ + + kScreenCaptureSourceTypeScreen +}; + +/** + * + * @type keytype + * @brief 屏幕共享对象的详细信息 + */ + +struct ScreenCaptureSourceInfo { + /** + * + * @brief 屏幕共享对象的类型,参看 ScreenCaptureSourceType{@link #ScreenCaptureSourceType} + */ + + ScreenCaptureSourceType type = kScreenCaptureSourceTypeUnknown; + + /** + * + * @brief 屏幕共享对象的 ID + */ + + view_t source_id = nullptr; + /** + * + * @brief 屏幕共享对象的名称
    + * 调用 release{@link #IScreenCaptureSourceList#release} 时将被释放,请及时转为 string 对象保存 + */ + + const char* source_name = nullptr; + /** + * + * @brief 共享的应用窗体所属应用的名称
    + * 当共享对象为应用窗体时有效
    + * 调用 release{@link #IScreenCaptureSourceList#release} 时将被释放,请及时转为 string 对象保存 + */ + + const char* application = nullptr; + /** + * + * @brief 共享的应用窗体所属应用进程的 pid
    + * 当共享对象为应用窗体时有效 + */ + + int pid = 0; + /** + * + * @brief 共享的屏幕是否为主屏。
    + * 当共享对象为屏幕时有效 + */ + + bool primary_monitor = false; + /** + * + * @brief 屏幕共享对象的坐标。详见 Rectangle{@link #Rectangle}。
    + * 仅在采集源为显示器屏幕时有效。
    + * - 对于多屏幕的场景,不同平台的坐标系原点不同: + * - 对于 Windows 平台,屏幕坐标以主屏左上角为原点 (0, 0),向右向下扩展。 + * — 对于 Linux 平台,屏幕坐标以 **恰好包住所有显示器的矩形区域的左上角** 为原点 (0, 0),向右向下扩展。
    + * - 对于不同平台,窗口区域不同: + * - 对于 Windows 和 macOS 平台,窗口区域包含系统标题栏。 + * - 对于 Linux 平台,窗口区域不包含系统标题栏。 + */ + + Rectangle region_rect; +}; +/** + * + * @type api + * @brief 屏幕共享对象信息列表
    + * 共享对象相关数据将在调用 release{@link #IScreenCaptureSourceList#release} 后被释放。 + * @list 屏幕共享 + */ + +class IScreenCaptureSourceList { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IScreenCaptureSourceList() { + } + /** + * + * @type api + * @brief 获取列表长度 + * @return 可共享对象数量 + * @list 屏幕共享 + */ + + virtual int32_t getCount() = 0; + /** + * + * @type api + * @brief 根据索引号,获取屏幕共享列表中的元素 + * @param index 列表索引号 + * @return 屏幕源类型信息,详见 ScreenCaptureSourceInfo{@link #ScreenCaptureSourceInfo}。 + * @list 屏幕共享 + */ + + virtual ScreenCaptureSourceInfo getSourceInfo(int32_t index) = 0; + /** + * + * @type api + * @brief IScreenCaptureSourceList{@link #IScreenCaptureSourceList} 使用结束后,调用本接口删除对象,清空和释放内存。 + * @list 屏幕共享 + */ + + virtual void release() = 0; +}; +/** + * + * @type callback + * @brief 自定义编码帧回调类
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Screen Sharing + */ + +class IExternalVideoEncoderEventHandler { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IExternalVideoEncoderEventHandler(){} + /** + * + * @type callback + * @brief 提示自定义编码帧可以开始推送的回调。
    + * 收到该回调后,你即可调用 pushExternalEncodedVideoFrame{@link #IRTCEngine#pushExternalEncodedVideoFrame} 向 SDK 推送自定义编码视频帧 + * @param stream_id 编码流 ID + * @param stream_info 编码流信息,参看 StreamInfo{@link #StreamInfo} + * @list 自定义流处理 + */ + + virtual void onStart(const char* stream_id, const StreamInfo& stream_info) = 0; + /** + * + * @type callback + * @brief 当收到该回调时,你需停止向 SDK 推送自定义编码视频帧 + * @param stream_id 编码流 ID + * @param stream_info 编码流信息,参看 StreamInfo{@link #StreamInfo} + * @list 自定义流处理 + */ + + virtual void onStop(const char* stream_id, const StreamInfo& stream_info) = 0; + /** + * + * @type callback + * @brief 当自定义编码流的帧率或码率发生变化时,触发该回调 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @param info 变化后的编码流信息,参看 VideoRateInfo{@link #VideoRateInfo} + * @list 自定义流处理 + */ + + virtual void onRateUpdate(const char* stream_id, const StreamInfo& stream_info, int32_t video_index, VideoRateInfo info) = 0; + /** + * + * @type callback + * @brief 提示流发布端需重新生成关键帧的回调 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @list 自定义流处理 + */ + + virtual void onRequestKeyFrame(const char* stream_id, const StreamInfo& stream_info, int32_t video_index) = 0; + /** + * + * @valid since 3.56 + * @type callback + * @brief 作为自定义编码视频流的发送端,你会在视频流可发送状态发生变化时,收到此回调。
    + * 你可以根据此回调的提示,仅对可发送的视频流进行编码,以降低本端视频编码性能消耗。此回调会根据多个因素综合判断触发,包括:本端设备性能和本端网络性能,以及按需订阅场景下,远端用户是否订阅。 + * @param stream_id 远端编码流 ID + * @param stream_info 远端编码流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_index 对应编码流的下标 + * @param active 该路流可发送状态 + * @note 要收到此回调,必须调用 setVideoSourceType{@link #IRTCEngine#setVideoSourceType} 设置视频源是自定义编码,且通过 setExternalVideoEncoderEventHandler{@link #IRTCEngine#setExternalVideoEncoderEventHandler} 设置了回调句柄。 + * @list 自定义流处理 + */ + + virtual void onActiveVideoLayer(const char* stream_id, const StreamInfo& stream_info, int32_t video_index, bool active) = 0; +}; +/** + * + * @type callback + * @brief 本地视频帧监测器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +class ILocalEncodedVideoFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~ILocalEncodedVideoFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 registerLocalEncodedVideoFrameObserver{@link #IRTCEngine#registerLocalEncodedVideoFrameObserver} 后,SDK 每次使用内部采集,采集到一帧视频帧,或收到一帧外部视频帧时,都会回调该事件。 + * @param video_source 预留参数。 + * @param video_stream 本地视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame} + * @list 自定义流处理 + */ + + virtual void onLocalEncodedVideoFrame(IVideoSource *video_source, const IEncodedVideoFrame& video_stream) = 0; +}; +/** + * + * @type callback + * @brief 远端编码后视频数据监测器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频管理 + */ + +class IRemoteEncodedVideoFrameObserver { +public: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IRemoteEncodedVideoFrameObserver() { + } + /** + * + * @type callback + * @brief 调用 registerRemoteEncodedVideoFrameObserver{@link #IRTCEngine#registerRemoteEncodedVideoFrameObserver} 后,SDK 监测到远端编码后视频数据时,触发该回调 + * @param stream_id 收到的远端流 ID + * @param stream_info 收到的远端流信息,参看 StreamInfo{@link #StreamInfo} + * @param video_stream 收到的远端视频帧信息,参看 IEncodedVideoFrame{@link #IEncodedVideoFrame} + * @list 自定义流处理 + */ + + virtual void onRemoteEncodedVideoFrame(const char* stream_id, const StreamInfo& stream_info, const IEncodedVideoFrame& video_stream) = 0; +}; + +/** + * + * @type keytype + * @brief 视频帧中包含的 metadata 信息 + */ + +struct VideoMetadataBuffer { + /** + * + * @brief 接收或者发送的 metadata + */ + + char* data; + /** + * + * @brief 接收或者发送的 metadata 数据大小,不能超过 1024 + */ + + int size; + /** + * + * @brief 包含 metadata 视频帧的时间戳,单位微秒 + */ + + int64_t timestamp_us; +}; + +/** + * + * @hidden(Linux) + * @type callback + * @brief 截图的回调。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Video Management + */ + +class ISnapshotResultCallback { +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~ISnapshotResultCallback() = default; + /** + * + * @type callback + * @brief 调用 takeLocalSnapshot{@link #IRTCEngine#takeLocalSnapshot} 截取视频画面时,收到此回调。 + * @param task_id 本地截图任务的编号。和 takeLocalSnapshot{@link #IRTCEngine#takeLocalSnapshot} 的返回值一致。 + * @param video_source 截图的视频源,参看IVideoSource{@link #IVideoSource}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param error_code 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + + virtual void onTakeLocalSnapshotResult(long task_id, IVideoSource* video_source, IVideoFrame* image, int error_code) = 0; + /** + * + * @type callback + * @brief 调用 takeRemoteSnapshot{@link #IRTCEngine#takeRemoteSnapshot} 截取视频画面时,收到此回调。 + * @param task_id 远端截图任务的编号。和 takeRemoteSnapshot{@link #IRTCEngine#takeRemoteSnapshot} 的返回值一致。 + * @param stream_id 远端流 ID + * @param stream_info 远端流信息,参看 StreamInfo{@link #StreamInfo}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param error_code 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + + virtual void onTakeRemoteSnapshotResult(long task_id, const char* stream_id, const StreamInfo& stream_info, IVideoFrame* image, int error_code) = 0; +}; +/** + * + * @hidden(macOS, Windows, Linux) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +struct MediaTypeEnhancementConfig { + /** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_signaling = false; + /** + * + * @brief 对屏幕共享以外的其他音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_audio = false; + /** + * + * @brief 对屏幕共享音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_screen_audio = false; + /** + * + * @brief 对屏幕共享视频以外的其他视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_video = false; + /** + * + * @brief 对屏幕共享视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + + bool enhance_screen_video = false; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h new file mode 100644 index 0000000..3d7e0b0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_defines_ex.h @@ -0,0 +1,183 @@ + + + +#pragma once +namespace bytertc { +/** + * + * @type keytype + * @brief 视频内容类型 + */ + +enum VideoContentCategory { + /** + * + * @brief 相机采集的内容 + */ + + kVideoContentCategoryCamera = 0, + /** + * + * @brief 屏幕共享的内容 + */ + + kVideoContentCategoryScreen = 1, +}; +/** + * + * @type keytype + * @brief 视频源设置 + */ + +struct VideoSourceConfig { + /** + * + * @brief 视频源类型。参看 VideoSourceType{@link #VideoSourceType}。默认是 `kVideoSourceTypeExternal`。 + */ + + VideoSourceType source_type = kVideoSourceTypeExternal; + /** + * + * @brief 参看 VideoContentCategory{@link #VideoContentCategory}。默认是 `kVideoContentCategoryCamera`。 + */ + /** + * + * @brief Refer to VideoContentCategory{@link #VideoContentCategory}. It defaults to `kVideoContentCategoryCamera`. + */ + VideoContentCategory content_category = kVideoContentCategoryCamera; +}; +/** + * + * @type keytype + * @brief 音频源包含的内容 + */ + +struct AudioContentTypeConfig { + /** + * + * @brief 包含麦克风采集的音频 + */ + + bool has_mic = true; + /** + * + * @brief 包含屏幕音频 + */ + + bool has_screen_audio = false; + /** + * + * @brief 包含媒体播放器的音频 + */ + + bool has_media_player = false; +}; +/** + * + * @type keytype + * @brief 音频编码设置。 + */ + +struct AudioEncodeConfig { + /** + * + * @brief 编码器类型。
    + * + 0:OPUS
    + * + 1:NICO
    + * + -1:配置下发的配置 + */ + + int codec_type = -1; + /** + * + * @brief 编码模式
    + * + 0:语音
    + * + 1:音乐
    + * + -1:根据 `channel_num` 不同,使用对应的编码模式。声道数为 `1` 时,编码模式是语音;声道数为 `2` 时,编码模式是音乐。 + */ + int enc_mode = -1; + /** + * + * @brief 声道数。取值范围是:`{1, 2}`。默认值是 `-1`,配置下发的配置。 + */ + int channel_num = -1; + /** + * + * @brief 码率。取值范围:`[6K, 510K]`。 + */ + int enc_bitrate = -1; + /** + * + * @brief 是否启用非连续传输功能(DTX)。非连续传输功能能够在安静的场景下降低码率。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ + int use_dtx = -1; + /** + * + * @brief 带内前向纠错功能。能够提供一定的抗丢包能力。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ + int use_inbandfec = -1; + /** + * + * @brief 采样率。取值范围是 `[16K, 48K]`。
    + * 修改此参数会触发编码器重启。 + */ + int sample_rate = -1; + /** + * + * @brief 编码帧长。取值范围:`{10, 20, 40, 60, 120}`。 + */ + int packet_size = -1; +}; +/** + * + * @type keytype + * @brief 媒体流的优先级 + */ +enum StreamPriority { + /** + * + * @brief 低优先级 + */ + kStreamPriorityLow = 0, + /** + * + * @brief 中优先级 + */ + kStreamPriorityNormal = 1, + /** + * + * @brief 高优先级 + */ + kStreamPriorityHigh = 2, +}; + +/** + * + * @type keytype + * @brief + */ +struct StreamKey { + /** + * + * @brief 房间 ID + */ + const char* room_id; + /** + * + * @brief 用户 ID + */ + const char* user_id; + /** + * + * @brief 流索引。参看 StreamIndex{@link #StreamIndex}。 + */ + StreamIndex stream_index; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h new file mode 100644 index 0000000..08cae2a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_device_manager.h @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Device Manager +*/ + +#pragma once + +#include "bytertc_audio_device_manager.h" +#include "bytertc_video_defines.h" + +namespace bytertc { +/** + * + * @type api + * @brief 视频设备相关的信息 + * @list 引擎管理 + */ + +class IVideoDeviceCollection : public IDeviceCollection { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IVideoDeviceCollection() {}; + /** + * + * @type api + * @brief 获取当前系统内视频设备数量 + * @return 视频设备数量 + * @list 引擎管理 + */ + + virtual int getCount() override {return 0;}; + /** + * + * @type api + * @brief 获取视频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IVideoDeviceCollection#getCount} 返回值。 + * @param device_name 设备名称 + * @param device_id 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, char device_name[MAX_DEVICE_ID_LENGTH], char device_id[MAX_DEVICE_ID_LENGTH]) override {return 0;}; + /** + * + * @type api + * @brief 释放当前 IVideoDeviceCollection{@link #IVideoDeviceCollection} 对象占用的资源。 + * @note 不需要返回视频设备相关信息列表时应该调用本方法释放相关资源。 + * @list 引擎管理 + */ + + virtual void release()override {}; + /** + * + * @type api + * @brief 获取视频设备信息,可根据索引号、设备信息(ID、设备的产品编码等)。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #IVideoDeviceCollection#getCount} 返回值。 + * @param video_device_info 设备信息 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + + virtual int getDevice(int index, VideoDeviceInfo* video_device_info) = 0; +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoDeviceCollection() {}; +}; +/** + * + * @type api + * @brief 主要用于枚举、设置视频采集设备 + * @list 视频管理 + */ + +class IVideoDeviceManager { +public: + /** + * + * @hidden constructor/destructor + * @brief 构造函数 + */ + + IVideoDeviceManager() { + } + /** + * + * @type api + * @brief 获取当前系统内视频采集设备列表。 + * @return 包含系统中所有视频采集设备的列表,参看 IVideoDeviceCollection{@link #IVideoDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 监听到 `kMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 视频管理 + */ + + virtual IVideoDeviceCollection* enumerateVideoCaptureDevices() = 0; + /** + * + * @type api + * @brief 设置当前视频采集设备 + * @param device_id 视频设备 ID,可以通过 enumerateVideoCaptureDevices{@link #IVideoDeviceManager#enumerateVideoCaptureDevices} 获取 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + + virtual int setVideoCaptureDevice(const char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + /** + * + * @type api + * @brief 获取当前 SDK 正在使用的视频采集设备信息 + * @param device_id 视频设备 ID。此参数同时是入参和出参。 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + + virtual int getVideoCaptureDevice(char device_id[MAX_DEVICE_ID_LENGTH]) = 0; + + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoDeviceManager() { + } +}; + + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h new file mode 100644 index 0000000..06ec3b1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_effect_interface.h @@ -0,0 +1,655 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Effect Interface +*/ + +#pragma once + +#include +#include "bytertc_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief 虚拟背景类型。 + */ + +enum VirtualBackgroundSourceType { + /** + * + * @brief 使用纯色背景替换视频原有背景。 + */ + + kVirtualBackgroundSourceTypeColor = 0, + /** + * + * @brief 使用自定义图片替换视频原有背景。 + */ + + kVirtualBackgroundSourceTypeImage = 1, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测参数 + */ + +struct VideoEffectExpressionDetectConfig { + /** + * + * @brief 是否开启年龄检测。 + */ + + bool detect_age = false; + /** + * + * @brief 是否开启性别检测。 + */ + + bool detect_gender = false; + /** + * + * @brief 是否开启表情检测。 + */ + + bool detect_emotion = false; + /** + * + * @brief 是否开启吸引力检测。 + */ + + bool detect_attractiveness = false; + /** + * + * @brief 是否开启开心程度检测。 + */ + + bool detect_happiness = false; +}; + +/** + * + * @type keytype + * @brief 虚拟背景对象。 + */ + +struct VirtualBackgroundSource { + /** + * + * @brief 虚拟背景类型,详见 VirtualBackgroundSourceType{@link #VirtualBackgroundSourceType} 。 + */ + + VirtualBackgroundSourceType source_type = kVirtualBackgroundSourceTypeColor; + /** + * + * @brief 纯色背景使用的颜色。
    + * 格式为 0xAARRGGBB 。 + */ + + uint32_t source_color = 0xFFFFFFFF; + /** + * + * @brief 自定义背景图片的绝对路径。
    + * - 支持的格式为 jpg、jpeg、png。 + * - 图片分辨率超过 1080P 时,图片会被等比缩放至和视频一致。 + * - 图片和视频宽高比一致时,图片会被直接缩放至和视频一致。 + * - 图片和视频长宽比不一致时,为保证图片内容不变形,图片按短边缩放至与视频帧一致,使图片填满视频帧,对多出的高或宽进行剪裁。 + * - 自定义图片带有局部透明效果时,透明部分由黑色代替。 + */ + + const char* source_path = nullptr; +}; +/** + * + * @type keytype + * @brief 人脸检测结果 + */ + +struct FaceDetectResult { + /** + * + * @brief 人脸信息存储上限,最多可存储 10 个人脸信息 + */ + + static const int max_face_num = 10; + /** + * + * @brief 人脸检测结果
    + * - 0:检测成功 + * - !0:检测失败。详见[错误码](https: + */ + + int detect_result = 0; + /** + * + * @brief 检测到的人脸的数量 + */ + + int face_count = 0; + /** + * + * @brief 识别到人脸的矩形框。数组的长度和检测到的人脸数量一致。参看 Rectangle{@link #Rectangle}。 + */ + + Rectangle rect[max_face_num]; + /** + * + * @brief 原始图片宽度(px) + */ + + int image_width = 0; + /** + * + * @brief 原始图片高度(px) + */ + + int image_height = 0; + /** + * + * @brief 进行人脸识别的视频帧的时间戳。 + */ + + int64_t frame_timestamp_us = 0; +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测信息 + */ + +struct ExpressionDetectInfo { + /** + * + * @brief 预测年龄,取值范围 (0, 100)。 + */ + + float age = 0; + /** + * + * @brief 预测为男性的概率,取值范围 (0.0, 1.0)。 + */ + + float boy_prob = 0; + /** + * + * @brief 预测的吸引力分数,取值范围 (0, 100)。 + */ + + float attractive = 0; + /** + * + * @brief 预测的微笑程度,取值范围 (0, 100)。 + */ + + float happy_score = 0; + /** + * + * @brief 预测的伤心程度,取值范围 (0, 100)。 + */ + + float sad_score = 0; + /** + * + * @brief 预测的生气程度,取值范围 (0, 100)。 + */ + + float angry_score = 0; + /** + * + * @brief 预测的吃惊程度,取值范围 (0, 100)。 + */ + + float surprise_score = 0; + /** + * + * @brief 预测的情绪激动程度,取值范围 (0, 100)。 + */ + + float arousal = 0; + /** + * + * @brief 预测的情绪正负程度,取值范围 (-100, 100)。 + */ + + float valence = 0; +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人像属性检测结果 + */ + +struct ExpressionDetectResult { + /** + * + * @brief 人脸信息存储上限,最多可存储 10 个人脸信息 + */ + + static const int max_face_num = 10; + /** + * + * @brief 特征识别结果
    + * - 0:识别成功 + * - !0:识别失败 + */ + + int detect_result = 0; + /** + * + * @brief 识别到的人脸数量。 + */ + + int face_count = 0; + /** + * + * @brief 特征识别信息。数组的长度和检测到的人脸数量一致。参看 ExpressionDetectInfo{@link #ExpressionDetectInfo}。 + */ + + ExpressionDetectInfo detect_info[max_face_num]; +}; +/** + * + * @type callback + * @brief 人脸检测结果回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +class IFaceDetectionObserver { +public: + /** + * + * @type callback + * @brief 特效 SDK 进行人脸检测结果的回调。
    + * 调用 enableFaceDetection{@link #IVideoEffect#enableFaceDetection} 注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并使用 RTC SDK 中包含的特效 SDK 进行视频特效处理时,你会收到此回调。 + * @param result 人脸检测结果, 参看 FaceDetectResult{@link #FaceDetectResult}。 + * @list 视频管理 + */ + + virtual void onFaceDetectResult(const FaceDetectResult& result) = 0; + /** + * + * @hidden for internal use only + * @type callback + * @brief 特效 SDK 进行人像属性检测结果的回调。
    + * 调用 registerFaceDetectionObserver注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并调用 setVideoEffectExpressionDetect{@link #IVideoEffect#setVideoEffectExpressionDetect} 开启人像属性检测后,你会收到此回调。 + * @param result 人像属性检测结果, 参看 ExpressionDetectResult{@link #ExpressionDetectResult}。 + * @list 视频处理 + */ + + virtual void onExpressionDetectResult(const ExpressionDetectResult& result) = 0; + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IFaceDetectionObserver() { + } +}; +/** + * + * @type api + * @brief 高级视频特效,参看[集成指南](https: + * @list 视频处理 + */ + +class IVideoEffect { +public: + virtual ~IVideoEffect() = default; + /** + * + * @type api + * @brief 检查视频特效证书,设置算法模型路径,并初始化特效模块。 + * @param license_file_path 证书文件的绝对路径,用于鉴权。 + * @param algo_model_dir 算法模型绝对路径,即存放特效 SDK 所有算法模型的目录。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 鉴权时,会检查 CV 服务端时间和本地设备的时间差异。你必须保证本地系统时间和实际时间一致。 + * @list 视频处理 + */ + + virtual int initCVResource(const char* license_file_path, const char* algo_model_dir) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效算法模型地址,并初始化特效模块。 + * @param finder ResourceFinder 地址 + * @param deleter ResourceDeleter 地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + + virtual int setAlgoModelResourceFinder(uintptr_t finder, uintptr_t deleter) = 0; + /** + * + * @hidden(iOS, Android) + * @type api + * @brief 从特效 SDK 获取授权消息,用于获取在线许可证。 + * @param ppmsg 授权消息字符串地址 + * @param len 授权消息字符串的长度 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 使用视频特效的功能前,你必须获取特效 SDK 的在线许可证。 + * - 通过此接口获取授权消息后,你必须参考 [在线授权说明](https: + * - 获取授权消息后,调用 freeAuthMessage{@link #IVideoEffect#freeAuthMessage} 释放内存。 + * @list 视频处理 + */ + + virtual int getAuthMessage(char ** ppmsg, int * len) = 0; + /** + * + * @hidden(iOS,Android) + * @type api + * @brief 使用完授权消息字符串后,释放内存。 + * @param pmsg getAuthMessage 返回的授权消息字符串。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int freeAuthMessage(char * pmsg) = 0; + + /** + * + * @hidden for internal use only + * @region 视频处理 + * @brief 返回视频特效句柄。私有接口 + */ + + virtual void* getEffectHandle() = 0; + /** + * + * @type api + * @brief 开启高级美颜、滤镜等视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource{@link #IVideoEffect#initCVResource} 进行初始化。 + * - 调用该方法后,特效不直接生效,你还需调用 setEffectNodes{@link #IVideoEffect#setEffectNodes} 设置视频特效素材包或调用 setColorFilter{@link #IVideoEffect#setColorFilter} 设置滤镜。 + * - 调用 disableVideoEffect{@link #IVideoEffect#disableVideoEffect} 关闭视频特效。 + * @list 视频处理 + */ + + virtual int enableVideoEffect() = 0; + /** + * + * @type api + * @brief 关闭视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect} 开启视频特效。 + * @list 视频处理 + */ + + virtual int disableVideoEffect() = 0; + /** + * + * @type api + * @brief 设置视频特效素材包。 + * @param effect_node_paths 特效素材包绝对路径数组。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int setEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 叠加视频特效素材包。 + * @param effect_node_paths 特效素材包绝对路径数组。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 该接口会在 setEffectNodes{@link #IVideoEffect#setEffectNodes} 设置的特效基础上叠加特效。 + * @list Video Processing + */ + + virtual int appendEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 移除指定的视频特效资源。 + * @param effect_node_paths 特效素材包绝对路径数组。 + * @param node_num 特效素材包个数。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 移除 setEffectNodes{@link #IVideoEffect#SetEffectNodes} 或 appendEffectNodes{@link #IVideoEffect#appendEffectNodes} 设置的视频特效资源。 + * @list Video Processing + */ + + virtual int removeEffectNodes(const char** effect_node_paths, int node_num) = 0; + /** + * + * @type api + * @brief 设置特效强度。 + * @param effect_node_path 特效素材包绝对路径,参考[素材包结构说明](https: + * @param node_key 需要设置的素材 key 名称,参考[素材 key 对应说明](https: + * @param node_value 特效强度值,取值范围 [0,1],超出范围时设置无效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int updateEffectNode(const char* effect_node_path, const char* node_key, float node_value) = 0; + /** + * + * @type api + * @brief 设置颜色滤镜。 + * @param res_path 滤镜资源包绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 setColorFilterIntensity{@link #IVideoEffect#setColorFilterIntensity} 设置已启用颜色滤镜的强度。设置强度为 0 时即关闭颜色滤镜。 + * @list 视频处理 + */ + + virtual int setColorFilter(const char* res_path) = 0; + /** + * + * @type api + * @brief 设置已启用颜色滤镜的强度。 + * @param intensity 滤镜强度。取值范围 [0,1],超出范围时设置无效。
    + * 当设置滤镜强度为 0 时即关闭颜色滤镜。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int setColorFilterIntensity(float intensity) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 私有接口,设置视频特效素材包。 + * @param sticker_path 特效素材包绝对路径。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list Video Processing + */ + + virtual int applyStickerEffect(const char* sticker_path) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 设置 Effect SDK 特效素材包。 + * @param effect_path 特效素材包绝对路径。传入空字符串或 null 时清空当前特效。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。 + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int setEffect(const char* effect_path) = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 重置当前贴纸特效。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。 + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #IVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + + virtual int resetSticker() = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 将摄像头采集画面中的人像背景替换为指定图片或纯色背景。 + * @param background_sticker_path 背景贴纸特效素材绝对路径。 + * @param source 背景贴纸对象,参看 VirtualBackgroundSource{@link #VirtualBackgroundSource}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource{@link #IVideoEffect#initCVResource} 进行初始化。 + * - 调用 disableVirtualBackground{@link #IVideoEffect#disableVirtualBackground} 关闭虚拟背景。 + * @list 视频处理 + */ + + virtual int enableVirtualBackground(const char* background_sticker_path, const VirtualBackgroundSource& source) = 0; + /** + * + * @hidden(Linux) + * @type api + * @brief 关闭虚拟背景。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVirtualBackground{@link #IVideoEffect#enableVirtualBackground} 开启虚拟背景后,可以调用此接口关闭虚拟背景。 + * @list 视频处理 + */ + + virtual int disableVirtualBackground() = 0; + /** + * + * @hidden for internal use only + * @type api + * @brief 开启人像属性检测。 + * @param expression_detection_config 人像属性检测参数,参看 VideoEffectExpressionDetectConfig{@link #VideoEffectExpressionDetectConfig}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + + virtual int setVideoEffectExpressionDetect(const VideoEffectExpressionDetectConfig& expression_detection_config) = 0; + /** + * + * @type api + * @brief 开启人脸识别功能,并设置人脸检测结果回调观察者。
    + * 回调此观察者后,你会周期性收到 onFaceDetectResult{@link #IFaceDetectionObserver#onFaceDetectResult} 回调。 + * @param observer 人脸检测结果回调观察者,参看 IFaceDetectionObserver{@link #IFaceDetectionObserver}。 + * @param interval_ms 两次回调之间的最小时间间隔,必须大于 0,单位为毫秒。实际收到回调的时间间隔大于 interval_ms,小于 interval_ms+视频采集帧间隔。 + * @param face_model_path 人脸检测算法模型文件路径,一般为 ttfacemodel 文件夹中 tt_face_vXXX.model 文件的绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - -1004: 初始化中,初始化完成后启动此功能。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int enableFaceDetection(IFaceDetectionObserver* observer, unsigned int interval_ms, const char* face_model_path) = 0; + /** + * + * @type api + * @brief 关闭人脸识别功能。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + + virtual int disableFaceDetection() = 0; + +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h new file mode 100644 index 0000000..5eee164 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_frame.h @@ -0,0 +1,1372 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Frame + */ + +#pragma once + +#include +#include +#include +#include +#include "bytertc_media_defines.h" +#ifdef BYTERTC_ANDROID +#include +#endif + +namespace bytertc { + +/** + * + * @type keytype + * @brief 编码帧类型 + */ + +enum VideoPictureType { + /** + * + * @brief 未知类型 + */ + + kVideoPictureTypeUnknown = 0, + /** + * + * @brief I 帧,关键帧,编解码不需要参考其他视频帧 + */ + + kVideoPictureTypeI, + /** + * + * @brief P 帧,向前参考帧,编解码需要参考前一帧视频帧 + */ + + kVideoPictureTypeP, + /** + * + * @brief B 帧,前后参考帧,编解码需要参考前后两帧视频帧 + */ + + kVideoPictureTypeB +}; + +/** + * + * @type keytype + * @brief 视频帧旋转信息 + */ + +enum VideoRotation { + /** + * + * @brief 不旋转 + */ + + kVideoRotation0 = 0, + /** + * + * @brief 顺时针旋转 90 度 + */ + + kVideoRotation90 = 90, + /** + * + * @brief 顺时针旋转 180 度 + */ + + kVideoRotation180 = 180, + /** + * + * @brief 顺时针旋转 270 度 + */ + + kVideoRotation270 = 270 +}; + +/** + * + * @type keytype + * @brief 视频帧缩放模式,默认值为 FitWithCropping。 + */ + +enum VideoStreamScaleMode { + /** + * + * @brief 自动模式 + */ + + kVideoStreamScaleModeAuto = 0, + /** + * + * @brief 对视频帧进行缩放,直至充满和视窗分辨率一致为止。这一过程不保证等比缩放。 + */ + + kVideoStreamScaleModeStretch = 1, + /** + * + * @brief 视窗填满优先。
    + * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + kVideoStreamScaleModeFitWithCropping = 2, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。 + */ + + kVideoStreamScaleModeFitWithFilling = 3, +}; + + +/** + * + * @type keytype + * @brief 视频编码模式 + */ + +enum VideoCodecMode { + /** + * + * @brief 自动选择 + */ + + kVideoCodecModeAuto = 0, + /** + * + * @brief 硬编码 + */ + + kVideoCodecModeHardware, + /** + * + * @brief 软编码 + */ + + kVideoCodecModeSoftware, +}; + +/** + * + * @type keytype + * @brief 编码策略偏好。 + */ + +enum VideoEncodePreference { + /** + * + * @brief 无偏好。不降低帧率和分辨率。 + */ + + kVideoEncodePreferenceDisabled = 0, + /** + * + * @brief 优先保障帧率。适用于动态画面。 + */ + + kVideoEncodePreferenceFramerate, + /** + * + * @brief 清晰模式,优先保障分辨率。适用于静态画面。 + */ + + kVideoEncodePreferenceQuality, + /** + * + * @brief 平衡帧率与分辨率。 + * 对于屏幕流来说是开启自动模式智能模式,将根据屏幕内容智能决策选择流畅模式或清晰模式。 + */ + + kVideoEncodePreferenceAuto, +}; + + +/** + * + * @type keytype + * @brief 摄像头。 + */ + +enum CameraID { + /** + * + * @brief 移动端前置摄像头,PC 端内置摄像头 + */ + + kCameraIDFront = 0, + /** + * + * @brief 移动端后置摄像头,PC 端无定义 + */ + + kCameraIDBack = 1, + /** + * + * @hidden currently not available + * @brief 外接摄像头 + */ + + kCameraIDExternal = 2, + /** + * + * @brief 无效值 + */ + + kCameraIDInvalid = 3 +}; + + +#define SEND_KBPS_AUTO_CALCULATE -1 +#define SEND_KBPS_DISABLE_VIDEO_SEND 0 + +/** + * + * @deprecated since 3.36 along with setVideoEncoderConfig(StreamIndex index, const VideoSolution* solutions, int solution_num) = 0; + * @type keytype + * @brief 视频流参数 + */ + +struct VideoSolution { + /** + * + * @brief 视频宽度,单位:像素 + */ + + int width; + /** + * + * @brief 视频高度,单位:像素 + */ + + int height; + /** + * + * @brief 视频帧率 + */ + + int fps; + /** + * + * @brief 最大发送编码码率(kbps),建议使用默认的自动码率。
  • -1: 自动码率
  • 0: 不开启上限
  • >0: 填写预估码率
  • + */ + + int max_send_kbps = SEND_KBPS_AUTO_CALCULATE; + int min_send_kbps = 0; + /** + * + * @brief 视频编码质量策略,参看 VideoEncodePreference{@link #VideoEncodePreference} + */ + + VideoEncodePreference encode_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; +}; + +/** + * + * @hidden for internal use only on Windows and Android + * @type keytype + * @brief 视野范围(Fov)内的视频帧信息
    + * Tile 是 全景视频的基本单位。
    + * 视野范围内的视频又分为高清视野和低清背景,均包含了多个 Tile。
    + * 视频帧信息为发送端使用 `setVideoEncoderConfig(const VideoEncoderConfig& encoderConfig, const char* parameters)` 接口进行设置。 + */ + +struct FovVideoTileInfo { + /** + * + * @brief 高清视野宽度 + */ + + uint32_t hd_width = 0; + /** + * + * @brief 高清视野高度 + */ + + uint32_t hd_height = 0; + /** + * + * @brief 低清背景宽度 + */ + + uint32_t ld_width = 0; + /** + * + * @brief 低清背景高度 + */ + + uint32_t ld_height = 0; + /** + * + * @brief Tile 宽度 + */ + + uint32_t tile_width = 0; + /** + * + * @brief Tile 高度 + */ + + uint32_t tile_height = 0; + /** + * + * @brief 高清视野中的 Tile 行数 + */ + + uint32_t hd_row = 0; + /** + * + * @brief 高清视野中的 Tile 列数 + */ + + uint32_t hd_column = 0; + /** + * + * @brief 低清背景中的 Tile 行数 + */ + + uint32_t ld_row = 0; + /** + * + * @brief 低清背景中的 Tile 列数 + */ + + uint32_t ld_column = 0; + /** + * + * @brief 视野范围中的 Tile 行数 + */ + + uint32_t dest_row = 0; + /** + * + * @brief 视野范围中的 Tile 列数 + */ + + uint32_t dest_column = 0; + /** + * + * @brief Tile 位置映射表 + */ + + uint8_t* tile_map = nullptr; + /** + * + * @brief Tile 数量 + */ + + uint32_t tile_size = 0; +}; +/** + * + * @hidden constructor/destructor + * @valid since 3.60. + * @param width 视频宽度 + * @param height 视频高度 + * @type keytype + * @brief 视频像素 + */ + +struct VideoDimensions { + int width; + int height; +}; + +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_120x120 = {120, 120}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_160x120 = {160, 120}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_180x180 = {180, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_240x180 = {240, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_320x180 = {320, 180}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_240x240 = {240, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_320x240 = {320, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_424x240 = {424, 240}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_360x360 = {360, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_480x360 = {480, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_640x360 = {640, 360}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_480x480 = {480, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_640x480 = {640, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_840x480 = {840, 480}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_960x540 = {960, 540}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_960x720 = {960, 720}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_1280x720 = {1280, 720}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_1920x1080 = {1920, 1080}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_2540x1440 = {2540, 1440}; +/** + * + * @hidden constructor/destructor + */ + +const static VideoDimensions VD_3840x2160 = {3840, 2160}; + + +/** + * + * @type keytype + * @brief 推荐的视频帧率 + * @hidden constructor/destructor + */ + +enum FrameRateFps { + kFrameRateFps1 = 1, + kFrameRateFps7 = 7, + kFrameRateFps10 = 10, + kFrameRateFps15 = 15, + kFrameRateFps24 = 24, + kFrameRateFps30 = 30, + kFrameRateFps60 = 60, +}; +/** + * + * @type keytype + * @brief 视频编码配置。参考 [设置视频发布参数](https: + */ + +struct VideoEncoderConfig { + /** + * + * @brief 视频宽度,单位:像素 + */ + + int width; + /** + * + * @brief 视频高度,单位:像素 + */ + + int height; + /** + * + * @brief 视频帧率,单位:fps + */ + + int frame_rate; + /** + * + * @brief 最大编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
    + * 内部采集模式下默认值为 -1,即适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率。
    + * 设为 0 则不对视频流进行编码发送。 + */ + + int max_bitrate = SEND_KBPS_AUTO_CALCULATE; + /** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, maxBitrate),当 `maxBitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `maxBitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `maxBitrate` < `0` 时,适配码率模式。 + */ + + int min_bitrate = 0; + /** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + + int32_t key_frame_interval_ms = 0; + /** + * + * @brief 编码策略偏好,默认为帧率优先。参看 VideoEncodePreference{@link #VideoEncodePreference}。 + */ + + VideoEncodePreference encoder_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; +}; + +/** + * + * @hidden + * @deprecated since 3.36 along with onUserUnPublishStream and onUserUnPublishScreen, and will be deleted in 3.51. + * @type keytype + * @brief 视频属性 + */ + +struct VideoSolutionDescription { + /** + * + * @brief 宽(像素)
    + * 默认值为 `1920`
    + * 为 `0` 时,保持源的宽。 + */ + + int width; + /** + * + * @brief 高(像素)
    + * 默认值为 `1080`
    + * 为 `0` 时,保持源的高。 + */ + + int height; + /** + * + * @brief 视频帧率(fps),默认为 15 fps + */ + + int fps; + /** + * + * @brief 最大发送速率(千比特每秒)。
    + * 默认为 `-1`,适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率 + */ + + int max_send_kbps; + int min_send_kbps; + /** + * + * @brief 缩放模式。参看 VideoStreamScaleMode{@link #VideoStreamScaleMode} + */ + + VideoStreamScaleMode scale_mode = VideoStreamScaleMode::kVideoStreamScaleModeAuto; + /** + * + * @brief 视频的编码类型。参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType codec_name = VideoCodecType::kVideoCodecTypeUnknown; + /** + * + * @brief 视频的编码模式。参看 VideoCodecMode{@link #VideoCodecMode} + */ + + VideoCodecMode codec_mode = VideoCodecMode::kVideoCodecModeAuto; + /** + * + * @brief 视频编码质量偏好策略。参看 VideoEncodePreference{@link #VideoEncodePreference} + */ + + VideoEncodePreference encode_preference = VideoEncodePreference::kVideoEncodePreferenceFramerate; + /** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + + int32_t key_frame_interval_ms = 0; + /** + * + * @hidden constructor/destructor + */ + + bool operator==(const VideoSolutionDescription& config) const { + bool result = width == config.width && height == config.height && fps == config.fps + && max_send_kbps == config.max_send_kbps && min_send_kbps == config.min_send_kbps + && scale_mode == config.scale_mode && codec_name == config.codec_name + && codec_mode == config.codec_mode && encode_preference == config.encode_preference; + return result; + } + /** + * + * @hidden constructor/destructor + */ + + bool operator!=(const VideoSolutionDescription& config) const { + bool result = (*this == config); + return !result; + } +}; + + +/** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @region 视频管理 + */ + +typedef VideoSolutionDescription VideoProfile; + +/** + * + * @type keytype + * @brief 视频帧像素格式 + */ + +enum VideoPixelFormat { + /** + * + * @brief 未知格式 + */ + + kVideoPixelFormatUnknown = 0, + /** + * + * @brief YUV I420 格式 + */ + + kVideoPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + kVideoPixelFormatNV12 = 2, + /** + * + * @brief YUV NV21 格式 + */ + + kVideoPixelFormatNV21 = 3, + /** + * + * @brief RGB 24bit 格式, + */ + + kVideoPixelFormatRGB24 = 4, + /** + * + * @brief RGBA 编码格式 + */ + + kVideoPixelFormatRGBA = 5, + /** + * + * @brief ARGB 编码格式 + */ + + kVideoPixelFormatARGB = 6, + /** + * + * @brief BGRA 编码格式 + */ + + kVideoPixelFormatBGRA = 7, + + + /** + * + * @hidden for internal use only + * @brief 像素格式结束标志。新加的格式数值应该小于kVideoPixelFormatEndMark。 + */ + + kVideoPixelFormatEndMark = 0xFF, + + /** + * + * @brief Texture2D 格式 + */ + + kVideoPixelFormatTexture2D = 0x0DE1, + /** + * + * @brief TextureOES 格式 + */ + + kVideoPixelFormatTextureOES = 0x8D65, +}; + +/** + * + * @type keytype + * @brief 视频帧内容类型 + */ + +enum VideoContentType { + /** + * + * @brief 普通视频 + */ + + kVideoContentTypeNormalFrame = 0, + /** + * + * @brief 黑帧 + */ + + kVideoContentTypeBlackFrame = 1, +}; + + +/** + * + * @type keytype + * @brief 视频缓冲区类型 + */ + +enum VideoBufferType { + /** + * + * @brief 原始内存数据 + */ + + kVideoBufferTypeRawMemory = 0, + /** + * + * @hidden(Windows, Android, Linux) + * @brief CVPixelBufferRef 类型 + */ + + kVideoBufferTypeCVPixelBuffer = 1, + /** + * + * @brief OpenGL 纹理数据类型 + */ + + kVideoBufferTypeGLTexture = 2, + /** + * + * @brief cuda 数据类型 + */ + + kVideoBufferTypeCuda = 3, + /** + * + * @brief direct3d11 纹理 + */ + + kVideoBufferTypeD3D11 = 4, + /** + * + * @brief vaapi 数据格式 + */ + + kVideoBufferTypeVAAPI = 5, + /** + * + * @hidden(Windows) + * @brief nvidia jetson dma 数据格式 + */ + + kVideoBufferTypeNvidiaJetsonDma =6, +}; + +/** + * + * @type keytype + * @brief 自定义内存释放器 + */ + +struct ManagedMemory { + /** + * + * @brief 内存数据地址 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 内存空间的大小 + */ + + int size = 0; + /** + * + * @brief 用户自定义数据 + */ + + void* user_opaque = nullptr; + /** + * + * @brief 自定义内存释放方法指针,如果指针不为空,方法会被调用,用来释放内存空间。
    + * 函数传入的参数分别是本结构体内 data、size、user_opaque 3 个字段。 + */ + + int (*memory_deleter)(uint8_t* data, int size, void* user_opaque) = nullptr; +}; + +/** + * + * @type keytype + * @region 视频管理 + * @brief 视频帧数据 + */ + +typedef struct VideoFrameData { + /** + * + * @brief 视频帧缓冲区类型,默认为原始内存,详见 VideoBufferType{@link #VideoBufferType}。必填。 + */ + + VideoBufferType buffer_type = kVideoBufferTypeRawMemory; + /** + * + * @brief 视频帧像素格式,详见 VideoPixelFormat{@link #VideoPixelFormat}。当 `buffer_type` 为 `kVideoFrameTypeGLTexture` 必填。 + */ + + VideoPixelFormat pixel_format = kVideoPixelFormatUnknown; + + /** + * + * @brief 视频帧内容类型,参看 VideoContentType{@link #VideoContentType} + */ + + VideoContentType content_type = kVideoContentTypeNormalFrame; + /** + * + * @brief 视频帧平面个数。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + int number_of_planes = 0; + /** + * + * @brief 视频帧平面数组。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + uint8_t* plane_data[4] = { nullptr }; + /** + * + * @brief stride 数组。stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节)。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 时,必填。 + */ + + int plane_stride[4] = { 0 }; + /** + * + * @brief SEI 数据 + */ + + uint8_t* sei_data = nullptr; + /** + * + * @brief SEI 数据大小 + */ + + int sei_data_size = 0; + /** + * + * @brief 视频帧感兴趣区域数据 + */ + + uint8_t* roi_data = nullptr; + /** + * + * @brief 视频帧感兴趣区域数据长度 + */ + + int roi_data_size = 0; + /** + * + * @brief 视频帧宽度。必填。 + */ + + int width = 0; + /** + * + * @brief 视频帧高度。必填。 + */ + + int height = 0; + /** + * + * @brief 视频旋转角度,参看 VideoRotation{@link #VideoRotation}。
    + */ + + VideoRotation rotation = kVideoRotation0; + /** + * + * @brief 视频帧时间戳,单位:微秒。必填。 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 硬件加速缓冲区指针 + */ + + void* hw_buffer = nullptr; + /** + * + * @brief 硬件加速上下文对象句柄 + */ + + void* hw_context = nullptr; + /** + * + * @brief 纹理矩阵(仅针对纹理类型的 frame 生效) + */ + + float texture_matrix[16] = { 0 }; + /** + * + * @brief 纹理 ID(仅针对纹理类型的 frame 生效)。当 `buffer_type` 为 `kVideoBufferTypeRawMemory` 或 `kVideoFrameTypeGLTexture` 必填。 + */ + + uint32_t texture_id = 0; + +} VideoFrameData; + +/** + * + * @type keytype + * @brief 视频帧接口 + */ + +class IVideoFrame { +public: + /** + * + * @brief 获取视频帧缓冲区类型,参看 VideoBufferType{@link #VideoBufferType}。 + */ + + virtual VideoBufferType bufferType() = 0; + /** + * + * @brief 获取视频帧像素格式,参看 VideoPixelFormat{@link #VideoPixelFormat}。 + */ + + virtual VideoPixelFormat pixelFormat() = 0; + /** + * + * @brief 获取视频帧内容类型,参看 VideoContentType{@link #VideoContentType}。 + */ + + virtual VideoContentType contentType() = 0; + + /** + * + * @brief 获取视频帧时间戳,单位:微秒 + */ + + virtual int64_t timestampUs() = 0; + /** + * + * @brief 获取视频帧宽度 + */ + + virtual int width() = 0; + /** + * + * @brief 获取视频帧高度 + */ + + virtual int height() = 0; + /** + * + * @brief 获取视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + */ + + virtual VideoRotation rotation() = 0; + /** + * + * @brief 获取视频帧平面数量 + */ + + virtual int numberOfPlanes() = 0; + /** + * + * @brief 获取视频帧平面 + * @param plane_index plane 索引 + */ + + virtual uint8_t* planeData(int plane_index) = 0; + /** + * + * @brief 获取视频帧平面相邻两行图像数据之间的内存长度(单位字节) + * @param plane_index plane 索引 + */ + + virtual int planeStride(int plane_index) = 0; + /** + * + * @brief 获取 SEI 数据指针 + * @param size SEI 数据字节数 + */ + + virtual uint8_t* seiData(int& size) = 0; + /** + * + * @brief 获取硬件缓冲区指针 + */ + + virtual void* hwBuffer() = 0; + /** + * + * @brief 获取硬件加速上下文对象句柄 + */ + + virtual void* hwContext() = 0; + /** + * + * @brief 获取纹理矩阵(仅针对纹理类型的 frame 生效) + * @param matrix 纹理矩阵 + */ + + virtual void textureMatrix(float matrix[16]) = 0; + /** + * + * @brief 获取纹理 ID(仅针对纹理类型的 frame 生效) + */ + + virtual uint32_t textureId() = 0; + /** + * + * @brief 视频帧引用计数加一 + * @note 视频帧消费者希望对视频帧进行异步处理时(例如切换线程进行渲染),需要调用此接口增加引用计数。异步处理结束则需要调用 `releaseRef` 使引用计数减1 + */ + + virtual void addRef() = 0; + /** + * + * @brief 视频帧引用计数减一 + * @note 视频帧引用计数减为 0 时,视频帧对象会被释放。视频帧对象释放后,不应该继续使用视频帧。 + */ + + virtual long releaseRef() = 0; + /** + * + * @brief 获取视频帧的摄像头位置信息,参看 CameraID{@link #CameraID} + */ + + virtual CameraID cameraId() = 0; + /** + * + * @hidden for internal use only on Windows and Android + * @type api + * @brief 获取全景视频的 Tile 信息 + * @return FoV(可视范围)随本端的头位姿实时更新获取到的视频帧,包括高清视野和低清背景。参见 FovVideoTileInfo{@link #FovVideoTileInfo}。 + * @list + */ + + virtual FovVideoTileInfo fovTileInfo() = 0; +/** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IVideoFrame() = default; +}; + + + + + + + + + + + + + + + + + + + + + +/** + * + * @type keytype + * @region 视频管理 + * @brief 视频帧参数 + */ + +typedef struct EncodedVideoFrameBuilder { + /** + * + * @brief 视频帧编码格式,参看 VideoCodecType{@link #VideoCodecType} + */ + + VideoCodecType codec_type = kVideoCodecTypeUnknown; + /** + * + * @brief 视频帧编码类型,参看 VideoPictureType{@link #VideoPictureType} + */ + + VideoPictureType picture_type = kVideoPictureTypeUnknown; + /** + * + * @brief 视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + */ + + VideoRotation rotation = kVideoRotation0; + /** + * + * @brief 视频帧数据指针 + * @note IEncodedVideoFrame 会获取数据的所有权 + */ + + uint8_t* data = nullptr; + /** + * + * @brief 视频帧数据大小 + */ + + int size = 0; + /** + * + * @brief 视频帧宽度,单位:px + */ + + int width = 0; + /** + * + * @brief 视频帧高度,单位:px + */ + + int height = 0; + /** + * + * @brief 视频采集时间戳,单位:微秒 + */ + + int64_t timestamp_us = 0; + /** + * + * @brief 视频编码时间戳,单位:微秒 + */ + + int64_t timestamp_dts_us = 0; + /** + * + * @brief 用户定义的视频帧释放回调函数指针,如果指针不为空,方法会被调用用来释放内存空间 + */ + + int (*memory_deleter)(uint8_t* data, int size, void* user_opaque) = nullptr; +} EncodedVideoFrameBuilder; +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +class IEncodedVideoFrame { +public: + /** + * + * @type api + * @brief 获取视频编码类型 + * @return 视频编码类型,参看 VideoCodecType{@link #VideoCodecType} + * @list Video Management + */ + + virtual VideoCodecType codecType() const = 0; + /** + * + * @type api + * @brief 获取视频采集时间戳 + * @return 视频采集时间戳,单位:微秒 + * @list Video Management + */ + + virtual int64_t timestampUs() const = 0; + /** + * + * @type api + * @brief 获取视频编码时间戳 + * @return 视频编码时间戳,单位:微秒 + * @list Video Management + */ + + virtual int64_t timestampDtsUs() const = 0; + /** + * + * @type api + * @brief 获取视频帧宽度 + * @return 视频帧宽度,单位:px + * @list Video Management + */ + + virtual int width() const = 0; + /** + * + * @type api + * @brief 获取视频帧高度 + * @return 视频帧高度,单位:px + * @list Video Management + */ + + virtual int height() const = 0; + /** + * + * @type api + * @brief 获取视频编码帧类型 + * @return 视频编码帧类型,参看 VideoPictureType{@link #VideoPictureType} + * @list Video Management + */ + + virtual VideoPictureType pictureType() const = 0; + /** + * + * @type api + * @brief 获取视频帧旋转角度 + * @return 视频帧旋转角度,参看 VideoRotation{@link #VideoRotation} + * @list Video Management + */ + + virtual VideoRotation rotation() const = 0; + /** + * + * @type api + * @brief 获取视频帧数据指针地址 + * @return 视频帧数据指针地址 + * @list Video Management + */ + + virtual uint8_t* data() const = 0; + /** + * + * @type api + * @brief 获取视频帧数据大小 + * @return 视频帧数据大小 + * @list Video Management + */ + + virtual int dataSize() const = 0; + /** + * + * @type api + * @brief 浅拷贝视频帧并返回指针 + * @list Video Management + */ + + virtual IEncodedVideoFrame* shallowCopy() const = 0; + /** + * + * @type api + * @brief 释放视频帧 + * @list Video Management + */ + + virtual void release() = 0; + /** + * + * @hidden constructor/destructor + */ + +protected: + /** + * + * @hidden constructor/destructor + * @brief 析构函数 + */ + + virtual ~IEncodedVideoFrame() = default; +}; +/** + * + * @type api + * @brief 创建 IEncodedVideoFrame + * @param builder 编码后的视频帧构建实例,参看 EncodedVideoFrameBuilder{@link #EncodedVideoFrameBuilder} + * @return IEncodedVideoFrame{@link #IEncodedVideoFrame} 实例 + * @list 视频管理 + */ + +BYTERTC_API IEncodedVideoFrame* buildEncodedVideoFrame(const EncodedVideoFrameBuilder& builder); + + +/** + * + * @hidden(Linux,Android,iOS) + * @type keytype + * @brief RTC 智能决策后得到的帧率和分辨率积(宽*高)。 + */ + +struct FrameUpdateInfo { + /** + * + * @brief 分辨率积(宽*高)。 + */ + + int pixel; + /** + * + * @brief 帧率。 + */ + + int framerate; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h new file mode 100644 index 0000000..9ad98ce --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_video_processor_interface.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Processor Interface +*/ + +#pragma once + +#include "bytertc_video_frame.h" + +namespace bytertc { +/** + * + * @type api + * @brief 视频处理接口类 + * @list 视频处理 + */ + +class IVideoProcessor +{ +public: + /** + * + * @hidden constructor/destructor + */ + + virtual ~IVideoProcessor() = default; + /** + * + * @type api + * @brief 获取 RTC SDK 采集得到的视频帧,根据 registerLocalVideoProcessor{@link #IRTCEngine#registerLocalVideoProcessor} 设置的视频前处理器,进行视频前处理,最终将处理后的视频帧给到 RTC SDK 用于编码传输。 + * @param src_frame RTC SDK 采集得到的视频帧,参看 IVideoFrame{@link #IVideoFrame}。 + * @return 经过视频前处理后的视频帧,返回给 RTC SDK 供编码和传输,参看 IVideoFrame{@link #IVideoFrame}。 + * @note + * - 在进行视频前处理前,你需要调用 registerLocalVideoProcessor{@link #IRTCEngine#registerLocalVideoProcessor} 设置视频前处理器。 + * - 如果需要取消视频前处理,可以将视频前处理器设置为 nullptr。 + * - 应用层实现 `processVideoFrame` 接口时,可以直接修改 `src_frame` 的缓冲区,调用 `addRef` 方法将 `src_frame` 引用计数加一,然后将修改后的 `src_frame` 返回, 也可以创建一个新的视频帧并返回。 + * - 对于 `processVideoFrame` 返回的视频帧,在 SDK 层消费完成后,SDK 内部总是调用这个视频帧的 releaseRef 方法。 + * @list 自定义流处理 + */ + + virtual IVideoFrame* processVideoFrame(IVideoFrame* src_frame) = 0; +}; + +} \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h new file mode 100644 index 0000000..5d3b57d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/bytertc_wtn_stream_interface.h @@ -0,0 +1,381 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Video Processor Interface +*/ + +#pragma once + +#include "bytertc_video_defines.h" + +namespace bytertc { +/** + * + * @type keytype + * @brief WTN 媒体流状态 + */ + +enum WTNSubscribeState { + /** + * + * @brief 订阅 WTN 媒体流 + */ + + kWTNSubscribeStateSubscribed, + /** + * + * @brief 取消订阅 WTN 媒体流 + */ + + kWTNSubscribeStateUnsubscribed +}; +/** + * + * @type keytype + * @brief WTN 媒体流订阅状态改变的原因 + */ + +enum WTNSubscribeStateChangeReason { + /** + * + * @brief 订阅 WTN 媒体流成功 + */ + + kWTNSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 其他原因订阅失败 + */ + + kWTNSubscribeStateChangeReasonUnsubscribe = 1300, + /** + * + * @brief 订阅失败,拉流时远端未发布 + */ + + kWTNSubscribeStateChangeReasonRemoteUnpublish = 1301, + /** + * + * @brief 订阅失败,超出单端订阅上限。一个引擎实例最多拉 5 路流。 + */ + + kWTNSubscribeStateChangeReasonOverClientSubscribeStreamLimit = 1310, + /** + * + * @brief 订阅失败。超出单流订阅人数上限。该限制由 RTC 服务端决定。 + */ + + kWTNSubscribeStateChangeReasonOverStreamSubscribeUserLimit = 1311, + /** + * + * @brief 订阅失败。超出单流订阅请求 QPS 上限。该限制由 RTC 服务端决定。 + */ + + kWTNSubscribeStateChangeReasonOverStreamSubscribeRequestLimit = 1312 +}; + +/** + * + * @type callback + * @brief WTN 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +class IWTNStreamEventHandler { +public: + /** + * @hidden Constructor/Destructor + * @brief Destructor + */ + virtual ~IWTNStreamEventHandler() { + } + /** + * + * @type callback + * @valid since 3.60. + * @brief 通话中本地设备接收订阅的远端 WTN 视频流的流 ID 以及远端 WTN 视频流统计信息。 + * @param stream_id WTN 流 ID + * @param stats 远端 WTN 视频流的统计信息,详见 RemoteVideoStats{@link #RemoteVideoStats}。 + * @list WTN + * @order 0 + */ + + virtual void onWTNRemoteVideoStats(const char* stream_id, RemoteVideoStats stats) { + (void)stream_id; + (void)stats; + } + /** + * + * @type callback + * @valid since 3.60. + * @brief 通话中本地设备接收订阅的远端 WTN 音频流的流 ID 以及远端 WTN 音频流统计信息。 + * @param stream_id WTN 流 ID + * @param stats 远端 WTN 音频流的统计信息,详见 RemoteAudioStats{@link #RemoteAudioStats} + * @list WTN + * @order 1 + */ + + virtual void onWTNRemoteAudioStats(const char* stream_id, RemoteAudioStats stats) { + (void)stream_id; + (void)stats; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onPlayPublicStreamResult` 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 视频流订阅状态变化回调
    + * 通过 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。 + * @param stream_id WTN 视频流的 ID + * @param state_code 视频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 + * @param reason 订阅状态发生变化的原因,参看 WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}。 + * @list WTN + * @order 2 + */ + + virtual void onWTNVideoSubscribeStateChanged(const char* stream_id, WTNSubscribeState state_code, WTNSubscribeStateChangeReason reason) { + (void)stream_id; + (void)state_code; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onPlayPublicStreamResult` 中的 WTN 音频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 音频流订阅状态变化回调
    + * 通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。 + * @param stream_id WTN 音频流的 ID + * @param state_code 音频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 + * @param reason 订阅状态发生变化的原因,参看 WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}。 + * @list WTN + * @order 2 + */ + + virtual void onWTNAudioSubscribeStateChanged(const char* stream_id, WTNSubscribeState state_code, WTNSubscribeStateChangeReason reason) { + (void)stream_id; + (void)state_code; + (void)reason; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onFirstPublicStreamAudioFrame`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧音频解码成功
    + * 关于订阅 WTN 音频流,详见 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}。 + * @param stream_id WTN 流 ID + * @list WTN + * @order 3 + */ + + virtual void onWTNFirstRemoteAudioFrame(const char* stream_id) { + (void)stream_id; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onFirstPublicStreamVideoFrameDecoded`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧视频解码成功
    + * 关于 订阅 WTN 流,详见 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}。 + * @param stream_id WTN 流 ID + * @param info 视频帧信息。详见 VideoFrameInfo{@link #VideoFrameInfo}。 + * @list WTN + * @order 4 + */ + + virtual void onWTNFirstRemoteVideoFrameDecoded(const char* stream_id, const VideoFrameInfo& info) { + (void)stream_id; + (void)info; + } + + /** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替换了 `onPublicStreamSEIMessageReceived` 来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief 回调 WTN 流中包含的 SEI 信息。
    + * 调用 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}接口拉 WTN 音频流/视频流后,通过此回调收到 WTN 流中的 SEI 消息。 + * @param stream_id WTN 流 ID。 + * @param channel_id SEI 的消息传输通道,取值范围 `[0 - 255]`。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message 收到的 SEI 消息内容。
    + * 通过调用客户端 `sendSEIMessage` 插入的 SEI 信息。
    + * 当 WTN 流中的多路视频流均包含有 SEI 信息:SEI 不互相冲突时,将通过多次回调分别发送;SEI 在同一帧有冲突时,则只有一条流中的 SEI 信息被透传并融合到 WTN 流中。 + * @param length SEI 信息的长度。 + * @note 通过 Open API 插入的自定义信息,应通过回调 onWTNDataMessageReceived{@link #IWTNStreamEventHandler#onWTNDataMessageReceived} 获取。 + * @list WTN + * @order 5 + */ + + virtual void onWTNSEIMessageReceived(const char* stream_id, int channel_id, const uint8_t* message, int length) { + (void)stream_id; + (void)channel_id; + (void)message; + (void)length; + } + + /** + * + * @type callback + * @valid since 3.60. + * @brief 回调 WTN 流中包含的数据信息。
    + * 通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 流后,通过监听本回调获取 WTN 流中的数据消息,包括调用 Open API 发送的 SEI 消息和音量回调。 + * @param stream_id WTN 流 ID + * @param message 收到的数据消息内容,如下:
    + * - 调用 WTN 流 OpenAPI 发送的自定义消息。 + * - 媒体流音量变化,需要通过 WTN 流 OpenAPI 开启回调。JSON 格式说明如下:
    + * {
    + * "Type" : "VolumeIndication", + * "VolumeInfos" : [ + * {
    + * "RoomId":"1000001", + * "UserId":"1000001", + * "StreamType":0, + * "LinearVolume":1 + * }
    + * @param message_length 消息的长度 + * @param source_type 数据消息来源,参看 DataMessageSourceType{@link #DataMessageSourceType}。 + * @note 通过调用客户端 API 插入的 SEI 信息,应通过回调 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 获取。 + * @list WTN + * @order 6 + */ + + virtual void onWTNDataMessageReceived(const char* stream_id, + const uint8_t* message, + int message_length, + DataMessageSourceType source_type) { + (void)stream_id; + (void)message; + (void)message_length; + (void)source_type; + } +}; + +/** + * + * @type api + * @region WTN + * @brief WTN 流处理 + */ + +class IWTNStream +{ +public: + /** + * @hidden constructor/destructor + */ + virtual ~IWTNStream() = default; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream` 和 `stopPlayPublicStream` 方法来订阅/取消订阅指定 WTN 视频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 视频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 视频流。 + * @param stream_id WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 onWTNVideoSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNVideoSubscribeStateChanged} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteVideoFrameDecoded{@link #IWTNStreamEventHandler#onWTNFirstRemoteVideoFrameDecoded} 回调 WTN 视频流的首帧解码情况。 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 0 + */ + + virtual int subscribeWTNVideoStream(const char* stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream` 和 `stopPlayPublicStream` 方法来订阅/取消订阅指定 WTN 音频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 音频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 音频流。 + * @param stream_id WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 onWTNAudioSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNAudioSubscribeStateChanged} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 取消订阅WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteAudioFrame{@link #IWTNStreamEventHandler#onWTNFirstRemoteAudioFrame} 回调 WTN 音频流的音频首帧解码情况。 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 1 + */ + + virtual int subscribeWTNAudioStream(const char* stream_id, bool subscribe) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoCanvas` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定内部渲染视图 + * @param stream_id WTN 流 ID + * @param canvas 内部渲染视图,如果需要解除视频的绑定视图,把 `videoCanvas` 设置为空。详见 VideoCanvas{@link #VideoCanvas}。 + * @return + * - 0:成功 + * - !0:失败 + * @list WTN + * @order 2 + */ + + virtual int setWTNRemoteVideoCanvas(const char* stream_id, const VideoCanvas& canvas) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoSink` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定自定义渲染器。详见[自定义视频渲染](https: + * @param stream_id WTN 流 ID + * @param video_sink 自定义视频渲染器,自定义视频渲染器,需要释放渲染器资源时,将 `videoSink` 设置为 `null`。参看 IVideoSink{@link #IVideoSink} + * @param config 远端视频帧回调配置,参看 RemoteVideoSinkConfig{@link #RemoteVideoSinkConfig} + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ReturnStatus{@link #ReturnStatus}。 + * @list WTN + * @order 3 + */ + + virtual int setWTNRemoteVideoSink(const char* stream_id, IVideoSink* video_sink, RemoteVideoSinkConfig& config) = 0; + + /** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamAudioPlaybackVolume` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 调节 WTN 流的音频播放音量。 + * @param stream_id WTN 流 ID + * @param volume 音频播放音量值和原始音量值的比值,该比值的范围是 `[0, 400]`,单位为 %,且自带溢出保护。为保证更好的音频质量,建议设定在 `[0, 100]` 之间,其中 100 为系统默认值。 + * @return + * - 0: 成功调用。 + * - -2: 参数错误。 + * @list WTN + * @order 4 + */ + + virtual int setWTNRemoteAudioPlaybackVolume(const char* stream_id, int volume) = 0; + /** + * + * @type api + * @valid since 3.60. + * @brief 设置 WTN 流回调接口 + * @param handler WTN 回调类,参看 IWTNStreamEventHandler{@link #IWTNStreamEventHandler}。 + * @list WTN + * @order 5 + */ + + virtual int setWTNStreamEventHandler(IWTNStreamEventHandler* handler) = 0; +}; + +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h new file mode 100644 index 0000000..59f2c90 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/native/rtc/meeting_advance.h @@ -0,0 +1,239 @@ +#pragma once + +#include "bytertc_defines.h" + +namespace bytertc { +class IRTCRoom; +class IRTCEngine; +class IAmazingEffect; + +/** + * @type keytype + * @brief 5.18版本后,飞书会议弱网提示专用,设置订阅视频基线数据用于计算网络等级 + */ +struct SubscribeVideoBaseline { + /** + * @brief 网络等级判定为优秀的视频宽/高中小值的基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_good_video_pixel_baseline = -1; + /** + * @brief 网络等级判定为优秀的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_good_video_fps_baseline = -1; + /** + * @brief 网络等级判定为差视频宽/高中小值的基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_bad_video_pixel_baseline = -1; + /** + * @brief 网络等级判定为差的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ + int32_t acceptable_bad_video_fps_baseline = -1; + /** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ + int32_t acceptable_min_video_resolution_width = -1; + /** + * @brief 业务可以接受的最小分辨率高度,-1表示业务忽略此参数 + */ + int32_t acceptable_min_video_resolution_height = -1; + /** + * @brief 流的优先级,-1表示业务忽略此参数 + */ + int32_t stream_priority = -1; +}; + +enum SpecialStreamType { + kSpecialStreamTypeDocShare = 1, + kSpecialStreamTypeMCU, + kSpecialStreamTypeMeetTogether, + kSpecialStreamTypeIntelligentStream, +}; + +enum ExternalReportType{ + kExternalReportTypeApi = 0, + kExternalReportTypeApiCallback = 1, +}; +} + +namespace bytertc { + /** + * + * @hidden + * @brief 推流到子频道channelName + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [const char*] channelName 子频道 + */ + BYTERTC_API int setPublishChannel(IRTCRoom* room, const char* channelName); + /** + * + * @hidden + * @brief 订阅子频道数组里的所有流 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [const SubChannelsInfo*] channelsInfo 子频道数组 + * @param [int] channelsNum 子频道数组大小 + * @param [bool] enableVolumeRescale 是否开启音频抑制功能 + */ + BYTERTC_API int setSubscribeChannels(IRTCRoom* room, const char* channels[], int channelsNum, bool enable_rescale); + /** + * + * @hidden + * @brief 设置是否开启音频抑制 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [bool] enable 是否抑制 + */ + BYTERTC_API int enableRescaleAudioVolume(IRTCRoom* room, bool enable); + /** + * + * @hidden + * @deprecated since 3.58 and will be deleted in 3.60 + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [IRTCRoom*] room 目标room + * @param [int] type 流类型 + */ + BYTERTC_API int setPublishSpecialStream(IRTCRoom* room, int type); + /** + * + * @hidden + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [IRTCRoom*] room 目标room + * @param [int] type 流类型 + */ + BYTERTC_API int setPublishSpecialStreamWithStreamIndex(IRTCRoom* room, StreamIndex streamIndex, int type); + /** + * + * @hidden + * @brief 设置订阅的特殊流类型 + * > 支持会前、会中设置 + * @param [IRTCRoom*] room 目标room + * @param [int[]] types 流类型集合 + * @param [int] count 流类型集合大小 + */ + BYTERTC_API int setSubscribeSpecialStream(IRTCRoom* room, int types[], int count); + /** + * + * @brief 获取上行带宽状态 + * @param [IRTCRoom*] room 目标room + */ + BYTERTC_API int getUplinkNetworkBandwidthEstimationStatus(IRTCRoom* room); + /** + * + * @brief 获取下行带宽状态 + * @param [IRTCRoom*] room 目标room + */ + BYTERTC_API int getDownlinkNetworkBandwidthEstimationStatus(IRTCRoom* room); + + /** + * + * @hidden + * @brief 视频发布端设置推送多路流时各路流的参数,包括分辨率、帧率、码率、缩放模式、网络不佳时的回退策略等。 + * @param channel_solutions 通道内的最大分辨率 + * @param solution_num 通道数 + * @param channel_main_solutions 主通道 兼容旧版本 + * @return 0 成功 !0失败 + */ + BYTERTC_API int setVideoEncoderConfig(IRTCEngine* ivideo, const VideoEncoderConfig* channel_solutions, + int solution_num, const VideoEncoderConfig* channel_main_solutions); + + /** + * + * @hidden + * @brief 设置屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ + BYTERTC_API int setScreenVideoConfigs(IRTCEngine* ivideo); + + /** + * + * @hidden + * @brief 清空屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ + BYTERTC_API int resetScreenVideoConfigs(IRTCEngine* ivideo); + + /** + * + * @brief 更新自动订阅选项 + *@param [IRTCRoom*] room 目标room + *@param [SubscribeMode] sub_mode_audio 音频自动订阅模式 + *@param [SubscribeMode] sub_mode_video 视频自动订阅模式 + */ + BYTERTC_API int enableAutoSubscribe(IRTCRoom* room, SubscribeMode sub_mode_audio, SubscribeMode sub_mode_video); + + /** + * + * @brief 检查音视频流是否取消发布成功 + *@param [IRTCRoom*] room 目标room + *@param [int] type 需要检查的流类型 + */ + BYTERTC_API bool isStreamUnpublished(IRTCRoom* room, MediaStreamType stream_type); + + /** + * + * @brief 设置弱网降级的基线数据 + *@param [RTCRoom] room 目标room + *@param [String] userId 订阅用户名 + *@param [boolean] isScreen 是否屏幕流 + *@param [InternalSubscribeVideoBaseline] videoBaseline 订阅基线设置 + */ + BYTERTC_API void setSubscribeBaselineData(IRTCRoom* rtc_room, const char* uid, bool is_screen, + const SubscribeVideoBaseline& video_baseline); + + /** + * + * @hidden + * @brief 获取用于实时crash分子数据信息 + * @param [char*] params carsh参数信息的json形式的字符数组 + * @param [int] size 用于存储params信息的数组大小 + */ + BYTERTC_API int getSessionLaunchParams(char* params, int size); + + /** + * + * @hidden + * @brief 获取视频特效接口IAmazingEffect + *@param [RTCEngine] ivideo 目标RTCVideo + */ + BYTERTC_API IAmazingEffect* getAmazingEffectInterface(IRTCEngine* ivideo); + /** + * + * @hidden + * @brief 获取EffectSDK版本,用于初始化platformsdk + */ + BYTERTC_API void getEffectVersion(char* version, int size); + + /** + * + * @brief 设置外部 Surface + * @return 无返回值 + */ + BYTERTC_API void setExternalSurface(IRTCEngine* ivideo, const char* room_id, const char* user_id, StreamIndex index, void* surface); + + /** + * + * @hidden + * @brief 写外部日志到RTC日志文件 + */ + BYTERTC_API void writeLog(const char* file_name, int line_num, const char* api_name, const char* level, + const char* format, ...); + + /** + * + * @hidden + * @brief 上报外部接口调用到trace平台 + */ + BYTERTC_API void reportApiCall(IRTCEngine* ivideo, ExternalReportType report_type, const char* api_name, + const char* msg); + + /** + * + * @hidden + * @brief 会议场景开启多分辨率 + */ + BYTERTC_API int enableSimulcastMode(IRTCEngine* ivideo, bool enabled); + + } diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h new file mode 100644 index 0000000..63030fd --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngine.h @@ -0,0 +1,4450 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC +*/ +#import +#import "rtc/ByteRTCDefines.h" +#import "rtc/ByteRTCHttpClientProtocol.h" +#import "rtc/ByteRTCAudioEffectPlayer.h" +#import "rtc/ByteRTCMediaPlayer.h" +#import "rtc/ByteRTCSingScoringManager.h" +#import "rtc/ByteRTCWTNStream.h" +@class ByteRTCEngine; +@class ByteRTCRoom; +@class ByteRTCGameRoom; +@class ByteRTCRTSRoom; +@class ByteRTCKTVManager; +/** + * + * @type api + */ + +@protocol ByteRTCHttpClientProtocol; + +#pragma mark - ByteRTCEngineDelegate +/** + * + * @type callback + * @brief ByteRTCEngineDelegate 协议包含了 SDK 提供的回调方法,SDK 通过代理向应用程序上报一些运行时事件
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCEngineDelegate +@optional +#pragma mark - Core Delegate Methods + +/** + * + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param engine ByteRTCEngine 对象。 + * @param code 警告代码,参看 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onWarning:(ByteRTCWarningCode)code; +/** + * + * @type callback + * @brief 发生错误回调。
    + * SDK 运行时出现了网络或媒体相关的错误,且无法自动恢复时触发此回调。
    + * 你可能需要干预。 + * @param engine ByteRTCEngine 对象。 + * @param errorCode 错误代码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onError:(ByteRTCErrorCode)errorCode; +/** + * + * @hidden internal use only + * @valid since 3.57 + * @type callback + * @brief 当内部线程发生 block 时,将收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param deadlockMsg block 线程的线程名和 block 检测次数。参看 ByteRTCDeadLockMsg{#ByteRTCDeadLockMsg} + * @list Engine Management + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onDeadLockError:(ByteRTCDeadLockMsg *_Nonnull)deadlockMsg; +/** + * + * @valid since 3.52 + * @type callback + * @brief 当访问插件失败时,收到此回调。
    + * RTC SDK 将一些功能封装成插件。当使用这些功能时,如果插件不存在,功能将无法使用。 + * @param engine `ByteRTCEngine` 实例 + * @param extensionName 插件名字 + * @param msg 失败说明 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onExtensionAccessError:(NSString * _Nonnull)extensionName msg:(NSString * _Nonnull)msg; +/** + * + * @type callback + * @brief SDK 与信令服务器连接状态改变回调。连接状态改变时触发。 + * @param engine ByteRTCEngine 对象 + * @param state 当前 SDK 与信令服务器的连接状态,详见 ByteRTCConnectionState{@link #ByteRTCConnectionState}。 + * @note 更多信息参见 [连接状态提示](https: + * @list 网络管理 + */ + +- (void) rtcEngine:(ByteRTCEngine * _Nonnull)engine onConnectionStateChanged:(ByteRTCConnectionState) state; +/** + * + * @type callback + * @brief SDK 当前网络连接类型改变回调。 + * @param engine ByteRTCEngine 对象 + * @param type SDK 当前的网络连接类型,详见 ByteRTCNetworkType{@link #ByteRTCNetworkType} + * @list 网络管理 + */ + +- (void) rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkTypeChanged:(ByteRTCNetworkType) type; +/** + * + * @type callback + * @brief 房间内的可见用户调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 开启音频采集的远端流 ID + * @param info 开启音频采集的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStartAudioCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 房间内的可见用户调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 关闭音频采集时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 流 ID。 + * @param info 关闭音频采集的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStopAudioCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 订阅端接收并解码远端音频流首帧时,收到此回调。包含以下情况:
    + * 1. 发布端发布音频,包含首次发布和取消后再次发布。
    + * 2. 发布端关闭音频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布音频后,订阅端取消订阅音频后,又再次订阅音频。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @note + * - 用户刚收到房间内每一路音频流时,都会收到该回调。 + * - 摄像头流、屏幕流,内部采集、外部源、自动订阅和手动订阅的音频流,都符合上述策略。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteAudioFrame:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; + /** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:} 后,根据设置的 interval 值,你会周期性地收到此回调,了解本地音频的瞬时相关信息。
    + * 本地音频包括使用 RTC SDK 内部机制采集的麦克风音频,屏幕音频和本地混音音频信息。 + * @param engine ByteRTCEngine 对象 + * @param audioPropertiesInfos 本地音频信息,详见 ByteRTCLocalAudioPropertiesInfo{@link #ByteRTCLocalAudioPropertiesInfo} 。在 macOS 端,本地音量可通过 `setAudioCaptureDeviceVolume:` 设置。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLocalAudioPropertiesReport:(NSArray * _Nonnull)audioPropertiesInfos; + +/** + * + * @type callback + * @hidden 3.60 for internal use only + * @region 音频管理 + * @brief 人声检测结果回调。
    + * 调用 enableAudioVADReport 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 人声检测结果,参看 ByteRTCAudioVADType{@link #ByteRTCAudioVADType}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioVADStateUpdate:(ByteRTCAudioVADType)state; +/** + * + * @hidden for internal use only + * @type callback + * @region 音频管理 + * @brief 音乐场景检测结果回调。
    + * 调用 enableAudioAEDReport 后,根据设置的interval值,本地会周期性地收到此回调
    + * @param state 音乐场景检测结果,参看 ByteRTCAudioAEDType{@link #ByteRTCAudioAEDType}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioAEDStateUpdate:(ByteRTCAudioAEDType)state; + /** + * + * @hidden(iOS) + * @type callback + * @brief 回调音频设备测试时的播放音量 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine}。 + * @param volume 音频设备测试播放音量。取值范围:[0,255] + * @note 调用 startAudioPlaybackDeviceTest:interval:{@link #ByteRTCAudioDeviceManager#startAudioPlaybackDeviceTest:interval:} 或 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:},开始播放音频文件或录音时,将开启该回调。本回调为周期性回调,回调周期由上述接口的 `interval` 参数指定。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioPlaybackDeviceTestVolume:(int)volume; + /** + * + * @hidden(iOS) + * @type callback + * @brief 音频设备音量改变回调。当通过系统设置,改变音频设备音量或静音状态时,触发本回调。本回调无需手动开启。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine} + * @param deviceType 设备类型,包括麦克风和扬声器,参阅 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType}。 + * @param volume 音量值,[0, 255]。当 volume 变为 0 时,muted 会转为 True。 + * @param muted 是否禁音状态。扬声器被设置为禁音时,muted 为 True,但 volume 保持不变。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceVolumeChanged:(ByteRTCAudioDeviceType)deviceType volume:(int)volume muted:(bool)muted; + /** + * + * @type callback + * @brief 远端用户进房后,本地调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:} ,根据设置的 interval 值,本地会周期性地收到此回调,了解订阅的远端用户的瞬时音频信息。
    + * 远端用户的音频包括使用 RTC SDK 内部机制/自定义机制采集的麦克风音频和屏幕音频。 + * @param engine ByteRTCEngine 对象 + * @param audioPropertiesInfos 远端音频信息,其中包含音频流属性、房间 ID、用户 ID ,详见 ByteRTCRemoteAudioPropertiesInfo{@link #ByteRTCRemoteAudioPropertiesInfo}。 + * @param totalRemoteVolume 所有订阅的远端流混音后的音量,范围是 [0,255]。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onRemoteAudioPropertiesReport:(NSArray * _Nonnull)audioPropertiesInfos totalRemoteVolume:(NSInteger)totalRemoteVolume; +/** + * + * @type callback + * @brief 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:}  后,根据设置的 `config.interval`,你会周期性地收到此回调,获取房间内的最活跃用户信息。 + * @param engine `ByteRTCEngine` 实例 + * @param roomId 房间 ID + * @param uid 最活跃用户(ActiveSpeaker)的用户 ID + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onActiveSpeaker:(NSString * _Nonnull)roomId uid:(NSString *_Nonnull)uid; +/** + * + * @hidden for internal use only + * @type callback + * @brief 房间内用户暂停/恢复发送视频流时,房间内其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param roomId 房间 ID + * @param uid 暂停/恢复发送视频流的用户 ID。 + * @param muteState 视频流的发送状态。参看 ByteRTCMuteState{@link #ByteRTCMuteState}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onRemoteAudioPropertiesReportEx:(NSArray * _Nonnull)audioPropertiesInfos; + +#pragma mark - Core Video Delegate Methods + +/** + * + * @type callback + * @brief 房间内的可见用户调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部视频采集时,房间中其他用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 视频流 ID + * @param info 视频流信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStartVideoCapture:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 房间内的可见用户调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部视频采集时,房间内其他用户会收到此回调。
    + * 若发布视频数据前未开启采集,房间内所有可见用户会收到此回调。 + * @param engine ByteRTCEngine 实例 + * @param streamId 视频流 ID + * @param info 视频流信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserStopVideoCapture:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info; +/** + * + * @type callback + * @brief 第一帧本地采集的视频/屏幕共享画面在本地视图渲染完成时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstLocalVideoFrameCaptured:(ByteRTCVideoSource* _Nullable)videoSource withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstLocalVideoFrameCaptured:withFrameInfo:)); +/** + * + * @type callback + * @brief SDK 内部渲染成功远端视频流首帧后,收到此回调。包含以下情况:
    + * 1. 发布端首次发布视频
    + * 2. 在 1 条件下,发布端取消发布视频后,再次发布视频
    + * 3. 在 1 条件下,发布端关闭视频采集后,再次打开采集(或使用外部源时,停止推流后再次推流)
    + * 4. 在 1 条件下,订阅端取消订阅视频后,再次订阅视频(调用接口包括 subscribeAllStreamsVideo:{@link #ByteRTCRoom-subscribeAllStreamsVideo}pauseAllSubscribedStreamVideo:{@link #ByteRTCRoom-pauseAllSubscribedStreamVideo}/resumeAllSubscribedStreamVideo:{@link #ByteRTCRoom-resumeAllSubscribedStreamVideo}) + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @note 仅在采用内部渲染时,符合上述策略。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteVideoFrameRendered:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstRemoteVideoFrameRendered:info:withFrameInfo:)); +/** + * + * @type callback + * @brief 订阅端接收并解码远端视频流首帧后,收到此回调。包含以下情况:
    + * 1. 发布端发布视频,包含首次发布和取消后再次发布。
    + * 2. 发布端关闭视频采集后,再次打开采集。使用外部源时,停止推流后再次推流。
    + * 3. 发布端发布视频后,订阅端取消订阅视频后,又再次订阅视频。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @note + * - 对于主流,进入房间后,仅在发布端第一次发布的时候,订阅端会收到该回调,此后不受重新发布的影响,只要不重新加入房间,就不会再收到该回调。 + * - 对于屏幕流,用户每次重新发布屏幕视频流在订阅端都会重新触发一次该回调。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstRemoteVideoFrameDecoded:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:)); + +/** + * + * @type callback + * @brief 远端视频大小或旋转信息发生改变时,房间内订阅此视频流的用户会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoSizeChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info withFrameInfo:(ByteRTCVideoFrameInfo *_Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoSizeChanged:info:withFrameInfo:)); +/** + * + * @type callback + * @brief 本地视频大小或旋转信息发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalVideoSizeChanged:(ByteRTCVideoSource* _Nullable)videoSource withFrameInfo:(ByteRTCVideoFrameInfo *_Nonnull)frameInfo NS_SWIFT_NAME(rtcEngine(_:onLocalVideoSizeChanged:withFrameInfo:)); +/** + * + * @type callback + * @brief 音频设备状态回调。提示音频采集、音频播放等设备的状态。 + * @param engine ByteRTCEngine 实例 + * @param deviceID 设备 ID + * @param deviceType 设备类型,参看 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType}。 + * @param deviceState 设备状态,参看 ByteRTCMediaDeviceState{@link #ByteRTCMediaDeviceState}。 + * @param deviceError 设备错误类型,参看 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceStateChanged:(NSString*_Nonnull)deviceID + device_type:(ByteRTCAudioDeviceType)deviceType + device_state:(ByteRTCMediaDeviceState)deviceState + device_error:(ByteRTCMediaDeviceError)deviceError; +/** + * + * @type callback + * @brief 视频设备状态发生改变回调。当设备的视频状态发生改变时,SDK 会触发该回调,提示摄像头视频采集、屏幕视频采集等设备的状态。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine}。 + * @param deviceID 设备 ID + * @param deviceType 设备类型,参看 ByteRTCVideoDeviceType{@link #ByteRTCVideoDeviceType}。 + * @param deviceState 设备状态,参看 ByteRTCMediaDeviceState{@link #ByteRTCMediaDeviceState}。 + * @param deviceError 设备错误类型,参看 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}。 + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onVideoDeviceStateChanged:(NSString*_Nonnull)deviceID + device_type:(ByteRTCVideoDeviceType)deviceType + device_state:(ByteRTCMediaDeviceState)deviceState + device_error:(ByteRTCMediaDeviceError)deviceError; +/** + * + * @type callback + * @brief 音频设备警告回调。音频设备包括音频采集设备和音频渲染设备。 + * @param engine ByteRTCEngine 对象 + * @param deviceId 设备 ID + * @param deviceType 参看 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType} + * @param deviceWarning 参看 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning} + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioDeviceWarning:(NSString*_Nonnull)deviceId + deviceType:(ByteRTCAudioDeviceType)deviceType + deviceWarning:(ByteRTCMediaDeviceWarning)deviceWarning; +/** + * + * @type callback + * @brief 视频设备警告回调。视频设备包括视频采集设备。 + * @param engine ByteRTCEngine 对象 + * @param deviceId 设备 ID + * @param deviceType 参看 ByteRTCVideoDeviceType{@link #ByteRTCVideoDeviceType} + * @param deviceWarning 参看 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning} + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onVideoDeviceWarning:(NSString*_Nonnull)deviceId + deviceType:(ByteRTCVideoDeviceType)deviceType + deviceWarning:(ByteRTCMediaDeviceWarning)deviceWarning; +/** + * + * @type callback + * @brief 本地音频首帧发送状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 流 ID + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 本地用户信息,详见 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧发送状态,详见 ByteRTCFirstFrameSendState{@link #ByteRTCFirstFrameSendState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioFrameSendStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFrameSendState)state; +/** + * + * @type callback + * @brief 视频首帧发送状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 视频流 ID + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 本地用户信息,详见 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧发送状态,详见 ByteRTCFirstFrameSendState{@link #ByteRTCFirstFrameSendState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onVideoFrameSendStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFrameSendState)state; +/** + * + * @type callback + * @brief 音频首帧播放状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 音频流 ID + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 音频流来源的用户信息,参看 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧播放状态,参看 ByteRTCFirstFramePlayState{@link #ByteRTCFirstFramePlayState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioFramePlayStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFramePlayState)state; +/** + * + * @type callback + * @brief 远端视频流的首帧播放状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 视频流 ID + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param user 视频流来源的用户信息,参看 ByteRTCUser{@link #ByteRTCUser} + * @param state 首帧播放状态,参看 ByteRTCFirstFramePlayState{@link #ByteRTCFirstFramePlayState} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onVideoFramePlayStateChanged:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + rtcUser:(ByteRTCUser *_Nonnull)user state:(ByteRTCFirstFramePlayState)state; +#pragma mark - Media Stream Delegate Methods + +/** + * + * @type callback + * @brief 发布音频流时,采集到第一帧音频帧,收到该回调。 + * @param engine ByteRTCEngine 对象 + * @param audioSource 预留参数 + * @note 如果发布音频流时,未开启本地音频采集,SDK 会推送静音帧,也会收到此回调。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onFirstLocalAudioFrame:(ByteRTCAudioSource* _Nullable)audioSource; +#pragma mark - Media Device Delegate Methods +/** + * + * @hidden(macOS) + * @type callback + * @brief 音频播放路由变化时,收到该回调。 + * @param engine `ByteRTCEngine` 实例 + * @param device 新的音频播放路由,详见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute} + * @note 插拔音频外设,或调用 setAudioRoute:{@link #ByteRTCEngine#setAudioRoute:} 都可能触发音频路由切换,详见[移动端设置音频路由](https: + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onAudioRouteChanged:(ByteRTCAudioRoute)device; +#pragma mark custom message Delegate Methods + +/** + * + * @type callback + * @brief 收到通过调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 发送带有 SEI 消息的视频帧时,收到此回调。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param message 收到的 SEI 消息内容 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSEIMessageReceived:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info andMessage:(NSData* _Nonnull)message; +/** + * + * @type callback + * @brief 黑帧视频流发布状态回调。
    + * 在语音通话场景下,本地用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 通过黑帧视频流发送 SEI 数据时,流的发送状态会通过该回调通知远端用户。
    + * 你可以通过此回调判断携带 SEI 数据的视频帧为黑帧,从而不对该视频帧进行渲染。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param eventType 黑帧视频流状态,参看 ByteRTCSEIStreamEventType{@link #ByteRTCSEIStreamEventType} + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSEIStreamUpdate:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info eventType:(ByteRTCSEIStreamEventType)eventType; +/** + * + * @type callback + * @brief 音频流同步信息回调。可以通过此回调,在远端用户调用 sendStreamSyncInfo:config:{@link #ByteRTCEngine#sendStreamSyncInfo:config:} 发送音频流同步消息后,收到远端发送的音频流同步信息。 + * @param engine 当前 ByteRTCEngine 实例。 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param streamType 媒体流类型,详见 ByteRTCSyncInfoStreamType{@link #ByteRTCSyncInfoStreamType} 。 + * @param data 消息内容。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onStreamSyncInfoReceived:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info streamType:(ByteRTCSyncInfoStreamType)streamType data:(NSData* _Nonnull)data; +#pragma mark - Statistics Delegate Methods + +/** + * + * @type callback + * @brief 报告当前设备 cpu 与 memory 使用率,每 2s 触发一次。 + * @param engine ByteRTCEngine 对象 + * @param stats cpu 和 memory 使用率信息,详见 ByteRTCSysStats{@link #ByteRTCSysStats} 数据类型 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSysStats:(const ByteRTCSysStats * _Nonnull)stats NS_SWIFT_NAME(rtcEngine(_:onSysStats:)); +/** + * + * @type callback + * @brief 本地音频流的状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param audioSource 预留参数 + * @param state 本地音频设备的当前状态,详见 ByteRTCLocalAudioStreamState{@link #ByteRTCLocalAudioStreamState} + * @param error 本地音频流状态改变时的错误码,详见 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalAudioStateChanged:(ByteRTCAudioSource* _Nullable)audioSource + state:(ByteRTCLocalAudioStreamState)state + error:(ByteRTCLocalAudioStreamError)error; +/** + * + * @type callback + * @brief 订阅的远端音频流状态发生改变时,收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 远端音频流的当前状态,详见 ByteRTCRemoteAudioState{@link #ByteRTCRemoteAudioState} + * @param reason 远端音频流状态改变的原因,详见 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteAudioStateChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCRemoteAudioState)state + reason:(ByteRTCRemoteAudioStateChangeReason)reason; +/** + * + * @type callback + * @brief 本地视频流的状态发生改变时,收到该事件。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param state 本地视频流的当前状态,参看 ByteRTCLocalVideoStreamState{@link #ByteRTCLocalVideoStreamState} + * @param error 本地视频状态改变时的错误码,参看 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} + * @list 视频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalVideoStateChanged:(ByteRTCVideoSource* _Nullable)videoSource + withStreamState:(ByteRTCLocalVideoStreamState)state + withStreamError:(ByteRTCLocalVideoStreamError)error NS_SWIFT_NAME(rtcEngine(_:onLocalVideoStateChanged:withStreamState:withStreamError:)); +/** + * + * @type callback + * @brief 远端视频流的状态发生改变时,房间内订阅此流的用户会收到该事件。 + * @param engine ByteRTCEngine 对象 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 远端视频流的当前状态,参看 ByteRTCRemoteVideoState{@link #ByteRTCRemoteVideoState} + * @param reason 远端视频流状态改变的原因,参看 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} + * @note 本回调仅适用于主流,不适用于屏幕流。 + * @list 音视频传输 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoStateChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + withVideoState:(ByteRTCRemoteVideoState)state + withVideoStateReason:(ByteRTCRemoteVideoStateChangeReason)reason NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoStateChanged:info:withVideoState:withVideoStateReason:)); +/** + * + * @hidden not available on iOS + * @valid since 3.54 + * @type callback + * @brief 远端视频流的超分状态发生改变时,房间内订阅此流的用户会收到该回调。 + * @param engine `ByteRTCEngine` 实例 + * @param streamId 远端流 ID。 + * @param info 远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param mode 超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + * @param reason 超分模式改变原因,参看 ByteRTCVideoSuperResolutionModeChangedReason{@link #ByteRTCVideoSuperResolutionModeChangedReason}。 + * @list 视频处理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteVideoSuperResolutionModeChanged:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info + withMode:(ByteRTCVideoSuperResolutionMode)mode + withReason:(ByteRTCVideoSuperResolutionModeChangedReason)reason NS_SWIFT_NAME(rtcEngine(_:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:)); +/** + * + * @valid since 3.54 + * @hidden not available on iOS + * @type callback + * @brief 降噪模式状态变更回调。当降噪模式的运行状态发生改变,SDK 会触发该回调,提示用户降噪模式改变后的运行状态及状态发生改变的原因。 + * @param engine `ByteRTCEngine` 实例 + * @param mode 视频降噪模式,参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode}。 + * @param reason 视频降噪模式改变的原因,参看 ByteRTCVideoDenoiseModeChangedReason{@link #ByteRTCVideoDenoiseModeChangedReason}。 + * @list 视频处理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine + onVideoDenoiseModeChanged:(ByteRTCVideoDenoiseMode)mode + withReason:(ByteRTCVideoDenoiseModeChangedReason)reason NS_SWIFT_NAME(rtcEngine(_:onVideoDenoiseModeChanged:withReason:)); + +#pragma mark - Rtm +/** + * + * @type callback + * @brief 登录结果回调 + * @param engine ByteRTCEngine 对象 + * @param uid
    + * 登录用户 ID + * @param errorCode
    + * 登录结果
    + * 详见 ByteRTCLoginErrorCode{@link #ByteRTCLoginErrorCode}。 + * @param elapsed
    + * 从调用 login:uid:{@link #ByteRTCEngine#login:uid:} 接口开始到返回结果所用时长。
    + * 单位为 ms。 + * @note 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLoginResult:(NSString * _Nonnull)uid errorCode:(ByteRTCLoginErrorCode)errorCode elapsed:(NSInteger)elapsed; +/** + * + * @type callback + * @brief 登出结果回调 + * @param engine ByteRTCEngine 对象 + * @param reason 用户登出的原因,参看 ByteRTCLogoutReason{@link #ByteRTCLogoutReason} + * @note 在以下两种情况下会收到此回调:调用 logout{@link #ByteRTCEngine#logout} 接口主动退出;或其他用户以相同 UserId 进行 `login` 导致本地用户被动登出。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLogout:(ByteRTCLogoutReason)reason; +/** + * + * @type callback + * @brief 设置应用服务器参数的返回结果 + * @param engine ByteRTCEngine 对象 + * @param errorCode
    + * 设置结果
    + * - 返回 200,设置成功 + * - 返回其他,设置失败,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note 调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onServerParamsSetResult:(NSInteger)errorCode; +/** + * + * @type callback + * @brief 查询对端或本端用户登录状态的返回结果 + * @param engine ByteRTCEngine 对象 + * @param peerUserId
    + * 需要查询的用户 ID + * @param status
    + * 查询的用户登录状态
    + * 详见 ByteRTCUserOnlineStatus{@link #ByteRTCUserOnlineStatus}. + * @note 必须先调用 getPeerOnlineStatus:{@link #ByteRTCEngin e#getPeerOnlineStatus:},才能收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onGetPeerOnlineStatus:(NSString * _Nonnull)peerUserId status:(ByteRTCUserOnlineStatus)status; +/** + * + * @type callback + * @brief > 该接口将于 3.64 rtcEngine:onUserMessageReceivedOutsideRoom:uid:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageReceivedOutsideRoom:uid:message:} 代替。 + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 发来的文本消息时,会收到此回调 + * @param engine ByteRTCEngine 对象。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageReceivedOutsideRoom:(NSString * _Nonnull)uid message:(NSString * _Nonnull)message; +/** + * + * @type callback + * @brief > 该接口将于 3.64 rtcEngine:onUserBinaryMessageReceivedOutsideRoom:uid:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserBinaryMessageReceivedOutsideRoom:uid:message:} 代替。 + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发来的二进制消息时,会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserBinaryMessageReceivedOutsideRoom:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message; +/** + * + * @type callback + * @brief 收到房间外用户调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 发来的文本消息时,会收到此回调 + * @param engine ByteRTCEngine 对象。 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageReceivedOutsideRoom:(NSInteger)msgid uid:(NSString * _Nonnull)uid message:(NSString * _Nonnull)message; +/** + * + * @type callback + * @brief 收到房间外用户调用 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发来的二进制消息时,会收到此回调。 + * @param engine ByteRTCEngine 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserBinaryMessageReceivedOutsideRoom:(NSInteger)msgid uid:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message; +/** + * + * @type callback + * @brief 给房间外指定的用户发送消息的回调 + * @param engine ByteRTCEngine 对象 + * @param msgid
    + * 本条消息的 ID
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error
    + * 消息发送结果
    + * 详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult}。 + * @note 当调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 或 sendUserBinaryMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserBinaryMessageOutsideRoom:message:config:} 发送消息后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onUserMessageSendResultOutsideRoom:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; +/** + * + * @type callback + * @brief 给应用服务器发送消息的回调。 + * @param engine ByteRTCEngine 对象。 + * @param msgid 本条消息的 ID。
    + * 所有的 P2P 和 P2Server 消息共用一个 ID 序列。 + * @param error 消息发送结果。详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult}。 + * @param message 应用服务器收到 HTTP 请求后,在 ACK 中返回的信息。消息不超过 64 KB。 + * @note 本回调为异步回调。当调用 sendServerMessage:{@link #ByteRTCEngin e#sendServerMessage:} 或 sendServerBinaryMessage:{@link #ByteEngin e#sendServerBinaryMessage:} 接口发送消息后,会收到此回调。 + * @list 消息 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onServerMessageSendResult:(int64_t)msgid error:(ByteRTCUserMessageSendResult)error message:(NSData * _Nonnull)message; +#pragma mark - Network Probe Methods +/** + * + * @type callback + * @brief 通话前网络探测结果的回调。
    + * 成功调用 startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:{@link #ByteRTCEngine#startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:} 接口开始探测后,会在 3s 内首次收到该回调,之后每 2s 收到一次该回调。 + * @param engine ByteRTCEngine 对象 + * @param type 探测网络类型为上行/下行 + * @param quality 探测网络的质量,参看 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + * @param rtt 探测网络的 RTT,单位:ms + * @param lostRate 探测网络的丢包率 + * @param bitrate 探测网络的带宽,单位:kbps + * @param jitter 探测网络的抖动,单位:ms + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkDetectionResult:(ByteRTCNetworkDetectionLinkType)type quality:(ByteRTCNetworkQuality)quality rtt:(int)rtt lostRate:(double)lostRate bitrate:(int)bitrate jitter:(int)jitter; +/** + * + * @type callback + * @brief 通话前网络探测结束
    + * 以下情况将停止探测并收到一次本回调:
    + * 1. 当调用 stopNetworkDetection{@link #ByteRTCEngine#stopNetworkDetection} 接口停止探测后,会收到一次该回调;
    + * 2. 当收到远端/本端音频首帧后,停止探测;
    + * 3. 当探测超过 3 分钟后,停止探测;
    + * 4. 当探测链路断开一定时间之后,停止探测。 + * @param engine ByteRTCEngine 对象 + * @param errorCode
    + * 停止探测的原因类型,参考 ByteRTCNetworkDetectionStopReason{@link #ByteRTCNetworkDetectionStopReason} + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onNetworkDetectionStopped:(ByteRTCNetworkDetectionStopReason)errorCode; +#pragma mark - Log Delegate Methods + +/** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @type callback + * @brief SDK 内部日志回调。
    + * SDK 内部运行时,会把日志回调给业务方,方便排查问题。 + * @param engine ByteRTCEngine 对象。 + * @param dict 日志内容。 + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine log:(NSDictionary* _Nonnull)dict; +#pragma mark Audio Mix Delegate Methods + +/** + * + * @type callback + * @brief 混音音频文件播放进度回调 + * @param engine 当前 RTC SDK 对象 + * @param mixId 混音 ID + * @param progress 当前混音音频文件播放进度,单位毫秒 + * @note 调用 start:filePath:config: 将 ByteRTCAudioEffectPlayerConfig 中的时间间隔设为大于 0 的值后,SDK 会按照设置的时间间隔回调该事件。 + * @list 混音 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onAudioMixingPlayingProgress:(NSInteger)mixId progress:(int64_t) progress; +#pragma mark Performance Delegate Methods + +/** + * + * @type callback + * @brief 本地未通过 setPublishFallbackOption:{@link #ByteRTCEngine#setPublishFallbackOption:} 开启发布性能回退,检测到设备性能不足时,收到此回调。
    + * 本地通过 setPublishFallbackOption:{@link #ByteRTCEngine#setPublishFallbackOption:} 开启发布性能回退,因设备性能/网络原因,造成发布性能回退/恢复时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param streamId 流 ID + * @param info 流信息, 参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param mode 指示本地是否开启发布回退功能。参看 ByteRTCPerformanceAlarmMode{@link #ByteRTCPerformanceAlarmMode}
    + * - 当发布端未开启发布性能回退时,mode 值为 ByteRTCPerformanceAlarmModeNormal。 + * - 当发布端开启发布性能回退时,mode 值为 ByteRTCPerformanceAlarmModeSimulcast。 + * @param reason 告警原因,参看 ByteRTCPerformanceAlarmReason{@link #ByteRTCPerformanceAlarmReason} + * @param data 性能回退相关数据,详见 ByteRTCSourceWantedData{@link #ByteRTCSourceWantedData}。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onPerformanceAlarms:(NSString* _Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + mode:(ByteRTCPerformanceAlarmMode)mode + reason:(ByteRTCPerformanceAlarmReason)reason + sourceWantedData:(ByteRTCSourceWantedData *_Nonnull)data; +/** + * + * @type callback + * @brief 音视频流因网络环境变化等原因发生回退,或从回退中恢复时,触发该回调。 + * @param engine 当前 ByteRTCEngine 实例 + * @param streamId 流 ID + * @param info 流信息, 参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param event 流切换信息。详见 ByteRTCRemoteStreamSwitchEvent{@link #ByteRTCRemoteStreamSwitchEvent}。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onSimulcastSubscribeFallback:(NSString* _Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info event:(ByteRTCRemoteStreamSwitchEvent *_Nonnull)event; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden + * @type callback + * @brief 外部采集时,调用 setOriginalScreenVideoInfo:withOriginalCaptureHeight: 设置屏幕或窗口大小改变前的分辨率后,若屏幕采集模式为智能模式,你将收到此回调,根据 RTC 智能决策合适的帧率和分辨率积(宽*高)重新采集。 + * @param engine 参看 ByteRTCEngine{@link #ByteRTCEngine} + * @param frameUpdateInfo RTC 智能决策后合适的帧率和分辨率积(宽*高)。参看 ByteRTCFrameUpdateInfo{@link #ByteRTCFrameUpdateInfo}。 + * @list Network Processing + */ + +- (void)rtcEngine: (ByteRTCEngine* _Nonnull)engine onExternalScreenFrameUpdate: (ByteRTCFrameUpdateInfo* _Nullable)frameUpdateInfo; +#endif +#pragma mark FileRecording related callback +/** + * + * @type callback + * @brief 获取本地录制状态回调。
    + * 该回调由 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 或 stopFileRecording:{@link #ByteRTCEngine#stopFileRecording:} 触发。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param state 录制状态,参看 ByteRTCRecordingState{@link #ByteRTCRecordingState} + * @param errorCode 录制错误码,参看 ByteRTCRecordingErrorCode{@link #ByteRTCRecordingErrorCode} + * @param recordingInfo 录制文件的详细信息,参看 ByteRTCRecordingInfo{@link #ByteRTCRecordingInfo} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onRecordingStateUpdate:(ByteRTCVideoSource* _Nullable)videoSource + state:(ByteRTCRecordingState)state + error_code:(ByteRTCRecordingErrorCode)errorCode + recording_info:(ByteRTCRecordingInfo* _Nonnull)recordingInfo; + +/** + * + * @type callback + * @brief 本地录制进度回调。
    + * 该回调由 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 触发,录制状态正常时,系统每秒钟都会通过该回调提示录制进度。 + * @param engine ByteRTCEngine 对象 + * @param videoSource 预留参数 + * @param process 录制进度,参看 ByteRTCRecordingProgress{@link #ByteRTCRecordingProgress} + * @param recordingInfo 录制文件的详细信息,参看 ByteRTCRecordingInfo{@link #ByteRTCRecordingInfo} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onRecordingProgressUpdate:(ByteRTCVideoSource* _Nullable)videoSource + process:(ByteRTCRecordingProgress* _Nonnull)process + recording_info:(ByteRTCRecordingInfo* _Nonnull)recordingInfo; +/** + * + * @type callback + * @brief 调用 startAudioRecording:{@link #ByteRTCEngine#startAudioRecording:} 或者 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 改变音频文件录制状态时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param state 录制状态,参看 ByteRTCAudioRecordingState{@link #ByteRTCAudioRecordingState} + * @param errorCode 录制错误码,参看 ByteRTCAudioRecordingErrorCode{@link #ByteRTCAudioRecordingErrorCode} + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine + onAudioRecordingStateUpdate:(ByteRTCAudioRecordingState)state + error_code:(ByteRTCAudioRecordingErrorCode)errorCode; +/** + * + * @deprecated since 3.60, use rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} instead. + * @type callback + * @brief WTN 流发布结果回调。
    + * 调用 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:}
    + * 接口或直接在服务端启动推 WTN 流功能后,你会通过此回调收到启动结果和推流过程中的错误。 + * @param engine engine 实例 + * @param roomId 发布 WTN 流的房间 ID + * @param streamId WTN 流 ID。 + * @param errorCode WTN 流发布结果状态码。 详见 ByteRTCPublicStreamErrorCode{@link #ByteRTCPublicStreamErrorCode}。 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onPushPublicStreamResult:(NSString *_Nonnull)roomId + publicStreamId:(NSString *_Nonnull)streamId + errorCode:(ByteRTCPublicStreamErrorCode)errorCode; +/** + * + * @type callback + * @brief 调用 startCloudProxy:{@link #ByteRTCEngine#startCloudProxy:} 开启云代理,SDK 首次成功连接云代理服务器时,回调此事件。 + * @param engine `ByteRTCEngine` 实例 + * @param interval 从开启云代理到连接成功经过的时间,单位为 ms + * @list 通话加密 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onCloudProxyConnected:(NSInteger)interval; +/** + * + * @type callback + * @brief 关于音视频回路测试结果的回调。 + * @param engine `ByteRTCEngine` 实例 + * @param result 测试结果,参看 ByteRTCEchoTestResult{@link #ByteRTCEchoTestResult}。 + * @note 该回调触发的时机包括:
    + * - 检测过程中采集设备发生错误时; + * - 检测成功后; + * - 非设备原因导致检测过程中未接收到音/视频回放,停止检测后。 + * @list 网络管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEchoTestResult:(ByteRTCEchoTestResult)result NS_SWIFT_NAME(rtcEngine(_:onEchoTestResult:)); +/** + * + * @hidden for internal use only + * @type callback + * @brief 音频 dump 状态回调。 + * @param engine `ByteRTCEngine` 实例 + * @param status 音频 dump 状态,参看 ByteRTCAudioDumpStatus{@link #ByteRTCAudioDumpStatus}。 + * @note 本回调用于内部排查音质相关异常问题,开发者无需关注。 + * @list Network Processing + */ + +- (void)rtcEngine: (ByteRTCEngine* _Nonnull)engine onAudioDumpStateChanged: (ByteRTCAudioDumpStatus)status; +/** + * + * @type callback + * @brief 首次调用 getNetworkTimeInfo{@link #ByteRTCEngine#getNetworkTimeInfo} 后,SDK 内部启动网络时间同步,同步完成时会触发此回调。 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @list 网络管理 + */ + +- (void)rtcEngineOnNetworkTimeSynchronized:(ByteRTCEngine *_Nonnull)engine; +/** + * + * @hidden internal use only + * @type callback + * @brief license 过期时间提醒 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @param days 过期时间天数 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLicenseWillExpire:(NSInteger)days; +/** + * + * @type callback + * @brief AIGC(AI 音视频互动方案)使用 License 计费的场景下,当 License 配额用尽时,会收到该回调。收到该回调时,AIGC 服务会中止,请及时续费,并且建议离开房间、销毁 SDK。 + * @param engine ByteRTCEngine{@link #ByteRTCEngine} 对象 + * @param message 回调消息 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLicenseQuotaExceeded:(NSString *_Nullable)message; +/** + * + * @type callback + * @brief 通话前回声检测结果回调。 + * @param engine `ByteRTCEngine` 实例 + * @param result 参见 ByteRTCHardwareEchoDetectionResult{@link #ByteRTCHardwareEchoDetectionResult}。 + * @note + * - 通话前调用 startHardwareEchoDetection:{@link #ByteRTCEngine#startHardwareEchoDetection:} 后,将触发本回调返回检测结果。 + * - 建议在收到检测结果后,调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * - 如果 SDK 在通话中检测到回声,将通过 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调 `ByteRTCMediaDeviceWarningDetectLeakEcho`。 + * @list 音频管理 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onHardwareEchoDetectionResult:(ByteRTCHardwareEchoDetectionResult)result NS_SWIFT_NAME(rtcEngine(_:onHardwareEchoDetectionResult:)); +/** + * + * @type callback + * @brief 本地代理状态发生改变回调。调用 setLocalProxy:{@link #ByteRTCEngin e#setLocalProxy:} 设置本地代理后,SDK 会触发此回调,返回代理连接的状态。 + * @param engine `ByteRTCEngine` 实例 + * @param type 本地代理类型。参看 ByteRTCLocalProxyType{@link #ByteRTCLocalProxyType} 。 + * @param state 本地代理状态。参看 ByteRTCLocalProxyState{@link #ByteRTCLocalProxyState}。 + * @param error 本地代理错误。参看 ByteRTCLocalProxyError{@link #ByteRTCLocalProxyError}。 + * @list 通话加密 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onLocalProxyStateChanged:(ByteRTCLocalProxyType)type withProxyState:(ByteRTCLocalProxyState)state withProxyError:(ByteRTCLocalProxyError)error; +/** + * + * @hidden internal use only + * @type callback + * @brief 当特效设置失败时,收到此回调。 + * @param engine `ByteRTCEngine` 实例 + * @param error 特效错误类型。参看 ByteRTCEffectErrorType{@link #ByteRTCEffectErrorType}。 + * @param msg 错误信息。 + * @list Encryption + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEffectError:(ByteRTCEffectErrorType)error msg:(NSString * _Nonnull)msg; +#pragma mark - CDN/WTN +/** + * + * @valid since 3.60. 自 3.60 起,该回调替代了 `onStreamMixingEvent:taskId:error:mixType:` 和 `rtcEngine:onPushPublicStreamResult:publicStreamId:errorCode:` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此回调。 + * @hidden(Linux) + * @type callback + * @brief 合流转推 CDN / WTN 流状态回调 + * @param engine ByteRTCEngine 对象。 + * @param event 任务事件,参看 ByteRTCMixedStreamTaskEvent{@link #ByteRTCMixedStreamTaskEvent}。 + * @param info 任务详情,参看 ByteRTCMixedStreamTaskInfo{@link #ByteRTCMixedStreamTaskInfo}。 + * @param errorCode 任务错误码,参看 ByteRTCMixedStreamTaskErrorCode{@link #ByteRTCMixedStreamTaskErrorCode}。 + * @list CDN 推流 + * @order 0 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onMixedStreamEvent:(ByteRTCMixedStreamTaskEvent)event withMixedStreamInfo:(ByteRTCMixedStreamTaskInfo*)info withErrorCode:(ByteRTCMixedStreamTaskErrorCode)errorCode; + /** + * + * @valid since 3.60. + * @type callback + * @brief 单流转推 CDN 状态回调。 + * @param engine ByteRTCEngine 对象。 + * @param event 任务状态, 参看 ByteRTCSingleStreamTaskEvent{@link #ByteRTCSingleStreamTaskEvent}。 + * @param taskId 任务 ID。 + * @param errorCode 错误码,参看 ByteRTCSingleStreamTaskErrorCode{@link #ByteRTCSingleStreamTaskErrorCode}。 + * @list CDN 推流 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onSingleStreamEvent:(ByteRTCSingleStreamTaskEvent)event withTaskId:(NSString*)taskId withErrorCode:(ByteRTCSingleStreamTaskErrorCode)errorCode; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流音频首帧回调 + * @param taskId 任务 ID + * @list CDN 推流 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onEffectError:(ByteRTCEffectErrorType)error msg:(NSString * _Nonnull)msg; +/** + * + * @type callback + * @valid since 3.60. + * @brief 调用 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath:} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param engine ByteRTCEngine 对象。 + * @param streamId 被截图的视频流 ID。 + * @param info 视频流信息,参考 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param filePath 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param errorCode 截图错误码。参看 ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode}。 + * @param taskId 截图任务的编号,和 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath:} 的返回值一致。 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onRemoteSnapshotTakenToFile:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info filePath:(NSString * _Nonnull)filePath width:(NSInteger)width height:(NSInteger)height errorCode:(ByteRTCSnapshotErrorCode)errorCode taskId:(NSInteger)taskId; +/** + * + * @type callback + * @valid since 3.60. + * @brief 调用 takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile:} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 + * @param engine ByteRTCEngine 对象。 + * @param videoSource 预留参数 + * @param filePath 截图文件的保存路径。 + * @param width 截图图像的宽度。单位:像素。 + * @param height 截图图像的高度。单位:像素。 + * @param errorCode 截图错误码。参看 ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode}。 + * @param taskId 截图任务的编号,和 takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile:} 的返回值一致。 + * @list 高级功能 + */ + +- (void)rtcEngine:(ByteRTCEngine *_Nonnull)engine onLocalSnapshotTakenToFile:(ByteRTCVideoSource* _Nullable)videoSource filePath:(NSString * _Nonnull)filePath width:(NSInteger)width height:(NSInteger)height errorCode:(ByteRTCSnapshotErrorCode)errorCode taskId:(NSInteger)taskId; + +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流视频首帧回调 + * @param taskId 任务 ID + * @list CDN 推流 + */ + + - (void)rtcEngine:(ByteRTCEngine* _Nonnull)engine onClientMixedFirstVideoFrame:(NSString *)taskId; +/** + * + * @hidden internal use only + * @valid since 3.60. + * @type callback + * @brief 试验性接口回调 + * @param param 回调内容(JSON string) + * @list 引擎管理 + */ + +- (void)rtcEngine:(ByteRTCEngine * _Nonnull)engine onExperimentalCallback:(NSString * _Nonnull) param; +@end +#pragma mark - RTCEngine +/** + * + * @type api + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEngine : NSObject +/** + * + * @type callback + */ + +@property (nonatomic, weak) id _Nullable delegate; +/** + * @hidden + * @deprecated + */ + +@property (nonatomic, weak) id _Nullable monitorDelegate + __deprecated_msg("Will be removed in new version"); + + +/** + * + * @type api + * @brief 创建引擎对象。
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 + * @param config 创建引擎参数配置,详见 ByteRTCEngineConfig{@link #ByteRTCEngineConfig} + * @param delegate SDK 回调给应用层的 delegate,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} + * @return 可用的 ByteRTCEngine{@link #ByteRTCEngine} 实例 + * @list 引擎管理 + */ + ++ (ByteRTCEngine * _Nullable) createRTCEngine:(ByteRTCEngineConfig * _Nonnull) config + delegate:(id _Nullable)delegate; +/** + * + * @hidden internal use only + * @type api + * @brief 创建多实例引擎对象
    + * 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    + * 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 + * @param config 创建引擎参数配置,详见 ByteRTCEngineConfig{@link #ByteRTCEngineConfig} + * @param delegate SDK 回调给应用层的 delegate,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} + * @return + * - RTCVideo:创建成功。返回一个可用的 ByteRTCEngine{@link #ByteRTCEngine} 实例 + * - Null:.so 文件加载失败,创建失败。 + * @note 你应注意保持 handler 的生命周期必须大于 ByteRTCEngine 的生命周期,即 handler 必须在调用 destroyRTCEngine{@link #ByteRTCEngine#destroyRTCEngine} 之后销毁。 + */ + ++ (ByteRTCEngine * _Nullable) createRTCEngineMulti:(ByteRTCEngineConfig * _Nonnull)config + delegate:(id _Nullable)delegate; +/** + * + * @type api + * @brief 销毁由 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * - 可以通过 Objective-C 的 ARC 机制,在 dealloc 时自动触发销毁逻辑 + * @list 引擎管理 + */ + ++ (void)destroyRTCEngine NS_SWIFT_NAME(destroyRTCEngine()); +/** + * + * @hidden internal use only + * @type api + * @brief 销毁由 createRTCEngineMulti:delegate:{@link #ByteRTCEngine#createRTCEngineMulti:delegate:} 所创建的引擎实例,并释放所有相关资源。 + * @note + * - 请确保和需要销毁的 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的业务场景全部结束后,才调用此方法 + * - 该方法在调用之后,会销毁所有和此 ByteRTCEngine{@link #ByteRTCEngine} 实例相关的内存,并且停止与媒体服务器的任何交互 + * - 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + * - 可以通过 Objective-C 的 ARC 机制,在 dealloc 时自动触发销毁逻辑 + * @list 引擎管理 + */ + ++ (void)destroyRTCEngineMulti:(ByteRTCEngine*)engine; +/** + * + * @type api + * @brief 获取 SDK 当前的版本号。 + * @return SDK 当前的版本号。 + * @list 引擎管理 + */ + ++ (NSString * _Nonnull)getSDKVersion; +/** + * + * @type api + * @brief 配置 SDK 本地日志参数,包括日志级别、存储路径、日志文件最大占用的总空间、日志文件名前缀。 + * @param logConfig 本地日志参数,参看 ByteRTCLogConfig{@link #ByteRTCLogConfig}。 + * @return + * - 0:成功。 + * - –1:失败,本方法必须在创建引擎前调用。 + * - –2:失败,参数填写错误。 + * @note 本方法必须在调用 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 之前调用。 + * @list 引擎管理 + */ + ++ (int) setLogConfig:(ByteRTCLogConfig *_Nonnull) logConfig; + +#pragma mark Core Audio Methods + +/** + * + * @type api + * @brief 切换音频采集方式 + * @param type 音频数据源,详见 ByteRTCAudioSourceType{@link #ByteRTCAudioSourceType}。
    + * 默认使用内部音频采集。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法由内部采集切换至自定义采集,SDK 会自动关闭内部采集。然后,调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 推送自定义采集的音频数据到 RTC SDK 用于传输。 + * - 如果你调用此方法由自定义采集切换至内部采集,你必须再调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 手动开启内部采集。 + * @list 自定义流处理 + */ + +- (int)setAudioSourceType:(ByteRTCAudioSourceType) type; +/** + * + * @type api + * @brief 切换音频渲染方式 + * @param type 音频输出类型,详见 ByteRTCAudioRenderType{@link #ByteRTCAudioRenderType}
    + * 默认使用内部音频渲染。音频采集和渲染方式无需对应。 + * @return 方法调用结果:
    + * - =0: 切换成功。 + * - <0:切换失败。 + * @note + * - 进房前后调用此方法均有效。 + * - 如果你调用此方法切换至自定义渲染,调用 pullExternalAudioFrame:{@link #ByteRTCEngine#pullExternalAudioFrame:} 获取音频数据。 + * @list 自定义流处理 + */ + +- (int)setAudioRenderType:(ByteRTCAudioRenderType) type; +/** + * + * @type api + * @brief 开启内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法开启后,本地用户会收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStartAudioCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartAudioCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 若未取得当前设备的麦克风权限,调用该方法后会触发 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调,对应的错误码为 `ByteRTCMediaDeviceError.ByteRTCMediaDeviceErrorDeviceNoPermission = 1`。 + * - 调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 可以关闭音频采集设备,否则,SDK 只会在销毁引擎的时候自动关闭设备。 + * - 由于不同硬件设备初始化响应时间不同,频繁调用 stopAudioCapture{@link #ByteRTCEngine#stopAudioCapture} 和本接口闭麦/开麦可能出现短暂无声问题,建议使用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 实现临时闭麦和重新开麦。 + * - 创建引擎后,无论是否发布音频数据,你都可以调用该方法开启音频采集,并且调用后方可发布音频。 + * - 如果需要从自定义音频采集切换为内部音频采集,你必须先停止发布流,调用 setAudioSourceType:{@link #ByteRTCEngine#setAudioSourceType:} 关闭自定义采集,再调用此方法手动开启内部采集。 + * @list 音频管理 + */ + +- (int)startAudioCapture; + /** + * + * @type api + * @brief 关闭内部音频采集。默认为关闭状态。
    + * 内部采集是指:使用 RTC SDK 内置的音频采集机制进行音频采集。
    + * 调用该方法,本地用户会收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopAudioCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopAudioCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 可以开启音频采集设备。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部音频采集才会停止。 + * @list 音频管理 + */ + +- (int)stopAudioCapture; +/** + * + * @hidden(macOS) + * @valid since 3.60. + * @type api + * @brief 设置音频场景类型。
    + * 选择音频场景后,SDK 会自动根据场景切换对应的音量模式(通话音量/媒体音量)和该场景下的最佳音频配置。
    + * @param audioScenario 音频场景类型,参看 ByteRTCAudioScenarioType{@link #ByteRTCAudioScenarioType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 此接口必须在加入 RTC 房间前调用。 + * - 通话音量更适合通话、会议等对信息准确度更高的场景。通话音量会激活系统硬件信号处理,使通话声音更清晰。同时,音量无法降低到 0。 + * - 媒体音量更适合娱乐场景,因其声音的表现力会更强。媒体音量下,最低音量可以为 0。 + * @list 音频管理 + */ + +- (int)setAudioScenario:(ByteRTCAudioScenarioType)audioScenario; +/** + * + * @type api + * @brief 设置音质档位。
    + * 当所选的 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 中的音频参数无法满足你的场景需求时,调用本接口切换的音质档位。 + * @param audioProfile 音质档位,参看 ByteRTCAudioProfileType{@link #ByteRTCAudioProfileType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法在进房前后均可调用; + * - 支持通话过程中动态切换音质档位。 + * @list 音频管理 + */ + +- (int)setAudioProfile:(ByteRTCAudioProfileType)audioProfile; +/** + * + * @valid since 3.52 + * @type api + * @brief 支持根据业务场景,设置通话中的音频降噪模式。 + * @param ansMode 降噪模式。具体参见 ByteRTCAnsMode{@link #ByteRTCAnsMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该接口进房前后均可调用,可重复调用,仅最后一次调用生效。 + * - 降噪算法包含传统降噪和 AI 降噪。传统降噪主要是抑制平稳噪声,比如空调声、风扇声等。而 AI 降噪主要是抑制非平稳噪声,比如键盘敲击声、桌椅碰撞声等。 + * - 只有以下 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 场景时,调用本接口可以开启 AI 降噪。其余场景的 AI 降噪不会生效。 + * - 游戏语音模式: `ByteRTCRoomProfileGame` + * - 高音质游戏模式: `ByteRTCRoomProfileGameHD` + * - 云游戏模式: `ByteRTCRoomProfileCloudGame` + * - 1 vs 1 音视频通话: `ByteRTCRoomProfileChat` + * - 多端同步播放音视频:`ByteRTCRoomProfileLwTogether` + * - 云端会议中的个人设备:`ByteRTCRoomProfileMeeting` + * - 课堂互动模式:`ByteRTCRoomProfileClassroom` + * - 云端会议中的会议室终端:`ByteRTCRoomProfileMeetingRoom` + * @list 高级功能 + */ + +- (int)setAnsMode:(ByteRTCAnsMode)ansMode; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @valid since 3.51 + * @type api + * @brief 打开/关闭 AGC(Analog Automatic Gain Control)模拟自动增益控制功能。
    + * 开启该功能后,SDK 会自动调节麦克风的采集音量,确保音量稳定。 + * @param enable 是否打开 AGC 功能:
    + * - true: 打开 AGC 功能。 + * - false: 关闭 AGC 功能。 + * @return + * - 0: 调用成功。 + * - -1: 调用失败。 + * @note + * 该方法在进房前后均可调用。如果你需要在进房前使用 AGC 功能,请联系技术支持获得私有参数,传入对应 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 。
    + * 要想在进房后开启 AGC 功能,你需要把 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 设为 `ByteRTCRoomProfileMeeting`、`ByteRTCRoomProfileMeetingRoom` 或`ByteRTCRoomProfileClassroom` 。
    + * AGC 功能生效后,不建议再调用 `setAudioCaptureDeviceVolume:` 来调节设备麦克风的采集音量。 + * @list 音频管理 + */ + +- (int)enableAGC:(BOOL)enable; +#endif +/** + * + * @valid since 3.32 + * @type api + * @brief 设置变声特效类型 + * @param voiceChanger 变声特效类型,参看 ByteRTCVoiceChangerType{@link #ByteRTCVoiceChangerType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 如需使用该功能,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceReverbType:{@link #ByteRTCEngine#setVoiceReverbType:} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + +- (int)setVoiceChangerType:(ByteRTCVoiceChangerType)voiceChanger; +/** + * + * @valid since 3.32 + * @type api + * @brief 设置混响特效类型 + * @param voiceReverb 混响特效类型,参看 ByteRTCVoiceReverbType{@link #ByteRTCVoiceReverbType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 在进房前后都可设置。 + * - 对 RTC SDK 内部采集的音频和自定义采集的音频都生效。 + * - 只对单声道音频生效。 + * - 与 setVoiceChangerType:{@link #ByteRTCEngine#setVoiceChangerType:} 互斥,后设置的特效会覆盖先设置的特效。 + * @list 音频处理 + */ + +- (int)setVoiceReverbType:(ByteRTCVoiceReverbType)voiceReverb; +/** + * + * @type api + * @brief 设置本地采集语音的均衡效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param config 语音均衡效果,参看 ByteRTCVoiceEqualizationConfig{@link #ByteRTCVoiceEqualizationConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 根据奈奎斯特采样率,音频采样率必须大于等于设置的中心频率的两倍,否则,设置不生效。 + * @list 音频处理 + */ + +-(int)setLocalVoiceEqualization:(ByteRTCVoiceEqualizationConfig* _Nonnull)config; +/** + * + * @type api + * @brief 设置本地采集音频的混响效果。包含内部采集和外部采集,但不包含混音音频文件。 + * @param param 混响效果,参看 ByteRTCVoiceReverbConfig{@link #ByteRTCVoiceReverbConfig} + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 调用 enableLocalVoiceReverb:{@link #ByteRTCEngine#enableLocalVoiceReverb:} 开启混响效果。 + * @list 音频处理 + */ + + -(int)setLocalVoiceReverbParam:(ByteRTCVoiceReverbConfig* _Nonnull)param; +/** + * + * @type api + * @brief 开启本地音效混响效果 + * @param enable 是否开启 + * @return + * - 0: 成功。 + * - < 0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 调用 setLocalVoiceReverbParam:{@link #ByteRTCEngine#setLocalVoiceReverbParam:} 设置混响效果。 + * @list 音频处理 + */ + +-(int)enableLocalVoiceReverb:(bool)enable; +/** + * + * @valid since 3.58.1 + * @type api + * @brief 设置是否将采集到的音频信号静音,而不改变本端硬件采集状态。 + * @param mute 是否静音音频采集。
    + * - True:静音(关闭麦克风) + * - False:(默认)开启麦克风 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 macOS 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 方法说明。 + * - 静音后通过 setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume:} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + +- (int)muteAudioCapture: (bool)mute; +/** + * + * @valid since 3.60. + * @type api + * @brief 静音/取消静音屏幕共享时采集的音频。
    + * 调用此方法后,SDK 将发送静音数据来代替真实的屏幕音频数据,不影响本端音频设备的采集状态和 SDK 音频流的采集发布状态。 + * @param mute 是否静音屏幕音频。
    + * - True:静音。远端用户听不到来自你屏幕共享的声音。 + * - False:(默认)取消静音。恢复发送屏幕共享的音频。 + * @return + * - 0:调用成功。 + * - < 0:调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 该方法用于设置是否使用静音数据替换设备采集到的音频数据进行推流,不影响 SDK 音频流的采集发布状态。对于 macOS 平台,如有需要你也可以选择静音整个系统的音频采集,具体参看 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 方法说明。 + * - 静音后通过 setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume:} 调整音量不会取消静音状态,音量状态会保存至取消静音。 + * - 调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 开启音频采集前后,都可以使用此接口设置采集音量。 + * @list 音频管理 + */ + +- (int)muteScreenAudioCapture: (bool)mute; +/** + * + * @type api + * @brief 调节音频采集音量 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0:静音 + * - 100:原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 在开启音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + +- (int)setCaptureVolume: (int)volume; +/** + * + * @type api + * @brief 调节屏幕共享时采集的音频音量。
    + * 只改变音频数据的音量信息,不影响麦克风采集的音量,也不会改变本端音频设备本身的音量。 + * @param volume 采集的音量值和原始音量的百分比,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0, 100]。
    + * + 0:静音 + * + 100:原始音量 + * + 400:最大可为原始音量的 4 倍(自带溢出保护) + * @return + * + 0: 调用成功。
    + * + <0:调用失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 在开启屏幕音频采集前后,你都可以使用此接口设定采集音量。 + * @list 音频管理 + */ + +- (int)setScreenCaptureVolume:(int)volume; +/** + * + * @type api + * @brief 调节本地播放的所有远端用户音频混音后的音量,混音内容包括远端人声、音乐、音效等。
    + * 播放音频前或播放音频时,你都可以使用此接口设定播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,当该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 或 setRemoteRoomAudioPlaybackVolume:{@link #ByteRTCRoom#setRemoteRoomAudioPlaybackVolume:} 共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setPlaybackVolume:(NSInteger)volume; +/** + * + * @type api + * @brief 启用音频信息提示。启用后,你可以收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:},rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume:},和 rtcEngine:onActiveSpeaker:uid:{@link #ByteRTCEngineDelegate#rtcEngine:onActiveSpeaker:uid:}。 + * @param config 详见 ByteRTCAudioPropertiesConfig{@link #ByteRTCAudioPropertiesConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + +- (int)enableAudioPropertiesReport:(ByteRTCAudioPropertiesConfig* _Nonnull)config; + +/** + * + * @type api + * @hidden 3.60 for internal use only + * @region 音频管理 + * @brief 启用音频人声识别能力。开启提示后,你会收到 rtcEngine:onAudioVADStateUpdate。 + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭人声识别能力回调。 + * + `[100, 3000]`: 开启人声识别能力回调,并将信息提示间隔设置为此值。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 音频管理 + */ + +- (int)enableAudioVADReport:(NSInteger)interval; +/** + * + * @hidden 3.60 for internal use only + * @type api + * @region 音频管理 + * @brief 启用AED检测。启用后,你可以收到 rtcEngine:onAudioAEDStateUpdate。 + * @param interval 回调间隔,单位毫秒。
    + * + `<= 0`: 关闭回调。 + * + `[100, 3000]`: 开启回调,并将回调间隔设置为该值。推荐设置为 2000。 + * + 不合法的 interval 值:小于 100 设置为 100,超出 3000 设置为 3000。 + * @return + * + 0:调用成功。 + * + <0:调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 音频管理 + */ + +- (int)enableAudioAEDReport:(NSInteger)interval; + +/** + * + * @type api + * @brief 调节本端播放收到的远端流时的音量。你必须在进房后进行设置。流的发布状态改变不影响设置生效。 + * @param streamId 远端流 ID。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内:
    + * - 当该方法与 setRemoteRoomAudioPlaybackVolume:{@link #ByteRTCRoom#setRemoteRoomAudioPlaybackVolume:} 共同使用时,本地收听用户 A 的音量为后调用的方法设置的音量; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * - 当你调用该方法设置远端流音量后,如果远端退房,接口设置失效。 + * @list 音频管理 + */ + +- (int)setRemoteAudioPlaybackVolume:(NSString* _Nonnull)streamId volume:(int)volume; +/** + * + * @type api + * @brief 开启/关闭耳返功能。 + * @param mode 是否开启耳返功能,参看 ByteRTCEarMonitorMode{@link #ByteRTCEarMonitorMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 使用耳返必须佩戴耳机。为保证低延时耳返最佳体验,建议佩戴有线耳机。 + * - 对于 iOS,仅支持软件耳返功能。 + * - 对于 macOS,耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorMode:(ByteRTCEarMonitorMode)mode; +/** + * + * @type api + * @valid since 3.60. + * @brief 开启/关闭耳返功能,并控制是否对耳返音频应用本地音频处理。 + * @param mode 是否开启耳返功能,参看 ByteRTCEarMonitorMode{@link #ByteRTCEarMonitorMode}。默认关闭。 + * @param filter 是否对耳返音频应用本地音频处理,参看 ByteRTCEarMonitorAudioFilter{@link #ByteRTCEarMonitorAudioFilter}。默认不经过音频处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 耳返功能仅适用于由 RTC SDK 内部采集的音频。 + * - 使用耳返功能必须佩戴耳机。为保证低延时耳返最佳体验,建议佩戴有线耳机。 + * - 对于 iOS,仅支持软件耳返功能。 + * - 对于 macOS,耳返功能仅支持设备通过 3.5mm 接口、USB 接口、或蓝牙方式直连耳机时可以使用。对于通过 HDMI 或 USB-C 接口连接显示器转接耳机,或通过连接 OTG 外接声卡再连接的耳机,不支持耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorMode:(ByteRTCEarMonitorMode)mode filter:(int)filter; +/** + * + * @type api + * @brief 设置耳返的音量。 + * @param volume 耳返的音量,取值范围:[0,100],单位:% + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 设置耳返音量前,你必须先调用 setEarMonitorMode:{@link #ByteRTCEngine#setEarMonitorMode:} 打开耳返功能。 + * @list 高级功能 + */ + +- (int)setEarMonitorVolume:(NSInteger)volume; +/** + * + * @hidden(macOS) + * @type api + * @brief 在纯媒体音频场景下,切换 iOS 设备与耳机之间的蓝牙传输协议。 + * @param mode 蓝牙传输协议。详见 ByteRTCBluetoothMode{@link #ByteRTCBluetoothMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 以下场景你会收到 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调:1)当前不支持设置 HFP;2)非纯媒体音频场景,建议在调用此接口前调用 setAudioScenario:{@link #ByteRTCEngine#setAudioScenario:} 设置纯媒体音频场景。 + * @list 音频管理 + */ + +- (int)setBluetoothMode:(ByteRTCBluetoothMode) mode; +/** + * + * @type api + * @brief 开启本地语音变调功能,多用于 K 歌场景。
    + * 使用该方法,你可以对本地语音的音调进行升调或降调等调整。 + * @param pitch 相对于语音原始音调的升高/降低值,取值范围[-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。
    + * 超出取值范围则设置失败,并且会触发 rtcEngine:onWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onWarning:} 回调,提示 ByteRTCWarningCode{@link #ByteRTCWarningCode} 错误码为 `WARNING_CODE_SET_SCREEN_STREAM_INVALID_VOICE_PITCH` 设置语音音调不合法 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频处理 + */ + +- (int)setLocalVoicePitch:(NSInteger)pitch; +/** + * + * @type api + * @brief 开启/关闭音量均衡功能。
    + * 开启音量均衡功能后,人声的响度会调整为 -16lufs。如果已调用 setAudioMixingLoudness:loudness: 传入了混音音乐的原始响度,此音乐播放时,响度会调整为 -20lufs。 + * @param enable 是否开启音量均衡功能:
    + * - YES: 是 + * - NO: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口须在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 开始播放音频文件之前调用。 + * @list 音频管理 + */ + +- (int)enableVocalInstrumentBalance:(BOOL)enable; +/** + * + * @type api + * @brief 打开/关闭音量闪避功能,适用于在 RTC 通话过程中会同时播放短视频或音乐的场景,如“一起看”等。
    + * 开启该功能后,当检测到远端人声时,RTC 本地的媒体播放音量会自动减弱,从而保证远端人声的清晰可辨;当远端人声消失时,RTC 的本地媒体音量会恢复到闪避前的音量水平。 + * @param enable 是否开启音量闪避:
    + * - YES: 是 + * - NO: 否 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 音频管理 + */ + +- (int)enablePlaybackDucking:(BOOL)enable; +#pragma mark Core Video Methods + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setLocalVideoSink:withLocalRenderConfig:{@link #ByteRTCEngine#setLocalVideoSink:withLocalRenderConfig:} instead. + * @region 自定义视频采集渲染 + * @brief 将本地视频流与自定义渲染器绑定。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param requiredFormat videoSink 适用的视频帧编码格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 如果需要解除绑定,必须将 videoSink 设置为 null。退房时将清除绑定状态。 + * - 一般在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * - 本方法获取的是前处理后的视频帧。 + */ + +- (int)setLocalVideoSink:(id _Nullable)videoSink + withPixelFormat:(ByteRTCVideoSinkPixelFormat)requiredFormat NS_SWIFT_NAME(setLocalVideoSink(withSink:withPixelFormat:)) + __deprecated_msg("Will be removed in new version"); + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 将本地视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate}。 + * @param config 本地视频帧回调配置,参看 ByteRTCLocalVideoSinkConfig{@link #ByteRTCLocalVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 videoSink 设置为 null。 + * - 一般在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调通知完成本地视频首帧采集后,调用此方法为视频流绑定自定义渲染器;然后加入房间。 + * @list 自定义流处理 + */ + +- (int)setLocalVideoSink:(id _Nullable)videoSink + withLocalRenderConfig:(ByteRTCLocalVideoSinkConfig*)config NS_SWIFT_NAME(setLocalVideoSink(withSink:withLocalRenderConfig:)); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @deprecated since 3.57, use setRemoteVideoSink:withSink:withRemoteRenderConfig:{@link #ByteRTCEngine#setRemoteVideoSink:withSink:withRemoteRenderConfig:} instead. + * @region 自定义视频采集渲染 + * @brief 将远端视频流与自定义渲染器绑定。 + * @param streamId 远端流 ID。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param requiredFormat videoSink 适用的视频帧编码格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - RTC SDK 默认使用 RTC SDK 自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取到远端流信息之后,再调用该方法。 + * - 如果需要解除绑定,必须将 videoSink 设置为 null。退房时将清除绑定状态。 + * - 本方法获取的是后处理后的视频帧。 + */ + +- (int)setRemoteVideoSink:(NSString* _Nonnull)streamId + withSink:(id _Nullable)videoSink + withPixelFormat:(ByteRTCVideoSinkPixelFormat)requiredFormat NS_SWIFT_NAME(setRemoteVideoSink(_:withSink:withPixelFormat:)) + __deprecated_msg("Will be removed in new version"); + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 将远端视频流与自定义渲染器绑定。你可以通过参数设置返回指定位置和格式的视频帧数据。 + * @param streamId 远端流 ID。 + * @param videoSink 自定义视频渲染器,参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate}。 + * @param config 远端视频帧回调配置,参看 ByteRTCRemoteVideoSinkConfig{@link #ByteRTCRemoteVideoSinkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - RTC SDK 默认使用自带的渲染器(内部渲染器)进行视频渲染。 + * - 该方法进房前后均可以调用。若想在进房前调用,你需要在加入房间前获取远端流信息;若无法预先获取远端流信息,你可以在加入房间并通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取到远端流信息之后,再调用该方法。 + * - 退房时将清除绑定状态。 + * - 如果需要解除绑定,你必须将 videoSink 设置为 null。 + * @list 自定义流处理 + */ + +- (int)setRemoteVideoSink:(NSString* _Nonnull)streamId + withSink:(id _Nullable)videoSink + withRemoteRenderConfig:(ByteRTCRemoteVideoSinkConfig*)config NS_SWIFT_NAME(setRemoteVideoSink(_:withSink:withRemoteRenderConfig:)); + +/** + * + * @hidden(macOS) for internal use + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置远端视频超分模式。 + * @param streamId 远端流 ID。 + * @param mode 超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + * @return + * - 0: ByteRTCReturnStatusSuccess,SDK 调用成功,并不代表超分模式实际状态,需要根据回调 rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSuperResolutionModeChanged:info:withMode:withReason:} 判断实际状态。 + * - -1: ByteRTCReturnStatusNativeInValid,native library 未加载。 + * - -2: ByteRTCReturnStatusParameterErr,参数非法,指针为空或字符串为空。 + * - -9: ByteRTCReturnStatusScreenNotSupport,不支持对屏幕流开启超分。 + * 其他错误码参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 如需使用该功能,需集成超分插件 ByteRTCVideoSRExtension.xcframework 及依赖库 bmf_mods_shared.xcframework,详情参看[按需集成插件](https: + * - 该方法须进房后调用。 + * - 远端用户视频流的原始分辨率不能超过 640 × 360 px。 + * - 支持对一路远端流开启超分,不支持对多路流开启超分。 + * @list 视频处理 + */ + +- (int)setRemoteVideoSuperResolution:(NSString* _Nonnull)streamId + withMode:(ByteRTCVideoSuperResolutionMode)mode; +/** + * + * @hidden not available on iOS + * @valid since 3.54 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置视频降噪模式。 + * @param mode 视频降噪模式。参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode}。 + * @return + * - 0: API 调用成功。(不适用于 iOS)用户可以根据回调函数 rtcEngine:onVideoDenoiseModeChanged:withReason:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDenoiseModeChanged:withReason:} 判断视频降噪是否开启。 + * - < 0: API 调用失败。 + * @note 如需使用该功能,需集成降噪插件 ByteRTCVideoDenoiseExtension.xcframework 及依赖库 bmf_mods_shared.xcframework,详情参看[按需集成插件](https: + * @list 视频处理 + */ + +- (int)setVideoDenoiser:(ByteRTCVideoDenoiseMode)mode; +/** + * + * @hidden(iOS) + * @valid since 3.57 + * @type api + * @brief 设置视频暗光增强模式。
    + * 对于光线不足、照明不均匀或背光等场景下推荐开启,可有效改善画面质量。 + * @param mode 默认不开启。参看 ByteRTCVideoEnhancementMode{@link #ByteRTCVideoEnhancementMode}。 + * @return + * - 0: API 调用成功。会立即生效,但需要等待下载和检测完成后才能看到增强后的效果。 + * - < 0: API 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 开启后会影响设备性能,应根据实际需求和设备性能决定是否开启。 + * - 对 RTC SDK 内部采集的视频和自定义采集的视频都生效。 + * @list 视频处理 + */ + +- (int)setLowLightAdjusted:(ByteRTCVideoEnhancementMode)mode; + + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本端采集的视频帧的旋转角度。
    + * 当摄像头倒置或者倾斜安装时,可调用本接口进行调整。对于手机等普通设备,可调用 setVideoRotationMode:{@link #ByteRTCEngine#setVideoRotationMode:} 实现旋转。 + * @param rotation 相机朝向角度,默认为 `ByteRTCVideoRotation0`,无旋转角度。详见 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 对于内部采集的视频画面,如果已调用 setVideoRotationMode:{@link #ByteRTCEngine#setVideoRotationMode:} 设置了旋转方向,会在此基础上叠加旋转角度。 + * - 调用本接口也将对自定义采集视频画面生效,在原有的旋转角度基础上叠加本次设置。 + * - 视频贴纸特效或通过 enableVirtualBackground{@link #ByteRTCVideoEffect#enableVirtualBackground:withSource:} 增加的虚拟背景,也会跟随本接口的设置进行旋转。 + * - 本地渲染视频和发送到远端的视频都会相应旋转,但不会应用到单流转推中。如果希望在单流转推的视频中应用旋转,调用 setVideoOrientation:{@link #ByteRTCEngine#setVideoOrientation:}。 + * @list 视频管理 + */ + +- (int)setVideoCaptureRotation:(ByteRTCVideoRotation)rotation; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端设置期望发布的最大分辨率视频流参数,包括分辨率、帧率、码率、网络不佳时的回退策略等(包含摄像头和屏幕的编码配置)。
    + * @param encoderConfig 期望发布的最大分辨率视频流参数。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 自 V3.61 版本,本接口仅设置一路视频流参数。默认状态下只有单流,如需开启多路小流请使用:setLocalSimulcastMode:config:{@link #ByteRTCEngine#setLocalSimulcastMode:config:}。 + * - 调用该方法前,SDK 默认仅发布一路视频流,分辨率为 640px × 360px @15fps,编码偏好为帧率优先。 + * - 使用自定义采集时,必须调用该方法设置编码参数,以保证远端收到画面的完整性。 + * - 该方法设置的参数会同时作用于摄像头采集的视频流和屏幕共享流。在 iOS 端进行屏幕共享时,如果你调用了该方法设置屏幕共享视频流的编码参数,则需要重新启动屏幕采集,否则设置不生效。 + * @list 视频管理 + */ + +- (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig; + +/** + * + * @hidden currently not available + * @brief iOS 和 Mac 不支持 Fov,对齐其他端预留接口。 + */ + +- (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig withParameters:(NSDictionary * _Nullable) parameters; + + /** + * + * @valid since 3.60. + * @type api + * @hiddensdk(audiosdk) + * @brief 发布端开启大小流(simulcast)功能。 + * @param mode 详见 ByteRTCVideoSimulcastMode{@link #ByteRTCVideoSimulcastMode}。默认为只发送单流。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 你应在进房前调用本接口。 + * - 调用该方法前,SDK 默认仅发布一条分辨率为 640px × 360px,帧率为 15fps 的视频流。 + * - 如需自定义小流参数请查看它的重载方法 (int)setVideoEncoderConfig:(ByteRTCVideoEncoderConfig * _Nullable) encoderConfig withParameters:(NSDictionary * _Nullable) parameters。 + * - 该方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + +- (int)setLocalSimulcastMode:(ByteRTCVideoSimulcastMode)mode ; + +/** + * + * @valid since 3.60. + * @type api + * @brief 发布端进行大小流(simulcast)设置。 + * @param mode 详见 ByteRTCVideoSimulcastMode{@link #ByteRTCVideoSimulcastMode}。默认为只发送单流。你应在进房前调用修改本参数。 + * @param streamConfig 小流参数。最多可设置 3 路。分辨率按照从小到大顺序,且每路流参数分辨率需小于大流 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置参数。否则可能会设置失败。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 + * 其余模式下,默认小流参数为 160px × 90px, 码率为 50kbps。 + * @return 方法调用结果:
    + * - 0:成功 + * - !0:失败 + * @note + * - 调用本方法前,SDK 默认仅发布一条分辨率为 640px × 360px @15fps 的视频流。 + * - 本方法适用于摄像头采集的视频流。 + * - 更多信息详见[推送多路流](https: + * @list 网络管理 + */ + +- (int)setLocalSimulcastMode:(ByteRTCVideoSimulcastMode)mode config:(NSArray * _Nullable)streamConfig; + +/** + * + * @hidden(macOS) + * @valid since 3.58 + * @type api + * @brief 开启自定义采集视频帧的 Alpha 通道编码功能。
    + * 适用于需要分离推流端视频主体与背景,且在拉流端可自定义渲染背景的场景。 + * @param alphaLayout 分离后的 Alpha 通道相对于 RGB 通道信息的排列位置。当前仅支持 ByteRTCAlphaLayout.ByteRTCAlphaLayoutTop,即置于 RGB 通道信息上方。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该接口仅作用于自定义采集的 ByteRTCVideoPixelFormat.ByteRTCVideoPixelFormatCVPixelBuffer 格式视频帧。 + * - 该接口须在发布视频流之前调用。 + * - 调用本接口开启 Alpha 通道编码后,你需调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 把自定义采集的视频帧推送至 RTC SDK。若推送了不支持的视频帧格式,则调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 时会返回错误码 ByteRTCReturnStatus.ByteRTCReturnStatusParameterErr。 + * @list 视频管理 + */ + +-(int)enableAlphaChannelVideoEncode:(ByteRTCAlphaLayout)alphaLayout; +/** + * + * @hidden(macOS) + * @valid since 3.58 + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭外部采集视频帧的 Alpha 通道编码功能。 + * @return 方法调用结果:
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 该接口须在停止发布视频流之后调用。 + * @list 视频管理 + */ + +-(int)disableAlphaChannelVideoEncode; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数包括模式、分辨率、帧率。 + * @param captureConfig 视频采集参数。参看: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 前调用本接口。 + * - 建议同一设备上的不同引擎使用相同的视频采集参数。 + * - 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + * @list 视频管理 + */ + +- (int)setVideoCaptureConfig:(ByteRTCVideoCaptureConfig * _Nullable)captureConfig; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地视频渲染时使用的视图,并设置渲染模式。 + * @param canvas 视图信息和渲染模式,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} + * @return + * - 0:成功。 + * - -2: 参数错误。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 你应在加入房间前,绑定本地视图。退出房间后,此设置仍然有效。 + * - 如果需要解除绑定,你可以调用本方法传入空视图。 + * @list 视频管理 + */ + +- (int)setLocalVideoCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setLocalVideoCanvas(withCanvas:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 修改本地视频渲染模式和背景色。 + * @param renderMode 渲染模式。参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + * @param backgroundColor 背景颜色。参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 你可以在本地视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateLocalVideoCanvas:(ByteRTCRenderMode)renderMode + withBackgroundColor:(NSUInteger)backgroundColor NS_SWIFT_NAME(updateLocalVideoCanvas(withBackgroundColor:)); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 渲染来自指定远端用户 uid 的视频流时,设置使用的视图和渲染模式。
    + * 如果需要解除视频的绑定视图,把 `canvas.view` 设置为空。(`canvas` 中其他参数不能为空。) + * @param streamId 远端流 ID。 + * @param canvas 视图信息和渲染模式,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}。3.56 版本起支持通过 `renderRotation` 设置远端视频渲染的旋转角度。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 本地用户离开房间时,会解除调用此 API 建立的绑定关系;远端用户离开房间则不会影响。 + * @list 视频管理 + */ + +- (int)setRemoteVideoCanvas:(NSString* _Nonnull)streamId + withCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setRemoteVideoCanvas(_:withCanvas:)); + +/** + * + * @deprecated since 3.56, and will be deleted in 3.62. Use updateRemoteStreamVideoCanvas:withRemoteVideoRenderConfig:{@link #ByteRTCEngine#updateRemoteStreamVideoCanvas:withRemoteVideoRenderConfig:} instead. + * @type api + * @hiddensdk(audiosdk) + * @brief 修改远端视频帧的渲染设置,包括渲染模式和背景颜色。 + * @param streamId 远端流 ID。 + * @param renderMode 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + * @param backgroundColor 背景颜色,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 你可以在远端视频渲染过程中,调用此接口。调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateRemoteStreamVideoCanvas:(NSString* _Nonnull)streamId + withRenderMode:(ByteRTCRenderMode)renderMode + withBackgroundColor:(NSUInteger)backgroundColor NS_SWIFT_NAME(updateRemoteStreamVideoCanvas(_:withRenderMode:withBackgroundColor:)); + +/** + * + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 SDK 内部渲染时,修改远端视频帧的渲染设置,包括渲染模式、背景颜色和旋转角度。 + * @param streamId 远端流 ID。 + * @param remoteVideoRenderConfig 视频帧渲染设置。具体参看 ByteRTCRemoteVideoRenderConfig{@link #ByteRTCRemoteVideoRenderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 setRemoteVideoCanvas:withCanvas:{@link #ByteRTCEngine#setRemoteVideoCanvas:withCanvas:} 设置了远端视频渲染模式后,你可以调用此接口更新渲染模式、背景颜色、旋转角度的设置。 + * - 该接口可以在远端视频渲染过程中调用,调用结果会实时生效。 + * @list 视频管理 + */ + +- (int)updateRemoteStreamVideoCanvas:(NSString* _Nonnull)streamId + withRemoteVideoRenderConfig:(ByteRTCRemoteVideoRenderConfig * _Nonnull)remoteVideoRenderConfig + NS_SWIFT_NAME(updateRemoteStreamVideoCanvas(_:withRemoteVideoRenderConfig:)); + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStartVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartVideoCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。 + * - 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。 + * - 如果需要从自定义视频采集切换为内部视频采集,你必须先停止发布流,关闭自定义采集,再调用此方法手动开启内部采集。 + * - 内部视频采集使用的摄像头由 switchCamera:{@link #ByteRTCEngine#switchCamera:} 接口指定。(macOS 不支持) + * - 自 v3.37.0 升级版本,你需要在应用中向用户申请摄像头权限后才能开始采集。 + * @list 视频管理 + */ + +- (int)startVideoCapture NS_SWIFT_NAME(startVideoCapture()); + /** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopVideoCapture:info:} 的回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 可以开启内部视频采集。 + * - 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + * @list 视频管理 + */ + +- (int)stopVideoCapture NS_SWIFT_NAME(stopVideoCapture()); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 为采集到的视频流开启镜像 + * @param mirrorType 镜像类型,参看 ByteRTCMirrorType{@link #ByteRTCMirrorType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 切换视频源不影响镜像设置。 + * - 屏幕视频流始终不受镜像设置影响。 + * - 使用外部渲染器时,`mirrorType` 支持设置为 `0`(无镜像)和 `3`(本地预览和编码传输镜像),不支持设置为 `1`(本地预览镜像)。 + * - 该接口调用前,各视频源的初始状态如下: + * + * + * + * + *
    前置摄像头后置摄像头自定义采集视频源 桌面端摄像头
    移动端本地预览镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 本地预览不镜像,编码传输不镜像 /
    桌面端// 本地预览不镜像,编码传输不镜像 本地预览镜像,编码传输不镜像
    + * @list 视频处理 + */ + +- (int)setLocalVideoMirrorType:(ByteRTCMirrorType) mirrorType; + +/** + * + * @valid since 3.57 + * @type api + * @hiddensdk(audiosdk) + * @brief 使用内部渲染时,为远端流开启镜像。 + * @param streamId 远端流 ID。 + * @param mirrorType 远端流的镜像类型,参看 ByteRTCRemoteMirrorType{@link #ByteRTCRemoteMirrorType}。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list 视频处理 + */ + +- (int)setRemoteVideoMirrorType:(NSString* _Nonnull)streamId withMirrorType:(ByteRTCRemoteMirrorType)mirrorType; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置采集视频的旋转模式。默认以 App 方向为旋转参考系。
    + * 接收端渲染视频时,将按照和发送端相同的方式进行旋转。 + * @param rotationMode 视频旋转参考系为 App 方向或重力方向,参看 ByteRTCVideoRotationMode{@link #ByteRTCVideoRotationMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 旋转仅对内部视频采集生效,不适用于外部视频源和屏幕源。 + * - 调用该接口时已开启视频采集,将立即生效;调用该接口时未开启视频采集,则将在采集开启后生效。 + * - 更多信息请参考[视频采集方向](https: + * @list 视频管理 + */ + +- (int)setVideoRotationMode:(ByteRTCVideoRotationMode) rotationMode; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在自定义视频前处理及编码前,设置 RTC 链路中的视频帧朝向,默认为 Adaptive 模式。
    + * 移动端开启视频特效贴纸,或使用自定义视频前处理时,建议固定视频帧朝向为 Portrait 模式。单流转推场景下,建议根据业务需要固定视频帧朝向为 Portrait 或 Landscape 模式。不同模式的具体显示效果参看[视频帧朝向](https: + * @param orientation 视频帧朝向,参看 ByteRTCVideoOrientation{@link #ByteRTCVideoOrientation}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 视频帧朝向设置仅适用于内部采集视频源。对于自定义采集视频源,设置视频帧朝向可能会导致错误,例如宽高对调。屏幕源不支持设置视频帧朝向。 + * - 编码分辨率的更新与视频帧处理是异步操作,进房后切换视频帧朝向可能导致画面出现短暂的裁切异常,因此建议在进房前设置视频帧朝向,且不在进房后进行切换。 + * @list 视频处理 + */ + +- (int)setVideoOrientation:(ByteRTCVideoOrientation) orientation; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 切换视频内部采集时使用的前置/后置摄像头
    + * 调用此接口后,在本地会触发 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @param cameraId 摄像头类型,参看 ByteRTCCameraID{@link #ByteRTCCameraID}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 默认使用前置摄像头。 + * - 如果你正在使用相机进行视频采集,切换操作当即生效;如果相机未启动,后续开启内部采集时,会打开设定的摄像头。 + * @list 视频管理 + */ + +- (int)switchCamera:(ByteRTCCameraID) cameraId; +/** + * + * @type api + * @brief 获取视频特效接口。 + * @return 视频特效接口,参看 ByteRTCVideoEffect{@link #ByteRTCVideoEffect}。 + * @list 视频处理 + */ + +- (ByteRTCVideoEffect* _Null_unspecified)getVideoEffectInterface NS_SWIFT_NAME(getVideoEffectInterface()); +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 开启/关闭基础美颜。 + * @param enable 基础美颜开关
    + * - YES: 开启基础美颜 + * - NO: 关闭基础美颜(默认) + * @return + * - 0: 调用成功。 + * - –1001: RTC SDK 版本不支持此功能。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 本方法不能与高级视频特效接口共用。如已购买高级视频特效,建议参看[集成指南](https: + * - 使用此功能需要集成特效 SDK,建议使用特效 SDK v4.4.2+ 版本。更多信息参看 [Native 端基础美颜](https: + * - 调用 setBeautyIntensity:withIntensity:{@link #ByteRTCEngine#setBeautyIntensity:withIntensity:} 设置基础美颜强度。若在调用本方法前没有设置美颜强度,则使用默认强度。各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * - 本方法仅适用于视频源,不适用于屏幕源。 + * @list 视频处理 + */ + +- (int) enableEffectBeauty:(BOOL)enable; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 调整基础美颜强度。 + * @param beautyMode 基础美颜模式,参看 ByteRTCEffectBeautyMode{@link #ByteRTCEffectBeautyMode}。 + * @param intensity 美颜强度,取值范围为 [0,1]。强度为 0 表示关闭。
    + * 各基础美颜模式的强度默认值分别为:美白 0.7,磨皮 0.8,锐化 0.5,清晰 0.7。 + * @return + * - 0: 调用成功。 + * - –2: `intensity` 范围超限。 + * - –1001: RTC SDK 版本不支持此功能。 + * - <0: 调用失败,特效 SDK 内部错误,具体错误码请参考[错误码表](https: + * @note + * - 若在调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect} 前设置美颜强度,则对应美颜功能的强度初始值会根据设置更新。 + * - 销毁引擎后,美颜功能强度恢复默认值。 + * @list 视频处理 + */ + +- (int) setBeautyIntensity:(ByteRTCEffectBeautyMode) beautyMode + withIntensity:(float)intensity; + +#pragma mark - ICameraControl +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头(前置/后置)的变焦倍数 + * @param zoomRatio 变焦倍数。取值范围是 [1, <最大变焦倍数>]。
    + * 最大变焦倍数可以通过调用 getCameraZoomMaxRatio{@link #ByteRTCEngine#getCameraZoomMaxRatio} 获取。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置摄像头变焦倍数。 + * - 设置结果在调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后失效。 + * - 你可以调用 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置数码变焦参数,调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 进行数码变焦。 + * @list 视频管理 + */ + +- (int) setCameraZoomRatio: (float) zoomRatio; +/** + * + * @hidden(macOS) + * @type api + * @brief 获取当前使用的摄像头(前置/后置)的最大变焦倍数 + * @return 最大变焦倍数 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头最大变焦倍数。 + * @list 视频管理 + */ + +- (float) getCameraZoomMaxRatio; +/** + * + * @hidden(macOS) + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持变焦(数码/光学变焦)。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头变焦能力。 + * @list 视频管理 + */ + +- (bool) isCameraZoomSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 检测当前使用的摄像头(前置/后置),是否支持闪光灯。 + * @return + * - true: 支持 + * - false: 不支持 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测闪光能力。 + * @list 视频管理 + */ + +- (bool) isCameraTorchSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 打开/关闭当前使用的摄像头(前置/后置)的闪光灯 + * @param torchState 打开/关闭。参看 ByteRTCTorchState{@link #ByteRTCTorchState}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置闪光灯。 + * - 设置结果在调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后失效。 + * @list 视频管理 + */ + +- (int) setCameraTorch: (ByteRTCTorchState)torchState; +/** + * + * @hidden(macOS) + * @type api + * @brief 检查当前使用的摄像头是否支持手动对焦。 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,才能检查摄像头是否支持手动对焦。 + * @list 视频管理 + */ + +- (bool)isCameraFocusPositionSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的对焦点。 + * @param position 对焦点坐标。以本地预览画布的左上为坐标原点,`position`的`x`字段为对焦点水平方向归一化坐标,`y`字段为对焦点垂直方向归一化坐标,取值范围为 [0, 1]。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置对焦点。 + * - 对焦点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的对焦点失效。 + * @list 视频管理 + */ + +- (int)setCameraFocusPosition:(CGPoint)position; +/** + * + * @hidden(macOS) + * @type api + * @brief 检查当前使用的摄像头是否支持手动设置曝光点。 + * @return + * - true: 支持。 + * - false: 不支持。 + * @note 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。 + * @list 视频管理 + */ + +- (bool)isCameraExposurePositionSupported; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的曝光点。 + * @param position 曝光点坐标。以本地预览画布的左上为坐标原点,`position`的`x`字段为曝光点水平方向归一化坐标,`y`字段为曝光点垂直方向归一化坐标,取值范围为 [0, 1]。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 + * - 曝光点设置为画布中央(即`x`和`y`均取 0.5)时,恢复系统默认值。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的曝光点失效。 + * @list 视频管理 + */ + +- (int)setCameraExposurePosition:(CGPoint)position; +/** + * + * @hidden(macOS) + * @type api + * @brief 设置当前使用的摄像头的曝光补偿。 + * @param val 曝光补偿值,取值范围 [-1, 1],0 为系统默认值(没有曝光补偿)。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。 + * - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的曝光补偿失效。 + * @list 视频管理 + */ + +- (int)setCameraExposureCompensation:(float)val; +/** + * + * @hidden(macOS) + * @valid since 353 + * @type api + * @brief 启用或禁用内部采集时人脸自动曝光模式。此模式会改善强逆光下,脸部过暗的问题;但也会导致 ROI 以外区域过亮/过暗的问题。 + * @param enable 是否启用。iOS默认开启,Android默认关闭。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note 在采集前或采集中调用此接口均可生效。 + * @list 视频管理 + */ + +- (int)enableCameraAutoExposureFaceMode:(bool)enable; +/** + * + * @hidden(macOS) + * @valid since 353 + * @type api + * @brief 设置内部采集适用动态帧率时,帧率的最小值。 + * @param framerate 最小值。单位为 fps。默认值是 7。
    + * 动态帧率的最大帧率是通过 setVideoCaptureConfig:{@link #ByteRTCEngine#setVideoCaptureConfig:} 设置的帧率值。当传入参数大于最大帧率时,使用固定帧率模式,帧率为最大帧率;当传入参数小于最大帧率时,使用动态帧率。 + * @return + * - 0: 成功. + * - !0: 失败. + * @note + * - 你必须在调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。 + * - 如果由于性能降级、静态适配等原因导致采集最大帧率变化时,已设置的最小帧率值会与新的采集最大帧率值重新比较。比较结果变化可能导致固定/动态帧率模式切换。 + * - 对 Android,默认开启动态帧率模式 + * - 对 iOS,默认使用固定帧率模式 + * @list 视频管理 + */ + +- (int)setCameraAdaptiveMinimumFrameRate:(int)framerate; + +#pragma mark - MediaMetadataData InnerVideoSource +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 通过视频帧发送 SEI 数据。
    + * 在视频通话场景下,SEI 数据会随视频帧发送;在语音通话场景下,SDK 会自动生成一路 16px × 16px 的黑帧视频流用来发送 SEI 数据。 + * @param message SEI 消息,建议每帧 SEI 数据总长度不超过 4 KB。 + * @param repeatCount 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeatCount+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 ByteRTCSEICountPerFrame{@link #ByteRTCSEICountPerFrame}。 + * @return + * - >= 0: 将被添加到视频帧中的 SEI 的数量。 + * - < 0: 发送失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率。在语音通话场景下,黑帧帧率为 15 fps。 + * - 从程序的启动到结束,建议用同一种发送模式。 + * - 语音通话场景中,仅支持在内部采集模式下调用该接口发送 SEI 数据。 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据;语音通话场景下,若调用此接口后 1min 内未有 SEI 数据发送,则 SDK 会自动取消发布视频黑帧。 + * - 消息发送成功后,远端会收到 rtcEngine:onSEIMessageReceived:info:andMessage:{@link #ByteRTCEngineDelegate#rtcEngine:onSEIMessageReceived:info:andMessage:} 回调。 + * - 语音通话切换至视频通话时,会停止使用黑帧发送 SEI 数据,自动转为用采集到的正常视频帧发送 SEI 数据。 + * @list 消息 + */ + +- (int)sendSEIMessage: (NSData* _Nonnull)message andRepeatCount:(int)repeatCount andCountPerFrame:(ByteRTCSEICountPerFrame) mode; +/** + * + * @type api + * @list 消息 + * @brief 以 Key-Value 格式通过视频帧发送 SEI 数据。 + * 调用此接口前,必须在调用 setLiveMode:{@link #ByteRTCRoom#setLiveMode:} 时将房间模式设置为 `kRoomLiveModeSoloHost` 开启单人直播模式。 + * @param jsonString JSON 格式的键值对,例如 `{"key1":"value1","key2":"value2"}`: + * - 如果某个 Key 对应的 Value 为空(例如 `""` 或 `null`),则会从 SEI 字典中删除该 Key; + * - 所有 Key-Value 合并后的总 SEI 数据大小不能超过 10KB。 + * @param count 连续发送该 SEI 数据的次数。 + * - 当 `isKeyFrameOnly` 为 YES 时,代表伴随 `count` 个关键帧(I 帧)发送; + * - 当 `isKeyFrameOnly` 为 NO 时,代表伴随 `count` 个视频帧发送。 + * @param isKeyFrameOnly 是否只随关键帧(I 帧)发送: + * - YES:只在关键帧发送; + * - NO:所有帧都会发送。 + * @param allowOverwrite 设置该 Key 写入后,后续请求是否允许覆盖它: + * - true:后续请求可覆盖该 Key 的 Value,且 `count` 也会更新为新值; + * - false:后续请求会忽略该 Key 的新值,保持原样。对于已存在的 Key,是否允许本次覆盖取决于该 Key 已保存的覆盖策略。 + * @return + * - 0: 调用成功。 + * - < 0: 发送失败。 + * - -1: 视频模块未启用。 + * - -2: 参数错误(JSON 为空或 count <= 0)。 + * - -3: JSON 格式错误。 + * - -4: SEI 数据总大小超过限制。 + */ + +- (int)sendLivePushSEIMessage:(NSString *_Nonnull)jsonString + count:(NSInteger)count + isKeyFrameOnly:(BOOL)isKeyFrameOnly + allowOverwrite:(BOOL)allowOverwrite; +/** + * + * @hidden for internal use only + * @valid since 3.56 + * @type api + * @hiddensdk(audiosdk) + * @brief WTN 流视频帧发送 SEI 数据。 + * @param channelId SEI 的消息传输通道,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message SEI 消息。 + * @param repeatCount 消息发送重复次数。取值范围是 [0, max{29, %{视频帧率}-1}]。推荐范围 [2,4]。
    + * 调用此接口后,SEI 数据会添加到从当前视频帧开始的连续 `repeat_count+1` 个视频帧中。 + * @param mode SEI 发送模式,参看 ByteRTCSEICountPerFrame{@link #ByteRTCSEICountPerFrame}。 + * @return + * - < 0:说明调用失败 + * - = 0:说明当前发送队列已满,无法发送 + * - > 0: 说明调用成功,该数值为已经发送 SEI 的数量 + * @note + * - 每秒发送的 SEI 消息数量建议不超过当前的视频帧率 + * - 视频通话场景中,使用自定义采集并通过 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 推送至 SDK 的视频帧,若本身未携带 SEI 数据,也可通过本接口发送 SEI 数据;若原视频帧中已添加了 SEI 数据,则调用此方法不生效。 + * - 视频帧仅携带前后 2s 内收到的 SEI 数据 + * - 消息发送成功后,远端会收到 rtcEngine:onPublicStreamSEIMessageReceivedWithChannel:andChannelId:andMessage:回调。 + * - 调用失败时,本地及远端都不会收到回调。 + * @list 消息 + */ + +- (int)sendPublicStreamSEIMessage: (int)channelId andMessage:(NSData* _Nonnull)message andRepeatCount:(int)repeatCount andCountPerFrame:(ByteRTCSEICountPerFrame)mode; +#pragma mark - VideoFrameObserver InnerVideoSource +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 设置本地摄像头数码变焦参数,包括缩放倍数,移动步长。 + * @param type 数码变焦参数类型,缩放系数或移动步长。参看 ByteRTCZoomConfigType{@link #ByteRTCZoomConfigType}。必填。 + * @param size 缩放系数或移动步长,保留到小数点后三位。默认值为 0。必填。
    + * 选择不同 `type` 时有不同的取值范围。当计算后的结果超过缩放和移动边界时,取临界值。
    + * - `ByteRTCZoomConfigTypeFocusOffset`:缩放系数增量,范围为 [0, 7]。例如,设置为 0.5 时,如果调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 选择 Zoom in,则缩放系数增加 0.5。缩放系数范围 [1,8],默认为 `1`,原始大小。 + * - `ByteRTCZoomConfigTypeMoveOffset`:移动百分比,范围为 [0, 0.5],默认为 0,不移动。如果调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 选择的是左右移动,则移动距离为 size x 原始视频宽度;如果选择的是上下移动,则移动距离为 size x 原始视频高度。例如,视频帧边长为 1080 px,设置为 0.5 时,实际移动距离为 0.5 x 1080 px = 540 px。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 每次调用本接口只能设置一种参数。如果缩放系数和移动步长都需要设置,分别调用本接口传入相应参数。 + * - 由于移动步长的默认值为 `0` ,在调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 或 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:} 进行数码变焦操作前,应先调用本接口。 + * @list 视频处理 + */ + +- (int)setVideoDigitalZoomConfig:(ByteRTCZoomConfigType)type size:(float)size; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 控制本地摄像头数码变焦,缩放或移动一次。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ByteRTCZoomDirectionType{@link #ByteRTCZoomDirectionType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 如果你希望实现持续数码变焦操作,调用 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:}。 + * - 移动端可对摄像头进行光学变焦控制,参看 `setCameraZoomRatio:`. + * @list 视频处理 + */ + +- (int)setVideoDigitalZoomControl:(ByteRTCZoomDirectionType) direction; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 开启本地摄像头持续数码变焦,缩放或移动。设置对本地预览画面和发布到远端的视频都生效。 + * @param direction 数码变焦操作类型,参看 ByteRTCZoomDirectionType{@link #ByteRTCZoomDirectionType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 由于默认步长为 `0`,调用该方法前需通过 setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size:} 设置参数。 + * - 调用该方法进行移动前,应先使用本方法或 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:} 进行放大,否则无法移动。 + * - 当数码变焦操作超出范围时,将置为临界值并停止操作。例如,移动到了图片边界、放大到了 8 倍、缩小到原图大小。 + * - 你也可以调用 stopVideoDigitalZoomControl{@link #ByteRTCEngine#stopVideoDigitalZoomControl} 手动停止控制。 + * - 如果你希望实现单次数码变焦操作,调用 setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl:}。 + * - 如果你希望实现单次数码变焦操作,调用 `setVideoDigitalZoomControl:`。 + * @list 视频处理 + */ + +- (int)startVideoDigitalZoomControl:(ByteRTCZoomDirectionType)direction; +/** + * + * @valid since 3.51 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地摄像头持续数码变焦。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 关于开始数码变焦,参看 startVideoDigitalZoomControl:{@link #ByteRTCEngine#startVideoDigitalZoomControl:}。 + * @list 视频处理 + */ + +- (int)stopVideoDigitalZoomControl; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置自定义视频前处理器。
    + * 使用这个视频前处理器,你能够调用 processVideoFrame:{@link #ByteRTCVideoProcessorDelegate#processVideoFrame:} 对 RTC SDK 采集得到的视频帧进行前处理,并将处理后的视频帧用于 RTC 音视频通信。 + * @param processor 自定义视频处理器,详见 ByteRTCVideoProcessorDelegate{@link #ByteRTCVideoProcessorDelegate}。如果传入 null,则不对 RTC SDK 采集得到的视频帧进行前处理。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。
    + * 在设计 `processor` 时,应从 ByteRTCVideoFrame{@link #ByteRTCVideoFrame} 的 `textureBuf` 字段获取视频帧数据;
    + * 处理后返回的视频帧数据格式应为 ByteRTCVideoPixelFormat{@link #ByteRTCVideoPixelFormat} 中的 `ByteRTCVideoPixelFormatCVPixelBuffer`,且必须存放在返回帧数据的 `textureBuf` 字段中。 + * @param config 自定义视频前处理器适用的设置,详见 ByteRTCVideoPreprocessorConfig{@link #ByteRTCVideoPreprocessorConfig}。
    + * 当前,`config` 中的 `required_pixel_format` 仅支持:`ByteRTCVideoPixelFormatI420` 和 `ByteRTCVideoPixelFormatUnknown`:
    + * - 设置为 `Unknown` 时,RTC SDK 给出供 processor 处理的视频帧格式即采集的格式。 + * - 设置为 `ByteRTCVideoPixelFormatI420` 时,RTC SDK 会将采集得到的视频转变为对应的格式,供前处理使用。 + * - 设置为其他值时,此方法调用失败。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 重复调用此接口时,仅最后一次调用生效。效果不会叠加。 + * - 对于 iOS 平台,将 ByteRTCVideoPreprocessorConfig{@link #ByteRTCVideoPreprocessorConfig} 中的 requiredPixelFormat 设置为 `kVideoPixelFormatUnknown`,可以通过避免格式转换带来一些性能优化。 + * @list 自定义流处理 + */ + +- (int)registerLocalVideoProcessor:(_Nullable id) processor + withConfig:(ByteRTCVideoPreprocessorConfig* _Nullable)config NS_SWIFT_NAME(registerLocalVideoProcessor(_:withConfig:)); +#pragma mark - LocalEncodedVideoFrameObserver +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册本地视频帧监测器。
    + * 无论使用内部采集还是自定义采集,调用该方法后,SDK 每监测到一帧本地视频帧时,都会将视频帧信息通过 onLocalEncodedVideoFrame:Frame:{@link #ByteRTCLocalEncodedVideoFrameObserver#onLocalEncodedVideoFrame:Frame:} 回调给用户 + * @param frameObserver 本地视频帧监测器,参看 ByteRTCLocalEncodedVideoFrameObserver{@link #ByteRTCLocalEncodedVideoFrameObserver}。将参数设置为 nullptr 则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该方法可在进房前后任意时间调用,在进房前调用可保证尽可能早地监测视频帧并触发回调 + * @list 自定义流处理 + */ + +- (int)registerLocalEncodedVideoFrameObserver:(_Nullable id) frameObserver NS_SWIFT_NAME(registerLocalEncodedVideoFrameObserver(_:)); +#pragma mark Audio Routing Controller +/** + * + * @hidden(macOS) + * @type api + * @brief 强制切换当前的音频播放路由。默认使用 setDefaultAudioRoute:{@link #ByteRTCEngine#setDefaultAudioRoute:} 中设置的音频路由。
    + * 音频播放路由发生变化时,会收到 rtcEngine:onAudioRouteChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioRouteChanged:} 回调。 + * @param audioRoute 音频播放路由,参见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute}。仅支持扬声器和默认路由设备。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 对于绝大多数音频场景,推荐使用 setDefaultAudioRoute:{@link #ByteRTCEngine#setDefaultAudioRoute:} 设置默认音频路由,并借助 RTC SDK 的音频路由自动切换逻辑即可完成。切换逻辑参见[移动端设置音频路由](https: + * - 本接口支持在通话模式和媒体模式下使用,切换的目标路由仅支持内置扬声器。 + * - 不同音频场景中,音频路由和发布订阅状态到音量类型的映射关系详见 ByteRTCAudioScenarioType{@link #ByteRTCAudioScenarioType} 。 + * @list 音频管理 + */ + +- (int)setAudioRoute:(ByteRTCAudioRoute)audioRoute; +/** + * + * @hidden(macOS) + * @type api + * @brief 获取当前使用的音频播放路由。 + * @return 详见 ByteRTCAudioRoute{@link #ByteRTCAudioRoute} + * @note 要设置音频路由,详见 setAudioRoute:{@link #ByteRTCEngine#setAudioRoute:},仅适用于移动端。 + * @list 音频管理 + */ + +- (ByteRTCAudioRoute)getAudioRoute; +/** + * + * @type api + * @brief 启用匹配外置声卡的音频处理模式 + * @param enable
    + * - true: 开启 + * - false: 不开启(默认) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 当采用外接声卡进行音频采集时,建议开启此模式,以获得更好的音质。 + * - 开启此模式时,仅支持耳机播放。如果需要使用扬声器或者外置音箱播放,关闭此模式。 + * @list 音频管理 + */ + +- (int)enableExternalSoundCard:(bool)enable; + /** + * + * @hidden(macOS) + * @type api + * @brief 将默认的音频播放设备设置为听筒或扬声器。 + * @param audioRoute 音频播放设备。参看 ByteRTCAudioRoute{@link #ByteRTCAudioRoute}。仅支持听筒或扬声器。 + * @return + * - 0: 方法调用成功。 + * - < 0: 方法调用失败。 + * @note 对于音频路由切换逻辑,参见[移动端设置音频路由](https: + * @list 音频管理 + */ + +- (int)setDefaultAudioRoute:(ByteRTCAudioRoute)audioRoute; +#pragma mark WTN/CDN +/** + * + * @hiddensdk(audiosdk) + * @hidden for internal use only + * @type api + */ + +- (int)pushClientMixedStreamExternalVideoFrame:(NSString * _Nonnull)uid withFrame:(ByteRTCVideoFrameData * _Nonnull)frame; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @region 转推 CDN/WTN + * @brief 设置客户端合流的观察者 + * @param observer 客户端转推直播观察者。详见 ByteRTCClientMixedStreamDelegate{@link #ByteRTCClientMixedStreamDelegate}。
    + * 通过注册 observer 接收转推直播相关的回调。 + * @return 方法调用结果。
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list CDN 推流 + */ + +- (int)setClientMixedStreamObserver:(_Nullable id)observer; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)startClientMixedStream:(NSString * _Nonnull)taskId withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config + withExtraConfig:(ByteRTCClientMixedStreamConfig*)extraConfig; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)updateClientMixedStream:(NSString * _Nonnull)taskId withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config withExtraConfig:(ByteRTCClientMixedStreamConfig*)extraConfig; +/** + * + * @hidden for internal use only + * @type api + * @hiddensdk(audiosdk) + * @list CDN 推流 + */ + +- (int)stopClientMixedStream:(NSString*)taskId; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushMixedStreamToCDN:mixedConfig:observer:` 和 `startPushPublicStream:withLayout:` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 指定房间中的媒体流,合成后一路流发布到 CDN 或发布一路 WTN 流。 + * @param taskId 转推直播任务 ID,长度不超过 127 字节。 当 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig} 中的 `PushTargetType = 0` 时, 用于标识转推直播任务。你可以在同一房间内发起多个转推直播任务,并用不同的 ID 加以区分。当你需要发起多个转推直播任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * 当 `PushTargetType = 1` 时,设置无效,传空即可。 + * @param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN流 ID。参看 ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}。 + * @param config 合流转推配置参数,比如设置合流的图片、视频视图布局和音频属性。参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。 + * @return + * - 0: 成功。你可以通过 rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} 回调获取启动结果和推流过程中的事件。 + * - !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在[控制台](https: + * - 调用 stopPushMixedStream:withPushTargetType:{@link #ByteRTCEngine#stopPushMixedStream:withPushTargetType:} 停止转推直播。 + * - 调用 updatePushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#updatePushMixedStream:withPushTargetConfig:withMixedConfig:} 可以更新部分任务参数。 + * @list CDN 推流 + * @order 0 + */ + +- (int)startPushMixedStream:(NSString * _Nonnull)taskId withPushTargetConfig:(ByteRTCMixedStreamPushTargetConfig*)pushTargetConfig withMixedConfig:(ByteRTCMixedStreamConfig *_Nullable)config; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `updatePushMixedStreamToCDN:mixedConfig:` 和 `updatePublicStreamParam:withLayout:` 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。 + * @hidden(Linux) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新推 CDN/WTN 流转推参数,会收到 rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:} 回调。
    + * 使用 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:} 启用转推直播功能后,使用此方法更新功能配置参数。 + * @param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN流 ID。参看 ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}。 + * @param config 转推直播配置参数,参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。除特殊说明外,均支持过程中更新。
    + * 调用时,结构体中没有传入值的属性,会被更新为默认值。 + * @return + * - 0: 成功。 + * - !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @list CDN 推流 + * @order 4 + */ + +- (int)updatePushMixedStream:(NSString *_Nonnull)taskId withPushTargetConfig:(ByteRTCMixedStreamPushTargetConfig*)pushTargetConfig withMixedConfig:(ByteRTCMixedStreamConfig *_Nonnull)config; + +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 方法来停止合流转推任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @hiddensdk(audiosdk) + * @brief 停止 WTN 流或合流转推 CDN 任务。 + * @param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 + * @param pushTargetType 参看 ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}。 + * @return + * + 0: 成功 + * + !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 关于启动合流转推直播或 WTN 流,参看 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig:}。 + * @list CDN 推流 + * @order 3 + */ + +- (int)stopPushMixedStream:(NSString *_Nonnull)taskId withPushTargetType:(ByteRTCMixedStreamPushTargetType)pushTargetType; +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `startPushSingleStreamToCDN` 来启动单流转推任务。 + * @hiddensdk(audiosdk) + * @brief 将房间内某一路音视频流,推送到指定的 RTC 房间或 CDN 地址。此过程不涉及编解码。 + * @param taskId 任务 ID。
    + * 你可以发起多个转推任务,并用不同的任务 ID 加以区分。当你需要发起多个转推任务时,应使用多个 ID;当你仅需发起一个转推直播任务时,建议使用空字符串。 + * @param singleStream 单流转推配置参数。详见 ByteRTCPushSingleStreamParam{@link #ByteRTCPushSingleStreamParam}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在调用该接口前,你需要在[控制台](https: + * - 调用该方法后,关于启动结果和推流过程中的错误,会收到 rtcEngine:onSingleStreamEvent:withTaskId:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onSingleStreamEvent:withTaskId:withErrorCode:} 回调。 + * - 调用 stopPushSingleStream:{@link #ByteRTCEngine#stopPushSingleStream:} 停止任务。 + * - 由于本功能不进行编解码,所以推到 RTMP 的视频流会根据推流端的分辨率、编码方式、关闭摄像头等变化而变化。 + * @list CDN 推流 + */ + +- (int)startPushSingleStream:(NSString *_Nonnull)taskId singleStream:(ByteRTCPushSingleStreamParam *_Nonnull)singleStream; +/** + * + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 方法来停止单流转推直播任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `stopPushStreamToCDN:` 来停止单流转推任务。 + * @brief 停止由 startPushSingleStream:singleStream:{@link #ByteRTCEngine#startPushSingleStream:singleStream:} 启动的单流转推任务。 + * @param taskId 任务 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list CDN 推流 + */ + +- (int)stopPushSingleStream:(NSString *_Nonnull)taskId; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 开启缓存同步功能。开启后,会缓存收到的实时音视频数据,并对齐不同数据中的时间戳完成同步。此功能会影响音视频数据消费的实时性。 + * @param config 参看 ByteRTCChorusCacheSyncConfig{@link #ByteRTCChorusCacheSyncConfig}。 + * @param observer 事件和数据观察者,参看 ByteRTCChorusCacheSyncObserver{@link #ByteRTCChorusCacheSyncObserver}。 + * @return 查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 要关闭缓存同步功能,调用 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}。 + * @list Pushing Streams to CDN + */ + +- (int)startChorusCacheSync:(ByteRTCChorusCacheSyncConfig* _Nullable)config observer:(id _Nullable)observer; + /** + * + * @hidden internal use only + * @type api + * @hiddensdk(audiosdk) + * @brief 关闭缓存同步功能。 + * @return 查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @list Pushing Streams to CDN + */ + +-(int)stopChorusCacheSync; + +#pragma mark public streaming +/** + * + * @type api + * @brief 获取 WTN 流对象。 + * @return WTN 流对象,参看 ByteRTCWTNStream{@link #ByteRTCWTNStream}。 + * @list WTN + */ + +- (ByteRTCWTNStream *_Nullable)getWTNStream; + +#pragma mark External Video Data + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送外部视频帧。 + * @param frame 该视频帧包含待 SDK 编码的视频数据,参考 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 推送外部视频帧前,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 开启外部视频源采集。
    + * 支持格式:raw NV12 + * @list 自定义流处理 + */ + +- (int)pushExternalVideoFrame:(ByteRTCVideoFrameData * _Nonnull)frame; + +#pragma mark External Audio Data +/** + * + * @type api + * @brief 设置并开启指定的音频数据帧回调 + * @param method 音频回调方法,参看 ByteRTCAudioFrameCallbackMethod{@link #ByteRTCAudioFrameCallbackMethod}。
    + * 当音频回调方法设置为 `0`、`1`、`2`、`5`时,你需要在参数 `format` 中指定准确的采样率和声道,暂不支持设置为自动。
    + * 当音频回调方法设置为 `3` 时,将 `format` 中的各个字段设置为默认值。 + * @param format 音频参数格式,参看 ByteRTCAudioFormat{@link #ByteRTCAudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 开启音频回调并调用 registerAudioFrameObserver:{@link #ByteRTCMediaPlayer#registerAudioFrameObserver:} 后,ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver} 会收到对应的音频回调。两者调用顺序没有限制且相互独立。 + * @list 自定义流处理 + */ + +- (int)enableAudioFrameCallback:(ByteRTCAudioFrameCallbackMethod) method format:(ByteRTCAudioFormat* _Nullable)format; +/** + * + * @type api + * @brief 关闭音频回调 + * @param method 音频回调方法,参看 ByteRTCAudioFrameCallbackMethod{@link #ByteRTCAudioFrameCallbackMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该方法需要在调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 之后调用。 + * @list 自定义流处理 + */ + +- (int)disableAudioFrameCallback:(ByteRTCAudioFrameCallbackMethod) method; +/** + * + * @type api + * @brief 注册音频数据回调观察者。 + * @param audioFrameObserver 音频数据观察者,参看 ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver}。如果传入 null,则取消注册。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 注册音频数据回调观察者并调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 后,ByteRTCAudioFrameObserver{@link #ByteRTCAudioFrameObserver} 会收到对应的音频回调。对回调中收到的音频数据进行处理,不会影响 RTC 的编码发送或渲染。 + * @list 自定义流处理 + */ + +- (int)registerAudioFrameObserver:(_Nullable id) audioFrameObserver NS_SWIFT_NAME(registerAudioFrameObserver(_:)); +/** + * + * @type api + * @brief 注册自定义音频处理器。
    + * 注册完成后,你可以调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},对本地采集到的音频进行处理,RTC SDK 将对处理后的音频进行编码和发送。也可以对接收到的远端音频进行自定义处理,RTC SDK 将对处理后的音频进行渲染。 + * @param processor 自定义音频处理器,详见 ByteRTCAudioFrameProcessor{@link #ByteRTCAudioFrameProcessor}。
    + * SDK 只持有 processor 的弱引用,你应保证其生命周期。需要取消注册时,设置此参数为 nullptr。
    + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 重复调用此接口时,仅最后一次调用生效。 + * - 更多相关信息,详见[音频自定义处理](https: + * @list 自定义流处理 + */ + +- (int)registerAudioProcessor:(_Nullable id)processor; +/** + * + * @type api + * @brief 设置并开启指定的音频帧回调,进行自定义处理。 + * @param method 音频帧类型,参看 ByteRTCAudioFrameMethod{@link #ByteRTCAudioFrameMethod}。可多次调用此接口,处理不同类型的音频帧。
    + * 选择不同类型的音频帧将收到对应的回调:
    + * - 选择本地采集的音频时,会收到 onProcessRecordAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessRecordAudioFrame:}。 + * - 选择远端音频流的混音音频时,会收到 onProcessPlayBackAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessPlayBackAudioFrame:}。 + * - 选择远端音频流时,会收到 onProcessRemoteUserAudioFrame:info:audioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessRemoteUserAudioFrame:info:audioFrame:}。 + * - 选择软件耳返音频时,会收到 onProcessEarMonitorAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessEarMonitorAudioFrame:}。(仅适用于 iOS 平台) + * - 选择屏幕共享音频流时,会收到 onProcessScreenAudioFrame:{@link #ByteRTCAudioFrameProcessor#onProcessScreenAudioFrame:}。 + * @param format 设定自定义处理时获取的音频帧格式,参看 ByteRTCAudioFormat{@link #ByteRTCAudioFormat}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在调用此接口前,你需要调用 registerAudioProcessor:{@link #ByteRTCEngine#registerAudioProcessor:} 注册自定义音频处理器。 + * - 要关闭音频自定义处理,调用 disableAudioProcessor:{@link #ByteRTCEngine#disableAudioProcessor:}。 + * @list 自定义流处理 + */ + +- (int)enableAudioProcessor:(ByteRTCAudioFrameMethod)method + audioFormat:(ByteRTCAudioFormat *_Nullable)format; +/** + * + * @type api + * @brief 关闭自定义音频处理。 + * @param method 音频帧类型,参看 ByteRTCAudioFrameMethod{@link #ByteRTCAudioFrameMethod}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 自定义流处理 + */ + +- (int)disableAudioProcessor:(ByteRTCAudioFrameMethod)method; +/** + * + * @type api + * @brief 推送自定义采集的音频数据到 RTC SDK。 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}
    + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 推送外部音频数据前,必须先调用 setAudioSourceType:{@link #ByteRTCEngine#setAudioSourceType:} 开启自定义采集。 + * - 你必须每隔 10 毫秒推送一次外部采集的音频数据。单次推送的 samples (音频采样点个数)应该为 audioFrame.sampleRate / 100。比如设置采样率为 48000 时, 每次应该推送 480 个采样点。 + * @list 自定义流处理 + */ + +- (int)pushExternalAudioFrame:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @type api + * @brief 拉取下行音频数据用于自定义音频渲染。
    + * 调用该方法后,SDK 会主动拉取待播放的音频数据,包括远端已解码和混音后的音频数据,用于外部播放。 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @return 方法调用结果
    + * - 0: 设置成功 + * - < 0: 设置失败 + * @note + * - 拉取外部音频数据前,必须先调用 setAudioRenderType:{@link #ByteRTCEngine#setAudioRenderType:} 开启自定义渲染。 + * - 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒拉取一次音频数据。确保音频采样点数(sample)x 拉取频率等于 audioFrame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口拉取数据,每次应拉取 480 个采样点。 + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * @list 自定义流处理 + */ + +- (int)pullExternalAudioFrame:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @type api + * @brief 向 SDK 发送由自定义处理后的 PCM 音频数据,作为回声消除的参考信号 + * @param audioFrame 音频数据帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @return 方法调用结果
    + * + 0:方法调用成功
    + * + <-1:方法调用失败
    + * + <-302:警告,配置下发了无效的aec场景
    + * + <-303:警告,配置下发了错误的aec类型
    + * @note
    + * + 推送自定义回声消除参考信号前,必须先调用 setAudioRenderType{@link #ByteRTCEngine#setAudioRenderType} 开启自定义渲染。
    + * + 由于 RTC SDK 的帧长为 10 毫秒,你应当每隔 10 毫秒发送一次音频数据。确保音频采样点数(sample)x 发送频率等于 audioFrame 的采样率 (sampleRate)。如设置采样率为 48000 时,每 10 毫秒调用本接口发送数据,每次应发送 480 个采样点。
    + * + 音频采样格式为 S16。音频缓冲区内的数据格式为 PCM 数据,其容量大小为 audioFrame.samples × audioFrame.channel × 2。
    + * @list 自定义流处理 + */ + +- (int)pushReferenceAudioPCMData:(ByteRTCAudioFrame * _Nonnull) audioFrame; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 推送opus编码音频数据到 RTC SDK,RTC SDK纯转发。 + * @param audio_stream 对应的opus音频数据。详见 EncodedAudioFrameData{@link #EncodedAudioFrameData}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 推送音频数据前,必须先调用 enableAudioEncoding{@link #ByteRTCEngine#enableAudioEncoding} 关闭音频编码。 + * @list 自定义流处理 + */ + +- (int)pushExternalEncodedAudioFrame:(ByteRTCEncodedAudioFrameData * _Nonnull)audioFrame; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频编码功能。 + * @param enable 是否使用sdk音频编码功能。 + * true: 打开音频编码(默认) + * false: 关闭音频编码直接转推。 + * @note + * - 在pushExternalEncodedAudioFrame{@link #ByteRTCEngine#pushExternalEncodedAudioFrame}之前调用。 + * @list 自定义流处理 + */ + +- (void)enableAudioEncoding:(bool)enable; +/** + * + * @hidden for internal use only + * @region 自定义音频采集渲染 + * @brief 是否使用sdk音频解码功能。 + * @param enable 是否使用sdk音频解码功能。 + * true: 打开音频解码功能(默认) + * false: 关闭音频解码功能直接转推。 + * @note + * - 在registerRemoteEncodedAudioFrameObserver之前调用。 + * @list 自定义流处理 + */ + +- (void)enableAudioDecoding:(bool)enable; +/** + * + * @type api + * @hidden for internal use only + * @brief 注册远端音频帧监测器。
    + * 调用该方法后,SDK 每监测到一帧远端音频帧时,都会将音频帧信息通过 onRemoteEncodedAudioFrame:info:audioFrame: 回调给用户 + * @param observer 远端音频帧监测器,参看 IRemoteEncodedAudioFrameObserver。 + * @note + * - 该方法建议在进房前调用。 + * - 将参数设置为 nullptr 则取消注册。 + * - 调用前,必须先调用 enableAudioDecoding{@link #ByteRTCEngine#enableAudioDecoding} 关闭音频解码功能。 + * @list 自定义流处理 + */ + +- (void)registerRemoteEncodedAudioFrameObserver:(_Nullable id)observer; +/** + * + * @type api + * @brief 设置业务标识参数
    + * 可通过 businessId 区分不同的业务场景。businessId 由客户自定义,相当于一个“标签”,可以分担和细化现在 AppId 的逻辑划分的功能,但不需要鉴权。 + * @param businessId
    + * 用户设置的自己的 businessId 值
    + * businessId 只是一个标签,颗粒度需要用户自定义。 + * @return + * - 0: 成功。 + * - -2: 输入非法,合法字符包括所有小写字母、大写字母和数字,除此外还包括四个独立字符分别是:英文句号,短横线,下划线和 @ 。 + * @note + * - 需要在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房之前调用,进房之后调用该方法无效。 + * @list 引擎管理 + */ + +- (int)setBusinessId:(NSString* _Nullable)businessId; +/** + * + * @type api + * @brief 通话结束,将用户反馈的问题上报到 RTC。 + * @param types 预设问题列表,参看 ByteRTCProblemFeedbackOption{@link #ByteRTCProblemFeedbackOption} + * @param info 预设问题以外的其他问题的具体描述,房间信息。参看 ByteRTCProblemFeedbackInfo{@link #ByteRTCProblemFeedbackInfo} + * @return + * - 0: 成功。 + * - -3: 失败。 + * @note + * - 你可以在 [RTC 控制台](https: + * - 如果用户上报时在房间内,那么问题会定位到用户当前所在的一个或多个房间;如果用户上报时不在房间内,那么问题会定位到引擎此前退出的房间。 + * @list 引擎管理 + */ + +- (int)feedback:(ByteRTCProblemFeedbackOption)types info:(ByteRTCProblemFeedbackInfo* _Nullable)info; +/** + * + * @valid since 353 + * @type api + * @brief 获取 C++ 层 [IRTCEngine 句柄](https: + * @return + * - >0:方法调用成功, 返回 C++ 层 `IRTCEngine` 的地址。 + * - NULL:方法调用失败 + * @note 在一些场景下,获取 C++ 层 `IRTCEngine`,并通过其完成操作,相较于通过 OC 封装层完成有显著更高的执行效率。典型的场景有:视频/音频帧自定义处理,音视频通话加密等。 + * @list 引擎管理 + */ + +- (void * _Nullable) getNativeHandle; + +#pragma mark Fallback Related +/** + * + * @type api + * @brief 设置发布的音视频流的回退选项。
    + * 你可以调用该接口设置网络不佳或设备性能不足时从大流起进行降级处理,以保证通话质量。 + * @param option 本地发布的音视频流回退选项,参看 ByteRTCPublishFallbackOption{@link #ByteRTCPublishFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅在调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setlocalsimulcastmode:} 开启了发送多路视频流的情况下生效。 + * - 该方法必须在进房前设置,进房后设置或更改设置无效。 + * - 调用该方法后,如因性能或网络不佳产生发布性能回退或恢复,本端会提前收到 rtcEngine:onPerformanceAlarms:info:mode:reason:sourceWantedData:{@link #ByteRTCEngineDelegate#rtcEngine:onPerformanceAlarms:info:mode:reason:sourceWantedData:} 回调发出的告警,以便采集设备配合调整。 + * - 设置回退后,本地发布的音视频流发生回退或从回退中恢复时,远端会收到 rtcEngine:onSimulcastSubscribeFallback:info:event:{@link #ByteRTCEngineDelegate#rtcEngine:onSimulcastSubscribeFallback:info:event:} 回调,通知该情况。 + * - 你可以调用客户端 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + +- (int)setPublishFallbackOption:(ByteRTCPublishFallbackOption)option; +/** + * + * @type api + * @brief 设置订阅的音视频流的回退选项。
    + * 你可调用该接口设置网络不佳或设备性能不足时允许订阅流进行降级或只订阅音频流,以保证通话流畅。 + * @param option 订阅的音视频流回退选项,参看 ByteRTCSubscribeFallbackOption{@link #ByteRTCSubscribeFallbackOption}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 你必须在进房前设置,进房后设置或更改设置无效。 + * - 设置回退选项后,订阅的音视频流发生回退或从回退中恢复时,会收到 rtcEngine:onSimulcastSubscribeFallback:info:event:{@link #ByteRTCEngineDelegate#rtcEngine:onSimulcastSubscribeFallback:info:event:} 和 rtcEngine:onRemoteVideoSizeChanged:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteVideoSizeChanged:info:withFrameInfo:} 回调通知。 + * - 你可以调用 API 或者在服务端下发策略设置回退。当使用服务端下发配置实现时,下发配置优先级高于在客户端使用 API 设定的配置。 + * @list 网络管理 + */ + +- (int)setSubscribeFallbackOption:(ByteRTCSubscribeFallbackOption)option; +/** + * + * @type api + * @brief 设置用户优先级。 + * @param priority 远端用户的优先级, 详见枚举类型 ByteRTCRemoteUserPriority{@link #ByteRTCRemoteUserPriority} + * @param roomId 房间 ID + * @param uid 远端用户的 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法与 setSubscribeFallbackOption:{@link #ByteRTCEngine#setSubscribeFallbackOption:} 搭配使用。 + * - 如果开启了订阅流回退选项,弱网或性能不足时会优先保证收到的高优先级用户的流的质量。 + * - 该方法在进房前后都可以使用,可以修改远端用户的优先级。 + * @list 网络管理 + */ + +- (int)setRemoteUserPriority:(ByteRTCRemoteUserPriority)priority + InRoomId:(NSString *_Nonnull)roomId + uid:(NSString *_Nonnull)uid NS_SWIFT_NAME(setRemoteUserPriority(_:InRoomId:uid:)); +#pragma mark AES Related +/** + * + * @type api + * @brief 设置传输时使用内置加密的方式。 + * @param encrypt_type 内置加密算法,详见 ByteRTCEncryptType{@link #ByteRTCEncryptType} + * @param key 加密密钥,长度限制为 36 位,超出部分将会被截断 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 使用传输时内置加密时,使用此方法;如果需要使用传输时自定义加密,参看 onEncryptData:{@link #ByteRTCEncryptHandler#onEncryptData:}。 + * 内置加密和自定义加密互斥,根据最后一个调用的方法确定传输加密的方案。
    + * - 该方法必须在进房之前调用,可重复调用,以最后调用的参数作为生效参数。 + * @list 通话加密 + */ + +- (int)setEncryptInfo:(ByteRTCEncryptType)encrypt_type key:(NSString * _Nonnull)key; +/** + * + * @type api + * @brief 设置自定义加密和解密方式。 + * @param handler 自定义加密 handler,需要实现里面的加密和解密方法。参看 ByteRTCEncryptHandler{@link #ByteRTCEncryptHandler}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法与 setEncryptInfo:key:{@link #ByteRTCEngine#setEncryptInfo:key:} 为互斥关系,即按照调用顺序,最后一个调用的方法为最终生效的版本。 + * - 该方法必须在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 之前调用,可重复调用,以最后调用的参数作为生效参数。 + * - 无论加密或者解密,其对原始数据的长度修改,需要控制在 180% 之间,即如果输入数据为 100 字节,则处理完成后的数据必须不超过 180 字节,如果加密或解密结果超出该长度限制,则该音视频帧可能会被丢弃。 + * - 数据加密/解密为串行执行,因而视实现方式不同,可能会影响到最终渲染效率,是否使用该方法,需要由使用方谨慎评估。 + * @list 通话加密 + */ + +- (int)setCustomizeEncryptHandler:(id _Nullable)handler NS_SWIFT_NAME(setCustomizeEncryptHandler(_:)); + +#pragma mark - Extention Methods +/** + * + * @type api + * @brief 创建 RTC 房间实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCRoom{@link #ByteRTCRoom} 实例。分别调用各 ByteRTCRoom 实例中的 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoom{@link #ByteRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 ByteRTCRoom 实例,再调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * - 如果你需要在多个房间发布音视频流,无须创建多房间,直接调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 开始跨房间转发媒体流。 + * @list 房间管理 + */ + +- ( ByteRTCRoom * _Nullable)createRTCRoom:(NSString * _Nonnull)roomId; + +/** + * + * @type api + * @brief 创建游戏房间实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCGameRoom{@link #ByteRTCGameRoom} 实例。分别调用各 GameRTCRoom 实例中的 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时订阅各房间的音视频流。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @param roomConfig 房间配置,参看 GameRoomConfig{@link #GameRoomConfig}。 + * @return 创建的 ByteRTCGameRoom{@link #ByteRTCGameRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误或当前场景是否是游戏场景。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 GameRTCRoom 实例,再调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + +- (ByteRTCGameRoom * _Nullable)createGameRoom:(NSString * _Nonnull)roomId roomConfig:(GameRoomConfig * _Nonnull)roomConfig; +/** + * + * @type api + * @brief 创建 RTS 房间实例。
    + * 调用此方法仅返回一个RTS房间实例,你仍需调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 才能真正地创建/加入房间。
    + * 多次调用此方法以创建多个 ByteRTCRoom{@link #ByteRTCRoom} 实例。分别调用各 ByteRTCRTSRoom 实例中的 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 方法,同时加入多个房间。
    + * 多房间模式下,用户可以同时收发各房间的消息。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoom{@link #ByteRTCRoom} 房间实例。 + * 返回 NULL 时,请确认指定房间是否已经存在或 roomId 格式错误。 + * @note + * - 如果需要加入的房间已存在,你仍需先调用本方法来获取 ByteRTCRTSRoom 实例,再调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + * @list 房间管理 + */ + +- ( ByteRTCRTSRoom * _Nullable)createRTSRoom:(NSString * _Nonnull)roomId; + +#pragma mark - ScreenCapture +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 设置 Extension 配置项。你必须在使用屏幕内部采集功能前,设置使用的 Extension。 + * @param groupId 你的应用和 Extension 应该归属于同一个 App Group,此处需要传入 Group Id。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 必须在调用 createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate:} 之后立即调用此方法。在引擎实例的生命周期中,此方法只需要调用一次。 + * @list 屏幕共享 + */ + +- (int)setExtensionConfig:(NSString *_Nullable)groupId; + +/** + * + * @type api + * @brief 设置运行时的参数 + * @param parameters 保留参数 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口需在 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 和 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 之前调用。 + * @list 引擎管理 + */ + +- (int)setRuntimeParameters:(NSDictionary * _Nullable)parameters; +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @type api + * @brief 获取共享对象(应用窗口和桌面)列表。 + * @return 共享对象(应用窗口和桌面)列表。参看 ByteRTCScreenCaptureSourceInfo{@link #ByteRTCScreenCaptureSourceInfo}。
    + * 枚举值可作为调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启屏幕共享时的输入参数。 + * @note 仅桌面端可用。 + * @list 屏幕共享 + */ + +- (NSArray *_Nonnull)getScreenCaptureSourceList; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 采集屏幕视频流,用于共享。屏幕视频流包括:屏幕上显示的内容,或应用窗口中显示的内容。 + * @param sourceInfo 待共享的屏幕源,参看 ByteRTCScreenCaptureSourceInfo{@link #ByteRTCScreenCaptureSourceInfo}。
    + * 你可以调用 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 获得所有可以共享的屏幕源。 + * @param captureParameters 共享参数。参看 ByteRTCScreenCaptureParam{@link #ByteRTCScreenCaptureParam}。 + * @return + * - 0: 成功 + * - -1: 失败 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 调用此方法仅开启屏幕流视频采集,不会发布采集到的视频。发布屏幕流视频需要调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:}。 + * - 调用 stopScreenVideoCapture{@link #ByteRTCEngine#stopScreenVideoCapture} 关闭屏幕视频源采集。 + * - 本地用户通过 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调获取屏幕采集状态,包括开始、暂停、恢复、错误等。 + * - 调用成功后,本端会收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调。 + * - 调用此接口前,你可以调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置屏幕视频流的采集帧率和编码分辨率。 + * - 在收到 rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstLocalVideoFrameCaptured:withFrameInfo:} 回调后,通过调用 setLocalVideoCanvas:{@link #ByteRTCEngine#setLocalVideoCanvas:} 或 setLocalVideoSink:withPixelFormat:{@link #ByteRTCEngine#setLocalVideoSink:withPixelFormat:} 函数设置本地屏幕共享视图。 + * - 再开启采集屏幕视频流后,你可以调用 updateScreenCaptureHighlightConfig:{@link #ByteRTCEngine#updateScreenCaptureHighlightConfig:} 更新边框高亮设置,调用 updateScreenCaptureMouseCursor:{@link #ByteRTCEngine#updateScreenCaptureMouseCursor:} 更新对鼠标的处理设置,PC 端还可以调用 updateScreenCaptureFilterConfig:{@link #ByteRTCEngine#updateScreenCaptureFilterConfig:} 设置需要过滤的窗口。 + * @list 屏幕共享 + */ + +- (int)startScreenVideoCapture:(ByteRTCScreenCaptureSourceInfo *_Nonnull)sourceInfo captureParameters:(ByteRTCScreenCaptureParam *_Nonnull)captureParameters NS_SWIFT_NAME(startScreenVideoCapture(_:captureParameters:)); +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 停止屏幕视频流采集。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 要开启屏幕视频流采集,调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:}。 + * - 调用后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。 + * - 调用此接口不影响屏幕视频流发布。 + * @list 屏幕共享 + */ + +- (int)stopScreenVideoCapture; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新采集区域。 + * @param regionRect 采集区域相对 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 中设定区域的值。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须先通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureRegion:(CGRect)regionRect; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新边框高亮设置。默认展示边框。 + * @param config 边框高亮设置。参见 ByteRTCHighlightConfig{@link #ByteRTCHighlightConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureHighlightConfig:(ByteRTCHighlightConfig *_Nonnull)config NS_SWIFT_NAME(updateScreenCaptureHighlightConfig(_:)); +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 内部屏幕流采集时,更新对鼠标的处理设置。默认采集鼠标。 + * @param mouseCursorCaptureState 参看 ByteRTCMouseCursorCaptureState{@link #ByteRTCMouseCursorCaptureState}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureMouseCursor:(ByteRTCMouseCursorCaptureState)mouseCursorCaptureState; +/** + * + * @hidden(iOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 通过 RTC SDK 提供的采集模块采集屏幕视频流时,设置需要过滤的窗口。 + * @param excludedWindowList 过滤掉的窗口列表。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用此接口前,必须已通过调用 startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters:} 开启了内部屏幕流采集。 + * - 本函数在屏幕源类别是屏幕而非应用窗体时才起作用。详见:ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType}。 + * - 调用本接口排除指定窗口时,共享视频的帧率无法达到 30fps。 + * @list 屏幕共享 + */ + +- (int)updateScreenCaptureFilterConfig:(NSArray * _Nullable) excludedWindowList; +/** + * + * @hidden(iOS) + * @type api + * @brief 获取屏幕采集对象缩略图 + * @param sourceType 屏幕采集对象的类型。详见 ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType}。 + * @param sourceId 屏幕分享时,共享对象的 ID。可通过 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 返回的`ByteRTCScreenCaptureSourceInfo`共享对象列表中获取。 + * @param maxWidth 最大宽度。保持采集对象本身的宽高比不变,将缩略图缩放到指定范围内的最大宽高。如果给出的尺寸与共享对象比例不同,得到的缩略图会有黑边。 + * @param maxHeight 最大高度。参见 maxWidth 的说明。 + * @return 屏幕采集对象缩略图。缩略图由屏幕共享对象等比缩放而来。缩略图的大小小于等于此接口设定的尺寸。 + * @list 屏幕共享 + */ + +- (ByteRTCImage *_Nonnull)getThumbnail:(ByteRTCScreenCaptureSourceType)sourceType sourceId:(intptr_t)sourceId maxWidth:(int)maxWidth maxHeight:(int)maxHeight; +/** + * + * @hidden(iOS) + * @brief 获取应用窗体所属应用的图标。 + * @region 屏幕共享 + * @param sourceId 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 返回的`ByteRTCScreenCaptureSourceInfo`共享对象列表中获取。 + * @param width 最大宽度。返回的图标将是宽高相等的,输入的宽高不等时,取二者较小值。宽高范围为 [32,256],超出该范围将返回 `nullptr`,默认输出 100 x 100 的图像。 + * @param height 最大高度。参见 `width` 的说明。 + * @return 应用图标。当屏幕共享对象为应用窗体时有效,否则返回 `nullptr`。 + * @list 屏幕共享 + */ + +- (ByteRTCImage *_Nonnull)getWindowAppIcon:(intptr_t)sourceId width:(int)width height:(int)height; +#endif +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 使用 RTC SDK 内部采集模块开始采集屏幕音频流和(或)视频流。 + * @param type 媒体类型,参看 ByteRTCScreenMediaType{@link #ByteRTCScreenMediaType}。 + * @param bundleId 绑定 Extension 的 Bundle ID,绑定后应用中共享屏幕的选择列表中只展示你的 Extension 可供选择。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 或 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 当从 iOS 控制中心发起屏幕采集时无需调用本方法。 + * - 采集后,你还需要调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:} 和/或 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 发布采集到的屏幕音视频。 + * - 开启屏幕音频/视频采集成功后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 和 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @list 屏幕共享 + */ + +- (int)startScreenCapture:(ByteRTCScreenMediaType) type bundleId:(NSString *_Nullable)bundleId; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 更新内部屏幕采集时采集的媒体类型。 + * @param type 媒体类型,参看 ByteRTCScreenMediaType{@link #ByteRTCScreenMediaType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 你需在开启屏幕视频流采集后调用该方法。 + * - 本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 或 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 回调。 + * @list 屏幕共享 + */ + +- (int)updateScreenCapture:(ByteRTCScreenMediaType) type; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式采集屏幕音视频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:} 或 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 当从 iOS 控制中心发起屏幕采集时无需调用本方法。 + * - 本方法只会停止本地屏幕采集,并不会影响屏幕流的发布状态。 + * - 本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 和 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 的回调。 + * @list 屏幕共享 + */ + +- (int)stopScreenCapture; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 向屏幕共享 Extension 发送自定义消息 + * @param messsage 发送给 Extension 的消息内容 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在 startScreenCapture:bundleId:{@link #ByteRTCEngine#startScreenCapture:bundleId:} 后调用该方法。 + * - 通过 onReceiveMessageFromApp:{@link #ByteRtcScreenCapturerExtDelegate#onReceiveMessageFromApp:} 回调发送的消息。 + * @list 屏幕共享 + */ + +- (int)sendScreenCaptureExtensionMessage:(NSData *_Nonnull) messsage; +/** + * + * @hidden(iOS) + * @type api + * @brief 创建音频设备管理实例 + * @return ByteRTCAudioDeviceManager{@link #ByteRTCAudioDeviceManager} + * @list 音频管理 + */ + +- (ByteRTCAudioDeviceManager *_Null_unspecified)getAudioDeviceManager; +/** + * + * @hidden(iOS) + * @type api + * @brief 创建视频设备管理实例 + * @return 视频设备管理实例,详见 ByteRTCVideoDeviceManager{@link #ByteRTCVideoDeviceManager} + * @list 视频管理 + */ + +- (ByteRTCVideoDeviceManager * _Null_unspecified)getVideoDeviceManager NS_SWIFT_NAME(getVideoDeviceManager()); + +#pragma mark - FileRecording +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 该方法将通话过程中的音视频数据录制到本地的文件中。 + * @param recordingConfig 本地录制参数配置,参看 ByteRTCRecordingConfig{@link #ByteRTCRecordingConfig} + * @param recordingType 本地录制的媒体类型,参看 ByteRTCRecordingType{@link #ByteRTCRecordingType}
    + * 注意:屏幕流仅支持录制视频(ByteRTCRecordingTypeVideoOnly);主流支持录制所有类型。 + * @return + * - 0: 正常 + * - -1: 参数设置异常 + * - -2: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 该方法需在进房后调用。 + * - 调用该方法后,你会收到 rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:} 回调。 + * - 如果录制正常,系统每秒钟会通过 rtcEngine:onRecordingProgressUpdate:process:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingProgressUpdate:process:recording_info:} 回调通知录制进度。 + * @list 高级功能 + */ + +- (int)startFileRecording: (ByteRTCRecordingConfig* _Nonnull)recordingConfig type:(ByteRTCRecordingType)recordingType NS_SWIFT_NAME(startFileRecording(withRecordingConfig:type:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 停止本地录制 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 startFileRecording:type:{@link #ByteRTCEngine#startFileRecording:type:} 开启本地录制后,你必须调用该方法停止录制。 + * - 调用该方法后,你会收到 rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:{@link #ByteRTCEngineDelegate#rtcEngine:onRecordingStateUpdate:state:error_code:recording_info:} 回调提示录制结果。 + * @list 高级功能 + */ + +- (int)stopFileRecording; +/** + * + * @type api + * @brief 开始音频录制,并生成录音文件保存到本地。 + * @param recordingConfig 参看 ByteRTCAudioRecordingConfig{@link #ByteRTCAudioRecordingConfig} + * @return + * - 0: 正常 + * - -2: 参数设置异常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note + * - 调用该方法后,会立即启动录制任务并创建录音文件。 + * - 录制包含各种音频效果。但不包含背景音乐。 + * - 录制本地麦克风的音频时,请确保已调用 startAudioCapture{@link #ByteRTCEngine#startAudioCapture} 接口打开麦克风采集。 + * - 调用 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 关闭录制。 + * - 加入房间前后均可调用。在进房前调用该方法,退房之后,录制任务不会自动停止,需调用 stopAudioRecording{@link #ByteRTCEngine#stopAudioRecording} 关闭录制。在进房后调用该方法,退房之后,录制任务会自动被停止。如果加入了多个房间,录制的文件中会包含各个房间的音频。 + * - 调用该方法后,你会收到 rtcEngine:onAudioRecordingStateUpdate:error_code:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioRecordingStateUpdate:error_code:} 回调。 + * @list 高级功能 + */ + +- (int)startAudioRecording:(ByteRTCAudioRecordingConfig* _Nonnull) recordingConfig; +/** + * + * @type api + * @brief 停止音频文件录制 + * @return + * - 0: 正常 + * - -3: 当前版本 SDK 不支持该特性,请联系技术支持人员 + * @note 调用 startAudioRecording:{@link #ByteRTCEngine#startAudioRecording:} 开启本地录制。 + * @list 高级功能 + */ + +- (int)stopAudioRecording; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音效播放器实例。 + * @return 音效播放器。详见 ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer}。 + * @list 混音 + */ + +- (ByteRTCAudioEffectPlayer *_Nullable)getAudioEffectPlayer; + /** + * + * @valid since 3.53 + * @type api + * @brief 创建音乐播放器实例。 + * @param playerId 音乐播放器实例 id。取值范围为 `[0, 3]`。最多同时存在 4 个实例,超出取值范围时返回 nullptr。 + * @return 音乐播放器实例,详见 ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} + * @list 混音 + */ + +- (ByteRTCMediaPlayer *_Nullable)getMediaPlayer:(int)playerId; + +#pragma mark - Rtm +/** + * + * @type api + * @brief 登陆 RTS 服务器。
    + * 必须先登录,才能调用 sendUserMessageOutsideRoom:message:config:{@link #ByteRTCEngine#sendUserMessageOutsideRoom:message:config:} 和 sendServerMessage:{@link #ByteRTCEngine#sendServerMessage:} 发送房间外点对点消息和向应用服务器发送消息
    + * 在调用本接口登录后,如果想要登出,需要调用 logout{@link #ByteRTCEngine#logout} + * @param token 用户登录必须携带的 Token,用于鉴权验证。
    + * 测试时可使用[控制台](https: + * 正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token,`roomId` 置空,Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。 + * @param uid 用户 ID,在 appid 的维度下是唯一的。 + * @return + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 本地用户调用此方法登录后,会收到 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知登录结果,远端用户不会收到通知。 + * @list 消息 + */ + +- (int)login:(NSString * _Nonnull)token uid:(NSString * _Nonnull)uid; +/** + * + * @type api + * @brief 登出 RTS 服务器。
    + * 调用本接口登出后,无法调用房间外消息以及端到服务器消息相关的方法或收到相关回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口登出前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录 + * - 本地用户调用此方法登出后,会收到 rtcEngine:onLogout:{@link #ByteRTCEngineDelegate#rtcEngine:onLogout:} 回调通知结果,远端用户不会收到通知。 + * @list 消息 + */ + +- (int)logout; +/** + * + * @type api + * @brief 更新用户用于登录的 Token
    + * Token 有一定的有效期,当 Token 过期时,需调用此方法更新登录的 Token 信息。
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法登录时,如果使用了过期的 Token 将导致登录失败,并会收到 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知,错误码为 ByteRTCLoginErrorCodeInvalidToken。此时需要重新获取 Token,并调用此方法更新 Token。 + * @param token
    + * 更新的动态密钥 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果 Token 无效导致登录失败,则调用此方法更新 Token 后,SDK 会自动重新登录,而用户不需要自己调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法。 + * - Token 过期时,如果已经成功登录,则不会受到影响。Token 过期的错误会在下一次使用过期 Token 登录时,或因本地网络状况不佳导致断网重新登录时通知给用户。 + * @list 消息 + */ + +- (int)updateLoginToken:(NSString * _Nonnull)token; +/** + * + * @type api + * @brief 设置应用服务器参数
    + * 客户端调用 sendServerMessage:{@link #ByteRTCEngine#sendServerMessage:} 或 sendServerBinaryMessage:{@link #ByteRTCEngine#sendServerBinaryMessage:} 发送消息给应用服务器之前,必须设置有效签名和应用服务器地址。 + * @param signature 动态签名,应用服务器可使用该签名验证消息来源。
    + * 签名需自行定义,可传入任意非空字符串,建议将 uid 等信息编码为签名。
    + * 设置的签名会以 post 形式发送至通过本方法中 url 参数设置的应用服务器地址。 + * @param url 应用服务器的地址 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 用户必须调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 rtcEngine:onServerParamsSetResult:{@link #ByteRTCEngineDelegate#rtcEngine:onServerParamsSetResult:} 返回相应结果。 + * @list 消息 + */ + +- (int)setServerParams:(NSString * _Nonnull)signature url:(NSString * _Nonnull)url; +/** + * + * @type api + * @brief 查询对端用户或本端用户的登录状态 + * @param peerUserId
    + * 需要查询的用户 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 必须调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录后,才能调用本接口。 + * - 调用本接口后,SDK 会使用 rtcEngine:onGetPeerOnlineStatus:status:{@link #ByteRTCEngineDelegate#rtcEngine:onGetPeerOnlineStatus:status:} 回调通知查询结果。 + * - 在发送房间外消息之前,用户可以通过本接口了解对端用户是否登录,从而决定是否发送消息。也可以通过本接口查询自己的登录状态。 + * @list 消息 + */ + +- (int)getPeerOnlineStatus:(NSString * _Nonnull)peerUserId; +/** + * + * @type api + * @brief 给房间外指定的用户发送文本消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param messageStr 发送的文本消息内容。消息不超过 64 KB。 + * @param config 消息类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外文本消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录。 + * - 用户调用本接口发送文本信息后,会收到一次 rtcEngine:onUserMessageSendResultOutsideRoom:error:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageSendResultOutsideRoom:error:} 回调,得知消息是否成功发送; + * - 若文本消息发送成功,则 userId 所指定的用户会通过 rtcEngine:onUserMessageReceivedOutsideRoom:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageReceivedOutsideRoom:message:} 回调收到该消息。 + * @list 消息 + */ + +- (NSInteger)sendUserMessageOutsideRoom:(NSString * _Nonnull)userId message:(NSString * _Nonnull)messageStr config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 给房间外指定的用户发送二进制消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param messageStr 发送的二进制消息内容。消息不超过 64KB。 + * @param config 消息类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在发送房间外二进制消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录。 + * - 用户调用本接口发送二进制消息后,会收到一次 rtcEngine:onUserMessageSendResultOutsideRoom:error:{@link #ByteRTCEngineDelegate#rtcEngine:onUserMessageSendResultOutsideRoom:error:} 回调,通知消息是否发送成功; + * - 若二进制消息发送成功,则 userId 所指定的用户会通过 rtcEngine:onUserBinaryMessageReceivedOutsideRoom:message:{@link #ByteRTCEngineDelegate#rtcEngine:onUserBinaryMessageReceivedOutsideRoom:message:} 回调收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendUserBinaryMessageOutsideRoom:(NSString * _Nonnull)userId message:(NSData * _Nonnull)messageStr config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 客户端给应用服务器发送文本消息(P2Server)。 + * @param messageStr 发送的文本消息内容。消息不超过 64 KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送文本消息前,必须先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录,随后调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置应用服务器。 + * - 调用本接口后,会收到一次 rtcEngine:onServerMessageSendResult:error:message:{@link #ByteRTCEngineDelegate#rtcEngine:onServerMessageSendResult:error:message:} 回调,通知消息发送方是否发送成功。 + * - 若文本消息发送成功,则之前调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendServerMessage:(NSString * _Nonnull)messageStr; +/** + * + * @type api + * @brief 客户端给应用服务器发送二进制消息(P2Server)。 + * @param messageStr 发送的二进制消息内容。消息不超过 64KB。 + * @return + * - >0:发送成功,返回这次发送消息的编号,从 1 开始递增。 + * - -1:发送失败。消息为空。 + * @note + * - 调用本接口前,请确保已在 RTC 控制台[启用 RTS 高级功能](https: + * > 若在 SDK 运行期间开启了该功能,则必须重新初始化引擎,配置才能生效。 + * - 在向应用服务器发送二进制消息前,先调用 login:uid:{@link #ByteRTCEngine#login:uid:} 完成登录,随后调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置应用服务器。 + * - 调用本接口后,会收到一次 rtcEngine:onServerMessageSendResult:error:message:{@link #ByteRTCEngineDelegate#rtcEngine:onServerMessageSendResult:error:message:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则之前调用 setServerParams:url:{@link #ByteRTCEngine#setServerParams:url:} 设置的应用服务器会收到该条消息。 + * @list 消息 + */ + +- (NSInteger)sendServerBinaryMessage:(NSData * _Nonnull)messageStr; +/** + * + * @type api + * @brief 开始通话前网络探测 + * @param isTestUplink 是否探测上行带宽 + * @param expectedUplinkBitrate 期望上行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @param isTestDownlink 是否探测下行带宽 + * @param expectedDownlinkBitrate 期望下行带宽,单位:kbps
    范围为 {0, [100-10000]},其中, `0` 表示由 SDK 指定最高码率。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 成功调用本接口后,会在 3s 内收到一次 rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:} 回调,此后每 2s 会收到一次该回调,通知探测结果; + * - 若探测停止,则会收到一次 rtcEngine:onNetworkDetectionStopped:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionStopped:} 通知探测停止。 + * @list 网络管理 + */ + +- (int)startNetworkDetection:(bool)isTestUplink uplinkBandwidth:(int)expectedUplinkBitrate downlink:(bool)isTestDownlink downlinkBandwidth:(int)expectedDownlinkBitrate; +/** + * + * @type api + * @brief 停止通话前网络探测 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 调用本接口后,会收到一次 rtcEngine:onNetworkDetectionStopped:{@link #ByteRTCEngineDelegate#rtcEngine:onNetworkDetectionStopped:} 通知探测停止。 + * @list 网络管理 + */ + +- (int)stopNetworkDetection; +#pragma mark ScreenAudio +/** + * + * @type api + * @brief 在屏幕共享时,设置屏幕音频的采集方式(内部采集/自定义采集) + * @param sourceType 屏幕音频输入源类型, 参看 ByteRTCAudioSourceType{@link #ByteRTCAudioSourceType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 默认采集方式是 RTC SDK 内部采集。 + * - 如果设定为内部采集,你必须重新开始采集。 + * - 如果设定为自定义采集,你必须再调用 pushScreenAudioFrame:{@link #ByteRTCEngine#pushScreenAudioFrame:} 将自定义采集到的屏幕音频帧推送到 RTC SDK。 + * - 无论是内部采集还是自定义采集,你都必须调用 publishScreenAudio: 将采集到的屏幕音频发布给远端。 + * @list 屏幕共享 + * @order 6 + */ + +- (int)setScreenAudioSourceType:(ByteRTCAudioSourceType)sourceType; + +/** + * + * @type api + * @brief 使用自定义采集方式,采集屏幕共享时的屏幕音频时,将音频帧推送至 RTC SDK 处进行编码等处理。 + * @param audioFrame 音频数据帧,参见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}
    + * - 音频采样格式为 S16。音频缓冲区内的数据格式必须为 PCM 数据,其容量大小应该为 samples × frame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return 方法调用结果
    + * - 0: 设置成功。 + * - < 0: 设置失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用此接口推送屏幕共享时的自定义采集的音频数据前,必须调用 setScreenAudioSourceType:{@link #ByteRTCEngine#setScreenAudioSourceType:} 开启屏幕音频自定义采集。 + * - 你应每隔 10 毫秒,调用一次此方法推送一次自定义采集的音频帧。一次推送的音频帧中应包含 frame.sample_rate / 100 个音频采样点。比如,假如采样率为 48000Hz,则每次应该推送 480 个采样点。 + * - 调用此接口将自定义采集的音频帧推送到 RTC SDK 后,你必须调用 publishScreenAudio: 将采集到的屏幕音频推送到远端。在调用 publishScreenAudio: 前,推送到 RTC SDK 的音频帧信息会丢失。 + * @list 屏幕共享 + * @order 9 + */ + +- (int) pushScreenAudioFrame:(ByteRTCAudioFrame* _Nonnull)audioFrame; + +#if BYTERTC_TARGET_MAC +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,开始使用 RTC SDK 内部采集方式,采集屏幕音频 + * @param deviceId 虚拟设备 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 本接口仅对内部采集生效,RTC SDK 默认使用内部采集模块采集屏幕音频。若已调用 setScreenAudioSourceType:{@link #ByteRTCEngine#setScreenAudioSourceType:} 将音频输入源设置为 `ByteRTCAudioSourceTypeExternal` 自定义采集,需先切换为 `ByteRTCAudioSourceTypeInternal` 内部采集,否则该接口调用无效,并将触发 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 采集后,你还需要调用 publishScreenAudio: 将采集到的屏幕音频推送到远端。 + * - 要关闭屏幕音频内部采集,调用 stopScreenAudioCapture{@link #ByteRTCEngine#stopScreenAudioCapture}。 + * @list 屏幕共享 + */ + +- (int)startScreenAudioCapture:(NSString *_Nonnull)deviceId; +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式,采集屏幕音频。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:} 回调。 + * - 要开始屏幕音频内部采集,调用 startScreenAudioCapture:{@link #ByteRTCEngine#startScreenAudioCapture:}。 + * @list 屏幕共享 + */ + +- (int)stopScreenAudioCapture; +/** + * + * @hidden(iOS) + * @type api + * @brief 在屏幕共享时,设置屏幕音频流的声道数 + * @param channel 声道数,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 当你调用 setScreenAudioStreamIndex: 并设置屏幕音频流和麦克风音频流混流时,此接口不生效,音频通道数由 setAudioProfile:{@link #ByteRTCEngine#setAudioProfile:} 控制。 + * @list 屏幕共享 + */ + +- (int)setScreenAudioChannel:(ByteRTCAudioChannel) channel; + +#endif + +#pragma mark EncodedVideo +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 设置向 SDK 输入的视频源,包括屏幕流
    + * 默认使用内部采集。内部采集指:使用 RTC SDK 内置的视频采集机制进行视频采集。 + * @param type 视频输入源类型,参看 ByteRTCVideoSourceType{@link #ByteRTCVideoSourceType} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法进房前后均可调用。 + * - 当你已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集后,再调用此方法切换至自定义采集时,SDK 会自动关闭内部采集。 + * - 当你调用此方法开启自定义采集后,想要切换至内部采集,你必须先调用此方法关闭自定义采集,然后调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 手动开启内部采集。 + * - 当你需要向 SDK 推送自定义编码后的视频帧,你需调用该方法将视频源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + +- (int)setVideoSourceType:(ByteRTCVideoSourceType)type NS_SWIFT_NAME(setVideoSourceType(_:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册自定义编码帧推送事件回调 + * @param handler 自定义编码帧回调类,参看 ByteRTCExternalVideoEncoderEventHandler{@link #ByteRTCExternalVideoEncoderEventHandler} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法需在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + +- (int)setExternalVideoEncoderEventHandler:(id _Nullable)handler; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 推送自定义编码后的视频流 + * @param videoIndex 对应的编码流下标,从 0 开始,如果调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 设置了多路流,此处数量须与之保持一致 + * @param videoFrame 编码流视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 目前仅支持推送 H264 和 ByteVC1 格式的视频帧,且视频流协议格式须为 Annex B 格式。 + * - 该函数运行在用户调用线程内 + * - 推送自定义编码视频帧前,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 将视频输入源切换至自定义编码视频源。 + * @list 自定义流处理 + */ + +- (int)pushExternalEncodedVideoFrame: (NSInteger)videoIndex + withEncodedVideoFrame:(ByteRTCEncodedVideoFrame* _Nonnull)videoFrame NS_SWIFT_NAME(pushExternalEncodedVideoFrame(withVideoIndex:withEncodedVideoFrame:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之前,设置远端视频数据解码方式 + * @param streamId 远端流 ID。 + * @param config 视频解码方式,参看 ByteRTCVideoDecoderConfig{@link #ByteRTCVideoDecoderConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 当你想要对远端流进行自定义解码时,你需要先调用 registerRemoteEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedVideoFrameObserver:} 注册远端视频流监测器,然后再调用该接口将解码方式设置为自定义解码。监测到的视频数据会通过 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:} 回调出来。 + * - 自 3.56 起,要用于自动订阅场景下,你可以设置 `streamId` 为特定值(若有对应逻辑),此时,通过此接口设置的解码方式根据 `streamId` 的相关逻辑,适用于所有的远端主流或屏幕流的解码方式。 + * @list 自定义流处理 + */ + +- (int)setVideoDecoderConfig:(NSString* _Nonnull)streamId + withVideoDecoderConfig:(ByteRTCVideoDecoderConfig)config NS_SWIFT_NAME(setVideoDecoderConfig(_:withVideoDecoderConfig:)); + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在订阅远端视频流之后,向远端请求关键帧 + * @param streamId 远端流 ID。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 + * - 该方法适用于调用 setVideoDecoderConfig:withVideoDecoderConfig:{@link #ByteRTCEngine#setVideoDecoderConfig:withVideoDecoderConfig:} 开启自定义解码功能后,并且自定义解码失败的情况下使用 + * @list 音视频传输 + */ + +- (int)requestRemoteVideoKeyFrame:(NSString* _Nonnull)streamId; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 注册远端编码后视频数据回调。
    + * 完成注册后,当 SDK 监测到远端编码后视频帧时,会触发 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:} 回调 + * @param observer 远端编码后视频数据监测器,参看 ByteRTCRemoteEncodedVideoFrameObserver{@link #ByteRTCRemoteEncodedVideoFrameObserver} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 更多自定义解码功能说明参看 [自定义视频编解码](https: + * - 该方法适用于手动订阅,并且进房前后均可调用,建议在进房前调用。 + * - 引擎销毁前需取消注册,调用该方法将参数设置为 nullptr 即可。 + * @list 自定义流处理 + */ + +- (int)registerRemoteEncodedVideoFrameObserver:(id _Nullable)observer NS_SWIFT_NAME(registerRemoteEncodedVideoFrameObserver(_:)); +#pragma mark StreamSyncInfo +/** + * + * @type api + * @brief 发送音频流同步信息。将消息通过音频流发送到远端,并实现与音频流同步,该接口调用成功后,远端用户会收到 rtcEngine:onStreamSyncInfoReceived:info:streamType:data:{@link #ByteRTCEngineDelegate#rtcEngine:onStreamSyncInfoReceived:info:streamType:data:} 回调。 + * @param data 消息内容。 + * @param config 媒体流信息同步的相关配置,详见 ByteRTCStreamSyncInfoConfig{@link #ByteRTCStreamSyncInfoConfig} 。 + * @return + * - >=0: 消息发送成功。返回成功发送的次数。 + * - -1: 消息发送失败。消息长度大于 255 字节。 + * - -2: 消息发送失败。传入的消息内容为空。 + * - -3: 消息发送失败。通过屏幕流进行消息同步时,此屏幕流还未发布。 + * - -4: 消息发送失败。通过用麦克风或自定义设备采集到的音频流进行消息同步时,此音频流还未发布,详见错误码 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @note + * - 调用本接口的频率建议不超过 50 次每秒。 + * - 在 `ByteRTCRoomProfileInteractivePodcast` 房间模式下,此消息一定会送达。在其他房间模式下,如果本地用户未说话,此消息不一定会送达。 + * @list 消息 + */ + +- (int)sendStreamSyncInfo:(NSData* _Nonnull)data config:(ByteRTCStreamSyncInfoConfig * _Nonnull)config; +/** + * + * @type api + * @brief 开启音视频回路测试。
    + * 在进房前,用户可调用该接口对音视频通话全链路进行检测,包括对音视频设备以及用户上下行网络的检测,从而帮助用户判断是否可以正常发布和接收音视频流。
    + * 开始检测后,SDK 会录制你的声音或视频。如果你在设置的延时范围内收到了回放,则视为音视频回路测试正常。 + * @param echoConfig 回路测试参数设置,参看 ByteRTCEchoTestConfig{@link #ByteRTCEchoTestConfig}。 + * @param delayTime 音视频延迟播放的时间间隔,用于指定在开始检测多长时间后期望收到回放。取值范围为 [2,10],单位为秒,默认为 2 秒。 + * @return 方法调用结果:
    + * - 0:成功 + * - -2:失败,参数异常 + * - -4:失败,用户已进房 + * - -6:失败,当前用户已经在检测中 + * - -7:失败,音视频均不检查 + * - -8:失败,已经存在相同 roomId 的房间 + * @note + * - 调用该方法开始音视频回路检测后,你可以调用 stopEchoTest{@link #ByteRTCEngine#stopEchoTest} 立即结束测试,也可等待测试 60s 后自动结束,以更换设备进行下一次测试,或进房。 + * - 在该方法之前调用的所有跟设备控制、流控制相关的方法均在开始检测时失效,在结束检测后恢复生效。 + * - 在调用 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:} 和 stopEchoTest{@link #ByteRTCEngine#stopEchoTest} 之间调用的所有跟设备采集、流控制、进房相关的方法均不生效,并会收到 rtcEngine:onWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onWarning:} 回调,提示警告码为 `ByteRTCWarningCodeInEchoTestMode`。 + * - 音视频回路检测的结果会通过 rtcEngine:onEchoTestResult:{@link #ByteRTCEngineDelegate#rtcEngine:onEchoTestResult:} 回调通知。 + * @list 网络管理 + */ + +- (int)startEchoTest:(ByteRTCEchoTestConfig *_Nullable)echoConfig playDelay:(NSInteger)delayTime; +/** + * + * @type api + * @brief 停止音视频回路测试。
    + * 调用 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:} 开启音视频回路检测后,你必须调用该方法停止检测。 + * @return 方法调用结果:
    + * - 0:成功 + * - -3:失败,未开启回路检测。 + * @note 音视频回路检测结束后,所有对系统设备及音视频流的控制均会恢复到开始检测前的状态。 + * @list 网络管理 + */ + +- (int)stopEchoTest; +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 在指定视频流上添加水印。 + * @param imagePath 水印图片路径,仅支持本地文件绝对路径,长度限制为 512 字节。
    + * 水印图片为 PNG 或 JPG 格式。 + * @param rtcWatermarkConfig 水印参数,参看 ByteRTCVideoWatermarkConfig{@link #ByteRTCVideoWatermarkConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - iOS 端,屏幕共享时,不支持调用该接口设置水印。 + * - 调用 clearVideoWatermark{@link #ByteRTCEngine#clearVideoWatermark} 移除指定视频流的水印。 + * - 同一视频流只能设置一个水印,新设置的水印会替换上一次的设置。你可以多次调用本方法来设置不同视频流的水印。 + * - 进入房间前后均可调用此方法。 + * - 若开启本地预览镜像,或开启本地预览和编码传输镜像,则远端水印均不镜像;在开启本地预览水印时,本端水印会镜像。 + * - 开启大小流后,水印对大小流均生效,且针对小流进行等比例缩小。 + * @list 视频处理 + */ + +- (int)setVideoWatermark: (NSString * _Nullable)imagePath + withRtcWatermarkConfig:(ByteRTCVideoWatermarkConfig* _Nonnull)rtcWatermarkConfig; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 移除指定视频流的水印。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 视频处理 + */ + +- (int)clearVideoWatermark; + +/** + * + * @type api + * @hiddensdk(audiosdk) + * @brief 截取本地视频画面 + * @param callback 本地截图的回调。参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 + * @return 本地截图任务的编号,从 `1` 开始递增。 + * @note + * - 对截取的画面,包含本地视频处理的全部效果,包含旋转,镜像,美颜等。 + * - 不管采用 SDK 内部采集,还是自定义采集,都可以进行截图。 + * @list 高级功能 + */ + +- (NSInteger)takeLocalSnapshot:(id _Nullable)callback; +/** + * + * @type api + * @valid since 3.60. + * @brief 截取本地的视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 rtcEngine:onLocalSnapshotTakenToFile:filePath:width:height:errorCode:taskId:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalSnapshotTakenToFile:filePath:width:height:errorCode:taskId:} 报告截图是否成功,以及截取的图片信息。 + * @param filePath 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。示例:`/Users/YourName/Pictures/snapshot.jpg`。 + * @return 本地截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + +- (NSInteger)takeLocalSnapshotToFile:(NSString * _Nonnull)filePath; +/** + * + * @type api + * @brief 截取远端视频画面,并保存到本地指定路径。 + * @param streamId 截图的视频流对应的 ID。 + * @param callback 参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 + * @return 远端截图任务的编号,从 `1` 开始递增。 + * @list 高级功能 + */ + +- (NSInteger)takeRemoteSnapshot:(NSString* _Nonnull)streamId callback:(id _Nullable)callback; + +/** + * + * @type api + * @valid since 3.60. + * @brief 截取远端的视频流画面,生成 JPG 文件,并保存到本地指定路径。
    + * 调用该方法后,SDK 会触发回调 rtcEngine:onRemoteSnapshotTakenToFile:info:filePath:width:height:errorCode:taskId:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteSnapshotTakenToFile:info:filePath:width:height:errorCode:taskId:} 报告截图是否成功,以及截取的图片信息。 + * @param streamId 待截取的远端视频流 ID。 + * @param filePath 截图的本地保存路径(绝对路径),需精确到文件名及格式,文件扩展名必须为 `.jpg`,并请确保路径存在且可写。示例:`/Users/YourName/Pictures/snapshot.jpg`。 + * @return 远端截图任务的编号,从 `1` 开始递增。此编号可用于追踪任务状态或进行其他管理操作。 + * @list 高级功能 + */ + +- (NSInteger)takeRemoteSnapshotToFile:(NSString* _Nonnull)streamId filePath:(NSString * _Nonnull)filePath; + +/** + * + * @type api + * @brief 开启云代理 + * @param cloudProxiesInfo 云代理服务器信息列表。参看 ByteRTCCloudProxyInfo{@link #ByteRTCCloudProxyInfo}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在加入房间前调用此接口 + * - 在开启云代理后,进行通话前网络探测 + * - 开启云代理后,并成功连接云代理服务器后,会收到 rtcEngine:onCloudProxyConnected:{@link #ByteRTCEngineDelegate#rtcEngine:onCloudProxyConnected:}。 + * - 要关闭云代理,调用 stopCloudProxy{@link #ByteRTCEngine#stopCloudProxy}。 + * @list 通话加密 + */ + +- (int)startCloudProxy:(NSArray * _Nullable)cloudProxiesInfo; +/** + * + * @type api + * @brief 关闭云代理 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 要开启云代理,调用 startCloudProxy:{@link #ByteRTCEngine#startCloudProxy:} + * @list 通话加密 + */ + +- (int)stopCloudProxy; +/** + * + * @type api + * @hidden + * @brief 创建 K 歌评分管理接口。 + * @return K 歌评分管理接口,详见 ByteRTCSingScoringManager{@link #ByteRTCSingScoringManager}。 + * @note 如需使用 K 歌评分功能,即调用该方法以及 `ByteRTCSingScoringManager` 类下全部方法,需集成 SAMI 动态库,详情参看[按需集成插件](https: + * @list 在线 KTV + */ + +- (ByteRTCSingScoringManager *_Nullable)getSingScoringManager; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 摄像头处于关闭状态时,使用静态图片填充本地推送的视频流。
    + * 调用 `stopVideoCapture` 接口时,会开始推静态图片。若要停止发送图片,可传入空字符串或启用内部摄像头采集。
    + * 可重复调用该接口来更新图片。 + * @param filePath 设置静态图片的路径。
    + * 支持本地文件绝对路径,不支持网络链接,长度限制为 512 字节。
    + * 静态图片支持类型为 JPEG/JPG、PNG、BMP。
    + * 若图片宽高比与设置的编码宽高比不一致,图片会被等比缩放,黑边填充空白区域。推流帧率与码率与设置的编码参数一致。 + * @return + * - 0: 成功。 + * - -2: 失败。确保传入的 filePath 为有效路径。 + * - -12: 本方法不支持在 Audio SDK 中使用。 + * @note + * - 该接口只适用于 SDK 内部摄像头采集,不适用于自定义视频采集。 + * - 本地预览无法看到静态图片。 + * - 进入房间前后均可调用此方法。在多房间场景中,静态图片仅在发布的房间中生效。 + * - 针对该静态图片,滤镜和镜像效果不生效,水印效果生效。 + * - 只有主流能设置静态图片,屏幕流不支持设置。 + * - 开启大小流后,静态图片对大小流均生效,且针对小流进行等比例缩小。 + * @list 音视频传输 + */ + +- (int)setDummyCaptureImagePath:(NSString * _Nonnull)filePath; +/** + * + * @type api + * @brief 通过 NTP 协议,获取网络时间。 + * @return 网络时间。参看 ByteRTCNetworkTimeInfo{@link #ByteRTCNetworkTimeInfo}。 + * @note + * 第一次调用此接口会启动网络时间同步功能,并返回 `0`。同步完成后,会收到 rtcEngineOnNetworkTimeSynchronized:{@link #ByteRTCEngineDelegate#rtcEngineOnNetworkTimeSynchronized:},此后,再次调用此 API,即可获取准确的网络时间。 + * @list 网络管理 + */ + +- (ByteRTCNetworkTimeInfo *_Nonnull)getNetworkTimeInfo; +/** + * + * @type api + * @hidden internal use only + * @brief 在听众端,设置订阅的所有远端音频流精准对齐后播放。 + * @param streamId 作为对齐基准的远端音频流对应的id。
    + * 一般选择主唱的音频流。
    + * 你必须在收到 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:},确认此音频流已发布后,调用此 API。 + * @param mode 是否对齐,默认不对齐。参看 ByteRTCAudioAlignmentMode{@link #ByteRTCAudioAlignmentMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 你必须在实时合唱场景下使用此功能。在加入房间时,所有人应设置 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileChorus`。 + * - 订阅的所有远端流必须通过 startAudioMixing:filePath:config: 开启了背景音乐混音,并将 ByteRTCAudioMixingConfig 中的 `syncProgressToRecordFrame` 设置为 `true`。 + * - 如果订阅的某个音频流延迟过大,可能无法实现精准对齐。 + * - 合唱的参与者不应调用此 API,因为调用此 API 会增加延迟。如果希望从听众变为合唱参与者,应关闭对齐功能。 + * @list 在线 KTV + */ + +- (int)setAudioAlignmentProperty:(NSString* _Nonnull)streamId + withMode:(ByteRTCAudioAlignmentMode)mode; + +#pragma mark - KTV +/** + * + * @hidden + * @type api + * @brief 创建 KTV 管理接口。 + * @return KTV 管理接口,参看 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @list 在线 KTV + */ + +- (ByteRTCKTVManager * _Nullable)getKTVManager; +/** + * + * @type api + * @brief 开启通话前回声检测 + * @param testAudioFilePath 用于回声检测的音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。
    + * 音频文件不为静音文件,推荐时长为 10 ~ 20 秒。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。上一次检测未结束,请先调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测 后重新调用本接口。 + * - -2:失败。路径不合法或音频文件格式不支持。 + * @note + * - 只有当 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileMeeting` 和 `ByteRTCRoomProfileMeetingRoom` 时支持开启本功能。 + * - 开启检测前,你需要向用户获取音频设备的使用权限。 + * - 开启检测前,请确保音频设备没有被静音,采集和播放音量正常。 + * - 调用本接口后监听 rtcEngine:onHardwareEchoDetectionResult:{@link #ByteRTCEngineDelegate#rtcEngine:onHardwareEchoDetectionResult:} 获取检测结果。 + * - 检测期间,进程将独占音频设备,无法使用其他音频设备测试接口 startEchoTest:playDelay:{@link #ByteRTCEngine#startEchoTest:playDelay:}。 + * - 调用 stopHardwareEchoDetection{@link #ByteRTCEngine#stopHardwareEchoDetection} 停止检测,释放对音频设备的占用。 + * @list 音频管理 + */ + +- (int)startHardwareEchoDetection:(NSString * _Nonnull)testAudioFilePath; +/** + * + * @type api + * @brief 停止通话前回声检测 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败。 + * @note + * - 关于开启通话前回声检测,参看 startHardwareEchoDetection:{@link #ByteRTCEngine#startHardwareEchoDetection:} 。 + * - 建议在收到 rtcEngine:onHardwareEchoDetectionResult:{@link #ByteRTCEngineDelegate#rtcEngine:onHardwareEchoDetectionResult:} 通知的检测结果后,调用本接口停止检测。 + * - 在用户进入房间前结束回声检测,释放对音频设备的占用,以免影响正常通话。 + * @list 音频管理 + */ + +- (int)stopHardwareEchoDetection; +/** + * + * @hidden(macOS) + * @type api + * @hiddensdk(audiosdk) + * @brief 启用蜂窝网络辅助增强,改善通话质量。 + * @param config 参看 ByteRTCMediaTypeEnhancementConfig{@link #ByteRTCMediaTypeEnhancementConfig}。 + * @return 方法调用结果:
    + * - 0: 成功。 + * - -1:失败,内部错误。 + * - -2: 失败,输入参数错误。 + * @note 此功能默认不开启。 + * @list 网络管理 + */ + +- (int)setCellularEnhancement:(ByteRTCMediaTypeEnhancementConfig * _Nonnull)config; + /** + * + * @type api + * @brief 设置本地代理。 + * @param configurations 本地代理配置参数。参看 ByteRTCLocalProxyInfo{@link #ByteRTCLocalProxyInfo}。
    + * 你可以根据自己的需要选择同时设置 Http 隧道 和 Socks5 两类代理,或者单独设置其中一类代理。如果你同时设置了 Http 隧道 和 Socks5 两类代理,此时,媒体和信令采用 Socks5 代理, Http 请求采用 Http 隧道代理;如果只设置 Http 隧道 或 Socks5 一类代理,媒体、信令和 Http 请求均采用已设置的代理。
    + * 调用此接口设置本地代理后,若想清空当前已有的代理设置,可再次调用此接口,选择不设置任何代理即可清空。 + * @note + * - 该方法需要在进房前调用。 + * - 调用该方法设置本地代理后,SDK 会触发 rtcEngine:onLocalProxyStateChanged:withProxyState:withProxyError:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalProxyStateChanged:withProxyState:withProxyError:} ,返回代理连接的状态。 + * @list 通话加密 + */ + +- (int)setLocalProxy:(NSArray * _Nonnull)configurations; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h new file mode 100644 index 0000000..913c340 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCEngineEx.h @@ -0,0 +1,336 @@ +#import "ByteRTCEngine.h" +#import "rtc/ByteRTCVideoDefinesEx.h" + +@class ByteRTCEngineEx; +@class ByteRTCRoomEx; + +/** + * + * @type callback + * @brief ByteRTCEngineDelegateEx Class
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ +@protocol ByteRTCEngineDelegateEx +@optional + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@end +/** + * + * @type api + * @brief ByteRTCEngineEx class + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCEngineEx : ByteRTCEngine +/** +* +* @type api +* @brief 创建 ByteRTCEngineEx 实例。
    +* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    +* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回已创建的引擎实例。 +* @param appId 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 +* @param delegate SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} 。 +* @param delegateEx SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx} 。 +* @param parameters 私有参数。如需使用请联系技术支持人员。 +* @return ByteRTCVideoEx:创建成功。返回一个可用的 ByteRTCEngineEx{@link #ByteRTCEngineEx} 实例 +*/ ++ (ByteRTCEngineEx* _Nullable)createRTCEngineEx:(ByteRTCEngineConfig * _Nonnull) config + delegate:(id _Nullable)delegate; + +/** +* +* @type api +* @brief 创建 ByteRTCEngineEx 实例。
    +* 如果当前进程中未创建引擎实例,那么你必须先使用此方法,以使用 RTC 提供的各种音视频能力。
    +* 如果当前进程中已创建了引擎实例,再次调用此方法时,会返回新创建的引擎实例。 +* @param appId 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 +* @param delegate SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegate{@link #ByteRTCEngineDelegate} 。 +* @param delegateEx SDK 回调给应用层的 Callback 对象,详见 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx} 。 +* @param parameters 私有参数。如需使用请联系技术支持人员。 +* @return ByteRTCVideoEx:创建成功。返回一个可用的 ByteRTCEngineEx{@link #ByteRTCEngineEx} 实例 +*/ ++ (ByteRTCEngine* _Nullable)createRTCEngineExMulti:(ByteRTCEngineConfig* _Nonnull)config + delegate:(id _Nullable)delegate; + +/** + * + * @type api + * @brief 销毁由 ByteRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 ByteRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 ByteRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 ByteRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ ++ (void)destroyRTCEngineEx NS_SWIFT_NAME(destroyRTCVideoEx()); + + +/** + * + * @type api + * @brief 销毁由createRTCEngineExMulti:delegate:parameters::delegateEx:parameters{@link #ByteRTCEngineEx#createRTCEngineExMulti:delegate:parameters:delegateEx:parameters} ByteRTCEngineEx 实例,并释放所有相关资源。 + * @note + * + 请确保和需要销毁的 ByteRTCEngineEx 实例相关的业务场景全部结束后,才调用此方法。如果在多线程场景下,调用此接口后,又调用了其他 ByteRTCEngineEx 相关接口,可能导致 SDK 崩溃。该方法在调用之后,会销毁所有和此 ByteRTCEngineEx 实例相关的内存,并且停止与媒体服务器的任何交互。
    + * + 调用本方法会启动 SDK 退出逻辑。引擎线程会保留,直到退出逻辑完成。因此,不要在回调线程中直接调用此 API,会导致死锁。同时此方法是耗时操作,不建议在主线程调用本方法,避免主线程阻塞。 + */ ++ (void)destroyRTCEngineExMulti:(ByteRTCEngineEx*)engine; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param delegateEx 参看 ByteRTCEngineDelegateEx{@link #ByteRTCEngineDelegateEx}。 + */ +- (void)setDelegateEx:(id _Nullable)delegateEx; +/** + * + * @type api + * @brief 创建 ByteRTCRoomEx{@link #ByteRTCRoomEx} 实例。
    + * 调用此方法仅返回一个房间实例,你仍需调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 才能真正地创建/加入房间。 + * @param roomId 标识通话房间的房间 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + * @return 创建的 ByteRTCRoomEx{@link #ByteRTCRoomEx} 房间实例。 + * @note 请勿使用同样的 roomId 创建多个房间,否则后创建的房间实例会替换先创建的房间实例。 + */ +- (ByteRTCRoomEx* _Nullable)createRTCRoomEx:(NSString* _Nonnull)roomId; +/** + * + * @type api + * @brief 设置视频源的相关配置。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 参看 ByteRTCVideoSourceConfig{@link #ByteRTCVideoSourceConfig}。 + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ +- (int)setVideoSource:(ByteRTCStreamIndex)streamIndex videoSourceConfig:(ByteRTCVideoSourceConfig* _Nonnull)config; +/** + * + * @type api + * @region 自定义流处理 + * @brief 推送外部视频帧。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param frame 该视频帧包含待 SDK 编码的视频数据,参考 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note 推送外部视频帧前,必须调用 setVideoSource:videoSourceConfig:{@link #ByteRTCEngineEx#setVideoSource:videoSourceConfig:} 开启外部视频源采集。 + */ +- (int)pushExternalVideoFrame:(ByteRTCStreamIndex)streamIndex videoFrame:(ByteRTCVideoFrameData* _Nonnull)frame; +/** + * + * @type api + * @brief 设置流的优先级。
    + * 在网络条件有限的情况下,优先保障高优先级视频流的清晰度和流畅度,优先保障高优先级流的音频流畅度和音质。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param priority 参看 ByteRTCStreamPriority{@link #ByteRTCStreamPriority}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setLocalStreamPriority:(ByteRTCStreamIndex)streamIndex priority:(ByteRTCStreamPriority)priority; +/** + * + * @type api + * @brief 设置 RTC SDK 内部采集时的视频采集参数。
    + * 如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数,包括模式、分辨率、帧率。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param captureConfig 视频采集参数。参看: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture:deviceId:{@link #ByteRTCEngineEx#startVideoCapture:deviceId:} 前调用本接口。
    + * + 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。 + */ +- (int)setVideoCaptureConfig:(ByteRTCStreamIndex)streamIndex + captureConfig:(ByteRTCVideoCaptureConfig* _Nullable)captureConfig; + +#if BYTERTC_TARGET_MAC +/** + * + * @type api + * @brief 立即开启内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 本地用户在非隐身状态下调用该方法后,房间中的其他用户会收到 rtcEngine:onUserStartVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStartVideoCapture:info:} 的回调。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param deviceId 设备 ID + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用 stopVideoCapture:{@link #ByteRTCEngineEx#stopVideoCapture:} 可以停止内部视频采集。否则,只有当销毁引擎实例时,内部视频采集才会停止。
    + * + 创建引擎后,无论是否发布视频数据,你都可以调用该方法开启内部视频采集。只有当(内部或外部)视频采集开始以后视频流才会发布。
    + * + 如果需要从自定义视频采集切换为内部视频采集,你必须先关闭自定义采集,再调用此方法手动开启内部采集。 + */ +- (int)startVideoCapture:(ByteRTCStreamIndex)streamIndex deviceId:(NSString* _Nonnull)deviceId; +#endif +/** + * + * @type api + * @brief 立即关闭内部视频采集。默认为关闭状态。
    + * 内部视频采集指:使用 RTC SDK 内置视频采集模块,进行采集。
    + * 调用该方法后,本地用户会收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 的回调。
    + * 非隐身用户进房后调用该方法,房间中的其他用户会收到 rtcEngine:onUserStopVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopVideoCapture:info:} 的回调。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用 startVideoCapture:deviceId{@link #ByteRTCEngineEx#startVideoCapture:deviceId:} 可以开启内部视频采集。
    + * + 如果不调用本方法停止内部视频采集,则只有当销毁引擎实例时,内部视频采集才会停止。 + */ +- (int)stopVideoCapture:(ByteRTCStreamIndex)streamIndex; + +/** + * + * @type api + * @brief 设置音频源的整体音量。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param volume 音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。
    + * 只改变音频数据的音量信息,不涉及本端硬件的音量调节。
    + * 为保证更好的通话质量,建议将 volume 值设为 [0,100]。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioSourceVolume:(ByteRTCStreamIndex)streamIndex volume:(int)volume; +/** + * + * @type api + * @brief 设置音频源的内容。单个音频源的内容可以包含一个或多个原始音频来源。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 内容构成。参看 ByteRTCAudioContentTypeConfig{@link #ByteRTCAudioContentTypeConfig}。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioContentType:(ByteRTCStreamIndex)streamIndex config:(ByteRTCAudioContentTypeConfig* _Nonnull)config; +/** + * + * @type api + * @brief 设置音频流的编码配置。 + * @param streamIndex 源对应的流的索引。参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param config 编码设置。参看 ByteRTCAudioEncodeConfig{@link #ByteRTCAudioEncodeConfig}。 + * @return + * + 0: 调用成功。
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + */ +- (int)setAudioEncodeConfig:(ByteRTCStreamIndex)streamIndex config:(ByteRTCAudioEncodeConfig* _Nonnull)config; + +/** +* +* @type api +* @brief 设置多路流编码配置,在开启simulcast功能下可同时设置4路分辨率的流 +* @param stream_index 视频流的索引。参看 StreamIndex{@link #StreamIndex}。 +* @param solutions 编码设置。参看 ByteRTCVideoEncoderConfig{@link #ByteRTCVideoEncoderConfig}。 +* @param solution_num 需要传入的solutions数组大小。 +* @return +* + 0: 调用成功。
    +* + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 +*/ +- (int)setVideoEncoderConfig:(ByteRTCStreamIndex)streamIndex config:(NSArray * _Nullable)videoSolutions; + +@end + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h new file mode 100644 index 0000000..85f575c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCGameRoom.h @@ -0,0 +1,908 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room +*/ + +#import +#import "rtc/ByteRTCDefines.h" +#import "rtc/ByteRTCRangeAudio.h" + +@class ByteRTCGameRoom; +/** + * + * @type callback + * @brief 游戏房间事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCGameRoomDelegate +@optional + /** + * + * @hidden + * @type callback + * @brief 游戏房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参看 ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStateChangedWithReason:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(ByteRTCRoomState)state + reason:(ByteRTCRoomStateChangeReason)reason; + + /** + * + * @type callback + * @brief 游戏房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @type callback + * @brief 音频流状态改变回调,发生流相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 流状态码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 附加信息,默认为空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onStreamStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; +/** + * + * @type callback + * @brief 离开游戏房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并释放所有通话相关的音视频资源。SDK 完成所有的资源释放后通过此回调通知用户。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stats 保留参数,目前为空。 + * @note + * - 用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCGameRoom#destroy} 销毁房间实例方法销毁 RTC 引擎,则将无法收到此回调事件。 + * - 离开游戏房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。 + * @list 房间管理 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + + /** + * + * @deprecated since 3.41 and will be deleted in later version, use rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:} and rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} instead. + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param warningCode 警告码,详见枚举类型 ByteRTCWarningCode{@link #ByteRTCWarningCode} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomWarning:(ByteRTCWarningCode)warningCode __deprecated_msg("Will be removed in new version"); +/** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生改变时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param state 音视频同步状态,参看 ByteRTCAVSyncState{@link #ByteRTCAVSyncState}。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAVSyncStateChange:(ByteRTCAVSyncState)state; +/** + * + * @type callback + * @region 房间管理 + * @brief 视频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 视频流 ID。 + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本端视频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onVideoPublishStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @brief 音频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 音频流 ID。 + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本端音频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAudioPublishStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @region 房间管理 + * @brief 屏幕流视频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 屏幕流视频发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenVideoPublishStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + + +/** + * + * @type callback + * @region 房间管理 + * @brief 屏幕流音频发布状态改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 屏幕流音频发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenAudioPublishStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @brief 视频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 视频流 ID。 + * @param info 视频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onVideoSubscribeStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 音频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 音频流 ID. + * @param info 音频流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 音频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onAudioSubscribeStateChanged:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 屏幕流视频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 屏幕流视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenVideoSubscribeStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @brief 屏幕流音频订阅状态发生改变回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 屏幕流音频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onScreenAudioSubscribeStateChanged:(NSString *_Nonnull)roomId + userId:(nonnull NSString *)uid + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @region 多房间 + * @brief 房间内通话统计信息回调。
    + * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stats 当前 ByteRTCGameRoom 统计数据,详见:ByteRTCRoomStats{@link #ByteRTCRoomStats}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomStats:(ByteRTCRoomStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRoomStats:)); +/** + * + * @hidden 仅内部使用 + * @type callback + * @region 多房间 + * @valid since 3.60. + * @brief 房间事件回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 ByteRTCRoomEvent{@link #ByteRTCRoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 ByteRTCRoomEventInfo{@link #ByteRTCRoomEventInfo}。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRoomEvent:(NSString *_Nonnull)roomId uid:(NSString *_Nonnull)uid state:(ByteRTCRoomEvent)state info:(ByteRTCRoomEventInfo *_Nonnull)info; +/** + * + * @type callback + * @brief 本地流数据统计以及网络质量回调。
    + * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
    + * 统计信息通过 ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param stats 当前房间本地流数据统计。详见:ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onLocalStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info stats:(ByteRTCLocalStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onLocalStreamStats:)); +/** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
    + * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param stats 当前房间本地流数据统计。 详见:ByteRTCRemoteStreamStats{@link #ByteRTCRemoteStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onRemoteStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info stats:(ByteRTCRemoteStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRemoteStreamStats:)); +/** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
    + * 1. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
    + * 2. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开游戏房间,或切至不可见时,本地用户会收到此事件 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 离开房间,或切至不可见的远端用户 ID。 + * @param reason 用户离开房间的原因:
    + * - 0: 远端用户调用 leaveRoom{@link #ByteRTCGameRoom#leaveRoom} 主动退出房间。 + * - 1: 远端用户因 Token 过期或网络原因等掉线。详细信息请参看[连接状态提示](https: + * - 3: 服务端调用 OpenAPI 将远端用户踢出房间。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCGameRoom *_Nonnull)rtcRoom onUserLeave:(NSString *_Nonnull)uid reason:(ByteRTCUserOfflineReason)reason; +/** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 进房权限。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @list 引擎管理 + */ + +- (void)onTokenWillExpire:(ByteRTCGameRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 发布权限。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}、rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:}、rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:} 回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}、rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:} 或 rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} 回调,提示该流已停止发布。 + * @list 引擎管理 + * @order 3 + */ + +- (void)onPublishPrivilegeTokenWillExpire:( ByteRTCGameRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 更新 Token 订阅权限有效期。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调,提示错误码为 `-1003` 没有订阅权限。 + * @list 引擎管理 + */ + +- (void)onSubscribePrivilegeTokenWillExpire:( ByteRTCGameRoom *_Nonnull)rtcRoom; + /** + * + * @deprecated since 3.36 and will be deleted in later version, use rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}, rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:}, and rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} instead. + * @type callback + * @brief 以下情况会触发此回调:
    + * - 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调通知。 + * - 房间内的用户原音视频流被移出后,又重新发布音视频流时,房间内的其他用户会收到此回调通知。 + * - 用户刚加入房间时,会收到此回调,包含房间中所有已发布的流。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param stream 流属性,参看 ByteRTCStream{@link #ByteRTCStream} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamAdd:(id _Nonnull)stream __deprecated_msg("Will be removed in new version"); + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in later version, use rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}, rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish:}, and rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish:} instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调通知。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 远端流来源的用户 ID 。 + * @param stream 流的属性,参看 ByteRTCStream{@link #ByteRTCStream}。 + * @param reason 远端流移除的原因,参看 ByteRTCStreamRemoveReason{@link #ByteRTCStreamRemoveReason} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamRemove:(NSString *_Nonnull)uid + stream:(id _Nonnull)stream + reason:(ByteRTCStreamRemoveReason)reason + __deprecated_msg("Will be removed in new version"); + +/** + * + * @hidden for internal use only + * @type callback + * @region 多房间 + * @brief 当发布流成功的时候回调该事件 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param userId 用户 ID + * @param isScreen 该流是否是屏幕流
    + * + */ + + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onStreamPublishSuccess:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生错误时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param userId 用户 ID。 + * @param eventCode 音视频同步状态错误,参看 ByteRTCAVSyncEvent{@link #ByteRTCAVSyncEvent}。 + * @list 音视频传输 + * @order 1 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onAVSyncEvent:(NSString *_Nonnull)roomId userId:(NSString *_Nonnull)userId eventCode:(ByteRTCAVSyncEvent)eventCode; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishStreamVideo:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端音频流发布回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishStreamAudio:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端屏幕共享的视频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 远端流发布用户的用户 ID。 + * @param isPublish 为 true 代表已发布,为 false 代表已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishScreenVideo:(NSString* _Nonnull)roomId uid:(NSString* _Nonnull)uid isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @region 房间管理 + * @brief 房间内远端屏幕共享的音频流的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param roomId 房间 ID。 + * @param uid 远端流发布用户的用户 ID。 + * @param isPublish 为 true 代表已发布,为 false 代表已取消发布。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCGameRoom* _Nonnull)rtcRoom onUserPublishScreenAudio:(NSString* _Nonnull)roomId uid:(NSString* _Nonnull)uid isPublish:(BOOL)isPublish; + /** + * + * @type callback + * @brief 广播文本消息回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + /** + * + * @type callback + * @brief 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomMessageSendResult:(NSInteger)msgid error:(ByteRTCRoomMessageSendResult)error; +/** + * + * @valid since 3.52. + * @type callback + * @brief 发送附加信息结果回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param taskId 本次调用的任务编号。 + * @param result 房间附加信息设置结果,详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSetRoomExtraInfoResult:(NSInteger)taskId result:(ByteRTCSetRoomExtraInfoResult)result; +/** + * + * @valid since 3.52. + * @type callback + * @brief 接收到房间附加信息的回调。
    + * 另外用户加入房间成功后会收到这个房间全量附加信息 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param key 附加信息的键值 + * @param value 附加信息的内容 + * @param lastUpdateUserId 最后更新这条附加信息的用户编号 + * @param lastUpdateTimeMs 最后更新这条附加信息的 Unix 时间,时间精度是毫秒 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onRoomExtraInfoUpdate:(NSString *_Nonnull)key value:(NSString *_Nonnull)value lastUpdateUserId:(NSString *_Nonnull)lastUpdateUserId lastUpdateTimeMs:(NSInteger)lastUpdateTimeMs; +/** + * + * @valid since 3.54 + * @type callback + * @brief 设置用户可见性的回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param currentUserVisibility 当前用户的可见性。
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param errorCode 设置用户可见性错误码,参看 ByteRTCUserVisibilityChangeError{@link #ByteRTCUserVisibilityChangeError}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onUserVisibilityChanged:(BOOL)currentUserVisibility errorCode:(ByteRTCUserVisibilityChangeError)errorCode; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
    + * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onVideoStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCGameRoom` 实例 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
    + * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onAudioStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; + +#pragma mark ForwardStream related callback + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ByteRTCForwardStreamStateInfo{@link #ByteRTCForwardStreamStateInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onForwardStreamStateChanged:(NSArray * _Nonnull)infos; + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ByteRTCForwardStreamEventInfo{@link #ByteRTCForwardStreamEventInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCGameRoom * _Nonnull)rtcRoom onForwardStreamEvent:(NSArray * _Nonnull)infos; +/** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param localQuality 本端网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @param remoteQualities 已订阅用户的网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCGameRoom * _Nonnull)rtcRoom onNetworkQuality:(ByteRTCNetworkQualityStats *_Nonnull)localQuality remoteQualities:(NSArray *_Nonnull)remoteQualities; +/** + * + * @type callback + * @brief 字幕状态发生改变回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 和 stopSubtitle{@link #ByteRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param state 字幕状态。参看 ByteRTCSubtitleState{@link #ByteRTCSubtitleState}。 + * @param errorCode 字幕任务错误码。参看 ByteRTCSubtitleErrorCode{@link #ByteRTCSubtitleErrorCode}。 + * @param errorMessage 第三方服务出现的错误。当因第三方服务出现错误,导致字幕状态改变时,用户可通过此参数获取具体的错误信息。如果不是因为第三方服务导致字幕状态改变,该字段为空。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSubtitleStateChanged:(ByteRTCSubtitleState)state + errorCode:(ByteRTCSubtitleErrorCode)errorCode + errorMessage:(NSString *_Nonnull)errorMessage; +/** + * + * @type callback + * @brief 字幕相关内容回调。 + * @param rtcRoom ByteRTCGameRoom 实例。 + * @param subtitles 字幕消息内容。参看 ByteRTCSubtitleMessage{@link #ByteRTCSubtitleMessage}。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCGameRoom *_Nonnull)rtcRoom onSubtitleMessageReceived:(NSArray * _Nonnull)subtitles; +@end +/** + * + * @type api + * @list 房间管理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCGameRoom : NSObject +/** + * + * @type callback + * @list 房间管理 + */ + +@property(nonatomic, weak) id _Nullable delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 退出并销毁调用 createGameRoom:roomConfig:{@link #ByteRTCEngine#createGameRoom:roomConfig:} 所创建的房间实例。 + * @list 房间管理 + */ + +- (void)destroy; +/** + * + * @type api + * @brief 通过设置 ByteRTCGameRoom{@link #ByteRTCGameRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + +- (int)setRTCGameRoomDelegate:(id _Nullable)roomDelegate; +/** + * + * @type api + * @brief 加入游戏房间。
    + * 调用 createGameRoom:roomConfig:{@link #ByteRTCEngine#createGameRoom:roomConfig:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音频通话。 + * @param token 动态密钥,用于对登录用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在您的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * - 使用不同 App ID 的 App 是不能互通的。 + * - 请务必保证生成 Token 使用的 App ID 和创建引擎时使用的 App ID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @return + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - 如果本端用户为可见用户,房间内其他用户收到 rtcRoom:onUserJoined:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - -1:roomId / userInfo.uid 包含了无效的参数。 + * - -2:已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom:{@link #ByteRTCGameRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 App ID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后进房的用户会将先进房的用户踢出房间,并且先进房的用户会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型详见 ByteRTCErrorCode{@link #ByteRTCErrorCode} 中的 ByteRTCErrorCodeDuplicateLogin。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。 + * @list 房间管理 + */ + +- (int)joinRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type api + * @brief 离开游戏房间。
    + * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,触发以下回调: + * - 远端用户收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * - 正在发布的流会被取消发布。远端用户收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}、rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:} 和/或 rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:} 回调通知。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,必须调用 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 再次加入房间。 + * @list 房间管理 + */ + +- (int)leaveRoom NS_SWIFT_NAME(leaveRoom()); +/** + * + * @type api + * @brief 更新游戏房间 Token。
    + * 收到 onTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onTokenWillExpire:},onPublishPrivilegeTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onPublishPrivilegeTokenWillExpire:},或 onSubscribePrivilegeTokenWillExpire:{@link #ByteRTCGameRoomDelegate#onSubscribePrivilegeTokenWillExpire:} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onRoomStateChangedWithReason:withUid:state:reason:} ,错误码是 `-1010`。 + * @return + * - 0:成功; + * - !0:失败。 + * @note 请勿同时调用 updateToken:{@link #ByteRTCGameRoom#updateToken:} 和 joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo:} 重新加入房间。 + * @list 房间管理 + */ + +- (int)updateToken:(NSString *_Nullable)token; +/** + * + * @type api + * @brief 获取游戏房间的范围语音接口实例。 + * @return 方法调用结果:
    + * - ByteRTCRangeAudio:成功,返回一个 ByteRTCRangeAudio{@link #ByteRTCRangeAudio} 实例。 + * - NULL:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + +- (ByteRTCRangeAudio *_Nullable)getRangeAudio; +/** + * + * @type api + * @brief 加入游戏房间后,调用该接口开启或关闭麦克风。同游戏房间其他用户会收到回调 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:}。 + * @param enable 是否开启麦克风:
    + * - true:开启麦克风,采集并发布音频流。 + * - false:默认设置。关闭麦克风,停止采集和发布音频流。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @note 不可与 enableAudioSend:{@link #ByteRTCGameRoom#enableAudioSend:} 同时调用。 + * @list 音频管理 + */ + +- (int)enableMicrophone:(BOOL)enable; +/** + * + * @type api + * @brief 加入游戏房间后,开启或关闭扬声器。 + * @param enable 是否开启扬声器:
    + * - true:开启扬声器。 + * - false:默认设置。关闭扬声器。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败。没有加入房间。 + * @list 音频管理 + */ + +- (int)enableSpeakerphone:(BOOL)enable; +/** + * + * @type api + * @brief 开始或停止发送音频流。调用此接口不影响音频采集。同游戏房间其他用户会收到相应的回调。 + * @param enable 是否发送音频流:
    + * - true:发布音频流。 + * - false:默认设置。停止发布音频流(不会关闭麦克风),即静音。 + * @return + * - 0:接口调用成功。 + * - -3:接口调用失败,未加入房间。 + * @note 不可与 enableMicrophone:{@link #ByteRTCGameRoom#enableMicrophone:} 同时调用。 + * @list 音频管理 + */ + +- (int)enableAudioSend:(BOOL)enable; +/** + * + * @type api + * @brief 是否订阅指定用户的音频流。 + * @param userId 用户 ID,最大长度为128字节的非空字符串。支持的字符集范围为:
    + * 1. 26个大写字母 A ~ Z
    + * 2. 26个小写字母 a ~ z
    + * 3. 10个数字 0 ~ 9
    + * 4. 下划线"_", at符"@", 减号"-" + * @param enable 是否订阅音频流:
    + * true:订阅指定用户的音频流。 + * false:默认设置。不订阅指定用户的音频流。 + * @return + * - 0:接口调用成功 + * - -2:传入的用户 ID 为空字符串。 + * @list 音频管理 + */ + +- (int)enableAudioReceive:(NSString* _Nullable)userId enable:(BOOL)enable; +/** + * + * @type api + * @brief 调节某个游戏房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setRemoteRoomAudioPlaybackVolume:(NSInteger)volume; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h new file mode 100644 index 0000000..61bba94 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRTSRoom.h @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCRTSRoom +*/ + +#import +#import "rtc/ByteRTCRtsDefines.h" +#import "rtc/ByteRTCDefines.h" + +@class ByteRTCRTSRoom; + +/** + * + * @type callback + * @brief RTS 房间事件回调接口 + */ + +@protocol ByteRTCRTSRoomDelegate +@optional + + /** + * + * @type callback + * @list 房间管理 + * @brief RTS 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtsRoom RTS 房间实例。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * + 0: 加入房间成功。
    + * + !0: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * - `join_type` 表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * - `elapsed` 表示加入房间耗时,即本地用户从调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 到加入 RTS 房间成功所经历的时间间隔,单位为 ms。 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomStateChanged:(NSString * _Nonnull)roomId + withUid:(nonnull NSString *)uid state:(NSInteger)state + extraInfo:(nonnull NSString *)extraInfo; + +/** + * + * @type callback + * @list 房间管理 + * @brief 离开 RTS 房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCRTSRoom#leaveRoom} 方法后,SDK 会停止房间内消息的收发,并在释放所有相关资源后,通过此回调通知用户离开房间成功。
    + * @param rtsRoom RTSRoom 对象。
    + * @param stats 保留参数,目前为空。 + * @note + * + 用户调用 leaveRoom{@link #ByteRTCRTSRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCRTSRoom#destroy} 销毁房间实例,则将无法收到此回调事件。
    + * + 离开房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。
    + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + +/** + * + * @type callback + * @list 房间管理 + * @brief 远端用户首次进房,或断网后重新连入房间时,房间内其他用户将收到该事件。 + * @param rtsRoom ByteRTCRTSRoom 对象。
    + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开 RTS 房间时,本地用户会收到此事件。 + * @param rtsRoom ByteRTCRTSRoom 对象。
    + * @param uid 离开房间的远端用户 ID 。
    + * @param reason 用户离开房间的原因,参看 ByteRTCUserOfflineReason{@link #ByteRTCUserOfflineReason}。 + * @list 房间管理 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onUserLeave:(NSString * _Nonnull)uid + reason:(ByteRTCUserOfflineReason)reason; + +#pragma mark - Message Delegate Methods + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtsRoom ByteRTCRTSRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomMessageReceived:(NSString * _Nonnull)uid + message:(NSString * _Nonnull)message; + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtsRoom ByteRTCRTSRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomBinaryMessageReceived:(NSString * _Nonnull)uid + message:(NSData * _Nonnull)message; + /** + * + * @type callback + * @brief 向房间内所有用户群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtsRoom ByteRTCRTSRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @note
    + * + 你应调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 向房间内群发文本消息
    + * + 你应调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 向房间内群发二进制消息 + * @list 消息 + */ + +- (void)rtsRoom:(ByteRTCRTSRoom * _Nonnull)rtsRoom onRoomMessageSendResult:(NSInteger)msgid + error:(ByteRTCRoomMessageSendResult)error; + + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; +/** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRTSRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onRoomMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRTSRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onRoomBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtsRoom ByteRTCRoom 对象 + * @param msgid 消息编号. + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtsRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note + * - 你应调用 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 向房间内单个用户发送文本消息 + * - 你应调用 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 向房间内单个用户发送二进制消息 + * @list 消息 + */ + +- (void)rtsRoom:( ByteRTCRTSRoom *_Nonnull)rtsRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + + +@end + +/** + * + * @type api + * @brief RTS房间 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRTSRoom : NSObject +/** + * + * @type callback + */ + +@property(nonatomic, weak) id _Nullable delegateRts; + +/** + * + * @type api + * @list 房间管理 + * @brief 退出并销毁调用 createRTSRoom:{@link #ByteRTCEngine#createRTSRoom:} 所创建的 RTS 房间实例。 + */ + +- (void)destroy; + +/** + * + * @type api + * @list 房间管理 + * @brief 通过设置 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}代理,可以监听此 `ByteRTCRTSRoom` 对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}。 + * @return
    + * + 0: 调用成功。 + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ + +- (int)setRTCRoomDelegateRts:(id _Nullable)roomDelegate; + + +/** + * + * @type api + * @brief 离开房间。
    + * 用户调用此方法离开房间,结束实时消息通信,释放所有通信相关的资源。 + * @return 方法调用结果。
    + * + 0: 方法调用成功
    + * + < 0: 方法调用失败
    + * @note
    + * + 可见的用户离开房间后,房间内其他用户会收到 rtsRoom:onUserLeave:reason:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserLeave:reason:} 回调通知;
    + * + 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 rtsRoom:OnLeaveRoom:{@link #ByteRTCRTSRoomDelegate#rtsRoom:OnLeaveRoom:} 回调通知。
    + * + 如果调用此方法后立即销毁引擎,SDK 将无法触发 rtsRoom:OnLeaveRoom:{@link #ByteRTCRTSRoomDelegate#rtsRoom:OnLeaveRoom:} 回调。 + * @list 房间管理 + */ + +- (int)leaveRoom; + +#pragma mark - Message Methods + + /** + * + * @type api + * @brief 给房间内的所有其他用户发送文本消息。 + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
    + * + 在发送房间内文本消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。
    + * + 调用该函数后会收到一次 rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败;
    + * + 若文本消息发送成功,则房间内远端用户会收到 rtsRoom:onRoomMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendRoomMessage:(NSString * _Nonnull)message; + /** + * + * @type api + * @brief 给房间内的所有其他用户发送二进制消息。 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note
    + * + 在房间内广播二进制消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。
    + * + 调用该函数后会收到一次 rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败;
    + * + 若二进制消息发送成功,则房间内所有用户会收到 rtsRoom:onRoomBinaryMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendRoomBinaryMessage:(NSData * _Nonnull)message; + +/** + * + * @type api + * @brief 更新 Token。
    + * 收到 onTokenWillExpire:{@link #ByteRTCRoomDelegate#onTokenWillExpire:},onPublishPrivilegeTokenWillExpire:{@link #ByteRTCRoomDelegate#onPublishPrivilegeTokenWillExpire:},或 onSubscribePrivilegeTokenWillExpire:{@link #ByteRTCRoomDelegate#onSubscribePrivilegeTokenWillExpire:} 时,你必须重新获取 Token,并调用此方法更新 Token,以保证通话的正常进行。 + * @param token 重新获取的有效 Token。
    + * 如果 Token 无效,你会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:},错误码是 `-1010`。 + * @return + * - 0:成功; + * - !0:失败。 + * @note 请勿同时调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 和 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 重新加入房间。 + * @list 房间管理 + */ + +- (int)updateToken:(NSString *_Nullable)token; + + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点文本消息(P2P)。 + * @param userId 消息接收用户的 ID + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config
    + * 消息发送的可靠/有序类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig} + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 调用该函数后会收到一次 rtsRoom:onUserMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageSendResult:error:} 回调,通知消息发送方发送成功或失败。 + * - 若文本消息发送成功,则 uid 所指定的用户会收到 rtsRoom:onUserMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendUserMessage:(NSString *_Nonnull)userId message:(NSString *_Nonnull)message config:(ByteRTCMessageConfig)config; + /** + * + * @type api + * @brief 给房间内指定的用户发送点对点二进制消息(P2P)。 + * @param uid 消息接收用户的 ID + * @param message 发送的二进制消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @param config
    + * 消息发送的可靠/有序类型,参看 ByteRTCMessageConfig{@link #ByteRTCMessageConfig}。 + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内二进制消息前,必须先调用 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo:} 加入房间。 + * - 调用该函数后会收到一次 rtsRoom:onUserMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则 uid 所指定的用户会收到 rtsRoom:onUserBinaryMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (int64_t)sendUserBinaryMessage:(NSString * _Nonnull)uid message:(NSData * _Nonnull)message config:(ByteRTCMessageConfig)config; +/** + * + * @type api + * @brief 加入 RTS 房间。
    + * 调用 createRTSRoom:{@link #ByteRTCEngine#createRTSRoom:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。 + * @param token 动态密钥,用于对进房用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * 使用不同 AppID 的 App 是不能互通的。
    + * 请务必保证生成 Token 使用的 AppID 和创建引擎时使用的 AppID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息。参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @return 方法调用结果。
    + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - -1: 参数无效 + * - -2: 已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 AppID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后加入房间的用户会将先加入房间的用户踢出房间,并且先加入房间的用户会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型为重复登录 ByteRTCErrorCodeDuplicateLogin。 + * - 本地用户调用此方法加入房间成功后,会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。若本地用户同时为可见用户,加入房间时远端用户会收到 rtsRoom:onUserJoined:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onUserJoined:} 回调通知。 + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtsRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomStateChanged:withUid:state:extraInfo:}。 + * @list 房间管理 + */ + +- (int)joinRTSRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h new file mode 100644 index 0000000..a529389 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoom.h @@ -0,0 +1,1367 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room +*/ + +#import +#import "ByteRTCRTSRoom.h" +#import "rtc/ByteRTCRangeAudio.h" +#import "rtc/ByteRTCSpatialAudio.h" + +@class ByteRTCRoom; +/** + * + * @type callback + * @brief 房间事件回调接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCRoomDelegate +@optional + /** + * + * @hidden + * @type callback + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCAudioRoom 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 + * - 2: 离开房间。 + * @param reason 房间状态发生变化的原因。参看 ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}。 + * @list 房间管理 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomStateChangedWithReason:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(ByteRTCRoomState)state + reason:(ByteRTCRoomStateChangeReason)reason; + + /** + * + * @type callback + * @region 多房间 + * @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 + * @param rtcRoom ByteRTCAudioRoom 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间状态码。
    + * - 0: 加入房间成功。 + * - !0: 加入房间失败、异常退房、发生房间相关的警告或错误。具体原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 额外信息,如 `{"elapsed":1187,"join_type":0}`。
    + * `join_type`表示加入房间的类型,`0`为首次进房,`1`为重连进房。
    + * `elapsed`表示加入房间耗时,即本地用户从调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 到加入房间成功所经历的时间间隔,单位为 ms。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @deprecated since 3.60, refer to [Upgrade Guide](https: + * @type callback + * @brief 流状态改变回调,发生流相关的警告或错误时会收到此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 流状态码,参看 ByteRTCErrorCode{@link #ByteRTCErrorCode} 及 ByteRTCWarningCode{@link #ByteRTCWarningCode}。 + * @param extraInfo 附加信息,目前为空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onStreamStateChanged:(NSString *_Nonnull)roomId + withUid:(nonnull NSString *)uid + state:(NSInteger)state + extraInfo:(NSString *_Nonnull)extraInfo; +/** + * + * @type callback + * @region 多房间 + * @brief 离开房间成功回调。
    + * 用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 方法后,SDK 会停止所有的发布订阅流,并释放所有通话相关的音视频资源。SDK 完成所有的资源释放后通过此回调通知用户。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stats 保留参数,目前为空。 + * @note + * - 用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 方法离开房间后,如果立即调用 destroy{@link #ByteRTCRoom#destroy} 销毁房间实例或 destroyRTCEngine{@link #ByteRTCEngine#destroyRTCEngine} 方法销毁 RTC 引擎,则将无法收到此回调事件。 + * - 离开房间结束通话后,如果 App 需要使用系统音视频设备,则建议在收到此回调后再初始化音视频设备,否则可能由于 SDK 占用了导致 App 初始化音视频设备失败。 + * @list 房间管理 + * @order 2 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onLeaveRoom:(ByteRTCRoomStats *_Nonnull)stats; + + /** + * + * @hidden + * @deprecated since 3.41 and will be deleted in 3.51, use rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} and rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} instead. + * @type callback + * @brief 发生警告回调。
    + * SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param warningCode 警告码,详见枚举类型 ByteRTCWarningCode{@link #ByteRTCWarningCode} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomWarning:(ByteRTCWarningCode)warningCode __deprecated_msg("Will be removed in new version"); +/** + * + * @type callback + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生改变时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param state 音视频同步状态,参看 ByteRTCAVSyncState{@link #ByteRTCAVSyncState}。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAVSyncStateChange:(ByteRTCAVSyncState)state; +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 方法中的本地视频发布状态变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用该方法,请迁移至该回调。 + * @brief 本地视频流发布状态改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本地视频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoPublishStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 方法中的本地音频流发布状态变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用该方法,请迁移至该回调。 + * @brief 本地音频流发布状态改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 发布状态码,参看 ByteRTCPublishState{@link #ByteRTCPublishState}。 + * @param reason 本地音频流发布状态改变的具体原因,参看 ByteRTCPublishStateChangeReason{@link #ByteRTCPublishStateChangeReason}。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioPublishStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCPublishState)state + reason:(ByteRTCPublishStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 和 `rtcRoom:onStreamSubscribed:userId:subscribeConfig:` 方法中的视频流订阅状态发生变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这两个方法,请迁移至该回调。 + * @brief 视频流订阅状态发生改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 视频订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 后会收到该通知。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoSubscribeStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `rtcRoom:onStreamStateChanged:withUid:state:extraInfo:` 和 `rtcRoom:onStreamSubscribed:userId:subscribeConfig:` 方法中的音频流订阅状态发生变更通知功能。如果你已升级至 3.60 及以上版本 SDK,且还在使用这两个方法,请迁移至该回调。 + * @brief 音频流订阅状态发生改变回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param state 订阅状态码,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState}。 + * @param reason 音频流订阅状态改变的具体原因,参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @note 当调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 后会收到该通知。 + * @list 音视频传输 + * @order 0 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioSubscribeStateChanged:(NSString *_Nonnull)streamId + info:(ByteRTCStreamInfo* _Nonnull)info + state:(ByteRTCSubscribeState)state + reason:(ByteRTCSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @region 多房间 + * @brief 房间内通话统计信息回调。
    + * 用户进房开始通话后,每 2s 收到一次本回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stats 当前 ByteRTCRoom 统计数据,详见:ByteRTCRoomStats{@link #ByteRTCRoomStats} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomStats:(ByteRTCRoomStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRoomStats:)); +/** + * + * @hidden + * @type callback + * @region 多房间 + * @valid since 3.60. + * @brief 房间事件回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param roomId 房间 ID。 + * @param uid 用户 ID。 + * @param state 房间事件状态。详见 ByteRTCRoomEvent{@link #ByteRTCRoomEvent}。 + * @param info 房间封禁时,包含封禁时间。详见 ByteRTCRoomEventInfo{@link #ByteRTCRoomEventInfo}。 + * @list 房间管理 + * @order 0 + */ + +- (void)rtcRoom:(ByteRTCRoom *_Nonnull)rtcRoom onRoomEvent:(NSString *_Nonnull)roomId uid:(NSString *_Nonnull)uid state:(ByteRTCRoomEvent)state info:(ByteRTCRoomEventInfo *_Nonnull)info; +/** + * + * @type callback + * @brief 本地流数据统计以及网络质量回调。
    + * 本地用户发布流成功后,SDK 会周期性(2s)地通过此回调事件通知用户发布的流在此次统计周期内的质量统计信息。
    + * 统计信息通过 ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} 类型的回调参数传递给用户,其中包括发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param stats 当前房间本地流数据统计。详见:ByteRTCLocalStreamStats{@link #ByteRTCLocalStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onLocalStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +stats:(ByteRTCLocalStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onLocalStreamStats:)); +/** + * + * @type callback + * @brief 本地订阅的远端音/视频流数据统计以及网络质量回调。
    + * 本地用户订阅流成功后,SDK 会周期性(2s)地通过此回调事件通知用户订阅的流在此次统计周期内的质量统计信息,包括:发送音视频比特率、发送帧率、编码帧率,网络质量等。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param stats 当前房间本地流数据统计。 详见:ByteRTCRemoteStreamStats{@link #ByteRTCRemoteStreamStats} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRemoteStreamStats:(NSString *_Nonnull)streamId +info:(ByteRTCStreamInfo* _Nonnull)info +stats:(ByteRTCRemoteStreamStats *_Nonnull)stats NS_SWIFT_NAME(rtcRoom(_:onRemoteStreamStats:)); +/** + * + * @type callback + * @brief 远端可见用户加入房间,或房内不可见用户切换为可见的回调。
    + * 1. 远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设为可见后加入房间时,房间内其他用户将收到该事件。
    + * 2. 远端可见用户断网后重新连入房间时,房间内其他用户将收到该事件。
    + * 3. 房间内隐身远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法切换至可见时,房间内其他用户将收到该事件。
    + * 4. 新进房用户会收到进房前已在房内的可见用户的进房回调通知。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param userInfo 用户信息,参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserJoined:(ByteRTCUserInfo *_Nonnull)userInfo; +/** + * + * @type callback + * @brief 远端用户离开 RTC 房间,或切至不可见时,本地用户会收到此事件 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 离开房间,或切至不可见的远端用户 ID。 + * @param reason 用户离开房间的原因:
    + * - 0: 远端用户调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 主动退出房间。 + * - 1: 远端用户因 Token 过期或网络原因等掉线。详细信息请参看[连接状态提示](https: + * - 2: 远端用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 切换至不可见状态。 + * - 3: 服务端调用 OpenAPI 将远端用户踢出房间。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserLeave:(NSString *_Nonnull)uid reason:(ByteRTCUserOfflineReason)reason; +/** + * + * @type callback + * @brief 当 SDK 检测到 Token 的进房权限将在 30 秒内过期时,触发该回调。 + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 进房权限。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @list 引擎管理 + */ + +- (void)onTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 发布权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 发布权限。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @note Token 发布权限过期后: + * - 已发布流或尝试发布流时,本端会收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}回调,提示`kPublishStateChangeReasonNoPublishPermission`,没有发布权限。 + * - 发布中的流将停止发布。远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调,提示该流已停止发布。 + * @list 引擎管理 + * @order 3 + */ + +- (void)onPublishPrivilegeTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; +/** + * + * @type callback + * @brief Token 订阅权限过期前 30 秒将触发该回调。
    + * 收到该回调后,你需调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 更新 Token 订阅权限有效期。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @note 若收到该回调后未及时更新 Token,Token 订阅权限过期后,尝试新订阅流会失败,已订阅的流会取消订阅,并且会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 回调,提示错误码为 `-1003` 没有订阅权限。 + * @list 引擎管理 + */ + +- (void)onSubscribePrivilegeTokenWillExpire:( ByteRTCRoom *_Nonnull)rtcRoom; + /** + * + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}instead. + * @type callback + * @brief 以下情况会触发此回调:
    + * - 房间内的用户发布新的音视频流时,房间内的其他用户会收到此回调通知。 + * - 房间内的用户原音视频流被移出后,又重新发布音视频流时,房间内的其他用户会收到此回调通知。 + * - 用户刚加入房间时,会收到此回调,包含房间中所有已发布的流。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param stream 流属性,参看 ByteRTCStream{@link #ByteRTCStream} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamAdd:(id _Nonnull)stream __deprecated_msg("Will be removed in new version"); + /** + * + * @hidden + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onUserUnpublishStream:type:reason: instead. + * @type callback + * @brief 房间内的远端用户停止发布音视频流时,本地用户会收到此回调通知。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 远端流来源的用户 ID 。 + * @param stream 流的属性,参看 ByteRTCStream{@link #ByteRTCStream}。 + * @param reason 远端流移除的原因,参看 ByteRTCStreamRemoveReason{@link #ByteRTCStreamRemoveReason} 。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamRemove:(NSString *_Nonnull)uid + stream:(id _Nonnull)stream + reason:(ByteRTCStreamRemoveReason)reason + __deprecated_msg("Will be removed in new version"); + +/** + * + * @hidden for internal use only + * @type callback + * @region 多房间 + * @brief 当发布流成功的时候回调该事件 + * @param rtcRoom ByteRTCRoom 对象。 + * @param userId 用户 ID + * @param isScreen 该流是否是屏幕流
    + * + */ + + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onStreamPublishSuccess:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 发布端调用 setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync:} 后音视频同步状态发生错误时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param roomId 房间 ID。 + * @param userId 用户 ID。 + * @param eventCode 音视频同步状态错误,参看 ByteRTCAVSyncEvent{@link #ByteRTCAVSyncEvent}。 + * @list 音视频传输 + * @order 1 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAVSyncEvent:(NSString *_Nonnull)roomId userId:(NSString *_Nonnull)userId eventCode:(ByteRTCAVSyncEvent)eventCode; + +/** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布视频流的回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:} 成功发布采集的视频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom onUserPublishStreamVideo:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info isPublish:(BOOL)isPublish; + +/** + * + * @type callback + * @valid since 3.60. 自版本 3.60 起,该回调替换了 `onUserPublishStream`、`onUserUnpublishStream`、`onUserPublishScreen` 和 `onUserUnpublishScreen` 方法。如果您已升级到 SDK 版本 3.60 或以上,且仍在使用这些方法,请迁移到该回调。 + * @region 房间管理 + * @brief 房间内远端用户发布或取消发布音频流的回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param streamId 流 ID。 + * @param info 流信息。 + * @param isPublish 流是否发布。 + * + `true`:已发布。 + * + `false`:已取消发布。 + * @note 当房间内的远端用户调用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:} 成功发布音频流时,本地用户会收到该回调,此时本地用户可以自行选择是否调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 订阅此流。 + * @list 音视频传输 + * @order 2 + */ + +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom onUserPublishStreamAudio:(NSString* _Nonnull)streamId info:(ByteRTCStreamInfo* _Nonnull)info isPublish:(BOOL)isPublish; + + /** + * + * @type callback + * @brief > 该接口将于 3.64 onRoomMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageReceived:uid:message:} 代替。 + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 onRoomBinaryMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomBinaryMessageReceived:uid:message:} 代替。 + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onUserMessageReceived:uid:message:} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief > 该接口将于 3.64 被 onUserBinaryMessageReceived:uid:message:{@link #ByteRTCRoomDelegate#rtcRoom:onUserBinaryMessageReceived:uid:message:} 代替。 + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间中调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 发送的广播文本消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到房间内广播二进制消息的回调。
    + * 房间内其他用户调用 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 发送的广播二进制消息时,收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者 ID 。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 发来的点对点文本消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号。 + * @param uid 消息发送者的用户 ID。 + * @param message 收到的文本消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSString *_Nonnull)message; + /** + * + * @type callback + * @brief 收到来自房间中其他用户通过 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 发来的点对点二进制消息时,会收到此回调。 + * @param rtcRoom ByteRTCRoom 对象 + * @param msgid 消息编号. + * @param uid 消息发送者的用户 ID。 + * @param message 收到的二进制消息内容。 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserBinaryMessageReceived:(NSInteger)msgid uid:(NSString *_Nonnull)uid + message:(NSData *_Nonnull)message; + /** + * + * @type callback + * @brief 向房间内单个用户发送文本或二进制消息后(P2P),消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCUserMessageSendResult{@link #ByteRTCUserMessageSendResult} + * @note + * - 你应调用 sendUserMessage:message:config:{@link #ByteRTCRTSRoom#sendUserMessage:message:config:} 向房间内单个用户发送文本消息 + * - 你应调用 sendUserBinaryMessage:message:config:{@link #ByteRTCRTSRoom#sendUserBinaryMessage:message:config:} 向房间内单个用户发送二进制消息 + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserMessageSendResult:(NSInteger)msgid error:(ByteRTCUserMessageSendResult)error; + /** + * + * @type callback + * @brief 调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage:} 或 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage:} 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param msgid 本条消息的 ID。 + * @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} + * @list 消息 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomMessageSendResult:(NSInteger)msgid error:(ByteRTCRoomMessageSendResult)error; +/** + * + * @valid since 3.52. + * @type callback + * @brief 调用 setRoomExtraInfo:value:{@link #ByteRTCRoom#setRoomExtraInfo:value:} 结果回调。 + * @param rtcRoom ByteRTCRoom 对象。 + * @param taskId 本次调用的任务编号。 + * @param result 设置房间附加信息结果,详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult} + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSetRoomExtraInfoResult:(NSInteger)taskId result:(ByteRTCSetRoomExtraInfoResult)result; +/** + * + * @valid since 3.52. + * @type callback + * @brief 接收到房间附加信息的回调。
    + * 房间内其他用户调用 setRoomExtraInfo:value:{@link #ByteRTCRoom#setRoomExtraInfo:value:} 设置房间附加信息,收到此回调。
    + * 另外用户加入房间成功后会收到这个房间全量附加信息 + * @param rtcRoom ByteRTCRoom 对象。 + * @param key 附加信息的键值 + * @param value 附加信息的内容 + * @param lastUpdateUserId 最后更新这条附加信息的用户编号 + * @param lastUpdateTimeMs 最后更新这条附加信息的 Unix 时间,时间精度是毫秒 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomExtraInfoUpdate:(NSString *_Nonnull)key value:(NSString *_Nonnull)value lastUpdateUserId:(NSString *_Nonnull)lastUpdateUserId lastUpdateTimeMs:(NSInteger)lastUpdateTimeMs; + +/** + * + * @valid since 3.54 + * @type callback + * @brief 接收同一房间内,其他用户调用 setStreamExtraInfo:{@link #ByteRTCRoom#setStreamExtraInfo:} 设置的流附加信息的回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param streamId 流附加信息的流 ID + * @param streamInfo 流附加信息的流信息 + * @param extraInfo 流附加信息 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onRoomStreamExtraInfoUpdate:(NSString *_Nonnull)streamId info:(ByteRTCStreamInfo *_Nonnull)streamInfo extraInfo:(NSString *_Nonnull)extraInfo; + +/** + * + * @valid since 3.54 + * @type callback + * @brief 用户调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 设置用户可见性的回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param currentUserVisibility 当前用户的可见性。
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @param errorCode 设置用户可见性错误码,参看 ByteRTCUserVisibilityChangeError{@link #ByteRTCUserVisibilityChangeError}。 + * @list 房间管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onUserVisibilityChanged:(BOOL)currentUserVisibility errorCode:(ByteRTCUserVisibilityChangeError)errorCode; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户视频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 被禁用/解禁的视频流用户 ID + * @param banned 视频流发送状态
    + * - true: 视频流发送被禁用 + * - false: 视频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁视频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onVideoStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; +/** + * + * @type callback + * @brief 通过调用服务端 BanUserStream/UnbanUserStream 方法禁用/解禁指定房间内指定用户音频流的发送时,触发此回调。 + * @param rtcRoom `ByteRTCRoom` 实例 + * @param uid 被禁用/解禁的音频流用户 ID + * @param banned 音频流发送状态
    + * - true: 音频流发送被禁用 + * - false: 音频流发送被解禁 + * @note + * - 房间内指定用户被禁止/解禁音频流发送时,房间内所有用户都会收到该回调。 + * - 若被封禁用户断网或退房后再进房,则依然是封禁状态,且房间内所有人会再次收到该回调。 + * - 指定用户被封禁后,房间内其他用户退房后再进房,会再次收到该回调。 + * - 在控制台开启音频选路后,只有被封禁/解禁用户会收到该回调。 + * - 同一房间解散后再次创建,房间内状态清空。 + * @list 音频管理 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onAudioStreamBanned:(NSString *_Nonnull)uid isBanned:(BOOL)banned; + +#pragma mark ForwardStream related callback + /** + * + * @type callback + * @brief 跨房间媒体流转发状态和错误回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param infos 跨房间媒体流转发目标房间信息数组,详见 ByteRTCForwardStreamStateInfo{@link #ByteRTCForwardStreamStateInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onForwardStreamStateChanged:(NSArray * _Nonnull)infos; + /** + * + * @type callback + * @brief 跨房间媒体流转发事件回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param infos 跨房间媒体流转发目标房间事件数组,详见 ByteRTCForwardStreamEventInfo{@link #ByteRTCForwardStreamEventInfo} + * @list 音视频传输 + */ + +- (void)rtcRoom:( ByteRTCRoom * _Nonnull)rtcRoom onForwardStreamEvent:(NSArray * _Nonnull)infos; +/** + * + * @type callback + * @brief 加入房间并发布或订阅流后, 以每 2 秒一次的频率,报告本地用户和已订阅的远端用户的上下行网络质量信息。 + * @param rtcRoom ByteRTCRoom 对象 + * @param localQuality 本端网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @param remoteQualities 已订阅用户的网络质量,详见 ByteRTCNetworkQualityStats{@link #ByteRTCNetworkQualityStats}。 + * @note 更多通话中的监测接口,详见[通话中质量监测](https: + * @list 音视频传输 + */ + +- (void)rtcRoom:(ByteRTCRoom * _Nonnull)rtcRoom onNetworkQuality:(ByteRTCNetworkQualityStats *_Nonnull)localQuality remoteQualities:(NSArray *_Nonnull)remoteQualities; +/** + * + * @type callback + * @brief 字幕状态发生改变回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 和 stopSubtitle{@link #ByteRTCRoom#stopSubtitle} 使字幕状态发生改变或出现错误时,触发该回调。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param state 字幕状态。参看 ByteRTCSubtitleState{@link #ByteRTCSubtitleState}。 + * @param errorCode 字幕任务错误码。参看 ByteRTCSubtitleErrorCode{@link #ByteRTCSubtitleErrorCode}。 + * @param errorMessage 第三方服务出现的错误。当因第三方服务出现错误,导致字幕状态改变时,用户可通过此参数获取具体的错误信息。如果不是因为第三方服务导致字幕状态改变,该字段为空。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSubtitleStateChanged:(ByteRTCSubtitleState)state + errorCode:(ByteRTCSubtitleErrorCode)errorCode + errorMessage:(NSString *_Nonnull)errorMessage; +/** + * + * @type callback + * @brief 字幕相关内容回调。
    + * 当用户调用 startSubtitle:{@link #ByteRTCRoom#startSubtitle:} 后会收到此回调,通知字幕的相关信息。 + * @param rtcRoom ByteRTCRoom 实例。 + * @param subtitles 字幕消息内容。参看 ByteRTCSubtitleMessage{@link #ByteRTCSubtitleMessage}。 + * @list 字幕翻译服务 + */ + +- (void)rtcRoom:( ByteRTCRoom *_Nonnull)rtcRoom onSubtitleMessageReceived:(NSArray * _Nonnull)subtitles; +@end +/** + * + * @type api + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoom : ByteRTCRTSRoom +/** + * + * @type callback + */ + +@property(nonatomic, weak) id _Nullable delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 退出并销毁调用 createRTCRoom:{@link #ByteRTCEngine#createRTCRoom:} 所创建的房间实例。 + * @list 房间管理 + */ + +- (void)destroy; +/** + * + * @valid since 3.53 + * @type api + * @brief 获取房间 ID。 + * @return 房间 ID。 + * @list 房间管理 + */ + +- (NSString *_Nonnull)getRoomId; +/** + * + * @type api + * @brief 通过设置 ByteRTCRoom{@link #ByteRTCRoom} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 房间管理 + */ + + +- (int)setRTCRoomDelegate:(id _Nullable)roomDelegate; +/** + * + * @type api + * @brief 加入 RTC 房间。
    + * 调用 createRTCRoom:{@link #ByteRTCEngine#createRTCRoom:} 创建房间后,调用此方法加入房间,同房间内其他用户进行音视频通话。
    + * > 用户(包括后端机器人)成功进入 RTC 房间后便开始计费。即使房间内只有 1 个用户,也会计算音频计费时长。具体计费说明,请参见[音视频通话计费](69871)。 + * @param token 动态密钥,用于对进房用户进行鉴权验证。
    + * 进入房间需要携带 Token。测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。Token 有效期及生成方式参看[使用 Token 完成鉴权](70121)。
    + * 使用不同 AppID 的 App 是不能互通的。
    + * 请务必保证生成 Token 使用的 AppID 和创建引擎时使用的 AppID 相同,否则会导致加入房间失败。 + * @param userInfo 用户信息。参看 ByteRTCUserInfo{@link #ByteRTCUserInfo}。 + * @param userVisibility 用户可见性。建议在进房时将用户可见性都设置为 `false`,并在用户需要发送音视频流时再通过 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 设置为 `true`。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * @param roomConfig 房间参数配置,设置房间模式以及是否自动发布或订阅流。具体配置模式参看 ByteRTCRoomConfig{@link #ByteRTCRoomConfig}。 + * @return 方法调用结果。
    + * - 0: 成功。触发以下回调: + * - 本端收到房间状态通知 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + * - 本端收到本地流发布状态通知 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}。 + * - 本端收到流订阅状态通知 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。 + * - 本端收到房间内已发布流的通知 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:}。 + * - 如果本端用户为可见用户,房间内其他用户收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - -1: 参数无效 + * - -2: 已经在房间内。接口调用成功后,只要收到返回值为 0 ,且未调用 leaveRoom{@link #ByteRTCRoom#leaveRoom} 成功,则再次调用进房接口时,无论填写的房间 ID 和用户 ID 是否重复,均触发此返回值。 + * 调用失败时,具体失败原因会通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调告知。 + * @note + * - 同一个 AppID 的同一个房间内,每个用户的用户 ID 必须是唯一的。如果两个用户的用户 ID 相同,则后加入房间的用户会将先加入房间的用户踢出房间,并且先加入房间的用户会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,错误类型为重复登录 ByteRTCErrorCodeDuplicateLogin。 + * - 本地用户调用此方法加入房间成功后,会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。若本地用户同时为可见用户,加入房间时远端用户会收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 回调通知。 + * - 房间内不可见用户的容量远远大于可见用户,而且用户默认可见,因此对于不参与互动的用户,你需要调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 更改为不可见用户。从而避免因房间内用户达到数量上限所导致的进房失败。默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,其中最多 30 人可同时上麦,更多信息参看[用户和媒体流上限](https: + * - 用户加入房间成功后,在本地网络状况不佳的情况下,SDK 可能会与服务器失去连接,并触发 rtcEngine:onConnectionStateChanged:{@link #ByteRTCEngineDelegate#rtcEngine:onConnectionStateChanged:} 回调。此时 SDK 会自动重试,直到成功重连。重连成功后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:}。 + * @list 房间管理 + */ + +- (int)joinRoom:(NSString *_Nullable)token userInfo:(ByteRTCUserInfo *_Nonnull)userInfo userVisibility:(BOOL)userVisibility roomConfig:(ByteRTCRoomConfig *_Nonnull)roomConfig NS_SWIFT_NAME(joinRoom(_:userInfo:userVisibility:roomConfig:)); +/** + * + * @type api + * @brief 设置用户可见性。未调用该接口前,本地用户默认对他人可见。
    + * 默认情况下,一个 RTC 房间最多同时容纳 50 名可见用户,最多 30 人可同时上麦。更多信息参看[用户和媒体流上限](https: + * @param enable 设置用户是否对房间内其他用户可见:
    + * - YES: 可见,用户可以在房间内发布音视频流,房间中的其他用户将收到用户的行为通知,例如进房、开启视频采集和退房。 + * - NO: 不可见,用户不可以在房间内发布音视频流,房间中的其他用户不会收到用户的行为通知,例如进房、开启视频采集和退房。 + * @return + * - 0: 调用成功。 + * - < 0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * 设置用户可见性,会收到设置成功/失败回调 rtcRoom:onUserVisibilityChanged:errorCode:{@link #ByteRTCRoomDelegate#rtcRoom:onUserVisibilityChanged:errorCode:}。(v3.54 新增) + * - 在加入房间前设置用户可见性,若设置的可见性与默认值不同,将在加入房间时触发本回调。
    + * - 在加入房间后设置用户可见性,若可见性前后不同,会触发本回调。
    + * - 在断网重连后,若可见性发生改变,会触发本回调。
    + * @note + * - 在加入房间前后,用户均可调用此方法设置用户可见性。 + * - 在房间内,调用此方法成功切换用户可见性后,房间内其他用户会收到相应的回调。 + * - 从可见换至不可见时,房间内其他用户会收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:}。 + * - 从不可见切换至可见时,房间内其他用户会收到 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:}。 + * - 若调用该方法将可见性设为 `false`,此时尝试发布流会收到 `ByteRTCWarningCodeSubscribeStreamForbiden` 警告。 + * @list 房间管理 + */ + +- (int)setUserVisibility:(BOOL)enable; +/** + * + * @type api + * @brief 设置发流端音画同步。
    + * 当同一用户同时使用两个通话设备分别采集发送音频和视频时,有可能会因两个设备所处的网络环境不一致而导致发布的流不同步,此时你可以在视频发送端调用该接口,SDK 会根据音频流的时间戳自动校准视频流,以保证接收端听到音频和看到视频在时间上的同步性。 + * @param audioUserId 音频发送端的用户 ID,将该参数设为空则可解除当前音视频的同步关系。 + * @return + * - 0: 调用成功。调用该接口后音画同步状态发生改变时,你会收到 rtcRoom:onAVSyncStateChange:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncStateChange:} 回调。 + * - < 0 : 调用失败。监听 rtcRoom:onAVSyncEvent:userId:eventCode:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncEvent:userId:eventCode:} 获取错误详情。同一 RTC 房间内允许存在多个音视频同步关系,但需注意单个音频源不支持与多个视频源同时同步。 + * @note + * - 该方法在进房前后均可调用。 + * - 进行音画同步的音频发布用户 ID 和视频发布用户 ID 须在同一个 RTC 房间内。 + * - 如需更换同步音频源,再次调用该接口传入新的 `audioUserId` 即可;如需更换同步视频源,需先解除当前的同步关系,后在新视频源端开启同步。 + * @list 音视频传输 + */ + +- (int)setMultiDeviceAVSync:(NSString* _Nullable) audioUserId; +/** + * + * @type api + * @brief 离开 RTC 房间。
    + * 调用此方法结束通话过程,并释放所有通话相关的资源。 + * @return + * - 0: 调用成功。如果用户是房间内可见用户,触发以下回调: + * - 远端用户收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * - 正在发布的流会被取消发布。远端用户收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调通知。 + * - < 0: 调用失败,参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 加入房间后,必须调用此方法结束通话,否则无法开始下一次通话。 + * - 此方法是异步操作,调用返回时并没有真正退出房间。真正退出房间后,本地会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知。你必须在收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调后,再销毁房间或引擎,或调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 再次加入房间。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 将自身设为可见的用户离开房间后,房间内其他用户会收到 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 回调通知。 + * @list 房间管理 + */ + +- (int)leaveRoom NS_SWIFT_NAME(leaveRoom()); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @brief 发布/取消发布视频流。 + * @param publish 是否发布视频流。
    + * - true: 发布。 + * - false: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头视频流。 + * - 如果你需要发布麦克风采集到的音频流,调用 publishStreamAudio:{@link #ByteRTCRoom#publishStreamAudio:}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。 + * - 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调通知,订阅了视频流的远端用户会收到 rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:} 回调。 + * @list 音视频传输 + */ + +- (int)publishStreamVideo:(BOOL)publish; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `publishStream`、`unpublishStream` 、`publishScreen` 和 `unpublishScreen` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这些方法,请迁移到此接口。 + * @brief 发布/取消发布音频流。 + * @param publish 指定是否发布音频流。
    + * - true: 发布。 + * - false: 取消发布。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。 + * - 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布音频流。 + * - 如果你需要发布摄像头采集到的视频流,调用 publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo:}。 + * - 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。 + * - 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调通知,其中成功收到了音频流的远端用户会收到 rtcEngine:onFirstRemoteAudioFrame:info:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteAudioFrame:info:} 回调。 + * @list 音视频传输 + * @order 0 + */ + +- (int)publishStreamAudio:(BOOL)publish; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream` 和 `unsubscribeStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端视频流。 + * @param streamId 目标远端视频流 ID。 + * @param subscribe 指定是否订阅该视频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:} 回调获取当前房间里的远端摄像头流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用本方法取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 回调通知,具体异常原因参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + +- (int)subscribeStreamVideo:(NSString *_Nonnull)streamId subscribe:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeStream` 和 `unsubscribeStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内指定的远端音频流。 + * @param streamId 目标远端音频流 ID。 + * @param subscribe 指定是否订阅该音频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * - 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。 + * - 你必须先通过 rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调获取当前房间里的远端麦克风流信息,然后调用本方法按需订阅。 + * - 调用该方法后,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 回调通知,具体异常原因参看 ByteRTCSubscribeStateChangeReason{@link #ByteRTCSubscribeStateChangeReason}。 + * @list 音视频传输 + * @order 3 + */ + +- (int)subscribeStreamAudio:(NSString *_Nonnull)streamId subscribe:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅/取消订阅房间内所有远端视频流(通过摄像头采集的)。 + * @param subscribe 是否订阅所有远端视频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return + * 0: 方法调用成功
    + * !0: 方法调用失败 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:} 接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功调用本接口后,订阅关系将持续到调用 subscribeAllStreamsVideo:{@link #ByteRTCRoom#subscribeAllStreamsVideo:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 音视频传输 + */ + +- (int)subscribeAllStreamsVideo:(BOOL)subscribe; + + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `subscribeAllStreams` 和 `unsubscribeAllStreams` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用这两个方法,请迁移至该接口。 + * @brief 订阅或取消订阅所有远端音频流(通过麦克风采集的)。 + * @param subscribe 是否订阅所有远端音频流。
    + * - true: 订阅。 + * - false: 取消订阅。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 多次调用订阅接口时,将根据末次调用接口和传入的参数,更新订阅配置。 + * - 开启音频选路后,如果房间内的媒体流超过上限,建议通过调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 接口逐一指定需要订阅的媒体流。 + * - 调用该方法后,你会收到 rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:} 通知方法调用结果。 + * - 成功订阅远端用户的媒体流后,订阅关系将持续到调用 subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 取消订阅或本端用户退房。 + * - 关于其他调用异常,你会收到 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + * @list 音视频传输 + */ + +- (int)subscribeAllStreamsAudio:(BOOL)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #ByteRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + +- (int)pauseAllSubscribedStreamVideo; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `pauseAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 暂停接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅暂停远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * - 若想恢复接收远端流,需调用 resumeAllSubscribedStreamVideo{@link #ByteRTCRoom#resumeAllSubscribedStreamVideo}。 + * - 多房间场景下,仅暂停接收发布在当前所在房间的流。 + * @list 音视频传输 + */ + +- (int)pauseAllSubscribedStreamAudio; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端视频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + +- (int)resumeAllSubscribedStreamVideo; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `resumeAllSubscribedStream` 方法来实现下述功能。如果你已升级至 3.60 及以上版本,且仍在使用该方法,请迁移至该接口。 + * @brief 恢复接收所有远端音频流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 该方法仅恢复远端流的接收,并不影响远端流的采集和发送; + * - 该方法不改变用户的订阅状态以及订阅流的属性。 + * @list 音视频传输 + */ + +- (int)resumeAllSubscribedStreamAudio; + + /** + * + * @type api + * @brief 给房间内的所有其他用户群发文本消息。 + * @param message 发送的文本消息内容。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在发送房间内文本消息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该函数后会收到一次 rtcRoom:onRoomMessageSendResult:error:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若文本消息发送成功,则房间内所有远端用户会收到 rtcRoom:onRoomMessageReceived:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (NSInteger)sendRoomMessage:(NSString *_Nonnull)message NS_SWIFT_NAME(sendRoomMessage(_:)); + /** + * + * @type api + * @brief 给房间内的所有其他用户群发二进制消息。 + * @param message 用户发送的二进制广播消息。默认单次发送的消息内容包大小为 1 KB,如需更大的包传递(最大不可超过 64 KB),需[在控制台启用 RTS 高级功能](https: + * @return 这次发送消息的编号,从 1 开始递增。 + * @note + * - 在房间内广播二进制消息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该函数后会收到一次 rtcRoom:onRoomMessageSendResult:error:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomMessageSendResult:error:} 回调,通知消息发送方发送成功或失败; + * - 若二进制消息发送成功,则房间内所有用户会收到 rtcRoom:onRoomBinaryMessageReceived:message:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomBinaryMessageReceived:message:} 回调。 + * @list 消息 + */ + +- (NSInteger)sendRoomBinaryMessage:(NSData * _Nonnull)message NS_SWIFT_NAME(sendRoomBinaryMessage(_:)); + +#pragma mark ForwardStream + /** + * + * @type api + * @brief 开始跨房间转发媒体流。
    + * 在调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 后调用本接口,实现向多个房间转发媒体流,适用于跨房间连麦等场景。 + * @param configurations 跨房间媒体流转发指定房间的信息。参看 ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调。 + * - 调用本方法后,你可以通过监听 rtcRoom:onForwardStreamEvent:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamEvent:} 回调来获取各个目标房间在转发媒体流过程中的相关事件。 + * - 开始转发后,目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发流 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调。 + * - 调用本方法后,可以调用 updateForwardStreamToRooms:{@link #ByteRTCRoom#updateForwardStreamToRooms:} 更新目标房间信息,例如,增加或减少目标房间等。 + * - 调用本方法后,可以调用 stopForwardStreamToRooms{@link #ByteRTCRoom#stopForwardStreamToRooms} 停止向所有房间转发媒体流。 + * - 调用本方法后,可以调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms} 暂停向所有房间转发媒体流。 + * @list 音视频传输 + */ + +- (int)startForwardStreamToRooms:(NSArray * _Nullable)configurations NS_SWIFT_NAME(startForwardStreamToRooms(_:)); + /** + * + * @type api + * @brief 更新跨房间媒体流转发信息。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法增加或者减少目标房间,或更新房间密钥。
    + * 调用本方法增加或删减房间后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调,包含发生了变动的目标房间中媒体流转发状态。 + * @param configurations 跨房间媒体流转发目标房间信息。参看 ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * 增加或删减目标房间后,新增目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调。 + * @list 音视频传输 + */ + +- (int)updateForwardStreamToRooms:(NSArray * _Nullable)configurations NS_SWIFT_NAME(updateForwardStreamToRooms(_:)); +/** + * + * @type api + * @brief 停止跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法停止向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 调用本方法后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged:} 回调。 + * - 调用本方法后,原目标房间中的用户将接收到本地用户停止发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调和退房 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 的回调。 + * - 如果需要更改目标房间,请调用 updateForwardStreamToRooms:{@link #ByteRTCRoom#updateForwardStreamToRooms:} 更新房间信息。 + * - 如果需要暂停转发,请调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms},并在之后随时调用 resumeForwardStreamToAllRooms{@link #ByteRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @list 音视频传输 + */ + +- (int)stopForwardStreamToRooms; +/** + * + * @type api + * @brief 暂停跨房间媒体流转发。
    + * 通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 发起媒体流转发后,可调用本方法暂停向所有目标房间转发媒体流。
    + * 调用本方法暂停向所有目标房间转发后,你可以随时调用 resumeForwardStreamToAllRooms{@link #ByteRTCRoom#resumeForwardStreamToAllRooms} 快速恢复转发。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note 调用本方法后,目标房间中的用户将接收到本地用户停止发布 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish:}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish:} 回调和退房 rtcRoom:onUserLeave:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onUserLeave:reason:} 的回调。 + * @list 音视频传输 + * @order 13 + */ + +- (int)pauseForwardStreamToAllRooms; +/** + * + * @type api + * @brief 恢复跨房间媒体流转发。
    + * 调用 pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms} 暂停转发之后,调用本方法恢复向所有目标房间转发媒体流。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * 目标房间中的用户将接收到本地用户进房 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 和发布 rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined:} 的回调。 + * @list 音视频传输 + */ + +- (int)resumeForwardStreamToAllRooms; +/** + * + * @type api + * @brief 获取范围语音接口实例。 + * @return 方法调用结果:
    + * - ByteRTCRangeAudio:成功,返回一个 ByteRTCRangeAudio{@link #ByteRTCRangeAudio} 实例。 + * - NULL:失败,当前 SDK 不支持范围语音功能。 + * @note 首次调用该方法须在创建房间后、加入房间前。范围语音相关 API 和调用时序详见[范围语音](https: + * @list 高级功能 + */ + +- (ByteRTCRangeAudio *_Nullable)getRangeAudio; +/** + * + * @type api + * @brief 获取空间音频接口实例。 + * @return 方法调用结果:
    + * - ByteRTCSpatialAudio:成功,返回一个 ByteRTCSpatialAudio{@link #ByteRTCSpatialAudio} 实例。 + * - NULL:失败,当前 SDK 不支持空间音频功能。 + * @note + * - 首次调用该方法须在创建房间后、加入房间前。 空间音频相关 API 和调用时序详见[空间音频](https: + * - 只有在使用支持真双声道播放的设备时,才能开启空间音频效果; + * - 机型性能不足可能会导致音频卡顿,使用低端机时,不建议开启空间音频效果; + * - SDK 最多支持 30 个用户同时开启空间音频功能。 + * @list 高级功能 + */ + +- (ByteRTCSpatialAudio *_Nullable)getSpatialAudio; +/** + * + * @type api + * @brief 调节某个房间内所有远端用户的音频播放音量。 + * @param volume 音频播放音量值和原始音量的比值,范围是 [0, 400],单位为 %,自带溢出保护。为保证更好的通话质量,建议将 volume 值设为 [0,100]。
    + * - 0: 静音 + * - 100: 原始音量,默认值 + * - 400: 最大可为原始音量的 4 倍(自带溢出保护) + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 假设某远端用户 A 始终在被调节的目标用户范围内,
    + * - 该方法与 setRemoteAudioPlaybackVolume:volume:{@link #ByteRTCEngine#setRemoteAudioPlaybackVolume:volume:} 互斥,最新调用的任一方法设置的音量将覆盖此前已设置的音量,效果不叠加; + * - 当该方法与 setPlaybackVolume:{@link #ByteRTCEngine#setPlaybackVolume:} 方法共同使用时,本地收听用户 A 的音量将为两次设置的音量效果的叠加。 + * @list 音频管理 + */ + +- (int)setRemoteRoomAudioPlaybackVolume:(NSInteger)volume; +/** + * + * @valid since 3.52. + * @type api + * @brief 设置本端发布流在音频选路中的优先级。 + * @param audioSelectionPriority 本端发布流在音频选路中的优先级,默认正常参与音频选路。参见 ByteRTCAudioSelectionPriority{@link #ByteRTCAudioSelectionPriority}。 + * @note + * 在控制台上为本 appId 开启音频选路后,调用本接口才会生效。进房前后调用均可生效。更多信息参见[音频选路](https: + * 如果本端用户同时加入不同房间,使用本接口进行的设置相互独立。 + * @list 音频管理 + */ + +- (int)setAudioSelectionConfig:(ByteRTCAudioSelectionPriority)audioSelectionPriority; +/** + * + * @valid since 3.52. + * @type api + * @brief 设置/更新房间附加信息,可用于标识房间状态或属性,或灵活实现各种业务逻辑。 + * @param key 房间附加信息键值,长度小于 10 字节。
    + * 同一房间内最多可存在 5 个 key,超出则会从第一个 key 起进行替换。 + * @param value 房间附加信息内容,长度小于 128 字节。 + * @return + * - 0: 方法调用成功,返回本次调用的任务编号; + * - <0: 方法调用失败,具体原因详见 ByteRTCSetRoomExtraInfoResult{@link #ByteRTCSetRoomExtraInfoResult}。 + * @note + * - 在设置房间附加信息前,必须先调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 加入房间。 + * - 调用该方法后,会收到一次 rtcRoom:onSetRoomExtraInfoResult:result:{@link #ByteRTCRoomDelegate#rtcRoom:onSetRoomExtraInfoResult:result:} 回调,提示设置结果。 + * - 调用该方法成功设置附加信息后,同一房间内的其他用户会收到关于该信息的回调 rtcRoom:onRoomExtraInfoUpdate:value:lastUpdateUserId:lastUpdateTimeMs:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomExtraInfoUpdate:value:lastUpdateUserId:lastUpdateTimeMs:}。 + * - 新进房的用户会收到进房前房间内已有的全部附加信息通知。 + * @list 房间管理 + */ + +- (NSInteger)setRoomExtraInfo:(NSString *_Nonnull)key value:(NSString *_Nonnull)value; + +/** + * + * @type api + * @region 流管理 + * @brief 设置当前推流的流附加信息。 + * @param extra_info 流附加信息。长度不超过1024的字符串。 + * @return 方法调用结果:
    + * + 0:成功;
    + * + !0:失败。 + * @note + * + 可通过此函数设置当前推流的流附加信息。流附加信息是流 ID 的附加信息标识,不同于流 ID 在推流过程中不可修改,流附加信息可以在对应流 ID 的推流中途修改。开发者可根据流附加信息来实现流 ID 相关的可变内容的同步。 + * + 该方法在进房前后均可调用 + * + 相同房间内的其他用户会通过 [onRoomStreamExtraInfoUpdate] 回调函数获得通知。 + * @list 音视频传输 + */ + +- (NSInteger)setStreamExtraInfo:(NSString *_Nonnull)extra_info; + +/** + * + * @valid since 3.52 + * @type api + * @brief 识别或翻译房间内所有用户的语音,形成字幕。
    + * 调用该方法时,可以在 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode} 中选择语音识别或翻译模式。如果选择识别模式,语音识别文本会通过 rtcRoom:onSubtitleMessageReceived:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleMessageReceived:} 事件回调给你;
    + * 如果选择翻译模式,你会同时收到两个 rtcRoom:onSubtitleMessageReceived:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleMessageReceived:} 回调,分别包含字幕原文及字幕译文。
    + * 调用该方法后,用户会收到 rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:} 回调,通知字幕是否开启。 + * @param subtitleConfig 字幕配置信息。参看 ByteRTCSubtitleConfig{@link #ByteRTCSubtitleConfig}。 + * @return + * - 0: 成功。 + * - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 + * @note + * - 使用字幕功能前,你需要在 [RTC 控制台](https: + * - 如果你需要使用流式语音识别模式,你应在 [豆包语音控制台](https: + * - 如果你需要使用实时语音翻译模式,你应开通机器翻译服务,参考 [开通服务](https: + * - 如需指定源语言,你需要在调用 `joinRoom` 接口进房时,通过 extraInfo 参数传入格式为`"语种英文名": "语种代号"` JSON 字符串,例如设置源语言为英文时,传入 `"source_language": "en"`。如未指定源语言,SDK 会将系统语种设定为源语言。如果你的系统语种不是中文、英文和日文,此时 SDK 会自动将中文设为源语言。 + * - 识别模式下,你可以传入 [RTC 控制台](https: + * - 翻译模式下,你需要传入机器翻译规定的语种英文名和语种代号。翻译模式下支持的语言及对应的代号参看[翻译模式语言支持](https: + * @list 字幕翻译服务 + */ + +- (int)startSubtitle:(ByteRTCSubtitleConfig *_Nonnull)subtitleConfig; +/** + * + * @valid since 3.52 + * @type api + * @brief 关闭字幕。
    + * 调用该方法后,用户会收到 rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:{@link #ByteRTCRoomDelegate#rtcRoom:onSubtitleStateChanged:errorCode:errorMessage:} 回调,通知字幕是否关闭。 + * @return + * - 0: 调用成功。 + * - !0: 调用失败。 + * @list 字幕翻译服务 + */ + +- (int)stopSubtitle; + +/** + * + * @type api + * @valid since 3.60. + * @brief 设置期望订阅的远端视频流类型。 + * @param streamId 目标要订阅的远端视频流 ID。 + * @param streamType 远端视频流类型,参看 ByteRTCVideoSimulcastStreamType{@link #ByteRTCVideoSimulcastStreamType}。 + * @return 方法调用结果:
    + * - 0:成功; + * - <0:失败。 + * @note + * - 该方法仅在发布端调用 setVideoEncoderConfig:withParameters:{@link #ByteRTCEngine#setVideoEncoderConfig:withParameters:} 开启了发送多路视频流的情况下生效。 + * - 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。该方法可在进房后调用。 + * @list 视频管理 + * @order 1 + */ + +- (int)setRemoteSimulcastStreamType:(NSString * _Nonnull) streamId streamType:(ByteRTCVideoSimulcastStreamType)streamType; + +/** + * + * @type api + * @brief 设置期望订阅的远端视频流的参数。 + * @param streamId 期望配置订阅参数的远端视频流 ID。 + * @param remoteVideoConfig 期望配置的远端视频流参数,参看 ByteRTCRemoteVideoConfig{@link #ByteRTCRemoteVideoConfig}。 + * @return 方法调用结果:
    + * + 0:成功。
    + * + !0:失败。 + * @note + * + 若使用 342 及以前版本的 SDK,调用该方法前请联系技术支持人员开启按需订阅功能。
    + * + 该方法仅在发布端调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setLocalSimulcastMode:} 开启了发送多路视频流的情况下生效,此时订阅端将收到来自发布端与期望设置的参数最相近的一路流;否则订阅端只会收到一路参数为分辨率 640px × 360px、帧率 15fps 的视频流。
    + * + 若发布端开启了推送多路流功能,但订阅端不对流参数进行设置,则默认接受发送端设置的分辨率最大的一路视频流。
    + * + 该方法需在进房后调用。
    + * + SDK 会根据发布端和所有订阅端的设置灵活调整视频流的参数,具体调整策略详见[推送多路流](https: + * @list 视频管理 + */ + +- (int)setRemoteVideoConfig:(NSString * _Nonnull) streamId remoteVideoConfig:(ByteRTCRemoteVideoConfig *_Nonnull) remoteVideoConfig; + + +/** + * + * @type api + * @valid since 3.60. + * @brief 获取通话 ID。
    + * 该方法需要在加入房间后调用。当创建一个房间开启音视频通话后,系统会为该房间生成一个对应的通话 ID,标识此房间的通话。 + * @return 通话 ID。 + * @list 房间管理 + */ + +- (NSString * _Nonnull)getCallId; + +/** + * + * @type api + * @valid since 3.60. + * @brief 设置直播房间的场景类型。 + * @param mode 直播房间场景类型,参看 ByteRTCRoomLiveMode{@link #ByteRTCRoomLiveMode}。 + * @return + * - 0: 成功。 + * - <0: 失败。 + * @list 房间管理 + */ + +- (int)setLiveMode:(ByteRTCRoomLiveMode)mode; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h new file mode 100644 index 0000000..b05ad1c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/ByteRTCRoomEx.h @@ -0,0 +1,134 @@ +#import "ByteRTCRoom.h" +#import "rtc/ByteRTCVideoDefinesEx.h" + +@class ByteRTCRoomEx; + +/** + * + * @type callback + * @brief ByteRTCRoomDelegateEx Class
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ +@protocol ByteRTCRoomDelegateEx +@optional + +/** + * + * @type callback + * @region 房间管理 + * @brief 关于订阅媒体流状态改变的回调 + * @param rtcRoom ByteRTCRoom 对象 + * @param state 订阅媒体流状态,参看 ByteRTCSubscribeState{@link #ByteRTCSubscribeState} + * @param userId 流发布用户的用户 ID + * @param streamIndex 流属性,用于指定订阅主流/屏幕流,参看 ByteRTCStreamIndex{@link#ByteRTCStreamIndex} + * @param info 流的属性,参看 ByteRTCSubscribeConfig{@link #ByteRTCSubscribeConfig} + * @note 本地用户收到该回调的时机包括:
    + * + 调用 subscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#subscribeStream:streamIndex:mediaStreamType:} 或 unsubscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#unsubscribeStream:streamIndex:mediaStreamType:} 订阅/取消订阅指定远端摄像头音视频流后;
    + * + 调用 subscribeScreen:mediaStreamType:{@link #ByteRTCRoom#subscribeScreen:mediaStreamType:} 或 unsubscribeScreen:mediaStreamType:{@link #ByteRTCRoom#unsubscribeScreen:mediaStreamType:} 订阅/取消订阅指定远端屏幕共享流后。 + */ +- (void)rtcRoom:(ByteRTCRoom* _Nonnull)rtcRoom + onStreamSubscribed:(ByteRTCSubscribeState)state + userId:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + subscribeConfig:(ByteRTCSubscribeConfig* _Nonnull)info; +@end + +/** + * + * @type api + * @brief IRTCRoomEx Class + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomEx : ByteRTCRoom +/** + * + * @hidden + */ +@property(nonatomic, weak) id _Nullable delegateEx; +/** + * + * @type api + * @region 房间管理 + * @brief 在当前所在房间内发布媒体流 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * + 如果你已经在用户进房时通过调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 成功选择了自动发布,则无需再调用本接口。
    + * + 调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 方法将自身设置为不可见后无法调用该方法,需将自身切换至可见后方可调用该方法发布摄像头音视频流。
    + * + 如果你需要向多个房间发布流,调用 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:}。
    + * + 调用此方法后,房间中的所有远端用户会收到 rtcRoom:onUserPublishStream:isScreen:mediaStreamType:{@link #ByteRTCRoomDelegateEx#rtcRoom:onUserPublishStream:isScreen:mediaStreamType:} 回调通知,其中成功收到了音频流的远端用户会收到 rtcEngine:onFirstRemoteAudioFrame:info:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteAudioFrame:info:} 回调,订阅了视频流的远端用户会收到 rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCRoomDelegate#rtcEngine:info:onFirstRemoteVideoFrameDecoded:withFrameInfo:info:withFrameInfo:{@link #ByteRTCEngineDelegate#rtcEngine:onFirstRemoteVideoFrameDecoded:info:withFrameInfo:{@link #ByteRTCRoomDelegate#rtcEngine:info:onFirstRemoteVideoFrameDecoded:withFrameInfo:info:withFrameInfo:} 回调。
    + * + 调用 unpublishStream:mediaStreamType:{@link #ByteRTCRoomEx#unpublishStream:mediaStreamType:} 取消发布。 + */ +- (int)publishStream:(ByteRTCStreamIndex)streamIndex mediaStreamType:(ByteRTCMediaStreamType)type; +/** + * + * @type api + * @region 房间管理 + * @brief 停止将本地摄像头/麦克风采集的媒体流发布到当前所在房间中 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * + 调用 publishStream:mediaStreamType:{@link #ByteRTCRoomEx#publishStream:mediaStreamType:} 手动发布摄像头音视频流后,你需调用此接口停止发布。
    + * + 调用此方法停止发布音视频流后,房间中的其他用户将会收到 rtcRoom:onUserUnpublishStream:type:reason: 回调通知。 + */ +- (int)unpublishStream:(ByteRTCStreamIndex)streamIndex mediaStreamType:(ByteRTCMediaStreamType)type; +/** + * + * @type api + * @region 房间管理 + * @brief 订阅房间内指定的媒体流,或更新对指定媒体流的订阅选项 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param userId 指定订阅的远端发布音视频流的用户 ID。 + * @param type 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 若当前用户在调用本接口时已经订阅该远端用户(手动订阅或自动订阅),则将根据本次传入的参数,更新订阅配置。
    + * + 你必须先通过 rtcRoom:onUserPublishStream:isScreen:mediaStreamType:{@link #ByteRTCRoomDelegateEx#rtcRoom:onUserPublishStream:isScreen:mediaStreamType:} 回调获取当前房间里的远端摄像头音视频流信息,然后调用本方法按需订阅。
    + * + 调用该方法后,你会收到 rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:{@link #ByteRTCRoomDelegateEx#rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:} 通知方法调用结果。
    + * + 成功订阅远端用户的媒体流后,订阅关系将持续到调用 unsubscribeStream:streamIndex:mediaStreamType:{@link #ByteRTCRoomEx#unsubscribeStream:streamIndex:mediaStreamType:} 取消订阅或本端用户退房。
    + * + 关于其他调用异常,你会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调通知,具体异常原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + */ +- (int)subscribeStream:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + mediaStreamType:(ByteRTCMediaStreamType)mediaStreamType; +/** + * + * @type api + * @region 房间管理 + * @brief 取消订阅房间内指定的媒体流。
    + * 该方法对自动订阅和手动订阅模式均适用。 + * @param userId 指定订阅的远端发布音视频流的用户 ID。 + * @param streamIndex 流索引,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 + * @param mediaStreamType 媒体流类型,用于指定发布音频/视频,参看 ByteRTCMediaStreamType{@link #ByteRTCMediaStreamType} + * @return 方法调用结果:
    + * + 0:成功;
    + * + <0:失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @note + * + 调用该方法后,你会收到 rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:{@link #ByteRTCRoomDelegateEx#rtcRoom:onStreamSubscribed:userId:streamIndex:subscribeConfig:} 通知方法调用结果。
    + * + 关于其他调用异常,你会收到 rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo:} 回调通知,具体失败原因参看 ByteRTCErrorCode{@link #ByteRTCErrorCode}。 + */ +- (int)unsubscribeStream:(NSString* _Nonnull)userId + streamIndex:(ByteRTCStreamIndex)streamIndex + mediaStreamType:(ByteRTCMediaStreamType)mediaStreamType; +/** + * + * @type api + * @region 房间管理 + * @brief 通过设置 ByteRTCRoomEx{@link #ByteRTCRoomEx} 对象的事件句柄,监听此对象对应的回调事件。 + * @param roomDelegate 参见 ByteRTCRoomDelegateEx{@link #ByteRTCRoomDelegateEx} + * @return + * + 0: 调用成功。
    + * + < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + */ +- (int)setRTCRoomDelegateEx:(id _Nullable)roomDelegate; + + + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h new file mode 100644 index 0000000..fca8b2b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioDefines.h @@ -0,0 +1,3049 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Audio Defines +*/ + +#import "ByteRTCMediaDefines.h" + +#pragma mark - ByteRTCAudioSource +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioSource : NSObject + +@end + +/** + * + * @hidden(macOS) + * @type keytype + * @brief 音频场景类型。
    + * 选择音频场景后,SDK 会自动根据客户端音频采集播放设备和状态,适用通话音量/媒体音量。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioScenarioType) { + /** + * + * @brief 默认场景,适用大部分场景。 + */ + + ByteRTCAudioScenarioTypeDefault = 0, + /** + * + * @brief 聊天室场景。通话清晰度较高,适用于会议,聊天室场景。 + */ + + ByteRTCAudioScenarioTypeChatRoom = 1, + /** + * + * @brief 游戏语音场景。 + */ + + ByteRTCAudioScenarioTypeGameStreaming = 2, + /** + * + * @brief 合唱场景。延迟较低。 + */ + + ByteRTCAudioScenarioTypeChorus = 3, + /** + * + * @brief 教育场景。适用于以人声教学内容为主的高音质场景。 + */ + + ByteRTCAudioScenarioTypeEducation = 4, + /** + * + * @brief AI 对话场景。适用于真人与 AI 智能体互动的场景。使用此场景时,还需在通过 `createRTCEngine` 创建引擎时,通过 `parameters` 字段传入私有参数 `"rtc.fg_config":"aigc_media_360=true"`。 + */ + + ByteRTCAudioScenarioTypeAiClient = 5, +}; + +/** + * + * @type keytype + * @brief 变声特效类型。如需更多类型,联系技术支持。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVoiceChangerType) { + /** + * + * @brief 原声,不含特效 + */ + + ByteRTCVoiceChangerOriginal = 0, + /** + * + * @brief 巨人 + */ + + ByteRTCVoiceChangerGiant = 1, + /** + * + * @brief 花栗鼠 + */ + + ByteRTCVoiceChangerChipmunk = 2, + /** + * + * @brief 小黄人 + */ + + ByteRTCVoiceChangerMinionst = 3, + /** + * + * @brief 颤音 + */ + + ByteRTCVoiceChangerVibrato = 4, + /** + * + * @brief 机器人 + */ + + ByteRTCVoiceChangerRobot = 5, +}; + +/** + * + * @type keytype + * @brief 混响特效类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVoiceReverbType) { + /** + * + * @brief 原声,不含特效 + */ + + ByteRTCVoiceReverbOriginal = 0, + /** + * + * @brief 回声 + */ + + ByteRTCVoiceReverbEcho = 1, + /** + * + * @brief 演唱会 + */ + + ByteRTCVoiceReverbConcert = 2, + /** + * + * @brief 空灵 + */ + + ByteRTCVoiceReverbEthereal = 3, + /** + * + * @brief KTV + */ + + ByteRTCVoiceReverbKTV = 4, + /** + * + * @brief 录音棚 + */ + + ByteRTCVoiceReverbStudio = 5, + /** + * + * @brief 虚拟立体声 + */ + + ByteRTCVoiceReverbVirtualStereo = 6, + /** + * + * @brief 空旷 + */ + + ByteRTCVoiceReverbSpacious = 7, + /** + * + * @brief 3D 人声 + */ + + ByteRTCVoiceReverb3D = 8, + /** + * + * @hidden internal use + * @brief 流行 + */ + + ByteRTCVoiceReverbPop = 9, + /** + * + * @hidden internal use + * @brief 蹦迪 + */ + + ByteRTCVoiceReverbDisco = 10, + /** + * + * @hidden internal use + * @brief 老唱片 + */ + + ByteRTCVoiceReverbOldRecord = 11, + /** + * + * @hidden internal use + * @brief 和声 + */ + + ByteRTCVoiceReverbHarmony = 12, + /** + * + * @hidden internal use + * @brief 摇滚 + */ + + ByteRTCVoiceReverbRock = 13, + /** + * + * @hidden internal use + * @brief 蓝调 + */ + + ByteRTCVoiceReverbBlues = 14, + /** + * + * @hidden internal use + * @brief 爵士 + */ + + ByteRTCVoiceReverbJazz = 15, + /** + * + * @hidden internal use + * @brief 电子 + */ + + ByteRTCVoiceReverbElectronic = 16, + /** + * + * @hidden internal use + * @brief 黑胶 + */ + + ByteRTCVoiceReverbVinyl = 17, + /** + * + * @hidden internal use + * @brief 密室 + */ + + ByteRTCVoiceReverbChamber = 18, + + /** + * + * @hidden internal use + * @brief 增强原声 + */ + + ByteRTCVoiceReverbEnhanceOriginal = 19, + + /** + * + * @hidden internal use + * @brief 浴室 + */ + + ByteRTCVoiceReverbBathroom = 20, + + /** + * + * @hidden internal use + * @brief 自然 + */ + + ByteRTCVoiceReverbNatural = 21, + + /** + * + * @hidden internal use + * @brief 楼道 + */ + + ByteRTCVoiceReverbHallway = 22, +}; +/** + * + * @type keytype + * @brief 音频均衡效果。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCBandFrequency) { + /** + * + * @brief 中心频率为 31Hz 的频带。 + */ + + ByteRTCBandFrequency31 = 0, + /** + * + * @brief 中心频率为 62Hz 的频带。 + */ + + ByteRTCBandFrequency62 = 1, + /** + * + * @brief 中心频率为 125Hz 的频带。 + */ + + ByteRTCBandFrequency125 = 2, + /** + * + * @brief 中心频率为 250Hz 的频带。 + */ + + ByteRTCBandFrequency250 = 3, + /** + * + * @brief 中心频率为 500Hz 的频带。 + */ + + ByteRTCBandFrequency500 = 4, + /** + * + * @brief 中心频率为 1kHz 的频带。 + */ + + ByteRTCBandFrequency1k = 5, + /** + * + * @brief 中心频率为 2kHz 的频带。 + */ + + ByteRTCBandFrequency2k = 6, + /** + * + * @brief 中心频率为 4kHz 的频带。 + */ + + ByteRTCBandFrequency4k = 7, + /** + * + * @brief 中心频率为 8kHz 的频带。 + */ + + ByteRTCBandFrequency8k = 8, + /** + * + * @brief 中心频率为 16kHz 的频带。 + */ + + ByteRTCBandFrequency16k = 9, +}; +/** + * + * @type keytype + * @brief 语音均衡效果。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVoiceEqualizationConfig : NSObject +/** + * + * @brief 频带。参看 ByteRTCBandFrequency{@link #ByteRTCBandFrequency}。 + */ + +@property(assign, nonatomic) ByteRTCBandFrequency frequency; +/** + * + * @brief 频带增益(dB)。取值范围是 `[-15, 15]`。 + */ + +@property(assign, nonatomic) int gain; +@end + +/** + * + * @type keytype + * @brief 音频混响效果。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVoiceReverbConfig : NSObject +/** + * + * @brief 混响模拟的房间大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。房间越大,混响越强。 + */ + +@property(assign, nonatomic) float roomSize; +/** + * + * @brief 混响的拖尾长度,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + +@property(assign, nonatomic) float decayTime; +/** + * + * @brief 混响的衰减阻尼大小,取值范围 `[0.0, 100.0]`。默认值为 `50.0f`。 + */ + +@property(assign, nonatomic) float damping; +/** + * + * @brief 早期反射信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float wetGain; +/** + * + * @brief 原始信号强度。取值范围 `[-20.0, 10.0]`,单位为 dB。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float dryGain; +/** + * + * @brief 早期反射信号的延迟。取值范围 `[0.0, 200.0]`,单位为 ms。默认值为 `0.0f`。 + */ + +@property(assign, nonatomic) float preDelay; +@end + +/** + * + * @type keytype + * @brief 音质档位 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioProfileType) { + /** + * + * @brief 默认音质
    + * 服务器下发或客户端已设置的 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 的音质配置 + */ + + ByteRTCAudioProfileDefault = 0, + /** + * + * @brief 流畅
    + * 单声道,采样率为 16 kHz,编码码率为 32 Kbps。
    + * 流畅优先、低功耗、低流量消耗,适用于大部分游戏场景,如小队语音、组队语音、国战语音等。 + */ + + ByteRTCAudioProfileFluent = 1, + /** + * + * @brief 单声道标准音质。
    + * 采样率为 24 kHz,编码码率为 48 Kbps。
    + * 适用于对音质有一定要求的场景,同时延时、功耗和流量消耗相对适中,适合教育场景和狼人杀等游戏。 + */ + + ByteRTCAudioProfileStandard = 2, + /** + * + * @brief 双声道音乐音质
    + * 采样率为 48 kHz,编码码率为 128 kbps。
    + * 超高音质,同时延时、功耗和流量消耗相对较大,适用于连麦 PK 等音乐场景。
    + * 游戏场景不建议使用。 + */ + + ByteRTCAudioProfileHD = 3, + /** + * + * @brief 双声道标准音质。采样率为 48 KHz,编码码率最大值为 80 Kbps + */ + + ByteRTCAudioProfileStandardStereo = 4, + /** + * + * @brief 单声道音乐音质。采样率为 48 kHz,编码码率最大值为 64 Kbps + */ + + ByteRTCAudioProfileHDMono = 5, +}; + +/** + * + * @type keytype + * @brief 降噪模式。降噪算法受调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 时设置的房间模式影响。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAnsMode) { + /** + * + * @brief 关闭所有音频降噪能力。 + */ + + ByteRTCAnsModeDisable = 0, + /** + * + * @brief 适用于微弱降噪。 + */ + + ByteRTCAnsModeLow = 1, + /** + * + * @brief 适用于抑制中度平稳噪声,如空调声和风扇声。 + */ + + ByteRTCAnsModeMedium = 2, + /** + * + * @brief 适用于抑制嘈杂非平稳噪声,如键盘声、敲击声、碰撞声、动物叫声。 + */ + + ByteRTCAnsModeHigh = 3, + /** + * + * @brief 启用音频降噪能力。具体的降噪算法由 RTC 智能决策。 + */ + + ByteRTCAnsModeAutomatic = 4, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 语音通话模式,在小队语音里用这个接口设置自己的发送模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRangeAudioMode) { + /** + * + * @brief 默认模式 + */ + + ByteRTCRangeAudioModeUndefined = 0, + /** + * + * @brief 小队模式 + */ + + ByteRTCRangeAudioModeTeam = 1, + /** + * + * @brief 世界模式 + */ + + ByteRTCRangeAudioModeWorld = 2, +}; + +/** + * + * @type keytype + * @brief 当前音频设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioDeviceType) { + /** + * + * @brief 未知音频设备 + */ + + ByteRTCAudioDeviceTypeUnknown = -1, + /** + * + * @brief 音频渲染设备 + */ + + ByteRTCAudioDeviceTypeRenderDevice = 0, + /** + * + * @brief 音频采集设备 + */ + + ByteRTCAudioDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流音频设备 + */ + + ByteRTCAudioDeviceTypeScreenCaptureDevice = 2 +}; +/** + * + * @type keytype + * @brief 音频采样率,单位为 Hz。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioSampleRate) { + /** + * + * @brief 默认设置。48000Hz。 + */ + + ByteRTCAudioSampleRateAuto = -1, + /** + * + * @brief 8000Hz + */ + + ByteRTCAudioSampleRate8000 = 8000, + /** + * + * @brief 11025Hz + */ + + ByteRTCAudioSampleRate11025 = 11025, + /** + * + * @brief 16000Hz + */ + + ByteRTCAudioSampleRate16000 = 16000, + /** + * + * @brief 22050Hz + */ + + ByteRTCAudioSampleRate22050 = 22050, + /** + * + * @brief 24000Hz + */ + + ByteRTCAudioSampleRate24000 = 24000, + /** + * + * @brief 32000Hz + */ + + ByteRTCAudioSampleRate32000 = 32000, + /** + * + * @brief 44100Hz + */ + + ByteRTCAudioSampleRate44100 = 44100, + /** + * + * @brief 48000Hz + */ + + ByteRTCAudioSampleRate48000 = 48000 +}; +/** + * + * @type keytype + * @brief 音频声道。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioChannel) { + /** + * + * @brief 默认设置。默认值为 `2`。 + */ + + ByteRTCAudioChannelAuto = -1, + /** + * + * @brief 单声道 + */ + + ByteRTCAudioChannelMono = 1, + /** + * + * @brief 双声道 + */ + + ByteRTCAudioChannelStereo = 2, +}; +/** + * + * @type keytype + * @brief 音频编码类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioCodecType) { + /** + * + * @brief 未知编码类型 + */ + + ByteRTCAudioCodecTypeNone = 0, + /** + * + * @brief Opus 编码类型 + */ + + ByteRTCAudioCodecTypeOpus, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAAC, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACLC = 2, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACHEv1, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACHEv2, + /** + * + * @hidden currently not available + */ + + ByteRTCAudioCodecTypeAACLCadts, +}; + +/** + * + * @deprecated since 3.52, use ByteRTCMixedStreamAudioCodecType{@link #ByteRTCMixedStreamAudioCodecType} instead. + * @type keytype + * @brief 音频编码类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCTranscodingAudioCodec) { + /** + * + * @type keytype + * @brief AAC 格式。 + */ + + ByteRTCTranscodingAudioCodecAAC = 0, +}; + +/** + * + * @type keytype + * @brief 音频编码类型。(新) + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAudioCodecType) { + /** + * + * @type keytype + * @brief AAC 格式。 + */ + + ByteRTCMixedStreamAudioCodecTypeAAC = 0, +}; + +/** + * + * @type keytype + * @brief AAC 编码规格。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAudioProfile) { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + ByteRTCMixedStreamAudioProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + ByteRTCMixedStreamAudioProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + ByteRTCMixedStreamAudioProfileHEv2 = 2, +}; + +/** + * + * @deprecated since 3.52, use ByteRTCMixedStreamAudioProfile{@link #ByteRTCMixedStreamAudioProfile} instead. + * @type keytype + * @brief AAC 编码规格。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAACProfile) { + /** + * + * @brief AAC-LC 规格,默认值。 + */ + + ByteRTCAACProfileLC = 0, + /** + * + * @brief HE-AAC v1 规格。 + */ + + ByteRTCAACProfileHEv1 = 1, + /** + * + * @brief HE-AAC v2 规格。 + */ + + ByteRTCAACProfileHEv2 = 2, +}; +/** + * + * @type keytype + * @brief 音频播放路由 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRoute) { + /** + * + * @brief 通过 `setDefaultAudioRoute:` 设置的音频路由 + */ + + ByteRTCAudioRouteDefault = -1, + /** + * + * @brief 有线耳机 + */ + + ByteRTCAudioRouteHeadset = 1, + /** + * + * @brief 听筒。设备自带的,一般用于通话的播放硬件。 + */ + + ByteRTCAudioRouteEarpiece = 2, + /** + * + * @brief 扬声器。设备自带的,一般用于免提播放的硬件。 + */ + + ByteRTCAudioRouteSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + ByteRTCAudioRouteHeadsetBluetooth = 4, + /** + * + * hidden(macOS) + * @brief USB 设备或通过 Lightning 转接器连接的 3.5mm 耳机
    + * 其中,仅在客户端为 iOS 16 及以上版本时可识别出 3.5mm 耳机 + */ + + ByteRTCAudioRouteHeadsetUSB = 5, +}; + +/** + * + * @type keytype + * @brief 音频播放设备
    + * 音频设备变化时 SDK 通过 `rtcEngine:onAudioPlaybackDeviceChanged:` 回调当前音频播放设备。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPlaybackDevice) { + /** + * + * @brief 有线耳机 + */ + + ByteRTCAudioPlaybackDeviceHeadset = 1, + /** + * + * @brief 听筒 + */ + + ByteRTCAudioPlaybackDeviceEarpiece = 2, + /** + * + * @brief 扬声器 + */ + + ByteRTCAudioPlaybackDeviceSpeakerphone = 3, + /** + * + * @brief 蓝牙耳机 + */ + + ByteRTCAudioPlaybackDeviceHeadsetBluetooth = 4, + /** + * + * @brief USB 设备 + */ + + ByteRTCAudioPlaybackDeviceHeadsetUSB = 5, +}; + + +/** + * + * @type keytype + * @brief 混音播放类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingType) { + /** + * + * @brief 仅本地播放 + */ + + ByteRTCAudioMixingTypePlayout = 0, + /** + * + * @brief 仅远端播放 + */ + + ByteRTCAudioMixingTypePublish = 1, + /** + * + * @brief 本地和远端同时播放 + */ + + ByteRTCAudioMixingTypePlayoutAndPublish = 2 +}; + +/** + * + * @type keytype + * @brief 混音播放声道类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingDualMonoMode) { + /** + * + * @brief 和音频文件一致 + */ + + ByteRTCAudioMixingDualMonoModeAuto = 0, + /** + * + * @brief 只能听到音频文件中左声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeL = 1, + /** + * + * @brief 只能听到音频文件中右声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeR = 2, + /** + * + * @brief 能同时听到音频文件中左右声道的音频 + */ + + ByteRTCAudioMixingDualMonoModeMix = 3 +}; + +/** + * + * @type keytype + * @brief 音频混音文件播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingState) { + /** + * + * @brief 混音已加载 + */ + + ByteRTCAudioMixingStatePreloaded = 0, + /** + * + * @brief 混音正在播放 + */ + + ByteRTCAudioMixingStatePlaying, + /** + * + * @brief 混音暂停 + */ + + ByteRTCAudioMixingStatePaused, + /** + * + * @brief 混音停止 + */ + + ByteRTCAudioMixingStateStopped, + /** + * + * @brief 混音播放失败 + */ + + ByteRTCAudioMixingStateFailed, + /** + * + * @brief 混音播放结束 + */ + + ByteRTCAudioMixingStateFinished, + /** + * + * @brief 准备 PCM 混音 + */ + + ByteRTCAudioMixingStatePCMEnabled, + /** + * + * @brief PCM 混音播放结束 + */ + + ByteRTCAudioMixingStatePCMDisabled, +}; +/** + * + * @type keytype + * @brief 混音错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioMixingError) { + /** + * + * @brief 正常 + */ + + ByteRTCAudioMixingErrorOk = 0, + /** + * + * @brief 预加载失败,找不到混音文件或者文件长度超出 20s + */ + + ByteRTCAudioMixingErrorPreloadFailed, + /** + * + * @brief 混音开启失败,找不到混音文件或者混音文件打开失败 + */ + + ByteRTCAudioMixingErrorStartFailed, + /** + * + * @brief 混音 ID 异常 + */ + + ByteRTCAudioMixingErrorIdNotFound, + /** + * + * @brief 设置混音文件的播放位置出错 + */ + + ByteRTCAudioMixingErrorSetPositionFailed, + /** + * + * @brief 音量参数不合法,仅支持设置的音量值为[0, 400] + */ + + ByteRTCAudioMixingErrorInValidVolume, + /** + * + * @brief 播放的文件与预加载的文件不一致。请先使用 unloadAudioMixing: 卸载此前的文件。 + */ + + ByteRTCAudioMixingErrorLoadConflict, + /** + * + * @brief 不支持此混音类型。 + */ + + ByteRTCAudioMixingErrorIdTypeNotMatch, + /** + * + * @brief 设置混音文件的音调不合法 + */ + + ByteRTCAudioMixingErrorInValidPitch, + /** + * + * @brief 设置混音文件的音轨不合法 + */ + + ByteRTCAudioMixingErrorInValidAudioTrack, + /** + * + * @brief 混音文件正在启动中 + */ + + ByteRTCAudioMixingErrorIsStarting, + /** + * + * @brief 设置混音文件的播放速度不合法 + */ + + ByteRTCAudioMixingErrorInValidPlaybackSpeed, +}; +/** + * + * @type keytype + * @brief 自定义音频源模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceMode) { + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceModePush = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceModePull, +}; +/** + * + * @type keytype + * @brief 自定义音频流类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceStreamType) { + /** + * + * @brief 当播放来自本地的 PCM 数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceStreamTypeRaw = 0, + /** + * + * @brief 当播放来自内存的音频数据时,使用此选项。 + */ + + ByteRTCMediaPlayerCustomSourceStreamTypeEncoded, +}; +/** + * + * @type keytype + * @brief 音频数据的起始读取位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaPlayerCustomSourceSeekWhence) { + /** + * + * @brief 从音频数据的头开始读取,读取后的位置为参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceSet = 0, + /** + * + * @brief 从音频数据的某一位置开始读取,读取后的位置为音频数据当前的读取位置加上参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceCur = 1, + /** + * + * @brief 从音频数据的尾开始读取,读取后的位置为用户传入的音频数据大小加上参数 offset 的值。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceEnd = 2, + /** + * + * @brief 返回音频数据的大小。 + */ + + ByteRTCMediaPlayerCustomSourceSeekWhenceSize = 3, +}; +/** + * + * @type keytype + * @brief 播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerState) { + /** + * + * @brief 播放未启动 + */ + + ByteRTCPlayerStateIdle = 0, + /** + * + * @brief 已加载 + */ + + ByteRTCPlayerStatePreloaded, + /** + * + * @brief 已打开 + */ + + ByteRTCPlayerStateOpened, + /** + * + * @brief 正在播放 + */ + + ByteRTCPlayerStatePlaying, + /** + * + * @brief 播放已暂停 + */ + + ByteRTCPlayerStatePaused, + /** + * + * @brief 播放已被主动停止 + */ + + ByteRTCPlayerStateStopped, + /** + * + * @brief 播放失败 + */ + + ByteRTCPlayerStateFailed, + /** + * + * @brief 播放自然结束 + */ + + ByteRTCPlayerStateFinished, + /** + * + * @brief 循环播放已结束 + */ + + ByteRTCPlayerStateLoopFinished, +}; + +/** + * + * @type keytype + * @brief 播放事件 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerEvent) { + + /** + * + * @brief 开始切换音轨
    + * 开始调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 时,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackBegin, + /** + * + * @brief 切换音轨成功
    + * 调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 成功后,播放器切换到指定音轨播放,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackCompleted, + /** + * + * @brief 切换音轨失败
    + * 调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 失败后,播放器无法切换到指定音轨,继续之前的音轨播放过程,返回此状态。 + */ + + ByteRTCPlayerEventSelectAudioTrackFailed, + /** + * + * @brief 试图移动播放位置
    + * 开始调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 时,返回此状态。 + */ + + ByteRTCPlayerEventSeekBegin, + /** + * + * @brief 移动播放位置成功
    + * 调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 成功后,返回此状态。 + */ + + ByteRTCPlayerEventSeekCompleted, + /** + * + * @brief 移动播放位置失败
    + * 调用 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 失败时,返回此状态。 + */ + + ByteRTCPlayerEventSeekFailed, +}; + +/** + * + * @type keytype + * @brief 播放错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayerError) { + /** + * + * @brief 正常 + */ + + ByteRTCPlayerErrorOK = 0, + /** + * + * @brief 不支持此类型 + */ + + ByteRTCPlayerErrorFormatNotSupport, + /** + * + * @brief 无效的播放路径 + */ + + ByteRTCPlayerErrorInvalidPath, + /** + * + * @brief 未满足前序接口调用的要求。请查看具体接口文档。 + */ + + ByteRTCPlayerErrorInvalidState, + /** + * + * @brief 设置播放位置出错。 + */ + + ByteRTCPlayerErrorInvalidPosition, + /** + * + * @brief 音量参数不合法。 + */ + + ByteRTCPlayerErrorInvalidVolume, + /** + * + * @brief 音调参数设置不合法。 + */ + + ByteRTCPlayerErrorInvalidPitch, + /** + * + * @brief 音轨参数设置不合法。 + */ + + ByteRTCPlayerErrorInvalidAudioTrackIndex, + /** + * + * @brief 播放速度参数设置不合法 + */ + + ByteRTCPlayerErrorInvalidPlaybackSpeed, + /** + * + * @brief 音效 ID 异常。还未加载或播放文件,就调用其他 API。 + */ + + ByteRTCPlayerErrorInvalidEffectId, + /** + * + * @brief 资源正在播放中 + */ + + ByteRTCPlayerErrorCurrentlyPlaying, +}; + +/** + * + * @type keytype + * @brief 音频输入源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioSourceType) { + /** + * + * @brief 自定义采集音频源 + */ + + ByteRTCAudioSourceTypeExternal = 0, + /** + * + * @brief RTC SDK 内部采集音频源 + */ + + ByteRTCAudioSourceTypeInternal, +}; + +/** + * + * @type keytype + * @brief 音频输出源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRenderType) { + /** + * + * @brief 自定义渲染音频 + */ + + ByteRTCAudioRenderTypeExternal = 0, + /** + * + * @brief RTC SDK 内部渲染音频 + */ + + ByteRTCAudioRenderTypeInternal, +}; + +/** + * + * @type keytype + * @brief 是否开启耳返功能。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEarMonitorMode) { + /** + * + * @brief 关闭。 + */ + + ByteRTCEarMonitorModeOff = 0, + /** + * + * @brief 开启。 + */ + + ByteRTCEarMonitorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 耳返音频是否经过本地音频处理。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEarMonitorAudioFilter) { + /** + * + * @brief 无音频处理。 + */ + + ByteRTCEarMonitorAudioFilterNone = 0x0001, + /** + * + * @brief 经本地音频处理后的音频,包括 3A、变声、混响等 SDK 提供处理能力以及自定义音频处理。 + */ + + ByteRTCEarMonitorAudioFilterReuseAudioProcessing = 0x8000, +}; + +/** + * + * @type keytype + * @brief 音频回调方法 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameCallbackMethod) { + /** + * + * @brief 本地麦克风录制的音频数据回调 + */ + + ByteRTCAudioFrameCallbackRecord = 0, + /** + * + * @brief 订阅的远端所有用户混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackPlayback = 1, + /** + * + * @brief 本地麦克风录制和订阅的远端所有用户混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackMixed = 2, + /** + * + * @brief 订阅的远端每个用户混音前的音频数据回调 + */ + + ByteRTCAudioFrameCallbackRemoteUser = 3, + /** + * + * @brief 本地麦克风录制和本地 `MediaPlayer`, `EffectPlayer` 播放的音频混音后的音频数据回调 + */ + + ByteRTCAudioFrameCallbackCaptureMixed = 5 +}; +/** + * + * @type keytype + * @brief 返回给音频处理器的音频类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameMethod) { + /** + * + * @brief 本地采集的音频。 + */ + + ByteRTCAudioFrameProcessorRecord = 0, + /** + * + * @brief 远端音频流的混音音频。 + */ + + ByteRTCAudioFrameProcessorPlayback = 1, + /** + * + * @brief 各个远端音频流。 + */ + + ByteRTCAudioFrameProcessorRemoteUser = 2, + /** + * + * @hidden(macOS) + * @brief 软件耳返音频。 + */ + + ByteRTCAudioFrameProcessorEarMonitor = 3, + /** + * + * @brief 屏幕共享音频。 + */ + + ByteRTCAudioFrameProcessorScreen = 4, +}; + +/** + * + * @type keytype + * @brief 音量回调模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioReportMode) { + /** + * + * @brief 默认始终开启音量回调。 + */ + + ByteRTCAudioReportModeNormal = 0, + /** + * + * @brief 可见用户进房并停止推流后,关闭音量回调。 + */ + + ByteRTCAudioReportModeDisconnect = 1, + /** + * + * @brief 可见用户进房并停止推流后,开启音量回调,回调值重置为 0。 + */ + + ByteRTCAudioReportModeReset = 2, +}; + +/** + * + * @type keytype + * @brief rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 中包含的音频信息的范围。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPropertiesMode) { + /** + * + * @brief 仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + + ByteRTCAudioPropertiesModeMicrohone = 0, + /** + * + * @brief 包含以下信息:
    + * - 本地麦克风采集的音频数据和本地屏幕音频采集数据; + * - 本地混音的音频数据。 + */ + + ByteRTCAudioPropertiesModeAudioMixing = 1 +}; + +/** + * + * @type keytype + * @brief 音频流来源的用户 ID, 及对应的音量。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioVolumeInfo : NSObject +/** + * + * @brief 音频流来源的用户 ID + */ + +@property(copy, nonatomic) NSString * _Nonnull uid; +/** + * + * @brief 线性音量,取值范围为:[0,255] + */ + +@property(assign, nonatomic) NSUInteger linearVolume; +/** + * + * @brief 非线性音量,取值范围为:[-127,0] + */ + +@property(assign, nonatomic) NSUInteger nonlinearVolume; +@end + +/** + * + * @type keytype + * @brief 音频参数格式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioFormat : NSObject +/** + * + * @brief 音频采样率,详见 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate} + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; +/** + * + * @brief 音频声道,详见 ByteRTCAudioChannel{@link #ByteRTCAudioChannel} + */ + +@property(nonatomic, assign) ByteRTCAudioChannel channel; +/** + * + * @brief 单次回调的音频帧中包含的采样点数。默认值为 `0`,此时,采样点数取最小值。
    + * 最小值为回调间隔是 0.01s 时的值,即 `sampleRate * channel * 0.01s`。
    + * 最大值是 `2048`。超出取值范围时,采样点数取默认值。
    + * 该参数仅在设置读写回调时生效,调用 enableAudioFrameCallback:format:{@link #ByteRTCEngine#enableAudioFrameCallback:format:} 开启只读模式回调时设置该参数不生效。 + */ + +@property(nonatomic, assign) int samplesPerCall; +@end + +/** + * + * @type keytype + * @brief PCM 音频帧 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioFrame : NSObject +/** + * + * @brief PCM 数据 + */ + +@property(strong, nonatomic) NSData * _Nonnull buffer; +/** + * + * @brief 采样点个数 + */ + +@property(assign, nonatomic) int samples; +/** + * + * @brief 音频声道,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + */ + +@property(assign, nonatomic) ByteRTCAudioChannel channel; +/** + * + * @brief 采样率,参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(assign, nonatomic) ByteRTCAudioSampleRate sampleRate; +/** + * + * @hidden for internal use only + * @brief 额外信息数据 + */ + +@property(strong, nonatomic) NSData * extraInfo; +@end +/** + * + * @type callback + * @brief 音频数据回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
    + * 本接口类中的回调周期均为 20 ms。 + * @list + */ + +@protocol ByteRTCAudioFrameObserver +/** + * + * @type callback + * @brief 返回麦克风录制的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onRecordAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回订阅的所有远端用户混音后的音频数据。 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onPlaybackAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回远端单个用户的音频数据 + * @param streamId 远端流对应的唯一标识 + * @param info 远端流详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 音频数据,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 此回调在播放线程调用。不要在此回调中做任何耗时的事情,否则可能会影响整个音频播放链路。 + * @list 自定义流处理 + */ + +- (void)onRemoteUserAudioFrame:(NSString * _Nonnull)streamId + info:(ByteRTCStreamInfo * _Nonnull)info + audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回本地麦克风录制和订阅的所有远端用户混音后的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onMixedAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 返回本地麦克风录制的音频数据,本地 `MediaPlayer` / `EffectPlayer` 播放音频文件混音后的音频数据 + * @param audioFrame 音频数据, 详见: ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @list 自定义流处理 + */ + +- (void)onCaptureMixedAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +@end +/** + * + * @type callback + * @brief 自定义音频处理器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +@protocol ByteRTCAudioFrameProcessor +/** + * + * @type callback + * @brief 回调本地采集的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 完成自定义音频处理后,SDK 会对处理后的音频帧进行编码,并传输到远端。此音频处理不会影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择本地采集的音频,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessRecordAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调远端音频混音的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择远端音频流的混音音频时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessPlayBackAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调单个远端用户的音频帧地址,供自定义音频处理。 + * @param streamId 音频流对应的唯一标识 + * @param info 音频流详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame} + * @note 调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并在参数中选择各个远端音频流时,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessRemoteUserAudioFrame:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo * _Nonnull)info audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @hidden(macOS) + * @valid since 3.50 + * @type callback + * @brief 软件耳返音频数据的回调。你可根据此回调自定义处理音频。
    + * 软件耳返音频中包含通过调用 `setVoiceReverbType:` 和 `setVoiceChangerType:` 设置的音频特效。 + * @param audioFrame 音频帧地址。参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @note + * - 此数据处理只影响软件耳返音频数据。 + * - 要启用此回调,必须调用 enableAudioProcessor:audioFormat:{@link #ByteRTCEngine#enableAudioProcessor:audioFormat:},并选择耳返音频。每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessEarMonitorAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +/** + * + * @type callback + * @brief 回调屏幕共享的音频帧地址,供自定义音频处理。 + * @param audioFrame 音频帧地址,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @note 调用 `enableAudioProcessor:`,把返回给音频处理器的音频类型设置为屏幕共享音频后,每 10 ms 收到此回调。 + * @list 自定义流处理 + */ + +- (int)onProcessScreenAudioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; +@end + +/** + * + * @type keytype + * @hidden for internal use only + * @region 音频管理 + * @brief 音频帧构建类 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEncodedAudioFrameData : NSObject +/** + * + * @hidden for internal use only + * @brief 音频编码类型,参看 ByteRTCAudioCodecType{@link #ByteRTCAudioCodecType}。 + */ + +@property(assign, nonatomic) ByteRTCAudioCodecType codecType; +/** + * + * @hidden for internal use only + * @brief 数据 + */ + +@property(strong, nonatomic) NSData * _Nonnull buffer; +/** + * + * @hidden for internal use only + * @brief 音频声道,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 双声道的情况下,左右声道的音频帧数据以 LRLRLR 形式排布。 + */ + +@property(assign, nonatomic) ByteRTCAudioChannel channel; +/** + * + * @hidden for internal use only + * @brief 采样率,参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(assign, nonatomic) ByteRTCAudioSampleRate sampleRate; +/** + * + * @hidden for internal use only + * @brief 数据大小 + */ + +@property(assign, nonatomic) int size; +/** + * + * @hidden for internal use only + * @brief 时间戳,单位为微秒。 + */ + +@property(assign, nonatomic) long timestampUs; +/** + * + * @hidden for internal use only + * @brief 音频帧时长,单位为毫秒。 + */ + +@property(assign, nonatomic) int frameSizeMs; +/** + * + * @hidden for internal use only + * @brief 额外信息数据 + */ + +@property(strong, nonatomic) NSData * extraInfo; +@end +/** + * + * @type callback + * @hidden for internal use only + * @brief 远端音频帧监测器 + * @list 自定义流处理 + */ + +@protocol ByteRTCRemoteEncodedAudioFrameObserver +/** + * + * @type callback + * @hidden for internal use only + * @brief 调用 registerRemoteEncodedAudioFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedAudioFrameObserver:} 后,SDK 收到远端音频帧信息时,回调该事件 + * @param streamId 收到的远端音频流对应的唯一标识 + * @param info 收到的远端音频流的详细信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param audioFrame 远端音频帧信息,参看 ByteRTCEncodedAudioFrameData{@link #ByteRTCEncodedAudioFrameData} + * @list 自定义流处理 + */ + +- (void)onRemoteEncodedAudioFrame:(NSString * _Nonnull)streamId info:(ByteRTCStreamInfo * _Nonnull)info audioFrame:(ByteRTCEncodedAudioFrameData * _Nonnull)audioFrame; +@end + + + +#pragma mark - AudioDeviceManager +/** + * + * @hidden(iOS) + * @type api + * @brief 音频设备管理类 + * @list Custom Stream Processing + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioDeviceManager : NSObject +/** + * + * @type api + * @brief 获取当前系统内音频播放设备列表。 + * @return 所有音频播放设备的列表,参看 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。
    + * @list 音频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateAudioPlaybackDevices; +/** + * + * @type api + * @brief 获取音频采集设备列表。 + * @return 音频采集设备列表。详见 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 音频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateAudioCaptureDevices; +/** + * + * @type api + * @brief 设置音频采集路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice:} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice:} 进行设置。 + * @list 音频管理 + */ + +- (void)followSystemCaptureDevice:(BOOL)followed; +/** + * + * @type api + * @brief 设置音频播放路由是否跟随系统。 + * @param followed
    + * - true: 跟随。此时,调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice:} 会失败。默认值。 + * - false: 不跟随系统。此时,可以调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice:} 进行设置。 + * @list 音频管理 + */ + +- (void)followSystemPlaybackDevice:(BOOL)followed; +/** + * + * @type api + * @brief 设置音频播放设备。 + * @param deviceID 音频播放设备 ID,可通过 enumerateAudioPlaybackDevices{@link #ByteRTCAudioDeviceManager#enumerateAudioPlaybackDevices} 获取。 + * @return + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemPlaybackDevice:{@link #ByteRTCAudioDeviceManager#followSystemPlaybackDevice:} 设置音频播放设备跟随系统后,将无法调用此接口设置音频播放设备。 + * @list 音频管理 + */ + +- (int)setAudioPlaybackDevice:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 获取当前音频播放设备。 + * @param deviceID 设备 ID + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int)getAudioPlaybackDevice:(NSString * _Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置音频采集设备。 + * @param deviceID 音频采集设备 ID。你可调用 enumerateAudioCaptureDevices{@link #ByteRTCAudioDeviceManager#EnumerateAudioCaptureDevices} 获取可用设备列表。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 当你调用 followSystemCaptureDevice:{@link #ByteRTCAudioDeviceManager#followSystemCaptureDevice:} 设置音频采集设备跟随系统后,将无法调用此接口设置音频采集设备。 + * @list 音频管理 + */ + +- (int)setAudioCaptureDevice:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 获取当前音频采集设备。 + * @param deviceID 音频采集设备 ID。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int)getAudioCaptureDevice:(NSString *_Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置当前音频采集设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法用于静音整个系统的音频采集。你也可以仅对麦克风采集到的音频信号做静音处理,而不影响媒体播放器的音乐声音,具体参看 muteAudioCapture:{@link #ByteRTCEngine#muteAudioCapture:} 方法说明。 + * - 设该方法为 `true` 静音后仍可通过 setAudioCaptureDeviceVolume:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceVolume:} 调整采集音量,调整后的音量会在取消静音后生效。 + * @list 音频管理 + */ + +- (int) setAudioCaptureDeviceMute:(bool)mute; +/** + * + * @type api + * @brief 获取当前音频采集设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioCaptureDeviceMute:(bool * _Nonnull)mute; +/** + * + * @type api + * @brief 设置当前音频播放设备静音状态,默认为非静音。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) setAudioPlaybackDeviceMute:(bool)mute; +/** + * + * @type api + * @brief 获取当前音频播放设备是否静音的信息。 + * @param mute
    + * - true:静音 + * - false:非静音 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioPlaybackDeviceMute:(bool * _Nonnull)mute; +/** + * + * @type api + * @brief 设置当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围为 [0,255]。
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功。将影响 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 回调的音量信息。 + * - < 0:方法调用失败 + * @note 调用 setAudioCaptureDeviceMute:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDeviceMute:} 设为 `true` 静音采集设备后的音量调节会在取消静音后生效。 + * @list 音频管理 + */ + +- (int) setAudioCaptureDeviceVolume:(unsigned int)volume; +/** + * + * @type api + * @brief 获取当前音频采集设备音量 + * @param volume 音频采集设备音量,取值范围是 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioCaptureDeviceVolume:(unsigned int * _Nonnull)volume; +/** + * + * @type api + * @brief 设置当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围为 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) setAudioPlaybackDeviceVolume:(unsigned int)volume; +/** + * + * @type api + * @brief 获取当前音频播放设备音量 + * @param volume 音频播放设备音量,取值范围是 [0,255]
    + * - [0,25] 接近无声; + * - [26,75] 为低音量; + * - [76,204] 为中音量; + * - [205,255] 为高音量。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @list 音频管理 + */ + +- (int) getAudioPlaybackDeviceVolume:(unsigned int * _Nonnull)volume; +/** + * + * @type api + * @brief 启动音频播放设备测试。
    + * 该方法测试播放设备是否能正常工作。SDK 播放指定的音频文件,测试者如果能听到声音,说明播放设备能正常工作。 + * @param testAudioFilePath 音频文件的绝对路径,路径字符串使用 UTF-8 编码格式,支持以下音频格式: mp3,aac,m4a,3gp,wav。 + * @param interval 音频设备播放测试音量回调的间隔 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法必须在进房前调用,且不可与其它音频设备测试功能同时应用。 + * - 调用 stopAudioPlaybackDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioPlaybackDeviceTest} 停止测试。 + * @list 音频管理 + */ + +- (int)startAudioPlaybackDeviceTest:(NSString *_Nonnull)testAudioFilePath interval:(int)interval; +/** + * + * @type api + * @brief 停止音频播放设备测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note 调用 startAudioPlaybackDeviceTest:interval:{@link #ByteRTCAudioDeviceManager#startAudioPlaybackDeviceTest:interval:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioPlaybackDeviceTest; +/** + * + * @hidden(iOS) + * @type api + * @brief 开始音频采集设备和音频播放设备测试。 + * @param interval 测试中会收到 `rtcEngine:onLocalAudioPropertiesReport:` 回调,本参数指定了该周期回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法在进房前后均可调用。且不可与其它音频设备测试功能同时应用。 + * - 调用本接口 30 s 后,采集自动停止,并开始播放采集到的声音。录音播放完毕后,设备测试流程自动结束。你也可以在 30 s 内调用 stopAudioDeviceRecordAndPlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceRecordAndPlayTest} 来停止采集并开始播放此前采集到的声音。 + * - 调用 stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} 可以停止音频设备采集和播放测试。 + * - 你不应在测试过程中,调用 `enableAudioPropertiesReport:` 注册音量提示回调。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * @list 音频管理 + */ + +- (int)startAudioDeviceRecordTest:(int)interval; +/** + * + * @hidden(iOS) + * @type api + * @brief 停止采集本地音频,并开始播放采集到的声音。录音播放完毕后,设备测试流程结束。
    + * 调用 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:} 30s 内调用本接口来停止采集并开始播放此前采集到的声音。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法依赖 rtc 引擎,只有通过成员方法 getAudioDeviceManager{@link #ByteRTCEngine#getAudioDeviceManager} 创建的 ByteRTCAudioDeviceManager,该方法才是有效的 + * - 调用本接口开始播放录音后,可以在播放过程中调用 stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} 停止播放。 + * @list 音频管理 + */ + +- (int)stopAudioDeviceRecordAndPlayTest; +/** + * + * @hidden(iOS) + * @type api + * @brief 停止由调用 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest:} 开始的音频播放设备测试。
    + * 在音频播放设备测试自动结束前,可调用本接口停止音频采集与播放测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法依赖 rtc 引擎,只有通过成员方法 getAudioDeviceManager{@link #ByteRTCEngine#getAudioDeviceManager} 创建的 ByteRTCAudioDeviceManager,该方法才是有效的 + * @list 音频管理 + */ + +- (int)stopAudioDevicePlayTest; +/** + * + * @type api + * @brief 尝试初始化音频播放设备,以检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param deviceID 设备索引号 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口调用失败 + * - -2: 设备无权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用; + * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + +- (int)initAudioPlaybackDeviceForTest:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 尝试初始化音频采集设备,以检测设备不存在、权限被拒绝/禁用等异常问题。 + * @param deviceID 设备索引号 + * @return 设备状态错误码
    + * - 0: 设备检测结果正常 + * - -1: 接口调用失败 + * - -2: 设备无权限,尝试初始化设备失败 + * - -3: 设备不存在,当前没有设备或设备被移除时返回 + * - -4: 设备音频格式不支持 + * - -5: 其它原因错误 + * @note + * - 该接口需在进房前调用; + * - 检测成功不代表设备一定可以启动成功,还可能因设备被其他应用进程独占,或 CPU/内存不足等原因导致启动失败。 + * @list 音频管理 + */ + +- (int)initAudioCaptureDeviceForTest:(NSString * _Nonnull)deviceID; +/** + * + * @type api + * @brief 启动音频采集设备测试。
    + * 该方法测试音频采集设备是否能正常工作。启动测试后,会收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 回调上报的音量信息。 + * @param indicationInterval 获取回调的时间间隔,单位为毫秒。建议设置到大于 200 毫秒。最小不得少于 10 毫秒。小于 10 毫秒行为未定义。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 该方法必须在进房前调用,且不可与其它音频设备测试功能同时应用。 + * - 你需调用 stopAudioRecordingDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioRecordingDeviceTest} 停止测试。 + * @list 音频管理 + */ + +- (int)startAudioRecordingDeviceTest:(unsigned int)indicationInterval; +/** + * + * @type api + * @brief 停止音频采集设备测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 调用 startAudioRecordingDeviceTest:{@link #ByteRTCAudioDeviceManager#startAudioRecordingDeviceTest:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioRecordingDeviceTest; +/** + * + * @type api + * @brief 开始音频设备回路测试。
    + * 该方法测试音频采集设备和音频播放设备是否能正常工作。一旦测试开始,音频采集设备会采集本地声音并通过音频播放设备播放出来,同时会收到 rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:}。 + * @param indicationInterval 收到回调的时间间隔,单位为 ms。建议设置到大于 200 ms。最小不得少于 10 ms。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 该方法必须在进房前调用。且不可与其它音频设备测试功能同时应用。 + * - 你需调用 stopAudioDeviceLoopbackTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceLoopbackTest} 停止测试。 + * - 该方法仅在本地进行音频设备测试,不涉及网络连接。 + * @list 音频管理 + */ + +- (int)startAudioDeviceLoopbackTest:(unsigned int)indicationInterval; +/** + * + * @type api + * @brief 停止音频设备回路测试。 + * @return 方法调用结果
    + * - 0:方法调用成功 + * - < 0:方法调用失败 + * @note + * - 该方法不依赖 rtc 引擎 + * - 调用 startAudioDeviceLoopbackTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceLoopbackTest:} 后,需调用本方法停止测试。 + * @list 音频管理 + */ + +- (int)stopAudioDeviceLoopbackTest; +@end +/** + * + * @type keytype + * @brief 混音配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEffectPlayerConfig : NSObject +/** + * + * @type keytype + * @brief 混音播放类型,详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType} + */ + +@property(assign, nonatomic) ByteRTCAudioMixingType type; +/** + * + * @brief 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + */ + +@property(assign, nonatomic) NSInteger pitch; +/** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + +@property(assign, nonatomic) NSInteger playCount; +/** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + +@property(assign, nonatomic) NSInteger startPos; +@end +/** + * + * @type keytype + * @brief 混音配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayerConfig : NSObject +/** + * + * @brief 混音播放类型,详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType} + */ + +@property(assign, nonatomic) ByteRTCAudioMixingType type; +/** + * + * @brief 混音播放次数
    + * - play_count <= 0: 无限循环 + * - play_count == 1: 播放一次(默认) + * - play_count > 1: 播放 play_count 次 + */ + +@property(assign, nonatomic) NSInteger playCount; +/** + * + * @brief 混音起始位置。默认值为 0,单位为毫秒。 + */ + +@property(assign, nonatomic) NSInteger startPos; +/** + * + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress:progress:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerPlayingProgress:progress:} 的间隔。单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + */ + +@property(assign, nonatomic) NSInteger callbackOnProgressInterval; +/** + * + * @brief 在采集音频数据时,附带本地混音文件播放进度的时间戳。启用此功能会提升远端人声和音频文件混音播放时的同步效果。
    + * - 仅在单个音频文件混音时使用有效。 + * - `true` 时开启此功能,`false` 时关闭此功能,默认为关闭。 + */ + +@property(assign, nonatomic) BOOL syncProgressToRecordFrame; +/** +* +* @brief 是否自动播放。如果不自动播放,调用 start{@link #ByteRTCMediaPlayer#start} 播放音乐文件。默认为 True。 +*/ + +@property(assign, nonatomic) BOOL autoPlay; +@end +/** + * + * @type callback + * @brief 内存播放数据源回调 + * @list Audio Management + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCMediaPlayerCustomSourceProvider +/** + * + * @valid since 3.53 + * @type callback + * @brief 调用 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口播放用户传入的内存音频数据时,会触发此回调,用户需要写入音频数据。 + * @param buffer 内存地址。在该地址中写入音频数据,写入音频数据的大小不超过 bufferSize 中填入的数值。支持的音频数据格式有: mp3,aac,m4a,3gp,wav。 + * @param bufferSize 音频数据大小,单位为字节。如果你想停止播放内存音频数据,可在 bufferSize 中填入小于或等于 0 的数,此时 SDK 会停止调用此接口。 + * @return 返回实际读取的音频数据大小。 + * @note 若 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口调用失败,请在 buffer 和 bufferSize 两个参数中填入 0。 此时 SDK 会停止调用此接口。 + * @list 混音 + */ + +-(int)onReadData:(uint8_t*_Nonnull) buffer bufferSize:(int)bufferSize; +/** + * + * @valid since 3.53 + * @type callback + * @brief 根据设置好的内存音频数据的读取位置和读取偏移量对音频数据进行偏移,以便 SDK 读取和分析音频数据。
    + * 在调用 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 接口传入内存音频数据,或者调用 setPosition:position:{@link #ByteRTCAudioEffectPlayer#setPosition:position:} 设置了音频数据的起始播放位置后,SDK 会对音频数据进行读取和分析,此时会触发该回调,你需要根据参数中设置的起始读取位置和偏移量进行操作。 + * @param offset 音频数据读取偏移量,单位为字节,取值可正可负。 + * @param whence 音频数据的起始读取位置。参看 ByteRTCMediaPlayerCustomSourceSeekWhence{@link #ByteRTCMediaPlayerCustomSourceSeekWhence} + * @return + * 定位成功,返回偏移后的位置信息,或返回音频数据的大小。
    + * 定位失败,返回 -1。 + * @list 混音 + */ + +-(int64_t)onSeek:(int64_t)offset whence:(ByteRTCMediaPlayerCustomSourceSeekWhence)whence; +@end +/** + * + * @type keytype + * @brief 音频源 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayerCustomSource : NSObject +/** + * + * @type keytype + * @brief 仅使用内存播放时,传入对应的 ByteRTCMediaPlayerCustomSourceProvider{@link #ByteRTCMediaPlayerCustomSourceProvider} 实例。 + */ + +@property(weak, nonatomic) id _Nullable provider; +/** + * + * @type keytype + * @brief 数据源模式,详见 ByteRTCMediaPlayerCustomSourceMode{@link #ByteRTCMediaPlayerCustomSourceMode}。默认为 `push`。 + */ + +@property(assign, nonatomic) ByteRTCMediaPlayerCustomSourceMode mode; +/** + * + * @type keytype + * @brief 数据源类型,详见 ByteRTCMediaPlayerCustomSourceStreamType{@link #ByteRTCMediaPlayerCustomSourceStreamType}。默认为 `raw`。 + */ + +@property(assign, nonatomic) ByteRTCMediaPlayerCustomSourceStreamType type; + +@end +/** + * + * @type keytype + * @brief 音频属性信息提示的相关配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioPropertiesConfig : NSObject +/** + * + * @brief 信息提示间隔,单位:ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + +@property(assign, nonatomic) NSInteger interval; +/** + * + * @brief 是否开启音频频谱检测。 + */ + +@property(assign, nonatomic) BOOL enableSpectrum; +/** + * + * @brief 是否开启人声检测 (VAD)。 + */ + +@property(assign, nonatomic) BOOL enableVad; +/** + * + * @brief 音量回调模式。详见 ByteRTCAudioReportMode{@link #ByteRTCAudioReportMode}。 + */ + +@property(assign, nonatomic) ByteRTCAudioReportMode localMainReportMode; +/** + * + * @brief 适用于音频属性信息提示的平滑系数。取值范围是 `(0.0, 1.0]`。
    + * 默认值为 `1.0`,不开启平滑效果;值越小,提示音量平滑效果越明显。如果要开启平滑效果,可以设置为 `0.3`。 + */ + +@property(nonatomic, assign) float smooth; + +/** + * + * @brief rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport:} 中包含音频数据的范围。参看 ByteRTCAudioPropertiesMode{@link #ByteRTCAudioPropertiesMode}。
    + * 默认仅包含本地麦克风采集的音频数据和本地屏幕音频采集数据。 + */ + +@property(assign, nonatomic) ByteRTCAudioPropertiesMode audioReportMode; + +/** + * + * @brief 是否回调本地用户的人声基频。 + */ + +@property(assign, nonatomic) BOOL enableVoicePitch; +@end + +/** + * + * @type keytype + * @brief 音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioPropertiesInfo : NSObject +/** + * + * @brief 线性音量,与原始音量呈线性关系,数值越大,音量越大。取值范围是:[0,255]。
    + * - [0, 25]:近似无声 + * - [26, 75]:低音量 + * - [76, 204]:中音量 + * - [205, 255]:高音量 + */ + +@property(assign, nonatomic) NSInteger linearVolume; +/** + * + * @brief 非线性音量。由原始音量的对数值转化而来,因此在中低音量时更灵敏,可以用作 Active Speaker(房间内最活跃用户)的识别。取值范围是:[-127,0],单位 dB。
    + * - [-127, -60]:无声 + * - [-59, -40]:低音量 + * - [-39, -20]:中音量 + * - [-19, 0]:高音量 + */ + +@property(assign, nonatomic) NSInteger nonlinearVolume; +/** + * + * @brief 人声检测(VAD)结果
    + * - 1: 检测到人声。 + * - 0: 未检测到人声。 + * - -1: 未开启 VAD。 + */ + +@property(assign, nonatomic) NSInteger vad; +/** + * + * @brief 频谱数组。默认长度为 257。 + */ + +@property(copy, nonatomic) NSArray * _Nonnull spectrum; +/** + * + * @brief 本地用户的人声基频,单位为赫兹。
    + * 同时满足以下两个条件时,返回的值为本地用户的人声基频:
    + * - 调用 enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport:},并设置参数 enableVoicePitch 的值为 `true`。 + * - 本地采集的音频中包含本地用户的人声。 + * 其他情况下返回 `0`。 + */ + +@property(assign, nonatomic) NSInteger voicePitch; +@end + +/** + * + * @type keytype + * @brief 本地音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalAudioPropertiesInfo : NSObject + +/** + * + * @type keytype + * @hidden + * @brief 音频源。预留参数。 + */ + +@property(assign, nonatomic) ByteRTCAudioSource* _Nullable audioSource; +/** + * + * @type keytype + * @brief 音频属性信息,详见 ByteRTCAudioPropertiesInfo{@link #ByteRTCAudioPropertiesInfo} + */ + +@property(strong, nonatomic) ByteRTCAudioPropertiesInfo *_Nonnull audioPropertiesInfo; +@end + +/** + * + * @type keytype + * @brief 远端音频属性信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteAudioPropertiesInfo : NSObject +/** + * + * @type keytype + * @brief 远端流的唯一标识 + */ + +@property(nonatomic) NSString *_Nonnull streamId; + +/** + * + * @type keytype + * @brief 远端流详细信息,详见 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + */ + +@property(strong, nonatomic) ByteRTCStreamInfo *_Nonnull streamInfo; + +/** + * + * @type keytype + * @brief 音频属性信息,详见 ByteRTCAudioPropertiesInfo{@link #ByteRTCAudioPropertiesInfo} + */ + +@property(strong, nonatomic) ByteRTCAudioPropertiesInfo *_Nonnull audioPropertiesInfo; +@end + +/** + * + * @type keytype + * @brief 本地用户在房间内的位置坐标,需自行建立空间直角坐标系 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPosition : NSObject +/** + * + * @brief x 坐标 + */ + +@property(nonatomic, assign) float x; +/** + * + * @brief y 坐标 + */ + +@property(nonatomic, assign) float y; +/** + * + * @brief z 坐标 + */ + +@property(nonatomic, assign) float z; +@end + +/** + * + * @type keytype + * @brief 方向朝向信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCOrientation : NSObject +/** + * + * @brief x 坐标 + */ + +@property(nonatomic, assign) float x; +/** + * + * @brief y 坐标 + */ + +@property(nonatomic, assign) float y; +/** + * + * @brief z 坐标 + */ + +@property(nonatomic, assign) float z; +@end + +/** + * + * @type keytype + * @brief 三维朝向信息,三个向量需要两两垂直。参看 ByteRTCOrientation{@link #ByteRTCOrientation}。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHumanOrientation : NSObject +/** + * + * @brief 正前方朝向,默认值为 {1,0,0},即正前方朝向 x 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull forward; +/** + * + * @brief 正右方朝向,默认值为 {0,1,0},即右手朝向 y 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull right; +/** + * + * @brief 正上方朝向,默认值为 {0,0,1},即头顶朝向 z 轴正方向 + */ + +@property(nonatomic, strong) ByteRTCOrientation* _Nonnull up; +@end + +/** + * + * @type keytype + * @brief K 歌打分维度。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMulDimSingScoringMode) { + /** + * + * @brief 按照音高进行评分。 + */ + + ByteRTCMulDimSingScoringModeNote = 0 +}; +/** + * + * @type keytype + * @brief 远端音频流精准对齐模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioAlignmentMode) { + /** + * + * @brief 不对齐 + */ + + ByteRTCAudioAlignmentModeOff = 0, + /** + * + * @brief 远端音频流都对齐伴奏进度同步播放 + */ + + ByteRTCAudioAlignmentModeAudioMixing = 1, +}; + +/** + * + * @type keytype + * @hidden + * @brief 实时评分信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringRealtimeInfo : NSObject + /** + * + * @brief 当前的播放进度。 + */ + +@property(nonatomic, assign) int currentPosition; + /** + * + * @brief 演唱者的音高。 + */ + +@property(nonatomic, assign) int userPitch; + /** + * + * @brief 标准音高。 + */ + +@property(nonatomic, assign) int standardPitch; + /** + * + * @brief 歌词分句索引。 + */ + +@property(nonatomic, assign) int sentenceIndex; + /** + * + * @brief 上一句歌词的评分。 + */ + +@property(nonatomic, assign) int sentenceScore; + /** + * + * @brief 当前演唱的累计分数。 + */ + +@property(nonatomic, assign) int totalScore; + /** + * + * @brief 当前演唱的平均分数。 + */ + +@property(nonatomic, assign) int averageScore; +@end + +/** + * + * @type keytype + * @brief 标准音高数据组。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStandardPitchInfo : NSObject + /** + * + * @brief 开始时间,单位 ms。 + */ + +@property(nonatomic, assign) int startTime; + /** + * + * @brief 持续时间,单位 ms。 + */ + +@property(nonatomic, assign) int duration; + /** + * + * @brief 音高。 + */ + +@property(nonatomic, assign) int pitch; +@end + +/** + * + * @type keytype + * @hidden + * @brief K 歌评分配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringConfig : NSObject + /** + * + * @brief 打分维度,详见 ByteRTCMulDimSingScoringMode{@link #ByteRTCMulDimSingScoringMode}。 + */ + +@property(nonatomic, assign) ByteRTCMulDimSingScoringMode mode; + /** + * + * @brief 音频采样率。仅支持 44100 Hz、48000 Hz。 + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; + /** + * + * @brief 歌词文件路径。打分功能仅支持 KRC 歌词文件。 + */ + +@property(nonatomic, copy) NSString *_Nonnull lyricsFilepath; + /** + * + * @brief 歌曲 midi 文件路径。 + */ + +@property(nonatomic, copy) NSString *_Nonnull midiFilepath; +@end + +/** + * + * @type keytype + * @brief 音频文件录制内容来源。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioFrameSource) { + /** + * + * @brief 本地麦克风采集的音频数据。 + */ + + ByteRTCAudioFrameSourceTypeMic = 0, + /** + * + * @brief 远端所有用户混音后的数据 + */ + + ByteRTCAudioFrameSourceTypePlayback = 1, + /** + * + * @brief 本地麦克风和所有远端用户音频流的混音后的数据 + */ + + ByteRTCAudioFrameSourceTypeMixed = 2, +}; +/** + * + * @type keytype + * @brief 音频质量 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioQuality) { + /** + * + * @brief 低音质 + */ + + ByteRTCAudioQualityLow = 0, + /** + * + * @brief 中音质 + */ + + ByteRTCAudioQualityMedium = 1, + /** + * + * @brief 高音质 + */ + + ByteRTCAudioQualityHigh = 2, + /** + * + * @brief 超高音质 + */ + + ByteRTCAudioQualityUltraHigh = 3, +}; +/** + * + * @type keytype + * @brief 音频录制配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioRecordingConfig : NSObject +/** + * + * @brief 录制文件路径。一个有读写权限的绝对路径,包含文件名和文件后缀。 + * @note 录制文件的格式仅支持 .aac 和 .wav。 + */ + +@property(nonatomic, copy) NSString* _Nonnull absoluteFileName; +/** + * + * @brief 录音内容来源,参看 ByteRTCAudioFrameSource{@link #ByteRTCAudioFrameSource}。
    + * 默认为 ByteRTCAudioFrameSourceTypeMixed = 2。 + */ + +@property(nonatomic, assign) ByteRTCAudioFrameSource frameSource; +/** + * + * @brief 录音采样率。参看 ByteRTCAudioSampleRate{@link #ByteRTCAudioSampleRate}。 + */ + +@property(nonatomic, assign) ByteRTCAudioSampleRate sampleRate; +/** + * + * @brief 录音音频声道。参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel}。
    + * 如果录制时设置的音频声道数与采集时的音频声道数不同:
    + * - 如果采集的声道数为 1,录制的声道数为 2,那么,录制的音频为经过单声道数据拷贝后的双声道数据,而不是立体声。 + * - 如果采集的声道数为 2,录制的声道数为 1,那么,录制的音频为经过双声道数据混合后的单声道数据。 + */ + +@property(nonatomic, assign) ByteRTCAudioChannel channel; +/** + * + * @brief 录音音质。仅在录制文件格式为 .aac 时可以设置。参看 ByteRTCAudioQuality{@link #ByteRTCAudioQuality}。
    + * 采样率为 32kHz 时,不同音质录制文件(时长为 10min)的大小分别是:
    + * - 低音质:1.2MB; + * - 【默认】中音质:2MB; + * - 高音质:3.75MB; + * - 超高音质:7.5MB。 + */ + +@property(nonatomic, assign) ByteRTCAudioQuality quality; +@end + +/** + * + * @type keytype + * @brief 录音配置 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRecordingState) { + /** + * + * @brief 录制异常 + */ + + ByteRTCAudioRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + ByteRTCAudioRecordingStateProcessing = 1, + /** + * + * @brief 已结束录制,并且录制文件保存成功。 + */ + + ByteRTCAudioRecordingStateSuccess = 2, +}; +/** + * + * @type errorcode + * @brief 音频文件录制的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioRecordingErrorCode) { + /** + * + * @brief 录制正常 + */ + + ByteRTCAudioRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + ByteRTCAudioRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 没有进入房间 + */ + + ByteRTCAudioRecordingErrorNotInRoom = -2, + /** + * + * @brief 录制已经开始 + */ + + ByteRTCAudioRecordingAlreadyStarted = -3, + /** + * + * @brief 录制还未开始 + */ + + ByteRTCAudioRecordingNotStarted = -4, + /** + * + * @brief 录制失败。文件格式不支持。 + */ + + ByteRTCAudioRecordingErrorCodeNotSupport = -5, + /** + * + * @brief 其他异常 + */ + + ByteRTCAudioRecordingErrorCodeOther = -6, +}; +/** + * + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEnhancementConfig: NSObject +/** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceSignaling; +/** + * + * @brief 对音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceAudio; +@end +/** + * + * @type keytype + * @brief 用户在空间音频坐标系里的位置信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPositionInfo : NSObject +/** + * + * @brief 用户在空间音频坐标系里的位置,需自行建立空间直角坐标系。参看 ByteRTCPosition{@link #ByteRTCPosition}。 + */ + +@property(strong, nonatomic) ByteRTCPosition *_Nonnull position; +/** + * + * @brief 用户在空间音频坐标系里的三维朝向信息。三个向量需要两两垂直。参看 ByteRTCHumanOrientation{@link #ByteRTCHumanOrientation}。 + */ + +@property(strong, nonatomic) ByteRTCHumanOrientation *_Nonnull orientation; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h new file mode 100644 index 0000000..1f03982 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCAudioEffectPlayer.h @@ -0,0 +1,302 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCAudioEffectPlayer +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer} 对应的回调句柄。你必须调用 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:} 完成设置后,才能收到对应回调。 + * @list + */ + +@protocol ByteRTCAudioEffectPlayerEventHandler +/** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param effectId ByteRTCAudioEffectPlayer{@link #ByteRTCAudioEffectPlayer} 的 ID。通过 getAudioEffectPlayer{@link #ByteRTCEngine#getAudioEffectPlayer} 设置。 + * @param state 混音状态。参考 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @param error 错误码。参考 ByteRTCPlayerError{@link #ByteRTCPlayerError}。 + * @list 混音 + */ + +-(void)onAudioEffectPlayerStateChanged:(int)effectId state:(ByteRTCPlayerState)state error:(ByteRTCPlayerError)error; + +@end +/** + * + * @valid since 3.53 + * @type api + * @brief 音效播放器。
    + * 注意:
    + * - 调用 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:} 设置回调句柄以获取相关回调。 + * - 使用混音功能时,你必须通过 [setActive:withOptions:error:](https: + * @list 混音 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEffectPlayer :NSObject +/** + * + * @type api + * @brief 开始播放音效文件。
    + * 可以通过传入不同的 ID 和 filepath 多次调用本方法,以实现同时播放多个音效文件,实现音效叠加。 + * @param effectId 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法后,上一个音效会停止,下一个音效开始,并收到 onAudioEffectPlayerStateChanged:state:error:{@link #ByteRTCAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged:state:error:}。 + * @param filePath 音效文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的音效文件采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线音效文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 音效配置,详见 ByteRTCAudioEffectPlayerConfig{@link #ByteRTCAudioEffectPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果已经通过 preload:filePath:{@link #ByteRTCAudioEffectPlayer#preload:filePath:} 将文件加载至内存,确保此处的 ID 与 `preload` 设置的 ID 相同。 + * - 开始播放音效文件后,可以调用 stop:{@link #ByteRTCAudioEffectPlayer#stop:} 方法停止播放音效文件。 + * @list 混音 + */ + +-(int)start:(int)effectId filePath:(NSString * _Nullable)filePath config:(ByteRTCAudioEffectPlayerConfig * _Nullable)config; +/** + * + * @type api + * @brief 停止播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以调用本方法停止播放音效文件。 + * - 调用本方法停止播放音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + +-(int)stop:(int)effectId; +/** + * + * @type api + * @brief 停止播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以调用本方法停止播放所有音效文件。 + * - 调用本方法停止播放所有音效文件后,该音效文件会被自动卸载。 + * @list 混音 + */ + +-(int)stopAll; +/** + * + * @type api + * @brief 预加载指定音乐文件到内存中,以避免频繁播放同一文件时的重复加载,减少 CPU 占用。 + * @param effectId 音效 ID。用于标识音效,请保证音效 ID 唯一性。
    + * 如果使用相同的 ID 重复调用本方法,后一次会覆盖前一次。
    + * 如果先调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:},再使用相同的 ID 调用本方法 ,会收到回调 onAudioEffectPlayerStateChanged:state:error:{@link #ByteRTCAudioEffectPlayerEventHandler#onAudioEffectPlayerStateChanged:state:error:},通知前一个音效停止,然后加载下一个音效。
    + * 调用本方法预加载 A.mp3 后,如果需要使用相同的 ID 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 播放 B.mp3,请先调用 unload:{@link #ByteRTCAudioEffectPlayer#unload:} 卸载 A.mp3 ,否则会报错 AUDIO_MIXING_ERROR_LOAD_CONFLICT。 + * @param filePath 音效文件路径。支持本地文件的 URI、或本地文件的绝对路径。
    + * 预加载的文件长度不得超过 20s。
    + * 不同平台支持的音效文件格式和 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 一致。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 本方法只是预加载指定音效文件,只有调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法才开始播放指定音效文件。 + * - 调用本方法预加载的指定音效文件可以通过 unload:{@link #ByteRTCAudioEffectPlayer#unload:} 卸载。 + * @list 混音 + */ + +-(int)preload:(int)effectId filePath:(NSString * _Nullable)filePath; +/** + * + * @type api + * @brief 卸载指定音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用本方法卸载该文件后,关于当前的混音状态,如果设置了 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:},会收到回调 `onAudioEffectPlayerStateChanged`。 + * @list 混音 + */ + +-(int)unload:(int)effectId; +/** + * + * @type api + * @brief 卸载所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用本方法卸载该文件后,关于当前的混音状态,如果设置了 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler:},会收到回调 `onAudioEffectPlayerStateChanged`。 + * @list 混音 + */ + +-(int)unloadAll; +/** + * + * @type api + * @brief 暂停播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以通过调用本方法暂停播放音效文件。 + * - 调用本方法暂停播放音效文件后,可调用 resume:{@link #ByteRTCAudioEffectPlayer#resume:} 方法恢复播放。 + * @list 混音 + */ + +-(int)pause:(int)effectId; +/** + * + * @type api + * @brief 暂停播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 方法开始播放音效文件后,可以通过调用本方法暂停播放所有音效文件。 + * - 调用本方法暂停播放所有音效文件后,可调用 resumeAll{@link #ByteRTCAudioEffectPlayer#resumeAll} 方法恢复所有播放。 + * @list 混音 + */ + +-(int)pauseAll; +/** + * + * @type api + * @brief 恢复播放音效文件。 + * @param effectId 音效 ID + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用 pause:{@link #ByteRTCAudioEffectPlayer#pause:} 方法暂停播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + +-(int)resume:(int)effectId; +/** + * + * @type api + * @brief 恢复播放所有音效文件。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 调用 pauseAll{@link #ByteRTCAudioEffectPlayer#pauseAll} 方法暂停所有正在播放音效文件后,可以通过调用本方法恢复播放。 + * @list 混音 + */ + +-(int)resumeAll; +/** + * + * @type api + * @brief 设置音效文件的起始播放位置。 + * @param effectId 音效 ID + * @param position 音效文件起始播放位置,单位为毫秒。
    + * 你可以通过 getDuration:{@link #ByteRTCAudioEffectPlayer#getDuration:} 获取音效文件总时长,position 的值应小于音效文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)setPosition:(int)effectId position:(int)position; +/** + * + * @type api + * @brief 获取音效文件播放进度。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 音效文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getPosition:(int)effectId; +/** + * + * @type api + * @brief 调节指定音效的音量大小,包括音效文件和 PCM 音频。 + * @param effectId 音效 ID + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)setVolume:(int)effectId volume:(int)volume; +/** + * + * @type api + * @brief 设置所有音效的音量大小,包括音效文件和 PCM 音效。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 该接口的优先级低于 setVolume:volume:{@link #ByteRTCAudioEffectPlayer#setVolume:volume:},即通过 `setVolume` 单独设置了音量的音效 ID,不受该接口设置的影响。 + * @list 混音 + */ + +-(int)setVolumeAll:(int)volume; +/** + * + * @type api + * @brief 获取当前音量。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getVolume:(int)effectId; +/** + * + * @type api + * @brief 获取音效文件时长。 + * @param effectId 音效 ID + * @return + * - >0: 成功, 音效文件时长,单位为毫秒。 + * - < 0: 失败 + * @note 仅在调用 start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config:} 后调用此接口。 + * @list 混音 + */ + +-(int)getDuration:(int)effectId; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 ByteRTCAudioEffectPlayerEventHandler{@link #ByteRTCAudioEffectPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + +-(int)setEventHandler:(_Nullable id)handler; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h new file mode 100644 index 0000000..cfc997f --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCDefines.h @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC RTC Defines +*/ + +#import "ByteRTCRtsDefines.h" +#import "ByteRTCMediaDefines.h" +#import "ByteRTCAudioDefines.h" +#import "ByteRTCVideoDefines.h" diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h new file mode 100644 index 0000000..e2ed273 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCHttpClientProtocol.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC HTTP Client Protocol +*/ + +#import +/** + * + * @hidden for internal use only + * @type api + * @list 引擎管理 + */ + +@protocol ByteRTCHttpClientProtocol + +@required +/** + * + * @type api + * @brief 需要实现的 HTTP 异步 GET 接口。 + * @param url GET 请求地址。 + * @param timeout 超时时间。 + * @param callback GET 请求结果回调函数。 + * @list 引擎管理 + */ + +- (void)getAsync:(NSString * _Nonnull)url timeoutMillisecond:(int)timeout + withCallback:(void(^ _Nullable)(int code, NSString* _Nullable data))callback; +/** + * + * @type api + * @brief 需要实现的 HTTP 异步 POST 接口。 + * @param url POST 请求地址。 + * @param content POST 请求的内容。 + * @param timeout 超时时间。 + * @param callback POST 请求结果回调函数。 + * @list 引擎管理 + */ + +- (void)postAsync:(NSString * _Nonnull)url content:(NSString * _Nullable)content timeoutMillisecond:(int)timeout + withCallback:(void(^ _Nullable)(int code, NSString* _Nullable data))callback; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h new file mode 100644 index 0000000..c31fa97 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVDefines.h @@ -0,0 +1,573 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCRtsDefines +*/ + +#import "ByteRTCRtsDefines.h" + +/** + * + * @type keytype + * @brief 歌曲过滤方式。 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCMusicFilterType) { + /** + * + * @brief 不过滤。 + */ + + ByteRTCMusicFilterTypeNone = 0, + /** + * + * @brief 过滤没有歌词的歌曲。 + */ + + ByteRTCMusicFilterTypeWithoutLyric = 1 << 0, + /** + * + * @brief 过滤不支持打分的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedScore = 1 << 1, + /** + * + * @brief 过滤不支持伴唱切换的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedAccopmay = 1 << 2, + /** + * + * @brief 过滤没有高潮片段的歌曲。 + */ + + ByteRTCMusicFilterTypeUnsupportedClimx = 1 << 3, +}; + +/** + * + * @type keytype + * @brief 音乐播放状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPlayState) { + /** + * + * @brief 播放中。 + */ + + ByteRTCPlayStatePlaying = 1, + /** + * + * @brief 暂停中。 + */ + + ByteRTCPlayStatePaused = 2, + /** + * + * @brief 已停止。 + */ + + ByteRTCPlayStateStoped = 3, + /** + * + * @brief 播放失败。 + */ + + ByteRTCPlayStateFailed = 4, + /** + * + * @brief 播放结束。 + */ + + ByteRTCPlayStateFinished = 5, +}; + +/** + * + * @type keytype + * @brief 原唱伴唱类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioTrackType) { + /** + * + * @brief 播放原唱。 + */ + + ByteRTCAudioTrackTypeOriginal = 1, + /** + * + * @brief 播放伴唱。 + */ + + ByteRTCAudioTrackTypeAccompy = 2, +}; + +/** + * + * @type keytype + * @brief 音乐播放类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioPlayType) { + /** + * + * @brief 仅本地播放。 + */ + + ByteRTCAudioPlayTypeLocal = 0, + /** + * + * @brief 仅远端播放。 + */ + + ByteRTCAudioPlayTypeRemote = 1, + /** + * + * @brief 本地、远端同时播放。 + */ + + ByteRTCAudioPlayTypeLocalAndRemote = 2, +}; + +/** + * + * @type keytype + * @brief 歌词格式类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLyricStatus) { + /** + * + * @brief 无歌词。 + */ + + ByteRTCLyricStatusNone = 0, + /** + * + * @brief KRC 歌词。 + */ + + ByteRTCLyricStatusKRC = 1, + /** + * + * @brief LRC 歌词。 + */ + + ByteRTCLyricStatusLRC = 2, + /** + * + * @brief KRC 歌词和 LRC 歌词均有。 + */ + + ByteRTCLyricStatusKRCAndLRC = 3, +}; + +/** + * + * @type keytype + * @brief 下载文件类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDownloadFileType) { + /** + * + * @brief 音频文件。 + */ + + ByteRTCDownloadFileTypeMusic = 1, + /** + * + * @brief KRC 歌词文件。 + */ + + ByteRTCDownloadFileTypeKRC = 2, + /** + * + * @brief LRC 歌词文件。 + */ + + ByteRTCDownloadFileTypeLRC = 3, + /** + * + * @brief MIDI 文件。 + */ + + ByteRTCDownloadFileTypeMIDI = 4, +}; + +/** + * + * @type keytype + * @brief 歌词文件类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDownloadLyricType) { + /** + * + * @brief KRC 歌词文件。 + */ + + ByteRTCDownloadLyricTypeKRC = 0, + /** + * + * @brief LRC 歌词文件。 + */ + + ByteRTCDownloadLyricTypeLRC = 1, +}; + +/** + * + * @type errorcode + * @brief KTV 错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCKTVErrorCode) { + /** + * + * @brief 成功。 + */ + + ByteRTCKTVErrorCodeOK = 0, + /** + * + * @brief AppID 异常。 + */ + + ByteRTCKTVErrorCodeAppidInValid = -3000, + /** + * + * @brief 非法参数,传入的参数不正确。 + */ + + ByteRTCKTVErrorCodeParasInValid = -3001, + /** + * + * @brief 获取歌曲资源失败。 + */ + + ByteRTCKTVErrorCodeGetMusicFailed = -3002, + /** + * + * @brief 获取歌词失败。 + */ + + ByteRTCKTVErrorCodeGetLyricFailed = -3003, + /** + * + * @brief 歌曲下架。 + */ + + ByteRTCKTVErrorCodeMusicTakedown = -3004, + /** + * + * @brief 歌曲文件下载失败。 + */ + + ByteRTCKTVErrorCodeMusicDownload = -3005, + /** + * + * @brief MIDI 文件下载失败。 + */ + + ByteRTCKTVErrorCodeMidiDownloadFailed = -3006, + /** + * + * @brief 系统繁忙。 + */ + + ByteRTCKTVErrorCodeSystemBusy = -3007, + /** + * + * @brief 网络异常。 + */ + + ByteRTCKTVErrorCodeNetwork = -3008, + /** + * + * @brief KTV 功能未加入房间。 + */ + + ByteRTCKTVErrorCodeNotJoinRoom = -3009, + /** + * + * @brief 解析数据失败。 + */ + + ByteRTCKTVErrorCodeParseData = -3010, + /** + * + * @hidden + * @deprecated 从 353 开始 + * @brief 下载失败。 + */ + + ByteRTCKTVErrorCodeDownload = -3011, + /** + * + * @brief 已在下载中。 + */ + + ByteRTCKTVErrorCodeDownloading = -3012, + /** + * + * @brief 内部错误,联系技术支持人员。 + */ + + ByteRTCKTVErrorCodeInternal = -3013, + /** + * + * @brief 下载失败,磁盘空间不足。清除缓存后重试。 + */ + + ByteRTCKTVErrorCodeInsufficientDiskSpace = -3014, + /** + * + * @brief 下载失败,音乐文件解密失败,联系技术支持人员。 + */ + + ByteRTCKTVErrorCodeMusicDecryptionFailed = -3015, + /** + * + * @brief 下载失败,音乐文件重命名失败,请重试。 + */ + + ByteRTCKTVErrorCodeFileRenameFailed = -3016, + /** + * + * @brief 下载失败,下载超时,请重试。 + */ + + ByteRTCKTVErrorCodeDownloadTimeOut = -3017, + /** + * + * @brief 清除缓存失败,可能原因是文件被占用或者系统异常,请重试。 + */ + + ByteRTCKTVErrorCodeClearCacheFailed = -3018, + /** + * + * @brief 取消下载。 + */ + + ByteRTCKTVErrorCodeDownloadCanceled = -3019 +}; + +/** + * + * @type errorcode + * @brief KTV 播放器错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCKTVPlayerErrorCode) { + /** + * + * @brief 成功。 + */ + + ByteRTCKTVPlayerErrorCodeOK = 0, + /** + * + * @brief 播放错误,请下载后播放。 + */ + + ByteRTCKTVPlayerErrorCodeFileNotExist = -3020, + /** + * + * @brief 播放错误,请确认文件播放格式。 + */ + + ByteRTCKTVPlayerErrorCodeFileError = -3021, + /** + * + * @brief 播放错误,未进入房间。 + */ + + ByteRTCKTVPlayerErrorCodeNotJoinRoom = -3022, + /** + * + * @brief 参数错误。 + */ + + ByteRTCKTVPlayerErrorCodeParam = -3023, + /** + * + * @brief 播放失败,找不到文件或文件打开失败。 + */ + + ByteRTCKTVPlayerErrorCodeStartError = -3024, + /** + * + * @brief 混音 ID 异常。 + */ + + ByteRTCKTVPlayerErrorCodeMixIdError = -3025, + /** + * + * @brief 设置播放位置出错。 + */ + + ByteRTCKTVPlayerErrorCodePositionError = -3026, + /** + * + * @brief 音量参数不合法,可设置的取值范围为 [0,400]。 + */ + + ByteRTCKTVPlayerErrorCodeAudioVolumeError = -3027, + /** + * + * @brief 不支持此混音类型。 + */ + + ByteRTCKTVPlayerErrorCodeTypeError = -3028, + /** + * + * @brief 音调文件不合法。 + */ + + ByteRTCKTVPlayerErrorCodePitchError = -3029, + /** + * + * @brief 音轨不合法。 + */ + + ByteRTCKTVPlayerErrorCodeAudioTrackError = -3030, + /** + * + * @brief 混音启动中。 + */ + + ByteRTCKTVPlayerErrorCodeStartingError = -3031, +}; + +/** + * + * @type keytype + * @brief 歌曲数据。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMusicInfo : NSObject +/** + * + * @brief 音乐 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicId; +/** + * + * @brief 音乐名称。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicName; +/** + * + * @brief 歌手。 + */ + +@property (nonatomic, copy) NSString * _Nonnull singer; +/** + * + * @brief 版权商 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull vendorId; +/** + * + * @brief 版权商名称。 + */ + +@property (nonatomic, copy) NSString * _Nonnull vendorName; +/** + * + * @brief 最新更新时间戳,单位为毫秒。 + */ + +@property (nonatomic, assign) int64_t updateTimestamp; +/** + * + * @brief 封面地址。 + */ + +@property (nonatomic, copy) NSString * _Nonnull posterUrl; +/** + * + * @brief 歌词格式类型,参看 ByteRTCLyricStatus{@link #ByteRTCLyricStatus}。 + */ + +@property (nonatomic, assign) ByteRTCLyricStatus lyricStatus; +/** + * + * @brief 歌曲长度,单位为毫秒。 + */ + +@property (nonatomic, assign) int duration; +/** + * + * @brief 歌曲是否支持打分。 + */ + +@property (nonatomic, assign) BOOL enableScore; +/** + * + * @brief 歌曲高潮片段开始时间,单位为毫秒。 + */ + +@property (nonatomic, assign) int climaxStartTime; +/** + * + * @brief 歌曲高潮片段停止时间,单位为毫秒。 + */ + +@property (nonatomic, assign) int climaxEndTime; +@end + +/** + * + * @type keytype + * @brief 热榜歌曲数据。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHotMusicInfo : NSObject +/** + * + * @brief 热榜名称。 + */ + +@property (nonatomic, copy) NSString * _Nullable hotName; +/** + * + * @brief 歌曲数据,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + */ + +@property (nonatomic, copy) NSArray * _Nullable musics; +@end + +/** + * + * @type keytype + * @brief 歌曲下载信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDownloadResult : NSObject +/** + * + * @brief 音乐 ID。 + */ + +@property (nonatomic, copy) NSString * _Nonnull musicId; +/** + * + * @brief 下载文件类型,参看 ByteRTCDownloadFileType{@link #ByteRTCDownloadFileType}。 + */ + +@property (nonatomic, assign) ByteRTCDownloadFileType fileType; +/** + * + * @brief 文件存放路径。 + */ + +@property (nonatomic, copy) NSString * _Nullable filePath; + +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h new file mode 100644 index 0000000..46c8005 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManager.h @@ -0,0 +1,252 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVManager +*/ + +#import +#import "ByteRTCKTVDefines.h" +@class ByteRTCKTVManager; +@class ByteRTCKTVPlayer; + +NS_ASSUME_NONNULL_BEGIN +/** + * + * @type callback + * @brief KTV 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCKTVManagerDelegate +@optional +/** + * + * @type callback + * @brief 歌曲列表回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param musics 歌曲数据数组,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param totalSize 数据条目总数。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onMusicListResult:(NSArray * _Nullable)musics totalSize:(int)totalSize errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 搜索歌曲结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param musics 歌曲数据数组,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param totalSize 数据条目总数。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onSearchMusicResult:(NSArray * _Nullable)musics totalSize:(int)totalSize errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 热榜歌曲结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param hotMusicInfos 热榜歌曲数据数组,参看 ByteRTCHotMusicInfo{@link #ByteRTCHotMusicInfo}。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onHotMusicResult:(NSArray * _Nullable)hotMusicInfos errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 歌曲详细信息回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param music 歌曲数据,参看 ByteRTCMusicInfo{@link #ByteRTCMusicInfo}。 + * @param errorCode 错误码,成功时返回 0,其余值参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onMusicDetailResult:(ByteRTCMusicInfo * _Nullable)music errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 下载成功回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param result 下载信息,参看 ByteRTCDownloadResult{@link #ByteRTCDownloadResult}。 + * @list 在线 KTV + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadSuccess:(int)downloadId downloadResult:(ByteRTCDownloadResult *)result; +/** + * + * @type callback + * @brief 下载失败回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param errorCode 错误码,参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list Online Karaoke + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadFailed:(int)downloadId errorCode:(ByteRTCKTVErrorCode)errorCode; +/** + * + * @type callback + * @brief 歌曲文件下载进度回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param downloadId 下载任务 ID。 + * @param downloadPercentage 下载进度百分比,取值范围 [0,100]。 + * @list 在线 KTV + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onDownloadMusicProgress:(int)downloadId progress:(int)downloadPercentage; +/** + * + * @type callback + * @brief 清理文件缓存结果回调。 + * @param ktvManager 参考 ByteRTCKTVManager{@link #ByteRTCKTVManager}。 + * @param errorCode 错误码,非 0 为失败,参看 ByteRTCKTVErrorCode{@link #ByteRTCKTVErrorCode}。 + * @list Online Karaoke + */ + +- (void)ktvManager:(ByteRTCKTVManager *)ktvManager onClearCacheResult:(ByteRTCKTVErrorCode)errorCode; +@end +/** + * + * @type api + * @brief KTV 管理接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCKTVManager : NSObject + +@property(nonatomic, weak) id delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 获取歌曲列表。 + * @param pageNumber 页码,默认从 1 开始。 + * @param pageSize 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onMusicListResult:totalSize:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onMusicListResult:totalSize:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)getMusicList:(int)pageNumber pageSize:(int)pageSize filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 根据关键词搜索歌曲。 + * @param keyWord 关键词,字符串长度最大为 20 个字符。 + * @param pageNumber 页码,默认从 1 开始。 + * @param pageSize 每页显示歌曲的最大数量,取值范围 [1,99]。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onSearchMusicResult:totalSize:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onSearchMusicResult:totalSize:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)searchMusic:(NSString * _Nonnull)keyWord pageNumber:(int)pageNumber pageSize:(int)pageSize filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 指定歌曲榜单,并获取其歌曲列表。 + * @param customHotlistId 榜单 ID 列表。
    + * 默认榜单 ID 有:`ContentCenter` 和 `Project`,分别是火山内容中心热歌榜和项目热歌榜。如果你需要其他榜单,请联系技术支持人员。 + * @param filterType 歌曲过滤方式,参看 ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}。多个过滤方式可以按位或组合。 + * @note 调用接口后,你会收到 ktvManager:onHotMusicResult:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onHotMusicResult:errorCode:} 回调歌曲列表。 + * @list 在线 KTV + */ + +- (void)getHotMusic:(NSArray *_Nullable)customHotlistId filterType:(ByteRTCMusicFilterType)filterType; +/** + * + * @type api + * @brief 获取音乐详细信息。 + * @param musicId 音乐 ID。 + * @note 调用接口后,你会收到 ktvManager:onMusicDetailResult:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onMusicDetailResult:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (void)getMusicDetail:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 下载音乐。 + * @param musicId 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若音乐下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若音乐下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * - 音乐下载进度更新时,你会收到 ktvManager:onDownloadMusicProgress:progress:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadMusicProgress:progress:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 下载歌词。 + * @param musicId 音乐 ID。 + * @param lyricType 歌词文件类型,参看 ByteRTCDownloadLyricType{@link #ByteRTCDownloadLyricType}。 + * @return 下载任务 ID。 + * @note + * - 若歌词下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若歌词下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadLyric:(NSString * _Nonnull)musicId lyricType:(ByteRTCDownloadLyricType)lyricType; +/** + * + * @type api + * @brief 下载 MIDI 文件。 + * @param musicId 音乐 ID。 + * @return 下载任务 ID。 + * @note + * - 若文件下载成功,你会收到 ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult:} 回调。 + * - 若文件下载失败,你会收到 ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode:} 回调。 + * @list 在线 KTV + */ + +- (int)downloadMidi:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 取消下载任务。 + * @param downloadId 下载任务 ID。 + * @list 在线 KTV + */ + +- (void)cancelDownload:(int)downloadId; +/** + * + * @type api + * @brief 清除当前音乐缓存文件,包括音乐音频和歌词。 + * @list 在线 KTV + */ + +- (void)clearCache; +/** + * + * @type api + * @brief 设置歌曲文件最大占用的本地缓存。 + * @param maxCacheSizeMB 本地缓存,单位 MB。
    + * 设置值小于等于 0 时,使用默认值 1024 MB。 + * @list 在线 KTV + */ + +- (void)setMaxCacheSize:(int)maxCacheSizeMB; +/** + * + * @type api + * @brief 获取 KTV 播放器。 + * @return KTV 播放器接口,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @list 在线 KTV + */ + +- (ByteRTCKTVPlayer * _Nullable)getKTVPlayer; + + +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h new file mode 100644 index 0000000..930ece1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVManagerInternal.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVManager +*/ + +@interface ByteRTCKTVManager () + +- (instancetype)initWithKTVManager:(bytertc::IKTVManager *)ktvManager; + +- (void)destroyResourceInternal; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h new file mode 100644 index 0000000..abc500c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayer.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVPlayer +*/ + +#import +#import "ByteRTCKTVDefines.h" +@class ByteRTCKTVPlayer; + +NS_ASSUME_NONNULL_BEGIN +/** + * + * @type callback + * @brief KTV 播放器回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +@protocol ByteRTCKTVPlayerDelegate +/** + * + * @type callback + * @brief 音乐播放进度回调。 + * @param ktvPlayer 当前 ktvPlayer 对象,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @param musicId 音乐 ID。 + * @param progress 音乐播放进度,单位为毫秒。 + * @list 在线 KTV + */ + +- (void)ktvPlayer:(ByteRTCKTVPlayer *)ktvPlayer onPlayProgress:(NSString *)musicId progress:(int64_t)progress; +/** + * + * @type callback + * @brief 音乐播放状态改变回调。 + * @param ktvPlayer 当前 ktvPlayer 对象,参看 ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}。 + * @param musicId 音乐 ID。 + * @param state 音乐播放状态,参看 ByteRTCPlayState{@link #ByteRTCPlayState}。 + * @param error 错误码,参看 ByteRTCKTVPlayerErrorCode{@link #ByteRTCKTVPlayerErrorCode}。 + * @note + * 此回调被触发的时机汇总如下:
    + * - 调用 playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType:} 成功后,会触发 playState 值为 ByteRTCPlayStatePlaying 的回调;否则会触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 使用相同的音乐 ID 重复调用 playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType:} 后,后一次播放会覆盖前一次,且会触发 playState 值为 ByteRTCPlayStatePlaying 的回调,表示后一次音乐播放已开始。 + * - 调用 pauseMusic:{@link #ByteRTCKTVPlayer#pauseMusic:} 方法暂停播放成功后,会触发 playState 值为 ByteRTCPlayStatePaused 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 调用 resumeMusic:{@link #ByteRTCKTVPlayer#resumeMusic:} 方法恢复播放成功后,会触发 playState 值为 ByteRTCPlayStatePlaying 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 调用 stopMusic:{@link #ByteRTCKTVPlayer#stopMusic:} 方法停止播放成功后,会触发 playState 值为 ByteRTCPlayStateStoped 的回调;否则触发 playState 值为 ByteRTCPlayStateFailed 的回调。 + * - 音乐播放结束会触发 playState 值为 ByteRTCPlayStateFinished 的回调。 + * @list Online Karaoke + */ + +- (void)ktvPlayer:(ByteRTCKTVPlayer *)ktvPlayer onPlayStateChanged:(NSString *)musicId state:(ByteRTCPlayState)state error:(ByteRTCKTVPlayerErrorCode)error; +@end +/** + * + * @type api + * @brief KTV 播放器接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCKTVPlayer : NSObject + +@property(nonatomic, weak) id delegate; + +#pragma mark - Core Methods +/** + * + * @type api + * @brief 播放歌曲。 + * @param musicId 音乐 ID。
    + * 若同一 musicId 的歌曲正在播放,再次调用接口会从开始位置重新播放。若 musicId 对应的音频文件不存在会触发报错。 + * @param trackType 原唱伴唱类型,参看 ByteRTCAudioTrackType{@link #ByteRTCAudioTrackType}。 + * @param playType 音乐播放类型。参看 ByteRTCAudioPlayType{@link #ByteRTCAudioPlayType}。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * - 若音乐文件不存在,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3020,playState 为 4。 + * @list 在线 KTV + */ + +- (void)playMusic:(NSString * _Nonnull)musicId audioTrackType:(ByteRTCAudioTrackType)trackType audioPlayType:(ByteRTCAudioPlayType)playType; +/** + * + * @type api + * @brief 暂停播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)pauseMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 继续播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)resumeMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 停止播放歌曲。 + * @param musicId 音乐 ID。 + * @note + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)stopMusic:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param musicId 音乐 ID。 + * @param position 音乐起始位置,单位为毫秒,取值小于音乐文件总时长。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 调用接口后,你会收到 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调歌曲播放状态。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)seekMusic:(NSString * _Nonnull)musicId position:(int)position; +/** + * + * @type api + * @brief 设置歌曲播放音量,只能在开始播放后进行设置。 + * @param musicId 音乐 ID。 + * @param volume 歌曲播放音量,调节范围:[0,400]。
    + * - 0:静音。 + * - 100:原始音量。 + * - 400: 原始音量的 4 倍(自带溢出保护)。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的音量大于 400,则按最大值 400 进行调整;若设置的音量小于 0,则按最小值 0 进行调整。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)setMusicVolume:(NSString * _Nonnull)musicId volume:(int)volume; +/** + * + * @type api + * @brief 切换歌曲原唱伴唱。 + * @param musicId 音乐 ID。 + * @note 调用本接口时音乐必须处于播放中状态。 + * @list 在线 KTV + */ + +- (void)switchAudioTrackType:(NSString * _Nonnull)musicId; +/** + * + * @type api + * @brief 对播放中的音乐设置升降调信息。 + * @param musicId 音乐 ID。 + * @param pitch 相对于音乐文件原始音调的升高/降低值,取值范围 [-12,12],默认值为 0,即不做调整。
    + * 取值范围内每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调,设置的绝对值越大表示音调升高或降低越多。 + * @note + * - 调用本接口时音乐必须处于播放中状态。 + * - 若设置的 pitch 大于 12,则按最大值 12 进行调整;若设置的 pitch 小于 –12,则按最小值 –12 进行调整。 + * - 若音乐 ID 错误,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3023,playState 为 4。 + * - 若未进房,会触发 ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error:} 回调,errorCode 为 –3022,playState 为 4。 + * @list 在线 KTV + */ + +- (void)setMusicPitch:(NSString * _Nonnull)musicId pitch:(int)pitch; + +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h new file mode 100644 index 0000000..f7a2e5a --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCKTVPlayerInternal.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCKTVPlayer +*/ + +@interface ByteRTCKTVPlayer () + +- (instancetype)initWithKTVPlayer:(bytertc::IKTVPlayer *)ktvPlayer; + +- (void)destroyResourceInternal; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h new file mode 100644 index 0000000..2d213fc --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaDefines.h @@ -0,0 +1,4989 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Common Defines +*/ + +#import "ByteRTCRtsDefines.h" +/** + * + * @type keytype + * @brief 方法调用结果。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCReturnStatus) { + /** + * + * @brief 成功。 + */ + + ByteRTCReturnStatusSuccess = 0, + /** + * + * @brief 失败。 + */ + + ByteRTCReturnStatusFailure = -1, + /** + * + * @brief 参数错误。 + */ + + ByteRTCReturnStatusParameterErr = -2, + /** + * + * @brief 接口状态错误。 + */ + + ByteRTCReturnStatusWrongState = -3, + /** + * + * @brief 失败,用户已在房间内。 + */ + + ByteRTCReturnStatusHasInRoom = -4, + /** + * + * @brief 失败,用户已登录。 + */ + + ByteRTCReturnStatusHasInLogin = -5, + /** + * + * @brief 失败,用户已经在进行通话回路测试中。 + */ + + ByteRTCReturnStatusHasInEchoTest = -6, + /** + * + * @brief 失败,音视频均未采集。 + */ + + ByteRTCReturnStatusNeitherVideoNorAudio = -7, + /** + * + * @brief 失败,该 roomId 已被使用。 + */ + + ByteRTCReturnStatusRoomIdInUse = -8, + /** + * + * @brief 失败,屏幕流不支持。 + */ + + ByteRTCReturnStatusScreenNotSupport = -9, + /** + * + * @brief 失败,不支持该操作。 + */ + + ByteRTCReturnStatusNotSupport = -10, + /** + * + * @brief 失败,资源已占用。 + */ + + ByteRTCReturnStatusResourceOverflow = -11, + /** + * + * @brief 失败,没有音频帧。 + */ + + ByteRTCReturnStatusAudioNoFrame = -101, + /** + * + * @brief 失败,未实现。 + */ + + ByteRTCReturnStatusAudioNotImplemented = -102, + /** + * + * @brief 失败,采集设备无麦克风权限,尝试初始化设备失败。 + */ + + ByteRTCReturnStatusAudioNoPermission = -103, + /** + * + * @brief 失败,设备不存在。当前没有设备或设备被移除时返回该值。 + */ + + ByteRTCReturnStatusAudioDeviceNotExists = -104, + /** + * + * @brief 失败,设备音频格式不支持。 + */ + + ByteRTCReturnStatusAudioDeviceFormatNotSupport = -105, + /** + * + * @brief 失败,系统无可用设备。 + */ + + ByteRTCReturnStatusAudioDeviceNoDevice = -106, + /** + * + * @brief 失败,当前设备不可用,需更换设备。 + */ + + ByteRTCReturnStatusAudioDeviceCannotUse = -107, + /** + * + * @brief 系统错误,设备初始化失败。 + */ + + ByteRTCReturnStatusAudioDeviceInitFailed = -108, + /** + * + * @brief 系统错误,设备开启失败。 + */ + + ByteRTCReturnStatusAudioDeviceStartFailed = -109, + /** + * + * @hidden(iOS) + * @brief 暂不支持指定音频进程采集,采集失败。 + */ + + ByteRTCReturnStatusAudioDeviceProcessNotExist = -110, + /** + * + * @brief 失败。底层未初始化,engine 无效。 + */ + + ByteRTCReturnStatusNativeInValid = -201, +}; + +/** + * + * @type keytype + * @brief 房间内远端流移除原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamRemoveReason) { + /** + * + * @brief 远端用户停止发布流。 + */ + + ByteRTCStreamRemoveReasonUnpublish = 0, + /** + * + * @brief 远端用户发布流失败。 + */ + + ByteRTCStreamRemoveReasonPublishFailed = 1, + /** + * + * @brief 媒体服务器 10s 没收到客户端的媒体数据。 + */ + + ByteRTCStreamRemoveReasonKeepLiveFailed = 2, + /** + * + * @brief 远端用户断网。 + */ + + ByteRTCStreamRemoveReasonClientDisconnected = 3, + /** + * + * @brief 远端用户重新发布流。 + */ + + ByteRTCStreamRemoveReasonRepublish = 4, + /** + * + * @brief 其他原因。 + */ + + ByteRTCStreamRemoveReasonOther = 5, + /** + * + * @brief 远端用户 Token 发布权限过期。 + */ + + ByteRTCStreamRemoveReasonPublishPrivilegeExpired = 6, +}; + +/** + * + * @type keytype + * @brief 房间模式
    + * 根据所需场景,选择合适的房间模式,应用不同的音视频算法、视频参数和网络配置
    + * 调用 `setAudioProfile` 改变音频参数配置 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomProfile) { + /** + * + * @brief 默认场景,通用模式
    + * 与 `ByteRTCRoomProfileMeeting = 16` 配置相同。
    + * 你可以联系技术支持更换默认配置参数。 + */ + + ByteRTCRoomProfileCommunication = 0, + /** + * + * @brief 游戏语音模式,低功耗、低流量消耗。
    + * 低端机在此模式下运行时,进行了额外的性能优化:
    + * - 部分低端机型配置编码帧长 40/60 + * - 部分低端机型关闭软件 3A 音频处理 + * 增强对 iOS 其他屏幕录制进行的兼容性,避免音频录制被 RTC 打断。 + */ + + ByteRTCRoomProfileGame = 2, + /** + * + * @brief 云游戏模式。
    + * 如果你的游戏场景需要低延迟的配置,使用此设置。
    + * 此设置下,弱网抗性较差。 + */ + + ByteRTCRoomProfileCloudGame = 3, + /** + * + * @brief 云渲染模式。超低延时配置。
    + * 如果你的应用并非游戏但又对延时要求较高时,选用此模式
    + * 该模式下,音视频通话延时会明显降低,但同时弱网抗性、通话音质等均会受到一定影响。 + */ + + ByteRTCRoomProfileLowLatency = 4, + /** + * + * @brief 适用于 3 人及以上纯语音通话。
    + * 通话中,闭麦时是媒体模式,上麦后切换为通话模式。 + */ + + ByteRTCRoomProfileChatRoom = 6, + /** + * + * @brief 适用于单主播和观众进行音视频互动的直播。通话模式,上下麦不会有模式切换,避免音量突变现象 + */ + + ByteRTCRoomProfileInteractivePodcast = 10, + /** + * + * @brief 适合在线实时合唱场景,高音质,超低延迟。使用本配置前请联系技术支持进行协助完成其他配置。 + */ + + ByteRTCRoomProfileChorus = 12, + /** + * + * @brief 适用于 1 vs 1 游戏串流,支持公网或局域网。 + */ + + ByteRTCRoomProfileGameStreaming = 14, + /** + * + * @brief 适用于云端会议中的个人设备 + */ + + ByteRTCRoomProfileMeeting = 16, + /** + * + * @brief 适用于云端会议中的会议室终端设备,例如 Rooms,投屏盒子等。 + */ + + ByteRTCRoomProfileMeetingRoom = 17, + /** + * + * @brief 适用于课堂互动,房间内所有成员都可以进行音视频互动
    + * 当你的场景中需要同时互动的成员超过 10 人时使用此模式 + */ + + ByteRTCRoomProfileClassroom = 18, + /** + * + * @brief 注重流畅性,缺省码率相对低。适用于通话。 + */ + + ByteRTCRoomProfileCall = 19, + /** + * + * @brief 更注重画质,视频缺省码率相对高。适用于直播互动。 + */ + + ByteRTCRoomProfileLive = 20, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 用户角色。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserRoleType) { + /** + * + * @brief 主播角色。该角色用户可在房间内发布和订阅音视频流,房间中的其他用户可以感知到该用户的存在。 + */ + + ByteRTCUserRoleTypeBroadcaster = 1, + /** + * + * @brief 隐身用户角色。此角色用户只可在房间内订阅音视频流,房间中的其他用户无法感知到该用户的存在。 + */ + + ByteRTCUserRoleTypeSilentAudience = 2, +}; + + +typedef NS_ENUM(NSInteger, ByteRTCRoomLiveMode) { + /** + * + * @brief 多人直播、连麦直播等模式。 + */ + + ByteRTCRoomLiveModeCoHost = 1, + /** + * + * @brief 单人直播。 + */ + + ByteRTCRoomLiveModeSoloHost = 2, +}; + +/** + * + * @type keytype + * @brief 用户可见性状态改变错误码。 + */ + + typedef NS_ENUM(NSInteger, ByteRTCUserVisibilityChangeError) { + /** + * + * @brief 成功。 + */ + + ByteRTCUserVisibilityChangeErrorOk = 0, + /** + * + * @brief 未知错误。 + */ + + ByteRTCUserVisibilityChangeErrorUnknown = 1, + /** + * + * @brief 房间内可见用户达到上限。 + */ + + ByteRTCUserVisibilityChangeErrorTooManyVisibleUser = 2, +}; + +/** + * + * @type keytype + * @brief 数据消息来源 + */ + +typedef NS_ENUM(NSInteger, ByteRTCDataMessageSourceType) { + /** + * + * @brief 通过客户端或服务端的插入的自定义消息。 + */ + + ByteRTCDataMessageSourceTypeDefault = 0, + /** + * + * @brief 系统数据,包含音量指示信息。 + */ + + ByteRTCDataMessageSourceTypeSystem = 1, +}; + +/** + * + * @type keytype + * @brief SEI 发送模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSEICountPerFrame) { + /** + * + * @brief 单发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,SEI 数据会按顺序跟随连续的视频帧逐帧发送,单个视频帧最多只有一个 SEI 数据。 + * 例如,假设在某一帧间隔内需要发送 3 个 SEI 数据,那么第 1 个 SEI 会在当前帧发送,第 2 个 SEI 会在下一帧发送,第 3 个 SEI 会在再下一帧发送。 + */ + + ByteRTCSEICountPerFrameSingle = 0, + /** + * + * @brief 多发模式。 + * 在 1 帧间隔内多次发送 SEI 数据时,这些 SEI 数据会全部在下一个视频帧上发送,可降低发送延迟,但一个视频帧会携带多个 SEI 数据。 + * 例如,假设在某一帧间隔内有 3 个 SEI 数据需要发送,这 3 个 SEI 数据将全部在下一个视频帧上发送。 + */ + + ByteRTCSEICountPerFrameMulti = 1, +}; + +/** + * + * @type keytype + * @brief 房间状态码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomState) { + /** + * + * @brief 加入房间成功 + */ + + ByteRTCRoomStateJoinSuccess = 0, + /** + * + * @brief 加入房间失败 + */ + + ByteRTCRoomStateJoinFailed = 1, + /** + * + * @brief 离开房间 + */ + + ByteRTCRoomStateLeft = 2, +}; + +/** + * + * @type keytype + * @brief 房间状态变化原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomStateChangeReason) { + /** + * + * @brief 首次进房成功。 + */ + + ByteRTCRoomStateChangeReasonJoinRoom = 0, + /** + * + * @brief 重新进房,比如断网重连。 + */ + + ByteRTCRoomStateChangeReasonReconnect = 1, + /** + * + * @brief 离开房间。 + */ + + ByteRTCRoomStateChangeReasonLeaveRoom = 2, + + /** + * + * @brief 进房失败。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + ByteRTCRoomStateChangeReasonJoinRoomFailed = -2001, + + /** + * + * @brief Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 方法更新 Token。 + */ + + ByteRTCRoomStateChangeReasonInvalidToken = -1000, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonUpdateTokenWithInvalidToken = -1010, + /** + * + * @brief 房间被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonUserForbidden = -1026, + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonKickedOut = -1006, + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonRoomDismiss = -1011, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonDuplicateLogin = -1004, + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 `joinRoom:userInfo:roomConfig:` 方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + ByteRTCRoomStateChangeReasonWithoutLicenseAuthenticateSDK = -1012, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseNotMatchWithCache = -1024, + /** + * + * @hidden internal use only + * @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomStateChangeReasonLicenseFunctionNotFound = -1027, + /** + * + * @brief 服务端异常状态导致退出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTCRoomStateChangeReasonStateAbnormalServerStatus = -1084, + /** + * + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTCRoomStateChangeReasonUnknown = -1001 +}; + +/** + * + * @type keytype + * @brief 房间事件码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomEvent) { + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `rtcRoom:onUserJoined:` 和 `rtcEngine:onUserLeave:reason:` 回调,并通过广播提示房间内所有用户。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomEventUserNotifyStop = -2013, + + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + ByteRTCRoomEventForbidden = -2012 +}; + +/** + * + * @type keytype + * @brief 房间事件信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomEventInfo : NSObject + /** + * + * @brief 房间/用户被封禁,通过房间事件通知封禁时间。 + */ + + @property(assign, nonatomic) NSInteger forbiddenTime; +@end + +/** + * + * @type errorcode + * @brief 回调错误码。
    + * SDK 内部遇到不可恢复的错误时,会通过 `rtcEngine:onError:` 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCErrorCode) { + /** + * + * @brief Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig:} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken:{@link #ByteRTCRTSRoom#updateToken:} 方法更新 Token。 + */ + + ByteRTCErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTCErrorCodeJoinRoom = -1001, + /** + * + * @brief 没有发布音视频流权限。通过以下回调通知:rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:}。
    + * 用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。 + */ + + ByteRTCErrorCodeNoPublishPermission = -1002, + /** + * + * @brief 没有订阅音视频流权限。通过以下回调通知:rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + ByteRTCErrorCodeNoSubscribePermission = -1003, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeDuplicateLogin = -1004, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeKickedOut = -1006, + + /** + * + * @brief 当调用 `createRtcRoom:` ,如果 roomId 非法,会返回 null,并抛出该错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeRoomIdIllegal = -1007, + /** + * + * @brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeUpdateTokenWithInvalidToken = -1010, + + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeRoomDismiss = -1011, + + /** + * + * @hidden internal use only + * @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 调用 `joinRoom:userInfo:roomConfig:` 方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。 + */ + + ByteRTCJoinRoomWithoutLicenseAuthenticateSDK = -1012, + + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCRoomAlreadyExist = -1013, + + /** + * + * @brief 加入多个房间时使用了不同的 uid。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + ByteRTCUserIDDifferent = -1014, + /** + * + * @hidden internal use only + * @brief 服务端 license 过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomServerLicenseExpired = -1017, + /** + * + * @hidden internal use only + * @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomExceedsTheUpperLimit = -1018, + /** + * + * @hidden internal use only + * @brief license 参数错误,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseParameterError = -1019, + /** + * + * @hidden internal use only + * @brief license 证书路径错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseFilePathError = -1020, + /** + * + * @hidden internal use only + * @brief license 证书不合法。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseIllegal = -1021, + /** + * + * @hidden internal use only + * @brief license 证书已经过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseExpired = -1022, + /** + * + * @hidden internal use only + * @brief license 证书内容不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseInformationNotMatch = -1023, + /** + * + * @hidden internal use only + * @brief license 当前证书与缓存证书不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomLicenseNotMatchWithCache = -1024, + /** + * + * @brief 房间被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomRoomForbidden = -1025, + /** + * + * @brief 用户被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCErrorCodeJoinRoomUserForbidden = -1026, + /** + * + * @brief 订阅音视频流失败,订阅音视频流总数超过上限。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 游戏场景下,为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + ByteRTCErrorCodeOverStreamSubscribeLimit = -1070, + /** + * + * @brief 发布流失败,发布流总数超过上限。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。
    + * RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。 + */ + + ByteRTCErrorCodeOverStreamPublishLimit = -1080, + /** + * + * @deprecated since 3.52, use ByteRTCErrorCodeOverStreamPublishLimit-1080)instead + * @brief 发布视频流总数超过上限。
    + * RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。 + */ + + ByteRTCErrorCodeOverVideoPublishLimit = -1082, + /** + * + * @deprecated since 3.60, use ByteRTCAVSyncEventInvalidUidRepeated = 0 carried by rtcRoom:onAVSyncEvent:userId:eventCode:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncEvent:userId:eventCode:} instead. + * @brief 音视频同步失败。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。
    + * 通过 rtcRoom:onStreamStateChanged:withUid:state:extraInfo: 回调。 + */ + + ByteRTCErrorCodInvalidAudioSyncUidRepeated = -1083, + /** + * + * @brief 服务端异常状态导致退出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTCErrorCodeAbnormalServerStatus = -1084, + /** + * + * @hidden for internal use only + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。 + */ + + ByteRTCErrorCodeMultiRoomUnpublishFailed = -1085, + /** + * + * @hidden for internal use only + * @brief 指定服务区域时传入错误参数。 + */ + + ByteRTCErrorCodeWrongAreaCode = -1086, + /** + * + * @hidden for internal use only + * @brief notify deadlock + */ + + ByteRTCErrorCodeDeadLockNotify = -1111, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅作通知。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWarningCode) { + /** + * + * @brief 发布音视频流失败。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + ByteRTCWarningCodePublishStreamFailed = -2002, + /** + * + * @brief 订阅音视频流失败。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + ByteRTCWarningCodeSubscribeStreamFailed404 = -2003, + /** + * + * @brief 订阅音视频流失败。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason:}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason:}。
    + * 当你订阅所在房间中的音视频流时,由于服务器错误导致订阅失败。SDK 会自动重试订阅。 + */ + + ByteRTCWarningCodeSubscribeStreamFailed5xx = -2004, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误,当前代码中未使用。 + */ + + ByteRTCWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + ByteRTCWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 当调用 `setUserVisibility:` 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调。 + */ + + ByteRTCWarningCodePublishStreamForbidden = -2009, + /** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @brief 自动订阅模式未关闭时,尝试开启手动订阅模式会触发此警告。
    + * 你需在进房前关闭自动订阅模式,再调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe:}/subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe:} 方法手动订阅音视频流。 + */ + + ByteRTCWarningCodeSubscribeStreamForbiden = -2010, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + ByteRTCWarningCodeSendCustomMessage = -2011, + /** + * + * @brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 `rtcEngine:onUserJoined:elapsed:` 和 `rtcEngine:onUserLeave:reason:` 回调,并通过广播提示房间内所有用户。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo:} 回调。 + */ + + ByteRTCWarningCodeCodeUserNotifyStop = -2013, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布 WTN 流。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason:}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason:} 回调,提示`kPublishStateChangeReasonNoPublishPermission` 回调。 + */ + + ByteRTCWarningCodeUserInPublish = -2014, + /** + * + * @deprecated since 3.45 and will be deleted in 3.51. + * @brief 同样 roomid 的房间已经存在了 + */ + + ByteRTCWarningCodeRoomAlreadyExist = -2015, + + /** + * + * @brief 当前正在进行回路测试,该接口调用无效 + */ + + ByteRTCWarningCodeInEchoTestMode = -2017, + /** + * + * @brief 摄像头权限异常,当前应用没有获取摄像头权限 + */ + + ByteRTCWarningCodeNoCameraPermission = -5001, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNoPermission 代替。
    + * 麦克风权限异常,当前应用没有获取麦克风权限。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNoPermission instead. + */ + + ByteRTCWarningCodeNoMicrophonePermission = -5002, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure 代替。
    + * 音频采集设备启动失败。
    + * 启动音频采集设备失败,当前设备可能被其他应用占用。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure instead. + */ + + ByteRTCWarningCodeAudioDeviceManagerRecordingStartFail = -5003, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure 代替.
    + * 音频播放设备启动失败警告。
    + * 可能由于系统资源不足,或参数错误。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceFailure instead. + */ + + ByteRTCWarningCodeAudioDeviceManagerPlayoutStartFail = -5004, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频采集设备。
    + * 启动音频采集设备失败,请插入可用的音频采集设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound instead. + */ + + ByteRTCWarningCodeNoRecordingDevice = -5005, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound 代替。
    + * 无可用音频播放设备。
    + * 启动音频播放设备失败,请插入可用的音频播放设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceError{@link #ByteRTCMediaDeviceError}.ByteRTCMediaDeviceErrorDeviceNotFound instead. + */ + + ByteRTCWarningCodeNoPlayoutDevice = -5006, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningCaptureSilence 代替。
    + * 当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningCaptureSilence instead. + */ + + ByteRTCWarningCodeRecordingSilence = -5007, + /** + * + * @brief 已在 3.33 版本中废弃,使用 ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningOperationDenied 代替。
    + * 媒体设备误操作警告。
    + * 使用自定义采集时,不可调用内部采集开关,调用时触发此警告。 + * @deprecated since 3.33 and will be deleted in 3.51, use ByteRTCMediaDeviceWarning{@link #ByteRTCMediaDeviceWarning}.ByteRTCMediaDeviceWarningOperationDenied instead. + */ + + ByteRTCWarningCodeMediaDeviceOperationDennied = -5008, + /** + * + * @brief 不支持在 publishScreenAudio: 之后,通过 `setScreenAudioSourceType` 设置屏幕音频采集类型 + */ + + ByteRTCWarningSetScreenAudioSourceTypeFailed = -5009, + + /** + * + * @brief 不支持在 publishScreenAudio: 之后,通过 `setScreenAudioStreamIndex` 设置屏幕音频混流类型 + */ + + ByteRTCWarningSetScreenAudioStreamIndexFailed = -5010, + /** + * + * @brief 设置语音音高不合法 + */ + + ByteRTCWarningInvalidVoicePitch = -5011, + /** + * + * @brief 外部音频源新旧接口混用 + */ + + ByteRTCWarningInvalidCallForExtAudio = -5013, + /** + * + * @brief 指定的内部渲染画布句柄无效。
    + * 当你调用 setLocalVideoCanvas:{@link #ByteRTCEngine#setLocalVideoCanvas:} 或 setRemoteVideoCanvas:withCanvas:{@link #ByteRTCEngine#setRemoteVideoCanvas:withCanvas:} 时指定了无效的画布句柄,触发此回调。 + */ + + ByteRTCWarningCodeInvalidCanvasHandle = -6001, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiAppkeyORToken = -7002, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiResourcePath = -7003, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeLoadSamiLibraryFailed = -7004, + + /** + * + * @brief [音频技术](https: + */ + + ByteRTCWarningCodeInvaildSamiEffectType = -7005 +}; + +/** + * + * @type keytype + * @brief 发布状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublishState) { + /** + * + * @brief 发布成功 + */ + + ByteRTCPublishStatePublish = 0, + /** + * + * @brief 发布失败 + */ + + ByteRTCPublishStateUnpublish = 1 +}; + +/** + * + * @type keytype + * @brief 订阅状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeState) { + /** + * + * @brief 订阅成功 + */ + + ByteRTCSubscribeStateSubscribe = 0, + /** + * + * @brief 订阅失败 + */ + + ByteRTCSubscribeStateUnsubscribe = 1 +}; + +/** + * + * @type keytype + * @brief 发布状态变化原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublishStateChangeReason) { + /** + * + * @brief 用户调用发布 + */ + + ByteRTCPublishStateChangeReasonPublish = 0, + /** + * + * @brief 用户取消发布 + */ + + ByteRTCPublishStateChangeReasonUnpublish = 1, + /** + * + * @brief 发布 token 没有权限 + */ + + ByteRTCPublishStateChangeReasonNoPublishPermission = 2, + /** + * + * @brief 发布流总数超过上限 + */ + + ByteRTCPublishStateChangeReasonOverStreamPublishLimit = 3, + /** + * + * @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败 + */ + + ByteRTCPublishStateChangeReasonMultiRoomUnpublishFailed = 4, + /** + * + * @brief 服务器错误导致发布失败 + */ + + ByteRTCPublishStateChangeReasonPublishStreamFailed = 5, + /** + * + * @brief 观众尝试发布操作 + */ + + ByteRTCPublishStateChangeReasonPublishStreamForbidden = 6, + /** + * + * @brief 用户已经在其他房间发布过流,或者用户正在发布。 + */ + + ByteRTCPublishStateChangeReasonUserInPublish = 7, + /** + * + * @brief 其他用户发布了相同streamid的流,导致本端发布的流被踢掉 + */ + + ByteRTCPublishStateChangeReasonStreamPublishByOther = 8, + /** + * + * @brief 流 ID 无效 + */ + + ByteRTCPublishStateChangeReasonStreamIdInvalid = 9 +}; + +/** + * + * @type keytype + * @brief 订阅状态变化原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeStateChangeReason) { + /** + * + * @brief 本端调用订阅 + */ + + ByteRTCSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 本端取消订阅 + */ + + ByteRTCSubscribeStateChangeReasonUnsubscribe = 1, + /** + * + * @brief 远端发布流 + */ + + ByteRTCSubscribeStateChangeReasonRemotePublish = 2, + /** + * + * @brief 远端取消发布流 + */ + + ByteRTCSubscribeStateChangeReasonRemoteUnpublish = 3, + /** + * + * @brief 由于服务器错误导致订阅失败。SDK 会自动重试订阅 + */ + + ByteRTCSubscribeStateChangeReasonStreamFailed5xx = 4, + /** + * + * @brief 当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。 + */ + + ByteRTCSubscribeStateChangeReasonStreamFailed404 = 5, + /** + * + * @brief 当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。 + */ + + ByteRTCSubscribeStateChangeReasonOverStreamSubscribeLimit = 6, + /** + * + * @brief 用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。 + */ + + ByteRTCSubscribeStateChangeReasonNoSubscribePermission = 7 +}; + +/** + * + * @type keytype + * @brief 性能相关告警的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPerformanceAlarmReason) { + /** + * + * @brief 网络原因差,造成了发送性能回退。仅在开启发送性能回退时,会收到此原因。 + */ + + ByteRTCPerformanceAlarmReasonBandwidthFallback = 0, + /** + * + * @brief 网络性能恢复,发送性能回退恢复。仅在开启发送性能回退时,会收到此原因。 + */ + + ByteRTCPerformanceAlarmReasonBandwidthResumed = 1, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足,且已发生发送性能回退。 + */ + + ByteRTCPerformanceAlarmReasonFallback = 2, + /** + * + * @brief 如果未开启发送性能回退,收到此告警时,意味着性能不足已恢复;
    + * 如果开启了发送性能回退,收到此告警时,意味着性能不足已恢复,且已发生发送性能回退恢复。 + */ + + ByteRTCPerformanceAlarmReasonResumed = 3, +}; + +/** + * + * @type keytype + * @brief 性能回退的模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPerformanceAlarmMode) { + /** + * + * @brief 未开启发布性能回退 + */ + + ByteRTCPerformanceAlarmModeNormal = 0, + /** + * + * @brief 已开启发布性能回退 + */ + + ByteRTCPerformanceAlarmModeSimulcast = 1, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 设置引擎工作模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMode) { + /** + * + * @brief 通用模式,该模式下只能进行普通会议模式的语音通话,开启自动发布订阅。 + */ + + ByteRTCModeGeneral = 0, + /** + * + * @brief 游戏语音模式,该模式下关闭自动发布订阅,会按照游戏业务的策略进行主动发布订阅语音。 + */ + + ByteRTCModeLocalAudio = 1, +}; +/** + * + * @type keytype + * @brief 发布端音视频流回退选项 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCPublishFallbackOption) { + /** + * + * @brief 上行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + ByteRTCPublishFallbackOptionDisabled = 0, + /** + * + * @brief 上行网络不佳或设备性能不足时,发布的视频流会从大流到小流依次降级,直到与当前网络性能匹配,具体降级规则参看[性能回退](https: + */ + + ByteRTCPublishFallbackOptionSimulcast = 1, +}; + +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use RoomConfig in joinRoom API instead. + * @type keytype + * @brief 订阅模式选项。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSubscribeMode) { + /** + * + * @brief 自动订阅模式。SDK 会自动为你订阅房间中的每一路流。 + */ + + ByteRTCSubscribeModeAuto = 0, + /** + * + * @brief 手动订阅模式。SDK 不自动订阅房间内的音视频流。你应根据需要调用 `subscribeStream` 方法手动订阅其他用户发布的音视频流。 + */ + + ByteRTCSubscribeModeManual = 1 +}; +/** + * + * @type keytype + * @brief 订阅端音视频流回退选项。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSubscribeFallbackOption) { + /** + * + * @brief 下行网络不佳或设备性能不足时,不对音视频流作回退处理。默认设置。 + */ + + ByteRTCSubscribeFallbackOptionDisabled = 0, + /** + * + * @brief 下行网络不佳或设备性能不足时,对视频流做降级处理,具体降级规则参看[音视频流回退](https: + * 该设置仅对发布端调用 `enableSimulcastMode:` 开启发送多路流功能的情况生效。 + */ + + ByteRTCSubscribeFallbackOptionVideoStreamLow = 1, + /** + * + * @brief 下行网络不佳或设备性能不足时,先对视频流做回退处理。当网络状况不满足接收弱流时,则自动取消接收视频,仅接收音频。
    + * 该设置仅对发布端调用 `enableSimulcastMode:` 开启发送多路流功能的情况生效。 + */ + + ByteRTCSubscribeFallbackOptionAudioOnly = 2, +}; + +/** + * + * @type keytype + * @brief 远端用户优先级。在性能不足需要回退时,会先回退优先级低的用户的音视频流 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRemoteUserPriority) { + /** + * + * @brief 用户优先级为低,默认值 + */ + + ByteRTCRemoteUserPriorityLow = 0, + /** + * + * @brief 用户优先级为正常 + */ + + ByteRTCRemoteUserPriorityMedium = 100, + /** + * + * @brief 用户优先级为高 + */ + + ByteRTCRemoteUserPriorityHigh = 200, +}; + +/** + * + * @type keytype + * @brief 本地用户订阅的远端流触发回退策略的原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCFallbackOrRecoverReason) { + /** + * + * @brief 其他原因,非带宽和性能原因引起的回退或恢复。默认值 + */ + + ByteRTCFallbackOrRecoverReasonUnknown = -1, + /** + * + * @brief 由带宽不足导致的订阅端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeFallbackByBandwidth = 0, + /** + * + * @brief 由性能不足导致的订阅端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeFallbackByPerformance = 1, + /** + * + * @brief 由带宽恢复导致的订阅端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeRecoverByBandwidth = 2, + /** + * + * @brief 由性能恢复导致的订阅端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonSubscribeRecoverByPerformance = 3, + /** + * + * @brief 由带宽不足导致的发布端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonPublishFallbackByBandwidth = 4, + /** + * + * @brief 由性能不足导致的发布端音视频流回退。 + */ + + ByteRTCFallbackOrRecoverReasonPublishFallbackByPerformance = 5, + /** + * + * @brief 由带宽恢复导致的发布端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonPublishRecoverByBandwidth = 6, + /** + * + * @brief 由性能恢复导致的发布端音视频流恢复。 + */ + + ByteRTCFallbackOrRecoverReasonPublishRecoverByPerformance = 7, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalAudioStreamState) { + /** + * + * @brief 本地音频默认初始状态。
    + * 麦克风停止工作时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateStopped = 0, + /** + * + * @brief 本地音频录制设备启动成功。
    + * 采集到音频首帧时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateRecording = 1, + /** + * + * @brief 本地音频首帧编码成功。
    + * 音频首帧编码成功时回调该状态,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorOk + */ + + ByteRTCLocalAudioStreamStateEncoding = 2, + /** + * + * @brief 本地音频启动失败,在以下时机回调该状态:
    + * - 本地录音设备启动失败,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorRecordFailure + * - 检测到没有录音设备权限,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamErrorDeviceNoPermission + * - 音频编码失败,对应错误码 ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} 中的 ByteRTCLocalAudioStreamError + */ + + ByteRTCLocalAudioStreamStateFailed = 3, +}; + +/** + * + * @type keytype + * @brief 本地音频流状态改变时的错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalAudioStreamError) { + /** + * + * @brief 本地音频状态正常 + */ + + ByteRTCLocalAudioStreamErrorOk = 0, + /** + * + * @brief 本地音频出错原因未知 + */ + + ByteRTCLocalAudioStreamErrorFailure = 1, + /** + * + * @brief 没有权限启动本地音频录制设备 + */ + + ByteRTCLocalAudioStreamErrorDeviceNoPermission = 2, + /** + * + * @hidden currently not available + * @brief 本地音频录制设备已经在使用中 + * @note 该错误码暂未使用 + */ + + ByteRTCLocalAudioStreamErrorDeviceBusy = 3, + /** + * + * @brief 本地音频录制失败,建议你检查录制设备是否正常工作 + */ + + ByteRTCLocalAudioStreamErrorRecordFailure = 4, + /** + * + * @brief 本地音频编码失败 + */ + + ByteRTCLocalAudioStreamErrorEncodeFailure = 5, + /** + * + * @brief 没有可用的音频录制设备 + */ + + ByteRTCLocalAudioStreamErrorNoRecordingDevice = 6 +}; + +/** + * + * @type keytype + * @brief 本地视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoStreamState) { + /** + * + * @brief 本地视频默认初始状态
    + * 摄像头停止工作时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateStopped = 0, + /** + * + * @brief 本地视频录制设备启动成功
    + * 采集到视频首帧时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateRecording = 1, + /** + * + * @brief 本地视频首帧编码成功
    + * 本地视频首帧编码成功时回调该状态,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorOk + */ + + ByteRTCLocalVideoStreamStateEncoding = 2, + /** + * + * @brief 本地视频启动失败, 在以下时机回调该状态:
    + * - 本地采集设备启动失败,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorCaptureFailure + * - 检测到没有摄像头权限,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorDeviceNoPermission + * - 视频编码失败,对应错误码 ByteRTCLocalVideoStreamError{@link #ByteRTCLocalVideoStreamError} 中的 ByteRTCLocalVideoStreamErrorEncodeFailure + */ + + ByteRTCLocalVideoStreamStateFailed = 3, +}; + +/** + * + * @type keytype + * @brief 本地视频状态改变时的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoStreamError) { + /** + * + * @brief 本地视频状态正常(本地视频状态改变正常时默认返回值) + */ + + ByteRTCLocalVideoStreamErrorOk = 0, + /** + * + * @brief 本地视频流发布失败 + */ + + ByteRTCLocalVideoStreamErrorFailure = 1, + /** + * + * @brief 没有权限启动本地视频采集设备 + */ + + ByteRTCLocalVideoStreamErrorDeviceNoPermission = 2, + /** + * + * @brief 本地视频采集设备已被占用 + */ + + ByteRTCLocalVideoStreamErrorDeviceBusy = 3, + /** + * + * @brief 本地视频采集设备不存在或已移除 + */ + + ByteRTCLocalVideoStreamErrorDeviceNotFound = 4, + /** + * + * @brief 本地视频采集失败,建议检查采集设备是否正常工作 + */ + + ByteRTCLocalVideoStreamErrorCaptureFailure = 5, + /** + * + * @brief 本地视频编码失败 + */ + + ByteRTCLocalVideoStreamErrorEncodeFailure = 6, + /** + * + * @brief 通话过程中本地视频采集设备被其他程序抢占,导致设备连接中断 + */ + + ByteRTCLocalVideoStreamErrorDeviceDisconnected = 7, +}; + +/** + * + * @type keytype + * @brief 用户订阅的远端音频流状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteAudioState) { + /** + * + * @brief 远端音频流默认初始状态,在以下时机回调该状态:
    + * - 本地用户停止接收远端音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalMuted` + * - 远端用户停止发送音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteMuted` + * - 远端用户离开房间,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteOffline` + */ + + ByteRTCRemoteAudioStateStopped = 0, + /** + * + * @brief 开始接收远端音频流首包。 + */ + + ByteRTCRemoteAudioStateStarting = 1, + /** + * + * @brief 远端音频流正在解码,正常播放,在以下时机回调该状态:
    + * - 成功解码远端音频首帧,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalUnmuted` + * - 网络由阻塞恢复正常,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonNetworkRecovery` + * - 本地用户恢复接收远端音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonLocalUnmuted` + * - 远端用户恢复发送音频流,对应原因是 ByteRTCRemoteAudioStateChangeReason{@link #ByteRTCRemoteAudioStateChangeReason} 中的 `ByteRTCRemoteAudioStateChangeReasonRemoteUnmuted` + */ + + ByteRTCRemoteAudioStateDecoding = 2, + /** + * + * @brief 远端音频流卡顿。 + */ + + ByteRTCRemoteAudioStateFrozen = 3, + /** + * + * @hidden currently not available + * @brief 远端音频流播放失败 + * @note 该错误码暂未使用 + */ + + ByteRTCRemoteAudioStateFailed = 4, +}; + +/** + * + * @type keytype + * @brief 接收远端音频流状态改变的原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteAudioStateChangeReason) { + /** + * + * @brief 内部原因 + */ + + ByteRTCRemoteAudioStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + ByteRTCRemoteAudioStateChangeReasonNetworkCongestion = 1, + /** + * + * @brief 网络恢复正常 + */ + + ByteRTCRemoteAudioStateChangeReasonNetworkRecovery = 2, + /** + * + * @brief 本地用户停止接收远端音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonLocalMuted = 3, + /** + * + * @brief 本地用户恢复接收远端音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonLocalUnmuted = 4, + /** + * + * @brief 远端用户停止发送音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteMuted = 5, + /** + * + * @brief 远端用户恢复发送音频流 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteUnmuted = 6, + /** + * + * @brief 远端用户离开房间 + */ + + ByteRTCRemoteAudioStateChangeReasonRemoteOffline = 7, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoState) { + /** + * + * @brief 远端视频流默认初始状态, 在以下时机回调该状态:
    + * - 本地用户停止接收远端视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalMuted + * - 远端用户停止发送视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteMuted + * - 远端用户离开房间,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteOffline + */ + + ByteRTCRemoteVideoStateStopped = 0, + /** + * + * @brief 本地用户已接收远端视频首包
    + * 收到远端视频首包时回调该状态,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + */ + + ByteRTCRemoteVideoStateStarting = 1, + /** + * + * @brief 远端视频流正在解码,正常播放, 在以下时机回调该状态:
    + * - 成功解码远端视频首帧,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + * - 网络由阻塞恢复正常,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonNetworkRecovery + * - 本地用户恢复接收远端视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonLocalUnmuted + * - 远端用户恢复发送视频流,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonRemoteUnmuted + */ + + ByteRTCRemoteVideoStateDecoding = 2, + /** + * + * @brief 远端视频流卡顿
    + * 网络阻塞、丢包率等原因造成视频卡顿流时会回报该状态,对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonNetworkCongestion + */ + + ByteRTCRemoteVideoStateFrozen = 3, + /** + * + * @brief 远端视频流播放失败
    + * 如果内部处理远端视频流失败,则会回调该方法, 对应错误码 ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} 中的 ByteRTCRemoteVideoStateChangeReasonInternal + */ + + ByteRTCRemoteVideoStateFailed = 4, +}; + +/** + * + * @type keytype + * @brief 远端视频流状态改变的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoStateChangeReason) { + /** + * + * @brief 内部原因 + */ + + ByteRTCRemoteVideoStateChangeReasonInternal = 0, + /** + * + * @brief 网络阻塞 + */ + + ByteRTCRemoteVideoStateChangeReasonNetworkCongestion = 1, + /** + * + * @brief 网络恢复正常 + */ + + ByteRTCRemoteVideoStateChangeReasonNetworkRecovery = 2, + /** + * + * @brief 本地用户停止接收远端视频流或本地用户禁用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonLocalMuted = 3, + /** + * + * @brief 本地用户恢复接收远端视频流或本地用户启用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonLocalUnmuted = 4, + /** + * + * @brief 远端用户停止发送视频流或远端用户禁用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteMuted = 5, + /** + * + * @brief 远端用户恢复发送视频流或远端用户启用视频模块 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteUnmuted = 6, + /** + * + * @brief 远端用户离开房间 + */ + + ByteRTCRemoteVideoStateChangeReasonRemoteOffline = 7, +}; + +/** + * + * @type keytype + * @brief 当前媒体设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceType) { + /** + * + * @brief 未知音频设备 + */ + + ByteRTCMediaDeviceTypeAudioUnknown = -1, + /** + * + * @brief 音频渲染设备类型 + */ + + ByteRTCMediaDeviceTypeAudioRenderDevice = 0, + /** + * + * @brief 音频采集设备类型 + */ + + ByteRTCMediaDeviceTypeAudioCaptureDevice = 1, + /** + * + *@hidden currently not available + * @brief 视频渲染设备类型,该类型暂无使用 + */ + + ByteRTCMediaDeviceTypeVideoRenderDevice = 2, + /** + * + * @brief 视频采集设备类型 + */ + + ByteRTCMediaDeviceTypeVideoCaptureDevice = 3, + /** + * + * @brief 屏幕流视频设备 + */ + + ByteRTCMediaDeviceTypeScreenVideoCaptureDevice = 4, + /** + * + * @brief 屏幕流音频设备 + */ + + ByteRTCMediaDeviceTypeScreenAudioCaptureDevice = 5 +}; + +/** + * + * @type keytype + * @brief 媒体设备状态
    + * 通过 `rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:` 或 `rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:` 回调设备状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceState) { + /** + * + * @brief 设备已开启 + */ + + ByteRTCMediaDeviceStateStarted = 1, + /** + * + * @brief 设备已停止 + */ + + ByteRTCMediaDeviceStateStopped = 2, + /** + * + * @brief 设备运行时错误
    + * 例如,当媒体设备的预期行为是正常采集,但没有收到采集数据时,将回调该状态。 + */ + + ByteRTCMediaDeviceStateRuntimeError = 3, + /** + * + * @brief 设备已插入
    + * 你可以调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceStateAdded = 10, + /** + * + * @brief 设备被移除
    + * 你可以调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceStateRemoved = 11, + /** + * + * @brief 系统通话,锁屏或第三方应用打断了音视频通话。将在通话结束或第三方应用结束占用后自动恢复。 + */ + + ByteRTCMediaDeviceStateInterruptionBegan = 12, + /** + * + * @brief 音视频通话已从系统电话或第三方应用打断中恢复 + */ + + ByteRTCMediaDeviceStateInterruptionEnded = 13, + /** + * + * @hidden(iOS) + * @brief 获取设备列表超时后,收到设备列表通知。
    + * 再次调用获取设备接口更新设备列表。 + */ + + ByteRTCMediaDeviceListUpdated = 16, + +}; + +/** + * + * @type keytype + * @brief 媒体设备错误类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceError) { + /** + * + * @brief 媒体设备正常 + */ + + ByteRTCMediaDeviceErrorOK = 0, + /** + * + * @brief 没有权限启动媒体设备 + */ + + ByteRTCMediaDeviceErrorDeviceNoPermission = 1, + /** + * + * @brief 媒体设备已经在使用中 + */ + + ByteRTCMediaDeviceErrorDeviceBusy = 2, + /** + * + * @brief 媒体设备错误 + */ + + ByteRTCMediaDeviceErrorDeviceFailure = 3, + /** + * + * @brief 未找到指定的媒体设备 + */ + + ByteRTCMediaDeviceErrorDeviceNotFound = 4, + /** + * + * @brief 媒体设备被移除 + */ + + ByteRTCMediaDeviceErrorDeviceDisconnected = 5, + /** + * + * @brief 无采集数据。当媒体设备的预期行为是正常采集,但没有收到采集数据时,将收到该错误。 + */ + + ByteRTCMediaDeviceErrorDeviceNoCallback = 6, + /** + * + * @brief 设备采样率不支持 + */ + + ByteRTCMediaDeviceErrorUNSupportFormat = 7, + /** + * + * @hidden(macOS) + * @brief iOS 屏幕采集没有 group Id 参数 + */ + + ByteRTCMediaDeviceErrorNotFindGroupId = 8, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:因用户使用系统相机,应用切换到后台运行,导致采集中断。 + */ + + ByteRTCMediaDeviceErrorNotAvailableInBackground = 9, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:可能由于其他应用占用系统相机,导致视频设备暂时不可用,从而造成采集中断。 + */ + + ByteRTCMediaDeviceErrorVideoInUseByAnotherClient = 10, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:当前应用处于侧拉、分屏或者画中画模式时,导致采集中断。 + */ + + ByteRTCMediaDeviceErrorNotAvailableWithMultipleForegroundApps = 11, + /** + * + * @hidden(macOS) + * @brief 视频采集中断:由于系统性能不足导致中断,比如设备过热。 + */ + + ByteRTCMediaDeviceErrorNotAvailableDueToSystemPressure = 12, + /** + * + * @hidden(iOS) + * @brief 系统服务错误或长时间不响应,建议重启音频服务进程或重启设备。 + */ + + ByteRTCMediaDeviceErrorAudioServerNeedRestart = 13, +}; + +/** + * + * @type keytype + * @brief 媒体设备警告 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaDeviceWarning) { + /** + * + * @brief 无警告 + */ + + ByteRTCMediaDeviceWarningOK = 0, + /** + * + * @brief 非法设备操作。在使用外部设备时,调用了 SDK 内部设备 API。 + */ + + ByteRTCMediaDeviceWarningOperationDenied = 1, + /** + * + * @brief 采集到的数据为静音帧。 + */ + + ByteRTCMediaDeviceWarningCaptureSilence = 2, + + /** + * + * @hidden for internal use only + * @brief 音量过大,超过设备采集范围。建议降低麦克风音量或者降低声源音量。 + */ + + ByteRTCMediaDeviceWarningDetectClipping = 10, + /** + * + * @brief 通话中出现回声现象。
    + * 当 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 为 `ByteRTCRoomProfileMeeting` 和 `ByteRTCRoomProfileMeetingRoom` ,且 AEC 关闭时,SDK 自动启动回声检测,如果检测到回声问题,将通过 `rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:` 返回本枚举值。 + */ + + ByteRTCMediaDeviceWarningDetectLeakEcho = 11, + /** + * + * @hidden for internal use only + * @brief 低信噪比 + */ + + ByteRTCMediaDeviceWarningDetectLowSNR = 12, + /** + * + * @hidden for internal use only + * @brief 采集插零现象 + */ + + ByteRTCMediaDeviceWarningDetectInsertSilence = 13, + /** + * + * @hidden for internal use only + * @brief 设备采集静音 + */ + + ByteRTCMediaDeviceWarningCaptureDetectSilence = 14, + /** + * + * @hidden for internal use only + * @brief 设备采集静音消失 + */ + + ByteRTCMediaDeviceWarningCaptureDetectSilenceDisappear = 15, + /** + * + * @brief 啸叫。触发该回调的情况如下:1)不支持啸叫抑制的房间模式下,检测到啸叫;2)支持啸叫抑制的房间模式下,检测到未被抑制的啸叫。
    + * 仅 ByteRTCRoomProfileCommunication、ByteRTCRoomProfileMeeting、ByteRTCRoomProfileMeetingRoom 三种房间模式支持啸叫抑制。
    + * 建议提醒用户检查客户端的距离或将麦克风和扬声器调至静音。 + */ + + ByteRTCMediaDeviceWarningCaptureDetectHowling = 16, + /** + * + * @hidden(macOS) + * @brief 当前 AudioScenario 不支持更改音频路由,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteInvalidScenario = 20, + /** + * + * @hidden(macOS) + * @brief 音频设备不存在,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteNotExists = 21, + /** + * + * @hidden(macOS) + * @brief 音频路由被系统或其他应用占用,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteFailedByPriority = 22, + /** + * + * @hidden(macOS) + * @brief 当前非通话模式 ByteRTCAudioScenarioCommunication,不支持设置音频路由 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteNotVoipMode = 23, + /** + * + * @hidden(macOS) + * @brief 音频设备未启动,设置音频路由失败 + */ + + ByteRTCMediaDeviceWarningSetAudioRouteDeviceNotStart = 24, + /** + * + * @hidden(macOS) + * @brief 非纯媒体音频场景,此时不支持切换蓝牙传输协议。待切换至纯媒体音频场景后生效。 + */ + + ByteRTCMediaDeviceWarningSetBluetoothModeScenarioUnsupport = 25, + /** + * + * @hidden(macOS) + * @brief 当前不支持设置 HFP。 + */ + + ByteRTCMediaDeviceWarningSetBluetoothModeUnsupport = 26 +}; + +/** + * + * @type keytype + * @brief 音视频质量反馈问题类型 + */ + +typedef NS_OPTIONS(uint64_t, ByteRTCProblemFeedbackOption) { + /** + * + * @brief 没有问题 + */ + + ByteRTCProblemFeedbackOptionNone = 0, + /** + * + * @brief 其他问题 + */ + + ByteRTCProblemFeedbackOptionOtherMessage = (1ULL << 0), + /** + * + * @brief 连接失败 + */ + + ByteRTCProblemFeedbackOptionDisconnected = (1ULL << 1), + /** + * + * @brief 耳返延迟大 + */ + + ByteRTCProblemFeedbackOptionEarBackDelay = (1ULL << 2), + /** + * + * @brief 本端有杂音 + */ + + ByteRTCProblemFeedbackOptionLocalNoise = (1ULL << 10), + /** + * + * @brief 本端声音卡顿 + */ + + ByteRTCProblemFeedbackOptionLocalAudioLagging = (1ULL << 11), + /** + * + * @brief 本端无声音 + */ + + ByteRTCProblemFeedbackOptionLocalNoAudio = (1ULL << 12), + /** + * + * @brief 本端声音大/小 + */ + + ByteRTCProblemFeedbackOptionLocalAudioStrength = (1ULL << 13), + /** + * + * @brief 本端有回声 + */ + + ByteRTCProblemFeedbackOptionLocalEcho = (1ULL << 14), + /** + * + * @brief 本端视频模糊 + */ + + ByteRTCProblemFeedbackOptionLocalVideoFuzzy = (1ULL << 24), + /** + * + * @brief 本端音视频不同步 + */ + + ByteRTCProblemFeedbackOptionLocalNotSync = (1ULL << 25), + /** + * + * @brief 本端视频卡顿 + */ + + ByteRTCProblemFeedbackOptionLocalVideoLagging = (1ULL << 26), + /** + * + * @brief 本端无画面 + */ + + ByteRTCProblemFeedbackOptionLocalNoVideo = (1ULL << 27), + /** + * + * @brief 远端有杂音 + */ + + ByteRTCProblemFeedbackOptionRemoteNoise = (1ULL << 37), + /** + * + * @brief 远端声音卡顿 + */ + + ByteRTCProblemFeedbackOptionRemoteAudioLagging = (1ULL << 38), + /** + * + * @brief 远端无声音 + */ + + ByteRTCProblemFeedbackOptionRemoteNoAudio = (1ULL << 39), + /** + * + * @brief 远端声音大/小 + */ + + ByteRTCProblemFeedbackOptionRemoteAudioStrength = (1ULL << 40), + /** + * + * @brief 远端有回声 + */ + + ByteRTCProblemFeedbackOptionRemoteEcho = (1ULL << 41), + /** + * + * @brief 远端视频模糊 + */ + + ByteRTCProblemFeedbackOptionRemoteVideoFuzzy = (1ULL << 51), + /** + * + * @brief 远端音视频不同步 + */ + + ByteRTCProblemFeedbackOptionRemoteNotSync = (1ULL << 52), + /** + * + * @brief 远端视频卡顿 + */ + + ByteRTCProblemFeedbackOptionRemoteVideoLagging = (1ULL << 53), + /** + * + * @brief 远端无画面 + */ + + ByteRTCProblemFeedbackOptionRemoteNoVideo = (1ULL << 54) +}; + +/** + * + * @type keytype + * @brief 通话质量反馈房间信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCProblemFeedbackRoomInfo: NSObject + /** + * + * @brief 通话质量反馈的房间 ID + */ + + @property(nonatomic, copy) NSString * _Nonnull roomId; + + /** + * + * @brief 通话质量反馈的用户 ID + */ + + @property(nonatomic, copy) NSString * _Nonnull userId; +@end + +/** + * + * @type keytype + * @brief 通话质量反馈信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCProblemFeedbackInfo: NSObject + /** + * + * @brief 通话质量反馈的文字描述 + */ + + @property(nonatomic, copy) NSString * _Nonnull problemDesc; + + /** + * + * @brief 通话质量反馈的房间信息。参看 ByteRTCProblemFeedbackRoomInfo{@link #ByteRTCProblemFeedbackRoomInfo}。 + */ + + @property(nonatomic, strong) NSArray * _Nullable roomInfo; + +@end + +/** + * + * @type keytype + * @brief 首帧发送状态 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFirstFrameSendState) { + /** + * + * @brief 发送中 + */ + + ByteRTCFirstFrameSendStateSending = 0, + /** + * + * @brief 发送成功 + */ + + ByteRTCFirstFrameSendStateSent = 1, + /** + * + * @brief 发送失败 + */ + + ByteRTCFirstFrameSendStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 首帧播放状态 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFirstFramePlayState) { + /** + * + * @brief 播放中 + */ + + ByteRTCFirstFramePlayStatePlaying = 0, + /** + * + * @brief 播放成功 + */ + + ByteRTCFirstFramePlayStatePlay = 1, + /** + * + * @brief 播放失败 + */ + + ByteRTCFirstFramePlayStateEnd = 2, +}; + +/** + * + * @type keytype + * @brief 自定义加密类型 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCEncryptType) { + /** + * + * @brief 不使用内置加密。默认值。 + */ + + ByteRTCEncryptTypeCustomize = 0, + /** + * + * @brief AES-128-CBC 加密算法 + */ + + ByteRTCEncryptTypeAES128CBC = 1, + /** + * + * @brief AES-256-CBC 加密算法 + */ + + ByteRTCEncryptTypeAES256CBC = 2, + /** + * + * @brief AES-128-ECB 加密算法 + */ + + ByteRTCEncryptTypeAES128ECB = 3, + /** + * + * @brief AES-256-ECB 加密算法 + */ + + ByteRTCEncryptTypeAES256ECB = 4 +}; + +/** + * + * @type keytype + * @brief 视频编码类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCodecType) { + /** + * + * @brief 未知类型 + */ + + ByteRTCVideoCodecTypeUnknown = 0, + /** + * + * @brief 标准 H264 编码格式 + */ + + ByteRTCVideoCodecTypeH264 = 1, + /** + * + * @brief ByteVC1 编码器 + */ + + ByteRTCVideoCodecTypeByteVC1 = 2, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSuperResolutionMode) { + /** + * + * @brief 关闭超分。 + */ + + ByteRTCVideoSuperResolutionModeOff = 0, + /** + * + * @brief 开启超分。 + */ + + ByteRTCVideoSuperResolutionModeOn = 1, +}; + +/** + * + * @hidden(macOS) for internal use + * @type keytype + * @brief 视频降噪模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDenoiseMode) { + /** + * + * @brief 视频降噪关闭。 + */ + + ByteRTCVideoDenoiseModeOff = 0, + /** + * + * @brief 视频降噪开启,由 ByteRTC 后台配置视频降噪算法。 + */ + + ByteRTCVideoDenoiseModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 音视频流的发送/播放状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMuteState) { + /** + * + * @brief 发送 + */ + + ByteRTCMuteStateOff = 0, + /** + * + * @brief 停止发送 + */ + + ByteRTCMuteStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 黑帧视频流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSEIStreamEventType) { + /** + * + * @brief 远端用户发布黑帧视频流。
    + * 纯语音通话场景下,远端用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 发送 SEI 数据时,SDK 会自动发布一路黑帧视频流,并触发该回调。 + */ + + ByteRTCSEIStreamEventTypeStreamAdd = 0, + /** + * + * @brief 远端黑帧视频流移除。该回调的触发时机包括:
    + * - 远端用户开启摄像头采集,由语音通话切换至视频通话,黑帧视频流停止发布; + * - 远端用户调用 sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} 后 1min 内未有 SEI 数据发送,黑帧视频流停止发布; + * - 远端用户调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 切换至自定义视频采集时,黑帧视频流停止发布。 + */ + + ByteRTCSEIStreamEventTypeStreamRemove = 1, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamIndex) { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的视频/音频; + * - 通过自定义采集,采集到的视频/音频。 + */ + + ByteRTCStreamIndexMain = 0, + /** + * + * @hidden for internal use only + * @brief 屏幕流。屏幕共享时共享的视频流,或来自声卡的本地播放音频流。 + */ + + ByteRTCStreamIndexScreen = 1, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex3rd, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex4th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex5th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex6th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndex7th, + /** + * + * @hidden for internal use only + */ + + ByteRTCStreamIndexMax, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 人声检测结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioVADType) { + /** + * + * @brief 未检测到人声 + */ + + ByteRTCAudioVADTypeNoSpeech = 0, + /** + * + * @brief 检测到人声。 + */ + + ByteRTCAudioVADTypeSpeech = 1, +}; + +/** + * + * @valid since 3.56 + * @type keytype + * @brief 流聚合策略 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAggregationOption) { + /** + * + * @brief 流聚合向下取值 (默认策略) + */ + + ByteRTCAggregationOptionMin = 0, + /** + * + * @brief 流聚合向上取值 + */ + + ByteRTCAggregationOptionMax = 1, + /** + * + * @brief 流聚合按比例取值,比例相同时,向下取值 + */ + + ByteRTCAggregationOptionMajority = 2 +}; + +/** + * + * @type keytype + * @brief 媒体流信息同步的流类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSyncInfoStreamType) { + /** + * + * @brief 音频流 + */ + + ByteRTCSyncInfoStreamTypeAudio = 0 +}; + +/** + * + * @type keytype + * @brief 颜色空间 + */ + +typedef NS_ENUM(NSInteger, ByteRTCColorSpace) { + /** + * + * @brief 未知的颜色空间,默认使用 kColorSpaceYCbCrBT601LimitedRange 颜色空间 + */ + + ByteRTCColorSpaceUnknown = 0, + /** + * + * @brief BT.601 数字编码标准,颜色空间[16-235] + */ + + ByteRTCColorSpaceYCbCrBT601LimitedRange = 1, + /** + * + * @brief BT.601 数字编码标准,颜色空间[0-255] + */ + + ByteRTCColorSpaceYCbCrBT601FullRange = 2, + /** + * + * @brief BT.7091 数字编码标准,颜色空间[16-235] + */ + + ByteRTCColorSpaceYCbCrBT709LimitedRange = 3, + /** + * + * @brief BT.7091 数字编码标准,颜色空间[0-255] + */ + + ByteRTCColorSpaceYCbCrBT709FullRange = 4 +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamState) { + /** + * + * @brief 空闲状态
    + * - 成功调用 `stopForwardStreamToRooms` 后,所有目标房间为空闲状态。 + * - 成功调用 `updateForwardStreamToRooms` 减少目标房间后,本次减少的目标房间为空闲状态。 + */ + + ByteRTCForwardStreamStateIdle = 0, + /** + * + * @brief 开始转发
    + * - 调用 `startForwardStreamToRooms` 成功向所有房间开始转发媒体流后,返回此状态。 + * - 调用 `updateForwardStreamToRooms` 后,成功向新增目标房间开始转发媒体流后,返回此状态。 + */ + + ByteRTCForwardStreamStateSuccess = 1, + /** + * + * @brief 转发失败,失败详情参考 ByteRTCForwardStreamError{@link #ByteRTCForwardStreamError}
    + * 调用 `startForwardStreamToRooms` 或 `updateForwardStreamToRooms` 后,如遇转发失败,返回此状态。 + */ + + ByteRTCForwardStreamStateFailure = 2, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发过程中抛出的错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamError) { + /** + * + * @brief 正常 + */ + + ByteRTCForwardStreamErrorOK = 0, + /** + * + * @brief 参数异常 + */ + + ByteRTCForwardStreamErrorInvalidArgument = 1201, + /** + * + * @brief Token 错误 + */ + + ByteRTCForwardStreamErrorInvalidToken = 1202, + /** + * + * @brief 服务端异常 + */ + + ByteRTCForwardStreamErrorResponse = 1203, + /** + * + * @brief 目标房间有相同 user id 的用户加入,转发中断 + */ + + ByteRTCForwardStreamErrorRemoteKicked = 1204, + /** + * + * @brief 服务端不支持转发功能 + */ + + ByteRTCForwardStreamErrorNotSupport = 1205, +}; + +/** + * + * @type keytype + * @brief 媒体流跨房间转发事件 + */ + +typedef NS_ENUM(NSInteger, ByteRTCForwardStreamEvent) { + /** + * + * @brief 本端与服务器网络连接断开,暂停转发。 + */ + + ByteRTCForwardStreamEventDisconnected = 0, + /** + * + * @brief 本端与服务器网络连接恢复,转发服务连接成功。 + */ + + ByteRTCForwardStreamEventConnected = 1, + /** + * + * @brief 转发中断。转发过程中,如果相同 user_id 的用户进入目标房间,转发中断。 + */ + + ByteRTCForwardStreamEventInterrupt = 2, + /** + * + * @brief 目标房间已更新,由 `updateForwardStreamToRooms` 触发。 + */ + + ByteRTCForwardStreamEventDstRoomUpdated = 3, + /** + * + * @brief API 调用时序错误。例如,在调用 `startForwardStreamToRooms` 之前调用 `updateForwardStreamToRooms` 。 + */ + + ByteRTCForwardStreamEventUnExpectAPICall = 4, +}; + +/** + * + * @type keytype + * @brief 本地录制的状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingState) { + /** + * + * @brief 录制异常 + */ + + ByteRTCRecordingStateError = 0, + /** + * + * @brief 录制进行中 + */ + + ByteRTCRecordingStateProcessing = 1, + /** + * + * @brief 录制文件保存成功。调用 stopFileRecording 结束录制之后会收到该状态码。或者在 stopFileRecording 之前编码分辨率发生了变化同样会回调该状态码,且 SDK内部会自动重启录制产生新的录制文件直到调用 stopFileRecording + */ + + ByteRTCRecordingStateSuccess = 2, +}; + +/** + * + * @type keytype + * @brief 本地录制错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingErrorCode) { + /** + * + * @brief 录制正常 + */ + + ByteRTCRecordingErrorCodeOk = 0, + /** + * + * @brief 没有文件写权限 + */ + + ByteRTCRecordingErrorCodeNoPermission = -1, + /** + * + * @brief 当前版本 SDK 不支持本地录制功能,请联系技术支持人员 + */ + + ByteRTCRecordingErrorCodeNotSupport = -2, + /** + * + * @brief 其他异常 + */ + + ByteRTCRecordingErrorCodeOther = -3, +}; + +/** + * + * @type keytype + * @brief 本地录制文件的存储格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingFileType) { + /** + * + * @brief aac 格式文件 + */ + + ByteRTCRecordingFileTypeAAC = 0, + /** + * + * @brief mp4 格式文件 + */ + + ByteRTCRecordingFileTypeMP4 = 1, +}; + +/** + * + * @type keytype + * @brief 音视频同步状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAVSyncState) { + /** + * + * @brief 音视频开始同步 + */ + + ByteRTCAVSyncStateAVStreamSyncBegin = 0, + /** + * + * @brief 音视频同步过程中音频移除,但不影响当前的同步关系 + */ + + ByteRTCAVSyncStateAudioStreamRemove = 1, + /** + * + * @brief 音视频同步过程中视频移除,但不影响当前的同步关系 + */ + + ByteRTCAVSyncStateVideoStreamRemove = 2, + /** + * + * @hidden for internal use only + * @brief 订阅端设置同步 + */ + + ByteRTCAVSyncStateSetAVSyncStreamId = 3, +}; + +/** + * + * @type keytype + * @brief AVSync 事件类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAVSyncEvent) { + /** + * + * @brief 音视频同步失败。
    + * 当前音频源已与其他视频源关联同步关系。
    + * 单个音频源不支持与多个视频源同时同步。 + */ + + ByteRTCAVSyncEventInvalidUidRepeated = 0, +}; +/** + * + * @type keytype + * @brief 音视频回路测试结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEchoTestResult) { + /** + * + * @brief 接收到采集的音视频的回放,通话回路检测成功 + */ + + ByteRTCEchoTestResultSuccess = 0, + /** + * + * @brief 测试超过 60s 仍未完成,已自动停止 + */ + + ByteRTCEchoTestResultTimeout = 1, + /** + * + * @brief 上一次测试结束和下一次测试开始之间的时间间隔少于 5s + */ + + ByteRTCEchoTestResultIntervalShort = 2, + /** + * + * @brief 音频采集异常 + */ + + ByteRTCEchoTestResultAudioDeviceError = 3, + /** + * + * @brief 视频采集异常 + */ + + ByteRTCEchoTestResultVideoDeviceError = 4, + /** + * + * @brief 音频接收异常 + */ + + ByteRTCEchoTestResultAudioReceiveError = 5, + /** + * + * @brief 视频接收异常 + */ + + ByteRTCEchoTestResultVideoReceiveError = 6, + /** + * + * @brief 内部错误,不可恢复 + */ + + ByteRTCEchoTestResultInternalError = 7 +}; + +/** + * + * @deprecated since 3.60, see rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:}. + * @type errorcode + * @brief WTN 流状态码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPublicStreamErrorCode) { + /** + * + * @brief 发布或订阅成功。 + */ + + ByteRTCPublicStreamErrorCodeSuccess = 0, + /** + * + * @brief WTN 流的参数异常,请修改参数后重试。 + */ + + ByteRTCPublicStreamErrorCodePushParamError = 1191, + /** + * + * @brief 服务端状态异常,将自动重试。 + */ + + ByteRTCPublicStreamErrorCodePushStatusError = 1192, + /** + * + * @brief 内部错误,不可恢复,请重试。 + */ + + ByteRTCPublicStreamErrorCodePushInternalError = 1193, + /** + * + * @brief 发布失败,将自动重试,请关注重试结果。 + */ + + ByteRTCPublicStreamErrorCodePushError = 1195, + /** + * + * @brief 发布失败,10 s 后会重试,重试 3 次后自动停止。 + */ + + ByteRTCPublicStreamErrorCodePushTimeOut = 1196, + /** + * + * @brief 订阅失败,发布端未开始发布流。 + */ + + ByteRTCPublicStreamErrorCodePullNoPushStream = 1300, +}; +/** + * + * @type keytype + * @brief 蓝牙传输协议。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCBluetoothMode) { + /** + * + * @brief 默认采用 auto 模式,具体如下:
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    场景 HFP A2DP
    纯通话场景 蓝牙设备支持 HFP 蓝牙设备不支持 HFP
    纯媒体场景 使用蓝牙设备采集播放音频 使用 iOS 设备采集音频,蓝牙设备播放音频
    + */ + + ByteRTCBluetoothModeAuto = 0, + + /** + * + * @brief 高级音频分配配置文件(A2DP)。立体声、高音质。采用 iOS 设备进行音频采集,蓝牙设备进行播放。 + */ + + ByteRTCBluetoothModeA2DP = 1, + + /** + * + * @brief 免提配置文件(HFP)。单声道、普通音质。音频采集和播放设备都使用蓝牙设备。 + */ + + ByteRTCBluetoothModeHFP = 2 +}; +/** + * + * @type keytype + * @brief 音视频回路测试参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEchoTestConfig : NSObject +/** + * + * @brief 用于渲染接收到的视频的视图 + */ + +@property(strong, nonatomic) ByteRTCView* _Nullable view; +/** + * + * @brief 测试用户加入的房间 ID。 + */ + +@property(copy, nonatomic) NSString *_Nonnull roomId; +/** + * + * @brief 进行音视频通话回路测试的用户 ID + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 对用户进房时进行鉴权验证的动态密钥,用于保证音视频通话回路测试的安全性。 + */ + +@property(copy, nonatomic) NSString *_Nonnull token; +/** + * + * @brief 是否检测音频。检测设备为系统默认音频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备麦克风会自动开启,并在 audioReportInterval 值大于 0 时触发 `onLocalAudioPropertiesReport` 回调,你可以根据该回调判断麦克风的工作状态 + * - 若使用自定义采集,此时你需调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 将采集到的音频推送给 SDK + * - false:否 + */ + +@property(assign, nonatomic) BOOL enableAudio; +/** + * + * @brief 是否检测视频。PC 端默认检测列表中第一个视频设备。
    + * - true:是 + * - 若使用 SDK 内部采集,此时设备摄像头会自动开启 + * - 若使用自定义采集,此时你需调用 pushExternalVideoFrame:{@link #ByteRTCEngine#pushExternalVideoFrame:} 将采集到的视频推送给 SDK + * - false:否 + * 视频的发布参数固定为:分辨率 640px × 360px,帧率 15fps。 + */ + +@property(assign, nonatomic) BOOL enableVideo; +/** + * + * @brief 音量信息提示间隔,单位:ms,默认为 100ms
    + * - `<= 0`: 关闭信息提示 + * - `(0,100]`: 开启信息提示,不合法的 interval 值,SDK 自动设置为 100ms + * - `> 100`: 开启信息提示,并将信息提示间隔设置为此值 + */ + +@property(assign, nonatomic) NSInteger audioReportInterval; +@end + +/** + * + * @type keytype + * @brief 用户信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCUserInfo : NSObject +/** + * + * @brief 用户 ID。该字符串符合正则表达式:`[a-zA-Z0-9_@\-\.]{1,128}`。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 用户需要透传的额外的信息,字符长度限制为 200 字节。会在 `rtcRoom:onUserJoined:` 中回调给远端用户。 + */ + +@property(copy, nonatomic) NSString *_Nonnull extraInfo; +@end + +/** + * + * @type keytype + * @brief 房间通话统计数据,统计周期为 2s 。
    + * 用户进房成功后,SDK 会周期性地通过 `onRoomStats` 回调通知用户当前房间内的汇总统计信息。此数据结构即为回调给用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomStats : NSObject +/** +* + * @brief 本地用户在本次通话中的参与时长,单位为 s + */ + +@property(assign, nonatomic) NSInteger duration; +/** + * + * @brief 本地用户的总发送字节数 (bytes),累计值 + */ + +@property(assign, nonatomic) NSInteger txBytes; +/** + * + * @brief 本地用户的总接收字节数 (bytes),累计值 + */ + +@property(assign, nonatomic) NSInteger rxBytes; +/** + * + * @brief 发送码率(kbps),获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger txKbitrate; +/** + * + * @brief 接收码率(kbps),获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxKbitrate; +/** + * + * @brief 本地用户的音频发送码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger txAudioKBitrate; +/** + * + * @brief 本地用户的音频接收码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxAudioKBitrate; +/** + * + * @brief 本地用户的视频发送码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger txVideoKBitrate; +/** + * + * @brief 本地用户的视频接收码率 (kbps),瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxVideoKBitrate; +/** + * + * @brief 屏幕发送码率,获取该数据时的瞬时值,单位为 Kbps + */ + +@property(assign, nonatomic) NSInteger txScreenKBitrate; +/** + * + * @brief 屏幕接收码率,获取该数据时的瞬时值,单位为 Kbps + */ + +@property(assign, nonatomic) NSInteger rxScreenKBitrate; +/** + * + * @brief 当前房间内的可见用户人数,包括本地用户自身 + */ + +@property(assign, nonatomic) NSInteger userCount; +/** + * + * @brief App 现在的下行丢包率 + */ + +@property(assign, nonatomic) float rxLostrate; +/** + * + * @brief App 现在的上行丢包率 + */ + +@property(assign, nonatomic) float txLostrate; +/** + * + * @brief 客户端到服务端的往返时延 + */ + +@property(assign, nonatomic) NSInteger rtt; + + + + + + + + + + + + + + + + + + + + + + + +/** + * + * @hidden currently not available + * @brief 系统上行网络抖动(ms) + */ + +@property(assign, nonatomic) NSInteger txJitter; +/** + * + * @hidden currently not available + * @brief 系统下行网络抖动(ms) + */ + +@property(assign, nonatomic) NSInteger rxJitter; +/** + * + * @brief 蜂窝路径发送的码率 (kbps),为获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger txCellularKBitrate; +/** + * + * @brief 蜂窝路径接收码率 (kbps),为获取该数据时的瞬时值 + */ + +@property(assign, nonatomic) NSInteger rxCellularKBitrate; +@end + +/** + * + * @type keytype + * @brief 本地视频流统计信息,统计周期为 2s 。
    + * 本地用户发布视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的视频流在此次统计周期内的发送状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalVideoStats : NSObject +/** + * + * @brief 发送码率。此次统计周期内实际发送的分辨率最大的视频流的发送码率,单位为 Kbps + */ + +@property(assign, nonatomic) float sentKBitrate; +/** + * + * @brief 采集帧率。此次统计周期内的视频采集帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger inputFrameRate; +/** + * + * @brief 发送帧率。此次统计周期内实际发送的分辨率最大的视频流的视频发送帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger sentFrameRate; +/** + * + * @brief 编码器输出帧率。当前编码器在此次统计周期内实际发送的分辨率最大的视频流的输出帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger encoderOutputFrameRate; +/** + * + * @brief 本地渲染帧率。此次统计周期内的本地视频渲染帧率,单位为 fps 。 + */ + +@property(assign, nonatomic) NSInteger rendererOutputFrameRate; +/** + * + * @brief 统计间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 视频丢包率。统计周期内的视频上行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float videoLossRate; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 视频编码码率。此次统计周期内的实际发送的分辨率最大的视频流视频编码码率,单位为 Kbps 。 + */ + +@property(assign, nonatomic) NSInteger encodedBitrate; +/** + * + * @brief 实际发送的分辨率最大的视频流的视频编码宽度,单位为 px 。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameWidth; +/** + * + * @brief 实际发送的分辨率最大的视频流的视频编码高度,单位为 px 。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameHeight; +/** + * + * @brief 此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数。 + */ + +@property(assign, nonatomic) NSInteger encodedFrameCount; +/** + * + * @brief 编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} 类型。 + */ + +@property(nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +/** + * + * @brief 视频上行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @hidden(macOS) + * @brief 视频降噪模式。具体参看 ByteRTCVideoDenoiseMode{@link #ByteRTCVideoDenoiseMode} 。 + */ + +@property(assign, nonatomic) ByteRTCVideoDenoiseMode videoDenoiseMode; +@end + +/** + * + * @type keytype + * @brief 远端视频流统计信息,统计周期为 2s 。
    + * 本地用户订阅远端视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoStats : NSObject +/** + * + * @brief 远端视频宽度。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 远端视频高度。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 远端视频丢包率。统计周期内的视频下行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float videoLossRate; +/** + * + * @brief 接收码率。统计周期内的视频接收码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float receivedKBitrate; +/** + * + * @brief 远端视频接收帧率。 + */ + +@property(assign, nonatomic) NSInteger receivedFrameRate; +/** + * + * @brief 远端视频解码输出帧率。 + */ + +@property(assign, nonatomic) NSInteger decoderOutputFrameRate; +/** + * + * @brief 远端视频渲染输出帧率。 + */ + +@property(assign, nonatomic) NSInteger renderOutputFrameRate; +/** + * + * @brief 远端视频卡顿次数。 + */ + +@property(assign, nonatomic) NSInteger stallCount; +/** + * + * @brief 远端视频卡顿时长,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger stallDuration; +/** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger e2eDelay; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +/** + * + * @brief 统计间隔,此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,目前设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 远端用户在进房后发生视频卡顿的累计时长占视频总有效时长的百分比(%)。视频有效时长是指远端用户进房发布视频流后,除停止发送视频流和禁用视频模块之外的视频时长。 + */ + +@property(assign, nonatomic) NSInteger frozenRate; +/** + * + * @brief 编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} 类型。 + */ + +@property(nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief SDK 订阅的远端视频流的分辨率下标。 + */ + +@property(assign, nonatomic) NSInteger videoIndex; +/** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @hidden for internal use only + * @brief 远端视频超分模式,参看 ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}。 + */ + +@property(assign, nonatomic) ByteRTCVideoSuperResolutionMode superResolutionMode; +/** + * + * @brief 用户体验级别的端到端延时。从发送端开始采集到接收端渲染完成的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger capToRenderDelay; +/** + * + * @brief 音画同步差异,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger avSyncDiffMs; +/** + * + * @brief 视频解码平均耗时,单位 ms。 + */ + +@property(assign, nonatomic) NSInteger codecElapsePerFrame; +@end + +/** + * + * @type keytype + * @brief 本地音频流统计信息,统计周期为 2s 。
    + * 本地用户发布音频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的音频流在此次统计周期内的发送状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalAudioStats : NSObject +/** + * + * @brief 音频丢包率。此次统计周期内的音频上行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float audioLossRate; +/** + * + * @brief 发送的码率。此次统计周期内的音频发送码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float sentKBitrate; +/** + * + * @brief 采集采样率。此次统计周期内的音频采集采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger recordSampleRate; +/** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。
    + * 此字段用于设置回调的统计周期,默认设置为 2s 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 音频声道数。 + */ + +@property(assign, nonatomic) NSInteger numChannels; +/** + * + * @brief 音频发送采样率。此次统计周期内的音频发送采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger sentSampleRate; +/** + * + * @brief 音频上行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @brief 音频设备的采集和播放延时,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger audioDeviceLoopDelay; +/** + * + * @brief 音频编码帧率。 + */ + +@property(assign, nonatomic) double encodeFrameRate; +@end + +/** + * + * @type keytype + * @brief 远端音频流统计信息,统计周期为 2s 。
    + * 本地用户订阅远端音频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的音频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteAudioStats : NSObject +/** + * + * @brief 音频丢包率。统计周期内的音频下行丢包率,取值范围为 [0, 1] 。 + */ + +@property(assign, nonatomic) float audioLossRate; +/** + * + * @brief 接收码率。统计周期内的音频接收码率,单位为 kbps 。 + */ + +@property(assign, nonatomic) float receivedKBitrate; +/** + * + * @brief 音频卡顿次数。统计周期内的卡顿次数。 + */ + +@property(assign, nonatomic) NSInteger stallCount; +/** + * + * @brief 音频卡顿时长。统计周期内的卡顿时长,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger stallDuration; +/** + * + * @brief 播放采样率。统计周期内的音频播放采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger playoutSampleRate; +/** + * + * @brief 用户体验级别的端到端延时。从发送端采集完成编码开始到接收端解码完成渲染开始的延时,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger e2eDelay; +/** + * + * @brief 统计间隔。此次统计周期的间隔,单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger statsInterval; +/** + * + * @brief 客户端到服务端数据传输的往返时延,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger rtt; +/** + * + * @brief 发送端——服务端——接收端全链路数据传输往返时延。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger totalRtt; +/** + * + * @brief 远端用户发送的音频流质量。值含义参考 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} 。 + */ + +@property(assign, nonatomic) NSInteger quality; +/** + * + * @brief 因引入 jitter buffer 机制导致的延时。单位为 ms 。 + */ + +@property(assign, nonatomic) NSInteger jitterBufferDelay; +/** + * + * @brief 音频声道数。 + */ + +@property(assign, nonatomic) NSInteger numChannels; +/** + * + * @brief 音频接收采样率。统计周期内接收到的远端音频采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger receivedSampleRate; +/** + * + * @brief 远端用户在加入房间后发生音频卡顿的累计时长占音频总有效时长的百分比。音频有效时长是指远端用户进房发布音频流后,除停止发送音频流和禁用音频模块之外的音频时长。 + */ + +@property(assign, nonatomic) NSInteger frozenRate; +/** + * + * @brief 音频 PLC 样点总个数。 + */ + +@property(assign, nonatomic) NSInteger concealedSamples; +/** + * + * @brief 音频丢包补偿(PLC) 累计次数。 + */ + +@property(assign, nonatomic) NSInteger concealmentEvent; +/** + * + * @brief 音频解码采样率。统计周期内的音频解码采样率信息,单位为 Hz 。 + */ + +@property(assign, nonatomic) NSInteger decSampleRate; +/** + * + * @brief 此次订阅中,对远端音频流进行解码的累计耗时。单位为 s。 + */ + +@property(assign, nonatomic) NSInteger decDuration; +/** + * + * @brief 视频下行网络抖动,单位为 ms。 + */ + +@property(assign, nonatomic) NSInteger jitter; +/** + * + * @brief 音频解码帧率。 + */ + +@property(assign, nonatomic) double decodeFrameRate; +@end + +/** + * + * @type keytype + * @brief 本地音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 本地用户发布音/视频流成功后,SDK 会周期性地通过 `onLocalStreamStats`
    + * 通知本地用户发布的音/视频流在此次统计周期内的发送状况。此数据结构即为回调给用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalStreamStats : NSObject +/** + * + * @brief 本地设备发送音频流的统计信息,详见 ByteRTCLocalAudioStats{@link #ByteRTCLocalAudioStats} + */ + +@property(strong, nonatomic) ByteRTCLocalAudioStats *_Nonnull audioStats; +/** + * + * @brief 本地设备发送视频流的统计信息,详见 ByteRTCLocalVideoStats{@link #ByteRTCLocalVideoStats} + */ + +@property(strong, nonatomic) ByteRTCLocalVideoStats *_Nonnull videoStats; +/** + * + * @brief 所属用户的媒体流上行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 所属用户的媒体流下行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +@end + +/** + * + * @type keytype + * @brief 用户订阅的远端音/视频流统计信息以及网络状况,统计周期为 2s 。
    + * 订阅远端用户发布音/视频流成功后,SDK 会周期性地通过 `onRemoteStreamStats`
    + * 通知本地用户订阅的远端音/视频流在此次统计周期内的接收状况。此数据结构即为回调给本地用户的参数类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamStats : NSObject +/** + * + * @brief 用户 ID 。音频来源的用户 ID 。 + */ + +@property(copy, nonatomic) NSString *_Nonnull uid; +/** + * + * @brief 远端音频流的统计信息,详见 ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats} + */ + +@property(strong, nonatomic) ByteRTCRemoteAudioStats *_Nonnull audioStats; +/** + * + * @brief 远端视频流的统计信息,详见 ByteRTCRemoteVideoStats{@link #ByteRTCRemoteVideoStats} + */ + +@property(strong, nonatomic) ByteRTCRemoteVideoStats *_Nonnull videoStats; +/** + * + * @brief 所属用户的媒体流上行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 所属用户的媒体流下行网络质量,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality} + * @deprecated since 3.36 and will be deleted in 3.51, use rtcRoom:onNetworkQuality:remoteQualities:{@link #ByteRTCRoomDelegate#rtcRoom:onNetworkQuality:remoteQualities:} instead + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +@end + +/** + * + * @type keytype + * @brief 用户信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCUser : NSObject +/** + * + * @brief 用户 ID + */ + +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 元信息 + */ + +@property(nonatomic, copy, nullable) NSString *metaData; +@end + +/** + * + * @type keytype + * @brief 用户信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamKey : NSObject +/** + * + * @brief 用户 ID + */ + +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 房间 ID + */ + +@property(nonatomic, copy, nullable) NSString *roomId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end + +#pragma mark - EncryptHandler +/** + * + * @type callback + * @brief 自定义加密接口
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 通话加密 + */ + +@protocol ByteRTCEncryptHandler + +@required +/** + * + * @type api + * @brief 自定义加密。
    + * 使用设定的自定义加密方式,对编码后传输前的音视频帧数据进行加密。
    + * 暂不支持对原始音视频帧进行加密。 + * @param rawData 原始音视频帧数据 + * @return 加密后的数据
    + * - 非空,表示加密后的数据 + * - 为空,表示数据被丢弃 + * @note + * - 使用此接口进行自定义加密前,你必须先设置自定义加密方式,参看 `setCustomizeEncryptHandler:`。 + * - 使用 onDecryptData:{@link #ByteRTCEncryptHandler#onDecryptData:} 对已加密的音视频帧数据进行解密。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + +- (NSData * _Nonnull) onEncryptData:(NSData * _Nonnull)rawData; + +@required +/** + * + * @type api + * @brief 自定义解密。
    + * 对自定义加密后的音视频帧数据进行解密。关于自定义加密,参看 onEncryptData:{@link #ByteRTCEncryptHandler#onEncryptData:}。 + * @param rawData 收到的已加密的音视频帧数据 + * @return 解密后的数据
    + * - 非空,表示解密后的数据 + * - 为空,表示丢弃该帧 + * @note + * - 使用此接口进行解密前,你必须先设定解密方式,参看 `setCustomizeEncryptHandler:`。 + * - 返回的数据大小应控制在原始数据的 90% ~ 120% 范围以内,不然将被丢弃。 + * @list 通话加密 + */ + +- (NSData * _Nonnull) onDecryptData:(NSData * _Nonnull)rawData; +@end + +#pragma mark - FileRecording + +/** + * + * @type keytype + * @brief 本地录制参数配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingConfig : NSObject +/** + * + * @brief 录制文件保存的绝对路径,需精确到文件夹,文件名由 RTC 自动生成。你需要确保对该路径具有读写权限。 + */ + +@property(strong, nonatomic) NSString* _Nullable dirPath; +/** + * + * @brief 录制存储文件格式,参看 ByteRTCRecordingFileType{@link #ByteRTCRecordingFileType} + */ + +@property(assign, nonatomic) ByteRTCRecordingFileType recordingFileType; +@end + +/** + * + * @type keytype + * @brief 本地录制进度 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingProgress : NSObject +/** + * + * @brief 当前文件的累计录制时长,单位:毫秒 + */ + +@property(assign, nonatomic) unsigned long long duration; +/** + * + * @brief 当前录制文件的大小,单位:byte + */ + +@property(assign, nonatomic) unsigned long long fileSize; +@end + +/** + * + * @type keytype + * @brief 本地录制的详细信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRecordingInfo : NSObject +/** + * + * @brief 录制文件的绝对路径,包含文件名和文件后缀 + */ + +@property(strong, nonatomic) NSString* _Nullable filePath; +/** + * + * @brief 录制文件的视频编码类型,参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} + */ + +@property(assign, nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 录制视频的宽,单位:像素。纯音频录制请忽略该字段 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 录制视频的高,单位:像素。纯音频录制请忽略该字段 + */ + +@property(nonatomic, assign) NSInteger height; +@end + +/** + * + * @type keytype + * @brief 媒体流信息同步的相关配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamSyncInfoConfig : NSObject + +/** + * + * @brief 消息发送的重复次数,取值范围是 [0,25],建议设置为 [3,5]。 + */ + +@property(assign, nonatomic) int repeatCount; +/** + * + * @brief 媒体流信息同步的流类型,见 ByteRTCSyncInfoStreamType{@link #ByteRTCSyncInfoStreamType} 。 + */ + +@property(assign, nonatomic) ByteRTCSyncInfoStreamType streamType; +@end + +/** + * + * @type keytype + * @brief 媒体流跨房间转发的目标房间的相关信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamConfiguration: NSObject + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 使用转发目标房间 RoomID 和 UserID 生成 Token。
    + * 测试时可使用控制台生成临时 Token,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。
    + * 如果 Token 无效,转发失败。 + */ + +@property(strong, nonatomic) NSString* _Nullable token; +@end + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间的状态和错误信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamStateInfo: NSObject + /** + * + * @brief 跨房间转发媒体流过程中目标房间 ID
    + * 空字符串代表所有目标房间 + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间的状态,参看 ByteRTCForwardStreamState{@link #ByteRTCForwardStreamState} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamState state; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间抛出的错误码,参看 ByteRTCForwardStreamError{@link #ByteRTCForwardStreamError} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamError error; +@end + +/** + * + * @type keytype + * @brief 跨房间转发媒体流过程中的不同目标房间发生的事件 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCForwardStreamEventInfo: NSObject + /** + * + * @brief 跨房间转发媒体流过程中的发生该事件的目标房间 ID
    + * 空字符串代表所有目标房间 + */ + +@property(strong, nonatomic) NSString* _Nullable roomId; + /** + * + * @brief 跨房间转发媒体流过程中该目标房间发生的事件,参看 ByteRTCForwardStreamEvent{@link #ByteRTCForwardStreamEvent} + */ + +@property(assign, nonatomic) ByteRTCForwardStreamEvent event; +@end + +/** + * + * @type keytype + * @brief 上行/下行网络质量 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCNetworkQualityStats: NSObject +/** + * + * @brief 用户 ID + */ + +@property(strong, nonatomic) NSString* _Nonnull uid; +/** + * + * @brief 本端的上行/下行的丢包率,范围 [0.0,1.0]
    + * 当 `uid` 为本地用户时,代表发布流的上行丢包率。
    + * 当 `uid` 为远端用户时,代表接收所有订阅流的下行丢包率。 + */ + +@property(assign, nonatomic) double lossRatio; +/** + * + * @brief 当 `uid` 为本地用户时有效,客户端到服务端的往返延时(RTT),单位:ms + */ + +@property(assign, nonatomic) int rtt; +/** + * + * @brief 本端的音视频 RTP 包 2 秒内的平均传输速率,单位:bps
    + * 当 `uid` 为本地用户时,代表发送速率。
    + * 当 `uid` 为远端用户时,代表所有订阅流的接收速率。 + */ + +@property(assign, nonatomic) int totalBandwidth; +/** + * + * @brief 上行网络质量评分,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality txQuality; +/** + * + * @brief 下行网络质量评分,详见 ByteRTCNetworkQuality{@link #ByteRTCNetworkQuality}。 + */ + +@property(assign, nonatomic) ByteRTCNetworkQuality rxQuality; +@end + +/** + * + * @type keytype + * @brief 网络时间信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCNetworkTimeInfo: NSObject +/** + * + * @brief 网络时间,单位:ms + */ + +@property(assign, nonatomic) int64_t timestamp; +@end + +#pragma mark - ByteRTCDeviceCollection +/** + * + * @hidden(iOS) + * @type api + * @brief 音视频设备相关的信息 + * @list Encryption + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDeviceCollection : NSObject +/** + * + * @type api + * @brief 获取当前音视频设备数量 + * @return 音视频设备数量 + * @list 引擎管理 + */ + +- (int)getCount; +/** + * + * @type api + * @brief 获取音频设备信息,可根据索引号、设备名称、设备 ID 获取。 + * @param index 设备索引号,从 0 开始,注意需小于 getCount{@link #ByteRTCDeviceCollection#getCount} 返回值。 + * @param deviceName 设备名称 + * @param deviceID 设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 引擎管理 + */ + +- (int)getDevice:(int)index DeviceName:(NSString * _Nonnull * _Nonnull)deviceName DeviceID:(NSString * _Nonnull * _Nonnull) deviceID; +@end + +/** + * + * @type keytype + * @brief 音频 dump 状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioDumpStatus){ + /** + * + * @brief 音频 dump 启动失败 + */ + + ByteRTCAudioDumpStartFailure = 0, + /** + * + * @brief 音频 dump 启动成功 + */ + + ByteRTCAudioDumpStartSuccess = 1, + /** + * + * @brief 音频 dump 停止失败 + */ + + ByteRTCAudioDumpStopFailure = 2, + /** + * + * @brief 音频 dump 停止成功 + */ + + ByteRTCAudioDumpStopSuccess = 3, + /** + * + * @brief 音频 dump 运行失败 + */ + + ByteRTCAudioDumpRunningFailure = 4, + /** + * + * @brief 音频 dump 运行成功 + */ + + ByteRTCAudioDumpRunningSuccess = 5, +}; + + +/** + * + * @type keytype + * @brief 通话前探测的停止原因
    + * `rtcEngine:onNetworkDetectionStopped:` 回调的参数类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkDetectionStopReason) { + /** + * + * @brief 用户主动停止。 + */ + + ByteRTCNetworkDetectionStopReasonUser = 0, + /** + * + * @brief 探测超过三分钟。 + */ + + ByteRTCNetworkDetectionStopReasonTimeout = 1, + /** + * + * @brief 探测网络连接断开。
    + * 当超过 12s 没有收到回复,SDK 将断开网络连接,并且不再尝试重连。 + */ + + ByteRTCNetworkDetectionStopReasonConnectionLost = 2, + /** + * + * @brief 本地开始推拉流,停止探测。 + */ + + ByteRTCNetworkDetectionStopReasonStreaming = 3, + /** + * + * @brief 网络探测失败,内部异常 + */ + + ByteRTCNetworkDetectionStopReasonInnerErr = 4, +}; + +/** + * + * @type errorcode + * @brief 开始探测的返回值
    + * `startNetworkDetection:uplinkBandwidth:downlink:downlinkBandwidth:` 返回对象类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCNetworkDetectionStartReturn) { + /** + * + * @brief 成功开始探测。 + */ + + ByteRTCNetworkDetectionStartReturnSuccess = 0, + /** + * + * @brief 开始探测失败。参数错误,上下行探测均为 `false`,或期望带宽超过了范围 [100,10000] + */ + + ByteRTCNetworkDetectionStartReturnParamErr = 1, + /** + * + * @brief 开始探测失败。失败原因为,本地已经开始推拉流 + */ + + ByteRTCNetworkDetectionStartReturnStreaming = 2, + /** + * + * @brief 已经开始探测,无需重复开启 + */ + + ByteRTCNetworkDetectionStartReturnStarted = 3, + /** + * + * @brief 不支持该功能 + */ + + ByteRTCNNetworkDetectionStartReturnNotSupport = 4, +}; + +/** + * + * @type keytype + * @brief 通话前探测链接的类型
    + * `rtcEngine:onNetworkDetectionResult:quality:rtt:lostRate:bitrate:jitter:` 回调的参数类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkDetectionLinkType) { + /** + * + * @brief 上行网络探测。 + */ + + ByteRTCNetworkDetectionLinkTypeUp = 0, + /** + * + * @brief 下行网络探测。 + */ + + ByteRTCNetworkDetectionLinkTypeDown = 1, +}; + +/** + * + * @type keytype + * @brief 通话前回声检测结果 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCHardwareEchoDetectionResult) { + /** + * + * @brief 主动调用 `stopHardwareEchoDetection` 结束流程时,未有回声检测结果。 + */ + + ByteRTCHardwareEchoDetectionCanceled = 0, + /** + * + * @brief 未检测出结果。建议重试,如果仍然失败请联系技术支持协助排查。 + */ + + ByteRTCHardwareEchoDetectionUnknown = 1, + /** + * + * @brief 无回声 + */ + + ByteRTCHardwareEchoDetectionNormal = 2, + /** + * + * @brief 有回声。可通过 UI 建议用户使用耳机设备入会。 + */ + + ByteRTCHardwareEchoDetectionPoor = 3, +}; + +/** + * + * @type keytype + * @brief 音频选路优先级设置 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCAudioSelectionPriority) { + /** + * + * @brief 正常,参加音频选路 + */ + + ByteRTCAudioSelectionPriorityNormal = 0, + /** + * + * @brief 高优先级,跳过音频选路 + */ + + ByteRTCAudioSelectionPriorityHigh = 1 +}; + +/** + * + * @type keytype + * @brief 设置房间附加消息结果。 + */ + +typedef NS_ENUM(NSInteger,ByteRTCSetRoomExtraInfoResult) { + /** + * + * @brief 设置房间附加信息成功 + */ + + ByteRTCSetRoomExtraInfoResultSuccess = 0, + /** + * + * @brief 设置失败,尚未加入房间 + */ + + ByteRTCSetRoomExtraInfoResultNotJoinRoom = -1, + /** + * + * @brief 设置失败,key 指针为空 + */ + + ByteRTCSetRoomExtraInfoResultKeyIsNull = -2, + /** + * + * @brief 设置失败,value 指针为空 + */ + + ByteRTCSetRoomExtraInfoResultValueIsNull = -3, + /** + * + * @brief 设置失败,未知错误 + */ + + ByteRTCSetRoomExtraInfoResultUnknow = -99, + /** + * + * @brief 设置失败,key 长度为 0 + */ + + ByteRTCSetRoomExtraInfoResultKeyIsEmpty = -400, + /** + * + * @brief 调用 `setRoomExtraInfo` 过于频繁,建议不超过 10 次/秒。 + */ + + ByteRTCSetRoomExtraInfoResultTooOften = -406, + /** + * + * @brief 设置失败,用户已调用 `setUserVisibility` 将自身设为隐身状态。 + */ + + ByteRTCSetRoomExtraInfoResultSilentUser = -412, + /** + * + * @brief 设置失败,Key 长度超过 10 字节 + */ + + ByteRTCSetRoomExtraInfoResultKeyTooLong = -413, + /** + * + * @brief 设置失败,value 长度超过 128 字节 + */ + + ByteRTCSetRoomExtraInfoResultValueTooLong = -414, + /** + * + * @brief 设置失败,服务器错误 + */ + + ByteRTCSetRoomExtraInfoResultServerError = -500 +}; +/** + * + * @type keytype + * @hidden internal use only + * @brief 特效错误类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEffectErrorType) { + /** + * + * @hidden 仅用于会议 + * @brief 虚拟背景设置错误。 + */ + + ByteRTCEffectErrorVirtualBackgroundFailure = 1, + /** + * + * @hidden 仅用于会议 + * @brief 特效独立进程崩溃。 + */ + + ByteRTCEffectErrorChildProcTerminate = 2 +}; + +#pragma mark - ByteRTCSubtitle +/** + * + * @type keytype + * @brief 字幕任务状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleState) { + /** + * + * @brief 开启字幕。 + */ + + ByteRTCSubtitleStateStarted = 0, + /** + * + * @brief 关闭字幕。 + */ + + ByteRTCSubtitleStateStoped = 1, + /** + * + * @brief 字幕任务出现错误。 + */ + + ByteRTCSubtitleStateError = 2 +}; +/** + * + * @type keytype + * @brief 字幕模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleMode) { + /** + * + * @brief 识别模式。在此模式下,房间内用户语音会被转为文字。 + */ + + ByteRTCSubtitleModeRecognition = 0, + /** + * + * @brief 翻译模式。在此模式下,房间内用户语音会先被转为文字,再被翻译为目标语言。 + */ + + ByteRTCSubtitleModeTranslation = 1 +}; +/** + * + * @type errorcode + * @brief 字幕任务错误码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubtitleErrorCode) { + /** + * + * @brief 客户端无法识别云端媒体处理发送的错误码。 + */ + + ByteRTCSubtitleErrorCodeUnknow = -1, + /** + * + * @brief 字幕已开启。 + */ + + ByteRTCSubtitleErrorCodeSuccess = 0, + /** + * + * @brief 云端媒体处理内部出现错误,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodePostProcessError = 1, + /** + * + * @brief 第三方服务连接失败,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodeASRConnectionError = 2, + /** + * + * @brief 第三方服务内部出现错误,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodeASRServiceError = 3, + /** + * + * @brief 未进房导致调用`startSubtitle`失败。请加入房间后再调用此方法。 + */ + + ByteRTCSubtitleErrorCodeBeforeJoinRoom = 4, + /** + * + * @brief 字幕已开启,无需重复调用 `startSubtitle`。 + */ + + ByteRTCSubtitleErrorCodeAlreadyOn = 5, + /** + * + * @brief 用户选择的目标语言目前暂不支持。 + */ + + ByteRTCSubtitleErrorCodeUnsupportedLanguage = 6, + /** + * + * @brief 云端媒体处理超时未响应,请联系技术支持。 + */ + + ByteRTCSubtitleErrorCodePostProcessTimeout = 7 +}; +/** + * + * @type keytype + * @brief 字幕配置信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubtitleConfig : NSObject +/** + * + * @brief 字幕模式。可以根据需要选择识别和翻译两种模式。开启识别模式,会将识别后的用户语音转化成文字;开启翻译模式,会在语音识别后进行翻译。参看 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode}。 + */ + +@property(assign, nonatomic) ByteRTCSubtitleMode mode; +/** + * + * @brief 目标翻译语言。可点击 [语言支持](https: + */ + +@property(copy, nonatomic) NSString *_Nonnull targetLanguage; +@end +/** + * + * @type keytype + * @brief 字幕具体内容。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubtitleMessage : NSObject +/** + * + * @brief 说话者的用户 ID。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userId; +/** + * + * @brief 语音识别或翻译后的文本, 采用 UTF-8 编码。 + */ + +@property(copy, nonatomic) NSString *_Nonnull text; +/** + * + * @brief 字幕语种,根据字幕模式为原文或译文对应的语种。 + */ + +@property(copy, nonatomic) NSString *_Nonnull language; +/** + * + * @brief 字幕模式,参看 ByteRTCSubtitleMode{@link #ByteRTCSubtitleMode}。 + */ + +@property(assign, nonatomic) NSInteger mode; +/** + * + * @brief 语音识别或翻译后形成的文本的序列号,同一发言人的完整发言和不完整发言会按递增顺序单独分别编号。 + */ + +@property(assign, nonatomic) NSInteger sequence; +/** + * + * @brief 语音识别出的文本是否为一段完整的一句话。 True 代表是, False 代表不是。 + */ + +@property(assign, nonatomic) BOOL definite; +@end + +/** + * + * @hidden + * @type keytype + * @brief 死锁时的相关报错 + * @hidden internal use only + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCDeadLockMsg : NSObject +/** + * + * @brief session_id + */ + +@property (nonatomic, strong) NSString* _Nonnull blockSessionId; +/** + * + * @brief 死锁线程等待链 + */ + +@property (nonatomic, strong) NSString* _Nonnull blockingPaths; +/** + * + * @brief 是否卡住 rtc 主线程 + */ + +@property(nonatomic) BOOL isCritical ; +@end + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 字幕模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAudioAEDType) { + /** + * + * @brief 未检测到音乐场景 + */ + + ByteRTCAudioAEDTypeNoMusic = 0, + /** + * + * @brief 检测到音乐场景。 + */ + + ByteRTCAudioAEDTypeMusic = 1 +}; + + +/** + * + * @type keytype + * @brief 游戏房间类型 + */ + +typedef NS_ENUM(NSInteger, GameRoomType) { + /** + * + * @brief 小队房间 + */ + + GameRoomTypeTeam = 0, + /** + * + * @brief 世界房间 + */ + + GameRoomTypeWorld = 1, +}; + +/** + * + * @type keytype + * @brief 流信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamInfo : NSObject +/** + * + * @brief 流 ID + */ + +@property(nonatomic) NSString * _Nonnull streamId; +/** + * + * @brief 用户 ID + */ + +@property(nonatomic) NSString * _Nonnull userId; +/** + * + * @brief 房间 ID + */ + +@property(nonatomic) NSString * _Nonnull roomId; +/** + * + * @brief 流索引 + */ + +@property(nonatomic, assign) NSInteger streamIndex; +/** + * + * @brief 预留字段。 + */ + +@property(assign, nonatomic) BOOL isScreen; +@end + + +/** + * + * @type keytype + * @brief 游戏场景类型 + */ + +typedef NS_ENUM(NSInteger, GameSceneType) { + /** + * + * @brief 普通场景。
    + * 同一个小队房间的队友,仅支持在同一个世界房间内通话。 + */ + + GameSceneTypeNormal = 0, + /** + * + * @brief 主题公园场景。
    + * 同一个小队房间的队友,支持跨世界房间通话。 + */ + + GameSceneTypeThemePark = 1, +}; + +/** + * + * @type keytype + * @brief 创建游戏房间参数 + */ + +BYTERTC_APPLE_EXPORT @interface GameRoomConfig: NSObject +/** + * + * @type keytype + * @brief 游戏房间类型,参看 GameRoomType{@link #GameRoomType},默认为 `GAME_RTC_ROOM_TYPE_TEAM`(小队房间),进房后不可更改。 + */ + +@property(assign, nonatomic) GameRoomType gameRoomType; +/** + * + * @type keytype + * @brief 游戏场景类型,参看 GameSceneType{@link #GameSceneType},默认为 `GAME_SCENE_TYPE_NORMAL`(普通场景),进房后不可更改。 + */ + +@property(assign, nonatomic) GameSceneType gameSceneType; +@end + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h new file mode 100644 index 0000000..f4bfbe8 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCMediaPlayer.h @@ -0,0 +1,431 @@ +/* + * Copyright (c) 2023 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCMediaPlayer +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief 本地音频文件混音的音频帧观察者。 + * @list + */ + +@protocol ByteRTCMediaPlayerAudioFrameObserver +/** + * + * @type callback + * @brief 当本地音频文件混音时,回调播放的音频帧。 + * @param playerId 播放器 ID + * @param audioFrame 参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @list 混音 + */ + +- (void)onFrame:(int)playerId audioFrame:(ByteRTCAudioFrame * _Nonnull)audioFrame; + +@end +/** + * + * @type callback + * @brief ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 对应的回调句柄。你必须调用 setEventHandler:{@link #ByteRTCMediaPlayer#setEventHandler:} 完成设置后,才能收到对应回调。 + * @list Audio Mixing + */ + +@protocol ByteRTCMediaPlayerEventHandler +/** + * + * @type callback + * @brief 播放状态改变时回调。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param state 混音状态。参考 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @param error 错误码。参考 ByteRTCPlayerError{@link #ByteRTCPlayerError}。 + * @list 混音 + */ + +-(void)onMediaPlayerStateChanged:(int)playerId state:(ByteRTCPlayerState)state error:(ByteRTCPlayerError)error; +/** + * + * @type callback + * @brief 播放进度周期性回调。回调周期通过 setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval:} 设置。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param progress 进度。单位 ms。 + * @list 混音 + */ + +-(void)onMediaPlayerPlayingProgress:(int)playerId progress:(int64_t)progress; +/** + * + * @valid since 3.59 + * @type callback + * @brief 播放事件回调。调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack:} 和 setPosition:{@link #ByteRTCMediaPlayer#setPosition:} 后,会触发此回调。 + * @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer:} 设置。 + * @param event 播放器事件。参看 ByteRTCPlayerEvent{@link #ByteRTCPlayerEvent}。 + * @param message 事件描述信息,可能为空。 + * @list 混音 + */ + +-(void)onMediaPlayerEvent:(int)playerId event:(ByteRTCPlayerEvent)event message:(NSString*_Nullable)message; + +@end +/** + * + * @valid since 3.53 + * @type api + * @brief 音乐播放器
    + * 调用 setEventHandler:{@link #ByteRTCMediaPlayer#setEventHandler:} 设置回调句柄以获取相关回调。 + * @list Audio Mixing + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaPlayer :NSObject +/** + * + * @type api + * @brief 打开音乐文件。
    + * 一个播放器实例仅能够同时打开一个音乐文件。如果需要同时打开多个音乐文件,请创建多个音乐播放器实例。
    + * 要播放 PCM 格式的音频数据,参看 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:}。`openWithCustomSource` 和此 API 互斥。 + * @param filePath 音乐文件路径。
    + * 支持在线文件的 URL、本地文件的 URI、或本地文件的绝对路径。对于在线文件的 URL,仅支持 https 协议。
    + * 推荐的采样率:8KHz、16KHz、22.05KHz、44.1KHz、48KHz。
    + * 不同平台支持的本地文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYYYY
    iOS/macOSYYYYYY
    WindowsYYYYYYYY
    + * 不同平台支持的在线文件格式:
    + * + * + * + * + * + *
    mp3mp4aacm4a3gpwavoggtswma
    AndroidYYYYY
    iOS/macOSYYYY
    WindowsYYYYYYY
    + * @param config 详见 ByteRTCMediaPlayerConfig{@link #ByteRTCMediaPlayerConfig}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 混音 + */ + +- (int)open:(NSString *_Nullable)filePath config:(ByteRTCMediaPlayerConfig *_Nullable)config; +/** + * + * @type api + * @brief 播放音乐。你仅需要在调用 open:config:{@link #ByteRTCMediaPlayer#open:config:},且未开启自动播放时,调用此方法。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 要播放 PCM 格式的音频数据,参看 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:}。`openWithCustomSource` 和此 API 互斥。 + * - 调用本方法播放音频文件后,可调用 stop{@link #ByteRTCMediaPlayer#stop} 方法暂停播放。 + * @list 混音 + */ + +- (int)start; +/** + * + * @type api + * @brief 启动音频裸数据混音。
    + * 要播放音乐文件,参看 open:config:{@link #ByteRTCMediaPlayer#open:config:}。`open` 与此 API 互斥。 + * @param source 数据源,详见 ByteRTCMediaPlayerCustomSource{@link #ByteRTCMediaPlayerCustomSource} + * @param config 详见 ByteRTCMediaPlayerConfig{@link #ByteRTCMediaPlayerConfig} + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法启动后,再调用 pushExternalAudioFrame:{@link #ByteRTCEngine#pushExternalAudioFrame:} 推送音频数据,才会开始混音。 + * - 如要结束 PCM 音频数据混音,调用 stop{@link #ByteRTCMediaPlayer#stop}。 + * @list 混音 + */ + +- (int)openWithCustomSource:(ByteRTCMediaPlayerCustomSource *_Nullable)source config:(ByteRTCMediaPlayerConfig *_Nullable)config; +/** + * + * @type api + * @brief 调用 open:config:{@link #ByteRTCMediaPlayer#open:config:}, start{@link #ByteRTCMediaPlayer#start}, 或 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 开始播放后,可以调用本方法停止。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @list 混音 + */ + +- (int)stop; +/** + * + * @type api + * @brief 调用 open:config:{@link #ByteRTCMediaPlayer#open:config:},或 start{@link #ByteRTCMediaPlayer#start} 开始播放音频文件后,调用本方法暂停播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 调用本方法暂停播放后,可调用 resume{@link #ByteRTCMediaPlayer#resume} 恢复播放。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)pause; +/** + * + * @type api + * @brief 调用 pause{@link #ByteRTCMediaPlayer#pause} 暂停音频播放后,调用本方法恢复播放。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)resume; +/** + * + * @type api + * @brief 调节指定混音的音量大小,包括音乐文件混音和 PCM 混音。 + * @param volume 播放音量相对原音量的比值。单位为 %。范围为 `[0, 400]`,建议范围是 `[0, 100]`。带溢出保护。 + * @param type 详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * @list 混音 + */ + +- (int)setVolume:(int)volume type:(ByteRTCAudioMixingType)type; +/** + * + * @type api + * @brief 获取当前音量 + * @param type 详见 ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}。 + * @return + * - >0: 成功, 当前音量值。 + * - < 0: 失败 + * @note 仅在音频播放进行状态时,调用此方法。包括音乐文件混音和 PCM 混音。 + * @list 混音 + */ + +- (int)getVolume:(ByteRTCAudioMixingType)type; +/** + * + * @type api + * @brief 获取音乐文件时长。 + * @return + * - >0: 成功, 音乐文件时长,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getTotalDuration; +/** + * + * @type api + * @brief 获取混音音乐文件的实际播放时长,单位为毫秒。 + * @return + * - >0: 实际播放时长。 + * - < 0: 失败。 + * @note + * - 实际播放时长指的是歌曲不受停止、跳转、倍速、卡顿影响的播放时长。例如,若歌曲正常播放到 1:30 时停止播放 30s 或跳转进度到 2:00, 随后继续正常播放 2 分钟,则实际播放时长为 3 分 30 秒。 + * - 仅在音频播放进行状态,且 setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval:} 设置间隔大于 `0` 时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getPlaybackDuration; +/** + * + * @type api + * @brief 获取音乐文件播放进度。 + * @return + * - >0: 成功, 音乐文件播放进度,单位为毫秒。 + * - < 0: 失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getPosition; +/** + * + * @valid since 3.59 + * @type api + * @brief 获取播放器状态 + * @return 播放器当前状态,参看 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 + * @note 仅在音频实例创建后,调用此方法。 + * @list 混音 + */ + +- (ByteRTCPlayerState)getState; +/** + * + * @type api + * @brief 开启变调功能,多用于 K 歌场景。 + * @param pitch 与音乐文件原始音调相比的升高/降低值,取值范围为 `[-12,12]`,默认值为 0。每相邻两个值的音高距离相差半音,正值表示升调,负值表示降调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音乐文件混音,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setAudioPitch:(int)pitch; +/** + * + * @type api + * @brief 设置音乐文件的起始播放位置。 + * @param position 音乐文件起始播放位置,单位为毫秒。
    + * 你可以通过 getTotalDuration{@link #ByteRTCMediaPlayer#getTotalDuration} 获取音乐文件总时长,position 的值应小于音乐文件总时长。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 此接口仅支持音频文件,不支持 PCM 数据。 + * - 在播放在线文件时,调用此接口可能造成播放延迟的现象。 + * - 调用本接口后,会收到 onMediaPlayerEvent:event:message:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerEvent:event:message:} 回调。 + * @list 混音 + */ + +- (int)setPosition:(int)position; +/** + * + * @type api + * @brief 设置当前音乐文件的声道模式 + * @param mode 声道模式。默认的声道模式和源文件一致,详见 ByteRTCAudioMixingDualMonoMode{@link #ByteRTCAudioMixingDualMonoMode}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setAudioDualMonoMode:(ByteRTCAudioMixingDualMonoMode)mode; +/** + * + * @type api + * @brief 获取当前音乐文件的音轨数 + * @return + >= 0:成功,返回当前音乐文件的音轨数 + * - < 0:方法调用失败 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)getAudioTrackCount; +/** + * + * @type api + * @brief 指定当前音乐文件的播放音轨 + * @param index 指定的播放音轨,从 0 开始,取值范围为 `[0, getAudioTrackCount()-1]`。
    + * 设置的参数值需要小于 getAudioTrackCount{@link #ByteRTCMediaPlayer#getAudioTrackCount} 的返回值 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 仅在音频播放进行状态时,调用此方法。 + * - 此方法仅支持音乐文件,不支持 PCM 数据。 + * - 调用本接口后,会收到 onMediaPlayerEvent:event:message:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerEvent:event:message:} 回调。 + * @list 混音 + */ + +- (int)selectAudioTrack:(int)index; +/** + * + * @type api + * @brief 设置播放速度 + * @param speed 播放速度与原始文件速度的比例,单位:%,取值范围为 `[50,200]`,默认值为 100。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件可用,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setPlaybackSpeed:(int)speed; +/** + * + * @type api + * @brief 设置音频文件混音时,收到 onMediaPlayerPlayingProgress:progress:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerPlayingProgress:progress:} 的间隔。 + * @param interval 时间间隔,单位毫秒。
    + * - interval > 0 时,触发回调。实际间隔为 10 的倍数。如果输入数值不能被 10 整除,将自动向上取整。例如传入 `52`,实际间隔为 60 ms。 + * - interval <= 0 时,不会触发回调。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)setProgressInterval:(int64_t)interval; +/** + * + * @type api + * @brief 如果你需要使用 enableVocalInstrumentBalance:{@link #ByteRTCEngine#enableVocalInstrumentBalance:} 对音频文件/PCM 音频数据设置音量均衡,你必须通过此接口传入其原始响度。 + * @param loudness 原始响度,单位:lufs,取值范围为 `[-70.0, 0.0]`。
    + * 当设置的值小于 -70.0lufs 时,则默认调整为 -70.0lufs,大于 0.0lufs 时,则不对该响度做音量均衡处理。默认值为 1.0lufs,即不做处理。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * - 如果在起播前调用此接口,设置的参数值将被缓存,在起播后生效。 + * - 此方法对音频文件和音频裸数据播放都可用。 + * @list 混音 + */ + +- (int)setLoudness:(float)loudness; +/** + * + * @type api + * @brief 注册回调句柄以在本地音乐文件混音时,收到相关回调。 + * @param observer 参看 ByteRTCMediaPlayerAudioFrameObserver{@link #ByteRTCMediaPlayerAudioFrameObserver}。 + * @return + * - 0: 调用成功。 + * - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 + * @note + * 此接口仅支持音频文件,不支持 PCM 数据。 + * @list 混音 + */ + +- (int)registerAudioFrameObserver:(_Nullable id)observer; +/** + * + * @type api + * @brief 推送用于混音的 PCM 音频帧数据 + * @param audioFrame 音频帧,详见 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。
    + * - 音频采样格式必须为 S16。音频缓冲区内的数据格式必须为 PCM,其容量大小应该为 audioFrame.samples × audioFrame.channel × 2。 + * - 必须指定具体的采样率和声道数,不支持设置为自动。 + * @return + * - 0: 成功 + * - < 0: 失败 + * @note + * - 调用该方法前,须通过 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config:} 启动外部音频流混音。 + * - 使用参考建议:首次推送数据,请在应用侧先缓存一定数据(如 200 毫秒),然后一次性推送过去;此后的推送操作定时 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * - 如果要暂停播放,暂停推送即可。 + * @list 混音 + */ + +- (int)pushExternalAudioFrame:(ByteRTCAudioFrame *_Nullable)audioFrame; +/** + * + * @type api + * @brief 设置回调句柄。 + * @param handler 参看 ByteRTCMediaPlayerEventHandler{@link #ByteRTCMediaPlayerEventHandler}。 + * @return + * - 0: 成功。 + * - < 0: 失败。 + * @list 混音 + */ + +- (int)setEventHandler:(_Nullable id)handler; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h new file mode 100644 index 0000000..b06e87c --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRangeAudio.h @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief range audio interface + */ + +#pragma once + +#import +#import "ByteRTCAudioDefines.h" + +/** + * + * @type keytype + * @brief 空间音频音量随距离衰减模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAttenuationType) { + /** + * + * @brief 不随距离衰减 + */ + + ByteRTCAttenuationTypeNone = 0, + /** + * + * @brief 线性衰减,音量随距离增大而线性减小 + */ + + ByteRTCAttenuationTypeLinear = 1, + /** + * + * @brief 指数型衰减,音量随距离增大进行指数衰减 + */ + + ByteRTCAttenuationTypeExponential = 2 +}; + +/** + * + * @type keytype + * @brief 本地用户能收听到、且具有衰减效果的音频接收范围 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCReceiveRange : NSObject +/** + * + * @brief 能够接收语音、并且具有衰减效果的最小距离值,该值须 ≥ 0,但 ≤ max。
    + * 小于该值的范围内没有范围语音效果,即收听到的音频音量相同。 + */ + +@property(nonatomic, assign) int min; +/** + * + * @brief 能够收听语音的最大距离值,该值须 > 0 且 ≥ min。
    + * 当收听者和声源距离处于 [min, max) 之间时,收听到的音量根据距离呈衰减效果。
    + * 超出该值范围的音频将无法收听到。 + */ + +@property(nonatomic, assign) int max; +@end +/** + * + * @type api + * @brief 范围语音接口实例 + * @list + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRangeAudio :NSObject +/** + * + * @type api + * @brief 开启/关闭范围语音功能。
    + * 范围语音是指,在同一 RTC 房间中设定的音频接收距离范围内,本地用户收听到的远端用户音频音量会随着远端用户的靠近/远离而放大/衰减;若远端用户在房间内的位置超出设定范围,则本地用户无法接收其音频。音频接收范围设置参看 updateReceiveRange:{@link #ByteRTCRangeAudio#updateReceiveRange:}。 + * @param enable 是否开启范围语音功能:
    + * - YES: 开启 + * - NO: 关闭(默认) + * @note 该方法进房前后都可调用,为保证进房后范围语音效果的平滑切换,你需在该方法前先调用 updatePosition:{@link #ByteRTCRangeAudio#updatePosition:} 设置自身位置坐标,然后开启该方法收听范围语音效果。 + * @list 高级功能 + */ + +- (void)enableRangeAudio:(BOOL)enable; +/** + * + * @type api + * @brief 更新本地用户的音频收听范围。 + * @param range 音频收听范围,参看 ByteRTCReceiveRange{@link #ByteRTCReceiveRange}。 + * @return 方法调用结果:
    + * - 0:成功; + * - !0: 失败。 + * @list 高级功能 + */ + +- (int)updateReceiveRange:(ByteRTCReceiveRange* _Nonnull) range; +/** + * + * @type api + * @brief 更新本地用户在房间内空间直角坐标系中的位置坐标。 + * @param pos 三维坐标的值,默认为 [0, 0, 0],参看 ByteRTCPosition{@link #ByteRTCPosition}. + * @return 方法调用结果:
    + * - 0:成功; + * - !0:失败。 + * @note 调用该接口更新坐标后,你需调用 enableRangeAudio:{@link #ByteRTCRangeAudio#enableRangeAudio:} 开启范围语音功能以收听范围语音效果。 + * @list 高级功能 + */ + +- (int)updatePosition:(ByteRTCPosition* _Nonnull) pos; +/** + * + * @type api + * @brief 设置范围语音的音量衰减模式。 + * @param type 音量衰减模式。默认为线性衰减。详见 ByteRTCAttenuationType{@link #ByteRTCAttenuationType}。 + * @param coefficient 指数衰减模式下的音量衰减系数,默认值为 1。范围 [0.1,100],推荐设置为 `50`。数值越大,音量的衰减速度越快。 + * @return 调用是否成功
    + * - `0`:调用成功 + * - `-1`:调用失败。原因为在调用 enableRangeAudio:{@link #ByteRTCRangeAudio#enableRangeAudio:} 开启范围语音前或进房前调用本接口 + * @note 音量衰减范围通过 updateReceiveRange:{@link #ByteRTCRangeAudio#updateReceiveRange:} 进行设置。 + * @list 高级功能 + */ + +- (int)setAttenuationModel:(ByteRTCAttenuationType) type coefficient:(float)coefficient; +/** + * + * @type api + * @brief 添加标签组,用于标记相互之间通话不衰减的用户组。
    + * 在同一个 RTC 房间中,如果多个用户的标签组之间有交集,那么,他们之间互相通话时,通话不衰减。
    + * 比如,用户身处多个队伍,队伍成员间通话不衰减。那么,可以为每个队伍绑定专属标签,每个用户的标签组包含用户所属各个队伍的标签。 + * @param flags 标签组。 + * @list 高级功能 + */ + +- (void) setNoAttenuationFlags:(NSArray *_Nonnull)flags; + +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h new file mode 100644 index 0000000..e950d2b --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCRtsDefines.h @@ -0,0 +1,1183 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Common Defines +*/ + +#import +#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR +#import +typedef UIView ByteRTCView; +typedef UIImage ByteRTCImage; +#elif TARGET_OS_MAC +#import +typedef NSView ByteRTCView; +typedef NSImage ByteRTCImage; +#endif + +#ifdef __APPLE__ +#define _BYTERTC_PLATFORM_APPLE 1 +#include +#if TARGET_OS_IPHONE +#define _BYTERTC_PLATFORM_MAC 0 +#define _BYTERTC_PLATFORM_IOS 1 +#elif TARGET_IPHONE_SIMULATOR +#define _BYTERTC_PLATFORM_MAC 0 +#define _BYTERTC_PLATFORM_IOS 1 +#elif TARGET_OS_MAC +#define _BYTERTC_PLATFORM_MAC 1 +#define _BYTERTC_PLATFORM_IOS 0 +#else +#error "Unknown Apple platform" +#endif +#endif + +#define BYTERTC_TARGET_MAC (_BYTERTC_PLATFORM_MAC == 1) +#define BYTERTC_TARGET_IOS (_BYTERTC_PLATFORM_IOS == 1) + +#define BYTERTC_APPLE_EXPORT __attribute__((visibility("default"))) + + +/** + * + * @type keytype + * @hidden currently not available + */ + +typedef NS_ENUM(NSInteger, ByteRTSReturnStatus) { + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusSuccess = 0, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusFailure = -1, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusParameterErr = -2, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusWrongState = -3, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusHasInRoom = -4, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusHasInLogin = -5, + /** + * + * @hidden currently not available + */ + + ByteRTSReturnStatusRoomIdInUse = -8, +}; + + +/** + * + * @type keytype + * @brief 远端用户离开房间的原因。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCUserOfflineReason) { + /** + * + * @brief 远端用户调用 `leaveRoom` 方法主动退出房间。 + */ + + ByteRTCUserOfflineReasonQuit = 0, + /** + * + * @brief 远端用户因网络等原因掉线。 + */ + + ByteRTCUserOfflineReasonDropped = 1, + /** + * + * @brief 远端用户切换至隐身状态。 + */ + + ByteRTCUserOfflineReasonSwitchToInvisible = 2, + /** + * + * @brief 远端用户被踢出房间。
    + * 因调用踢出用户的 OpenAPI,远端用户被踢出房间。 + */ + + ByteRTCUserOfflineReasonKickedByAdmin = 3, +}; + +/** + * + * @type keytype + * @brief SDK 与信令服务器连接状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCConnectionState) { + /** + * + * @brief 连接断开超过 12s,此时 SDK 会尝试自动重连。 + */ + + ByteRTCConnectionStateDisconnected = 1, + /** + * + * @brief 首次请求建立连接,正在连接中。 + */ + + ByteRTCConnectionStateConnecting = 2, + /** + * + * @brief 首次连接成功。 + */ + + ByteRTCConnectionStateConnected = 3, + /** + * + * @brief 涵盖了以下情况:
    + * - 首次连接时,10 秒连接不成功; + * - 连接成功后,断连 10 秒。自动重连中。 + */ + + ByteRTCConnectionStateReconnecting = 4, + /** + * + * @brief 连接断开后,重连成功。 + */ + + ByteRTCConnectionStateReconnected = 5, + /** + * + * @brief 处于 `ByteRTCConnectionStateDisconnected` 状态超过 10 秒,且期间重连未成功。SDK 仍将继续尝试重连。 + */ + + ByteRTCConnectionStateLost = 6, + /** + * + * @brief 连接失败,服务端状态异常。SDK 不会自动重连,请重新进房,或联系技术支持。 + */ + + ByteRTCConnectionStateFailed = 7, +}; + +/** + * + * @type keytype + * @brief SDK 网络连接类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCNetworkType) { + /** + * + * @brief 网络连接类型未知。 + */ + + ByteRTCNetworkTypeUnknown = -1, + /** + * + * @brief 网络连接已断开。 + */ + + ByteRTCNetworkTypeDisconnected = 0, + /** + * + * @brief 网络连接类型为 LAN 。 + */ + + ByteRTCNetworkTypeLAN = 1, + /** + * + * @brief 网络连接类型为 Wi-Fi(包含热点)。 + */ + + ByteRTCNetworkTypeWIFI = 2, + /** + * + * @brief 网络连接类型为 2G 移动网络。 + */ + + ByteRTCNetworkTypeMobile2G = 3, + /** + * + * @brief 网络连接类型为 3G 移动网络。 + */ + + ByteRTCNetworkTypeMobile3G = 4, + /** + * + * @brief 网络连接类型为 4G 移动网络。 + */ + + ByteRTCNetworkTypeMobile4G = 5, + /** + * + * @brief 网络连接类型为 5G 移动网络。 + */ + + ByteRTCNetworkTypeMobile5G = 6, +}; + +/** + * + * @type keytype + * @brief 媒体流网络质量。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCNetworkQuality) { + /** + * + * @brief 网络质量未知。 + */ + + ByteRTCNetworkQualityUnknown = 0, + /** + * + * @brief 网络质量极好。 + */ + + ByteRTCNetworkQualityExcellent = 1, + /** + * + * @brief 主观感觉和 kNetworkQualityExcellent 差不多,但码率可能略低。 + */ + + ByteRTCNetworkQualityGood = 2, + /** + * + * @brief 主观感受有瑕疵但不影响沟通。 + */ + + ByteRTCNetworkQualityPoor = 3, + /** + * + * @brief 勉强能沟通但不顺畅。 + */ + + ByteRTCNetworkQualityBad = 4, + /** + * + * @brief 网络质量非常差,基本不能沟通。 + */ + + ByteRTCNetworkQualityVeryBad = 5, + /** + * + * @brief 网络连接断开,无法通话。网络可能由于 12s 内无应答、开启飞行模式、拔掉网线等原因断开。
    + * 更多网络状态信息参见 [连接状态提示](https: + */ + + ByteRTCNetworkQualityDown = 6, +}; + +/** + * + * @type errorcode + * @brief 回调错误码。
    + * SDK 内部遇到不可恢复的错误时,会通过 `rtcEngine:onError:` 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTSErrorCode) { + /** + * + * @brief Token 无效。
    + * 进房时使用的 Token 无效或过期失效。需要用户重新获取 Token,并调用
    + * `updateToken:` 方法更新 Token。 + */ + + ByteRTSErrorCodeInvalidToken = -1000, + /** + * + * @brief 加入房间错误。
    + * 进房时发生未知错误导致加入房间失败。需要用户重新加入房间。 + */ + + ByteRTSErrorCodeJoinRoom = -1001, + /** + * + * @brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间 + */ + + ByteRTSErrorCodeDuplicateLogin = -1004, + + /** + * + * @brief 服务端调用 OpenAPI 将当前用户踢出房间 + */ + + ByteRTSErrorCodeKickedOut = -1006, + + /** + * + * @brief 当调用 `createRtcRoom:` ,如果 roomId 非法,会返回 null,并抛出该错误 + */ + + ByteRTSErrorCodeRoomIdIllegal = -1007, + + /** + * + * @brief Token 过期。调用 `joinRoomByKey:roomId:userInfo:rtcRoomConfig:` 使用新的 Token 重新加入房间。 + */ + + ByteRTSErrorCodeTokenExpired = -1009, + /** + * + * @brief 调用 `updateToken:` 传入的 Token 无效 + */ + + ByteRTSErrorCodeUpdateTokenWithInvalidToken = -1010, + + /** + * + * @brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。 + */ + + ByteRTSErrorCodeRoomDismiss = -1011, + + /** + * + * @brief 通话回路检测已经存在同样 roomId 的房间了 + */ + + ByteRTSErrorRoomAlreadyExist = -1013, + + /** + * + * @brief 加入多个房间时使用了不同的 uid。
    + * 同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。 + */ + + ByteRTSErrorUserIDDifferent = -1014, + + /** + * + * @brief 服务端异常状态导致退出房间。
    + * SDK 与信令服务器断开,并不再自动重连,可联系技术支持。 + */ + + ByteRTSErrorCodeAbnormalServerStatus = -1084, +}; + +/** + * + * @type errorcode + * @brief 回调警告码。
    + * 警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅作通知。 + */ + +typedef NS_ENUM(NSInteger, ByteRTSWarningCode) { + /** + * + * @brief 进房失败。
    + * 初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。SDK 会自动重试进房。 + */ + + ByteRTSWarningCodeJoinRoomFailed = -2001, + /** + * + * @brief 发布音视频流失败。
    + * 当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。 + */ + + ByteRTSWarningCodePublishStreamFailed = -2002, + /** + * + * @hidden currently not available + * @brief 函数调用顺序错误,当前代码中未使用。 + */ + + ByteRTSWarningCodeInvokeError = -2005, + /** + * + * @hidden for internal use only + * @brief 调度异常,服务器返回的媒体服务器地址不可用。 + */ + + ByteRTSWarningCodeInvalidExpectMediaServerAddress = -2007, + /** + * + * @brief 发送自定义广播消息失败,当前你未在房间中。 + */ + + ByteRTSWarningCodeSendCustomMessage = -2011, + /** + * + * @hidden + * @deprecated since 3.46 and will be deleted in 3.52. + * @brief 同样 roomid 的房间已经存在了 + */ + + ByteRTSWarningCodeRoomAlreadyExist = -2015, + + /** + * + * @brief 新生成的房间已经替换了同样 roomId 的旧房间 + */ + + ByteRTSWarningCodeOldRoomBeenReplaced = -2016 +}; + +/** + * + * @type keytype + * @brief 日志级别。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLogLevel) { + /** + * + * @brief 打印 trace 级别及以上级别信息。 + */ + + ByteRTCLogLevelTrace, + /** + * + * @brief 打印 debug 级别及以上级别信息。 + */ + + ByteRTCLogLevelDebug, + /** + * + * @brief 打印 info 级别及以上级别信息。 + */ + + ByteRTCLogLevelInfo, + /** + * + * @brief 打印 warning 级别及以上级别信息。 + */ + + ByteRTCLogLevelWarning, + /** + * + * @brief 打印 error 级别信息。 + */ + + ByteRTCLogLevelError, +}; + +/** + * + * @type errorcode + * @brief 登录结果
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录的结果,会通过 rtcEngine:onLoginResult:errorCode:elapsed:{@link #ByteRTCEngineDelegate#rtcEngine:onLoginResult:errorCode:elapsed:} 回调通知用户。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLoginErrorCode) { + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法登录成功。 + */ + + ByteRTCLoginErrorCodeSuccess = 0, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时使用的 Token 无效或过期失效。需要用户重新获取 Token。 + */ + + ByteRTCLoginErrorCodeInvalidToken = -1000, + /** + * + * @brief 登录错误
    + * 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时发生未知错误导致登录失败。需要用户重新登录。 + */ + + ByteRTCLoginErrorCodeLoginFailed = -1001, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 方法时传入的用户 ID 有问题。 + */ + + ByteRTCLoginErrorCodeInvalidUserId = -1002, + /** + * + * @brief 调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录时服务器错误。 + */ + + ByteRTCLoginErrorCodeServerError = -1003, +}; + +/** + * + * @type keytype + * @brief 用户登出的原因 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLogoutReason) { + /** + * + * @brief 用户主动退出
    + * 用户调用 `logout` 接口登出,或者销毁引擎登出。 + */ + + ByteRTCLogoutReasonLogout = 0, + /** + * + * @brief 用户被动退出
    + * 另一个用户以相同 UserId 进行了 `login`,导致本端用户被踢出。 + */ + + ByteRTCLogoutReasonDuplicateLogin = 1, +}; + +/** + * + * @type keytype + * @brief 发送消息的可靠有序类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMessageConfig) { + /** + * + * @brief 低延时可靠有序消息 + */ + + ByteRTCMessageConfigReliableOrdered = 0, + /** + * + * @brief 超低延时有序消息 + */ + + ByteRTCMessageConfigUnreliableOrdered = 1, + /** + * + * @brief 超低延时无序消息 + */ + + ByteRTCMessageConfigUnreliableUnordered = 2, +}; + +/** + * + * @type errorcode + * @brief 发送消息结果,成功或失败,及失败原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserMessageSendResult) { + /** + * + * @brief 发送消息成功。 + */ + + ByteRTCUserMessageSendResultSuccess = 0, + /** + * + * @brief 消息发送失败。发送超时。 + */ + + ByteRTCUserMessageSendResultTimeout = 1, + /** + * + * @brief 消息发送失败。连接断开,消息未发出。 + */ + + ByteRTCUserMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 消息发送失败。找不到接收方。 + */ + + ByteRTCUserMessageSendResultNoReceiver = 3, + /** + * + * @brief 消息发送失败。远端用户没有登录或进房。 + */ + + ByteRTCUserMessageSendResultNoRelayPath = 4, + /** + * + * @brief 消息发送失败。超过 QPS 限制。 + */ + + ByteRTCUserMessageSendResultExceedQPS = 5, + /** + * + * @brief 消息发送失败。应用服务器未收到客户端发送的消息。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + ByteRTCUserMessageSendResultE2BSSendFailed = 17, + /** + * + * @brief 消息发送失败。应用服务器接收到了客户端发送的消息,但响应失败。
    + * 由 `sendServerMessage`/`sendServerBinaryMessage` 触发,通过 `onServerMessageSendResult` 回调。 + */ + + ByteRTCUserMessageSendResultE2BSReturnFailed = 18, + /** + * + * @brief 消息发送失败。消息发送方没有加入房间。 + */ + + ByteRTCUserMessageSendResultNotJoin = 100, + /** + * + * @brief 消息发送失败。连接未完成初始化。 + */ + + ByteRTCUserMessageSendResultInit = 101, + /** + * + * @brief 消息发送失败。没有可用的数据传输通道连接。 + */ + + ByteRTCUserMessageSendResultNoConnection = 102, + /** + * + * @brief 消息发送失败。消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + ByteRTCUserMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 消息发送失败。接收方用户 ID 为空。 + */ + + ByteRTCUserMessageSendResultEmptyUser = 104, + /** + * + * @brief 消息发送失败。房间外或应用服务器消息发送方没有登录。 + */ + + ByteRTCUserMessageSendResultNotLogin = 105, + /** + * + * @brief 消息发送失败。发送消息给业务方服务器之前没有设置参数。 + */ + + ByteRTCUserMessageSendResultServerParamsNotSet = 106, + /** + * + * @brief 失败,未知错误。 + */ + + ByteRTCUserMessageSendResultUnknown = 1000, +}; + +/** + * + * @type keytype + * @brief 用户在线状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCUserOnlineStatus) { + /** + * + * @brief 对端用户离线
    + * 对端用户已经调用 `logout`,或者没有调用 login:uid:{@link #ByteRTCEngine#login:uid:} 进行登录 + */ + + ByteRTCUserOnlineStatusOffline = 0, + /** + * + * @brief 对端用户在线
    + * 对端用户调用 login:uid:{@link #ByteRTCEngine#login:uid:} 登录,并且连接状态正常 + */ + + ByteRTCUserOnlineStatusOnline = 1, + /** + * + * @brief 无法获取对端用户在线状态
    + * 发生级联错误、对端用户在线状态异常时返回 + */ + + ByteRTCUserOnlineStatusUnreachable = 2, +}; + +/** + * + * @type errorcode + * @brief 房间内广播消息发送结果 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRoomMessageSendResult) { + /** + * + * @brief 消息发送成功 + */ + + ByteRTCRoomMessageSendResultSuccess = 200, + /** + * + * @brief 发送超时,没有发送 + */ + + ByteRTCRoomMessageSendResultTimeout = 1, + /** + * + * @brief 通道断开,没有发送 + */ + + ByteRTCRoomMessageSendResultNetworkDisconnected = 2, + /** + * + * @brief 超过 QPS 限制 + */ + + ByteRTCRoomMessageSendResultExceedQPS = 5, + /** + * + * @brief 失败,发送方未加入房间 + */ + + ByteRTCRoomMessageSendResultNotJoin = 100, + /** + * + * @brief 失败,连接未完成初始化。 + */ + + ByteRTCRoomMessageSendResultInit = 101, + /** + * + * @brief 失败,没有可用的连接。 + */ + + ByteRTCRoomMessageSendResultNoConnection = 102, + /** + * + * @brief 消息超过最大长度。默认消息最大长度为 1 KB;若[启用了 RTS 高级功能](https: + */ + + ByteRTCRoomMessageSendResultExceedMaxLength = 103, + /** + * + * @brief 失败,未知错误。 + */ + + ByteRTCRoomMessageSendResultUnknown = 1000, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief SDK 的服务器环境。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCEnv) { + /** + * + * @brief 线上环境。 + */ + + ByteRTCEnvProduct = 0, + /** + * + * @brief BOE 环境。 + */ + + ByteRTCEnvBOE = 1, + /** + * + * @brief 测试环境。 + */ + + ByteRTCEnvTest = 2, +}; + +/** + * + * @type keytype + * @brief 本地日志输出等级。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalLogLevel) { + /** + * + * @brief 信息级别。 + */ + + ByteRTCLocalLogLevelInfo = 0, + /** + * + * @brief (默认值)警告级别。 + */ + + ByteRTCLocalLogLevelWarning = 1, + /** + * + * @brief 错误级别。 + */ + + ByteRTCLocalLogLevelError = 2, + /** + * + * @brief 关闭日志。 + */ + + ByteRTCLocalLogLevelNone = 3 +}; + +/** + * + * @type keytype + * @brief App 使用的 cpu 和 memory 信息
    + * 信息由 SDK 周期性(2s)地通过 `reportSysStats` 回调事件通知给用户。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSysStats : NSObject +/** + * + * @brief 当前系统 cpu 核数 + */ + +@property(assign, nonatomic) unsigned int cpuCores; +/** + * + * @brief 当前应用的 CPU 使用率,取值范围为 [0, 1]。 + */ + +@property(assign, nonatomic) double cpuAppUsage; +/** + * + * @hidden currently not available + * @brief 当前系统的 CPU 使用率,取值范围为 [0, 1]。 + */ + +@property(assign, nonatomic) double cpuTotalUsage; +/** + * + * @brief 当前 App 的内存使用(单位 MB) + */ + +@property(assign, nonatomic) double memoryUsage; +/** + * + * @brief 全量内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long fullMemory; +/** + * + * @brief 系统已使用内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long totalMemoryUsage; +/** + * + * @brief 空闲可分配内存(单位 MB) + */ + +@property(assign, nonatomic) unsigned long long freeMemory; +/** + * + * @brief 当前应用的内存使用率(单位 %) + */ + +@property(assign, nonatomic) double memoryRatio; +/** + * + * @brief 系统内存使用率(单位 %) + */ + +@property(assign, nonatomic) double totalMemoryRatio; +@end + +/** + * + * @type keytype + * @brief 本地日志参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLogConfig : NSObject +/** + * + * @brief 日志存储路径,必填。 + */ + +@property(copy, nonatomic) NSString *_Nonnull logPath; + +/** + * + * @brief 日志等级,参看 ByteRTCLocalLogLevel{@link #ByteRTCLocalLogLevel},默认为警告级别,选填。 + */ + +@property(assign, nonatomic) ByteRTCLocalLogLevel logLevel; + +/** + * + * @brief 日志文件最大占用的总空间,单位为 MB,选填。取值范围为 1~100 MB,默认值为 10 MB。
    + * 若 `logFileSize` < 1,取 1 MB。若 `logFileSize` > 100,取 100 MB。
    + * 其中,单个日志文件最大为 2 MB:
    + *
    • 若 1 ≤ logFileSize ≤ 2,则会生成一个日志文件。
    • 若 logFileSize > 2,假设 logFileSize/2 的整数部分为 N,则前 N 个文件,每个文件会写满 2 MB,第 N+1 个文件大小不超过 logFileSize mod 2,否则会删除最老的文件,以此类推。
    + */ + +@property(assign, nonatomic) int logFileSize; + +/** + * + * @brief 日志文件名前缀,选填。该字符串必须符合正则表达式:[a-zA-Z0-9_@\-\.]{1,128}。
    + * 最终的日志文件名为`前缀 + "_" + 文件创建时间 + "_rtclog".log`,如 `logPrefix_2023-05-25_172324_rtclog.log`。 + */ + +@property(copy, nonatomic) NSString *_Nonnull logFilenamePrefix; +@end + +/** + * + * @hidden for internal use only + * @type callback + * @brief 非业务相关的监控事件回调 + */ + +@protocol ByteRTCMonitorDelegate +@optional +/** + * + * @type callback + * @brief 埋点日志回调 + * @param data
    + * 具体的埋点内容 + * @param type
    + * 埋点的类型 + */ + +- (void)onMonitorLog:(NSDictionary * _Nullable)data withType:(NSString * _Nullable)type; + +/** + * + * @type api + * @brief 是否进行控制台输出 + * @return + * 返回是否进行控制台输出
    + * - YES 输出所有的日志到控制台 + * - NO 不输出任何控制台信息 + */ + +- (BOOL)isConsole; + +/** + * + * @type callback + * @brief 输出更多的调试信息。 + * @param level 日志等级,参看 ByteRTCLogLevel{@link #ByteRTCLogLevel}。 + * @param filename 日志文件名称。 + * @param tag 日志标签。 + * @param line 行数 + * @param funcName 函数名称 + * @param format 格式 + */ + +- (void)onVerboseLogWithLevel:(ByteRTCLogLevel)level + filename:(NSString * _Nonnull)filename + tag:(NSString * _Nonnull)tag + line:(int)line + functionName:(NSString * _Nonnull)funcName + format:(NSString * _Nonnull)format; +@end + +/** + * + * @type keytype + * @brief 云代理信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCCloudProxyInfo: NSObject +/** + * + * @type keytype + * @brief 云代理服务器 IP + */ + +@property(strong, nonatomic) NSString* _Nonnull cloudProxyIp; +/** + * + * @type keytype + * @brief 云代理服务器端口 + */ + +@property(assign, nonatomic) int cloudProxyPort; +@end + +/** + * + * @type keytype + * @brief 本地代理的类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyType) { + /** + * + * @brief Socks5 代理。选用此代理服务器,需满足 Socks5 协议标准文档的要求。 + */ + + ByteRTCLocalProxyTypeSocks5 = 1, + /** + * + * @brief Http 隧道代理。 + */ + + ByteRTCLocalProxyTypeHttpTunnel = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理配置详细信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalProxyInfo : NSObject +/** + * + * @brief 本地代理的类型,参看 ByteRTCLocalProxyType{@link #ByteRTCLocalProxyType}。 + */ + +@property(assign, nonatomic) ByteRTCLocalProxyType localProxyType; +/** + * + * @type keytype + * @brief 本地代理服务器 IP。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyIp; +/** + * + * @type keytype + * @brief 本地代理服务器端口。 + */ + +@property(assign, nonatomic) int localProxyPort; + /** + * + * @type keytype + * @brief 本地代理用户名。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyUsername; + /** + * + * @brief 本地代理密码。 + */ + +@property(copy, nonatomic) NSString * _Nullable localProxyPassword; +@end + +/** + * + * @type keytype + * @brief 本地代理连接状态。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyState) { + /** + * + * @brief TCP 代理服务器连接成功。 + */ + + ByteRTCLocalProxyStateInited = 0, + + /** + * + * @brief 本地代理连接成功。 + */ + + ByteRTCLocalProxyStateConnected = 1, + + /** + * + * @brief 本地代理连接出现错误。 + */ + + ByteRTCLocalProxyStateError = 2, +}; + +/** + * + * @type keytype + * @brief 本地代理错误。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCLocalProxyError) { + /** + * + * @brief 本地代理服务器无错误。 + */ + + ByteRTCLocalProxyErrorOK = 0, + + /** + * + * @brief 代理服务器回复的版本号不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5VersionError = 1, + + /** + * + * @brief 代理服务器回复的格式错误不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5FormatError = 2, + + /** + * + * @brief 代理服务器回复的字段值不符合 Socks5 协议标准文档的规定,导致 Socks5 代理连接失败。请检查代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5InvalidValue = 3, + + /** + * + * @brief 未提供代理服务器的用户名及密码,导致 Socks5 代理连接失败。请重新调用 `setLocalProxy`,在设置本地代理时填入用户名和密码。 + */ + + ByteRTCLocalProxyErrorSocks5UserPassNotGiven = 4, + + /** + * + * @brief TCP 关闭,导致 Socks5 代理连接失败。请检查网络或者代理服务器是否存在异常。 + */ + + ByteRTCLocalProxyErrorSocks5TcpClosed = 5, + + /** + * + * @brief Http 隧道代理错误。请检查 Http 隧道代理服务器或者网络是否存在异常。 + */ + + ByteRTCLocalProxyErrorHttpTunnelFailed = 6, +}; + +/** + * + * @type keytype + * @brief 创建引擎参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEngineConfig: NSObject +/** + * + * @brief 每个应用的唯一标识符。只有使用相同的 app_id 生成的实例,才能够进行音视频通信。 + */ + +@property(copy, nonatomic) NSString* _Nonnull appID; + +/** + * + * @brief 是否是游戏场景。 + */ + +@property(assign, nonatomic) BOOL isGameScene; + +/** + * + * @brief 私有参数。如需使用请联系技术支持人员。 + */ + +@property(copy, nonatomic) NSDictionary* _Nullable parameters; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h new file mode 100644 index 0000000..548c8c0 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCScreenCapturerExt.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. +*/ + +#pragma once + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +#define BYTE_RTC_EXPORT __attribute__((visibility("default"))) +/** + * + * @type callback + * @brief 屏幕采集相关扩展协议,仅适用于 SDK 内部采集。
    + * 用户创建 extension 后生成的 SampleHandler 需继承此协议以实现屏幕共享相关能力。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +BYTE_RTC_EXPORT @protocol ByteRtcScreenCapturerExtDelegate +/** + * + * @type api + * @brief 通知 Broadcast Upload Extension 停止采集屏幕并退出。 + * @note iOS 端调用 stopScreenCapture{@link #ByteRTCEngine#stopScreenCapture},或 macOS 端调用 stopScreenVideoCapture{@link #ByteRTCEngine#stopScreenVideoCapture},会触发该方法通知 extension 端的 SDK 停止屏幕采集。 + * @list 视频管理 + */ + +- (void)onQuitFromApp; +/** + * + * @type api + * @brief Socket 收到 App 侧发来的信息时,触发该回调 + * @param message App 侧发送的消息 + * @list 视频管理 + */ + +- (void)onReceiveMessageFromApp:(NSData *)message; +/** + * + * @type api + * @brief Socket 连接断开时触发此回调 + * @list 视频管理 + */ + +- (void)onSocketDisconnect; +/** + * + * @type api + * @brief Socket 连接成功时触发此回调 + * @list 视频管理 + */ + +- (void)onSocketConnect; +/** + * + * @type api + * @brief 检测到 App 正在进行音视频通话时触发此回调。 + * @list 视频管理 + */ + +- (void)onNotifyAppRunning; +@end + +/** + * + * @type keytype + * @brief 屏幕采集相关扩展实例,仅适用于 SDK 内部采集。
    + * 用户创建 extension 后生成的 SampleHandler 需通过此实例实现屏幕共享相关能力。 + */ + +BYTE_RTC_EXPORT @interface ByteRtcScreenCapturerExt : NSObject +/** + * + * @type keytype + * @brief 只读变量,用于获取 ByteRtcScreenCapturerExt 实例。 + */ + +@property (readonly, class) ByteRtcScreenCapturerExt *shared; +/** + * + * @type keytype + * @brief ByteRtcScreenCapturerExt 实例的回调代理。 + */ + +@property (nonatomic, weak, nullable) NSObject *delegate; +/** + * + * @type api + * @brief 开始屏幕采集
    + * Extension 启动后,系统将自动调用该方法开启屏幕采集。 + * @param delegate 回调代理,参看 ByteRtcScreenCapturerExtDelegate{@link #ByteRtcScreenCapturerExtDelegate} + * @param groupId App groups 中配置的 group ID + * @list 视频管理 + */ + +- (void)startWithDelegate:(NSObject *)delegate groupId:(NSString *)groupId; +/** + * + * @type api + * @brief 结束屏幕采集
    + * Extension 关闭后,系统将自动调用该方法停止屏幕采集。 + * @list 视频管理 + */ + +- (void)stop; +/** + * + * @type api + * @brief 推送 Extension 采集的数据 + * @param sampleBuffer 采集到的数据 + * @param sampleBufferType 数据类型 + * @list 视频管理 + */ + +- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType API_AVAILABLE(ios(10)); +@end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h new file mode 100644 index 0000000..28d841d --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSingScoringManager.h @@ -0,0 +1,145 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCAudioMixingManager +*/ + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type callback + * @brief K 歌评分事件回调类。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCSingScoringDelegate +@required +/** + * + * @type callback + * @brief 实时评分信息回调。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 后,会收到该回调。 + * @param info 实时评分信息。详见 ByteRTCSingScoringRealtimeInfo{@link #ByteRTCSingScoringRealtimeInfo}。 + * @list 在线 KTV + */ + +- (void)onCurrentScoringInfo:(ByteRTCSingScoringRealtimeInfo * _Nullable)info; +@end +/** + * + * @type api + * @brief K 歌评分管理接口。 + * @list Online Karaoke + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSingScoringManager :NSObject +/** + * + * @type api + * @brief 初始化 K 歌评分。 + * @param singScoringAppkey K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param singScoringToken K 歌评分密钥,用于鉴权验证 K 歌功能是否开通。 + * @param delegate K 歌评分事件回调类,详见 ByteRTCSingScoringDelegate{@link #ByteRTCSingScoringDelegate}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note 输入正确的鉴权信息才可以使用 K 歌评分相关的功能,鉴权方式为离线鉴权,根据包名(bundleID)绑定 Appkey 及 Token,K 歌评分密钥请联系技术支持人员申请。 + * @list 在线 KTV + */ + +-(int)initSingScoring:(NSString * _Nullable)singScoringAppkey + singScoringToken:(NSString * _Nullable)singScoringToken + delegate:(id _Nullable)delegate; +/** + * + * @type api + * @brief 设置 K 歌评分参数。 + * @param config K 歌评分的各项参数,详见 ByteRTCSingScoringConfig{@link #ByteRTCSingScoringConfig}。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @list 在线 KTV + */ + +-(int)setSingScoringConfig:(ByteRTCSingScoringConfig * _Nullable)config; +/** + * + * @type api + * @brief 获取标准音高数据。 + * @param midiFilepath 歌曲 midi 文件路径。 + * @return ByteRTCStandardPitchInfo{@link #ByteRTCStandardPitchInfo} 标准音高数据数组。 + * @note + * - 请保证此接口传入的 midi 文件路径与 setSingScoringConfig:{@link #ByteRTCSingScoringManager#setSingScoringConfig:} 接口中传入的路径一致。 + * @list 在线 KTV + */ + +-(NSArray * _Nullable)getStandardPitchInfo:(NSString* _Nullable)midiFilepath; +/** + * + * @type api + * @brief 开始 K 歌评分。 + * @param position 开始评分时,音乐的播放进度,单位:ms。 + * @param scoringInfoInterval 实时回调的时间间隔,单位:ms;默认 50 ms。最低间隔为 20 ms。 + * @return + * - 0:配置成功。 + * - -1:接口调用失败。 + * - -2:未集成 K 歌评分模块。 + * - >0:其他错误,具体参看[错误码表](https: + * @note + * - 在调用 initSingScoring:singScoringToken:delegate:{@link #ByteRTCSingScoringManager#initSingScoring:singScoringToken:delegate:} 初始化 K 歌评分功能后调用该接口。 + * - 调用该接口后,将会根据设置的回调时间间隔,收到评分结果 onCurrentScoringInfo:{@link #ByteRTCSingScoringDelegate#onCurrentScoringInfo:} 回调。 + * - 如果使用 `ByteRTCMediaPlayer` 播放伴奏,请在收到 onMediaPlayerStateChanged:state:error:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerStateChanged:state:error:} 回调且播放状态为 ByteRTCPlayerStatePlaying 后,调用此接口。 + * @list 在线 KTV + */ + +-(int)startSingScoring:(int)position + scoringInfoInterval:(int)scoringInfoInterval; +/** + * + * @type api + * @brief 停止 K 歌评分。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 在线 KTV + */ + +-(int)stopSingScoring; +/** + * + * @type api + * @brief 获取上一句的演唱评分。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 开始评分后可以调用该接口。 + * @return + * - <0:获取评分失败。 + * - >=0:上一句歌词的演唱评分。 + * @list 在线 KTV + */ + +-(int)getLastSentenceScore; +/** + * + * @type api + * @brief 获取当前演唱总分。调用 startSingScoring:scoringInfoInterval:{@link #ByteRTCSingScoringManager#startSingScoring:scoringInfoInterval:} 开始评分后可以调用该接口。 + * @return + * - <0:获取总分失败。 + * - >=0:当前演唱总分。 + * @list 在线 KTV + */ + + -(int)getTotalScore; + /** + * + * @type api + * @brief 获取当前演唱歌曲的平均分。 + * @return + * - <0:获取平均分失败。 + * - >=0:当前演唱平均分。 + * @list 在线 KTV + */ + +-(int)getAverageScore; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h new file mode 100644 index 0000000..94cf1cb --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCSpatialAudio.h @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @company ByteDance.Inc + * @brief spatial audio interface + */ + +#pragma once + +#import +#import "ByteRTCAudioDefines.h" +/** + * + * @type api + * @brief 空间音频接口实例 + * @list + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSpatialAudio : NSObject +/** + * + * @type api + * @brief 开启/关闭空间音频功能。 + * @param enable 是否开启空间音频功能:
    + * - YES:开启 + * - NO:关闭(默认) + * @note 该方法仅开启空间音频功能,你须调用 updateSelfPosition:{@link #ByteRTCSpatialAudio#updateSelfPosition:} 设置自身位置坐标后方可收听空间音频效果。空间音频相关 API 和调用时序详见[空间音频](https: + * @list 音频处理 + */ + +- (void)enableSpatialAudio:(BOOL)enable; +/** + * + * @type api + * @brief 关闭本地用户朝向对本地用户发声效果的影响。
    + * 调用此接口后,房间内的其他用户收听本地发声时,声源都在收听者正面。 + * @note + * - 调用本接口关闭朝向功能后,在当前的空间音频实例的生命周期内无法再次开启。 + * - 调用此接口不影响本地用户收听朝向的音频效果。要改变本地用户收听朝向,参看 updateSelfPosition:{@link #ByteRTCSpatialAudio#updateSelfPosition:} 和 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:}。 + * @list 高级功能 + */ + +-(void)disableRemoteOrientation; +/** + * + * @valid since 3.52 + * @type api + * @brief 设置本地用户在自建空间直角坐标系中的收听坐标和收听朝向,以实现本地用户预期的空间音频收听效果。 + * @param positionInfo 空间音频位置信息。参看 ByteRTCPositionInfo{@link #ByteRTCPositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验本地用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * - 该方法需在进房后调用。 + * - 调用该接口更新坐标前,你需调用 enableSpatialAudio:{@link #ByteRTCSpatialAudio#enableSpatialAudio:} 开启空间音频功能。空间音频相关 API 和调用时序详见[空间音频](https: + * - 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 高级功能 + */ + +-(int)updateSelfPosition:(ByteRTCPositionInfo* _Nonnull)positionInfo; +/** + * + * @valid since 3.52 + * @type api + * @brief 设置房间内某一远端用户在本地用户自建的空间音频坐标系中的发声位置和发声朝向,以实现本地用户预期的空间音频收听效果。 + * @param uid 用户 ID + * @param positionInfo 远端用户的空间音频位置信息。参看 ByteRTCPositionInfo{@link #ByteRTCPositionInfo}。 + * @return + * - 0:成功。 + * - <0:失败。 + * - -2: 失败,原因是校验远端用户的三维朝向信息时,三个向量没有两两垂直。 + * @note + * 该方法需在创建房间后调用。
    + * 调用此接口在本地进行的设定对其他用户的空间音频收听效果不会产生任何影响。 + * @list 音频管理 + */ + +-(int)updateRemotePosition:(NSString * _Nonnull)uid + positionInfo:(ByteRTCPositionInfo* _Nonnull)positionInfo; +/** + * + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:} 为某一远端用户设置的空间音频效果。 + * @param uid 远端用户 ID。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + +-(int)removeRemotePosition:(NSString * _Nonnull)uid; +/** + * + * @valid since 3.52 + * @type api + * @brief 移除调用 updateRemotePosition:positionInfo:{@link #ByteRTCSpatialAudio#updateRemotePosition:positionInfo:} 为所有远端用户设置的空间音频效果。 + * @return + * - 0:成功。 + * - <0:失败。 + * @list 高级功能 + */ + +-(int)removeAllRemotePosition; +@end \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h new file mode 100644 index 0000000..967a779 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefines.h @@ -0,0 +1,5660 @@ +/* + * Copyright (c) 2022 The VolcEngineRTC project authors. All Rights Reserved. + * @brief Objective-C VolcEngineRTC Video Defines +*/ + +#import "ByteRTCAudioDefines.h" +#import "ByteRTCMediaDefines.h" + +#pragma mark - ByteRTCVideoSource +/** + * + * @type keytype + * @hidden + * @brief 视频源。预留参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSource : NSObject + +@end + +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRenderMode) { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + ByteRTCRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + ByteRTCRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + ByteRTCRenderModeFill = 3, +}; + +/** + * + * @type keytype + * @brief 视频流类型
    + * 目前 C++ SDK 只支持 ByteRTCVideoStreamTypeHigh 类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamType) { + /** + * + * @brief 高分辨率视频流 + */ + + ByteRTCVideoStreamTypeHigh = 0, + /** + * + * @brief 低分辨率视频 + */ + + ByteRTCVideoStreamTypeLow = 1, +}; + +/** + * + * @type keytype + * @brief 设置本地视频属性的返回状态。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamState) { + /** + * + * @brief 设置本地视频属性成功 + */ + + ByteRTCVideoStreamStateSuccess = 0, + /** + * + * @brief 本地视频属性参数不合法 + */ + + ByteRTCVideoStreamStateInvalid = -2, +}; + +/** + * + * @type keytype + * @brief 视频输出方向模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoOutputOrientationMode) { + /** + * + * @brief 自适应布局 + */ + + ByteRTCVideoOutputOrientationModeAdaptative = 0, + /** + * + * @brief 横屏布局 + */ + + ByteRTCVideoOutputOrientationModeFixedLandscape = 1, + /** + * + * @brief 竖屏布局 + */ + + ByteRTCVideoOutputOrientationModeFixedPortrait = 2, +}; + +/** + * + * @type keytype + * @brief 视频帧朝向 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoOrientation) { + /** + * + * @brief (默认)使用相机输出的原始视频帧的角度,不对视频帧进行额外旋转。 + */ + + ByteRTCVideoOrientationAdaptive = 0, + /** + * + * @brief 固定为竖屏,将相机采集到的视频帧转换为竖屏,在整个 RTC 链路中传递竖屏帧。 + */ + + ByteRTCVideoOrientationPortrait = 1, + /** + * + * @brief 固定为横屏,将相机采集到的视频帧转换为横屏,在整个 RTC 链路中传递横屏帧。 + */ + + ByteRTCVideoOrientationLandscape = 2 +}; + +/** + * + * @hidden + * @type keytype + * @deprecated since 3.29 and will be deleted in 3.51, use ByteRTCMirrorType{@link #ByteRTCMirrorType} instead. + * @brief 是否开启镜像模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMirrorMode) { + /** + * + * @brief 不开启 + */ + + ByteRTCMirrorModeOff = 0, + /** + * + * @brief 开启 + */ + + ByteRTCMirrorModeOn = 1, +}; + +/** + * + * @type keytype + * @brief 镜像类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMirrorType) { + /** + * + * @brief 本地预览和编码传输时均无镜像效果 + */ + + ByteRTCMirrorTypeNone = 0, + /** + * + * @brief 本地预览时有镜像效果,编码传输时无镜像效果 + */ + + ByteRTCMirrorTypeRender = 1, + /** + * + * @brief 本地预览时无镜像效果,仅编码传输时有镜像效果 + */ + + ByteRTCMirrorTypeEncoder = 2, + /** + * + * @brief 本地预览和编码传输时均有镜像效果 + */ + + ByteRTCMirrorTypeRenderAndEncoder = 3, +}; + +/** + * + * @type keytype + * @brief 远端流的镜像类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCRemoteMirrorType) { + /** + * + * @brief (默认值)远端视频渲染无镜像效果。 + */ + + ByteRTCRemoteMirrorTypeNone = 0, + /** + * + * @brief 远端视频渲染有镜像效果。 + */ + + ByteRTCRemoteMirrorTypeRender = 1, +}; + +/** + * + * @type keytype + * @brief 截图错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSnapshotErrorCode) { + /** + * + * @brief 截图成功。 + */ + + ByteRTCSnapshotErrorCodeOk = 0, + /** + * + * @brief 截图错误。生成图片数据失败或 RGBA 编码失败。 + */ + + ByteRTCSnapshotErrorCodeCreateFail = -1, + /** + * + * @brief 截图错误。流无效。 + */ + + ByteRTCSnapshotErrorCodeStreamInvalid = -2, + /** + * + * @brief 截图错误。截图超时,超时时间 1 秒。 + */ + + ByteRTCSnapshotErrorCodeTimeout = -3, + /** + * + * @brief 截图错误。图片保存失败。 + */ + + ByteRTCSnapshotErrorCodeFileSaveError = -4 +}; +/** + * + * @type keytype + * @brief 基础美颜模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCEffectBeautyMode) { + /** + * + * @brief 美白。 + */ + + ByteRTCEffectBeautyModeWhite = 0, + /** + * + * @brief 磨皮。 + */ + + ByteRTCEffectBeautyModeSmooth = 1, + /** + * + * @brief 锐化。 + */ + + ByteRTCEffectBeautyModeSharpen = 2, + /** + * + * @valid since 3.55 + * @brief 清晰,需集成 v4.4.2+ 版本的特效 SDK。 + */ + + ByteRTCEffectBeautyModeClear = 3, +}; + +/** + * + * @type keytype + * @brief 视频帧旋转信息 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoRotation) { + /** + * + * @brief 不旋转 + */ + + ByteRTCVideoRotation0 = 0, + /** + * + * @brief 顺时针旋转 90 度 + */ + + ByteRTCVideoRotation90 = 90, + /** + * + * @brief 顺时针旋转 180 度 + */ + + ByteRTCVideoRotation180 = 180, + /** + * + * @brief 顺时针旋转 270 度 + */ + + ByteRTCVideoRotation270 = 270, +}; + +/** + * + * @type keytype + * @brief 发布大小流模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSimulcastMode) { + /** + * + * @brief 单流模式。始终只有 1 路分辨率的流。 + */ + + ByteRTCVideoSimulcastModeOnlyOne = 0, + /** + * + * @brief 按需订阅模式。发送端会根据订阅端的状态,按需发布。无订阅偏好设置默认发送 2 路。 + */ + + ByteRTCVideoSimulcastModeOnDemand, + /** + * + * @brief 订阅弱流。发送端始终按照设置的参数发布所有大小流。默认发送 2 路。 + */ + + ByteRTCVideoSimulcastModeAlwaysSimulcast, +}; + + +/** + * + * @type keytype + * @brief 订阅大小流偏好 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSimulcastStreamType) { + /** + * + * @brief 弱流,最小分辨率的流。 + */ + + ByteRTCVideoSimulcastStreamTypeWeak = 0, + /** + * + * @brief 小流 + */ + + ByteRTCVideoSimulcastStreamTypeLow, + /** + * + * @brief 中流 + */ + + ByteRTCVideoSimulcastStreamTypeMid, + /** + * + * @brief 大流 + */ + + ByteRTCVideoSimulcastStreamTypeHigh, +}; + +/** + * + * @type keytype + * @brief 自定义视频前处理(Video Processor)的作用范围,包括仅预览、仅编码和同时预览与编码。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCProcessorActionDomain) { + /** + * + * @brief 处理后的视频帧同时用于本地预览和推流编码。 + */ + + ByteRTCProcessorActionDomainPreviewAndEncode = 0, + /** + * + * @brief 处理后的视频帧仅用于本地预览。 + */ + + ByteRTCProcessorActionDomainPreview = 1, + /** + * + * @brief 处理后的视频帧仅用于推流编码。 + */ + + ByteRTCProcessorActionDomainEncode = 2 +}; + +/** + * + * @type keytype + * @brief 视频帧像素格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoPixelFormat) { + /** + * + * @brief 未知格式 + */ + + ByteRTCVideoPixelFormatUnknown = 0, + /** + * + * @brief YUV I420 格式 + */ + + ByteRTCVideoPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + ByteRTCVideoPixelFormatNV12 = 2, + /** + * + * @brief YUV NV21 格式 + */ + + ByteRTCVideoPixelFormatNV21 = 3, + /** + * + * @brief RGB 24bit 格式, + */ + + ByteRTCVideoPixelFormatRGB24 = 4, + /** + * + * @brief RGBA 编码格式 + */ + + ByteRTCVideoPixelFormatRGBA = 5, + /** + * + * @brief ARGB 编码格式 + */ + + ByteRTCVideoPixelFormatARGB = 6, + /** + * + * @brief BGRA 编码格式 + */ + + ByteRTCVideoPixelFormatBGRA = 7, + + + /** + * + * @brief 像素格式结束标志。新加的格式数值应该小于ByteRTCVideoPixelFormatEndMark。 + */ + + ByteRTCVideoPixelFormatEndMark = 0xFF, + + /** + * + * @brief Texture2D 格式 + */ + + ByteRTCVideoPixelFormatTexture2D = 0x0DE1, + /** + * + * @brief TextureOES 格式 + */ + + ByteRTCVideoPixelFormatTextureOES = 0x8D65, +}; +/** + * + * @type keytype + * @brief 视频帧缓冲区类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoBufferType) { + /** + * + * @brief 原始内存数据 + */ + + ByteRTCVideoBufferTypeRawMemory = 0, + /** + * + * @brief CVPixelBufferRef 类型 + */ + + ByteRTCVideoBufferTypeCVPixelBuffer = 1, + /** + * + * @brief OpenGL 纹理数据类型 + */ + + ByteRTCVideoBufferTypeGLTexture = 2, + /** + * + * @brief cuda 数据类型 + */ + + ByteRTCVideoBufferTypeCuda = 3, + /** + * + * @brief direct3d11 纹理 + */ + + ByteRTCVideoBufferTypeD3D11 = 4, + /** + * + * @brief vaapi 数据格式 + */ + + ByteRTCVideoBufferTypeVAAPI = 5, + /** + * + * @hidden(Windows) + * @brief nvidia jetson dma 数据格式 + */ + + ByteRTCVideoBufferTypeNvidiaJetsonDma =6, +}; +/** + * + * @type keytype + * @brief 视频内容类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoContentType) { + /** + * + * @brief 普通视频 + */ + + ByteRTCVideoContentTypeNormalFrame = 0, + /** + * + * @brief 黑帧视频 + */ + + ByteRTCVideoContentTypeBlackFrame = 1, +}; + +/** + * + * @type keytype + * @brief 视频帧缩放模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoStreamScaleMode) { + /** + * + * @brief 自动缩放模式,默认设置为 ByteRTCVideoStreamScaleModeFitWithCropping。 + */ + + ByteRTCVideoStreamScaleModeAuto = 0, + /** + * + * @brief 对视频帧进行缩放,直至充满和视窗分辨率一致为止。这一过程不保证等比缩放。 + */ + + ByteRTCVideoStreamScaleModeStretch = 1, + /** + * + * @brief 视窗填满优先。
    + * 视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。 + */ + + ByteRTCVideoStreamScaleModeFitWithCropping = 2, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
    + * 缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。保持纵横比来缩放图像,填充短边 + */ + + ByteRTCVideoStreamScaleModeFitWithFilling = 3, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 视频编码模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCodecMode) { + /** + * + * @brief 自动选择 + */ + + ByteRTCVideoCodecModeAuto = 0, + /** + * + * @brief 硬编码 + */ + + ByteRTCVideoCodecModeHardware = 1, + /** + * + * @brief 软编码 + */ + + ByteRTCVideoCodecModeSoftware = 2 +}; + +/** + * + * @type keytype + * @brief 编码帧类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoPictureType) { + /** + * + * @brief 未知类型 + */ + + ByteRTCVideoPictureTypeUnknown = 0, + /** + * + * @brief I 帧,关键帧,编解码不需要参考其他视频帧 + */ + + ByteRTCVideoPictureTypeI = 1, + /** + * + * @brief P 帧,向前参考帧,编解码需要参考前一帧视频帧 + */ + + ByteRTCVideoPictureTypeP = 2, + /** + * + * @brief B 帧,前后参考帧,编解码需要参考前后两帧视频帧 + */ + + ByteRTCVideoPictureTypeB = 3, +}; + +/** + * + * @type keytype + * @brief 编码策略偏好。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoEncoderPreference) { + /** + * + * @brief 无偏好。不降低帧率和分辨率。 + */ + + ByteRTCVideoEncoderPreferenceDisabled = 0, + /** + * + * @brief 优先保障帧率。适用于动态画面。 + */ + + ByteRTCVideoEncoderPreferenceMaintainFramerate = 1, + /** + * + * @brief 清晰模式,优先保障分辨率。适用于静态画面。 + */ + + ByteRTCVideoEncoderPreferenceMaintainQuality = 2, + /** + * + * @brief 平衡帧率与分辨率。 + * 对于屏幕流来说是无偏好。不降低帧率和分辨率。 + */ + + ByteRTCVideoEncoderPreferenceAuto = 3, +}; + + +/** + * + * @hidden + * @deprecated since 3.32 and will be deleted in 3.51, use ByteRTCVirtualBackgroundSourceType{@link #ByteRTCVirtualBackgroundSourceType} instead. + * @type keytype + * @brief 背景模式设置。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCBackgroundMode) { + /** + * + * @brief 无 + */ + + ByteRTCBackgroundModeNone = 0, + /** + * + * @brief 虚化 + */ + + ByteRTCBackgroundModeBlur = 1, + /** + * + * @brief 背景 1 + */ + + ByteRTCBackgroundModeA = 2, + /** + * + * @brief 背景 2 + */ + + ByteRTCBackgroundModeB = 3, +}; + +/** + * + * @hidden + * @deprecated since 3.32 and will be deleted in 3.51. + * @type keytype + * @brief 分割模型设置。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCDivideModel) { + /** + * + * @brief 自研 + */ + + ByteRTCDivideModelDefault = 0, + /** + * + * @brief effect 分割模型 + */ + + ByteRTCDivideModelEffect = 1, +}; + +/** + * + * @type keytype + * @brief 数据类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCDataFrameType) { + /** + * + * @brief SEI 数据 + */ + + ByteRTCDataFrameTypeSei = 0, + /** + * + * @brief 人脸识别数据 + */ + + ByteRTCDataFrameTypeRoi = 1, + /** + * + * @brief 其他数据帧类型 + */ + + ByteRTCDataFrameTypeOther = 2, +}; + +/** + * + * @type keytype + * @brief 视频采集模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoCapturePreference) { + /** + * + * @brief (默认)自动设置采集参数。
    + * SDK 在开启采集时根据服务端下发的采集配置结合编码参数设置最佳采集参数。 + */ + + ByteRTCVideoCapturePreferenceAuto = 0, + /** + * + * @brief 手动设置采集参数,包括采集分辨率、帧率。 + */ + + ByteRTCVideoCapturePreferenceMannal = 1, + /** + * + * @brief 采集参数与编码参数一致 + */ + + ByteRTCVideoCapturePreferenceAutoPerformance = 2, +}; + +/** + * + * @type keytype + * @brief 视频帧类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoFrameType) { + /** + * + * @brief 视频帧类型:内存数据 + */ + + ByteRTCVideoFrameTypeRawMemory = 0, + /** + * + * @brief 视频帧类型:CVPixelBuffer + */ + + ByteRTCVideoFrameTypePixelBuffer, +}; + + +/** + * + * @type keytype + * @brief 本地视频帧回调位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCLocalVideoSinkPosition) { + /** + * + * @brief 采集后。 + */ + + ByteRTCLocalVideoSinkPositionAfterCapture = 0, + /** + * + * @brief (默认值)前处理后。 + */ + + ByteRTCLocalVideoSinkPositionAfterPreprocess = 1 +}; + +/** + * + * @type keytype + * @brief 远端视频帧回调位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRemoteVideoSinkPosition) { + /** + * + * @hidden not available + * @brief 解码后。 + */ + + ByteRTCRemoteVideoSinkPositionAfterDecoder = 0, + /** + * + * @brief (默认值)后处理后。 + */ + + ByteRTCRemoteVideoSinkPositionAfterPostprocess = 1 +}; + +/** + * + * @type keytype + * @brief 视频帧编码格式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSinkPixelFormat) { + /** + * + * @brief 原始视频帧格式 + */ + + ByteRTCVideoSinkPixelFormatOriginal = 0, + /** + * + * @brief YUV I420 格式 + */ + + ByteRTCVideoSinkPixelFormatI420 = 1, + /** + * + * @brief YUV NV12 格式 + */ + + ByteRTCVideoSinkPixelFormatNV12 = 2, + /** + * + * @brief RGBA 格式, 字节序为 R8 G8 B8 A8 + */ + + ByteRTCVideoSinkPixelFormatRGBA = 5, + /** + * + * @brief BGRA 格式 + */ + + ByteRTCVideoSinkPixelFormatBGRA = 7 +}; + +/** + * + * @type keytype + * @brief 是否将视频帧自动转正。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoApplyRotation) { + /** + * + * @brief (默认值)不旋转。 + */ + + ByteRTCVideoApplyRotationDefault = -1, + /** + * + * @brief 自动转正视频,即根据视频帧的旋转角信息将视频帧旋转到 0 度。 + */ + + ByteRTCVideoApplyRotation0 = 0 +}; + +/** + * + * @type keytype + * @brief 是否将视频帧镜像。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSinkMirrorType) { + /** + * + * @brief 开启镜像。 + */ + + ByteRTCVideoSinkMirrorTypeOn = 1, + /** + * + * @brief (默认值)不开启镜像。 + */ + + ByteRTCVideoSinkMirrorTypeOff = 2, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 超分状态改变原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSuperResolutionModeChangedReason) { + /** + * + * @brief 调用 setRemoteVideoSuperResolution:withMode:{@link #ByteRTCEngine#setRemoteVideoSuperResolution:withMode:} 成功关闭超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonAPIOff = 0, + /** + * + * @brief 调用 setRemoteVideoSuperResolution:withMode:{@link #ByteRTCEngine#setRemoteVideoSuperResolution:withMode:} 成功开启超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonAPIOn = 1, + /** + * + * @brief 开启超分失败,远端视频流的原始视频分辨率超过 640 × 360 px。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonResolutionExceed = 2, + /** + * + * @brief 开启超分失败,已对一路远端流开启超分。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOverUse = 3, + /** + * + * @brief 设备不支持使用超分辨率。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonDeviceNotSupport = 4, + /** + * + * @brief 当前设备性能存在风险,已动态关闭 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonDynamicClose = 5, + /** + * + * @brief 超分因其他原因关闭。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOtherSettingDisabled = 6, + /** + * + * @brief 超分因其他原因开启。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonOtherSettingEnabled = 7, + /** + * + * @brief SDK 没有编译超分组件。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonNoComponent = 8, + /** + * + * @brief 远端流不存在。房间 ID 或用户 ID 无效,或对方没有发布流。 + */ + + ByteRTCVideoSuperResolutionModeChangedReasonStreamNotExist = 9, +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 视频降噪模式状态改变原因。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDenoiseModeChangedReason) { + /** + * + * @brief 未知原因导致视频降噪状态改变。 + */ + + ByteRTCVideoDenoiseModeChangedReasonNull = -1, + /** + * + * @brief 通过调用 setVideoDenoiser:{@link #ByteRTCEngine#setVideoDenoiser:} 成功关闭视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonApiOff = 0, + /** + * + * @brief 通过调用 setVideoDenoiser:{@link #ByteRTCEngine#setVideoDenoiser:} 成功开启视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonApiOn = 1, + /** + * + * @brief 后台未配置视频降噪,视频降噪开启失败,请联系技术人员解决。 + */ + + ByteRTCVideoDenoiseModeChangedReasonConfigDisabled = 2, + /** + * + * @brief 后台配置开启了视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonConfigEnabled = 3, + /** + * + * @brief 由于内部发生了异常,视频降噪关闭。 + */ + + ByteRTCVideoDenoiseModeChangedReasonInternalException = 4, + /** + * + * @brief 当前设备性能过载,已动态关闭视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonDynamicClose = 5, + /** + * + * @brief 当前设备性能裕量充足,已动态开启视频降噪。 + */ + + ByteRTCVideoDenoiseModeChangedReasonDynamicOpen = 6, + /** + * + * @brief 分辨率导致视频降噪状态发生改变。分辨率过高会导致性能消耗过大,从而导致视频降噪关闭。如若希望继续使用视频降噪,可选择降低分辨率。 + */ + + ByteRTCVideoDenoiseModeChangedReasonResolution = 7, +}; +#pragma mark CDN/WTN ENUM +/** + * + * @type keytype + * @brief 转推任务事件 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamTaskEvent) { + /** + * + * @hidden for internal use only + */ + + ByteRTCMixedStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + ByteRTCMixedStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + ByteRTCMixedStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务更新成功。 + */ + + ByteRTCMixedStreamTaskEventUpdateSuccess = 3, + /** + * + * @brief 任务更新失败。 + */ + + ByteRTCMixedStreamTaskEventUpdateFailed = 4, + /** + * + * @brief 任务停止。 + */ + + ByteRTCMixedStreamTaskEventStopSuccess = 5, + /** + * + * @brief 结束任务失败。 + */ + + ByteRTCMixedStreamTaskEventStopFailed = 6, + /** + * + * @brief Warning 事件 + */ + + ByteRTCMixedStreamTaskEventWarning = 7, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 合流方式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamType) { + /** + * + * @brief 通过服务端合流 + */ + + ByteRTCMixedStreamByServer = 0, + /** + * + * @brief 端云一体合流。SDK 智能决策在客户端或服务端完成合流。
    + * 使用前,请联系技术支持同学开通,否则不生效。 + */ + + ByteRTCMixedStreamByClient = 1, +}; +/** + * + * @type keytype + * @brief 任务类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamPushTargetType) { + /** + * + * @brief 推到 CDN + */ + + ByteRTCMixedStreamPushTargetTypeToCDN = 0, + /** + * + * @brief WTN 流 + */ + + ByteRTCMixedStreamPushTargetTypeToWTN = 1, +}; +/** + * + * @type keytype + * @brief WTN 流的补帧模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCInterpolationMode) { + /** + * + * @type keytype + * @brief 补最后一帧 + */ + + ByteRTCInterpolationModeLastFrameFill = 0, + /** + * + * @type keytype + * @brief 补背景图片 + */ + + ByteRTCInterpolationModeBackgroundImageFill = 1, +}; +/** + * + * @type keytype + * @brief WTN 流的布局模式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCStreamLayoutMode) { + /** + * + * @brief 自动布局 + */ + + ByteRTCStreamLayoutModeAuto = 0, + /** + * + * @brief 自定义 + */ + + ByteRTCStreamLayoutModeCustom = 2, +}; +/** + * + * @hidden for internal use only + * @type keytype + * @brief 客户端合流回调视频格式。
    + * 设置为系统不支持的格式时,自动回调系统默认格式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamClientMixVideoFormat) { + /** + * + * @brief YUV I420。Android、Windows 默认回调格式。支持系统:Android、Windows。 + */ + + ByteRTCMixedStreamClientMixVideoFormatI420 = 0, + /** + * + * @brief OpenGL GL_TEXTURE_2D 格式纹理。支持系统:安卓。 + */ + + ByteRTCMixedStreamClientMixVideoFormatTexture2D = 1, + /** + * + * @brief CVPixelBuffer BGRA。iOS 默认回调格式。支持系统: iOS。 + */ + + ByteRTCMixedStreamClientMixVideoFormatCVPixelBufferBGRA = 2, + /** + * + * @brief YUV NV12。macOS 默认回调格式。支持系统: macOS。 + */ + + ByteRTCMixedStreamClientMixVideoFormatNV12 = 3, +}; + +/** + * + * @type keytype + * @brief 视频编码格式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamVideoCodecType) { + /** + * + * @brief H.264 格式,默认值。 + */ + + ByteRTCMixedStreamVideoCodecTypeH264 = 0, + /** + * + * @brief ByteVC1 格式。 + */ + + ByteRTCMixedStreamVideoCodecTypeByteVC1 = 1, +}; +/** + * + * @type keytype + * @brief 合流输出媒体类型。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamMediaType) { + /** + * + * @brief 包含音频和视频 + */ + + ByteRTCMixedStreamMediaTypeAudioAndVideo = 0, + /** + * + * @brief 只包含音频 + */ + + ByteRTCMixedStreamMediaTypeAudioOnly = 1, + /** + * + * @hidden currently not available + * @brief 只包含视频 + */ + + ByteRTCMixedStreamMediaTypeVideoOnly = 2, +}; +/** + * + * @type keytype + * @brief 图片或视频流的缩放模式。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamRenderMode) { + /** + * + * @brief 视窗填满优先,默认值。
    + * 视频尺寸等比缩放,直至视窗被填满。当视频尺寸与显示窗口尺寸不一致时,多出的视频将被截掉。 + */ + + ByteRTCMixedStreamRenderModeHidden = 1, + /** + * + * @brief 视频帧内容全部显示优先。
    + * 视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。 + */ + + ByteRTCMixedStreamRenderModeFit = 2, + /** + * + * @brief 视频帧自适应画布。
    + * 视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化。 + */ + + ByteRTCMixedStreamRenderModeAdaptive = 3, +}; +/** + * + * @type keytype + * @brief 合流布局区域类型,视频区或水印图片区。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamLayoutRegionType) { + + /** + * + * @brief 视频。 + */ + + ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0, + + /** + * + * @brief 水印图片。 + */ + + ByteRTCMixedStreamLayoutRegionTypeImage = 1, +}; + +/** + * + * @hidden internal use only + * @type keytype + * @brief 合流同步策略 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamSyncStrategy) { + /** + * + * @brief 不使用同步策略 + */ + + ByteRTCMixedStreamSyncStrategyNoSync = 0, + /** + * + * @brief 使用音频精准同步策略 + */ + + ByteRTCMixedStreamSyncStrategyAudioPreciseSync = 1, + /** + * + * @brief 使用单通模式同步策略 + */ + + ByteRTCMixedStreamSyncStrategySimplexModeSync = 2, +}; + +/** + * + * @type keytype + * @brief 预留字段。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMixedStreamVideoType) { + /** + * + * @hidden for internal use only + * @brief 主流。包括:
    + * - 由摄像头/麦克风通过内部采集机制,采集到的流 + * - 通过自定义采集,采集到的流。 + */ + + ByteRTCMixedStreamVideoTypeMain = 0, + + /** + * + * @hidden for internal use only + * @brief 屏幕流。 + */ + + ByteRTCMixedStreamVideoTypeScreen = 1, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推 SEI 内容。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamSEIContentMode) { + /** + * + * @brief 视频流中包含全部的 SEI 信息。默认设置。 + */ + + ByteRTCMixedStreamSEIContentModeDefault = 0, + /** + * + * @brief 随非关键帧传输的 SEI 数据中仅包含音量信息。
    + * 当设置 `ByteRTCMixedStreamControlConfig.enableVolumeIndication` 为 True 时,此参数设置生效。 + */ + + ByteRTCMixedStreamSEIContentModeEnableVolumeIndication = 1, +}; + +/** + * + * @type keytype + * @brief 服务端合流转推发起模式。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamPushMode) { + /** + * + * @brief 无用户发布媒体流时,发起合流任务无效。默认设置。 + * 当有用户发布媒体流时,才能发起合流任务。 + */ + + ByteRTCMixedStreamPushModeOnStream = 0, + /** + * + * @brief 无用户发布媒体流时,可以使用占位图发起合流任务。
    + * 占位图设置参看 alternateImageUrl{@link #ByteRTCMixedStreamLayoutRegionConfig#alternateImageUrl} 和 alternateImageFillMode{@link #ByteRTCMixedStreamLayoutRegionConfig#alternateImageFillMode} + */ + + ByteRTCMixedStreamPushModeOnStartRequest = 1, +}; +/** + * + * @type keytype + * @brief 服务端合流占位图填充模式。
    + * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。默认值为 `ByteRTCMixedStreamAlternateImageFillModeFit`,占位图跟随用户原始视频帧相同的比例缩放。
    + * 参看 ByteRTCMixedStreamAlternateImageFillMode{@link #ByteRTCMixedStreamAlternateImageFillMode}。
    + * WTN 流任务不支持设置本参数。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamAlternateImageFillMode) { + /** + * + * @brief 占位图跟随用户原始视频帧相同的比例缩放。默认设置。 + */ + + ByteRTCMixedStreamAlternateImageFillModeFit = 0, + /** + * + * @brief 占位图不跟随用户原始视频帧相同的比例缩放,保持图片原有比例。 + */ + + ByteRTCMixedStreamAlternateImageFillModeFill = 1, +}; +/** + * + * @type errorcode + * @brief 单流转推直播事件 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSingleStreamTaskEvent) { + /** + * + * @hidden for internal use only + */ + + ByteRTCSingleStreamTaskEventBase = 0, + /** + * + * @brief 任务发起成功。 + */ + + ByteRTCSingleStreamTaskEventStartSuccess = 1, + /** + * + * @brief 任务发起失败。 + */ + + ByteRTCSingleStreamTaskEventStartFailed = 2, + /** + * + * @brief 任务停止。 + */ + + ByteRTCSingleStreamTaskEventStopSuccess = 3, + /** + * + * @brief 结束任务失败。 + */ + + ByteRTCSingleStreamTaskEventStopFailed= 4, + /** + * + * @brief Warning 事件 + */ + + ByteRTCSingleStreamTaskEventWarning = 5, +}; + +/** + * + * @type errorcode + * @brief 单流转推直播错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSingleStreamTaskErrorCode) { + /** + * + * @brief 推流成功。 + */ + + ByteRTCSingleStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + ByteRTCSingleStreamTaskErrorCodeBase = 1090, + /** + * + * @brief 服务端合流错误 + */ + + ByteRTCSingleStreamTaskErrorCodeUnknownByServer = 1091, + /** + * + * @brief 任务处理超时,请检查网络状态并重试。 + */ + + ByteRTCSingleStreamTaskErrorCodeSignalRequestTimeout = 1092, + /** + * + * @brief 服务端检测任务参数不合法 + */ + + ByteRTCSingleStreamTaskErrorCodeInvalidParamByServer = 1093, + /** + * + * @brief 转推任务在目标房间的用户ID被踢出目标房间 + */ + + ByteRTCSingleStreamTaskErrorCodeRemoteKicked = 1094, + /** + * + * @brief 转推任务加入目标房间失败 + */ + + ByteRTCSingleStreamTaskErrorCodeJoinDestRoomFailed = 1095, + /** + * + * @brief 转推任务在源房间拉流超时 + */ + + ByteRTCSingleStreamTaskErrorCodeReceiveSrcStreamTimeout = 1096, + /** + * + * @brief 音视频编码转推任务不支持 + */ + + ByteRTCSingleStreamTaskErrorCodeNotSurportCodec = 1097, + /** + * + * @brief 转推到CDN失败 + */ + + ByteRTCSingleStreamTaskErrorCodePushToCDN = 1098, + /** + * + * @brief 超过单流转推的任务数限制(单主播可同时转推任务数不超过20) + */ + + ByteRTCSingleStreamTaskErrorCodeTaskCountOverLimit = 1099, +}; +/** + * + * @type keytype + * @brief 订阅媒体的类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCSubscribeMediaType) { + /** + * + * @brief 既不订阅音频,也不订阅视频 + */ + + ByteRTCSubscribeMediaTypeNone = 0, + /** + * + * @brief 只订阅音频,不订阅视频 + */ + + ByteRTCSubscribeMediaTypeAudioOnly = 1, + /** + * + * @brief 只订阅视频,不订阅音频 + */ + + ByteRTCSubscribeMediaTypeVideoOnly = 2, + /** + * + * @brief 同时订阅音频和视频 + */ + + ByteRTCSubscribeMediaTypeAudioAndVideo = 3, +}; + +/** + * + * @type keytype + * @brief 暂停/恢复接收远端的媒体流类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCPauseResumControlMediaType) { + /** + * + * @brief 只控制音频,不影响视频 + */ + + ByteRTCControlMediaTypeAudio = 0, + /** + * + * @brief 只控制视频,不影响音频 + */ + + ByteRtcControlMediaTypeVideo = 1, + /** + * + * @brief 同时控制音频和视频 + */ + + ByteRtcControlMediaTypeAudioAndVideo = 2, +}; + +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51. + * @type keytype + * @brief 视频输入类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMediaInputType) { + /** + * + * @brief 自定义采集。
    + * 设置完成后方可直接向 SDK 推送视频帧。 + */ + + ByteRTCMediaInputTypeExternal = 0, + /** + * + * @brief 内部 SDK 采集。
    + * 此设置仅切换至内部采集,你需继续调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 开启内部采集。 + */ + + ByteRTCMediaInputTypeInternal = 1 +}; + +/** + * + * @type keytype + * @brief 视频输入源类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoSourceType) { + /** + * + * @brief 自定义采集视频源 + */ + + ByteRTCVideoSourceTypeExternal = 0, + /** + * + * @brief 内部采集视频源 + */ + + ByteRTCVideoSourceTypeInternal = 1, + /** + * + * @brief 自定义编码视频源。
    + * 你仅需推送分辨率最大的一路编码后视频流,SDK 将自动转码生成多路小流 + */ + + ByteRTCVideoSourceTypeEncodedAutoSimulcast = 2, + /** + * + * @brief 自定义编码视频源。
    + * SDK 不会自动生成多路流,你需要自行生成并推送多路流 + */ + + ByteRTCVideoSourceTypeEncodedManualSimulcast = 3 +}; + +/** + * + * @type keytype + * @brief Alpha 通道相对于 RGB 通道数据的排列位置。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCAlphaLayout) { + /** + * + * @brief Alpha 数据置于 RGB 数据上方。 + */ + + ByteRTCAlphaLayoutTop = 0, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据下方。 + */ + + ByteRTCAlphaLayoutBottom = 1, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据左方。 + */ + + ByteRTCAlphaLayoutLeft = 2, + /** + * + * @hidden currently not available + * @brief Alpha 数据置于 RGB 数据右方。 + */ + + ByteRTCAlphaLayoutRight = 3, +}; + +/** + * + * @type keytype + * @brief 数码变焦参数类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCZoomConfigType) { + /** + * + * @brief 设置缩放系数 + */ + + ByteRTCZoomConfigTypeFocusOffset = 0, + /** + * + * @brief 设置移动步长 + */ + + ByteRTCZoomConfigTypeMoveOffset = 1 +}; + +/** + * + * @type keytype + * @brief 数字变焦操作类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCZoomDirectionType) { + /** + * + * @brief 相机向左移动 + */ + + ByteRTCZoomDirectionTypeMoveLeft = 0, + /** + * + * @brief 相机向右移动 + */ + + ByteRTCZoomDirectionTypeMoveRight = 1, + /** + * + * @brief 相机向上移动 + */ + + ByteRTCZoomDirectionTypeMoveUp = 2, + /** + * + * @brief 相机向下移动 + */ + + ByteRTCZoomDirectionTypeMoveDown = 3, + /** + * + * @brief 相机缩小焦距 + */ + + ByteRTCZoomDirectionTypeZoomOut = 4, + /** + * + * @brief 相机放大焦距 + */ + + ByteRTCZoomDirectionTypeZoomIn = 5, + /** + * + * @brief 恢复到原始画面 + */ + + ByteRTCZoomDirectionTypeReset = 6 +}; + +/** + * + * @type keytype + * @brief 视频解码方式 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDecoderConfig) { + /** + * + * @brief 开启 SDK 内部解码,只回调解码后的数据。回调为 renderPixelBuffer:rotation:contentType:extendedData:{@link #ByteRTCVideoSinkDelegate#renderPixelBuffer:rotation:contentType:extendedData:} + */ + + ByteRTCVideoDecoderConfigRaw = 0, + /** + * + * @brief 开启自定义解码,只回调解码前数据。回调为 onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:{@link #ByteRTCRemoteEncodedVideoFrameObserver#onRemoteEncodedVideoFrame:info:withEncodedVideoFrame:}。 + */ + + ByteRTCVideoDecoderConfigEncode = 1, + /** + * + * @brief 开启 SDK 内部解码,同时回调解码前和解码后的数据 + */ + + ByteRTCVideoDecoderConfigBoth = 2 +}; + +/** + * + * @type keytype + * @brief 虚拟背景类型。 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVirtualBackgroundSourceType){ + /** + * + * @brief 使用纯色背景替换视频原有背景。 + */ + + ByteRTCVirtualBackgroundSourceTypeColor = 0, + /** + * + * @brief 使用自定义图片替换视频原有背景。 + */ + + ByteRTCVirtualBackgroundSourceTypeImage = 1 +}; + +/** + * + * @type keytype + * @brief 摄像头类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCCameraID) { + /** + * + * @brief 前置摄像头 + */ + + ByteRTCCameraIDFront = 0, + /** + * + * @brief 后置摄像头 + */ + + ByteRTCCameraIDBack = 1, + /** + * + * @hidden currently not available + * @brief 外接摄像头 + */ + + ByteRTCCameraIDExternal = 2, + /** + * + * @brief 无效值 + */ + + ByteRTCCameraIDInvalid = 3, +}; + +/** + * + * @type errorcode + * @brief 合流和 WTN 流任务错误码 + */ + +typedef NS_ENUM(NSInteger, ByteRTCMixedStreamTaskErrorCode) { + /** + * + * @brief 推流成功。 + */ + + ByteRTCMixedStreamTaskErrorCodeOK = 0, + /** + * + * @hidden currently not available + * @brief 预留错误码,未启用 + */ + + ByteRTCMixedStreamTaskErrorCodeBase = 1090, + /** + * + * @brief 任务处理超时,请检查网络状态并重试 + */ + + ByteRTCMixedStreamTaskErrorCodeTimeOut = 1091, + /** + * + * @brief 服务端检测到错误的推流参数 + */ + + ByteRTCMixedStreamTaskErrorCodeInvalidParamByServer = 1092, + /** + * + * @brief 对流的订阅超时 + */ + + ByteRTCMixedStreamTaskErrorCodeSubTimeoutByServer = 1093, + /** + * + * @brief 合流服务端内部错误。 + */ + + ByteRTCMixedStreamTaskErrorCodeInvalidStateByServer = 1094, + /** + * + * @brief 合流服务端推 CDN 失败。 + */ + + ByteRTCMixedStreamTaskErrorCodeAuthenticationByCDN = 1095, + /** + * + * @brief 服务端未知错误。 + */ + + ByteRTCMixedStreamTaskErrorCodeUnKnownErrorByServer = 1096, + /** + * + * @brief 服务端接收信令超时,请检查网络状态并重试。 + */ + + ByteRTCMixedStreamTaskErrorCodeSignalRequestTimeout = 1097, + /** + * + * @brief 图片合流失败。 + */ + + ByteRTCMixedStreamTaskErrorCodeMixImageFailed = 1098, + /** + * + * @hidden currently not available + * @brief 缓存未同步。 + */ + + ByteRTCMixedStreamTaskErrorCodeStreamSyncWorse = 1099, + /** + * + * @brief 发布 WTN 流失败 + */ + + ByteRTCMixedStreamTaskErrorCodePushWTNFailed = 1195, + /** + * + * @hidden for internal use only + */ + + ByteRTCMixedStreamTaskErrorCodeMax = 1199, +}; +/** + * + * @type keytype + * @brief 本地录制的媒体类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCRecordingType) { + /** + * + * @brief 只录制音频 + */ + + ByteRTCRecordingTypeAudioOnly = 0, + /** + * + * @brief 只录制视频 + */ + + ByteRTCRecordingTypeVideoOnly = 1, + /** + * + * @brief 同时录制音频和视频 + */ + + ByteRTCRecordingTypeVideoAndAudio = 2, +}; + +/** + * + * @type keytype + * @brief 屏幕采集媒体类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCScreenMediaType) { + /** + * + * @brief 只采集视频数据 + */ + + ByteRTCScreenMediaTypeVideoOnly = 0, + /** + * + * @brief 只采集音频数据 + */ + + ByteRTCScreenMediaTypeAudioOnly = 1, + /** + * + * @brief 音视频数据都采集 + */ + + ByteRTCScreenMediaTypeVideoAndAudio = 2 +}; + +/** + * + * @type keytype + * @brief 屏幕采集对象的类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCScreenCaptureSourceType) { + /** + * + * @brief 类型未知 + */ + + ByteRTCScreenCaptureSourceTypeUnknown = 0, + /** + * + * @brief 应用程序的窗口 + */ + + ByteRTCScreenCaptureSourceTypeWindow = 1, + /** + * + * @brief 桌面 + */ + + ByteRTCScreenCaptureSourceTypeScreen = 2 +}; +/** + * + * @type keytype + * @region 屏幕共享 + * @brief 内部采集屏幕视频流时,是否采集鼠标信息。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCMouseCursorCaptureState) { + /** + * + * @brief 采集鼠标信息。 + */ + + ByteRTCMouseCursorCaptureStateOn, + /** + * + * @brief 不采集鼠标信息。 + */ + + ByteRTCMouseCursorCaptureStateOff, +}; +/** + * + * @type keytype + * @brief 屏幕共享时的边框高亮设置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCHighlightConfig: NSObject +/** + * + * @brief 是否显示高亮边框,默认显示。 + */ + +@property (assign, nonatomic) BOOL enableHighlight; +/** + * + * @brief 边框的颜色, 颜色格式为十六进制 ARGB: 0xAARRGGB。 + */ + +@property (assign, nonatomic) uint32_t borderColor; +/** + * + * @brief 边框的宽度,单位:像素。 + */ + +@property (assign, nonatomic) int borderWidth; +@end + +/** + * + * @type keytype + * @brief 相机补光灯状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCTorchState) { + /** + * + * @brief 相机补光灯关闭 + */ + + ByteRTCTorchStateOff = 0, + /** + * + * @brief 相机补光灯打开 + */ + + ByteRTCTorchStateOn = 1, +}; + +/** + * + * @type keytype + * @brief 当前视频设备类型 + */ + +typedef NS_ENUM(NSInteger, ByteRTCVideoDeviceType) { + /** + * + * @brief 未知视频设备 + */ + + ByteRTCVideoDeviceTypeUnknown = -1, + /** + * + * @brief 视频渲染设备类型 + */ + + ByteRTCVideoDeviceTypeRenderDevice = 0, + /** + * + * @brief 视频采集设备类型 + */ + + ByteRTCVideoDeviceTypeCaptureDevice = 1, + /** + * + * @brief 屏幕流视频设备 + */ + + ByteRTCVideoDeviceTypeScreenCaptureDevice = 2 +}; + +/** + * + * @type keytype + * @brief 媒体流类型 + */ + +typedef NS_OPTIONS(NSUInteger, ByteRTCMediaStreamType) { + /** + * + * @brief 只控制音频 + */ + + ByteRTCMediaStreamTypeAudio = (1 << 0), + /** + * + * @brief 只控制视频 + */ + + ByteRTCMediaStreamTypeVideo = (1 << 1), + /** + * + * @brief 同时控制音频和视频 + */ + + ByteRTCMediaStreamTypeBoth = ByteRTCMediaStreamTypeAudio | ByteRTCMediaStreamTypeVideo, +}; + +/** + * + * @type keytype + * @brief 占发布端原始帧率的比例 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCFrameRateRatio) { + /** + * + * @brief 100% + */ + + ByteRTCFrameRateRatioOrigin = 0, + /** + * + * @brief 50% + */ + + ByteRTCFrameRateRatioHalf = 1, + /** + * + * @brief 25% + */ + + ByteRTCFrameRateRatioQuater = 2, +}; + +/** + * + * @type keytype + * @brief 视频旋转模式 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoRotationMode) { + /** + * + * @brief App 方向 + */ + + ByteRTCVideoRotationModeFollowApp = 0, + /** + * + * @brief 重力方向 + */ + + ByteRTCVideoRotationModeFollowGSensor = 1, +}; + +/** + * + * @type keytype + * @brief 弱光适应类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCVideoEnhancementMode) { + /** + * + * @brief 关闭弱光适应 + */ + + ByteRTCVideoEnhancementModeDisabled = 0, + + /** + * + * @brief 开启弱光适应 + */ + + ByteRTCVideoEnhancementModeAuto = 1, +}; + +/** + * + * @type keytype + * @brief 人像属性检测参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectConfig : NSObject +/** + * + * @brief 是否开启年龄检测。 + */ + +@property (assign, nonatomic) BOOL enableAgeDetect; +/** + * + * @brief 是否开启性别检测。 + */ + +@property (assign, nonatomic) BOOL enableGenderDetect; +/** + * + * @brief 是否开启表情检测。 + */ + +@property (assign, nonatomic) BOOL enableEmotionDetect; +/** + * + * @brief 是否开启吸引力检测。 + */ + +@property (assign, nonatomic) BOOL enableAttractivenessDetect; +/** + * + * @brief 是否开启开心程度检测。 + */ + +@property (assign, nonatomic) BOOL enableHappinessDetect; +@end + +/** + * + * @type keytype + * @brief 人像属性检测信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectInfo : NSObject +/** +* +* @brief 预测年龄,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float age; +/** +* +* @brief 预测为男性的概率,取值范围 (0.0, 1.0)。 +*/ + +@property (assign, nonatomic) float boyProb; +/** +* +* @brief 预测的吸引力分数,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float attractive; +/** +* +* @brief 预测的微笑程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float happyScore; +/** +* +* @brief 预测的伤心程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float sadScore; +/** +* +* @brief 预测的生气程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float angryScore; +/** +* +* @brief 预测的吃惊程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float surpriseScore; +/** +* +* @brief 预测的情绪激动程度,取值范围 (0, 100)。 +*/ + +@property (assign, nonatomic) float arousal; +/** +* +* @brief 预测的情绪正负程度,取值范围 (-100, 100)。 +*/ + +@property (assign, nonatomic) float valence; +@end + +/** + * + * @type keytype + * @brief 人像属性检测结果 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCExpressionDetectResult : NSObject +/** + * + * @brief 特征识别结果
    + * - 0:识别成功 + * - !0:识别失败 + */ + +@property (assign, nonatomic) int detectResult; +/** + * + * @brief 识别到的人脸数量。 + */ + +@property (assign, nonatomic) int faceCount; + +/** + * + * @brief 特征识别信息。数组的长度和检测到的人脸数量一致。参看 ByteRTCExpressionDetectInfo{@link #ByteRTCExpressionDetectInfo}。 + */ + +@property (nonatomic, copy) NSArray * _Nonnull detectInfo; + +@end + +/** + * + * @type keytype + * @brief 矩形区域,用于指定屏幕区域。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRectangle : NSObject +/** + * + * @brief 矩形区域左上角的 x 坐标。 + */ + +@property(assign, nonatomic) int x; +/** + * + * @brief 矩形区域左上角的 y 坐标。 + */ + +@property(assign, nonatomic) int y; +/** + * + * @brief 矩形宽度,单位:px。 + */ + +@property(assign, nonatomic) int width; +/** + * + * @brief 矩形高度,单位:px。 + */ + +@property(assign, nonatomic) int height; +@end +/** + * + * @type keytype + * @brief 人脸检测结果 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFaceDetectionResult : NSObject +/** + * + * @brief 人脸检测结果
    + * - 0:检测成功 + * - !0:检测失败。详见[错误码](https: + */ + +@property(assign, nonatomic) int detectResult; +/** + * + * @brief 原始图片宽度(px) + */ + +@property(assign, nonatomic) int imageWidth; +/** + * + * @brief 原始图片高度(px) + */ + +@property(assign, nonatomic) int imageHeight; +/** + * + * @brief 识别到人脸的矩形框。数组的长度和检测到的人脸数量一致。参看 ByteRTCRectangle{@link #ByteRTCRectangle}。 + */ + +@property(nonatomic, copy) NSArray * _Nullable faces; +/** + * + * @brief 进行人脸识别的视频帧的时间戳。 + */ + +@property(assign, nonatomic) CMTime frameTimestamp; + +@end +/** + * + * @type keytype + * @brief 视频帧渲染设置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoCanvas : NSObject +/** + * + * @brief 本地视图句柄 + */ + +@property(strong, nonatomic) ByteRTCView* _Nullable view; +/** + * + * @brief 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + */ + +@property(assign, nonatomic) ByteRTCRenderMode renderMode; +/** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`,格式为 BGR。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + +@property(assign, nonatomic) NSInteger backgroundColor; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。默认为 0 度,即不做旋转处理。
    + * 该设置仅对远端视频有效,对本地视频设置不生效。 + */ + +@property(assign, nonatomic) ByteRTCVideoRotation renderRotation; +@end + +/** + * + * @type keytype + * @brief 远端视频帧渲染设置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoRenderConfig : NSObject +/** + * + * @brief 渲染模式,参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} + */ + +@property(assign, nonatomic) ByteRTCRenderMode renderMode; +/** + * + * @brief 用于填充画布空白部分的背景颜色。取值范围是 `[0x00000000, 0xFFFFFFFF]`,格式为 BGR。默认值是 `0x00000000`。其中,透明度设置无效。 + */ + +@property(assign, nonatomic) NSInteger backgroundColor; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。默认为 0 度,即不做旋转处理。 + */ + +@property(assign, nonatomic) ByteRTCVideoRotation renderRotation; +@end + + +/** + * + * @type keytype + * @brief 视频帧附加的数据,视频解码后获得的附加数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFrameExtendedData : NSObject +/** + * + * @brief 数据类型,详见 ByteRTCDataFrameType{@link #ByteRTCDataFrameType}。 + */ + +@property(assign, nonatomic) ByteRTCDataFrameType frameType; +/** + * + * @brief 附加数据 + */ + +@property(strong, nonatomic) NSData * _Nullable extendedData; +/** + * + * @brief 附加数据长度 + */ + +@property(assign, nonatomic) NSInteger extendedDataLen; +@end + +NS_ASSUME_NONNULL_BEGIN + +/** + * + * @type keytype + * @brief 视频流参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSolution: NSObject +/** + * + * @brief 视频分辨率 + */ + +@property(nonatomic, assign) CGSize videoSize; +/** + * + * @brief 视频预设帧率 + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 最高编码码率(千比特每秒)。建议使用 `-1`,SDK 会自动根据分辨率和帧率适配合适的码率。 + */ + +@property(nonatomic, assign) NSInteger maxKbps; +/** + * + * @brief 最低编码码率(千比特每秒) + */ + +@property(nonatomic, assign) NSInteger minKbps; +/** + * + * @brief 视频编码质量策略,参见 ByteRTCVideoEncoderPreference{@link #ByteRTCVideoEncoderPreference} + */ + +@property(nonatomic, assign) ByteRTCVideoEncoderPreference encoderPreference; +@end + +/** + * + * @type keytype + * @brief 视频采集参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoCaptureConfig: NSObject +/** + * + * @brief 视频采集模式,参看 ByteRTCVideoCapturePreference{@link #ByteRTCVideoCapturePreference} + */ + +@property(nonatomic, assign) ByteRTCVideoCapturePreference preference; + +/** + * + * @brief 视频采集分辨率 + */ + +@property(nonatomic, assign) CGSize videoSize; +/** + * + * @brief 视频采集帧率,单位:fps。 + */ + +@property(nonatomic, assign) NSInteger frameRate; +@end + +/** + * + * @type keytype + * @brief 流属性。 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCStream +/** + * + * @brief 发布此流的用户 ID。 + */ + +@property(nonatomic, copy, readonly) NSString * userId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign, readonly) BOOL isScreen; +/** + * + * @brief 此流是否包括视频流。 + */ + +@property(nonatomic, assign, readonly) BOOL hasVideo; +/** + * + * @brief 流是否包括音频流。 + */ + +@property(nonatomic, assign, readonly) BOOL hasAudio; +/** + * + * @brief 视频流的分辨率信息。
    + * 当远端用户调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 方法发布多个配置的视频流时,此处会包含该用户发布的所有视频流的属性信息。
    + * 参看 ByteRTCVideoSolution{@link #ByteRTCVideoSolution}。 + */ + +@property(nonatomic, copy, readonly) NSArray * videoStreamDescriptions; +/** + * + * @brief 视频流最大分辨率,在开启多分辨率发布订阅时,回调发布端能支持的最大发布分辨率。 + */ + +@property(nonatomic, retain, readonly) ByteRTCVideoSolution *maxVideoStreamDescription; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end + +/** + * + * @type keytype + * @brief 订阅流的参数配置。用户手动订阅一路音视频流所使用的订阅配置参数。
    + * 用户关闭自动订阅功能,使用手动订阅模式时,通过调用 `subscribeStream` 方法订阅音视频流,调用时传入的参数即为此数据类型。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeConfig: NSObject +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 是否订阅视频。
    + * 用户通过设置此参数,选择是否订阅远端流中的视频。 YES 为订阅视频,NO 为不订阅视频,默认值为 YES 。 + */ + +@property(nonatomic, assign) BOOL subscribeVideo; +/** + * + * @brief 是否订阅音频。
    + * 用户通过设置此参数,选择是否订阅远端流中的音频。YES 为订阅音频,NO 为不订阅音频,默认值为 YES 。 + */ + +@property(nonatomic, assign) BOOL subscribeAudio; +/** + * + * @brief 订阅的视频流分辨率下标。
    + * 用户可以通过调用 setVideoEncoderConfig:{@link #ByteRTCEngine#setVideoEncoderConfig:} 方法发布多个不同分辨率的视频。因此订阅流时,需要指定订阅的具体分辨率。此参数即用于指定需订阅的分辨率的下标,默认值为 0 。 + */ + +@property(nonatomic, assign) NSInteger videoIndex; +/** + * + * @brief 订阅的视频流时域分层,默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger svcLayer; +/** + * + * @brief 订阅的宽度信息,单位:px,默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 订阅的高度信息,单位:px, 默认值为 0。 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @hidden for internal use only + */ + +@property(nonatomic, assign) NSInteger subVideoIndex; +/** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + +@property (nonatomic, assign) NSInteger framerate; + + +@end + +NS_ASSUME_NONNULL_END + +/** + * + * @type keytype + * @brief 视频帧数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoFrameData : NSObject +/** + * + * @brief 视频帧缓冲区类型,参考 ByteRTCVideoBufferType {@link #ByteRTCVideoBufferType}。必填。 + */ + +@property ByteRTCVideoBufferType bufferType; + +/** + * + * @brief 视频帧像素格式,参考 ByteRTCVideoPixelFormat {@link #ByteRTCVideoPixelFormat}。当 `bufferType` 为 `ByteRTCVideoBufferTypeGLTexture` 时必填。 + */ + +@property ByteRTCVideoPixelFormat pixelFormat; +/** + * + * @brief 视频内容类型,参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + */ + +@property ByteRTCVideoContentType contentType; +/** + * + * @brief 当前帧的时间戳。必填。 + */ + +@property CMTime timestamp; +/** + * + * @brief 视频帧宽度。必填。 + */ + +@property int width; +/** + * + * @brief 视频帧高度。必填。 + */ + +@property int height; +/** + * + * @brief `CVPixelBufferRef` 类型的数据,当 `format` 为 `kPixelFormatCVPixelBuffer` 时,必填。 + */ + +@property CVPixelBufferRef _Nullable cvpixelbuffer; +/** + * + * @brief 视频帧旋转角度,参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + */ + +@property ByteRTCVideoRotation rotation; +/** + * + * @brief 视频帧的摄像头位置信息,参考 ByteRTCCameraID{@link #ByteRTCCameraID} + */ + +@property ByteRTCCameraID cameraId; +/** + * + * @brief SEI 数据 + */ + +@property NSData * _Nullable seiData; + +/** + * + * @brief 视频帧感兴趣区域数据 + */ + +@property NSData * _Nullable roiData; + +/** + * + * @brief 视频帧平面数。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property int numberOfPlanes; + +/** + * + * @brief 视频帧平面数组。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property void ** _Nullable planeDataArray; + +/** + * + * @brief stride 数组。stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节)。当 `bufferType` 为 `ByteRTCVideoBufferTypeRawMemory` 时必填。 + */ + +@property int * _Nullable planeStrideArray; +@end + +/** + * + * @type keytype + * @brief 视频帧接口 + */ + + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoFrame +@required +/** + * + * @brief 获取视频帧缓冲区类型,参考 ByteRTCVideoBufferType {@link #ByteRTCVideoBufferType} + */ + +@property(readonly) ByteRTCVideoBufferType bufferType; + +/** + * + * @brief 获取视频帧像素格式,参考 ByteRTCVideoPixelFormat {@link #ByteRTCVideoPixelFormat} + */ + +@property(readonly) ByteRTCVideoPixelFormat pixelFormat; +/** + * + * @brief 获取视频帧内容类型,参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + */ + +@property(readonly) ByteRTCVideoContentType contentType; +/** + * + * @brief 获取时间戳 + */ + +@property(readonly) CMTime timestamp; +/** + * + * @brief 获取视频帧宽度 + */ + +@property(readonly) int width; +/** + * + * @brief 获取视频帧高度 + */ + +@property(readonly) int height; +/** + * + * @brief 获取 `CVPixelBufferRef` 类型的数据,当 format 为 `kPixelFormatCVPixelBuffer` 时有效 + */ + +@property(readonly) CVPixelBufferRef _Nullable cvpixelbuffer; +/** + * + * @brief 获取视频帧旋转角度 + */ + +@property(readonly) ByteRTCVideoRotation rotation; +/** + * + * @brief 获取视频帧的摄像头位置,参考 ByteRTCCameraID{@link #ByteRTCCameraID} + */ + +@property(readonly) ByteRTCCameraID cameraId; +/** + * + * @brief 获取 SEI 数据 + */ + +@property(readonly) NSData * _Nullable seiData; + +/** + * + * @brief 获取视频帧平面数量 + */ + +@property (readonly) int numberOfPlanes; + +/** + * + * @brief 获取视频帧平面数组 + */ + +@property (readonly) void ** _Nullable planeDataArray; + +/** + * + * @brief 获取 stride 数组。 stride 指视频帧平面相邻两行图像数据之间的内存长度(单位字节) + */ + +@property (readonly) int * _Nullable planeStrideArray; +/** + * + * @brief 视频帧引用计数加一 + * @note 视频帧消费者希望对视频帧进行异步处理时(例如切换线程进行渲染),需要调用此接口增加引用计数。异步处理结束则需要调用 `releaseRef` 使引用计数减1 + */ + +- (void)addRef; +/** + * + * @brief 视频帧引用计数减一。 + * @note 视频帧引用计数减为 0 时,视频帧对象会被释放。视频帧对象释放后,不应该继续使用视频帧。 + */ + +- (long)releaseRef; +@end + +/** + * + * @type keytype + * @brief 视频帧信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCEncodedVideoFrame : NSObject +/** + * + * @brief 视频编码类型。参看 ByteRTCVideoCodecType{@link #ByteRTCVideoCodecType} + */ + +@property(assign, nonatomic) ByteRTCVideoCodecType codecType; +/** + * + * @brief 视频帧编码类型。参看 ByteRTCVideoPictureType{@link #ByteRTCVideoPictureType} + */ + +@property(assign, nonatomic) ByteRTCVideoPictureType pictureType; +/** + * + * @brief 视频采集时间戳,单位:微秒 + */ + +@property(assign, nonatomic) SInt64 timestampUs; +/** + * + * @brief 视频编码时间戳,单位:微秒 + */ + +@property(assign, nonatomic) SInt64 timestampDtsUs; +/** + * + * @brief 视频帧宽,单位:px + */ + +@property(assign, nonatomic) int width; +/** + * + * @brief 视频帧高,单位:px + */ + +@property(assign, nonatomic) int height; +/** + * + * @brief 视频帧旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation} + */ + +@property(nonatomic, assign) ByteRTCVideoRotation rotation; +/** + * + * @brief 视频帧数据指针地址 + */ + +@property(strong, nonatomic) NSData * _Nonnull data; + +@end + +#pragma mark CDN/WTN object +/** + * + * @type keytype + * @brief 转推任务详情 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamTaskInfo : NSObject +/** + * + * @type keytype + * @brief 任务 ID + * 对于 WTN 流任务,该值代表 WTN 流 ID。你可以通过该 ID,指定需要订阅的 WTN 流。 + */ + +@property(nonatomic, copy) NSString * _Nonnull taskId; +/** + * + * @type keytype + * @brief 任务类型,合流转推 CDN 还是 WTN 流。 + */ + +@property(nonatomic, assign) ByteRTCMixedStreamPushTargetType pushTargetType; +@end +/** + * + * @type keytype + * @brief WTN 流裁剪信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSourceCropInfo : NSObject +/** + * + * @brief 裁剪后得到的视频帧左上角横坐标相对于裁剪前整体画面的比例,取值范围[0.0, 1.0) + */ + +@property(assign, nonatomic) CGFloat locationX; +/** + * + * @brief 裁剪后得到的视频帧左上角纵坐标相对于裁剪前整体画面的比例,取值范围[0.0, 1.0) + */ + +@property(assign, nonatomic) CGFloat locationY; +/** + * + * @brief 裁剪后得到的视频帧宽度相对于裁剪前整体画面的比例,取值范围(0.0, 1.0] + */ + +@property(assign, nonatomic) CGFloat widthProportion; +/** + * + * @brief 裁剪后得到的视频帧高度相对于裁剪前整体画面的比例,取值范围(0.0, 1.0] + */ + +@property(assign, nonatomic) CGFloat heightProportion; +@end +/** + * + * @type keytype + * @brief 图片合流水印图片分辨率。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig : NSObject +/** + * + * @brief 原始图片的宽度,单位为 px。 + */ + +@property (assign, nonatomic) NSInteger imageWidth; +/** + * + * @brief 原始图片的高度,单位为 px。 + */ + +@property (assign, nonatomic) NSInteger imageHeight; +@end + +/** + * + * @type keytype + * @brief 单个图片或视频流在合流中的布局信息。
    + * 开启合流功能后,在多路图片或视频流合流时,你可以设置其中一路流在合流中的预设布局信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamLayoutRegionConfig : NSObject +/** + * + * @brief 视频流发布用户的用户 ID 。建议设置。 + */ + +@property(copy, nonatomic) NSString * _Nonnull userID; +/** + * + * @brief 图片或视频流所在房间的房间 ID。建议设置。
    + * 如果此图片或视频流是通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms:} 转发到你所在房间的媒体流时,你应将房间 ID 设置为你所在的房间 ID。 + */ + +@property(copy, nonatomic) NSString * _Nonnull roomID; +/** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 X 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的横向位移。
    + * 取值范围为 [0, 整体画布宽度)。默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger locationX; +/** + * + * @brief 单个用户画面左上角在整个画布坐标系中的 Y 坐标(pixel),即以画布左上角为原点,用户画面左上角相对于原点的纵向位移。
    + * 取值范围为 [0, 整体画布高度)。默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger locationY; +/** + * + * @brief 单个用户画面的宽度。取值范围为 [0, 整体画布宽度],默认值为 360。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 单个用户画面的高度。取值范围为 [0, 整体画布高度],默认值为 640。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 用户视频布局在画布中的层级。取值范围为 [0 - 100],0 为底层,值越大越上层。默认值为 0。建议设置。 + */ + +@property(assign, nonatomic) NSInteger zOrder; +/** + * + * @brief 是否为本地用户 + */ + +@property(assign, nonatomic) BOOL isLocalUser; +/** + * + * @brief 流类型,默认为主流。参看 ByteRTCMixedStreamVideoType{@link #ByteRTCMixedStreamVideoType}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamVideoType streamType; +/** + * + * @brief 透明度,可选范围为 (0.0, 1.0],0.0 为全透明。默认值为 1.0。 + */ + +@property(assign, nonatomic) CGFloat alpha; +/** + * + * @brief 圆角半径相对画布宽度的比例。默认值为 `0.0`。
    + * 做范围判定时,首先根据画布的宽高,将 `width`,`height`,和 `cornerRadius` 分别转换为像素值:`width_px`,`height_px`,和 `cornerRadius_px`。然后判定是否满足 `cornerRadius_px < min(width_px/2, height_px/2)`:若满足,则设置成功;若不满足,则将 `cornerRadius_px` 设定为 `min(width_px/2, height_px/2)`,然后将 `cornerRadius` 设定为 `cornerRadius_px` 相对画布宽度的比例值。 + * WTN 流任务不支持设置本参数。 + */ + +@property(assign, nonatomic) CGFloat cornerRadius; +/** + * + * @brief 合流内容控制。默认值为 `ByteRTCTranscoderContentControlTypeHasAudioAndVideo`,参看 ByteRTCMixedStreamMediaType{@link #ByteRTCMixedStreamMediaType} 。 + */ + +@property (assign, nonatomic) ByteRTCMixedStreamMediaType mediaType; +/** + * + * @brief 图片或视频流的缩放模式,参看 ByteRTCMixedStreamRenderMode{@link #ByteRTCMixedStreamRenderMode}。默认值为 1。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamRenderMode renderMode; +/** + * + * @brief 合流布局区域类型。参看 ByteRTCMixedStreamLayoutRegionType{@link #ByteRTCMixedStreamLayoutRegionType}。建议设置。 + */ + +@property (assign, nonatomic) ByteRTCMixedStreamLayoutRegionType regionContentType; +/** + * + * @brief 水印图 RGBA 数据。当 `regionContentType` 为图片类型时需要设置。
    + * - `ByteRTCMixedStreamLayoutRegionTypeImage = 1` 时,传入图片 RGBA 数据。 + * - `ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) NSData * _Nullable imageWaterMark; +/** + * + * @brief 水印图参数。当 `regionContentType` 为图片类型时需要设置。
    + * - `ByteRTCMixedStreamLayoutRegionTypeImage = 1` 时,传入图片参数,参看 ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig{@link #ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig}。 + * - `ByteRTCMixedStreamLayoutRegionTypeVideoStream = 0` 时传入空。 + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) ByteRTCMixedStreamLayoutRegionImageWaterMarkConfig * _Nullable imageWaterMarkConfig; +/** + * + * @brief 空间位置。参看 ByteRTCPosition{@link #ByteRTCPosition}。 + */ + +@property (strong, nonatomic) ByteRTCPosition * _Nullable spatialPosition; +/** + * + * @brief 设置某用户是否应用空间音频效果:
    + * - Yes:启用(默认值) + * - No:禁用 + */ + +@property(assign, nonatomic) BOOL applySpatialAudio; +/** + * + * @valid since 3.57 + * @brief 设置占位图的填充模式。
    + * 该参数用来控制当用户停止发布视频流,画面恢复为占位图后,此时占位图的填充模式。参看 ByteRTCMixedStreamAlternateImageFillMode{@link #ByteRTCMixedStreamAlternateImageFillMode}。 + */ + +@property (assign, nonatomic)ByteRTCMixedStreamAlternateImageFillMode alternateImageFillMode; +/** + * + * @valid since 3.57 + * @brief 设置占位图的 URL,长度小于 1024 字符. + */ + +@property(copy, nonatomic)NSString * alternateImageUrl; +/** + * + * @valid since 3.57 + * @brief WTN 流裁剪区域。参看 ByteRTCSourceCropInfo{@link #ByteRTCSourceCropInfo}。 + */ + +@property(strong, nonatomic) ByteRTCSourceCropInfo * _Nonnull sourceCrop; +@end + +/** + * + * @type keytype + * @brief 视频转码配置参数。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamVideoConfig : NSObject +/** + * + * @brief 视频编码格式,参看 ByteRTCMixedStreamVideoCodecType{@link #ByteRTCMixedStreamVideoCodecType}。默认值为 `0`。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamVideoCodecType videoCodec; +/** + * + * @brief 合流视频宽度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 640 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + +@property(assign, nonatomic) NSInteger width; +/** + * + * @brief 合流视频高度。单位为 px,范围为 [2, 1920],必须是偶数。默认值为 360 px。建议设置。
    + * 设置值为非偶数时,自动向上取偶数。 + */ + +@property(assign, nonatomic) NSInteger height; +/** + * + * @brief 合流视频帧率。单位为 FPS,取值范围为 [1,60],默认值为 15 FPS。建议设置。 + */ + +@property(assign, nonatomic) NSInteger fps; +/** + * + * @brief 视频 I 帧时间间隔。单位为秒,取值范围为 [1, 5],默认值为 2 秒。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(assign, nonatomic) NSInteger gop; +/** + * + * @brief 合流视频码率。单位为 Kbps,取值范围为 [1,10000],默认值为自适应模式。建议设置。 + */ + +@property(assign, nonatomic) NSInteger bitrate; +/** + * + * @brief 是否在合流中开启 B 帧,仅服务端合流支持. + */ + +@property(assign, nonatomic) BOOL enableBFrame; +@end + +/** + * + * @type keytype + * @brief 音频转码配置参数。
    + * 值不合法或未设置时,自动使用默认值。
    + * 本参数不支持过程中更新。
    + * WTN 流任务不支持设置本参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamAudioConfig : NSObject +/** + * + * @brief 音频编码格式。建议设置。 + * @param codec 音频编码格式,参看 ByteRTCMixedStreamAudioCodecType{@link #ByteRTCMixedStreamAudioCodecType}。默认值为 `0`。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamAudioCodecType audioCodec; +/** + * + * @brief 音频采样率,单位 Hz。可取 32000 Hz、44100 Hz、48000 Hz,默认值为 48000 Hz。建议设置。 + */ + +@property(assign, nonatomic) NSInteger sampleRate; +/** + * + * @brief 音频声道数。可取 1(单声道)、2(双声道),默认值为 2。建议设置。 + */ + +@property(assign, nonatomic) NSInteger channels; +/** + * + * @brief 音频码率,单位 Kbps。可取范围 [32, 192],默认值为 64 Kbps。建议设置。 + */ + +@property(assign, nonatomic) NSInteger bitrate; +/** + * + * @brief AAC 编码规格,参看 ByteRTCMixedStreamAudioProfile{@link #ByteRTCMixedStreamAudioProfile}。默认值为 `0`。建议设置。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamAudioProfile audioProfile; +@end + +/** + * + * @type keytype + * @brief 推流 CDN 的空间音频参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamSpatialAudioConfig : NSObject +/** + * + * @brief 是否开启推流 CDN 时的空间音频效果。
    + * 当你启用此效果时,你需要设定推流中各个 ByteRTCMixedStreamLayoutRegionConfig{@link #ByteRTCMixedStreamLayoutRegionConfig} 的 `spatialPosition` 值,实现空间音频效果。 + */ + +@property(assign, nonatomic) BOOL enableSpatialRender; +/** + * + * @brief 听众的空间位置。参看 ByteRTCPosition{@link #ByteRTCPosition}。
    + * 听众指收听来自 CDN 的音频流的用户。
    + * WTN 流任务不支持设置本参数。 + */ + +@property (strong, nonatomic) ByteRTCPosition * _Nullable audienceSpatialPosition; +/** + * + * @brief 听众的空间朝向。参看 ByteRTCHumanOrientation{@link #ByteRTCHumanOrientation}。
    + * 听众指收听来自 CDN 的音频流的用户。 + */ + +@property(strong, nonatomic) ByteRTCHumanOrientation * _Nullable audienceSpatialOrientation; + +@end + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 客户端合流参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCClientMixedStreamConfig : NSObject +/** + * + * @brief 客户端合流是否使用混音,默认为 true。 + */ + +@property(assign, nonatomic) BOOL useAudioMixer; +/** + * + * @brief 客户端合流回调视频格式,参看 ByteRTCMixedStreamClientMixVideoFormat{@link #ByteRTCMixedStreamClientMixVideoFormat}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamClientMixVideoFormat videoFormat; +@end + +/** + * + * @hidden internal use only + * @valid since 3.52 + * @type keytype + * @brief 转推直播单通同步参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamSyncControlConfig : NSObject +/** + * + * @brief 同步策略 + */ + +@property(assign, nonatomic)ByteRTCMixedStreamSyncStrategy syncStrategy; +/** + * + * @brief 在进行同步处理时,基准流所属用户的 ID。默认为空。 + */ + +@property(copy, nonatomic) NSString * _Nullable baseUserID; +/** + * + * @brief 在进行同步处理时,缓存音视频流的最大长度。单位为毫秒。默认值为 2000。
    + * 参与转推直播的这些媒体流延迟越高,应该将此值设置的越大。但此值越大,因缓存媒体流造成的内存占用也会更大。推荐值为 `2000`。 + */ + +@property(assign, nonatomic) NSInteger maxCacheTimeMs; +/** + * + * @brief 是否通过 RTC SDK 进行转推直播。默认为 True。
    + * 如果选择 `False`,你会通过 onCacheSyncVideo:withDataFrame:withUids:taskId:{@link #ByteRTCClientMixedStreamDelegate#onCacheSyncVideo:withDataFrame:withUids:taskId:} 收到同步的帧,你可以使用此视频帧,自行实现合流转推。 + */ + +@property(assign, nonatomic) BOOL videoNeedSdkMix; +@end + +/** + * + * @type keytype + * @brief 服务端合流控制参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamControlConfig : NSObject +/** + * + * @valid since 3.56 + * @brief 是否开启单独发送声音提示 SEI 的功能:
    + * - True:开启; + * - False:关闭。(默认值) + * 开启后,你可以通过 `ByteRTCMixedStreamControlConfig.seiContentMode` 控制 SEI 的内容是否只携带声音信息。 + */ + +@property(assign, nonatomic) BOOL enableVolumeIndication; +/** + * + * @valid since 3.56 + * @brief 声音提示间隔,单位为秒,取值范围为 [0.3,+∞),默认值为 2。
    + * 此值仅取整百毫秒。若传入两位及以上小数,则四舍五入取第一位小数的值。例如,若传入 0.36,则取 0.4。 + */ + +@property(assign, nonatomic) CGFloat volumeIndicationInterval; +/** + * + * @valid since 3.56 + * @brief 有效音量大小,取值范围为 [0, 255],默认值为 0。
    + * 超出取值范围则自动调整为默认值,即 0。 + */ + +@property(assign, nonatomic) NSInteger talkVolume; +/** + * + * @valid since 3.56 + * @brief 声音信息 SEI 是否包含音量值:
    + * - True:是; + * - False:否,默认值。 + */ + +@property(assign, nonatomic) BOOL isAddVolumeValue; +/** + * + * @valid since 3.56 + * @brief 设置 SEI 内容。参看 ByteRTCMixedStreamSEIContentMode{@link #ByteRTCMixedStreamSEIContentMode}。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamSEIContentMode seiContentMode; +/** + * + * @valid since 3.56 + * @brief SEI 信息的 payload type。
    + * 默认值为 `100`,只支持设置 `5` 和 `100`。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + +@property(assign, nonatomic) NSInteger seiPayloadType; +/** + * + * @valid since 3.56 + * @brief SEI 信息的 payload UUID。 + * @note PayloadType 为 `5` 时,必须填写 PayloadUUID,否则会收到错误回调,错误码为 1091。
    + * PayloadType 不是 `5` 时,不需要填写 PayloadUUID,如果填写会被后端忽略。
    + * 该参数长度需为 32 位,否则会收到错误码为 1091 的回调。
    + * 该参数每个字符的范围需为 [0, 9] [a, f] [A, F]
    + * 该参数不应带有`-`字符,如系统自动生成的 UUID 中带有`-`,则应删去。
    + * 在转推直播的过程中,该参数不支持变更。 + */ + +@property(copy, nonatomic) NSString *seiPayloadUUID; +/** + * + * @valid since 3.57 + * @brief 设置合流推到 CDN 时输出的媒体流类型。参看 ByteRTCMixedStreamMediaType{@link #ByteRTCMixedStreamMediaType}。
    + * 默认输出音视频流。支持输出纯音频流,但暂不支持输出纯视频流。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamMediaType mediaType; +/** + * + * @valid since 3.57 + * @brief 设置是否在没有用户发布流的情况下发起转推直播。具体参看 ByteRTCMixedStreamPushMode{@link #ByteRTCMixedStreamPushMode}。
    + * 该参数在发起合流任务后的转推直播过程中不支持动态变更。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushMode pushStreamMode; +@end + +/** + * + * @type keytype + * @brief 合流转推配置参数。
    + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。
    + * 如无特别说明,参数可用于启动和更新任务。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamPushTargetConfig : NSObject +/** + * + * @type api + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * 本参数不支持过程中更新。 + * WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushCDNURL; +/** + * + * @type keytype + * @brief WTN 流 ID。 + * 合流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushWTNStreamID; +/** + * + * @type keytype + * @brief 推流任务类型。 + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushTargetType pushTargetType; +@end +/** + * + * @type keytype + * @brief 合流转推配置参数。 + * 如无特别说明,参数可适用于 WTN 流和合流转推任务。 + * 如无特别说明,参数可用于启动和更新任务。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMixedStreamConfig : NSObject +/** + * + * @brief 合流背景颜色,用十六进制颜色码(HEX)表示。例如,#FFFFFF 表示纯白,#000000 表示纯黑。默认值为 #000000。建议设置。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +@property(copy, nonatomic) NSString *_Nonnull backgroundColor; +/** + * + * @brief 用户布局信息列表。每条流的具体布局参看 ByteRTCMixedStreamLayoutRegionConfig{@link #ByteRTCMixedStreamLayoutRegionConfig}。建议设置。
    + * 值不合法或未设置时,自动使用默认值。 + */ + +@property(copy, nonatomic) NSArray * _Nonnull regions; + + +/** + * + * @brief 视频转码参数。详见 ByteRTCMixedStreamVideoConfig{@link #ByteRTCMixedStreamVideoConfig} 数据类型。建议设置。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamVideoConfig * _Nonnull videoConfig; +/** + * + * @brief 音频合流参数,参看 ByteRTCMixedStreamAudioConfig{@link #ByteRTCMixedStreamAudioConfig}。建议设置。
    + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamAudioConfig * _Nonnull audioConfig; +/** + * + * @hidden for internal use only + * @brief 转推同步配置。详见 ByteRTCMixedStreamSyncControlConfig{@link #ByteRTCMixedStreamSyncControlConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamSyncControlConfig * _Nullable syncControlConfig; +/** + * + * @hidden(macOS) + * @brief 转推 CDN 空间音频配置。详见 ByteRTCMixedStreamSpatialAudioConfig{@link #ByteRTCMixedStreamSpatialAudioConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamSpatialAudioConfig * _Nonnull spatialAudioConfig; +/** + * + * @brief 服务端合流控制参数。详见 ByteRTCMixedStreamControlConfig{@link #ByteRTCMixedStreamControlConfig} 。 + */ + +@property(strong, nonatomic) ByteRTCMixedStreamControlConfig * _Nonnull controlConfig; +/** + * + * @hidden for internal use only + * @brief 动态扩展自定义参数。 + */ + +@property(strong, nonatomic) NSMutableDictionary * _Nullable advancedConfig; +/** + * + * @hidden for internal use only + * @brief 业务透传鉴权信息 + */ + +@property(strong, nonatomic) NSMutableDictionary * _Nullable authInfo; + +/** + * + * @hidden for internal use only + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + * - 本参数不支持过程中更新。 + * - WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString * _Nullable pushURL; +/** + * + * @brief 推流房间 ID。`roomID` 和 `userID` 长度相加不得超过 126 字节。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(copy, nonatomic) NSString * _Nonnull roomID; +/** + * + * @brief 推流用户 ID。`roomID` 和 `userID` 长度相加不得超过 126 字节。建议设置。
    + * 本参数不支持过程中更新。 + */ + +@property(copy, nonatomic) NSString * _Nonnull userID; +/** + * + * @brief 用户配置的额外数据。
    + * WTN 流任务不支持设置本参数。 + */ + +@property(copy, nonatomic) NSString *_Nonnull userConfigExtraInfo; +/** + * + * @valid since 3.57 + * @brief 设置合流后整体画布的背景图片 URL,长度最大为 1023 bytes。
    + * 必须是http开头,支持的图片格式包括:JPG, JPEG, PNG。如果背景图片的宽高和整体屏幕的宽高不一致,背景图片会缩放到铺满屏幕。 + */ + +@property(copy, nonatomic) NSString *_Nonnull backgroundImageURL; +/** + * + * @brief WTN 流布局模式。参看 ByteRTCStreamLayoutMode{@link #ByteRTCStreamLayoutMode}。可选:
    + * - `auto`: 自动布局。默认值 + * - `custom`: 自定义布局。 + */ + +@property(assign, nonatomic)ByteRTCStreamLayoutMode layoutMode; +/** + * + * @brief WTN 流的补帧模式。参看 ByteRTCInterpolationMode{@link #ByteRTCInterpolationMode}。可选: + */ + +@property(assign, nonatomic) ByteRTCInterpolationMode interpolationMode; + +/** + * + * @brief 任务类型。参看 ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}。可选: + */ + +@property(assign, nonatomic) ByteRTCMixedStreamPushTargetType pushTargetType; +/** + * + * @brief 获取默认转推直播配置参数。 + * @return 转推直播配置参数,参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。 + */ +/**s + * + * @brief Gets the default configurations for pushing streams to CDN. + * @return Configurations for pushing streams to CDN. See ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}. + */ ++ (instancetype _Nonnull)defaultMixedStreamConfig; +@end + +/** + * + * @type keytype + * @brief 单流转推配置目标房间信息 + */ + +BYTERTC_APPLE_EXPORT @interface DestInfo: NSObject + /** + * + * @brief 目标房间ID + */ + + @property(nonatomic, copy) NSString * _Nonnull roomId; + + /** + * + * @brief 目标房间中的用户ID + */ + + @property(nonatomic, copy) NSString * _Nonnull userId; +@end + +/** + * + * @type keytype + * @brief 单流转推类型 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCSingleStreamPushType) { + /** + * + * @brief 单流转推到CDN + */ + + ByteRTCSingleStreamPushToCDN = 1, + /** + * + * @brief 单流转推到RTC房间 + */ + + ByteRTCSingleStreamPushToRTC = 2 +}; + +/** + * + * @type keytype + * @brief 单流转推直播配置参数。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCPushSingleStreamParam : NSObject +/** + * + * @brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 `/^rtmps?:\/\ + */ + +@property(copy, nonatomic) NSString * _Nullable url; +/** + * + * @brief 媒体流所在的房间 ID + */ + +@property(copy, nonatomic) NSString * _Nonnull roomId; +/** + * + * @brief 媒体流所属的用户 ID + */ + +@property(copy, nonatomic) NSString * _Nullable userId; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 跨房间转发的目标房间信息数组,默认值为 nil。
    + * 当需要将媒体流从当前房间转发到其他房间时,可在此数组中指定多个目标房间信息。 + */ + +@property(nonatomic, strong) NSArray * _Nullable destInfo; +/** + * + * @brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间,默认值为转推到 CDN。 + */ + +@property(assign, nonatomic) ByteRTCSingleStreamPushType pushType; +@end + +/** + * + * @type keytype + * @brief 视频订阅配置信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeVideoConfig : NSObject +/** + * + * @brief 订阅的视频流分辨率下标。
    + * 当远端用户通过调用 setLocalSimulcastMode:{@link #ByteRTCEngine#setlocalsimulcastmode:} 方法启动发布多路不同分辨率的视频流时,本地用户需通过此参数指定希望订阅的流。
    + * 默认值为 0,即订阅第一路流。
    + * 如果不想更改之前的设置,可以输入 -1。 + */ + +@property(assign, nonatomic) NSInteger videoIndex; +/** + * + * @brief 远端用户优先级,参看 ByteRTCRemoteUserPriority{@link #ByteRTCRemoteUserPriority},默认值为 0。 + */ + +@property(assign, nonatomic) NSInteger priority; +@end + +/** + * + * @type keytype + * @brief 性能回退相关数据 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSourceWantedData : NSObject +/** + * + * @brief 推荐视频输入宽 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 推荐视频输入高 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 推荐视频输入帧率 + */ + +@property(nonatomic, assign) NSInteger frameRate; +@end + +/** + * + * @type keytype + * @brief 流切换信息。本地用户订阅的远端流触发回退策略时的流切换信息。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteStreamSwitchEvent : NSObject +/** + * + * @brief 订阅的音视频流的发布者的用户 ID。 + */ + +@property(nonatomic, copy) NSString * _Nonnull uid; +/** + * + * @brief 预留字段。 + */ + +@property(nonatomic, assign) BOOL isScreen; +/** + * + * @brief 流切换前订阅视频流的分辨率对应的索引 + */ + +@property(nonatomic, assign) NSInteger beforeVideoIndex; +/** + * + * @brief 流切换后订阅视频流的分辨率对应的索引 + */ + +@property(nonatomic, assign) NSInteger afterVideoIndex; +/** + * + * @brief 流切换前是否有视频流 + */ + +@property(nonatomic, assign) BOOL beforeVideoEnabled; +/** + * + * @brief 流切换后是否有视频流 + */ + +@property(nonatomic, assign) BOOL afterVideoEnabled; +/** + * + * @brief 流切换原因,详见 ByteRTCFallbackOrRecoverReason{@link #ByteRTCFallbackOrRecoverReason}。 + */ + +@property(nonatomic, assign) ByteRTCFallbackOrRecoverReason reason; +@end +/** + * + * @hidden + * @deprecated since 3.45 and will be deleted in 3.51, use ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} instead. + * @type callback + * @brief 自定义的视频渲染 + * @list + */ + +DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate") +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSinkProtocol +@required +/** + * + * @type callback + * @brief 初始化渲染器 + * @return + * - YES: 自定义的渲染器初始化完成 + * - NO: 自定义的渲染器初始化失败,不继续往下运行 + * @note 初始化渲染器的时候会回调这个方法 + * @list + */ + +- (BOOL)shouldInitialize DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate");; +/** + * + * @type callback + * @brief 启动渲染器 + * @note 在开启渲染功能的时候会回调这个方法 + * @list + */ + +- (void)shouldStart DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 停止渲染器 + * @note 在停止渲染功能的时候会回调这个方法 + * @list + */ + +- (void)shouldStop DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 释放渲染器 + * @note 渲染器即将被废弃的时候会回调这个方法 + * @list + */ + +- (void)shouldDispose DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 获取 PixelFormat 格式 + * @return Buffer 类型,{@link #ByteRTCVideoSinkPixelFormat} + * @note 通过该方法的返回值,告知 SDK PixelFormat 的格式 + * @list + */ + +- (ByteRTCVideoPixelFormat)pixelFormat DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); +/** + * + * @type callback + * @brief 输出视频的 PixelBuffer + * @param pixelBuffer 视频的 PixelBuffer + * @param rotation 视频旋转角度,{@link #ByteRTCVideoRotation} + * @param cameraId 视频的相机 Id, {@link #ByteRTCCameraID} + * @param extendedData 视频帧附加的数据,视频解码后获得的附加数据 + * @note 通过该方法获取视频的 PixelBuffer + * @list + */ + +- (void)renderPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer + rotation:(ByteRTCVideoRotation)rotation + cameraId:(ByteRTCCameraID) cameraId + extendedData:(NSData * _Nullable)extendedData DEPRECATED_MSG_ATTRIBUTE("Please use ByteRTCVideoSinkDelegate"); + +/** + * + * @hidden constructor/destructor + */ + +- (int)getRenderElapse; +@end + +/** + * + * @type keytype + * @brief 自定义视频渲染器 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSinkDelegate +@optional +/** + * + * @deprecated since 3.54, use onFrame: instead + * @type api + * @brief 输出视频的 PixelBuffer + * @param pixelBuffer 视频的 PixelBuffer + * @param rotation 视频旋转角度,参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation} + * @param contentType 视频内部类型 参看 ByteRTCVideoContentType{@link #ByteRTCVideoContentType} + * @param extendedData 视频解码后获得的附加数据 + * @list + */ + +- (void)renderPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer + rotation:(ByteRTCVideoRotation)rotation + contentType:(ByteRTCVideoContentType)contentType + extendedData:(NSData * _Nullable)extendedData; +/** + * + * @hidden for internal use only + */ + +- (int)getRenderElapse; + +@required +/** + * + * @type api + * @brief 输出视频的 PixelBuffer + * @param videoFrame 视频帧 + * @list + */ + +- (void)onFrame:(id _Nonnull)videoFrame; + +@end +/** + * + * @hidden for internal use only + * @type callback + * @brief 外部渲染数据的消费接口 + * @list + */ + +@protocol ByteRTCVideoFrameConsumerObserver +/** + * + * @brief 输出 yuv420 数据 + * @param ocFrame 数据 Buffer + * @param width 视频宽度 + * @param rotation 视频旋转角度 + * @param timestamp 时间戳 + */ + +- (void)consumeYUV420Buffer:(CVPixelBufferRef _Nullable)ocFrame + width:(NSInteger)width rotation:(NSInteger)rotation timestamp:(long)timestamp; +/** + * + * @brief 输出 RGBA 数据 + * @param ocFrame 数据 Buffer + * @param width 视频宽度 + * @param rotation 视频旋转角度 + * @param timestamp 时间戳 + */ + +- (void)consumeRGBABuffer:(CVPixelBufferRef _Nullable)ocFrame width:(NSInteger)width + rotation:(NSInteger)rotation timestamp:(long)timestamp; +@end +/** + * + * @type keytype + * @brief 本地视频帧回调配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCLocalVideoSinkConfig : NSObject +/** + * + * @brief 本地视频帧回调位置,参看 ByteRTCLocalVideoSinkPosition{@link #ByteRTCLocalVideoSinkPosition},默认回调前处理后的视频帧。 + */ + +@property(nonatomic, assign) ByteRTCLocalVideoSinkPosition position; +/** + * + * @brief 本地视频帧回调格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat},默认值为 0。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkPixelFormat requiredPixelFormat; + +@end + +/** + * + * @type keytype + * @brief 远端视频帧回调配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoSinkConfig : NSObject +/** + * + * @brief 远端视频帧回调位置,参看 ByteRTCLocalVideoSinkPosition{@link #ByteRTCLocalVideoSinkPosition},默认回调后处理后的视频帧。 + */ + +@property(nonatomic, assign) ByteRTCRemoteVideoSinkPosition position; +/** + * + * @brief 远端视频帧回调格式,参看 ByteRTCVideoSinkPixelFormat{@link #ByteRTCVideoSinkPixelFormat},默认值为 0。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkPixelFormat requiredPixelFormat; +/** + * + * @brief 是否将视频帧自动转正,参看 ByteRTCVideoApplyRotation{@link #ByteRTCVideoApplyRotation},默认为不旋转。 + */ + +@property(nonatomic, assign) ByteRTCVideoApplyRotation applyRotation; +/** + * + * @brief 是否将视频帧镜像。参看 ByteRTCVideoSinkMirrorType{@link #ByteRTCVideoSinkMirrorType},默认为不镜像。
    + * 本设置与 setRemoteVideoMirrorType:withMirrorType:{@link #ByteRTCEngine#setRemoteVideoMirrorType:withMirrorType:} (适用于内部渲染)相互独立。 + */ + +@property(nonatomic, assign) ByteRTCVideoSinkMirrorType mirrorType; + +@end + +/** + * + * @type keytype + * @brief 视频处理配置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoPreprocessorConfig : NSObject +/** + * + * @brief 视频帧的像素格式,参看 ByteRTCVideoPixelFormat{@link #ByteRTCVideoPixelFormat}。
    + * 当前仅支持 `ByteRTCVideoPixelFormatI420` 和 `ByteRTCVideoPixelFormatUnknown` 格式。 + */ + +@property(nonatomic, assign) ByteRTCVideoPixelFormat requiredPixelFormat; +/** + * + * @brief 自定义视频前处理的作用范围,参看 ByteRTCProcessorActionDomain{@link #ByteRTCProcessorActionDomain}。 + * @param actionDomain 自定义视频前处理的作用范围。 + */ + +@property(nonatomic, assign) ByteRTCProcessorActionDomain actionDomain; + +@end +/** + * + * @type callback + * @brief 视频处理回调接口类
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoProcessorDelegate +/** + * + * @type api + * @brief 获取 RTC SDK 采集得到的视频帧,根据 registerLocalVideoProcessor:withConfig:{@link #ByteRTCEngine#registerLocalVideoProcessor:withConfig:} 设置的视频前处理器,进行视频前处理,最终将处理后的视频帧给到 RTC SDK 用于编码传输。 + * @param srcFrame RTC SDK 采集得到的视频帧,参考: ByteRTCVideoFrame{@link #ByteRTCVideoFrame} + * @return 经过视频前处理后的视频帧,返回给 RTC SDK 供编码和传输,参考: ByteRTCVideoFrame{@link #ByteRTCVideoFrame} + * @note + * - 如果需要取消视频前处理,可以将视频前处理器设置为 nullptr。 + * - 应用层实现 `processVideoFrame` 接口时,可以直接修改 `src_frame` 的缓冲区,调用 `addRef` 方法将 `src_frame` 引用计数加一,然后将修改后的 `src_frame` 返回, 也可以创建一个新的视频帧并返回。 + * - 对于 `processVideoFrame` 返回的视频帧,在 SDK 层消费完成后,SDK 内部总是调用这个视频帧的 releaseRef 方法。 + * @list 自定义流处理 + */ + +- (id _Nullable)processVideoFrame:(id _Nonnull)srcFrame; + +@end +/** + * + * @hidden(iOS) + * @type keytype + * @brief 屏幕采集设置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenCaptureParam : NSObject +/** + * + * @brief 视频最大宽度,单位:像素。 + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频最大高度,单位:像素。 + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 屏幕采集帧率,单位:fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 发送屏幕采集码率,单位 kbps + */ + +@property(nonatomic, assign) NSInteger bitrate; +/** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, bitrate),当 `bitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `bitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `bitrate` < `0` 时,适配码率模式。 + */ + +@property(nonatomic, assign) NSInteger minBitrate; +/** + * + * @brief 采集区域 + */ + +@property(nonatomic, assign) CGRect regionRect; +/** + * + * @brief 是否采集鼠标 + */ + +@property(nonatomic, assign) ByteRTCMouseCursorCaptureState mouseCursorCaptureState; +/** + * + * @brief 屏幕过滤设置 + */ + +@property (strong, nonatomic) NSArray * _Nullable excludedWindowList; +/** + * + * @brief 采集区域的边框高亮设置,参看 ByteRTCHighlightConfig{@link #ByteRTCHighlightConfig}。 + */ + +@property (strong, nonatomic) ByteRTCHighlightConfig * _Nonnull highlightConfig; +@end +/** + * + * @type keytype + * @brief 屏幕采集对象的具体信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenCaptureSourceInfo : NSObject +/** + * + * @brief 屏幕分享时,共享对象的类型,参看 ByteRTCScreenCaptureSourceType{@link #ByteRTCScreenCaptureSourceType} + */ + +@property (assign, nonatomic) ByteRTCScreenCaptureSourceType sourceType; +/** + * + * @brief 屏幕分享时,共享对象的 ID。 + */ + +@property (assign, nonatomic) intptr_t sourceId; +/** + * + * @brief 屏幕分享时共享对象的名称。 + */ + +@property (copy, nonatomic) NSString * _Nullable sourceName; +/** + * + * @brief 共享的应用窗体所属应用的名称
    + * 当共享对象为应用窗体时有效 + */ + +@property (copy, nonatomic) NSString * _Nullable application; +/** + * + * @brief 共享的应用窗体所属应用进程的 pid
    + * 当共享对象为应用窗体时有效 + */ + +@property (assign, nonatomic) int pid; +/** + * + * @brief 共享的屏幕是否为主屏。
    + * 当共享对象为屏幕时有效 + */ + +@property (assign, nonatomic) BOOL primaryMonitor; +/** + * + * @brief 屏幕共享对象的坐标。多显示器的场景下,屏幕坐标系统以主屏左上角为原点 (0, 0),向右向下扩展。 + */ + +@property (assign, nonatomic) CGRect regionRect; + +@end + +/** + * + * @type keytype + * @region 视频管理 + * @brief 屏幕采集设置参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCScreenParam : NSObject +/** + * + * @brief 编码帧率,单位为 fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 编码码率,小于 0 时 SDK 会根据高宽自适应码率, 单位 kbps + */ + +@property(nonatomic, assign) NSInteger bitrate; +@end + +/** + * + * @type keytype + * @brief 虚拟背景对象。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVirtualBackgroundSource: NSObject +/** + * + * @brief 虚拟背景类型,详见 ByteRTCVirtualBackgroundSourceType{@link #ByteRTCVirtualBackgroundSourceType} 。 + */ + +@property(nonatomic, assign) ByteRTCVirtualBackgroundSourceType sourceType; +/** + * + * @brief 纯色背景使用的颜色。
    + * 格式为 0xAARRGGBB 。 + */ + +@property int sourceColor; +/** + * + * @brief 自定义背景图片的绝对路径。
    + * - 支持的格式为 jpg、jpeg、png。 + * - 图片分辨率超过 1080P 时,图片会被等比缩放至和视频一致。 + * - 图片和视频宽高比一致时,图片会被直接缩放至和视频一致。 + * - 图片和视频长宽比不一致时,为保证图片内容不变形,图片按短边缩放至与视频帧一致,使图片填满视频帧,对多出的高或宽进行剪裁。 + * - 自定义图片带有局部透明效果时,透明部分由黑色代替。 + */ + +@property(nonatomic) NSString* _Nullable sourcePath; +@end +/** + * + * @type callback + * @brief 本地视频帧监测器
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 自定义流处理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCLocalEncodedVideoFrameObserver + @optional +/** + * + * @type callback + * @brief 调用 registerLocalEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerLocalEncodedVideoFrameObserver:} 后,SDK 每次使用内部采集,采集到一帧视频帧,或收到一帧外部视频帧时,都会回调该事件。 + * @param videoSource 预留参数 + * @param frame 本地视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame} + * @list 自定义流处理 + */ + +- (void)onLocalEncodedVideoFrame:(ByteRTCVideoSource* _Nullable)videoSource + Frame:(ByteRTCEncodedVideoFrame * _Null_unspecified)frame; +@end + +#pragma mark - ByteRTCEngineExternalVideoEncoderEventHandler +/** + * + * @type callback + * @brief 自定义编码帧回调类 + * @note 回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Custom Stream Processing + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCExternalVideoEncoderEventHandler +@required +/** + * + * @type callback + * @brief 提示自定义编码帧可以开始推送的回调。
    + * 收到该回调后,你即可调用 pushExternalEncodedVideoFrame:withEncodedVideoFrame:{@link #ByteRTCEngine#pushExternalEncodedVideoFrame:withEncodedVideoFrame:} 向 SDK 推送自定义编码视频帧 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @list 自定义流处理 + */ + +- (void)onStart:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info; +@required +/** + * + * @type callback + * @brief 当收到该回调时,你需停止向 SDK 推送自定义编码视频帧 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @list 自定义流处理 + */ + +- (void)onStop:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info; +@required +/** + * + * @type callback + * @brief 当自定义编码流的帧率或码率发生变化时,触发该回调 + * @param streamId 远端编码流 ID + * @param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @param fps 变化后的帧率,单位:fps + * @param bitRateKps 变化后的码率,单位:kbps + * @list 自定义流处理 + */ + +- (void)onRateUpdate:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex + withFps:(NSInteger)fps + withBitRate:(NSInteger)bitRateKps; +@required +/** + * + * @type callback + * @brief 提示流发布端需重新生成关键帧的回调 + * @param streamId 远端编码流 ID + * @param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @list 自定义流处理 + */ + +- (void)onRequestKeyFrame:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex; +@required +/** + * + * @valid since 3.56 + * @type callback + * @brief 作为自定义编码视频流的发送端,你会在视频流可发送状态发生变化时,收到此回调。
    + * 你可以根据此回调的提示,仅对可发送的视频流进行编码,以降低本端视频编码性能消耗。此回调会根据多个因素综合判断触发,包括:本端设备性能和本端网络性能,以及按需订阅场景下,远端用户是否订阅。 + * @param streamId 自定义编码流 ID + * @param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoIndex 对应编码流的下标 + * @param active 该路流可发送状态 + * @note 要收到此回调,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType:} 设置视频源是自定义编码,且通过 setExternalVideoEncoderEventHandler:{@link #ByteRTCEngine#setExternalVideoEncoderEventHandler:} 设置了回调句柄。 + * @list 自定义流处理 + */ + +- (void)onActiveVideoLayer:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withVideoIndex:(NSInteger)videoIndex + withActive:(BOOL)active; +@end + +#pragma mark - ByteRTCEngineRemoteEncodedVideoFrameObserver +/** + * + * @type callback + * @brief 远端编码后视频数据监测器 + * @note 回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频管理 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCRemoteEncodedVideoFrameObserver +@required +/** + * + * @type callback + * @brief 调用 registerRemoteEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedVideoFrameObserver:} 后,SDK 监测到远端编码后视频数据时,触发该回调 + * @param streamId 收到的远端流 ID + * @param info 收到的远端流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo} + * @param videoFrame 收到的远端视频帧信息,参看 ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame} + * @list 自定义流处理 + */ + +- (void)onRemoteEncodedVideoFrame:(NSString*)streamId info:(ByteRTCStreamInfo * _Nonnull)info + withEncodedVideoFrame:(ByteRTCEncodedVideoFrame* _Nonnull)videoFrame; +@end + +/** + * + * @type keytype + * @brief 视频帧基础信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoFrameInfo : NSObject +/** + * + * @brief 视频帧的宽度(像素) + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频帧的高度(像素) + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 视频帧顺时针旋转角度。参看 ByteRTCVideoRotation{@link #ByteRTCVideoRotation}。 + */ + +@property(nonatomic, assign) ByteRTCVideoRotation rotation; +@end + +#pragma mark - ByteRTCPushMixedStreamToCDNObserver +/** + * + * @hidden for internal use only + * @type callback + * @brief 转推直播观察者。(Valid from 352.1)
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list CDN 推流 + */ + +@protocol ByteRTCClientMixedStreamDelegate +/** + * + * @hidden for internal use only + */ + +@optional +- (void)onClientMixedStreamEvent:(ByteRTCMixedStreamTaskEvent)event withTaskInfo:(ByteRTCMixedStreamTaskInfo*)info withMixedType:(ByteRTCMixedStreamType)type withErrorCode:(ByteRTCMixedStreamTaskErrorCode)errorCode; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流音频首帧回调 + * @param taskID 任务 ID + * @list CDN 推流 + */ + +- (void)onMixedFirstAudioFrame:(NSString *)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 客户端合流视频首帧回调 + * @param taskID 任务 ID + * @list CDN 推流 + */ + + - (void)onMixedFirstVideoFrame:(NSString *)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流音频 PCM 回调 + * @param audioFrame PCM 编码的合流音频数据帧,参看 ByteRTCAudioFrame{@link #ByteRTCAudioFrame}。 + * @param timeStamp 时间戳,单位毫秒。 + * @param taskId 转推直播任务 ID。 + * @note 收到该回调的周期为每 10 毫秒一次,并且每次的音频数据量为 10 毫秒数据量。 + * @list CDN 推流 + */ + +- (void)onMixedAudioFrame:(ByteRTCAudioFrame *_Nonnull)audioFrame withTimestamp:(int64_t)timeStamp withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流视频 YUV 回调 + * @param videoFrame YUV 合流视频数据帧,参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @param taskId 转推直播任务 ID。 + * @note 收到该回调的周期取决于视频的帧率。 + * @list CDN 推流 + */ + +- (void)onMixedVideoFrame:(id_Nonnull)videoFrame withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 端云一体合流视频 SEI 数据 + * @param dataFrame SEI 数据,详见 ByteRTCFrameExtendedData {@link #ByteRTCFrameExtendedData}。 + * @param taskId 转推直播任务 ID。 + * @list CDN 推流 + */ + +- (void)onMixedDataFrame:(ByteRTCFrameExtendedData *_Nonnull)dataFrame withTaskId:(NSString *_Nonnull)taskId; +/** + * + * @hidden for internal use only + * @type callback + * @brief 同步视频帧回调。 + * @param videoFrame 同步视频帧数组,与 uids 对应。 + * @param dataFrame SEI 数据。 + * @param uids 同步视频帧对应的 uid 数组。 + * @param task_id 转推直播任务 ID。 + * @list CDN 推流 + */ + +- (void)onCacheSyncVideo:(NSArray> *_Nonnull)videoFrames withDataFrame:(NSArray *_Nonnull)dataFrames + withUids:(NSArray*_Nonnull)uids taskId:(NSString *_Nonnull)taskId; +@end +/** + * + * @type callback + * @brief 人脸检测结果回调观察者
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list 视频处理 + */ + +@protocol ByteRTCFaceDetectionObserver +/** + * + * @type callback + * @brief 特效 SDK 进行人脸检测结果的回调。
    + * 调用 enableFaceDetection:withInterval:withModelPath:{@link #ByteRTCVideoEffect#enableFaceDetection:withInterval:withModelPath:} 注册了 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver} ,并使用 RTC SDK 中包含的特效 SDK 进行视频特效处理时,你会收到此回调。 + * @param result 人脸检测结果, 参看 ByteRTCFaceDetectionResult{@link #ByteRTCFaceDetectionResult}。 + * @list 视频管理 + */ + +- (void)onFaceDetectResult:(ByteRTCFaceDetectionResult * _Nonnull)result; +/** + * + * @hidden for intrnal use only + * @type callback + * @brief 特效 SDK 进行人像属性检测结果的回调。
    + * 调用 registerFaceDetectionObserver:withInterval: 注册了 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver},并调用 setVideoEffectExpressionDetect:{@link #ByteRTCVideoEffect#setVideoEffectExpressionDetect:} 开启人像属性检测后,你会收到此回调。 + * @param result 人像属性检测结果, 参看 ByteRTCExpressionDetectResult{@link #ByteRTCExpressionDetectResult}。 + * @list 视频处理 + */ + +- (void)onExpressionDetectResult:(ByteRTCExpressionDetectResult * _Nonnull)result; +@end + +#pragma mark - ByteRTCEngineMediaMetadataObserver +/** + * + * @hidden + * @deprecated since 3.26 and will be deleted in 3.51, use sendSEIMessage:andRepeatCount:andCountPerFrame:{@link #ByteRTCEngine#sendSEIMessage:andRepeatCount:andCountPerFrame:} instead. + * @type callback + * @brief 使用内部源视频采集时,配置和获取附加数据接口 + * @list Video Processing + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCMediaMetadataObserver +@required +/** + * + * @type callback + * @brief 当 SDK 准备发送一个视频帧时,会回调该接口,以确定是否需要在该视频帧中添加 metadata + * @param timestamp 待添加 metadata 视频帧的时间戳,单位微秒 + * @return 待发送的数据,大小不能超过 1024bytes + * @note + * - 返回 null 代表不需要添加 metadata + * - 回调中不能做长时间逻辑处理,以免影响视频卡顿 + * @list 自定义流处理 + */ + +- (NSData *_Nullable)videoFrameMediaMetaDataAtTime:(NSTimeInterval)timestamp; + +@optional +/** + * + * @type callback + * @brief 当 SDK 收到的视频帧包含 medatada 时,会回调该接口 + * @param uid 当前帧所属的用户 ID + * @param extendedData metadata + * @param timestamp 包含 metadata 视频帧的时间戳,单位为微秒 + * @note 回调中不能做长时间逻辑处理,以免影响视频卡顿 + * @list 自定义流处理 + */ + +- (void)receiveVideoFrameFromUID:(NSString * _Nonnull)uid + withExtendedData:(NSData* _Nullable)extendedData atTimestamp:(NSTimeInterval)timestamp; +@end +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension120x120; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension160x120; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension180x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension240x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension320x180; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension240x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension320x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension424x240; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension360x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension480x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension640x360; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension480x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension640x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension840x480; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension960x540; +/** + * + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension960x720; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension1280x720; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension1920x1080; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension2540x1440; +/** + * + * @brief 1920 x 1080 (Depends on the hardware) + * @hidden constructor/destructor + */ + +extern CGSize const ByteRTCVideoDimension3840x2160; +/** + * + * @type keytype + * @brief 视频编码配置。参考 [设置视频发布参数](https: + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoEncoderConfig: NSObject +/** + * + * @brief 视频宽度,单位:px + */ + +@property(nonatomic, assign) NSInteger width; +/** + * + * @brief 视频高度,单位:px + */ + +@property(nonatomic, assign) NSInteger height; +/** + * + * @brief 视频帧率,单位:fps + */ + +@property(nonatomic, assign) NSInteger frameRate; +/** + * + * @brief 最大编码码率,使用 SDK 内部采集时可选设置,自定义采集时必须设置,单位:kbps。
    + * 设为 -1 即适配码率模式,系统将根据输入的分辨率和帧率自动计算适用的码率。
    + * 设为 0 则不对视频流进行编码发送。
    + * 344 及以上版本,内部采集时默认值为 -1,344 以前版本无默认值,需手动设置。 + */ + +@property(nonatomic, assign) NSInteger maxBitrate; +/** + * + * @brief 视频最小编码码率, 单位 kbps。编码码率不会低于 `minBitrate`。
    + * 默认值为 `0`。
    + * 范围:[0, maxBitrate),当 `maxBitrate` < `minBitrate` 时,为适配码率模式。
    + * 以下情况,设置本参数无效:
    + * - 当 `maxBitrate` 为 `0` 时,不对视频流进行编码发送。 + * - 当 `maxBitrate` < `0` 时,适配码率模式。 + */ + +@property(nonatomic, assign) NSInteger minBitrate; +/** + * + * @brief 关键帧间隔,单位:毫秒,默认值为 `0` + */ + +@property(nonatomic, assign) NSInteger keyFrameIntervalMS; +/** + * + * @brief 编码策略偏好,默认为帧率优先。参看 ByteRTCVideoEncoderPreference{@link #ByteRTCVideoEncoderPreference}。 + */ + +@property(nonatomic, assign) ByteRTCVideoEncoderPreference encoderPreference; +@end + +/** + * + * @type keytype + * @brief 远端视频帧信息 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRemoteVideoConfig : NSObject +/** + * + * @brief 期望订阅的最高帧率,单位:fps,默认值为 0 即满帧订阅,设为大于 0 的值时开始生效。
    + * 如果发布端发布帧率 > 订阅端订阅的帧率,下行媒体服务器 SVC 丢帧,订阅端收到通过此接口设置的帧率;如果发布端发布帧率 < 订阅端订阅的帧率,则订阅端只能收到发布的帧率。
    + * 仅码流支持 SVC 分级编码特性时方可生效。 + */ + +@property (nonatomic, assign) int framerate; +/** + * + * @brief 视频宽度,单位:px + */ + +@property(nonatomic, assign) int width; +/** + * + * @brief 视频高度,单位:px + */ + +@property(nonatomic, assign) int height; +@end +/** + * + * @type keytype + * @brief 房间参数配置 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCRoomConfig : NSObject +/** + * + * @brief 房间模式,参看 ByteRTCRoomProfile{@link #ByteRTCRoomProfile},默认为普通音视频通话模式,进房后不可更改。 + */ + +@property(nonatomic) ByteRTCRoomProfile profile; + +/** + * + * @brief 直播模式,参看 ByteRTCRoomLiveMode{@link #ByteRTCRoomLiveMode},默认为 `ByteRTCRoomLiveModeCoHost`,进房后可通过 setLiveMode:{@link #ByteRTCRoom#setLiveMode:} 设置。 + * @note 只有当`room_profile_type`为`ByteRTCRoomProfileTypeLive`时,`live_mode`的值才有效。 + */ + +@property(nonatomic) ByteRTCRoomLiveMode liveMode; + +/** + * + * @brief 流 ID,默认为空。 + */ + +@property(nonatomic) NSString * streamId; + /** + * + * @brief 是否自动发布音频流,默认为自动发布。 + * + 若调用 `setUserVisibility` 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + +@property(assign, nonatomic) BOOL isPublishAudio; + /** + * + * @brief 是否自动发布视频流,默认为自动发布。
    + * + 若调用 setUserVisibility:{@link #ByteRTCRoom#setUserVisibility:} 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + * + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。 + */ + +@property(assign, nonatomic) BOOL isPublishVideo; +/** + * + * @brief 是否自动订阅音频流,默认为自动订阅。 + */ + +@property(assign, nonatomic) BOOL isAutoSubscribeAudio; +/** + * + * @brief 是否自动订阅主视频流,默认为自动订阅。 + */ + +@property(assign, nonatomic) BOOL isAutoSubscribeVideo; +@end + +/** + * + * @type keytype + * @brief 水印图片相对视频流的位置和大小。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoByteWatermark: NSObject +/** + * + * @brief 水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float x; +/** + * + * @brief 水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float y; +/** + * + * @brief 水印图片宽度与视频流宽度的比值,取值范围 [0,1)。 + */ + +@property(assign, nonatomic) float width; +/** + * + * @brief 水印图片高度与视频流高度的比值,取值范围为 [0,1)。 + */ + +@property(assign, nonatomic) float height; +@end + +/** + * + * @type keytype + * @brief 水印参数 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoWatermarkConfig: NSObject +/** + * + * @brief 水印是否在视频预览中可见,默认可见。 + */ + +@property(nonatomic, assign) BOOL visibleInPreview; +/** + * + * @brief 横屏时的水印位置和大小,参看 ByteRTCVideoByteWatermark{@link #ByteRTCVideoByteWatermark}。 + */ + +@property(strong, nonatomic) ByteRTCVideoByteWatermark * _Nonnull positionInLandscapeMode; +/** + * + * @brief 竖屏时的水印位置和大小,参看 ByteRTCVideoByteWatermark{@link #ByteRTCVideoByteWatermark}。 + */ + +@property(strong, nonatomic) ByteRTCVideoByteWatermark * _Nonnull positionInPortraitMode; +@end +/** + * + * @hidden(iOS) + * @type api + * @brief 主要用于枚举、设置视频采集设备 + * @list 视频管理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoDeviceManager : NSObject +/** + * + * @type api + * @brief 获取视频采集设备列表。 + * @return 包含系统中所有视频采集设备的列表,参看 ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}。
    + * 等待超时后会返回空列表。超时时间默认为 10 s。建议通过 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 监听到 `ByteRTCMediaDeviceListUpdated` 后,再次调用本接口获取。 + * @note 你可以在收到 rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:} 了解设备变更后,重新调用本接口以获得新的设备列表。 + * @list 视频管理 + */ + +- (ByteRTCDeviceCollection * _Nonnull)enumerateVideoCaptureDevices; +/** + * + * @type api + * @brief 获取当前 SDK 正在使用的视频采集设备信息 + * @param deviceID 视频设备 ID + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + +- (int)getVideoCaptureDevice:(NSString * _Nonnull * _Nonnull) deviceID; +/** + * + * @type api + * @brief 设置当前视频采集设备 + * @param deviceID 视频设备 ID。调用 enumerateVideoCaptureDevices{@link #ByteRTCVideoDeviceManager#enumerateVideoCaptureDevices} 获取全量视频设备。 + * @return + * - 0:方法调用成功 + * - !0:方法调用失败 + * @list 视频管理 + */ + +- (int)setVideoCaptureDevice:(NSString* _Nonnull)deviceID; +@end +/** + * + * @type callback + * @brief 截取视频画面回调类
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + * @list Video Management + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCVideoSnapshotCallbackDelegate +@required +/** + * + * @type callback + * @brief 调用 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot:} 截取视频画面时,收到此回调。 + * @param taskId 本地截图任务的编号。和 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot:} 的返回值一致。 + * @param videoSource 预留参数 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param errorCode 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + +- (void)onTakeLocalSnapshotResult:(NSInteger) taskId + videoSource:(ByteRTCVideoSource * _Nullable)videoSource + image:(ByteRTCImage * _Nullable)image + errorCode:(NSInteger)errorCode; +/** + * + * @type callback + * @brief 调用 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback:} 截取视频画面时,收到此回调。 + * @param taskId 远端截图任务的编号。和 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback:} 的返回值一致。 + * @param streamId 远端视频流的 ID。 + * @param info 远端视频流的属性,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 + * @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 + * @param errorCode 截图错误码:
    + * - 0: 成功 + * - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 + * - -2: 截图错误。流无效。 + * - -3: 截图错误。截图超时,超时时间 1 秒。 + * @list 高级功能 + */ + +- (void)onTakeRemoteSnapshotResult:(NSInteger)taskId + streamId:(NSString*)streamId + info:(ByteRTCStreamInfo * _Nonnull)info + image:(ByteRTCImage * _Nullable)image + errorCode:(NSInteger)errorCode; +@end +/** + * + * @type api + * @brief 高级视频特效,参看[集成指南](https: + * @list 视频处理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoEffect : NSObject +/** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效算法模型地址,并初始化特效模块。 + * @param finder ResourceFinder 地址 + * @param deleter ResourceDeleter 地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + +- (int) setAlgoModelResourceFinder:(void*_Nonnull)finder deleter:(void*_Nonnull)deteter; + +/** + * + * @type api + * @brief 从特效 SDK 获取授权消息,用于获取在线许可证。 + * @param ppmsg 授权消息字符串地址 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 使用视频特效的功能前,你必须获取特效 SDK 的在线许可证。 + * - 通过此接口获取授权消息后,参考 [在线授权说明](https: + * @list 视频处理 + */ + +- (int)getAuthMessage:(NSString *_Nullable*_Nullable)ppmsg; +/** + * + * @type api + * @brief 检查视频特效证书,设置算法模型路径,并初始化特效模块。 + * @param licenseFile 证书文件的绝对路径,用于鉴权。 + * @param algoModelDir 算法模型绝对路径,即存放特效 SDK 所有算法模型的目录。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 鉴权时,会检查 CV 服务端时间和本地设备的时间差异。你必须保证本地系统时间和实际时间一致。 + * @list 视频处理 + */ + +- (int) initCVResource:(NSString* _Nonnull)licenseFile + withAlgoModelDir: (NSString* _Nonnull)algoModelDir; +/** + * + * @type api + * @brief 开启高级美颜、滤镜等视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource:withAlgoModelDir:{@link #ByteRTCVideoEffect#initCVResource:withAlgoModelDir:} 进行初始化。 + * - 调用该方法后,特效不直接生效,你还需调用 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 设置视频特效素材包或调用 setColorFilter:{@link #ByteRTCVideoEffect#setColorFilter:} 设置滤镜。 + * - 调用 disableVideoEffect{@link #ByteRTCVideoEffect#disableVideoEffect} 关闭视频特效。 + * @list 视频处理 + */ + +- (int) enableVideoEffect; +/** + * + * @type api + * @brief 关闭视频特效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect} 开启视频特效。 + * @list 视频处理 + */ + +- (int) disableVideoEffect; +/** + * + * @hidden for internal use only + * @type api + * @brief 返回视频特效句柄。私有接口。 + * @list 视频处理 + */ + +- (void* _Nullable)getVideoEffectHandle; +/** + * + * @hidden for internal use only + * @type api + * @brief 私有接口
    + * 设置视频特效素材包 + * @param stickerPath 特效素材包绝对路径。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。具体错误码,参看 [错误码表](https: + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) applyStickerEffect:(NSString* _Nullable)stickerPath; +/** + * + * @hidden for internal use only + * @type api + * @brief 设置视频特效素材包。 + * @param effectPath 特效素材包绝对路径。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。 + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) setEffect:(NSString* _Nullable)effectPath; +/** + * + * @hidden for internal use only + * @type api + * @brief 重置贴纸特效。 + * @return + * - 0: 调用成功。 + * - 1000: 未集成特效 SDK。 + * - 1001: 特效 SDK 不支持该功能。 + * - < 0: 调用失败。 + * @note 在调用这个方法之前,你须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) resetSticker; +/** + * + * @type api + * @brief 设置视频特效素材包。 + * @param effectNodes 特效素材包绝对路径数组。
    + * 要取消当前视频特效,将此参数设置为 null。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用本方法前,必须先调用 enableVideoEffect{@link #ByteRTCVideoEffect#enableVideoEffect}。 + * @list 视频处理 + */ + +- (int) setEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @hidden for internal use only + * @type api + * @brief 叠加视频特效素材包。 + * @param effectNodes 特效素材包路径数组。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 该接口会在 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 设置的特效基础上叠加特效。 + * @list Video Processing + */ + +- (int) appendEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @hidden for internal use only + * @type api + * @brief 移除指定的视频特效资源。 + * @param effectNodes 特效素材包路径数组。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 移除 setEffectNodes:{@link #ByteRTCVideoEffect#setEffectNodes:} 或 appendEffectNodes:{@link #ByteRTCVideoEffect#appendEffectNodes:} 设置的视频特效资源。 + * @list Video Processing + */ + +- (int) removeEffectNodes:(NSArray*_Nonnull)effectNodes; +/** + * + * @type api + * @brief 设置特效强度。 + * @param node 特效素材包绝对路径,参考[素材包结构说明](https: + * @param key 需要设置的素材 key 名称,参考[素材 key 对应说明](https: + * @param value 特效强度值,取值范围 [0,1],超出范围时设置无效。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) updateEffectNode:(NSString* _Nonnull)node + key:(NSString* _Nonnull)key value:(float) value; +/** + * + * @type api + * @brief 设置颜色滤镜。 + * @param filterRes 滤镜资源包绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 setColorFilterIntensity:{@link #ByteRTCVideoEffect#setColorFilterIntensity:} 设置已启用颜色滤镜的强度。设置强度为 0 时即关闭颜色滤镜。 + * @list 视频处理 + */ + +- (int) setColorFilter:(NSString* _Nonnull)filterRes; +/** + * + * @type api + * @brief 设置已启用颜色滤镜的强度。 + * @param intensity 滤镜强度。取值范围 [0,1],超出范围时设置无效。
    + * 当设置滤镜强度为 0 时即关闭颜色滤镜。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) setColorFilterIntensity:(float) intensity; +/** + * + * @type api + * @brief 将摄像头采集画面中的人像背景替换为指定图片或纯色背景。 + * @param backgroundStickerPath 背景贴纸特效素材绝对路径。 + * @param source 背景贴纸对象,参看 ByteRTCVirtualBackgroundSource{@link #ByteRTCVirtualBackgroundSource}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note + * - 调用本方法前,必须先调用 initCVResource:withAlgoModelDir:{@link #ByteRTCVideoEffect#initCVResource:withAlgoModelDir:} 进行初始化。 + * - 调用 disableVirtualBackground{@link #ByteRTCVideoEffect#disableVirtualBackground} 关闭虚拟背景。 + * @list 视频处理 + */ + +- (int) enableVirtualBackground:(NSString* _Nonnull)backgroundStickerPath + withSource:(ByteRTCVirtualBackgroundSource* _Nonnull)source; +/** + * + * @type api + * @brief 关闭虚拟背景。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @note 调用 enableVirtualBackground:withSource:{@link #ByteRTCVideoEffect#enableVirtualBackground:withSource:} 开启虚拟背景后,可以调用此接口关闭虚拟背景。 + * @list 视频处理 + */ + +- (int) disableVirtualBackground; +/** + * + * @hidden for internal use only + * @type api + * @brief 开启人像属性检测。 + * @param config 人像属性检测参数,参看 ByteRTCExpressionDetectConfig{@link #ByteRTCExpressionDetectConfig}。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list Video Processing + */ + +- (int) setVideoEffectExpressionDetect:(ByteRTCExpressionDetectConfig* _Nonnull)config; +/** + * + * @type api + * @brief 开启人脸识别功能,并设置人脸检测结果回调观察者。
    + * 回调此观察者后,你会周期性收到 onFaceDetectResult:{@link #ByteRTCFaceDetectionObserver#onFaceDetectResult:} 回调。 + * @param observer 人脸检测结果回调观察者,参看 ByteRTCFaceDetectionObserver{@link #ByteRTCFaceDetectionObserver}。 + * @param interval 两次回调之间的最小时间间隔,必须大于 0,单位为毫秒。实际收到回调的时间间隔大于 interval,小于 interval+视频采集帧间隔。 + * @param path 人脸检测算法模型文件路径,一般为 ttfacemodel 文件夹中 tt_face_vXXX.model 文件的绝对路径。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - -1004: 初始化中,初始化完成后启动此功能。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) enableFaceDetection:(_Nullable id) observer + withInterval:(NSUInteger)interval + withModelPath:(NSString* _Nonnull)path; +/** + * + * @type api + * @brief 关闭人脸识别功能。 + * @return + * - 0: 调用成功。 + * - –1000: 未集成特效 SDK。 + * - –1001: 特效 SDK 不支持该功能。 + * - –1002: 特效 SDK 版本不兼容。 + * - < 0: 调用失败,错误码对应具体描述参看 [错误码表](https: + * @list 视频处理 + */ + +- (int) disableFaceDetection; +@end + + +/** + * + * @type keytype + * @brief RTC 智能决策后得到的帧率和分辨率积(宽*高)。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCFrameUpdateInfo : NSObject +/** + * + * @brief 分辨率积(宽*高)。 + */ + +@property(assign, nonatomic) int pixel; +/** + * + * @brief 帧率。 + */ + +@property(assign, nonatomic) int framerate; +@end +/** + * + * @hidden(macOS) + * @type keytype + * @brief 蜂窝网络辅助增强应用的媒体模式 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCMediaTypeEnhancementConfig: NSObject +/** + * + * @brief 对信令消息,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceSignaling; +/** + * + * @brief 对屏幕共享以外的其他音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceAudio; +/** + * + * @brief 对屏幕共享视频以外的其他视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceVideo; +/** + * + * @brief 对屏幕共享音频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceScreenAudio; +/** + * + * @brief 对屏幕共享视频,是否启用蜂窝网络辅助增强。默认不启用。 + */ + +@property (assign, nonatomic) BOOL enhanceScreenVideo; +@end + +/** +* +* @hidden internal use only +* @type keytype +* @brief 缓存同步模式。 +*/ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncMode) { + /** + * + * @brief 合唱场景下,主唱应采用此模式,以发送带时间戳信息的媒体数据。 + */ + + ByteRTCChorusCacheSyncModeProducer= 0, + /** + * + * @brief 合唱场景下,副唱应采用此模式。
    + * 此模式下,副唱收到来自主唱的带时间戳的媒体数据。副唱发送的媒体数据中带有来自主唱的时间戳。 + */ + + ByteRTCChorusCacheSyncModeRetransmitter= 1, + /** + * + * @brief 合唱场景下,听众应采用此模式。
    + * 此模式下,听众收到来自主唱的时间戳,并据此对齐来自主唱和副唱的媒体数据,以获得良好的合唱播放效果。 + */ + + ByteRTCChorusCacheSyncModeConsumer = 2 +}; + +/** + * + * @type keytype + * @hidden for internal use + * @brief 合唱缓存同步事件。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncEvent) { + /** + * + * @brief 成功。 + */ + + ByteRTCChorusCacheSyncEventStartSuccess = 0, + /** + * + * @brief 失败。 + */ + + ByteRTCChorusCacheSyncEventStartFailed = 1, +}; + +/** + * + * @hidden for internal use only + * @type errorcode + * @brief 缓存同步错误码。 + */ + +typedef NS_ENUM(NSUInteger, ByteRTCChorusCacheSyncError) { + /** + * + * @brief 成功。 + */ + + ByteRTCChorusCacheSyncErrorOK = 0, + /** + * + * @brief 失败。推送至 CDN 时,应进行以下设置:
    + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.enable_sync = true`; + * - `IMixedStreamConfig.MixedStreamSyncControlConfig.base_user_id = {uid of producer}`。 + */ + + ByteRTCChorusCacheSyncErrorWrongState = 1, + /** + * + * @brief 缓存同步功能已启动,不需要重复开启。 + */ + + ByteRTCChorusCacheSyncErrorAlreadyRunning = 2 +}; + +/** + * + * @hidden for internal use only + * @type keytype + * @brief 缓存同步配置。 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCChorusCacheSyncConfig: NSObject +/** + * + * @brief 最大媒体缓存时长(ms)。
    + * 取值范围是 `[500, 2500]`,默认值是 `2000`。
    + * 值越大,同步效果越好,但会造成占用内存较大。如果参与缓存同步的各路媒体流之间的时间差超过此值,会造成丢帧。 + */ + +@property(assign, nonatomic) int maxCacheTimeMs; +/** + * + * @brief 模式。参看 ByteRTCChorusCacheSyncMode{@link #ByteRTCChorusCacheSyncMode}. 默认值是 `retransmitter`。 + */ + +@property (assign, nonatomic) ByteRTCChorusCacheSyncMode mode; +/** + * + * @brief 收到 onSyncedVideoFrames:withUids:{@link #ByteRTCChorusCacheSyncObserver#onSyncedVideoFrames:withUids:} 的频率。
    + * 默认值是 `15`。此值通常应小于等于原始视频帧率;如果大于原始视频帧率,可能会收到重复帧。 + */ + +@property(assign, nonatomic) int videoFps; +@end +/** + * + * @hidden for internal use only + * @type callback + * @brief 缓存同步 Observer + * @list Video Processing + */ + +@protocol ByteRTCChorusCacheSyncObserver +/** + * + * @type callback + * @brief 调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer:},并设置为 `consumer` 的用户会通过此回调获取经缓存同步后的视频帧。获取频率通过启动同步时的 `fps` 进行设置。 + * @param videoFrames 对应 `uids` 的视频帧。参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 + * @param uids 参与合唱缓存同步的 `producer` 和 `retransmitter` 的列表,不包括参与但未发送媒体数据的用户。 + * @list Video Processing + */ + +- (void)onSyncedVideoFrames:(NSArray>*)videoFrames withUids:(NSArray*)uids; +/** + * + * @type callback + * @brief 参与合唱缓存同步的 `producer` 和 `retransmitter` 发生变化时,收到此回调。 + * @param uids 当前的参与者列表 + * @note 有以下情况可能造成参与者发生变化:
    + * - 用户主动调用 startChorusCacheSync:observer:{@link #ByteRTCEngine#startChorusCacheSync:observer:} 或 stopChorusCacheSync{@link #ByteRTCEngine#stopChorusCacheSync}; + * - 原本参与缓存同步的用户发生异常退出。 + * @list Video Processing + */ + +- (void)onSyncedUsersChanged:(NSArray*)uids; +/** + * + * @type callback + * @brief 缓存同步事件回调 + * @param event 事件,参看 ByteRTCChorusCacheSyncEvent{@link #ByteRTCChorusCacheSyncEvent}。 + * @param error 错误码,参看 ByteRTCChorusCacheSyncError{@link #ByteRTCChorusCacheSyncError}。 + * @list Video Processing + */ + +- (void)onSyncEvent:(ByteRTCChorusCacheSyncEvent)event withError:(ByteRTCChorusCacheSyncError)error; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h new file mode 100644 index 0000000..6e81f64 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCVideoDefinesEx.h @@ -0,0 +1,167 @@ +#import "ByteRTCDefines.h" +/** + * + * @type keytype + * @brief 视频内容类型 + */ +typedef NS_ENUM(NSUInteger, ByteRTCVideoContentCategory) { + /** + * + * @brief 相机采集的内容 + */ + ByteRTCVideoContentCategoryCamera = 0, + /** + * + * @brief 屏幕共享的内容 + */ + ByteRTCVideoContentCategoryScreen = 1, +}; + +/** + * + * @type keytype + * @brief 视频源设置 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCVideoSourceConfig : NSObject +/** + * + * @brief 视频源类型。参看 ByteRTCVideoSourceType{@link #ByteRTCVideoSourceType}。默认是 `kVideoSourceTypeExternal`。 + */ +@property (assign, nonatomic) ByteRTCVideoSourceType sourceType; +/** + * + * @brief 参看 ByteRTCVideoContentCategory{@link #ByteRTCVideoContentCategory}。默认是 `kVideoContentCategoryCamera`。 + */ +@property (assign, nonatomic) ByteRTCVideoContentCategory contentCategory; +@end + + +/** + * + * @type keytype + * @brief 媒体流的优先级 + */ +typedef NS_ENUM(NSUInteger, ByteRTCStreamPriority) { + /** + * + * @brief 低优先级 + */ + ByteRTCStreamPriorityLow = 0, + /** + * + * @brief 中优先级 + */ + ByteRTCStreamPriorityNormal = 1, + /** + * + * @brief 高优先级 + */ + ByteRTCStreamPriorityHigh = 2, +}; + +/** + * + * @type keytype + * @brief 音频源包含的内容 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioContentTypeConfig : NSObject +/** + * + * @brief 包含麦克风采集的音频 + */ +@property(assign, nonatomic) BOOL hasMic; +/** + * + * @brief 包含屏幕音频 + */ +@property(assign, nonatomic) BOOL hasScreenAudio; +/** + * + * @brief 包含媒体播放器的音频 + */ +@property(assign, nonatomic) BOOL hasMediaPlayer; +@end + +/** + * + * @type keytype + * @brief 音频编码设置。 + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCAudioEncodeConfig : NSObject +/** + * + * @brief 编码器类型。
    + * + 0:OPUS
    + * + 1:NICO
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger codecType; +/** + * + * @brief 编码模式
    + * + 0:语音
    + * + 1:音乐
    + * + -1:根据 `channel_num` 不同,使用对应的编码模式。声道数为 `1` 时,编码模式是语音;声道数为 `2` 时,编码模式是音乐。 + */ +@property(nonatomic, assign) NSInteger encMode; +/** + * + * @brief 声道数。取值范围是:`{1, 2}`。默认值是 `-1`,配置下发的配置。 + */ +@property(nonatomic, assign) NSInteger channelNum; +/** + * + * @brief 码率。取值范围:`[6K, 510K]`。 + */ +@property(nonatomic, assign) NSInteger encBitrate; +/** + * + * @brief 是否启用非连续传输功能(DTX)。非连续传输功能能够在安静的场景下降低码率。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger useDtx; +/** + * + * @brief 带内前向纠错功能。能够提供一定的抗丢包能力。
    + * + 0:关闭
    + * + 1:打开
    + * + -1:配置下发的配置 + */ +@property(nonatomic, assign) NSInteger useInbandfec; +/** + * + * @brief 采样率。取值范围是 `[16K, 48K]`。
    + * 修改此参数会触发编码器重启。 + */ +@property(nonatomic, assign) NSInteger sampleRate; +/** + * + * @brief 编码帧长。取值范围:`{10, 20, 40, 60, 120}`。 + */ +@property(nonatomic, assign) NSInteger packetSize; +@end + +/** + * + * @type keytype + * @brief + */ +BYTERTC_APPLE_EXPORT @interface ByteRTCStreamKey : NSObject +/** + * + * @brief 用户 ID + */ +@property(nonatomic, copy, nullable) NSString *userId; +/** + * + * @brief 房间 ID + */ +@property(nonatomic, copy, nullable) NSString *roomId; +/** + * + * @brief 流属性,包括主流、屏幕流。参看 [StreamIndex](70083#StreamIndex-2) + */ +@property(nonatomic, assign) ByteRTCStreamIndex streamIndex; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h new file mode 100644 index 0000000..9e8dd22 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTCWTNStream.h @@ -0,0 +1,337 @@ +/* + * Copyright (c) 2021 The VolcEngineRTC project authors. All Rights Reserved. + * @brief ByteRTCWTNStream +*/ + +#import +#import "ByteRTCVideoDefines.h" +/** + * + * @type keytype + * @brief WTN 媒体流状态 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWTNSubscribeState) { + /** + * + * @brief 订阅 WTN 媒体流 + */ + + ByteRTCWTNSubscribeStateSubscribe = 0, + /** + * + * @brief 取消订阅 WTN 媒体流 + */ + + ByteRTCWTNSubscribeStateUnsubscribe = 1 +}; +/** + * + * @type keytype + * @brief WTN 媒体流订阅状态改变的原因 + */ + +typedef NS_ENUM(NSInteger, ByteRTCWTNSubscribeStateChangeReason) { + /** + * + * @brief 订阅 WTN 媒体流成功 + */ + + ByteRTCWTNSubscribeStateChangeReasonSubscribe = 0, + /** + * + * @brief 其他原因订阅失败 + */ + + ByteRTCWTNSubscribeStateChangeReasonUnsubscribe = 1300, + /** + * + * @brief 订阅失败,拉流时远端未发布 + */ + + ByteRTCWTNSubscribeStateChangeReasonRemotePublish = 1301, + /** + * + * @brief 订阅失败,超出单端订阅上限。一个引擎实例最多拉 5 路流。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverClientSubscribeStreamLimit = 1310, + /** + * + * @brief 订阅失败。超出单流订阅人数上限。该限制由 RTC 服务端决定。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverStreamSubscribeUserLimit = 1311, + /** + * + * @brief 订阅失败。超出单流订阅请求 QPS 上限。该限制由 RTC 服务端决定。 + */ + + ByteRTCWTNSubscribeStateChangeReasonOverStreamSubscribeRequestLimit = 1312 +}; + + +/** + * + * @type callback + * @brief WTN 事件回调接口。
    + * 注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。 + */ + +BYTERTC_APPLE_EXPORT @protocol ByteRTCWTNStreamDelegate +/** +* +* @type callback +* @valid since 3.60. +* @brief 通话中本地设备接收订阅的远端 WTN 视频流的流 ID 以及远端 WTN 视频流统计信息。 +* @param streamId WTN 流 ID +* @param videoStats 远端 WTN 视频流的统计信息,详见 ByteRTCRemoteVideoStats{@link #ByteRTCRemoteVideoStats}。 +* @list WTN +* @order 0 +*/ + +- (void)onWTNRemoteVideoStats:(NSString* _Nonnull)streamId + videoStats:(const ByteRTCRemoteVideoStats* _Nonnull)videoStats; +/** +* +* @type callback +* @valid since 3.60. +* @brief 通话中本地设备接收订阅的远端 WTN 音频流的流 ID 以及远端 WTN 音频流统计信息。 +* @param streamId WTN 流 ID +* @param audioStats 远端 WTN 音频流的统计信息,详见 ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats}。 +* @list WTN +* @order 1 +*/ + +- (void)onWTNRemoteAudioStats:(NSString* _Nonnull)streamId + audioStats:(const ByteRTCRemoteAudioStats* _Nonnull)audioStats; + +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onPlayPublicStreamResult:errorCode:` 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 视频流订阅状态变化回调
    +* 通过 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。 +* @param streamId WTN 视频流的 ID +* @param state 视频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。 +* @param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。 +* @list WTN +* @order 2 +*/ + + +- (void)onWTNVideoSubscribeStateChanged:(NSString *_Nonnull)streamId + state:(ByteRTCWTNSubscribeState)state reason:(ByteRTCWTNSubscribeStateChangeReason)reason; +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onPlayPublicStreamResult:errorCode:` 方法中的 WTN 音频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 音频流订阅状态变化回调
    +* 通过 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。 +* @param streamId WTN 音频流的 ID +* @param state 音频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。 +* @param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。 +* @list WTN +* @order 2 +*/ + +- (void)onWTNAudioSubscribeStateChanged:(NSString *_Nonnull)streamId + state:(ByteRTCWTNSubscribeState)state reason:(ByteRTCWTNSubscribeStateChangeReason)reason; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替代了 `onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief WTN 流的首帧视频解码成功
    + * 关于 订阅 WTN 流,详见 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}。 + * @param streamId WTN 流 ID + * @param frameInfo 视频帧信息,参看 ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} + * @list WTN + * @order 4 + */ + +- (void)onWTNFirstRemoteVideoFrameDecoded:(NSString * _Nonnull)streamId withFrameInfo:(ByteRTCVideoFrameInfo * _Nonnull)frameInfo NS_SWIFT_NAME(onWTNFirstRemoteVideoFrameDecoded(streamId:withFrameInfo:)); + +/** +* +* @type callback +* @valid since 3.60. 自 3.60 起,该回调替代了 `rtcEngine:onFirstPublicStreamAudioFrame:`。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 +* @brief WTN 流的首帧音频解码成功
    +* 关于订阅 WTN 音频流,详见 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}。 +* @param streamId WTN 流 ID +* @list WTN +* @order 3 +*/ + +- (void)onWTNFirstRemoteAudioFrame:(NSString * _Nonnull)streamId; + +/** + * + * @type callback + * @valid since 3.60. 自 3.60 起,该回调替换了 `rtcEngine:onPublicStreamSEIMessageReceived:andMessage:andSourceType:` 来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 + * @brief 回调 WTN 流中包含的 SEI 信息。
    + * subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}/subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 接口启动拉 WTN 音频/视频流功能后,通过此回调收到 WTN 流中的 SEI 消息。 + * @param streamId WTN 流 ID。 + * @param channelId SEI 消息通道 ID,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 + * @param message 收到的 SEI 消息内容。
    + * 通过调用客户端 `sendPublicStreamSEIMessage` 插入的 SEI 信息。 + * 当 WTN 流中的多路视频流均包含有 SEI 信息:SEI 不互相冲突时,将通过多次回调分别发送;SEI 在同一帧有冲突时,则只有一条流中的 SEI 信息被透传并融合到 WTN 流中。 + * @note 通过 Open API 插入的自定义信息,应通过回调 onWTNDataMessageReceived:andMessage:andSourceType:{@link #ByteRTCWTNStreamDelegate#onWTNDataMessageReceived:andMessage:andSourceType:} 获取。 + * @list WTN + * @order 5 + */ + +- (void)onWTNSEIMessageReceived:(NSString* _Nonnull)streamId andChannelId:(int)channelId andMessage:(NSData* _Nonnull)message; + +/** + * + * @type callback + * @valid since 3.60. + * @brief 回调 WTN 流中包含的数据信息。
    + * 通过 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:}/subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:} 订阅 WTN 流后,可以通过本回调获取 WTN 流中的数据消息,包括调用 Open API 发送的 SEI 消息和音量回调。 + * @param streamId WTN 流 ID + * @param message 收到的数据消息内容,如下:
    + * - 调用 WTN 流 OpenAPI 发送的自定义消息。 + * - 媒体流音量变化,需要通过 WTN 流 OpenAPI 开启回调。JSON 格式说明如下: + * {
    + * "Type" : "VolumeIndication", + * "VolumeInfos" : [ + * {
    + * "RoomId":"1000001", + * "UserId":"1000001", + * "StreamType":0, + * "LinearVolume":1 + * }
    + * @param sourceType 数据消息来源,参看 ByteRTCDataMessageSourceType{@link #ByteRTCDataMessageSourceType}。 + * @note 通过调用客户端 API 插入的 SEI 信息,应通过回调 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 获取。 + * @list WTN + */ + +- (void)onWTNDataMessageReceived:(NSString* _Nonnull)streamId andMessage:(NSData* _Nonnull)message andSourceType:(ByteRTCDataMessageSourceType)sourceType; + +@end + +/** + * + * @type api + * @region WTN + * @brief WTN 流处理 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCWTNStream :NSObject +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream:` 和 `stopPlayPublicStream:` 方法来订阅/取消订阅指定 WTN 视频流,如果你使用了这两个方法,请迁移至此接口。 + * @brief 订阅/取消订阅指定 WTN 视频流
    + * 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 视频流。 + * @param streamId WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 + * @param subscribe 是否订阅 WTN 流
    + * - true:订阅 + * - false:取消订阅 + * @return + * - 0: 成功。同时将收到 + onWTNAudioSubscribeStateChanged:state:reason:{@link #ByteRTCWTNStreamDelegate#onWTNAudioSubscribeStateChanged:state:reason:} 回调。 + * - !0: 失败。当参数不合法或参数为空,调用失败。 + * @note + * - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}/subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 + * - 在调用本接口之前,建议先绑定渲染视图。 + * - 调用 setWTNRemoteVideoCanvas:withCanvas:{@link #ByteRTCWTNStream#setWTNRemoteVideoCanvas:withCanvas:} 绑定内部渲染视图 + * - 调用 setWTNRemoteVideoSink:withSink:withConfig:{@link #ByteRTCWTNStream#setWTNRemoteVideoSink:withSink:withConfig:} 绑定自定义渲染视图 + * - 调用本接口后,可以通过 onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:{@link #ByteRTCWTNStreamDelegate#onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:} 回调 WTN 视频流的首帧解码情况 + * - 调用本接口后,可以通过 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 回调 WTN 流中包含的 SEI 信息。 + * @list WTN + * @order 0 + */ + +- (int)subscribeWTNVideoStream:(NSString * _Nonnull)streamId subscribe:(bool)subscribe; + +/** +* +* @type api +* @valid since 3.60. 自 3.60 起,此接口替代了 `startPlayPublicStream:` 和 `stopPlayPublicStream:` 方法来订阅/取消订阅指定 WTN 音频流,如果你使用了这两个方法,请迁移至此接口。 +* @brief 订阅/取消订阅指定 WTN 音频流
    +* 无论用户是否在房间内,都可以调用本接口订阅/取消订阅指定的 WTN 音频流。 +* @param streamId WTN 流 ID,如果指定流暂未发布,则本地客户端将在其开始发布后接收到流数据。 +* @param subscribe 是否订阅 WTN 流
    +* - true:订阅 +* - false:取消订阅 +* @return +* - 0: 成功。同时将收到 onWTNVideoSubscribeStateChanged:state:reason:{@link #ByteRTCWTNStreamDelegate#onWTNVideoSubscribeStateChanged:state:reason:} 回调。 +* - !0: 失败。当参数不合法或参数为空,调用失败。 +* @note +* - 一个客户端最多同时播放 5 路 WTN 流,请及时调用 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe:}/subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe:} 取消订阅 WTN 流,避免订阅的 WTN 流数量超限。 +* - 在调用本接口之前,建议先绑定渲染视图。 +* - 调用 setWTNRemoteVideoCanvas:withCanvas:{@link #ByteRTCWTNStream#setWTNRemoteVideoCanvas:withCanvas:} 绑定内部渲染视图 +* - 调用 setWTNRemoteVideoSink:withSink:withConfig:{@link #ByteRTCWTNStream#setWTNRemoteVideoSink:withSink:withConfig:} 绑定自定义渲染视图 +* - 调用本接口后,可以通过 onWTNFirstRemoteAudioFrame:{@link #ByteRTCWTNStreamDelegate#onWTNFirstRemoteAudioFrame:} 回调 WTN 音频流首帧解码情况。 +* - 调用本接口后,可以通过 onWTNSEIMessageReceived:andChannelId:andMessage:{@link #ByteRTCWTNStreamDelegate#onWTNSEIMessageReceived:andChannelId:andMessage:} 回调 WTN 流中包含的 SEI 信息。 +* @list WTN +* @order 1 +*/ + +- (int)subscribeWTNAudioStream:(NSString * _Nonnull)streamId subscribe:(bool)subscribe; + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoCanvas:withCanvas:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定内部渲染视图 + * @param streamId WTN 流 ID + * @param canvas 内部渲染视图,如果需要解除视频的绑定视图,把 videoCanvas 设置为空。详见 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} + * @return + * - 0:成功 + * - !0:失败 + * @list WTN + * @order 2 + */ + +- (int)setWTNRemoteVideoCanvas:(NSString *_Nonnull)streamId + withCanvas:(ByteRTCVideoCanvas * _Nullable)canvas NS_SWIFT_NAME(setWTNRemoteVideoCanvas(_:withCanvas:)); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamVideoSink:withSink:withPixelFormat:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 为指定 WTN 流绑定自定义渲染器。详见[自定义视频渲染](https: + * @param streamId WTN 流 ID + * @param videoSink 自定义视频渲染器,需要释放渲染器资源时,将 videoSink 设置为 `null`。参看 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} + * @param config 远端视频帧回调配置,参看 ByteRTCRemoteVideoSinkConfig{@link #ByteRTCRemoteVideoSinkConfig} + * @return + * - 0: 成功 + * - <0: 失败。具体失败原因参看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus}。 + * @list WTN + * @order 3 + */ + +- (int)setWTNRemoteVideoSink:(NSString *_Nonnull)streamId + withSink:(id _Nullable)videoSink + withConfig:(ByteRTCRemoteVideoSinkConfig*)config NS_SWIFT_NAME(setWTNRemoteVideoSink(_:withSink:withConfig:)); + +/** + * + * @type api + * @valid since 3.60. 自 3.60 起,该接口替代了 `setPublicStreamAudioPlaybackVolume:volume:` 方法来实现下述功能。你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。 + * @brief 调节 WTN 流的音频播放音量。 + * @param streamId WTN 流 ID + * @param volume 音频播放音量值和原始音量值的比值,该比值的范围是 `[0, 400]`,单位为 %,且自带溢出保护。为保证更好的音频质量,建议设定在 `[0, 100]` 之间,其中 100 为系统默认值。 + * @return + * - 0: 成功调用。 + * - -2: 参数错误。 + * @list WTN + * @order 4 + */ + +- (int)setWTNRemoteAudioPlaybackVolume:(NSString *_Nonnull)streamId volume:(NSInteger)volume; +/** +* +* @type api +* @valid since 3.60. +* @brief 设置 WTN 流回调接口 +* @param delegate WTN 回调类,参看 ByteRTCWTNStreamDelegate{@link #ByteRTCWTNStreamDelegate}。 +* @list WTN +* @order 5 +*/ + +- (void)setWTNStreamDelegate:(_Nullable id)delegate; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h new file mode 100644 index 0000000..320bfc1 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/ByteRTSRoomInternal.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Internal API +*/ + +@interface RTSRoom () + +/** + * + * @type api + * @hidden 仅内部使用接口 + */ + +- (instancetype _Nonnull)initWithRtsRoom:(byterts::IRTSRoom *_Nonnull)rtsRoom roomId:(NSString *_Nonnull)roomId; + +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h new file mode 100644 index 0000000..3c5ce89 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Headers/objc/rtc/MeetingAdvance.h @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2020 The VolcEngineRTC project authors. All Rights Reserved. + * @brief VolcEngineRTC Room Internal API +*/ + +#import +#import "ByteRTCDefines.h" +@class ByteRTCRoom; +@class ByteRTCEngine; +@class ByteRTCVideoEncoderConfig; +@class ByteRTCAmazingEffect; + +#define BYTERTC_APPLE_EXPORT __attribute__((visibility("default"))) + +/** + * @type keytype + * @brief 5.18版本后,飞书会议弱网提示专用,设置订阅视频基线数据用于计算网络等级 + */ + +BYTERTC_APPLE_EXPORT @interface ByteRTCSubscribeVideoBaseline: NSObject +/** + * @brief 网络等级判定为优秀的视频分辨率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableGoodVideoPixelBaseline; +/** + * @brief 网络等级判定为优秀的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableGoodVideoFpsBaseline; +/** + * @brief 网络等级判定为差的视频分辨率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableBadVideoPixelBaseline; +/** + * @brief 网络等级判定为差的视频帧率基线,-1表示业务不设置计算时忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableBadVideoFpsBaseline; +/** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableMinVideoResolutionWidth; +/** + * @brief 业务可以接受的最小分辨率宽度,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger acceptableMinVideoResolutionHeight; +/** + * @brief 流的优先级,-1表示业务忽略此参数 + */ +@property (nonatomic, assign) NSInteger streamPriority; + +@end + +BYTERTC_APPLE_EXPORT @interface MeetingAdvance : NSObject + +/** + * + * @hidden + * @brief 推流到子频道channelName + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSString *_Nonnull] channelName 子频道 + */ ++ (int) setPublishChannel:(ByteRTCRoom *_Nonnull)room + channelName:(NSString *_Nonnull)channelName; +/** + * + * @hidden + * @brief 订阅子频道数组里的所有流 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSArray * _Nonnull] channelsInfo 子频道数组 + * @param [bool] enableVolumeRescale 是否开启音频抑制功能 + */ ++ (int) setSubscribeChannels:(ByteRTCRoom *_Nonnull)room + channelsInfo:(NSArray * _Nonnull)channelsInfo + enableVolumeRescale:(bool)enableVolumeRescale; +/** + * + * @hidden + * @brief 设置是否开启音频抑制 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [bool] enableVolumeRescale 是否抑制 + */ ++ (int) enableRescaleAudioVolume:(ByteRTCRoom *_Nonnull)room + enableVolumeRescale:(bool)enableVolumeRescale; +/** + * + * @hidden + * @brief 设置发布的特殊流类型 + * > 支持会前设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [int] type 流类型 + */ ++ (int) setPublishSpecialStream:(ByteRTCRoom *_Nonnull)room + type:(int)type; +/** + * + * @hidden + * @brief 设置订阅的特殊流类型 + * > 支持会前、会中设置 + * @param [ByteRTCRoom *_Nonnull] room 目标room + * @param [NSArray * _Nonnull] types 流类型集合 + */ ++ (int) setSubscribeSpecialStream:(ByteRTCRoom *_Nonnull)room + types:(NSArray * _Nonnull)types; + +/** + * + * @hidden +* @brief 判断本地音视频流是否取消发布成功状态 +* > 支持会中设置 +* @param [ByteRTCRoom *_Nonnull] room 目标room +* @param [ByteRTCMediaStreamType] type 需要检查的流类型 +* @return +* true: 关闭状态; +* false: 开启状态; +*/ ++ (bool)isStreamUnpublished:(ByteRTCRoom *_Nonnull)room type:(ByteRTCMediaStreamType)type; + +/** + * + * @hidden +* @brief 设置视频编码参数 +* > 该方法用于编码参数设置 +* @return +* 0: 成功; +* != 0: 失败; +*/ ++ (int) setVideoEncoderConfig:(ByteRTCEngine*_Nonnull)video channelSolutions:(NSArray * _Nonnull) channelSolutions + mainSolutions:(NSArray * _Nonnull) channelMainSolutions; + + ++ (int) enableSimulcastMode:(ByteRTCEngine*_Nonnull)video enable:(BOOL) enabled; +/** + * + * @hidden +* @brief 更新自动订阅选项 +* > 支持会中设置 +*@param [ByteRTCRoom *_Nonnull] room 目标room +*@param [ByteRTCSubscribeMode] audioMode 音频自动订阅模式 +*@param [ByteRTCSubscribeMode] videoMode 视频自动订阅模式 +*/ ++ (int) enableAutoSubscribe:(ByteRTCRoom *_Nonnull)room audioSubMode:(ByteRTCSubscribeMode)audioMode videoMode:(ByteRTCSubscribeMode)videoMode; + +/** + * + * @hidden +* @brief 订阅基线设置 +* > 支持订阅流前设置 +* @param [ByteRTCRoom *_Nonnull] room 目标room +* @param [NSString *_Nonnull] userId 订阅用户名 +* @param [BOOL] isScreen 是否屏幕流 +* @param [ByteRTCSubscribeVideoBaseline* _Nullable] videoBaseline 订阅基线设置 +*/ ++ (void) setSubscribeBaselineData:(ByteRTCRoom *_Nonnull)room userId:(NSString *_Nonnull)userId isScreen:(BOOL)isScreen videoBaseline:(ByteRTCSubscribeVideoBaseline* _Nullable)videoBaseline; + +/** + * + * @hidden +* @brief 获取用于实时crash分子数据信息 +* @return +* [NSString * _Nonnull]: 返回json格式的信息 +*/ ++ (NSString * _Nonnull) getSessionLaunchParams; +/** + * + * @brief 获取视频特效接口ByteRTCAmazingEffect +* @param [ByteRTCEngine *_Nonnull] ivideo 目标ByteRTCVideo +*/ ++ (ByteRTCAmazingEffect* _Null_unspecified) getAmazingEffectInterface:(ByteRTCEngine *_Nonnull)video; + +/** + * + * @hidden + * @brief 设置屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ ++ (int)setScreenVideoConfigs:(ByteRTCEngine * _Nonnull)video; + +/** + * + * @hidden + * @brief 清空屏幕流多分辨率参数 + * @return 0 成功 !0失败 + */ ++ (int)resetScreenVideoConfigs:(ByteRTCEngine * _Nonnull)video; + +/** + * + * @brief 获取上行带宽状态 + * @param [ByteRTCRoom*] room 目标room + */ ++ (int)getUplinkNetworkBandwidthEstimationStatus:(ByteRTCRoom *_Nonnull)room; + +/** + * + * @brief 获取下行带宽状态 + * @param [ByteRTCRoom*] room 目标room + */ ++ (int)getDownlinkNetworkBandwidthEstimationStatus:(ByteRTCRoom *_Nonnull)room; +@end diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Info.plist b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Info.plist new file mode 100644 index 0000000..4d70a16 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 22H730 + CFBundleDevelopmentRegion + en + CFBundleExecutable + VolcEngineRTC + CFBundleIdentifier + VolcEngineRTC + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + VolcEngineRTC + CFBundlePackageType + FMWK + CFBundleShortVersionString + 3.60.107 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 20B71 + DTPlatformName + iphonesimulator + DTPlatformVersion + 16.1 + DTSDKBuild + 20B71 + DTSDKName + iphonesimulator16.1 + DTXcode + 1410 + DTXcodeBuild + 14B47b + MinimumOSVersion + 11.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Modules/module.modulemap b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Modules/module.modulemap new file mode 100644 index 0000000..f648c27 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module VolcEngineRTC { + umbrella header "VolcEngineRTC.h" + + export * + module * { export * } +} diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/PrivacyInfo.xcprivacy b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..76757b6 --- /dev/null +++ b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/PrivacyInfo.xcprivacy @@ -0,0 +1,39 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + \ No newline at end of file diff --git a/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/VolcEngineRTC b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/VolcEngineRTC new file mode 100755 index 0000000..afb3676 Binary files /dev/null and b/Pods/VolcEngineRTC/VolcEngineRTC.xcframework/ios-arm64_x86_64-simulator/VolcEngineRTC.framework/VolcEngineRTC differ diff --git a/docs/9.9.1/live-rtc-integration-2026-11-02/README.md b/docs/9.9.1/live-rtc-integration-2026-11-02/README.md new file mode 100644 index 0000000..8ea6349 --- /dev/null +++ b/docs/9.9.1/live-rtc-integration-2026-11-02/README.md @@ -0,0 +1,75 @@ +# 火山实时图传客户端接入 + +日期:2026-11-02。 + +依据:朱工更新的 `随心瞰9.9.1-App机巢与素材库接口.md`,来源为用户 Downloads 目录文件。 + +## 实现范围 + +- 接入官方 VolcEngineRTC `3.60.107.1100`(Core、RealXBase、RTCFFmpeg),同时包含真机和 Apple Silicon 模拟器架构。CocoaPods 固定官方 podspec 地址,运行 `pod install` 可重建依赖。 +- 使用原订单飞行任务 ID 请求 `GET /api/app/airport/live?id=...`,不创建任务,不调用 shoot/start-shoot/command。 +- 解析 `playable`、`play.available`、`play.url_type`、`play.url`、`play.expire_ts`。当前仅支持已明确合同的 `volc`;其它供应商显示不支持,不自行重复请求 live 来尝试切换供应商。 +- 火山连接串按 querystring 解析 `app_id`、`room_id`、`user_id`、`token`、可选 `expire_time`。拒绝重复键、非法转义、空参数及过期凭证;Token 百分号只解码一次,保留加号和等号。 +- 以隐藏接收端进房,关闭音视频发布、音频订阅和自动视频订阅,只订阅凭证对应房间的主视频流,不开启手机摄像头或麦克风。 +- 只有首帧渲染回调后显示实时画面。进房错误、订阅失败、20 秒未收到首帧、断线、凭证到期均显示原因;用户手动重新获取,不做接口轮询。 +- 离页、进入后台及切换会话会销毁旧 RTC 房间和播放器,旧事件不能更新新会话。结束本机订阅不代表向设备发送停止推流命令。 +- live 响应正文不写入 API 控制台日志;页面诊断 JSON 中的 url/token 递归脱敏。连接凭证仅保存在内存。 + +## 正式包使用方式 + +1. 用 `suixinkan.xcworkspace` 的 `suixinkan` Scheme 打 Release 包,环境沿用工程原有设置,本次没有切换服务器地址或签名。 +2. 打开“订单素材库”,点击右上角“查看任务”,选择已有任务,再点图传区域的“开启实时图传”。单任务直接进入,多任务弹出选择;空任务列表入口禁用。进入页面本身不调用 live。 +3. 后端返回 `url_type=volc` 且有效参数后开始连接;等待首帧。若返回其它供应商、无流或过期信息,界面显示具体状态。 +4. 回到前台或重新进入页面,需要再次手动开启。刷新任务状态只请求 `shooting&live_battery=0`。 + +已有任务须已在后台锁定设备并满足 live 前置条件。客户端不会通过创建任务或召唤无人机来补齐这些条件。 + +## 禁飞与验证边界 + +用户稍后自行打包测试。本次不启动真实设备图传、不创建真实任务、不发送飞控命令;Debug 网络边界和 RTC 初始化前的拦截均保留。真实任务创建和飞控请求在 Debug、Release 两种构建中都拦截,准备页召唤保持禁用。正式任务入口仍未注入开始拍摄、重新召唤或安全控制服务。 + +朱工提供的阿里云 HLS 测试流与火山 RTC 协议不同,本次 RTC 连接状态由内存替身验证,不把本地视频或 HLS 播放作为真实 RTC 联调成功。真实参数、进房鉴权、远端首帧与设备画面需用户后续联调验证。 + +声网参数仍为参考字段,缺少本项目完整回执;腾讯、SRS 同样未接播放器。这些类型会显示明确提示。 + +## 官方依据 + +- [火山 iOS 接入说明](https://docs.volcengine.com/docs/real-time-communication/ios-swift-audio-video-calls?lang=zh) +- [固定版本 podspec](https://github.com/volcengine/volcengine-specs/blob/master/VolcEngineRTC/3.60.107.1100/VolcEngineRTC.podspec.json) +- SDK 3.60 回调和进房签名以安装版本的官方头文件为准,使用 ByteRTCEngine、ByteRTCRoom 和按 streamId 订阅的视频接口。 + +## 响应结构示例 + +以下仅展示朱工合同中的字段结构,身份和凭证均为占位,不是本次真实请求的响应: + +```json +{ + "code": 100000, + "msg": "success", + "data": { + "order_flight_task_id": 501, + "plane_id": 5, + "airport_sn": "TEST-AIRPORT", + "playable": true, + "unavailable_code": "", + "unavailable_message": "", + "play": { + "available": true, + "role": "drone", + "device_sn": "TEST-DRONE", + "url_type": "volc", + "url": "app_id=TEST_APP&room_id=TEST_ROOM&user_id=TEST_USER&token=REDACTED&expire_time=2000000600", + "expire_ts": 2000000600 + }, + "task": { "id": 501 }, + "metrics": [] + } +} +``` + +## 本地验证 + +- 最终相关测试:151 项通过,0 失败、0 跳过。覆盖连接参数、Token 转义与脱敏、首帧与失败状态、会话作废、手动开启、已有任务入口、准备页、素材页和固定布局。 +- XCTest 结果:`~/Library/Developer/XcodeBuildMCP/workspaces/suixinkan-a3033d697ba3/result-bundles/test_sim_2026-11-02T02-53-09-123Z_pid7237_36daf30f.xcresult`。 +- 使用不定义 DEBUG 的 Swift 离线程序验证 Release 请求边界:8 种飞控/创建请求组合均阻断;手动 live 请求允许通过;shooting 强制使用缓存电量。程序只构造 URLRequest,不创建网络传输。 +- 最终 Release 真机架构未签名构建通过(`suixinkan` Scheme、`generic/platform=iOS`、`CODE_SIGNING_ALLOWED=NO`)。没有安装或运行 Release App。构建日志:`/private/tmp/suixinkan-rtc-release-final-build.log`。 diff --git a/suixinkan.xcodeproj/project.pbxproj b/suixinkan.xcodeproj/project.pbxproj index fe0ed12..e0f41f9 100644 --- a/suixinkan.xcodeproj/project.pbxproj +++ b/suixinkan.xcodeproj/project.pbxproj @@ -64,11 +64,15 @@ }; 9A01B8E22FFB84950033C402 /* Vendor */ = { isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + ); path = Vendor; sourceTree = ""; }; A1B2C3D42FFB84950033C305 /* suixinkanTests */ = { isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + ); path = suixinkanTests; sourceTree = ""; }; @@ -368,14 +372,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-frameworks.sh\"\n"; @@ -389,14 +389,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-resources-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-suixinkan/Pods-suixinkan-resources.sh\"\n"; diff --git a/suixinkan/Core/Networking/DeviceCommandDebugPolicy.swift b/suixinkan/Core/Networking/DeviceCommandDebugPolicy.swift index 4df12ef..52e0e7d 100644 --- a/suixinkan/Core/Networking/DeviceCommandDebugPolicy.swift +++ b/suixinkan/Core/Networking/DeviceCommandDebugPolicy.swift @@ -1,7 +1,9 @@ import Foundation -/// 禁飞期间的 Debug 请求边界;模拟器和测试环境均不能视为没有真实设备副作用。 +/// 禁飞期间的请求边界;正式包仅允许用户手动图传,不允许创建或飞控。 enum DeviceCommandDebugPolicy { + /// 飞控与真实待飞任务在所有构建中关闭,不因打 Release 包而解除禁飞。 + static let blocksFlightRequests = true /// 所有 Debug 构建禁止真实设备操作,没有启动参数或设置开关可临时放行。 static var blocksLiveRequests: Bool { #if DEBUG @@ -16,13 +18,15 @@ enum DeviceCommandDebugPolicy { /// 在日志和传输之前阻断操作请求;允许的状态读取关闭实时设备采集。 static func prepare(_ request: URLRequest, isLocalSimulation: Bool) throws -> URLRequest { - guard blocksLiveRequests, !isLocalSimulation, let url = request.url else { return request } + guard !isLocalSimulation, let url = request.url else { return request } let path = "/" + url.path.split(separator: "/").joined(separator: "/") // 创建虽不直接起飞,但会改变真实订单状态;禁飞调试使用本地待飞任务。 if path == "/api/yf-handset-app/photog/multi-plane/tasks/create" { throw DeviceCommandDebugBlockedError() } guard path == "/api/app/airport" || path.hasPrefix("/api/app/airport/") else { return request } + // 2026-11-02 仅为用户后续手动图传测试提供 Release 入口;Debug 仍禁止开流。 + if request.httpMethod == "GET", path == "/api/app/airport/live", !blocksLiveRequests { return request } let readablePaths: Set = [ "/api/app/airport/home", "/api/app/airport/plane-status", "/api/app/airport/shooting", "/api/app/airport/status" diff --git a/suixinkan/Features/DroneDock/API/DroneDockLiveAPI.swift b/suixinkan/Features/DroneDock/API/DroneDockLiveAPI.swift index a906adf..f644d1d 100644 --- a/suixinkan/Features/DroneDock/API/DroneDockLiveAPI.swift +++ b/suixinkan/Features/DroneDock/API/DroneDockLiveAPI.swift @@ -21,7 +21,8 @@ final class DroneDockLiveAPI: DroneDockLiveServing { guard taskID > 0 else { throw APIError.networkFailed("缺少有效拍摄任务 ID") } let value: DroneDockLiveResponse = try await client.send(APIRequest( method: .get, path: "/api/app/airport/live", - queryItems: [URLQueryItem(name: "id", value: String(taskID))] + queryItems: [URLQueryItem(name: "id", value: String(taskID))], + logsPayload: false )) guard value.orderFlightTaskID == taskID, value.task?.id == nil || value.task?.id == taskID else { throw APIError.decodeFailed("图传回执与当前拍摄任务不一致") diff --git a/suixinkan/Features/DroneDock/Models/DroneDockLiveConnection.swift b/suixinkan/Features/DroneDock/Models/DroneDockLiveConnection.swift new file mode 100644 index 0000000..aa229f5 --- /dev/null +++ b/suixinkan/Features/DroneDock/Models/DroneDockLiveConnection.swift @@ -0,0 +1,84 @@ +import Foundation + +/// 经验证的火山接收端配置;只在内存传递,禁止写入日志或持久化。 +struct DroneDockVolcLiveConfiguration: Equatable, Sendable, CustomDebugStringConvertible { + let appID: String + let roomID: String + let userID: String + let token: String + let expiresAt: Date + let role: String + + /// 调试器描述中不暴露连接凭证。 + var debugDescription: String { "DroneDockVolcLiveConfiguration()" } + + /// 按 2026-11-02 已确认的 volc querystring 解析;不猜测其它厂商的字段。 + static func parse(_ response: DroneDockLiveResponse, now: Date) throws -> Self { + guard response.playable == true else { + throw DroneDockLiveConnectionError(response.unavailableMessage.flatMap(DroneDockHomeMetric.usableText) + ?? "图传暂不可用") + } + guard let stream = response.play, stream.available == true else { + throw DroneDockLiveConnectionError("图传尚未提供可用的视频流") + } + guard stream.urlType == "volc" else { + throw DroneDockLiveConnectionError("暂不支持当前图传类型,请联系后台确认使用火山图传") + } + guard let role = stream.role, ["drone", "airport"].contains(role), + (response.planeID ?? 0) > 0, + DroneDockHomeMetric.usableText(response.airportSN) != nil else { + throw DroneDockLiveConnectionError("图传设备信息不完整") + } + guard let query = stream.url, !query.isEmpty, query.utf8.count <= 32_768 else { + throw DroneDockLiveConnectionError("图传连接参数不完整") + } + var fields: [String: String] = [:] + // Token 中的 + 保留为 +;百分号只解码一次,避免把 %252B 错解为 +。 + for item in query.split(separator: "&", omittingEmptySubsequences: false) { + let pair = item.split(separator: "=", maxSplits: 1, omittingEmptySubsequences: false) + guard pair.count == 2, let name = String(pair[0]).removingPercentEncoding, + let value = String(pair[1]).removingPercentEncoding, + !name.isEmpty, fields[name] == nil else { + throw DroneDockLiveConnectionError("图传连接参数格式错误") + } + fields[name] = value + } + func required(_ key: String) throws -> String { + guard let value = fields[key], !value.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty, + value.rangeOfCharacter(from: .controlCharacters) == nil else { + throw DroneDockLiveConnectionError("图传缺少必要连接参数") + } + return value + } + guard let expiry = stream.expiresAt, expiry > 0 else { + throw DroneDockLiveConnectionError("图传缺少凭证有效期") + } + var effectiveExpiry = expiry + if let value = fields["expire_time"] { + guard let parsed = Int(value), parsed > 0 else { + throw DroneDockLiveConnectionError("图传凭证有效期格式错误") + } + effectiveExpiry = min(expiry, parsed) + } + let expiresAt = Date(timeIntervalSince1970: TimeInterval(effectiveExpiry)) + guard expiresAt.timeIntervalSince(now) > 5 else { + throw DroneDockLiveConnectionError("图传凭证已过期,请重新获取") + } + return try Self(appID: required("app_id"), roomID: required("room_id"), + userID: required("user_id"), token: required("token"), expiresAt: expiresAt, role: role) + } +} + +/// 对用户只显示不含连接串的校验原因。 +struct DroneDockLiveConnectionError: Error, LocalizedError, Equatable, Sendable { + let message: String + init(_ message: String) { self.message = message } + var errorDescription: String? { message } +} + +/// 播放器明确回调;只有首帧到达才算已显示真实画面。 +enum DroneDockLivePlaybackEvent: Equatable, Sendable { + case firstFrame + case failed(String) + case expired +} diff --git a/suixinkan/Features/DroneDock/Models/DroneDockLiveModels.swift b/suixinkan/Features/DroneDock/Models/DroneDockLiveModels.swift index ab79bb8..c718f66 100644 --- a/suixinkan/Features/DroneDock/Models/DroneDockLiveModels.swift +++ b/suixinkan/Features/DroneDock/Models/DroneDockLiveModels.swift @@ -1,6 +1,6 @@ import Foundation -/// live 文档已明确的任务与设备回执;当前合同没有可用于播放的字段。 +/// 朱工 live 回执;任务身份与播放参数分别验证,凭证不进入展示 JSON。 struct DroneDockLiveResponse: Decodable, Equatable, Sendable { /// 后端回显的订单飞行任务 ID,不能用请求值补齐。 let orderFlightTaskID: Int @@ -12,15 +12,20 @@ struct DroneDockLiveResponse: Decodable, Equatable, Sendable { let task: DroneDockShootingTaskIdentity? /// 已锁定机场序列号,不用于客户端选择或重新绑定设备。 let airportSN: String? + let planeID: Int? + let playable: Bool? + let unavailableMessage: String? + let play: DroneDockLiveStream? /// 随接口返回的展示读数,不触发额外实时采集。 let metrics: [DroneDockHomeMetric] - /// 完整回执,包含尚未建模字段,不解释成播放器配置。 + /// 脱敏回执,不包含 RTC 连接串或 Token。 let dataJSON: String /// live 文档中的已知字段映射。 private enum CodingKeys: String, CodingKey { case orderFlightTaskID = "order_flight_task_id", airport, drone, task case airportSN = "airport_sn", metrics + case planeID = "plane_id", playable, play, unavailableMessage = "unavailable_message" } /// 任务 ID 必须明确提供;未知字段及 null 留在完整 JSON 中供后续合同核对。 @@ -31,6 +36,10 @@ struct DroneDockLiveResponse: Decodable, Equatable, Sendable { drone = try container.decodeIfPresent(DroneDockHomeJSONValue.self, forKey: .drone) task = try container.decodeIfPresent(DroneDockShootingTaskIdentity.self, forKey: .task) airportSN = try container.decodeIfPresent(String.self, forKey: .airportSN) + planeID = try container.decodeIfPresent(Int.self, forKey: .planeID) + playable = try container.decodeIfPresent(Bool.self, forKey: .playable) + unavailableMessage = try container.decodeIfPresent(String.self, forKey: .unavailableMessage) + play = try container.decodeIfPresent(DroneDockLiveStream.self, forKey: .play) metrics = try container.decodeIfPresent([DroneDockHomeMetric].self, forKey: .metrics) ?? [] let raw = try DroneDockHomeJSONValue(from: decoder) let encoder = JSONEncoder() @@ -47,7 +56,10 @@ private struct DroneDockLiveJSONSnapshot: Encodable { func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch value { - case .object(let value): try container.encode(value.mapValues { Self(value: $0) }) + case .object(let value): + try container.encode(value.mapValuesWithKeys { key, value in + Self(value: ["url", "token"].contains(key.lowercased()) ? .string("") : value) + }) case .array(let value): try container.encode(value.map { Self(value: $0) }) case .string(let value): try container.encode(value) case .number(let value): try container.encode(value) @@ -65,4 +77,29 @@ enum DroneDockLiveState: Equatable, Sendable { case unavailable(String) case failed(String) case localPreview(URL) + case connecting + case playing +} + +/// live 的首选流,按 url_type 选择已明确支持的播放器。 +struct DroneDockLiveStream: Decodable, Equatable, Sendable { + let available: Bool? + let role: String? + let deviceSN: String? + let urlType: String? + let url: String? + let expiresAt: Int? + + /// 后端播放字段映射。 + private enum CodingKeys: String, CodingKey { + case available, role, url + case deviceSN = "device_sn", urlType = "url_type", expiresAt = "expire_ts" + } +} + +/// 只用于递归脱敏 JSON,避免字典转换时丢失字段名。 +private extension Dictionary where Key == String { + func mapValuesWithKeys(_ transform: (String, Value) throws -> T) rethrows -> [String: T] { + try Dictionary(uniqueKeysWithValues: map { (key, value) in (key, try transform(key, value)) }) + } } diff --git a/suixinkan/Features/DroneDock/ViewModels/DroneDockLiveViewModel.swift b/suixinkan/Features/DroneDock/ViewModels/DroneDockLiveViewModel.swift index 5df7338..46a7fc4 100644 --- a/suixinkan/Features/DroneDock/ViewModels/DroneDockLiveViewModel.swift +++ b/suixinkan/Features/DroneDock/ViewModels/DroneDockLiveViewModel.swift @@ -1,32 +1,42 @@ import Foundation -/// 任务图传区域的单次请求与生命周期;正式入口不注入操作服务,模拟来源单独注入。 +/// 任务图传的单次请求与生命周期;正式图传手动开启,模拟来源单独注入。 final class DroneDockLiveViewModel { /// 当前图传所属的账号、景区与门店范围。 let context: DroneDockHomeContext /// 固定订单飞行任务身份。 let taskID: Int - /// 最近一次通过身份核对的图传回执,不用作实时播放配置。 + /// 最近一次通过身份核对的回执;播放配置还需通过独立的协议校验。 private(set) var response: DroneDockLiveResponse? /// 图传区域当前可展示状态。 private(set) var state: DroneDockLiveState /// 请求期间阻止重复获取,不安排定时轮询。 private(set) var isLoading = false + /// 仅显式正式入口允许解析设备 RTC;本地模拟即使收到参数也不连接设备。 + let allowsDevicePlayback: Bool + /// 正式图传必须手动开启;演示入口可自动载入本地样片。 + var loadsAutomatically: Bool { !allowsDevicePlayback } + private(set) var rtcConfiguration: DroneDockVolcLiveConfiguration? + private(set) var playbackSessionID: UUID? private let service: (any DroneDockLiveServing)? private let localPreviewURL: URL? private let currentContext: @MainActor @Sendable () -> DroneDockHomeContext private var generation = 0 private var identityInvalidated = false + private let now: @Sendable () -> Date /// 本地素材仅供明确的模拟入口注入,后端 JSON 不能生成此 URL。 init(context: DroneDockHomeContext, taskID: Int, service: (any DroneDockLiveServing)? = nil, - localPreviewURL: URL? = nil, + localPreviewURL: URL? = nil, allowsDevicePlayback: Bool = false, + now: @escaping @Sendable () -> Date = { Date() }, currentContext: @escaping @MainActor @Sendable () -> DroneDockHomeContext) { self.context = context self.taskID = taskID self.service = service self.localPreviewURL = localPreviewURL + self.allowsDevicePlayback = allowsDevicePlayback + self.now = now self.currentContext = currentContext state = service == nil ? .restricted : .idle } @@ -49,6 +59,8 @@ final class DroneDockLiveViewModel { case .unavailable: return "图传暂不可用" case .failed: return "图传加载失败" case .localPreview: return "本地模拟画面" + case .connecting: return "正在连接图传" + case .playing: return "实时图传" } } @@ -56,10 +68,12 @@ final class DroneDockLiveViewModel { var message: String { switch state { case .restricted: return "禁飞调试期间不启动设备图传" - case .idle: return "按当前任务获取图传信息" + case .idle: return allowsDevicePlayback ? "点击开启当前任务的实时图传" : "按当前任务获取图传信息" case .loading: return "请稍候" case .unavailable(let reason), .failed(let reason): return reason case .localPreview: return "仅播放本地样片,未连接无人机" + case .connecting: return "正在等待视频画面" + case .playing: return rtcConfiguration?.role == "airport" ? "机巢摄像头" : "无人机摄像头" } } @@ -69,10 +83,12 @@ final class DroneDockLiveViewModel { if isLoading { return "正在加载…" } switch state { case .restricted: return nil - case .idle: return localPreviewURL == nil ? "获取图传信息" : "查看模拟图传" + case .idle: return allowsDevicePlayback ? "开启实时图传" : (localPreviewURL == nil ? "获取图传信息" : "查看模拟图传") case .loading: return "正在加载…" case .failed, .unavailable: return "重试" case .localPreview: return "重新加载模拟图传" + case .connecting: return "重新连接" + case .playing: return "刷新图传" } } @@ -84,7 +100,7 @@ final class DroneDockLiveViewModel { let requestGeneration = generation guard accepts(requestGeneration) else { return } isLoading = true - if playbackURL == nil { state = .loading } + if playbackURL == nil && rtcConfiguration == nil { state = .loading } onRequestStarted?() defer { if generation == requestGeneration { @@ -100,6 +116,18 @@ final class DroneDockLiveViewModel { throw APIError.decodeFailed("图传回执与当前拍摄任务不一致") } response = value + if allowsDevicePlayback { + rtcConfiguration = nil + playbackSessionID = nil + do { + rtcConfiguration = try DroneDockVolcLiveConfiguration.parse(value, now: now()) + playbackSessionID = UUID() + state = .connecting + } catch { + state = .unavailable(error.localizedDescription) + } + return + } guard let airportSN = DroneDockHomeMetric.usableText(value.airportSN), !airportSN.isEmpty else { state = .unavailable("当前任务尚未返回已锁定的机场信息") return @@ -118,6 +146,8 @@ final class DroneDockLiveViewModel { state = .idle } catch { guard accepts(requestGeneration) else { return } + rtcConfiguration = nil + playbackSessionID = nil state = .failed(error.localizedDescription) } } @@ -128,9 +158,34 @@ final class DroneDockLiveViewModel { generation &+= 1 isLoading = false response = nil + rtcConfiguration = nil + playbackSessionID = nil state = service == nil ? .restricted : .idle } + /// 只接受当前播放器会话的事件;首帧之前不显示已连接,旧回调不能恢复画面。 + @MainActor + func receivePlaybackEvent(_ event: DroneDockLivePlaybackEvent, sessionID: UUID) { + guard sessionID == playbackSessionID, rtcConfiguration != nil else { return } + guard context.hasSameIdentity(as: currentContext()), !identityInvalidated else { + invalidate() + identityInvalidated = true + state = .failed("账号或景区已变化,请返回工作台重新进入") + return + } + switch event { + case .firstFrame: state = .playing + case .failed(let message): + rtcConfiguration = nil + playbackSessionID = nil + state = .failed(message) + case .expired: + rtcConfiguration = nil + playbackSessionID = nil + state = .unavailable("图传凭证即将或已经过期,请重新获取") + } + } + /// 只接受当前页面与当前身份下的结果,身份变化后不允许重新请求旧任务。 @MainActor private func accepts(_ requestGeneration: Int) -> Bool { diff --git a/suixinkan/Features/DroneDock/ViewModels/DroneDockMaterialsViewModel.swift b/suixinkan/Features/DroneDock/ViewModels/DroneDockMaterialsViewModel.swift index 4d3e6bf..67246c4 100644 --- a/suixinkan/Features/DroneDock/ViewModels/DroneDockMaterialsViewModel.swift +++ b/suixinkan/Features/DroneDock/ViewModels/DroneDockMaterialsViewModel.swift @@ -24,6 +24,18 @@ final class DroneDockMaterialsViewModel { private(set) var tasksErrorMessage: String? /// 点位标签始终来自整单购买快照,不从当前任务推导。 var spots: [DroneDockMaterialSpot] { detail?.spots ?? [] } + /// 已完整读取的任务可进入状态与图传页,不因素材尚未上传而隐藏。 + var canViewRecordedTasks: Bool { + detail != nil && !isLoading && !isLoadingTasks && detailErrorMessage == nil + && tasksErrorMessage == nil && !tasks.isEmpty + } + + /// 打开任务前重新核对账号和景区,并且只允许当前已加载订单中的任务。 + @MainActor + func taskForViewing(id: Int) -> DroneDockMaterialTask? { + guard acceptsSelectionContext(), canViewRecordedTasks else { return nil } + return tasks.first { $0.id == id && $0.orderNumber == order.orderNumber } + } /// 当前范围内已选择的就绪原素材,不包含独立交付成片。 private(set) var selectedMaterialIDs: Set = [] /// 只有完整读取成功且具备有效文件地址的原素材允许选择。 diff --git a/suixinkan/Features/DroneDock/ViewModels/DroneDockShootingTaskViewModel.swift b/suixinkan/Features/DroneDock/ViewModels/DroneDockShootingTaskViewModel.swift index 9478d3a..55bca50 100644 --- a/suixinkan/Features/DroneDock/ViewModels/DroneDockShootingTaskViewModel.swift +++ b/suixinkan/Features/DroneDock/ViewModels/DroneDockShootingTaskViewModel.swift @@ -107,7 +107,7 @@ final class DroneDockShootingTaskViewModel { return } do { - let value = try await service.shooting(taskID: taskID, liveBattery: true) + let value = try await service.shooting(taskID: taskID, liveBattery: false) guard accepts(requestGeneration) else { return } guard matchesIdentity(value) else { response = nil diff --git a/suixinkan/UI/DroneDock/DroneDockHomeViewController.swift b/suixinkan/UI/DroneDock/DroneDockHomeViewController.swift index 1683dad..2b82fc3 100644 --- a/suixinkan/UI/DroneDock/DroneDockHomeViewController.swift +++ b/suixinkan/UI/DroneDock/DroneDockHomeViewController.swift @@ -312,7 +312,7 @@ final class DroneDockHomeViewController: BaseViewController { planeStatusService: DroneDockPlaneStatusAPI(client: NetworkServices.shared.apiClient), taskCreationService: DroneDockTaskCreationAPI(client: NetworkServices.shared.apiClient), shootService: DroneDockShootAPI(client: NetworkServices.shared.apiClient), - allowsTaskSubmission: !DeviceCommandDebugPolicy.blocksLiveRequests, + allowsTaskSubmission: !DeviceCommandDebugPolicy.blocksFlightRequests, currentContext: { Self.currentContext() } )) } diff --git a/suixinkan/UI/DroneDock/DroneDockMaterialsViewController.swift b/suixinkan/UI/DroneDock/DroneDockMaterialsViewController.swift index 4ce9791..5fe8709 100644 --- a/suixinkan/UI/DroneDock/DroneDockMaterialsViewController.swift +++ b/suixinkan/UI/DroneDock/DroneDockMaterialsViewController.swift @@ -16,6 +16,8 @@ final class DroneDockMaterialsViewController: BaseViewController { private let deliveryControllerFactory: (DroneDockHomeOrder, DroneDockHomeContext, Int?) -> UIViewController private let downloadSourceDescription: String? private let downloadIsSimulated: Bool + private let taskControllerFactory: (Int, DroneDockHomeOrder, DroneDockHomeContext) -> UIViewController + private var taskButton: UIBarButtonItem? /// 元数据与媒体分区独立,任务没有素材时也保留其状态。 private enum Section: Hashable { case order, filters, summary, task(Int), media(Int), message } @@ -43,12 +45,16 @@ final class DroneDockMaterialsViewController: BaseViewController { mediaPreviewControllerFactory: ((URL, Bool, String) -> UIViewController)? = nil, downloadViewModel: DroneDockMaterialDownloadViewModel? = nil, downloadSourceDescription: String? = nil, - downloadIsSimulated: Bool = false) { + downloadIsSimulated: Bool = false, + taskControllerFactory: ((Int, DroneDockHomeOrder, DroneDockHomeContext) -> UIViewController)? = nil) { self.viewModel = viewModel self.downloadViewModel = downloadViewModel ?? DroneDockMaterialDownloadViewModel( isContextValid: { [weak viewModel] in viewModel?.acceptsDownloadContext() == true }) self.downloadSourceDescription = downloadSourceDescription self.downloadIsSimulated = downloadIsSimulated + self.taskControllerFactory = taskControllerFactory ?? { id, order, context in + DroneDockShootingTaskEntry.makeController(taskID: id, order: order, context: context) + } self.thumbnailProvider = thumbnailProvider self.mediaPreviewControllerFactory = mediaPreviewControllerFactory self.deliveryControllerFactory = deliveryControllerFactory ?? DroneDockDeliveryEntry.makeController @@ -67,7 +73,11 @@ final class DroneDockMaterialsViewController: BaseViewController { let refresh = UIBarButtonItem(image: UIImage(systemName: "arrow.clockwise"), style: .plain, target: self, action: #selector(refreshTapped)) refresh.accessibilityLabel = "刷新素材状态" refresh.accessibilityIdentifier = "drone.materials.remote.refresh" - navigationItem.rightBarButtonItem = refresh + let tasks = UIBarButtonItem(title: "查看任务", style: .plain, target: self, action: #selector(viewTasksTapped)) + tasks.accessibilityIdentifier = "drone.materials.remote.viewTasks" + tasks.isEnabled = false + taskButton = tasks + navigationItem.rightBarButtonItems = [refresh, tasks] } override func setupUI() { @@ -257,6 +267,7 @@ final class DroneDockMaterialsViewController: BaseViewController { private func applySnapshot(animated: Bool) { guard dataSource != nil else { return } + taskButton?.isEnabled = operation == nil && !selectionLocked && viewModel.canViewRecordedTasks var snapshot = NSDiffableDataSourceSnapshot() if viewModel.detail != nil { snapshot.appendSections([.order, .filters]) @@ -364,6 +375,7 @@ final class DroneDockMaterialsViewController: BaseViewController { private func updateDownloadFooter() { navigationItem.rightBarButtonItem?.isEnabled = !selectionLocked + taskButton?.isEnabled = operation == nil && !selectionLocked && viewModel.canViewRecordedTasks let model = downloadViewModel let identifier = "drone.materials.remote.download" switch model.phase { @@ -389,6 +401,31 @@ final class DroneDockMaterialsViewController: BaseViewController { } } + /// 从张工已返回的任务中选择并进入状态页,不创建新任务或调用召唤接口。 + @objc private func viewTasksTapped() { + guard operation == nil, !selectionLocked, viewModel.canViewRecordedTasks, + viewModel.acceptsDownloadContext(), presentedViewController == nil else { return } + if let task = viewModel.tasks.first, viewModel.tasks.count == 1 { + openRecordedTask(id: task.id) + return + } + let sheet = UIAlertController(title: "选择拍摄任务", message: nil, preferredStyle: .actionSheet) + for task in viewModel.tasks { + let spot = task.spotName.isEmpty ? "拍摄任务" : task.spotName + let sequence = task.sequence.map { "第\($0)次拍摄" } ?? "拍摄记录" + let title = "\(spot) · \(sequence)" + (task.createdAt.map { " · \($0)" } ?? "") + sheet.addAction(UIAlertAction(title: title, style: .default) { [weak self] _ in self?.openRecordedTask(id: task.id) }) + } + sheet.addAction(UIAlertAction(title: "取消", style: .cancel)) + present(sheet, animated: true) + } + + private func openRecordedTask(id: Int) { + guard operation == nil, !selectionLocked, viewModel.taskForViewing(id: id) != nil, + navigationController?.topViewController === self else { return } + navigationController?.pushViewController(taskControllerFactory(id, viewModel.order, viewModel.context), animated: true) + } + private func previewFile(taskID: Int, fileID: Int) { guard operation == nil, let file = task(taskID)?.materials.first(where: { $0.id == fileID }), let url = file.previewURL else { return } preview(url: url, isVideo: file.fileType == 2, title: file.fileName ?? "原素材") diff --git a/suixinkan/UI/DroneDock/DroneDockShootingTaskEntry.swift b/suixinkan/UI/DroneDock/DroneDockShootingTaskEntry.swift index 0acf79f..997a497 100644 --- a/suixinkan/UI/DroneDock/DroneDockShootingTaskEntry.swift +++ b/suixinkan/UI/DroneDock/DroneDockShootingTaskEntry.swift @@ -3,13 +3,19 @@ import UIKit /// 组装真实拍摄任务页;构造时不发请求,页面出现后才读取同一任务。 @MainActor enum DroneDockShootingTaskEntry { - /// 使用当前共享网络服务读取已创建、已召唤任务,不创建或控制无人机。 + /// 使用已有任务读取状态,Release 可手动图传;不注入任务创建或飞控服务。 static func makeController(taskID: Int, order: DroneDockHomeOrder, context: DroneDockHomeContext) -> UIViewController { - DroneDockShootingTaskViewController(viewModel: DroneDockShootingTaskViewModel( + let client = NetworkServices.shared.apiClient + let live = DroneDockLiveViewModel( + context: context, taskID: taskID, + service: DeviceCommandDebugPolicy.blocksLiveRequests ? nil : DroneDockLiveAPI(client: client), + allowsDevicePlayback: !DeviceCommandDebugPolicy.blocksLiveRequests, + currentContext: { DroneDockHomeViewController.currentContext() }) + return DroneDockShootingTaskViewController(viewModel: DroneDockShootingTaskViewModel( context: context, taskID: taskID, order: order, service: DroneDockShootingAPI(client: NetworkServices.shared.apiClient), currentContext: { DroneDockHomeViewController.currentContext() } - )) + ), liveViewModel: live) } } diff --git a/suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift b/suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift index 8ede6f5..4cf4d84 100644 --- a/suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift +++ b/suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift @@ -1,7 +1,7 @@ import SnapKit import UIKit -/// 拍摄任务页:真实入口只读,本地模拟入口可验证图传、重召唤、开拍与安全指令合同。 +/// 拍摄任务页:正式入口读取状态并手动开启图传,飞控仅在隔离模拟入口注入。 @MainActor final class DroneDockShootingTaskViewController: BaseViewController { /// 入口传入的固定任务身份及只读状态,供导航协调和页面测试检查。 @@ -173,6 +173,13 @@ final class DroneDockShootingTaskViewController: BaseViewController { statusView.onDetails = { [weak self] in self?.showStatusDetails() } safetyView.onCommand = { [weak self] command in self?.safetyCommandTriggered(command) } feedPlaceholder.onRequest = { [weak self] in self?.refreshLiveIfVisible() } + feedPlaceholder.onPlaybackEvent = { [weak self] event, sessionID in + Task { @MainActor [weak self] in + guard let self, self.isPageVisible, self.isApplicationActive else { return } + self.liveViewModel.receivePlaybackEvent(event, sessionID: sessionID) + self.applySnapshot() + } + } NotificationCenter.default.addObserver(self, selector: #selector(applicationWillResignActive), name: UIApplication.willResignActiveNotification, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(applicationDidBecomeActive), @@ -185,7 +192,7 @@ final class DroneDockShootingTaskViewController: BaseViewController { isPageVisible = true isApplicationActive = UIApplication.shared.applicationState == .active refreshTaskIfVisible() - refreshLiveIfVisible() + refreshLiveIfVisible(automatically: true) } /// 离页立即取消未完成的读取,使迟到响应失效。 @@ -352,8 +359,9 @@ final class DroneDockShootingTaskViewController: BaseViewController { } } - /// 图传只读取一次,不轮询;正式入口没有图传服务,不能向设备发出开流请求。 - private func refreshLiveIfVisible() { + /// 图传请求不轮询;正式入口仅响应用户点击,本地样片允许随页面加载。 + private func refreshLiveIfVisible(automatically: Bool = false) { + guard !automatically || liveViewModel.loadsAutomatically else { return } guard isPageVisible, isApplicationActive, liveTask == nil, liveViewModel.canLoad else { return } liveGeneration &+= 1 let generation = liveGeneration @@ -446,7 +454,7 @@ final class DroneDockShootingTaskViewController: BaseViewController { guard !isApplicationActive else { return } isApplicationActive = true refreshTaskIfVisible() - refreshLiveIfVisible() + refreshLiveIfVisible(automatically: true) } } diff --git a/suixinkan/UI/DroneDock/DroneDockTaskLiveView.swift b/suixinkan/UI/DroneDock/DroneDockTaskLiveView.swift index 124a4a7..387aa32 100644 --- a/suixinkan/UI/DroneDock/DroneDockTaskLiveView.swift +++ b/suixinkan/UI/DroneDock/DroneDockTaskLiveView.swift @@ -2,11 +2,13 @@ import AVFoundation import SnapKit import UIKit -/// 固定图传区域:展示接口状态或明确标记的本地样片,不自行发请求或读取远程视频。 +/// 固定图传区域:渲染已验证的 RTC 会话或明确标记的本地样片。 @MainActor final class DroneDockTaskLiveView: UIView { /// 用户主动获取或重试图传信息,具体请求由控制器协调。 var onRequest: (() -> Void)? + /// 播放事件附带会话 ID,控制器据此丢弃离页或重连后的旧回调。 + var onPlaybackEvent: ((DroneDockLivePlaybackEvent, UUID) -> Void)? private let playerLayer = AVPlayerLayer() private let titleLabel = DroneDockStyle.label(size: 15, weight: .medium, color: .white) @@ -19,14 +21,28 @@ final class DroneDockTaskLiveView: UIView { private var requestedURL: URL? private var activeURL: URL? private var isPlaybackActive = false + private let rtcView = UIView() + private let rtcPlayer: any DroneDockLivePlaying + private var requestedRTC: DroneDockVolcLiveConfiguration? + private var requestedSessionID: UUID? + private var activeSessionID: UUID? /// 保留原任务页图传区域的访问标识,外部负责 16:9 约束。 override init(frame: CGRect) { + rtcPlayer = DroneDockVolcLivePlayer() super.init(frame: frame) setupUI() setupConstraints() } + /// 测试注入无网络播放器,覆盖首帧、失败和会话释放。 + init(rtcPlayer: any DroneDockLivePlaying) { + self.rtcPlayer = rtcPlayer + super.init(frame: .zero) + setupUI() + setupConstraints() + } + @available(*, unavailable) required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } @@ -39,6 +55,12 @@ final class DroneDockTaskLiveView: UIView { CATransaction.commit() } + /// 移出窗口也释放播放资源,覆盖交互返回和容器移除。 + override func didMoveToWindow() { + super.didMoveToWindow() + if window == nil { setPlaybackActive(false) } + } + /// 在明确时机应用模型;远程 URL 即使错误传入也不会创建播放器。 func apply(_ model: DroneDockLiveViewModel) { titleLabel.text = model.title @@ -47,12 +69,15 @@ final class DroneDockTaskLiveView: UIView { requestButton.isHidden = model.actionTitle == nil requestButton.isEnabled = model.canLoad requestedURL = model.playbackURL.flatMap { $0.isFileURL ? $0 : nil } + requestedRTC = model.rtcConfiguration + requestedSessionID = model.playbackSessionID let hasLocalPreview = requestedURL != nil - sourceLabel.text = hasLocalPreview ? "本地模拟画面 · 未连接无人机" : nil - sourceLabel.isHidden = !hasLocalPreview - titleLabel.isHidden = hasLocalPreview - messageLabel.isHidden = hasLocalPreview - accessibilityLabel = hasLocalPreview ? sourceLabel.text : "\(model.title),\(model.message)" + let isPlaying = model.state == .playing + sourceLabel.text = hasLocalPreview ? "本地模拟画面 · 未连接无人机" : (isPlaying ? model.message + " · 实时图传" : nil) + sourceLabel.isHidden = !hasLocalPreview && !isPlaying + titleLabel.isHidden = hasLocalPreview || isPlaying + messageLabel.isHidden = hasLocalPreview || isPlaying + accessibilityLabel = hasLocalPreview || isPlaying ? sourceLabel.text : "\(model.title),\(model.message)" updatePlayback() } @@ -67,6 +92,8 @@ final class DroneDockTaskLiveView: UIView { clipsToBounds = true accessibilityIdentifier = "drone.task.remote.feedPlaceholder" layer.addSublayer(playerLayer) + rtcView.backgroundColor = .clear + addSubview(rtcView) playerLayer.videoGravity = .resizeAspect titleLabel.textAlignment = .center messageLabel.textAlignment = .center @@ -96,6 +123,7 @@ final class DroneDockTaskLiveView: UIView { } private func setupConstraints() { + rtcView.snp.makeConstraints { $0.edges.equalToSuperview() } labels.snp.makeConstraints { make in make.centerY.equalToSuperview().offset(-15) make.leading.trailing.equalToSuperview().inset(20) @@ -114,7 +142,24 @@ final class DroneDockTaskLiveView: UIView { } private func updatePlayback() { - guard isPlaybackActive, let requestedURL, requestedURL.isFileURL else { + guard isPlaybackActive else { + releasePlayer() + releaseRTC() + return + } + if let config = requestedRTC, let sessionID = requestedSessionID { + releasePlayer() + guard activeSessionID != sessionID else { return } + releaseRTC() + activeSessionID = sessionID + rtcPlayer.start(config, in: rtcView) { [weak self] event in + guard let self, self.activeSessionID == sessionID else { return } + self.onPlaybackEvent?(event, sessionID) + } + return + } + releaseRTC() + guard let requestedURL, requestedURL.isFileURL else { releasePlayer() return } @@ -129,6 +174,12 @@ final class DroneDockTaskLiveView: UIView { queue.play() } + private func releaseRTC() { + guard activeSessionID != nil else { return } + activeSessionID = nil + rtcPlayer.stop() + } + private func releasePlayer() { player?.pause() looper?.disableLooping() diff --git a/suixinkan/UI/DroneDock/DroneDockVolcLivePlayer.swift b/suixinkan/UI/DroneDock/DroneDockVolcLivePlayer.swift new file mode 100644 index 0000000..885b01f --- /dev/null +++ b/suixinkan/UI/DroneDock/DroneDockVolcLivePlayer.swift @@ -0,0 +1,159 @@ +import UIKit +@preconcurrency import VolcEngineRTC + +/// 可替换的图传播放器;测试注入内存替身,不初始化 RTC 或连接设备。 +@MainActor +protocol DroneDockLivePlaying: AnyObject { + func start(_ configuration: DroneDockVolcLiveConfiguration, in view: UIView, + onEvent: @escaping @MainActor (DroneDockLivePlaybackEvent) -> Void) + func stop() +} + +/// 火山 RTC 视频接收端:不采集、不发布、不订阅音频,也不发送设备控制消息。 +@MainActor +final class DroneDockVolcLivePlayer: DroneDockLivePlaying { + private var engine: ByteRTCEngine? + private var room: ByteRTCRoom? + private var delegate: DroneDockVolcDelegate? + private weak var renderView: UIView? + private var onEvent: (@MainActor (DroneDockLivePlaybackEvent) -> Void)? + private var streamID: String? + private var generation = UUID() + private var timeoutTask: Task? + private var expiryTask: Task? + + /// 加入凭证指定的房间,等待已发布的主视频流;不调用业务 live 接口。 + func start(_ configuration: DroneDockVolcLiveConfiguration, in view: UIView, + onEvent: @escaping @MainActor (DroneDockLivePlaybackEvent) -> Void) { + stop() + guard !DeviceCommandDebugPolicy.blocksLiveRequests else { + onEvent(.failed(DeviceCommandDebugPolicy.blockedMessage)); return + } + guard configuration.expiresAt.timeIntervalSinceNow > 5 else { onEvent(.expired); return } + self.onEvent = onEvent + renderView = view + let generation = generation + let delegate = DroneDockVolcDelegate { [weak self] event in + Task { @MainActor [weak self] in + guard let self, self.generation == generation else { return } + self.receive(event, roomID: configuration.roomID) + } + } + self.delegate = delegate + let config = ByteRTCEngineConfig() + config.appID = configuration.appID + guard let engine = ByteRTCEngine.createRTCEngine(config, delegate: delegate) else { + onEvent(.failed("图传播放器初始化失败")); stop(); return + } + self.engine = engine + guard let room = engine.createRTCRoom(configuration.roomID) else { + onEvent(.failed("无法创建图传接收会话")); stop(); return + } + self.room = room + room.setRTCRoomDelegate(delegate) + let roomConfig = ByteRTCRoomConfig() + roomConfig.isPublishAudio = false + roomConfig.isPublishVideo = false + roomConfig.isAutoSubscribeAudio = false + roomConfig.isAutoSubscribeVideo = false + let user = ByteRTCUserInfo() + user.userId = configuration.userID + let result = room.joinRoom(configuration.token, userInfo: user, userVisibility: false, roomConfig: roomConfig) + guard result == 0 else { + onEvent(.failed("图传进房失败(\(result))")); stop(); return + } + timeoutTask = Task { @MainActor [weak self] in + try? await Task.sleep(for: .seconds(20)) + guard !Task.isCancelled, let self, self.generation == generation else { return } + self.onEvent?(.failed("暂未收到图传画面,请重试")) + } + expiryTask = Task { @MainActor [weak self] in + try? await Task.sleep(for: .seconds(max(1, configuration.expiresAt.timeIntervalSinceNow - 5))) + guard !Task.isCancelled, let self, self.generation == generation else { return } + self.onEvent?(.expired) + } + } + + /// 销毁房间会退出订阅;只结束本机 RTC 连接,不调用设备停止推流接口。 + func stop() { + generation = UUID() + timeoutTask?.cancel(); timeoutTask = nil + expiryTask?.cancel(); expiryTask = nil + onEvent = nil + if let streamID { engine?.setRemoteVideoCanvas(streamID, withCanvas: nil) } + room?.setRTCRoomDelegate(nil) + room?.destroy() + room = nil + engine?.delegate = nil + if engine != nil { ByteRTCEngine.destroyRTCEngine() } + engine = nil + delegate = nil + streamID = nil + renderView = nil + } + + private func receive(_ event: DroneDockVolcEvent, roomID: String) { + switch event { + case .published(let id, let sourceRoom, let index, let published): + guard sourceRoom == roomID, index == 0 else { return } + if !published { + if streamID == id { onEvent?(.failed("图传已停止,请重新连接")) } + return + } + guard streamID == nil, let renderView else { return } + streamID = id + let canvas = ByteRTCVideoCanvas() + canvas.view = renderView + canvas.renderMode = .fit + let renderResult = engine?.setRemoteVideoCanvas(id, withCanvas: canvas) + let subscribeResult = room?.subscribeStreamVideo(id, subscribe: true) + if renderResult != 0 || subscribeResult != 0 { onEvent?(.failed("图传订阅失败,请重试")) } + case .frame(let id): + guard streamID == id else { return } + timeoutTask?.cancel(); timeoutTask = nil + onEvent?(.firstFrame) + case .failed(let code): onEvent?(.failed("图传连接失败(\(code)),请重试")) + case .expired: onEvent?(.expired) + } + } +} + +/// 将 SDK 工作线程的回调转换为可发送的值,不跨线程传递 UIKit 或 SDK 对象。 +private enum DroneDockVolcEvent: Sendable { + case published(String, String, Int, Bool) + case frame(String) + case failed(Int) + case expired +} + +/// SDK 回调桥接;所有 UI 与引擎操作由上层切回主 Actor 后执行。 +private final class DroneDockVolcDelegate: NSObject, ByteRTCEngineDelegate, ByteRTCRoomDelegate { + private let emit: @Sendable (DroneDockVolcEvent) -> Void + init(emit: @escaping @Sendable (DroneDockVolcEvent) -> Void) { self.emit = emit } + + func rtcRoom(_ rtcRoom: ByteRTCRoom, onUserPublishStreamVideo streamId: String, + info: ByteRTCStreamInfo, isPublish: Bool) { + emit(.published(streamId, info.roomId, info.streamIndex, isPublish)) + } + + func rtcRoom(_ rtcRoom: ByteRTCRoom, onRoomStateChanged roomId: String, withUid uid: String, + state: Int, extraInfo: String) { + if state != 0 { emit(.failed(state)) } + } + + func rtcEngine(_ engine: ByteRTCEngine, onFirstRemoteVideoFrameRendered streamId: String, + info: ByteRTCStreamInfo, withFrameInfo frameInfo: ByteRTCVideoFrameInfo) { + emit(.frame(streamId)) + } + + func rtcEngine(_ engine: ByteRTCEngine, onError errorCode: ByteRTCErrorCode) { + emit(.failed(errorCode.rawValue)) + } + + func rtcEngine(_ engine: ByteRTCEngine, onConnectionStateChanged state: ByteRTCConnectionState) { + if state == .reconnecting || state == .failed { emit(.failed(state.rawValue)) } + } + + func onTokenWillExpire(_ rtcRoom: ByteRTCRoom) { emit(.expired) } + func onSubscribePrivilegeTokenWillExpire(_ rtcRoom: ByteRTCRoom) { emit(.expired) } +} diff --git a/suixinkanTests/DeviceCommandDebugPolicyTests.swift b/suixinkanTests/DeviceCommandDebugPolicyTests.swift index bab563f..9fb6a15 100644 --- a/suixinkanTests/DeviceCommandDebugPolicyTests.swift +++ b/suixinkanTests/DeviceCommandDebugPolicyTests.swift @@ -5,6 +5,10 @@ import XCTest /// 验证禁飞调试在进入传输层之前拦截真实操作,所有探针本身也不联网。 @MainActor final class DeviceCommandDebugPolicyTests: XCTestCase { + /// 飞行限制不再由 Debug/Release 决定,正式包也不得用于创建待飞任务或飞控。 + func testFlightRestrictionIsIndependentOfLivePlaybackBuildMode() { + XCTAssertTrue(DeviceCommandDebugPolicy.blocksFlightRequests) + } /// 即使切到生产地址或未来新增机场动作,默认传输也不能发送设备操作。 func testTypedCommandsAreBlockedBeforeTransportInBothEnvironments() async throws { XCTAssertTrue(DeviceCommandDebugPolicy.blocksLiveRequests) diff --git a/suixinkanTests/DroneDockLiveConnectionTests.swift b/suixinkanTests/DroneDockLiveConnectionTests.swift new file mode 100644 index 0000000..b1b5652 --- /dev/null +++ b/suixinkanTests/DroneDockLiveConnectionTests.swift @@ -0,0 +1,107 @@ +import Foundation +import XCTest +@testable import suixinkan + +/// 验证真实协议的参数边界;样例只有虚构值,测试从不连接 RTC。 +final class DroneDockLiveConnectionTests: XCTestCase { + /// 保留 Token 中的加号与等号,百分号只解码一次。 + func testVolcQueryDecodesOnceAndPreservesTokenCharacters() throws { + let value = try DroneDockVolcLiveConfiguration.parse(DroneDockRTCFixture.response(), now: DroneDockRTCFixture.now) + XCTAssertEqual(value.appID, "test-app") + XCTAssertEqual(value.roomID, "test-room") + XCTAssertEqual(value.userID, "test-user") + XCTAssertEqual(value.token, "fake+token+/%2B==") + XCTAssertEqual(value.role, "drone") + XCTAssertEqual(value.expiresAt.timeIntervalSince1970, 2_000_000_600) + XCTAssertFalse(value.debugDescription.contains(value.token)) + } + + /// 缺失、重复和非法转义的参数不进入 SDK,也不在错误中泄露原值。 + func testInvalidQueriesAreRejectedWithoutLeakingSecrets() throws { + let valid = DroneDockRTCFixture.query + for query in [valid + "&app_id=second", valid + "&token=secret", "bad=%ZZ", "https://test.invalid/a", + "app_id=x&room_id=y&user_id=z&token=", "app_id=x&room_id=y&user_id=z&token=%0Asecret", + "app_id=x&room_id=y&user_id=z", valid + "&expire_time=bad"] { + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse( + DroneDockRTCFixture.response(play: ["url": query]), now: DroneDockRTCFixture.now)) { error in + XCTAssertFalse(error.localizedDescription.contains("secret")) + } + } + } + + /// 只接受已明确支持的 volc,绝不把未知 RTC 连接串当 HTTP 视频播放。 + func testUnsupportedVendorsAreExplicitlyRejected() throws { + for type in ["agora", "tencent", "srs", "", "unknown"] { + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse( + DroneDockRTCFixture.response(play: ["url_type": type]), now: DroneDockRTCFixture.now)) { error in + XCTAssertTrue(error.localizedDescription.contains("暂不支持")) + } + } + } + + /// 不可播放回执优先展示后端原因,不强求成功态中的设备字段。 + func testUnavailableResponsePreservesReason() throws { + let response = try DroneDockLiveTestData.response([ + "order_flight_task_id": 501, "playable": false, "play": NSNull(), + "unavailable_message": "飞行器暂未上报视频流"]) + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse(response, now: DroneDockRTCFixture.now)) { + XCTAssertEqual($0.localizedDescription, "飞行器暂未上报视频流") + } + } + + /// 可播放标志不替代流可用、设备身份、角色的验证。 + func testMissingStreamOrDeviceFieldsCannotConnect() throws { + for change: [String: Any] in [["available": false], ["available": NSNull()], ["role": "other"], + ["url": NSNull()], ["expire_ts": NSNull()]] { + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse( + DroneDockRTCFixture.response(play: change), now: DroneDockRTCFixture.now)) + } + for change: [String: Any] in [["plane_id": 0], ["airport_sn": ""], ["play": NSNull()]] { + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse( + DroneDockRTCFixture.response(root: change), now: DroneDockRTCFixture.now)) + } + } + + /// 使用两个有效期中较早者,过期或即将过期的凭证不能进房。 + func testExpiryUsesEarlierTimestampAndRejectsNearExpiry() throws { + let response = try DroneDockRTCFixture.response(play: ["url": DroneDockRTCFixture.query + "&expire_time=2000000100"]) + XCTAssertEqual(try DroneDockVolcLiveConfiguration.parse(response, now: DroneDockRTCFixture.now) + .expiresAt.timeIntervalSince1970, 2_000_000_100) + for expiry in [0, 1_999_999_999, 2_000_000_005] { + XCTAssertThrowsError(try DroneDockVolcLiveConfiguration.parse( + DroneDockRTCFixture.response(play: ["expire_ts": expiry]), now: DroneDockRTCFixture.now)) + } + } + + /// 后端优先流为机巢时明确保留角色,不冒充无人机摄像头。 + func testAirportFallbackKeepsSourceRole() throws { + let response = try DroneDockRTCFixture.response(play: ["role": "airport"]) + XCTAssertEqual(try DroneDockVolcLiveConfiguration.parse(response, now: DroneDockRTCFixture.now).role, "airport") + } + + /// 展示 JSON 中的 play/raw/airport/drone 均不能暴露连接串。 + func testDiagnosticJSONRedactsNestedConnectionSecrets() throws { + let response = try DroneDockRTCFixture.response(root: ["drone": ["url": "secret-drone", "token": "secret-token"]], + play: ["raw": ["url": "secret-raw", "token": "secret-token"]]) + XCTAssertFalse(response.dataJSON.contains("fake+token")) + XCTAssertFalse(response.dataJSON.contains("secret-")) + XCTAssertTrue(response.dataJSON.contains("")) + XCTAssertTrue(response.play?.url?.contains("fake+token") == true) + } +} + +/// 固定时间与合成凭证;仅供内存解析和播放器替身使用。 +enum DroneDockRTCFixture { + static let now = Date(timeIntervalSince1970: 2_000_000_000) + static let query = "app_id=test-app&room_id=test-room&user_id=test-user&token=fake+token%2B%2F%252B==" + + /// 支持覆写错误字段,所有样例均没有真实设备或可用凭证。 + static func response(root: [String: Any] = [:], play: [String: Any] = [:]) throws -> DroneDockLiveResponse { + let stream: [String: Any] = ["available": true, "role": "drone", "device_sn": "TEST-DRONE", + "url_type": "volc", "url": query, "expire_ts": 2_000_000_600] + let data = DroneDockLiveTestData.payload().merging([ + "plane_id": 5, "playable": true, "play": stream.merging(play) { _, new in new } + ]) { _, new in new }.merging(root) { _, new in new } + return try DroneDockLiveTestData.response(data) + } +} diff --git a/suixinkanTests/DroneDockMaterialsViewModelTests.swift b/suixinkanTests/DroneDockMaterialsViewModelTests.swift index c2d9c42..81730be 100644 --- a/suixinkanTests/DroneDockMaterialsViewModelTests.swift +++ b/suixinkanTests/DroneDockMaterialsViewModelTests.swift @@ -5,6 +5,29 @@ import XCTest /// 验证订单素材库的整单口径、点位读取、并发响应和会话隔离。 @MainActor final class DroneDockMaterialsViewModelTests: XCTestCase { + /// 只允许打开当前订单中已加载的任务,不因无素材就创建新任务。 + func testRecordedTaskViewingRequiresLoadedCurrentOrderTask() async throws { + let service = try MaterialsViewModelService() + let model = try makeModel(service: service) + XCTAssertFalse(model.canViewRecordedTasks) + XCTAssertNil(model.taskForViewing(id: 10)) + await model.refresh() + XCTAssertTrue(model.canViewRecordedTasks) + XCTAssertEqual(model.taskForViewing(id: 10)?.id, 10) + XCTAssertNil(model.taskForViewing(id: 999)) + XCTAssertEqual(service.requests.count, 2) + } + + /// 刷新任务失败后,旧列表不能继续用于进入图传页。 + func testRecordedTaskViewingRejectsStaleTaskList() async throws { + let service = try MaterialsViewModelService() + let model = try makeModel(service: service) + await model.refresh() + service.tasksResponse = .failure(URLError(.timedOut)) + await model.refresh() + XCTAssertFalse(model.canViewRecordedTasks) + XCTAssertNil(model.taskForViewing(id: 10)) + } /// 首次先读取购买摘要,再读取全部任务,任务数不改变整单拍摄次数。 func testRefreshReadsDetailThenAllTasksWithoutChangingQuota() async throws { let service = try MaterialsViewModelService() diff --git a/suixinkanTests/DroneDockMaterialsViewTests.swift b/suixinkanTests/DroneDockMaterialsViewTests.swift index 8a5e41c..952e1ac 100644 --- a/suixinkanTests/DroneDockMaterialsViewTests.swift +++ b/suixinkanTests/DroneDockMaterialsViewTests.swift @@ -8,6 +8,43 @@ final class DroneDockMaterialsViewTests: XCTestCase { private weak var previousKeyWindow: UIWindow? private let number = "TEST-MATERIAL-ORDER" + /// 查看已有任务沿用服务端 task_id,整个入口没有任务创建或召唤请求。 + func testViewRecordedTaskOpensSameIDWithoutCreatingOrSummoning() async throws { + var opened: [Int] = [] + let destination = UIViewController() + let (controller, session) = try makeController([detail(), taskList([task(51)])], taskFactory: { id, order, context in + opened.append(id) + XCTAssertEqual(order.orderNumber, self.number) + XCTAssertEqual(context.scenicID, 128) + return destination + }) + let window = show(controller) + defer { close(window) } + try await settle(window) { controller.viewModel.total == 1 } + let button = try XCTUnwrap(controller.navigationItem.rightBarButtonItems?.first { + $0.accessibilityIdentifier == "drone.materials.remote.viewTasks" + }) + XCTAssertTrue(button.isEnabled) + UIApplication.shared.sendAction(try XCTUnwrap(button.action), to: button.target, from: button, for: nil) + try await settle(window) { controller.navigationController?.topViewController === destination } + XCTAssertEqual(opened, [51]) + XCTAssertEqual(session.requests.count, 2) + XCTAssertTrue(session.requests.allSatisfy { $0.httpMethod == "GET" }) + } + + /// 空任务列表保持入口不可用,不通过创建任务补齐条件。 + func testViewTaskEntryIsDisabledForEmptyOrder() async throws { + let (controller, session) = try makeController([detail(), taskList([])]) + let window = show(controller) + defer { close(window) } + try await settle(window) { controller.viewModel.total == 0 } + let button = try XCTUnwrap(controller.navigationItem.rightBarButtonItems?.first { + $0.accessibilityIdentifier == "drone.materials.remote.viewTasks" + }) + XCTAssertFalse(button.isEnabled) + XCTAssertEqual(session.requests.count, 2) + } + /// 下载只覆盖已选就绪原素材,图片及视频正确保存,既有成片不进入批次。 func testSelectionControlsDownloadReadyRawFilesAndSaveCorrectMediaTypes() async throws { var record = task(1, status: 30) @@ -497,7 +534,8 @@ final class DroneDockMaterialsViewTests: XCTestCase { private func makeController(_ responses: [Data], deliveryFactory: ((DroneDockHomeOrder, DroneDockHomeContext, Int?) -> UIViewController)? = nil, previewFactory: ((URL, Bool, String) -> UIViewController)? = nil, - downloadModel: DroneDockMaterialDownloadViewModel? = nil) throws -> (DroneDockMaterialsViewController, MockURLSession) { + downloadModel: DroneDockMaterialDownloadViewModel? = nil, + taskFactory: ((Int, DroneDockHomeOrder, DroneDockHomeContext) -> UIViewController)? = nil) throws -> (DroneDockMaterialsViewController, MockURLSession) { let context = DroneDockHomeContext(userID: "materials-ui-user", accountType: "store_user", scenicID: 128, scenicName: "测试景区", storeID: 37, photographerName: "测试工作人员", token: "materials-ui-token") let session = MockURLSession(responses: responses) @@ -508,7 +546,7 @@ final class DroneDockMaterialsViewTests: XCTestCase { return (DroneDockMaterialsViewController(viewModel: model, deliveryControllerFactory: deliveryFactory, thumbnailProvider: { _, _ in nil }, mediaPreviewControllerFactory: previewFactory, - downloadViewModel: downloadModel), session) + downloadViewModel: downloadModel, taskControllerFactory: taskFactory), session) } private func detail(used: Int = 1, canUpload: Bool = false) throws -> Data { diff --git a/suixinkanTests/DroneDockPreparationViewTests.swift b/suixinkanTests/DroneDockPreparationViewTests.swift index bb678b8..ee5802a 100644 --- a/suixinkanTests/DroneDockPreparationViewTests.swift +++ b/suixinkanTests/DroneDockPreparationViewTests.swift @@ -448,7 +448,7 @@ final class DroneDockPreparationViewTests: XCTestCase { XCTAssertEqual(request.httpMethod, "GET") XCTAssertEqual(request.url?.path, "/api/app/airport/shooting") let query = URLComponents(url: try XCTUnwrap(request.url), resolvingAgainstBaseURL: false)?.queryItems ?? [] - XCTAssertEqual(Dictionary(uniqueKeysWithValues: query.map { ($0.name, $0.value ?? "") }), ["id": "501", "live_battery": "1"]) + XCTAssertEqual(Dictionary(uniqueKeysWithValues: query.map { ($0.name, $0.value ?? "") }), ["id": "501", "live_battery": "0"]) XCTAssertNil(request.httpBody) } XCTAssertEqual(creation.requests.count, 1) diff --git a/suixinkanTests/DroneDockRTCPlaybackTests.swift b/suixinkanTests/DroneDockRTCPlaybackTests.swift new file mode 100644 index 0000000..1d64322 --- /dev/null +++ b/suixinkanTests/DroneDockRTCPlaybackTests.swift @@ -0,0 +1,215 @@ +import UIKit +import XCTest +@testable import suixinkan + +/// 验证 RTC 会话状态及 UI 生命周期;所有播放事件由内存替身产生。 +@MainActor +final class DroneDockRTCPlaybackTests: XCTestCase { + /// 成功获取凭证只进入连接中,必须等首帧回调才能展示实时画面。 + func testCredentialReceiptWaitsForFirstFrame() async throws { + let (model, service) = try makeModel() + XCTAssertFalse(model.loadsAutomatically) + XCTAssertEqual(model.actionTitle, "开启实时图传") + await model.refresh() + XCTAssertEqual(model.state, .connecting) + XCTAssertNil(model.playbackURL) + let id = try XCTUnwrap(model.playbackSessionID) + model.receivePlaybackEvent(.firstFrame, sessionID: id) + XCTAssertEqual(model.state, .playing) + XCTAssertEqual(service.count, 1) + } + + /// 刷新请求返回之前保留旧画面;新凭证采用新会话,旧回调不能覆盖它。 + func testRefreshPreservesOldFrameUntilReceiptAndIgnoresOldEvents() async throws { + let (model, service) = try makeModel() + await model.refresh() + let oldID = try XCTUnwrap(model.playbackSessionID) + model.receivePlaybackEvent(.firstFrame, sessionID: oldID) + service.suspend = true + let pending = Task { @MainActor in await model.refresh() } + for _ in 0..<100 where service.count < 2 { await Task.yield() } + XCTAssertEqual(model.state, .playing) + XCTAssertEqual(model.playbackSessionID, oldID) + service.finish() + await pending.value + XCTAssertNotEqual(model.playbackSessionID, oldID) + model.receivePlaybackEvent(.failed("旧回调"), sessionID: oldID) + XCTAssertEqual(model.state, .connecting) + } + + /// 过期停止旧会话,由用户重新获取,不自动重复启动设备推流。 + func testExpiryClearsCredentialsWithoutAutomaticNetworkRequest() async throws { + let (model, service) = try makeModel() + await model.refresh() + let id = try XCTUnwrap(model.playbackSessionID) + model.receivePlaybackEvent(.expired, sessionID: id) + XCTAssertNil(model.rtcConfiguration) + XCTAssertNil(model.playbackSessionID) + XCTAssertEqual(service.count, 1) + XCTAssertTrue(model.canLoad) + XCTAssertEqual(model.state, .unavailable("图传凭证即将或已经过期,请重新获取")) + } + + /// 离页清除凭证,迟到首帧不能让页面恢复播放。 + func testLeavingDiscardsCredentialsAndLateFirstFrame() async throws { + let (model, _) = try makeModel() + await model.refresh() + let id = try XCTUnwrap(model.playbackSessionID) + model.invalidate() + model.receivePlaybackEvent(.firstFrame, sessionID: id) + XCTAssertEqual(model.state, .idle) + XCTAssertNil(model.rtcConfiguration) + XCTAssertNil(model.response) + } + + /// 网络错误不能留下可重连的旧凭证,也不恢复已经失败的会话。 + func testRefreshFailureClearsOldCredentials() async throws { + let (model, service) = try makeModel() + await model.refresh() + service.error = URLError(.timedOut) + await model.refresh() + XCTAssertNil(model.rtcConfiguration) + XCTAssertNil(model.playbackSessionID) + guard case .failed = model.state else { return XCTFail("应显示请求失败") } + XCTAssertEqual(service.count, 2) + } + + /// 未支持供应商保持不可播放,不进入 SDK。 + func testUnsupportedVendorHasNoPlaybackConfiguration() async throws { + let (model, _) = try makeModel(response: DroneDockRTCFixture.response(play: ["url_type": "agora"])) + await model.refresh() + XCTAssertNil(model.rtcConfiguration) + guard case .unavailable(let reason) = model.state else { return XCTFail("应显示不支持") } + XCTAssertTrue(reason.contains("暂不支持")) + } + + /// 同一会话重复刷新 UI 不重建播放器,切后台只释放一次。 + func testViewStartsOnceAndStopsWhenInactive() async throws { + let (model, _) = try makeModel() + await model.refresh() + let player = RTCPlayerProbe() + let view = DroneDockTaskLiveView(rtcPlayer: player) + view.apply(model) + XCTAssertEqual(player.starts, 0) + view.setPlaybackActive(true) + view.apply(model) + XCTAssertEqual(player.starts, 1) + view.setPlaybackActive(false) + view.setPlaybackActive(false) + XCTAssertEqual(player.stops, 1) + } + + /// 替身首帧与失败回调更新图传区域;失败会释放播放器,布局尺寸保持不变。 + func testViewEventsUpdateStateAndReleaseFailedSession() async throws { + let (model, _) = try makeModel() + await model.refresh() + let player = RTCPlayerProbe() + let view = DroneDockTaskLiveView(rtcPlayer: player) + view.frame = CGRect(x: 0, y: 0, width: 390, height: 219.375) + view.onPlaybackEvent = { event, id in model.receivePlaybackEvent(event, sessionID: id) } + view.apply(model) + view.setPlaybackActive(true) + let event = try XCTUnwrap(player.event) + event(.firstFrame) + view.apply(model) + XCTAssertEqual(model.state, .playing) + XCTAssertEqual(view.accessibilityLabel, "无人机摄像头 · 实时图传") + event(.failed("测试中断")) + view.apply(model) + XCTAssertEqual(player.stops, 1) + XCTAssertEqual(view.bounds.size, CGSize(width: 390, height: 219.375)) + event(.firstFrame) + XCTAssertEqual(model.state, .failed("测试中断")) + } + + /// 即使误把真参数交给 Debug 播放器,也会在 SDK 初始化前拦截。 + func testDebugRTCPlayerRejectsRealConnection() throws { + let player = DroneDockVolcLivePlayer() + let configuration = try DroneDockVolcLiveConfiguration.parse(DroneDockRTCFixture.response(), now: DroneDockRTCFixture.now) + var events: [DroneDockLivePlaybackEvent] = [] + player.start(configuration, in: UIView()) { events.append($0) } + XCTAssertEqual(events, [.failed(DeviceCommandDebugPolicy.blockedMessage)]) + player.stop() + } + + /// 已允许手动图传的页面进场、回前台均不自动调用 live。 + func testTaskPageRequiresExplicitTapAndDoesNotRestartOnForeground() async throws { + let (live, service) = try makeModel(response: DroneDockRTCFixture.response(play: ["url_type": "agora"])) + let context = DroneDockShootingTaskTestData.context() + let read = DroneDockShootingTaskTestService(result: .success(try DroneDockShootingTaskTestData.response())) + let model = DroneDockShootingTaskViewModel(context: context, taskID: 501, + order: try DroneDockShootingTaskTestData.order(), service: read, currentContext: { context }) + let controller = DroneDockShootingTaskViewController(viewModel: model, liveViewModel: live) + let scene = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.first + let previous = scene?.windows.first { $0.isKeyWindow } + let window = scene.map { UIWindow(windowScene: $0) } ?? UIWindow(frame: UIScreen.main.bounds) + window.rootViewController = UINavigationController(rootViewController: controller) + window.makeKeyAndVisible() + defer { window.isHidden = true; window.rootViewController = nil; previous?.makeKeyAndVisible() } + try await Task.sleep(for: .milliseconds(250)) + XCTAssertEqual(service.count, 0) + XCTAssertTrue(read.requests.allSatisfy { !$0.liveBattery }) + let button = try XCTUnwrap(descendants(controller.view).first { + $0.accessibilityIdentifier == "drone.task.remote.live.request" + } as? UIButton) + button.sendActions(for: .touchUpInside) + for _ in 0..<100 where service.count == 0 { await Task.yield() } + XCTAssertEqual(service.count, 1) + NotificationCenter.default.post(name: UIApplication.willResignActiveNotification, object: nil) + NotificationCenter.default.post(name: UIApplication.didBecomeActiveNotification, object: nil) + try await Task.sleep(for: .milliseconds(100)) + XCTAssertEqual(service.count, 1) + XCTAssertNil(live.rtcConfiguration) + XCTAssertFalse(model.canStartShooting) + XCTAssertFalse(model.canResummon) + } + + /// API 请求日志隐藏整个响应正文,避免 querystring 中的 Token 落入控制台。 + func testLiveAPIResponseLogDoesNotContainRTCSecrets() async throws { + let payload: [String: Any] = ["order_flight_task_id": 501, "play": ["url": "token=DO-NOT-LOG"]] + let session = MockURLSession(responses: [try DroneDockLiveTestData.envelope(payload)]) + var logs = "" + let client = APIClient(environment: .testing, session: session, debugLogSink: { logs += $0 }) + _ = try await DroneDockLiveAPI(client: client).live(taskID: 501) + XCTAssertFalse(logs.contains("DO-NOT-LOG")) + XCTAssertTrue(logs.contains("sensitive payload omitted")) + } + + private func makeModel(response: DroneDockLiveResponse? = nil) throws -> (DroneDockLiveViewModel, RTCParameterProbe) { + let context = DroneDockShootingTaskTestData.context() + let service = RTCParameterProbe(response: try response ?? DroneDockRTCFixture.response()) + return (DroneDockLiveViewModel(context: context, taskID: 501, service: service, + allowsDevicePlayback: true, now: { DroneDockRTCFixture.now }, currentContext: { context }), service) + } + + private func descendants(_ root: UIView) -> [UIView] { [root] + root.subviews.flatMap(descendants) } +} + +/// 可挂起的参数替身,不含网络传输。 +@MainActor +private final class RTCParameterProbe: DroneDockLiveServing { + var response: DroneDockLiveResponse + var error: Error? + var count = 0 + var suspend = false + private var continuation: CheckedContinuation? + init(response: DroneDockLiveResponse) { self.response = response } + func live(taskID: Int) async throws -> DroneDockLiveResponse { + count += 1 + if suspend { await withCheckedContinuation { continuation = $0 } } + if let error { throw error } + return response + } + func finish() { continuation?.resume(); continuation = nil } +} + +/// 手动产生播放器事件,测试不加载 RTC 引擎。 +@MainActor +private final class RTCPlayerProbe: DroneDockLivePlaying { + var starts = 0 + var stops = 0 + var event: (@MainActor (DroneDockLivePlaybackEvent) -> Void)? + func start(_ configuration: DroneDockVolcLiveConfiguration, in view: UIView, + onEvent: @escaping @MainActor (DroneDockLivePlaybackEvent) -> Void) { starts += 1; event = onEvent } + func stop() { stops += 1; event = nil } +} diff --git a/suixinkanTests/DroneDockShootingTaskViewModelTests.swift b/suixinkanTests/DroneDockShootingTaskViewModelTests.swift index f0c8ab4..3b51f62 100644 --- a/suixinkanTests/DroneDockShootingTaskViewModelTests.swift +++ b/suixinkanTests/DroneDockShootingTaskViewModelTests.swift @@ -6,7 +6,7 @@ import XCTest @MainActor final class DroneDockShootingTaskViewModelTests: XCTestCase { /// 进入、刷新和返回始终读取传入的同一任务,构造本身不发请求。 - func testRefreshAndReturnReadSameTaskWithLiveBattery() async throws { + func testRefreshAndReturnReadSameTaskWithoutLiveBattery() async throws { let fixture = try ShootingTaskFixture() XCTAssertTrue(fixture.service.requests.isEmpty) await fixture.model.refresh() @@ -15,7 +15,7 @@ final class DroneDockShootingTaskViewModelTests: XCTestCase { XCTAssertNil(fixture.model.response) await fixture.model.refresh() XCTAssertEqual(fixture.service.requests.map(\.taskID), [501, 501, 501]) - XCTAssertTrue(fixture.service.requests.allSatisfy(\.liveBattery)) + XCTAssertTrue(fixture.service.requests.allSatisfy { !$0.liveBattery }) XCTAssertNotNil(fixture.model.dataJSON) XCTAssertFalse(fixture.model.isLoading) } diff --git a/suixinkanTests/DroneDockShootingTaskViewTests.swift b/suixinkanTests/DroneDockShootingTaskViewTests.swift index 8655dc9..a2061c9 100644 --- a/suixinkanTests/DroneDockShootingTaskViewTests.swift +++ b/suixinkanTests/DroneDockShootingTaskViewTests.swift @@ -140,7 +140,7 @@ final class DroneDockShootingTaskViewTests: XCTestCase { XCTAssertEqual(request.url?.path, "/api/app/airport/shooting") XCTAssertNil(request.httpBody) let query = URLComponents(url: try XCTUnwrap(request.url), resolvingAgainstBaseURL: false)?.queryItems - XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "1")]) + XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "0")]) } } @@ -517,7 +517,7 @@ private final class TaskViewReadService: DroneDockShootingServing { init(response: DroneDockShootingResponse? = nil) throws { self.response = try response ?? TaskViewData.response() } func shooting(taskID: Int, liveBattery: Bool) async throws -> DroneDockShootingResponse { - XCTAssertTrue(liveBattery) + XCTAssertFalse(liveBattery) requests.append(taskID) if let error = nextError { nextError = nil diff --git a/机巢工作台页面接口对接记录.md b/机巢工作台页面接口对接记录.md index 8c74887..51f6a0b 100644 --- a/机巢工作台页面接口对接记录.md +++ b/机巢工作台页面接口对接记录.md @@ -2,7 +2,7 @@ > 更新日期:2026-10-30 > **当前禁飞限制(优先于下文历史联调记录):**按用户最新要求,调试不得向真实无人机下发指令。Debug 准备页禁止真实创建和召唤;统一网络层在传输前阻断 `tasks/create`、机场操作请求(包括 `shoot/start-shoot/command/live` 及未确认的新接口)。状态 GET 仅允许已确认的 `home/plane-status/shooting/status`,其中实时采集参数强制为 `live_battery=0` 或 `live_metrics=0`。只有完全不联网的 Mock 传输可以验证原始请求合同。下文任务 6、11 的真实召唤均发生于此限制之前,不作为继续真实联调的授权。 -> 核对范围:当前工作区。准备页使用张工 `project-info` 和朱工 `plane-status`;“确认并召唤”按 `project-info → tasks/create → shoot` 执行,召唤业务成功后进入任务页;按用户最新要求,`shooting` 已取消定时轮询,仅在进入页面、页面可见时返回前台或手动刷新时各读取一次同一任务。准备页 `plane-status` 保持轮询。最新 2026-10-29 17:18–17:19 模拟器实操新建任务 11,再以 `{id:11,restart:false}` 召唤;两个接口均成功,绑定飞机 61、航线任务 1931。17:19:04 首次查询允许开始,17:19:59 手动回查已为航线执行失败、禁止拍摄,当前待朱工定位 1931 失败原因与自动派机条件(见 7.7.3)。任务 6 / 航线 1926 的先前失败记录保留。召唤回执的“已到达”不是物理验证,本轮未调用开始拍摄或控制接口。任务 2 的参数、订单类型及机场状态失败保留为历史,原因不因新任务成功而作推断。`workbench`、定位请求已停用;`start-shoot` 已实现纯本地模拟(见 7.6.2),真实开拍入口保持禁用;`command` 已实现纯本地模拟(见 7.6.3),真实控制保持禁用;图传请求及状态已预接(本地模拟,真实播放协议待朱工补齐,见 7.6.4);2026-10-30 已完成真实成片上传、保存及回查,见 9.4。 +> 核对范围:当前工作区。准备页使用张工 `project-info` 和朱工 `plane-status`;“确认并召唤”按 `project-info → tasks/create → shoot` 执行,召唤业务成功后进入任务页;按用户最新要求,`shooting` 已取消定时轮询,仅在进入页面、页面可见时返回前台或手动刷新时各读取一次同一任务。准备页 `plane-status` 保持轮询。最新 2026-10-29 17:18–17:19 模拟器实操新建任务 11,再以 `{id:11,restart:false}` 召唤;两个接口均成功,绑定飞机 61、航线任务 1931。17:19:04 首次查询允许开始,17:19:59 手动回查已为航线执行失败、禁止拍摄,当前待朱工定位 1931 失败原因与自动派机条件(见 7.7.3)。任务 6 / 航线 1926 的先前失败记录保留。召唤回执的“已到达”不是物理验证,本轮未调用开始拍摄或控制接口。任务 2 的参数、订单类型及机场状态失败保留为历史,原因不因新任务成功而作推断。`workbench`、定位请求已停用;`start-shoot` 已实现纯本地模拟(见 7.6.2),真实开拍入口保持禁用;`command` 已实现纯本地模拟(见 7.6.3),真实控制保持禁用;图传已于 2026-11-02 接入火山 RTC 参数与播放器(Release 手动开启,Debug 保持拦截,真实画面待用户联调,见 7.6.5);2026-10-30 已完成真实成片上传、保存及回查,见 9.4。 > 用途:记录每个页面实际调用的接口、提供人、调用时机、请求参数和返回 JSON,供 iOS 与后端持续联调。 ## 1. 阅读说明 @@ -45,7 +45,7 @@ | 拍摄任务页:任务摘要、六项读数与阶段状态 | 朱工 | `GET /api/app/airport/shooting` | 已接入,取消定时轮询;进入、可见时返回前台或手动刷新各读一次;16:04:52 任务 6 的航线执行失败、门禁阻止拍摄 | | 拍摄任务页:开始拍摄 | 朱工 | `POST /api/app/airport/start-shoot` | 已实现纯内存 Mock;真实入口禁用,84 项相关测试通过,见 7.6.2 | | 拍摄任务页:底部安全控制 | 朱工 | `POST /api/app/airport/command` | 已实现纯内存 Mock;真实入口禁用,暂停/继续/返航/取消返航共用,见 7.6.3 | -| 拍摄任务页:实时图传 | 朱工 | `GET /api/app/airport/live?id=原任务ID` | 已接请求和状态;本地模拟视频有明确来源标记,真实播放合同待补,禁飞期间不启用真实开流,见 7.6.4 | +| 拍摄任务页:实时图传 | 朱工 | `GET /api/app/airport/live?id=原任务ID` | 2026-11-02 已接火山 RTC 参数及播放器;Release 手动开启,Debug 继续拦截;真实画面尚未联调,见 7.6.5 | | 拍摄任务页:失败后重新召唤 | 朱工 | `POST /api/app/airport/shoot`,`id/restart=true` | 已实现同任务纯内存模拟、受理后单次回查和防重;真实入口禁用,见 7.6.4 | | 订单素材库:整单摘要与点位标签 | 张工 | `GET /api/yf-handset-app/photog/multi-plane/orders/detail` | 已接入 | | 订单素材库:任务、原素材与点位筛选 | 张工 | `GET /api/yf-handset-app/photog/multi-plane/tasks` | 已接入,不分页 | @@ -1258,7 +1258,15 @@ HTTP 200,完整业务响应: 详细场景、模拟器截图与完整回执见 [安全控制模拟记录](docs/9.9.1/safety-command-mock-2026-10-30/README.md)。当前仅验证客户端请求合同与交互;尚无后端真实指令受理或设备执行证据。 -### 7.6.4 实时图传与失败重召唤(2026-10-30,仅本地模拟) +### 7.6.5 火山 RTC 播放接入(2026-11-02) + +朱工已补齐 `volc` 的 querystring 格式及脱敏成功回执。App 接入固定版本火山 RTC SDK,解析 `playable/play.available/play.url_type/play.url/play.expire_ts`,订阅 `app_id/room_id/user_id/token` 对应房间的视频。首帧到达后才显示真实图传状态;错误、过期、离页和后台均释放会话,不轮询或自动重新调用 live。 + +正式包由用户进入已有任务页后手动点击“开启实时图传”;页面出现不启动设备推流。Debug 保持 live 和 SDK 连接双重拦截,飞控服务仍不向正式任务页注入。任务页 shooting 明确使用 `live_battery=0`。 + +当前支持 `volc`,其它类型明确提示不支持;本次未连接真实设备。详细合同、打包入口、验证范围见 [火山图传接入记录](docs/9.9.1/live-rtc-integration-2026-11-02/README.md)。下节为旧版合同的历史记录。 + +### 7.6.4 实时图传与失败重召唤(2026-10-30,仅本地模拟,历史记录) 用户再次明确当前禁止飞行。真实任务页不注入 `live` 或重召唤服务;Debug 传输层仍阻断所有真实设备操作,无放行开关。本轮不请求真实 `live/shoot`,不创建真实待飞任务。