├── Podfile.lock ├── Documents ├── img │ ├── disclosure.png │ ├── disclosure_open.png │ ├── library_background.png │ ├── title_background.png │ └── button_bar_background.png ├── css │ └── scss │ │ ├── style.scss │ │ ├── _index.scss │ │ ├── _variables.scss │ │ ├── _xcode.scss │ │ ├── _print.scss │ │ ├── _object.scss │ │ └── _layout.scss ├── js │ └── script.js ├── Constants │ ├── ARClientRole.html │ ├── ARCameraDirection.html │ ├── ARVideoStreamType.html │ ├── ARUserPriority.html │ ├── ARVideoRenderMode.html │ ├── ARVideoMirrorMode.html │ ├── ARChannelProfile.html │ ├── ARVideoQualityAdaptIndication.html │ ├── ARDegradationPreference.html │ ├── ARUserOfflineReason.html │ ├── ARStreamFallbackOptions.html │ ├── ARVideoCodecType.html │ ├── ARVideoOutputOrientationMode.html │ ├── ARAudioLocalState.html │ ├── ARLocalVideoStreamState.html │ ├── ARAudioMixingStateCode.html │ ├── ARAudioMixingErrorCode.html │ ├── ARCameraCaptureOutputPreference.html │ ├── ARConnectionStateType.html │ ├── ARAudioRemoteState.html │ ├── ARLogFilter.html │ ├── ARVideoRemoteState.html │ ├── ARAudioScenario.html │ ├── ARAudioLocalError.html │ └── ARLocalVideoStreamError.html ├── Classes │ ├── ARCameraCapturerConfiguration.html │ └── ARtcLocalAudioStats.html └── index.html ├── Pods ├── Manifest.lock └── Target Support Files │ └── Pods-AR-iOS-Tutorial │ ├── Pods-AR-iOS-Tutorial-frameworks-Debug-output-files.xcfilelist │ ├── Pods-AR-iOS-Tutorial-frameworks-Release-output-files.xcfilelist │ ├── Pods-AR-iOS-Tutorial.modulemap │ ├── Pods-AR-iOS-Tutorial-acknowledgements.markdown │ ├── Pods-AR-iOS-Tutorial-dummy.m │ ├── Pods-AR-iOS-Tutorial-frameworks-Debug-input-files.xcfilelist │ ├── Pods-AR-iOS-Tutorial-frameworks-Release-input-files.xcfilelist │ ├── Pods-AR-iOS-Tutorial.debug.xcconfig │ ├── Pods-AR-iOS-Tutorial.release.xcconfig │ ├── Pods-AR-iOS-Tutorial-umbrella.h │ ├── Pods-AR-iOS-Tutorial-Info.plist │ └── Pods-AR-iOS-Tutorial-acknowledgements.plist ├── AR-iOS-Tutorial ├── resource │ ├── end@2x.png │ ├── end@3x.png │ ├── mic@2x.png │ ├── mic@3x.png │ ├── start@2x.png │ ├── start@3x.png │ ├── switch@2x.png │ ├── switch@3x.png │ ├── unmic@2x.png │ ├── unmic@3x.png │ ├── big_logo@2x.png │ ├── big_logo@3x.png │ ├── audio_close@2x.png │ ├── audio_close@3x.png │ ├── audio_open@2x.png │ ├── audio_open@3x.png │ ├── video_close@2x.png │ ├── video_close@3x.png │ ├── video_open@2x.png │ └── video_open@3x.png ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── bridging-header.h ├── AppID.swift ├── AppDelegate.swift ├── ARVideoView.swift ├── Base.lproj │ └── LaunchScreen.storyboard ├── Info.plist ├── LogViewController.swift └── ARVideoView.xib ├── Podfile ├── AR-iOS-Tutorial.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── AR-iOS-Tutorial.xcscheme ├── AR-iOS-Tutorial.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── .gitattributes ├── LICENSE ├── .gitignore └── README.md /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 986aa47a5eb4e2fc7d52ddf6bb1db4252cf8749a 2 | 3 | COCOAPODS: 1.9.3 4 | -------------------------------------------------------------------------------- /Documents/img/disclosure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/Documents/img/disclosure.png -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 986aa47a5eb4e2fc7d52ddf6bb1db4252cf8749a 2 | 3 | COCOAPODS: 1.9.3 4 | -------------------------------------------------------------------------------- /Documents/css/scss/style.scss: -------------------------------------------------------------------------------- 1 | @import "variables", "normalize", "layout", "index", "object", "print", "xcode"; 2 | -------------------------------------------------------------------------------- /Documents/img/disclosure_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/Documents/img/disclosure_open.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/end@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/end@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/end@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/end@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/mic@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/mic@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/mic@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/mic@3x.png -------------------------------------------------------------------------------- /Documents/img/library_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/Documents/img/library_background.png -------------------------------------------------------------------------------- /Documents/img/title_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/Documents/img/title_background.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/start@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/start@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/start@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/start@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/switch@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/switch@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/switch@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/switch@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/unmic@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/unmic@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/unmic@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/unmic@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/big_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/big_logo@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/big_logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/big_logo@3x.png -------------------------------------------------------------------------------- /Documents/img/button_bar_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/Documents/img/button_bar_background.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/audio_close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/audio_close@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/audio_close@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/audio_close@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/audio_open@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/audio_open@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/audio_open@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/audio_open@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/video_close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/video_close@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/video_close@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/video_close@3x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/video_open@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/video_open@2x.png -------------------------------------------------------------------------------- /AR-iOS-Tutorial/resource/video_open@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyRTC/AriOSSDK/HEAD/AR-iOS-Tutorial/resource/video_open@3x.png -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios,'9.0' 2 | target ‘AR-iOS-Tutorial’ do 3 | 4 | pod 'ARtcKit_iOS', '~> 4.3.0.0' 5 | 6 | use_frameworks! 7 | 8 | end 9 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks-Debug-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ARtcKit.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks-Release-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ARtcKit.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AR_iOS_Tutorial { 2 | umbrella header "Pods-AR-iOS-Tutorial-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AR_iOS_Tutorial : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AR_iOS_Tutorial 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks-Debug-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks.sh 2 | ${PODS_ROOT}/ARtcKit_iOS/ARtcKit/ARtcKit.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks-Release-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-frameworks.sh 2 | ${PODS_ROOT}/ARtcKit_iOS/ARtcKit/ARtcKit.framework -------------------------------------------------------------------------------- /AR-iOS-Tutorial.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/bridging-header.h: -------------------------------------------------------------------------------- 1 | // 2 | // bridging-header.h 3 | // AR-iOS-Tutorial 4 | // 5 | // Created by 余生丶 on 2020/5/22. 6 | // Copyright © 2020 AR. All rights reserved. 7 | // 8 | 9 | #ifndef bridging_header_h 10 | #define bridging_header_h 11 | 12 | 13 | #endif /* bridging_header_h */ 14 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/AppID.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppID.swift 3 | // AR-iOS-Tutorial 4 | // 5 | // Created by 余生丶 on 2020/4/27. 6 | // Copyright © 2020 AR. All rights reserved. 7 | // 8 | 9 | /* AppID 10 | * anyRTC 为 App 开发者签发的 App ID。每个项目都应该有一个独一无二的 App ID。如果你的开发包里没有 App ID,请从anyRTC官网(https://www.anyrtc.io)申请一个新的 App ID 11 | */ 12 | let AppID: String = <#T##String#> 13 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | PODS_BUILD_DIR = ${BUILD_DIR} 3 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 4 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 5 | PODS_ROOT = ${SRCROOT}/Pods 6 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | PODS_BUILD_DIR = ${BUILD_DIR} 3 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 4 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 5 | PODS_ROOT = ${SRCROOT}/Pods 6 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 7 | -------------------------------------------------------------------------------- /Documents/css/scss/_index.scss: -------------------------------------------------------------------------------- 1 | .index-container { 2 | -webkit-flex-direction: column; 3 | flex-direction: column; 4 | 5 | @media (min-width: $desktop-min-width) { 6 | display: flex; 7 | -webkit-flex-direction: row; 8 | flex-direction: row; 9 | -webkit-flex-wrap: wrap; 10 | flex-wrap: wrap; 11 | } 12 | 13 | .index-column { 14 | -webkit-flex: 1 1 33%; 15 | flex: 1 1 33%; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Documents/css/scss/_variables.scss: -------------------------------------------------------------------------------- 1 | $body-font: -apple-system-font, "Helvetica Neue", Helvetica, sans-serif; 2 | $code-font: "Source Code Pro", Monaco, Menlo, Consolas, monospace; 3 | 4 | $body-background: #f2f2f2; 5 | $content-background: #fff; 6 | $content-border: #e9e9e9; 7 | $tint-color: #08c; 8 | $object-background: #f9f9f9; 9 | $object-border: #e9e9e9; 10 | 11 | $mobile-max-width: 650px; 12 | $desktop-min-width: 768px; -------------------------------------------------------------------------------- /Documents/css/scss/_xcode.scss: -------------------------------------------------------------------------------- 1 | .xcode { 2 | header, aside { 3 | display: none; 4 | } 5 | 6 | .container { 7 | padding: 0; 8 | } 9 | 10 | article { 11 | margin-top: 0; 12 | 13 | #content { 14 | border: 0; 15 | margin: 0; 16 | } 17 | } 18 | 19 | .method-info { 20 | &, .section-method.hide & { 21 | max-height: auto; 22 | overflow: visible; 23 | 24 | &.hiding { 25 | display: block; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AR_iOS_TutorialVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AR_iOS_TutorialVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.md linguist-language=objective-c 2 | *.yml linguist-language=objective-c 3 | *.html linguist-language=objective-c 4 | *.js linguist-language=objective-c 5 | *.xml linguist-language=objective-c 6 | *.css linguist-language=objective-c 7 | *.sql linguist-language=objective-c 8 | *.uml linguist-language=objective-c 9 | *.cmd linguist-language=objective-c 10 | *.m linguist-language=objective-c 11 | *.h linguist-language=objective-c 12 | *.cpp linguist-language=objective-c 13 | *.mm linguist-language=objective-c 14 | *.swift linguist-language=objective-c -------------------------------------------------------------------------------- /AR-iOS-Tutorial/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AR-iOS-Tutorial 4 | // 5 | // Created by 余生丶 on 2020/4/27. 6 | // Copyright © 2020 AR. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Documents/css/scss/_print.scss: -------------------------------------------------------------------------------- 1 | @media print { 2 | body { 3 | background: #fff; 4 | padding: 8px; 5 | } 6 | 7 | header { 8 | position: static; 9 | background: #fff; 10 | color: #000; 11 | } 12 | 13 | aside { 14 | display: none; 15 | } 16 | 17 | .container { 18 | max-width: none; 19 | padding: 0; 20 | } 21 | 22 | article { 23 | margin-top: 0; 24 | 25 | #content { 26 | border: 0; 27 | background: #fff; 28 | padding: 15px 0 0 0; 29 | 30 | .title { 31 | margin-top: 0; 32 | padding-top: 0; 33 | } 34 | } 35 | } 36 | 37 | .method-info { 38 | &, & .pointy-thing { 39 | background: #fff; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/ARVideoView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ARVideoView.swift 3 | // AR-iOS-Tutorial 4 | // 5 | // Created by 余生丶 on 2020/5/7. 6 | // Copyright © 2020 AR. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ARVideoView: UIView { 12 | @IBOutlet weak var renderView: UIView! 13 | // 占位图 14 | @IBOutlet weak var videoMutedIndicator: UIView! 15 | @IBOutlet weak var audioMutedIndicator: UIImageView! 16 | 17 | var uid: String? 18 | 19 | class func loadVideoView(uid: String?)-> ARVideoView{ 20 | let video = Bundle.main.loadNibNamed("ARVideoView", owner: self, options: nil)?.first as! ARVideoView 21 | video.uid = uid 22 | video.videoMutedIndicator.isHidden = true 23 | video.audioMutedIndicator.isHidden = true 24 | video.frame = CGRect.zero 25 | return video 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AR-iOS-Tutorial/Pods-AR-iOS-Tutorial-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Anyrtc.io Community 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Documents/css/scss/_object.scss: -------------------------------------------------------------------------------- 1 | .section-specification { 2 | table { 3 | width: auto; 4 | 5 | th { 6 | text-align: left; 7 | } 8 | } 9 | } 10 | 11 | .method-title { 12 | margin-left: -15px; 13 | margin-bottom: 8px; 14 | transition: margin-left .3s ease-out; 15 | 16 | .section-method.hide & { 17 | margin-left: 0; 18 | } 19 | 20 | code { 21 | font-weight: 400; 22 | font-size: .85em; 23 | } 24 | } 25 | 26 | .method-info { 27 | background: $object-background; 28 | border-bottom: 1px solid $object-border; 29 | margin: 0 -25px; 30 | padding: 20px 25px 0 25px; 31 | transition: height .3s ease-out; 32 | 33 | position: relative; 34 | 35 | .pointy-thing { 36 | background: $content-background; 37 | height: 10px; 38 | border-bottom: 1px solid $object-border; 39 | margin: -20px -25px 16px -25px; 40 | 41 | &:before { 42 | display: inline-block; 43 | content: ""; 44 | 45 | background: $object-background; 46 | border: 1px solid $object-border; 47 | border-bottom: 0; 48 | border-right: 0; 49 | 50 | position: absolute; 51 | left: 21px; 52 | top: 3px; 53 | width: 12px; 54 | height: 12px; 55 | transform: rotate(45deg); 56 | } 57 | } 58 | 59 | .method-subsection { 60 | margin-bottom: 15px; 61 | 62 | .argument-name { 63 | width: 1px; 64 | text-align: right; 65 | 66 | code { 67 | color: #808080; 68 | font-style: italic; 69 | font-weight: 400; 70 | } 71 | } 72 | } 73 | } 74 | 75 | .section-method { 76 | &.hide .method-info { 77 | height: 0 !important; 78 | overflow: hidden; 79 | display: none; 80 | } 81 | 82 | &.hide.animating .method-info { 83 | display: block; 84 | } 85 | 86 | &.animating .method-info { 87 | overflow: hidden; 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /Documents/js/script.js: -------------------------------------------------------------------------------- 1 | function $() { 2 | return document.querySelector.apply(document, arguments); 3 | } 4 | 5 | if (navigator.userAgent.indexOf("Xcode") != -1) { 6 | document.documentElement.classList.add("xcode"); 7 | } 8 | 9 | var jumpTo = $("#jump-to"); 10 | 11 | if (jumpTo) { 12 | jumpTo.addEventListener("change", function(e) { 13 | location.hash = this.options[this.selectedIndex].value; 14 | }); 15 | } 16 | 17 | function hashChanged() { 18 | if (/^#\/\/api\//.test(location.hash)) { 19 | var element = document.querySelector("a[name='" + location.hash.substring(1) + "']"); 20 | 21 | if (!element) { 22 | return; 23 | } 24 | 25 | element = element.parentNode; 26 | 27 | element.classList.remove("hide"); 28 | fixScrollPosition(element); 29 | } 30 | } 31 | 32 | function fixScrollPosition(element) { 33 | var scrollTop = element.offsetTop - 150; 34 | document.documentElement.scrollTop = scrollTop; 35 | document.body.scrollTop = scrollTop; 36 | } 37 | 38 | [].forEach.call(document.querySelectorAll(".section-method"), function(element) { 39 | element.classList.add("hide"); 40 | 41 | element.querySelector(".method-title a").addEventListener("click", function(e) { 42 | var info = element.querySelector(".method-info"), 43 | infoContainer = element.querySelector(".method-info-container"); 44 | 45 | element.classList.add("animating"); 46 | info.style.height = (infoContainer.clientHeight + 40) + "px"; 47 | fixScrollPosition(element); 48 | element.classList.toggle("hide"); 49 | if (element.classList.contains("hide")) { 50 | e.preventDefault(); 51 | } 52 | setTimeout(function() { 53 | element.classList.remove("animating"); 54 | }, 300); 55 | }); 56 | }); 57 | 58 | window.addEventListener("hashchange", hashChanged); 59 | hashChanged(); 60 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | # CocoaPods 34 | # 35 | # We recommend against adding the Pods directory to your .gitignore. However 36 | # you should judge for yourself, the pros and cons are mentioned at: 37 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 38 | # 39 | # Pods/ 40 | # 41 | # Add this line if you want to avoid checking in source code from the Xcode workspace 42 | # *.xcworkspace 43 | 44 | # Carthage 45 | # 46 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 47 | # Carthage/Checkouts 48 | 49 | Carthage/Build/ 50 | 51 | # fastlane 52 | # 53 | # It is recommended to not store the screenshots in the git repo. 54 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 55 | # For more information about the recommended setup visit: 56 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 57 | 58 | fastlane/report.xml 59 | fastlane/Preview.html 60 | fastlane/screenshots/**/*.png 61 | fastlane/test_output 62 | 63 | # Code Injection 64 | # 65 | # After new code Injection tools there's a generated folder /iOSInjectionProject 66 | # https://github.com/johnno1962/injectionforxcode 67 | 68 | iOSInjectionProject/ 69 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSCameraUsageDescription 26 | Camera 27 | NSMicrophoneUsageDescription 28 | Microphone 29 | UIBackgroundModes 30 | 31 | audio 32 | 33 | UILaunchStoryboardName 34 | LaunchScreen 35 | UIMainStoryboardFile 36 | Main 37 | UIRequiredDeviceCapabilities 38 | 39 | armv7 40 | 41 | UIStatusBarHidden 42 | 43 | UIStatusBarStyle 44 | UIStatusBarStyleLightContent 45 | UISupportedInterfaceOrientations 46 | 47 | UIInterfaceOrientationPortrait 48 | 49 | UISupportedInterfaceOrientations~ipad 50 | 51 | UIInterfaceOrientationPortrait 52 | UIInterfaceOrientationPortraitUpsideDown 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 一. 新版SDK介绍 2 | 3 | 在该版本对通信场景采用了全新的系统架构。全新的API接口,更符合开发者习惯。 4 | 5 | ### 1.1 功能模块 6 | 7 | 1. 核心模块: 8 | 2. 音频模块 9 | 3. 视频模块 10 | 4. 视频预处理和后处理模块 11 | 5. 音频路由控制模块 12 | 6. 耳返 13 | 7. 音频音响模块 14 | 8. 音乐文件播放和混合模块 15 | 9. 音频录制模块 16 | 10. 还回测试模块 17 | 11. 网络相关测试模块 18 | 12. 自定义视频采集渲染模块 19 | 13. 外部音频输入模块 20 | 14. 外部视频输入模块 21 | 15. 水印模块 22 | 16. 大小流模块 23 | 17. 自定义加密模块 24 | 18. 在线媒体流推流模块 25 | 19. CDN直播模块 26 | 20. 广播消息模块 27 | 21. 摄像头控制模块 28 | 22. 屏幕共享模块 29 | 23. 设备管理模块 30 | 24. SEI补充增强信息模块 31 | 25. 等等.... 32 | 33 | ### 1.2 关于费用 34 | anyRTC 新版本SDK,在5月~7月之间免费使用,免费之后,按照官网标准报价:[价格](https://www.anyrtc.io/price),优惠信息请联系客服sales@dync.cc 35 | 36 | ## 二. SDK大事记 37 | ### 2.1 20年发布大事记 38 | 1. 2020.03.10 新版本SDK规划-能承载亿万级并发的架构; 39 | 1. 2020.04.10 SDK基础框架发布; 40 | 1. 2020.04.30 4.0.0bate版本发布:核心模块/音频模块/视频模块/音频路由控制模块/耳返/大小流模块/摄像头控制模块; 41 | 42 | ### 2.2 近期工作 43 | 44 | 1. 2020.10:跨房间连麦、旁路推流功能; 45 | 2. 2020.11:本地旁路&服务端旁路直播方案; 46 | 47 | ## 三. SDK集成方法介绍 48 | ### 3.1 系统要求 49 | * 最低支持iOS版本:iOS 9.0 50 | * 最低支持iPhone型号:iPhone 5s 51 | * 支持CPU架构: armv7s,arm64 52 | 53 | ### 3.2 下载工程 54 | 本SDK 提供如下列出获取方式: 55 | 56 | #### 3.2.1 从[github]() clone 57 | 58 | 目录结构如下所示: 59 | - Demo : Demo工程 ,演示本SDK的主要接口的使用 60 | - Release : SDK 61 | - README.md : SDK介绍 62 | 63 | ``` 64 | $ git clone https://github.com/anyRTC/ArIOSSDK.git 65 | ``` 66 | 67 | #### 3.2.2 使用Cocoapods 进行安装 68 | 通过Cocoapods 能将本SDK的静态库和代码下载到本地,只需要将类似如下语句中的一句加入你的Podfile: 69 | ```ruby 70 | pod 'ARtcKit_iOS' 71 | ``` 72 | 执行 pod install即可. 73 | 74 | ### 3.3 集成时的注意事项 75 | * 本framework暂时不支持bitcode 76 | * 本framework为动态库,虽然库的大小为20M+,但是最后链接后,对app的增量只有5M+ 77 | * 如果使用cocoapod官方库Trunk时,发现找不到最新版本的库, 需要先执行如下命令, 更新spec库 78 | ``` 79 | pod repo update 80 | ``` 81 | 82 | ## 四. 使用示例 83 | 请见github库: 84 | 85 | ## 五. 反馈与建议 86 | ### 5.1 联系方式 87 | 88 | * 主页:[anyRTC](https://www.anyrtc.io/) 89 | * Issues: 90 | * QQ技术交流群:554714720 91 | * 联系电话:021-65650071-816 92 | * Email:[hi@dync.cc](mailto:hi@dync.cc) 93 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /AR-iOS-Tutorial/LogViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LogViewController.swift 3 | // AR-iOS-Tutorial 4 | // 5 | // Created by 余生丶 on 2020/4/27. 6 | // Copyright © 2020 AR. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | struct Log { 12 | enum ContentType { 13 | case info, warning, error 14 | 15 | var color: UIColor { 16 | switch self { 17 | case .info: return UIColor(red: 74.0 / 255.0, green: 144.0 / 255.0, blue: 226.0 / 255.0, alpha: 1) 18 | case .warning: return UIColor(red: 254.0 / 255.0, green: 221.0 / 255.0, blue: 86.0 / 255.0, alpha: 1) 19 | case .error: return UIColor(red: 254.0 / 255.0, green: 55.0 / 255.0, blue: 95.0 / 255.0, alpha: 1) 20 | } 21 | } 22 | } 23 | 24 | var type: ContentType 25 | var content: String 26 | } 27 | 28 | class LogCell: UITableViewCell { 29 | @IBOutlet weak var content: UILabel! 30 | @IBOutlet weak var colorView: UIView! 31 | 32 | override func awakeFromNib() { 33 | super.awakeFromNib() 34 | colorView.layer.cornerRadius = 12.25 35 | } 36 | 37 | func update(_ log: Log) { 38 | content.text = log.content 39 | colorView.backgroundColor = log.type.color 40 | } 41 | } 42 | 43 | class LogViewController: UITableViewController { 44 | private lazy var list = [Log]() 45 | 46 | override func viewDidLoad() { 47 | super.viewDidLoad() 48 | tableView.rowHeight = UITableView.automaticDimension 49 | tableView.estimatedRowHeight = 44 50 | } 51 | 52 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 53 | return list.count 54 | } 55 | 56 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 57 | let cell = tableView.dequeueReusableCell(withIdentifier: "LogCell", for: indexPath) as! LogCell 58 | cell.update(list[indexPath.row]) 59 | return cell 60 | } 61 | } 62 | 63 | extension LogViewController { 64 | func log(type: Log.ContentType, content: String) { 65 | DispatchQueue.main.async { 66 | let log = Log(type: type, content: content) 67 | self.list.append(log) 68 | let index = IndexPath(row: self.list.count - 1, section: 0) 69 | self.tableView.insertRows(at: [index], with: .automatic) 70 | self.tableView.scrollToRow(at: index, at: .middle, animated: true) 71 | }; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial.xcodeproj/xcshareddata/xcschemes/AR-iOS-Tutorial.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Documents/Constants/ARClientRole.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARClientRole Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARClientRole Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARClientRole

79 | 80 | 81 |
82 |

直播场景里的用户角色

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARClientRole ) {
91 | 92 |    ARClientRoleBroadcaster = 1,
93 | 94 |    ARClientRoleAudience = 2,
95 | 96 | };
97 | 98 |
99 | 100 |
101 |

Constants

102 |
103 | 104 |
ARClientRoleBroadcaster
105 |
106 | 107 | 108 |
 1:主播
109 | 
110 | 111 | 112 | 113 | 114 | 115 | 116 |

117 | Declared In AREnumerates.h. 118 |

119 | 120 |
121 | 122 |
ARClientRoleAudience
123 |
124 | 125 | 126 |
 2:观众(默认)
127 | 
128 | 129 | 130 | 131 | 132 | 133 | 134 |

135 | Declared In AREnumerates.h. 136 |

137 | 138 |
139 | 140 |
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 |
151 |

Declared In

152 |

AREnumerates.h

153 |
154 | 155 | 156 | 157 | 158 | 159 |
160 | 161 |
162 | 170 |
171 |
172 |
173 |
174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /Documents/Constants/ARCameraDirection.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARCameraDirection Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARCameraDirection Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARCameraDirection

79 | 80 | 81 |
82 |

摄像头方向

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARCameraDirection ) {
91 | 92 |    ARCameraDirectionRear = 0,
93 | 94 |    ARCameraDirectionFront = 1,
95 | 96 | };
97 | 98 |
99 | 100 |
101 |

Constants

102 |
103 | 104 |
ARCameraDirectionRear
105 |
106 | 107 | 108 |
     0:使用后置摄像头
109 | 
110 | 111 | 112 | 113 | 114 | 115 | 116 |

117 | Declared In AREnumerates.h. 118 |

119 | 120 |
121 | 122 |
ARCameraDirectionFront
123 |
124 | 125 | 126 |
     1:使用前置摄像头
127 | 
128 | 129 | 130 | 131 | 132 | 133 | 134 |

135 | Declared In AREnumerates.h. 136 |

137 | 138 |
139 | 140 |
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 |
151 |

Declared In

152 |

AREnumerates.h

153 |
154 | 155 | 156 | 157 | 158 | 159 |
160 | 161 |
162 | 170 |
171 |
172 |
173 |
174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoStreamType.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoStreamType Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoStreamType Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoStreamType

79 | 80 | 81 |
82 |

选择高码率高分辨率视频或低码率低分辨率视频

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARVideoStreamType ) {
91 | 92 |    ARVideoStreamTypeHigh = 0,
93 | 94 |    ARVideoStreamTypeLow = 1,
95 | 96 | };
97 | 98 |
99 | 100 |
101 |

Constants

102 |
103 | 104 |
ARVideoStreamTypeHigh
105 |
106 | 107 | 108 |
0:高码率、高分辨率视频
109 | 
110 | 111 | 112 | 113 | 114 | 115 | 116 |

117 | Declared In AREnumerates.h. 118 |

119 | 120 |
121 | 122 |
ARVideoStreamTypeLow
123 |
124 | 125 | 126 |
1:低码率、低分辨率视频
127 | 
128 | 129 | 130 | 131 | 132 | 133 | 134 |

135 | Declared In AREnumerates.h. 136 |

137 | 138 |
139 | 140 |
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 |
151 |

Declared In

152 |

AREnumerates.h

153 |
154 | 155 | 156 | 157 | 158 | 159 |
160 | 161 |
162 | 170 |
171 |
172 |
173 |
174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /Documents/Constants/ARUserPriority.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARUserPriority Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARUserPriority Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARUserPriority

79 | 80 | 81 |
82 |

远端用户的需求优先级。如果将某个用户的优先级设为高,那么发给这个用户的音视频流的优先级就会高于其他用户。

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARUserPriority ) {
91 | 92 |    ARUserPriorityHigh = 50,
93 | 94 |    ARUserPriorityNormal = 100,
95 | 96 | };
97 | 98 |
99 | 100 |
101 |

Constants

102 |
103 | 104 |
ARUserPriorityHigh
105 |
106 | 107 | 108 |
 50:用户需求优先级为高
109 | 
110 | 111 | 112 | 113 | 114 | 115 | 116 |

117 | Declared In AREnumerates.h. 118 |

119 | 120 |
121 | 122 |
ARUserPriorityNormal
123 |
124 | 125 | 126 |
 100:(默认)用户需求优先级为正常
127 | 
128 | 129 | 130 | 131 | 132 | 133 | 134 |

135 | Declared In AREnumerates.h. 136 |

137 | 138 |
139 | 140 |
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 |
151 |

Declared In

152 |

AREnumerates.h

153 |
154 | 155 | 156 | 157 | 158 | 159 |
160 | 161 |
162 | 170 |
171 |
172 |
173 |
174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoRenderMode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoRenderMode Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoRenderMode Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoRenderMode

79 | 80 | 81 |
82 |

视频显示模式

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARVideoRenderMode ) {
91 | 92 |    ARVideoRenderModeHidden = 1,
93 | 94 |    ARVideoRenderModeFit = 2,
95 | 96 | };
97 | 98 |
99 | 100 |
101 |

Constants

102 |
103 | 104 |
ARVideoRenderModeHidden
105 |
106 | 107 | 108 |

1:优先保证视窗被填满。视频尺寸等比缩放,直至整个视窗被视频填满。如果视频长宽与显示窗口不同,则视频流会按照显示视窗的比例进行周边裁剪或图像拉伸后填满视窗。

109 | 110 | 111 | 112 | 113 | 114 | 115 |

116 | Declared In AREnumerates.h. 117 |

118 | 119 |
120 | 121 |
ARVideoRenderModeFit
122 |
123 | 124 | 125 |

2:优先保证视频内容全部显示。视频尺寸等比缩放,直至视频窗口的一边与视窗边框对齐。如果视频尺寸与显示视窗尺寸不一致,在保持长宽比的前提下,将视频进行缩放后填满视窗,缩放后的视频四周会有一圈黑边。

126 | 127 | 128 | 129 | 130 | 131 | 132 |

133 | Declared In AREnumerates.h. 134 |

135 | 136 |
137 | 138 |
139 |
140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 |
149 |

Declared In

150 |

AREnumerates.h

151 |
152 | 153 | 154 | 155 | 156 | 157 |
158 | 159 |
160 | 168 |
169 |
170 |
171 |
172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /Documents/css/scss/_layout.scss: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; 3 | } 4 | 5 | .clear { 6 | clear: both; 7 | } 8 | 9 | .clearfix { 10 | &:before, &:after { 11 | clear: both; 12 | display: table; 13 | content: ""; 14 | } 15 | } 16 | 17 | .xcode .hide-in-xcode { 18 | display: none; 19 | } 20 | 21 | body { 22 | font: 62.5% $body-font; 23 | background: $body-background; 24 | 25 | @media (max-width: $mobile-max-width) { 26 | background-color: $content-background; 27 | } 28 | } 29 | 30 | h1, h2, h3 { 31 | font-weight: 300; 32 | color: #808080; 33 | } 34 | 35 | h1 { 36 | font-size: 2em; 37 | color: #000; 38 | } 39 | 40 | h4 { 41 | font-size: 13px; 42 | line-height: 1.5; 43 | margin: 21px 0 0 0; 44 | } 45 | 46 | a { 47 | color: $tint-color; 48 | text-decoration: none; 49 | } 50 | 51 | pre, code { 52 | font-family: $code-font; 53 | word-wrap: break-word; 54 | } 55 | 56 | pre > code, .method-declaration code { 57 | display: inline-block; 58 | font-size: .85em; 59 | padding: 4px 0 4px 10px; 60 | border-left: 5px solid rgba(0, 155, 51, .2); 61 | 62 | &:before { 63 | content: "Objective-C"; 64 | display: block; 65 | 66 | font: 9px/1 $body-font; 67 | color: #009b33; 68 | text-transform: uppercase; 69 | letter-spacing: 2px; 70 | padding-bottom: 6px; 71 | } 72 | } 73 | 74 | pre > code { 75 | font-size: inherit; 76 | } 77 | 78 | table, th, td { 79 | border: 1px solid #e9e9e9; 80 | } 81 | 82 | table { 83 | width: 100%; 84 | } 85 | 86 | th, td { 87 | padding: 7px; 88 | 89 | > :first-child { 90 | margin-top: 0; 91 | } 92 | 93 | > :last-child { 94 | margin-bottom: 0; 95 | } 96 | } 97 | 98 | .container { 99 | @extend .clearfix; 100 | 101 | max-width: 980px; 102 | padding: 0 10px; 103 | margin: 0 auto; 104 | 105 | @media (max-width: $mobile-max-width) { 106 | padding: 0; 107 | } 108 | } 109 | 110 | header { 111 | position: fixed; 112 | top: 0; 113 | left: 0; 114 | width: 100%; 115 | z-index: 2; 116 | 117 | background: #414141; 118 | color: #fff; 119 | font-size: 1.1em; 120 | line-height: 25px; 121 | letter-spacing: .05em; 122 | 123 | #library-title { 124 | float: left; 125 | } 126 | 127 | #developer-home { 128 | float: right; 129 | } 130 | 131 | h1 { 132 | font-size: inherit; 133 | font-weight: inherit; 134 | margin: 0; 135 | } 136 | 137 | p { 138 | margin: 0; 139 | } 140 | 141 | h1, a { 142 | color: inherit; 143 | } 144 | 145 | @media (max-width: $mobile-max-width) { 146 | .container { 147 | padding: 0 10px; 148 | } 149 | } 150 | } 151 | 152 | aside { 153 | position: fixed; 154 | top: 25px; 155 | left: 0; 156 | width: 100%; 157 | height: 25px; 158 | z-index: 2; 159 | 160 | font-size: 1.1em; 161 | 162 | #header-buttons { 163 | background: rgba(255, 255, 255, .8); 164 | margin: 0 1px; 165 | padding: 0; 166 | list-style: none; 167 | text-align: right; 168 | line-height: 32px; 169 | 170 | li { 171 | display: inline-block; 172 | cursor: pointer; 173 | padding: 0 10px; 174 | } 175 | 176 | label, select { 177 | cursor: inherit; 178 | } 179 | 180 | #on-this-page { 181 | position: relative; 182 | 183 | .chevron { 184 | display: inline-block; 185 | width: 14px; 186 | height: 4px; 187 | position: relative; 188 | 189 | .chevy { 190 | background: #878787; 191 | height: 2px; 192 | position: absolute; 193 | width: 10px; 194 | 195 | &.chevron-left { 196 | left: 0; 197 | transform: rotateZ(45deg) scale(0.6); 198 | } 199 | 200 | &.chevron-right { 201 | right: 0; 202 | transform: rotateZ(-45deg) scale(0.6); 203 | } 204 | } 205 | } 206 | 207 | #jump-to { 208 | opacity: 0; 209 | font-size: 16px; 210 | 211 | position: absolute; 212 | top: 5px; 213 | left: 0; 214 | width: 100%; 215 | height: 100%; 216 | } 217 | } 218 | } 219 | } 220 | 221 | article { 222 | margin-top: 25px; 223 | 224 | #content { 225 | @extend .clearfix; 226 | 227 | background: $content-background; 228 | border: 1px solid $content-border; 229 | padding: 15px 25px 30px 25px; 230 | 231 | font-size: 1.4em; 232 | line-height: 1.45; 233 | 234 | position: relative; 235 | 236 | @media (max-width: $mobile-max-width) { 237 | padding: 15px 10px 20px 10px; 238 | border: none; 239 | } 240 | 241 | .navigation-top { 242 | position: absolute; 243 | top: 15px; 244 | right: 25px; 245 | } 246 | 247 | .title { 248 | margin: 21px 0 0 0; 249 | padding: 15px 0; 250 | } 251 | 252 | p { 253 | color: #414141; 254 | margin: 0 0 15px 0; 255 | } 256 | 257 | th, td { 258 | p:last-child { 259 | margin-bottom: 0; 260 | } 261 | } 262 | 263 | main { 264 | ul { 265 | list-style: none; 266 | margin-left: 24px; 267 | margin-bottom: 12px; 268 | padding: 0; 269 | 270 | li { 271 | position: relative; 272 | padding-left: 1.3em; 273 | 274 | &:before { 275 | content: "\02022"; 276 | 277 | color: #414141; 278 | font-size: 1.08em; 279 | line-height: 1; 280 | 281 | position: absolute; 282 | left: 0; 283 | padding-top: 2px; 284 | } 285 | } 286 | } 287 | } 288 | 289 | footer { 290 | @extend .clearfix; 291 | 292 | .footer-copyright { 293 | margin: 70px 25px 10px 0; 294 | } 295 | 296 | p { 297 | font-size: .71em; 298 | color: #a0a0a0; 299 | } 300 | } 301 | } 302 | } 303 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoMirrorMode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoMirrorMode Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoMirrorMode Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoMirrorMode

79 | 80 | 81 |
82 |

视频镜像模式

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARVideoMirrorMode ) {
91 | 92 |    ARVideoMirrorModeAuto = 0,
93 | 94 |    ARVideoMirrorModeEnabled = 1,
95 | 96 |    ARVideoMirrorModeDisabled = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARVideoMirrorModeAuto
107 |
108 | 109 | 110 |
 0: (Default) 由 SDK 决定镜像模式
111 | 
112 | 113 | 114 | 115 | 116 | 117 | 118 |

119 | Declared In AREnumerates.h. 120 |

121 | 122 |
123 | 124 |
ARVideoMirrorModeEnabled
125 |
126 | 127 | 128 |
 1: 启用镜像模式
129 | 
130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARVideoMirrorModeDisabled
143 |
144 | 145 | 146 |
 2: 关闭镜像模式
147 | 
148 | 149 | 150 | 151 | 152 | 153 | 154 |

155 | Declared In AREnumerates.h. 156 |

157 | 158 |
159 | 160 |
161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
171 |

Declared In

172 |

AREnumerates.h

173 |
174 | 175 | 176 | 177 | 178 | 179 |
180 | 181 |
182 | 190 |
191 |
192 |
193 |
194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /Documents/Constants/ARChannelProfile.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARChannelProfile Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARChannelProfile Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARChannelProfile

79 | 80 | 81 |
82 |

视频显示模式

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARChannelProfile ) {
91 | 92 |    ARChannelProfileCommunication = 0,
93 | 94 |    ARChannelProfileiveBroadcasting = 1,
95 | 96 |    ARChannelProfileGame = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARChannelProfileCommunication
107 |
108 | 109 | 110 |
 0: 通信场景
111 | 
112 | 113 | 114 | 115 | 116 | 117 | 118 |

119 | Declared In AREnumerates.h. 120 |

121 | 122 |
123 | 124 |
ARChannelProfileiveBroadcasting
125 |
126 | 127 | 128 |
 1: 直播场景
129 | 
130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARChannelProfileGame
143 |
144 | 145 | 146 |
 2: 游戏语音场景
147 | 
148 | 149 | 150 | 151 | 152 | 153 | 154 |

155 | Declared In AREnumerates.h. 156 |

157 | 158 |
159 | 160 |
161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
171 |

Declared In

172 |

AREnumerates.h

173 |
174 | 175 | 176 | 177 | 178 | 179 |
180 | 181 |
182 | 190 |
191 |
192 |
193 |
194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoQualityAdaptIndication.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoQualityAdaptIndication Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoQualityAdaptIndication Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoQualityAdaptIndication

79 | 80 | 81 |
82 |

自上次统计后本地视频质量的自适应情况(基于目标帧率和目标码率)

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARVideoQualityAdaptIndication ) {
91 | 92 |    ARVideoQualityAdaptNone = 0,
93 | 94 |    ARVideoQualityAdaptUpBandwidth = 1,
95 | 96 |    ARVideoQualityAdaptDownBandwidth = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARVideoQualityAdaptNone
107 |
108 | 109 | 110 |

0:本地视频质量不变

111 | 112 | 113 | 114 | 115 | 116 | 117 |

118 | Declared In AREnumerates.h. 119 |

120 | 121 |
122 | 123 |
ARVideoQualityAdaptUpBandwidth
124 |
125 | 126 | 127 |

1:因网络带宽增加,本地视频质量改善

128 | 129 | 130 | 131 | 132 | 133 | 134 |

135 | Declared In AREnumerates.h. 136 |

137 | 138 |
139 | 140 |
ARVideoQualityAdaptDownBandwidth
141 |
142 | 143 | 144 |

2:因网络带宽减少,本地视频质量变差

145 | 146 | 147 | 148 | 149 | 150 | 151 |

152 | Declared In AREnumerates.h. 153 |

154 | 155 |
156 | 157 |
158 |
159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 |
168 |

Declared In

169 |

AREnumerates.h

170 |
171 | 172 | 173 | 174 | 175 | 176 |
177 | 178 |
179 | 187 |
188 |
189 |
190 |
191 | 192 | 193 | 194 | -------------------------------------------------------------------------------- /Documents/Constants/ARDegradationPreference.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARDegradationPreference Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARDegradationPreference Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARDegradationPreference

79 | 80 | 81 |
82 |

带宽受限时的视频编码降级偏好

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARDegradationPreference ) {
91 | 92 |    ARDegradationMaintainQuality = 0,
93 | 94 |    ARDegradationMaintainFramerate = 1,
95 | 96 |    ARDegradationBalanced = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARDegradationMaintainQuality
107 |
108 | 109 | 110 |
 0:(默认)降低编码帧率以保证视频质量。
111 | 
112 | 113 | 114 | 115 | 116 | 117 | 118 |

119 | Declared In AREnumerates.h. 120 |

121 | 122 |
123 | 124 |
ARDegradationMaintainFramerate
125 |
126 | 127 | 128 |
 1:降低视频质量以保证编码帧率。
129 | 
130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARDegradationBalanced
143 |
144 | 145 | 146 |
 2:(预留参数,暂不支持)在编码帧率和视频质量之间保持平衡。
147 | 
148 | 149 | 150 | 151 | 152 | 153 | 154 |

155 | Declared In AREnumerates.h. 156 |

157 | 158 |
159 | 160 |
161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
171 |

Declared In

172 |

AREnumerates.h

173 |
174 | 175 | 176 | 177 | 178 | 179 |
180 | 181 |
182 | 190 |
191 |
192 |
193 |
194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /Documents/Constants/ARUserOfflineReason.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARUserOfflineReason Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARUserOfflineReason Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARUserOfflineReason

79 | 80 | 81 |
82 |

用户离线原因

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARUserOfflineReason ) {
91 | 92 |    ARUserOfflineReasonQuit = 0,
93 | 94 |    ARUserOfflineReasonDropped = 1,
95 | 96 |    ARUserOfflineReasonBecomeAudience = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARUserOfflineReasonQuit
107 |
108 | 109 | 110 |
 0:用户主动离开
111 | 
112 | 113 | 114 | 115 | 116 | 117 | 118 |

119 | Declared In AREnumerates.h. 120 |

121 | 122 |
123 | 124 |
ARUserOfflineReasonDropped
125 |
126 | 127 | 128 |
 1:因过长时间收不到对方数据包,超时掉线。注意:由于 SDK 使用的是不可靠通道,也有可能对方主动离开本方没收到对方离开消息而误判为超时掉线
129 | 
130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARUserOfflineReasonBecomeAudience
143 |
144 | 145 | 146 |
 2:用户身份从主播切换为观众时触发
147 | 
148 | 149 | 150 | 151 | 152 | 153 | 154 |

155 | Declared In AREnumerates.h. 156 |

157 | 158 |
159 | 160 |
161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
171 |

Declared In

172 |

AREnumerates.h

173 |
174 | 175 | 176 | 177 | 178 | 179 |
180 | 181 |
182 | 190 |
191 |
192 |
193 |
194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /Documents/Constants/ARStreamFallbackOptions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARStreamFallbackOptions Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARStreamFallbackOptions Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARStreamFallbackOptions

79 | 80 | 81 |
82 |

音视频流回退处理选项

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARStreamFallbackOptions ) {
91 | 92 |    ARStreamFallbackOptionDisabled = 0,
93 | 94 |    ARStreamFallbackOptionVideoStreamLow = 1,
95 | 96 |    ARStreamFallbackOptionAudioOnly = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARStreamFallbackOptionDisabled
107 |
108 | 109 | 110 |
 0:上行/下行网络较弱时,不对音视频流作回退处理,但不能保证音视频流的质量。
111 | 
112 | 113 | 114 | 115 | 116 | 117 | 118 |

119 | Declared In AREnumerates.h. 120 |

121 | 122 |
123 | 124 |
ARStreamFallbackOptionVideoStreamLow
125 |
126 | 127 | 128 |
 1:在下行网络条件较差的情况下,SDK 将接收视频小流(低分辨率、低码率视频s流)。此选项仅适用于 setRemoteSubscribeFallbackOption。
129 | 
130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARStreamFallbackOptionAudioOnly
143 |
144 | 145 | 146 |
 2:上行网络较弱时,只发布音频流;下行网络较弱时,先尝试只接收视频小流(低分辨率、低码率视频流),如果网络环境无法显示视频,则再回退到只接收音频流。
147 | 
148 | 149 | 150 | 151 | 152 | 153 | 154 |

155 | Declared In AREnumerates.h. 156 |

157 | 158 |
159 | 160 |
161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
171 |

Declared In

172 |

AREnumerates.h

173 |
174 | 175 | 176 | 177 | 178 | 179 |
180 | 181 |
182 | 190 |
191 |
192 |
193 |
194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoCodecType.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoCodecType Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoCodecType Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoCodecType

79 | 80 | 81 |
82 |

视频的编码类型

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARVideoCodecType ) {
91 | 92 |    ARVideoCodecTypeVP8 = 1,
93 | 94 |    ARVideoCodecTypeH264 = 2,
95 | 96 |    ARVideoCodecTypeEVP = 3,
97 | 98 |    ARVideoCodecTypeE264 = 4,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARVideoCodecTypeVP8
109 |
110 | 111 | 112 |
 1: VP8.
113 | 
114 | 115 | 116 | 117 | 118 | 119 | 120 |

121 | Declared In AREnumerates.h. 122 |

123 | 124 |
125 | 126 |
ARVideoCodecTypeH264
127 |
128 | 129 | 130 |
 2: (默认值)H.264。
131 | 
132 | 133 | 134 | 135 | 136 | 137 | 138 |

139 | Declared In AREnumerates.h. 140 |

141 | 142 |
143 | 144 |
ARVideoCodecTypeEVP
145 |
146 | 147 | 148 |
 3:  VP8.
149 | 
150 | 151 | 152 | 153 | 154 | 155 | 156 |

157 | Declared In AREnumerates.h. 158 |

159 | 160 |
161 | 162 |
ARVideoCodecTypeE264
163 |
164 | 165 | 166 |
 4:  H264.
167 | 
168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
181 |
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 |
191 |

Declared In

192 |

AREnumerates.h

193 |
194 | 195 | 196 | 197 | 198 | 199 |
200 | 201 |
202 | 210 |
211 |
212 |
213 |
214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoOutputOrientationMode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoOutputOrientationMode Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoOutputOrientationMode Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoOutputOrientationMode

79 | 80 | 81 |
82 |

视频输出方向模式

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARVideoOutputOrientationMode ) {
91 | 92 |    ARVideoOutputOrientationModeAdaptative = 0,
93 | 94 |    ARVideoOutputOrientationModeFixedLandscape = 1,
95 | 96 |    ARVideoOutputOrientationModeFixedPortrait = 2,
97 | 98 | };
99 | 100 |
101 | 102 |
103 |

Constants

104 |
105 | 106 |
ARVideoOutputOrientationModeAdaptative
107 |
108 | 109 | 110 |
 0:自适应布局(默认)
111 |  该模式下SDK输出的视频方向与采集到的视频方向一致。接收端会根据收到的视频旋转信息对视频进行旋转。该模式适用于接收端可以调整视频方向的场景:
112 |  * 如果采集的视频是横屏模式,则输出的视频也是横屏模式。
113 |  * 如果采集的视频是竖屏模式,则输出的视频也是竖屏模式。
114 | 
115 | 116 | 117 | 118 | 119 | 120 | 121 |

122 | Declared In AREnumerates.h. 123 |

124 | 125 |
126 | 127 |
ARVideoOutputOrientationModeFixedLandscape
128 |
129 | 130 | 131 |
 1:横屏布局
132 |  该模式下SDK固定输出人像(横屏)模式的视频。如果采集到的视频是竖屏模式,则视频编码器会对其进行裁剪。该模式适用于当接收端无法调整视频方向时,如使用旁路推流场景下。
133 | 
134 | 135 | 136 | 137 | 138 | 139 | 140 |

141 | Declared In AREnumerates.h. 142 |

143 | 144 |
145 | 146 |
ARVideoOutputOrientationModeFixedPortrait
147 |
148 | 149 | 150 |
 2:竖屏布局
151 |  该模式下SDK固定输出人像(竖屏)模式的视频。如果采集到的视频是横屏模式,则视频编码器会对其进行裁剪。该模式适用于当接收端无法调整视频方向时,如使用旁路推流场景下。
152 | 
153 | 154 | 155 | 156 | 157 | 158 | 159 |

160 | Declared In AREnumerates.h. 161 |

162 | 163 |
164 | 165 |
166 |
167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 |
176 |

Declared In

177 |

AREnumerates.h

178 |
179 | 180 | 181 | 182 | 183 | 184 |
185 | 186 |
187 | 195 |
196 |
197 |
198 |
199 | 200 | 201 | 202 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioLocalState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioLocalState Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioLocalState Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioLocalState

79 | 80 | 81 |
82 |

本地音频状态

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARAudioLocalState ) {
91 | 92 |    ARAudioLocalStateStopped = 0,
93 | 94 |    ARAudioLocalStateRecording = 1,
95 | 96 |    ARAudioLocalStateEncoding = 2,
97 | 98 |    ARAudioLocalStateFailed = 3,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARAudioLocalStateStopped
109 |
110 | 111 | 112 |
 0: 本地音频默认初始状态。
113 | 
114 | 115 | 116 | 117 | 118 | 119 | 120 |

121 | Declared In AREnumerates.h. 122 |

123 | 124 |
125 | 126 |
ARAudioLocalStateRecording
127 |
128 | 129 | 130 |
 1: 本地音频录制设备启动成功。
131 | 
132 | 133 | 134 | 135 | 136 | 137 | 138 |

139 | Declared In AREnumerates.h. 140 |

141 | 142 |
143 | 144 |
ARAudioLocalStateEncoding
145 |
146 | 147 | 148 |
 2: 本地音频首帧编码成功。
149 | 
150 | 151 | 152 | 153 | 154 | 155 | 156 |

157 | Declared In AREnumerates.h. 158 |

159 | 160 |
161 | 162 |
ARAudioLocalStateFailed
163 |
164 | 165 | 166 |
 3: 本地音频启动失败。
167 | 
168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
181 |
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 |
191 |

Declared In

192 |

AREnumerates.h

193 |
194 | 195 | 196 | 197 | 198 | 199 |
200 | 201 |
202 | 210 |
211 |
212 |
213 |
214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Documents/Constants/ARLocalVideoStreamState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARLocalVideoStreamState Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARLocalVideoStreamState Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARLocalVideoStreamState

79 | 80 | 81 |
82 |

本地视频状态

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARLocalVideoStreamState ) {
91 | 92 |    ARLocalVideoStreamStateStopped = 0,
93 | 94 |    ARLocalVideoStreamStateCapturing = 1,
95 | 96 |    ARLocalVideoStreamStateEncoding = 2,
97 | 98 |    ARLocalVideoStreamStateFailed = 3,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARLocalVideoStreamStateStopped
109 |
110 | 111 | 112 |

0: 本地视频默认初始状态。

113 | 114 | 115 | 116 | 117 | 118 | 119 |

120 | Declared In AREnumerates.h. 121 |

122 | 123 |
124 | 125 |
ARLocalVideoStreamStateCapturing
126 |
127 | 128 | 129 |

1: 本地视频采集设备启动成功。

130 | 131 | 132 | 133 | 134 | 135 | 136 |

137 | Declared In AREnumerates.h. 138 |

139 | 140 |
141 | 142 |
ARLocalVideoStreamStateEncoding
143 |
144 | 145 | 146 |

2: 本地视频首帧编码成功。

147 | 148 | 149 | 150 | 151 | 152 | 153 |

154 | Declared In AREnumerates.h. 155 |

156 | 157 |
158 | 159 |
ARLocalVideoStreamStateFailed
160 |
161 | 162 | 163 |

3: 本地视频启动失败。

164 | 165 | 166 | 167 | 168 | 169 | 170 |

171 | Declared In AREnumerates.h. 172 |

173 | 174 |
175 | 176 |
177 |
178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 |
187 |

Declared In

188 |

AREnumerates.h

189 |
190 | 191 | 192 | 193 | 194 | 195 |
196 | 197 |
198 | 206 |
207 |
208 |
209 |
210 | 211 | 212 | 213 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioMixingStateCode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioMixingStateCode Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioMixingStateCode Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioMixingStateCode

79 | 80 | 81 |
82 |

混音音乐文件状态

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARAudioMixingStateCode ) {
91 | 92 |    ARAudioMixingStatePlaying = 710,
93 | 94 |    ARAudioMixingStatePaused = 711,
95 | 96 |    ARAudioMixingStateStopped = 713,
97 | 98 |    ARAudioMixingStateFailed = 714,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARAudioMixingStatePlaying
109 |
110 | 111 | 112 |
 710: 视频设备模块:未知错误。
113 | 
114 | 115 | 116 | 117 | 118 | 119 | 120 |

121 | Declared In AREnumerates.h. 122 |

123 | 124 |
125 | 126 |
ARAudioMixingStatePaused
127 |
128 | 129 | 130 |
 711: 音乐文件暂停播放
131 | 
132 | 133 | 134 | 135 | 136 | 137 | 138 |

139 | Declared In AREnumerates.h. 140 |

141 | 142 |
143 | 144 |
ARAudioMixingStateStopped
145 |
146 | 147 | 148 |
 713:音乐文件停止播放
149 | 
150 | 151 | 152 | 153 | 154 | 155 | 156 |

157 | Declared In AREnumerates.h. 158 |

159 | 160 |
161 | 162 |
ARAudioMixingStateFailed
163 |
164 | 165 | 166 |
 714:音乐文件播放出错
167 | 
168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
181 |
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 |
191 |

Declared In

192 |

AREnumerates.h

193 |
194 | 195 | 196 | 197 | 198 | 199 |
200 | 201 |
202 | 210 |
211 |
212 |
213 |
214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /AR-iOS-Tutorial/ARVideoView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioMixingErrorCode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioMixingErrorCode Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioMixingErrorCode Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioMixingErrorCode

79 | 80 | 81 |
82 |

混音音乐文件错误码

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARAudioMixingErrorCode ) {
91 | 92 |    ARAudioMixingErrorCanNotOpen = 701,
93 | 94 |    ARAudioMixingErrorTooFrequentCall = 702,
95 | 96 |    ARAudioMixingErrorInterruptedEOF = 703,
97 | 98 |    ARAudioMixingErrorOK = 0,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARAudioMixingErrorCanNotOpen
109 |
110 | 111 | 112 |
 701: 音乐文件打开出错
113 | 
114 | 115 | 116 | 117 | 118 | 119 | 120 |

121 | Declared In AREnumerates.h. 122 |

123 | 124 |
125 | 126 |
ARAudioMixingErrorTooFrequentCall
127 |
128 | 129 | 130 |
 702: 音乐文件打开太频繁
131 | 
132 | 133 | 134 | 135 | 136 | 137 | 138 |

139 | Declared In AREnumerates.h. 140 |

141 | 142 |
143 | 144 |
ARAudioMixingErrorInterruptedEOF
145 |
146 | 147 | 148 |
 703: 音乐文件打开中断
149 | 
150 | 151 | 152 | 153 | 154 | 155 | 156 |

157 | Declared In AREnumerates.h. 158 |

159 | 160 |
161 | 162 |
ARAudioMixingErrorOK
163 |
164 | 165 | 166 |
 0: 音乐文件状态正常
167 | 
168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
181 |
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 |
191 |

Declared In

192 |

AREnumerates.h

193 |
194 | 195 | 196 | 197 | 198 | 199 |
200 | 201 |
202 | 210 |
211 |
212 |
213 |
214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Documents/Classes/ARCameraCapturerConfiguration.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARCameraCapturerConfiguration Class Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 77 | 78 |
79 |
80 |
81 |
82 |

ARCameraCapturerConfiguration Class Reference

83 | 84 | 85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 |
Inherits fromNSObject
Declared inARObjects.h
94 | 95 | 96 | 97 | 98 |
99 | 100 |

Overview

101 |

摄像头采集偏好设置

102 |
103 | 104 | 105 | 106 | 107 | 108 |
109 | 110 | 111 | 112 | 113 | 114 | 115 |
116 |
117 | 118 |

  preference 119 |

120 | 121 |
122 |
123 | 124 |
125 | 126 | 127 |
128 |

摄像头采集偏好,详见 ARCameraCaptureOutputPreference

129 |
130 | 131 | 132 | 133 |
@property (assign, nonatomic) ARCameraCaptureOutputPreference preference
134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 |
144 |

Discussion

145 |

摄像头采集偏好,详见 ARCameraCaptureOutputPreference

146 |
147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 |
155 |

Declared In

156 |

ARObjects.h

157 |
158 | 159 | 160 |
161 |
162 |
163 | 164 |

  cameraDirection 165 |

166 | 167 |
168 |
169 | 170 |
171 | 172 | 173 |
174 |

摄像头方向,详见 ARCameraDirection:

175 |
176 | 177 | 178 | 179 |
@property (assign, nonatomic) ARCameraDirection cameraDirection
180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 |
190 |

Discussion

191 |

摄像头方向,详见 ARCameraDirection:

192 | 193 |
    194 |
  • ARCameraDirectionRear: 使用后置摄像头
  • 195 |
  • ARCameraDirectionFront: 使用前置摄像头
  • 196 |
197 | 198 |
199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 |
207 |

Declared In

208 |

ARObjects.h

209 |
210 | 211 | 212 |
213 |
214 |
215 |
216 | 217 |
218 | 219 | 220 | 221 | 222 | 223 | 224 |
225 | 226 |
227 | 235 |
236 |
237 |
238 |
239 | 240 | 241 | 242 | -------------------------------------------------------------------------------- /Documents/Constants/ARCameraCaptureOutputPreference.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARCameraCaptureOutputPreference Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARCameraCaptureOutputPreference Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARCameraCaptureOutputPreference

79 | 80 | 81 |
82 |

摄像头采集偏好

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARCameraCaptureOutputPreference ) {
91 | 92 |    ARCameraCaptureOutputPreferenceAuto = 0,
93 | 94 |    ARCameraCaptureOutputPreferencePerformance = 1,
95 | 96 |    ARCameraCaptureOutputPreferencePreview = 2,
97 | 98 |    ARCameraCaptureOutputPreferenceUnkown = 3,
99 | 100 | };
101 | 102 |
103 | 104 |
105 |

Constants

106 |
107 | 108 |
ARCameraCaptureOutputPreferenceAuto
109 |
110 | 111 | 112 |
 0:(默认)自动调整采集参数。SDK 根据实际的采集设备性能及网络情况,选择合适的摄像头输出参数,在设备性能及视频预览质量之间,维持平衡。
113 | 
114 | 115 | 116 | 117 | 118 | 119 | 120 |

121 | Declared In AREnumerates.h. 122 |

123 | 124 |
125 | 126 |
ARCameraCaptureOutputPreferencePerformance
127 |
128 | 129 | 130 |
 1:优先保证设备性能。SDK 根据用户在 setVideoEncoderConfiguration 中设置编码器的分辨率和帧率,选择最接近的摄像头输出参数,从而保证设备性能。在这种情况下,预览质量接近于编码器的输出质量
131 | 
132 | 133 | 134 | 135 | 136 | 137 | 138 |

139 | Declared In AREnumerates.h. 140 |

141 | 142 |
143 | 144 |
ARCameraCaptureOutputPreferencePreview
145 |
146 | 147 | 148 |
 2:优先保证视频预览质量。SDK 选择较高的摄像头输出参数,从而提高预览视频的质量。在这种情况下,会消耗更多的 CPU 及内存做视频前处理。
149 | 
150 | 151 | 152 | 153 | 154 | 155 | 156 |

157 | Declared In AREnumerates.h. 158 |

159 | 160 |
161 | 162 |
ARCameraCaptureOutputPreferenceUnkown
163 |
164 | 165 | 166 |
 3:仅供内部使用
167 | 
168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
181 |
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 |
191 |

Declared In

192 |

AREnumerates.h

193 |
194 | 195 | 196 | 197 | 198 | 199 |
200 | 201 |
202 | 210 |
211 |
212 |
213 |
214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Documents/Constants/ARConnectionStateType.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARConnectionStateType Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARConnectionStateType Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARConnectionStateType

79 | 80 | 81 |
82 |

网络连接状态类型

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARConnectionStateType ) {
91 | 92 |    ARConnectionStateDisconnected = 1,
93 | 94 |    ARConnectionStateConnecting = 2,
95 | 96 |    ARConnectionStateConnected = 3,
97 | 98 |    ARConnectionStateReconnecting = 4,
99 | 100 |    ARConnectionStateFailed = 5,
101 | 102 | };
103 | 104 |
105 | 106 |
107 |

Constants

108 |
109 | 110 |
ARConnectionStateDisconnected
111 |
112 | 113 | 114 |
 1:网络连接断开
115 | 
116 | 117 | 118 | 119 | 120 | 121 | 122 |

123 | Declared In AREnumerates.h. 124 |

125 | 126 |
127 | 128 |
ARConnectionStateConnecting
129 |
130 | 131 | 132 |
 2:建立网络连接中
133 | 
134 | 135 | 136 | 137 | 138 | 139 | 140 |

141 | Declared In AREnumerates.h. 142 |

143 | 144 |
145 | 146 |
ARConnectionStateConnected
147 |
148 | 149 | 150 |
 3:网络已连接
151 | 
152 | 153 | 154 | 155 | 156 | 157 | 158 |

159 | Declared In AREnumerates.h. 160 |

161 | 162 |
163 | 164 |
ARConnectionStateReconnecting
165 |
166 | 167 | 168 |
 4:重新建立网络连接中
169 | 
170 | 171 | 172 | 173 | 174 | 175 | 176 |

177 | Declared In AREnumerates.h. 178 |

179 | 180 |
181 | 182 |
ARConnectionStateFailed
183 |
184 | 185 | 186 |
 5:网络连接失败
187 | 
188 | 189 | 190 | 191 | 192 | 193 | 194 |

195 | Declared In AREnumerates.h. 196 |

197 | 198 |
199 | 200 |
201 |
202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 |
211 |

Declared In

212 |

AREnumerates.h

213 |
214 | 215 | 216 | 217 | 218 | 219 |
220 | 221 |
222 | 230 |
231 |
232 |
233 |
234 | 235 | 236 | 237 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioRemoteState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioRemoteState Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioRemoteState Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioRemoteState

79 | 80 | 81 |
82 |

远端音频状态

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARAudioRemoteState ) {
91 | 92 |    ARAudioRemoteStateStopped = 0,
93 | 94 |    ARAudioRemoteStateStarting = 1,
95 | 96 |    ARAudioRemoteStateDecoding = 2,
97 | 98 |    ARAudioRemoteStateFrozen = 3,
99 | 100 |    ARAudioRemoteStateFailed = 4,
101 | 102 | };
103 | 104 |
105 | 106 |
107 |

Constants

108 |
109 | 110 |
ARAudioRemoteStateStopped
111 |
112 | 113 | 114 |
 0: 远端音频流默认初始状态。在 ARAudioRemoteReasonLocalMuted(3)、ARAudioRemoteReasonRemoteMuted(5) 或 ARAudioRemoteReasonRemoteOffline(7) 的情况下,会报告该状态。
115 | 
116 | 117 | 118 | 119 | 120 | 121 | 122 |

123 | Declared In AREnumerates.h. 124 |

125 | 126 |
127 | 128 |
ARAudioRemoteStateStarting
129 |
130 | 131 | 132 |
 1: 本地用户已接收远端音频首包。
133 | 
134 | 135 | 136 | 137 | 138 | 139 | 140 |

141 | Declared In AREnumerates.h. 142 |

143 | 144 |
145 | 146 |
ARAudioRemoteStateDecoding
147 |
148 | 149 | 150 |
 2: 远端音频流正在解码,正常播放。在 ARAudioRemoteReasonNetworkRecovery(2)、ARAudioRemoteReasonLocalUnmuted(4) 或 ARAudioRemoteReasonRemoteUnmuted(6) 的情况下,会报告该状态。
151 | 
152 | 153 | 154 | 155 | 156 | 157 | 158 |

159 | Declared In AREnumerates.h. 160 |

161 | 162 |
163 | 164 |
ARAudioRemoteStateFrozen
165 |
166 | 167 | 168 |
 3: 远端音频流卡顿。在 ARAudioRemoteReasonNetworkCongestion(1) 的情况下,会报告该状态。
169 | 
170 | 171 | 172 | 173 | 174 | 175 | 176 |

177 | Declared In AREnumerates.h. 178 |

179 | 180 |
181 | 182 |
ARAudioRemoteStateFailed
183 |
184 | 185 | 186 |
 4: 远端音频流播放失败。在 ARAudioRemoteReasonInternal(0) 的情况下,会报告该状态。
187 | 
188 | 189 | 190 | 191 | 192 | 193 | 194 |

195 | Declared In AREnumerates.h. 196 |

197 | 198 |
199 | 200 |
201 |
202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 |
211 |

Declared In

212 |

AREnumerates.h

213 |
214 | 215 | 216 | 217 | 218 | 219 |
220 | 221 |
222 | 230 |
231 |
232 |
233 |
234 | 235 | 236 | 237 | -------------------------------------------------------------------------------- /Documents/Classes/ARtcLocalAudioStats.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARtcLocalAudioStats Class Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 79 | 80 |
81 |
82 |
83 |
84 |

ARtcLocalAudioStats Class Reference

85 | 86 | 87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 |
Inherits fromNSObject
Declared inARObjects.h
96 | 97 | 98 | 99 | 100 |
101 | 102 |

Overview

103 |

本地音频统计信息

104 |
105 | 106 | 107 | 108 | 109 | 110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 |
118 |
119 | 120 |

  numChannels 121 |

122 | 123 |
124 |
125 | 126 |
127 | 128 | 129 |
130 |

声道数。

131 |
132 | 133 | 134 | 135 |
@property (assign, nonatomic) NSUInteger numChannels
136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 |
146 |

Discussion

147 |

声道数。

148 |
149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 |
157 |

Declared In

158 |

ARObjects.h

159 |
160 | 161 | 162 |
163 |
164 |
165 | 166 |

  sentSampleRate 167 |

168 | 169 |
170 |
171 | 172 |
173 | 174 | 175 |
176 |

发送的采样率,单位为 Hz。

177 |
178 | 179 | 180 | 181 |
@property (assign, nonatomic) NSUInteger sentSampleRate
182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 |
192 |

Discussion

193 |

发送的采样率,单位为 Hz。

194 |
195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 |
203 |

Declared In

204 |

ARObjects.h

205 |
206 | 207 | 208 |
209 |
210 |
211 | 212 |

  sentBitrate 213 |

214 | 215 |
216 |
217 | 218 |
219 | 220 | 221 |
222 |

发送码率的平均值,单位为 Kbps。

223 |
224 | 225 | 226 | 227 |
@property (assign, nonatomic) NSUInteger sentBitrate
228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 |
238 |

Discussion

239 |

发送码率的平均值,单位为 Kbps。

240 |
241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 |
249 |

Declared In

250 |

ARObjects.h

251 |
252 | 253 | 254 |
255 |
256 |
257 |
258 | 259 |
260 | 261 | 262 | 263 | 264 | 265 | 266 |
267 | 268 |
269 | 277 |
278 |
279 |
280 |
281 | 282 | 283 | 284 | -------------------------------------------------------------------------------- /Documents/Constants/ARLogFilter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARLogFilter Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARLogFilter Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARLogFilter

79 | 80 | 81 |
82 |

日志过滤分级

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARLogFilter ) {
91 | 92 |    ARLogFilterOff = 0,
93 | 94 |    ARLogFilterDebug = 0 x080f,
95 | 96 |    ARLogFilterInfo = 0 x000f,
97 | 98 |    ARLogFilterWarning = 0 x000e,
99 | 100 |    ARLogFilterError = 0 x000c,
101 | 102 |    ARLogFilterCritical = 0 x0008,
103 | 104 | };
105 | 106 |
107 | 108 |
109 |

Constants

110 |
111 | 112 |
ARLogFilterOff
113 |
114 | 115 | 116 |
 不输出日志信息
117 | 
118 | 119 | 120 | 121 | 122 | 123 | 124 |

125 | Declared In AREnumerates.h. 126 |

127 | 128 |
129 | 130 |
ARLogFilterDebug
131 |
132 | 133 | 134 |
 输出所有 API 日志信息。如果你想获取最完整的日志,可以将日志级别设为该等级。
135 | 
136 | 137 | 138 | 139 | 140 | 141 | 142 |

143 | Declared In AREnumerates.h. 144 |

145 | 146 |
147 | 148 |
ARLogFilterInfo
149 |
150 | 151 | 152 |
 输出 CRITICAL、ERROR、WARNING 和 INFO 级别的日志信息。我们推荐你将日志级别设为该等级。
153 | 
154 | 155 | 156 | 157 | 158 | 159 | 160 |

161 | Declared In AREnumerates.h. 162 |

163 | 164 |
165 | 166 |
ARLogFilterWarning
167 |
168 | 169 | 170 |
 输出 CRITICAL、ERROR 和 WARNING 级别的日志信息
171 | 
172 | 173 | 174 | 175 | 176 | 177 | 178 |

179 | Declared In AREnumerates.h. 180 |

181 | 182 |
183 | 184 |
ARLogFilterError
185 |
186 | 187 | 188 |
 输出 CRITICAL 和 ERROR 级别的日志信息
189 | 
190 | 191 | 192 | 193 | 194 | 195 | 196 |

197 | Declared In AREnumerates.h. 198 |

199 | 200 |
201 | 202 |
ARLogFilterCritical
203 |
204 | 205 | 206 |
 输出 CRITICAL 级别的日志信息
207 | 
208 | 209 | 210 | 211 | 212 | 213 | 214 |

215 | Declared In AREnumerates.h. 216 |

217 | 218 |
219 | 220 |
221 |
222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 |
231 |

Declared In

232 |

AREnumerates.h

233 |
234 | 235 | 236 | 237 | 238 | 239 |
240 | 241 |
242 | 250 |
251 |
252 |
253 |
254 | 255 | 256 | 257 | -------------------------------------------------------------------------------- /Documents/Constants/ARVideoRemoteState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARVideoRemoteState Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARVideoRemoteState Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARVideoRemoteState

79 | 80 | 81 |
82 |

远端视频流状态

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARVideoRemoteState ) {
91 | 92 |    ARVideoRemoteStateStopped = 0,
93 | 94 |    ARVideoRemoteStateStarting = 1,
95 | 96 |    ARVideoRemoteStateDecoding = 2,
97 | 98 |    ARVideoRemoteStateFrozen = 3,
99 | 100 |    ARVideoRemoteStateFailed = 4,
101 | 102 | };
103 | 104 |
105 | 106 |
107 |

Constants

108 |
109 | 110 |
ARVideoRemoteStateStopped
111 |
112 | 113 | 114 |
 0: 远端视频默认初始状态。在 ARVideoRemoteStateReasonLocalMuted(3)、ARVideoRemoteStateReasonRemoteMuted(5) 或 ARVideoRemoteStateReasonRemoteMuted(7) 的情况下,会报告该状态。
115 | 
116 | 117 | 118 | 119 | 120 | 121 | 122 |

123 | Declared In AREnumerates.h. 124 |

125 | 126 |
127 | 128 |
ARVideoRemoteStateStarting
129 |
130 | 131 | 132 |
 1: 本地用户已接收远端视频首包。
133 | 
134 | 135 | 136 | 137 | 138 | 139 | 140 |

141 | Declared In AREnumerates.h. 142 |

143 | 144 |
145 | 146 |
ARVideoRemoteStateDecoding
147 |
148 | 149 | 150 |
 2: 远端视频流正在解码,正常播放。在 ARVideoRemoteStateReasonNetworkRecovery(2)、ARVideoRemoteStateReasonNetworkRecovery(4)、ARVideoRemoteStateReasonRemoteUnmuted(6) 或 ARVideoRemoteStateReasonAudioFallbackRecovery(9) 的情况下,会报告该状态。
151 | 
152 | 153 | 154 | 155 | 156 | 157 | 158 |

159 | Declared In AREnumerates.h. 160 |

161 | 162 |
163 | 164 |
ARVideoRemoteStateFrozen
165 |
166 | 167 | 168 |
 3: 远端视频流卡顿。在 ARVideoRemoteStateReasonNetworkCongestion(1) 或 ARVideoRemoteStateReasonAudioFallback(8) 的情况下,会报告该状态。
169 | 
170 | 171 | 172 | 173 | 174 | 175 | 176 |

177 | Declared In AREnumerates.h. 178 |

179 | 180 |
181 | 182 |
ARVideoRemoteStateFailed
183 |
184 | 185 | 186 |
 4: 远端视频流播放失败。在 ARVideoRemoteStateReasonInternal(0) 的情况下,会报告该状态。
187 | 
188 | 189 | 190 | 191 | 192 | 193 | 194 |

195 | Declared In AREnumerates.h. 196 |

197 | 198 |
199 | 200 |
201 |
202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 |
211 |

Declared In

212 |

AREnumerates.h

213 |
214 | 215 | 216 | 217 | 218 | 219 |
220 | 221 |
222 | 230 |
231 |
232 |
233 |
234 | 235 | 236 | 237 | -------------------------------------------------------------------------------- /Documents/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | AriOSSDK 4.0.0 Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 36 | 37 |
38 |
39 |
40 |
41 |

AriOSSDK 4.0.0 Reference

42 | 43 | 44 | 45 |
46 | 47 | 48 | 49 |
50 |

Class References

51 | 74 |
75 | 76 | 77 | 78 |
79 | 80 |

Protocol References

81 | 86 | 87 | 88 | 89 |

Constant References

90 | 163 | 164 | 165 | 166 |
167 | 168 |
169 | 170 |
171 | 179 |
180 |
181 |
182 |
183 |
184 | 185 | 186 | 187 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioScenario.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioScenario Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioScenario Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioScenario

79 | 80 | 81 |
82 |

设置音频应用场景

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARAudioScenario ) {
91 | 92 |    ARAudioScenarioDefault = 0,
93 | 94 |    ARAudioScenarioChatRoomEntertainment = 1,
95 | 96 |    ARAudioScenarioEducation = 2,
97 | 98 |    ARAudioScenarioGameStreaming = 3,
99 | 100 |    ARAudioScenarioShowRoom = 4,
101 | 102 |    ARAudioScenarioChatRoomGaming = 5,
103 | 104 | };
105 | 106 |
107 | 108 |
109 |

Constants

110 |
111 | 112 |
ARAudioScenarioDefault
113 |
114 | 115 | 116 |
 0: 默认设置 
117 | 
118 | 119 | 120 | 121 | 122 | 123 | 124 |

125 | Declared In AREnumerates.h. 126 |

127 | 128 |
129 | 130 |
ARAudioScenarioChatRoomEntertainment
131 |
132 | 133 | 134 |
 1: 娱乐应用,需要频繁上下麦的场景
135 | 
136 | 137 | 138 | 139 | 140 | 141 | 142 |

143 | Declared In AREnumerates.h. 144 |

145 | 146 |
147 | 148 |
ARAudioScenarioEducation
149 |
150 | 151 | 152 |
 2: 教育应用,流畅度和稳定性优先
153 | 
154 | 155 | 156 | 157 | 158 | 159 | 160 |

161 | Declared In AREnumerates.h. 162 |

163 | 164 |
165 | 166 |
ARAudioScenarioGameStreaming
167 |
168 | 169 | 170 |
 3: 游戏直播应用,需要外放游戏音效也直播出去的场景
171 | 
172 | 173 | 174 | 175 | 176 | 177 | 178 |

179 | Declared In AREnumerates.h. 180 |

181 | 182 |
183 | 184 |
ARAudioScenarioShowRoom
185 |
186 | 187 | 188 |
 4: 秀场应用,音质优先和更好的专业外设支持
189 | 
190 | 191 | 192 | 193 | 194 | 195 | 196 |

197 | Declared In AREnumerates.h. 198 |

199 | 200 |
201 | 202 |
ARAudioScenarioChatRoomGaming
203 |
204 | 205 | 206 |
 5: 游戏开黑
207 | 
208 | 209 | 210 | 211 | 212 | 213 | 214 |

215 | Declared In AREnumerates.h. 216 |

217 | 218 |
219 | 220 |
221 |
222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 |
231 |

Declared In

232 |

AREnumerates.h

233 |
234 | 235 | 236 | 237 | 238 | 239 |
240 | 241 |
242 | 250 |
251 |
252 |
253 |
254 | 255 | 256 | 257 | -------------------------------------------------------------------------------- /Documents/Constants/ARAudioLocalError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARAudioLocalError Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARAudioLocalError Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARAudioLocalError

79 | 80 | 81 |
82 |

本地音频出错原因

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSUInteger, ARAudioLocalError ) {
91 | 92 |    ARAudioLocalErrorOk = 0,
93 | 94 |    ARAudioLocalErrorFailure = 1,
95 | 96 |    ARAudioLocalErrorDeviceNoPermission = 2,
97 | 98 |    ARAudioLocalErrorDeviceBusy = 3,
99 | 100 |    ARAudioLocalErrorRecordFailure = 4,
101 | 102 |    ARAudioLocalErrorEncodeFailure = 5,
103 | 104 | };
105 | 106 |
107 | 108 |
109 |

Constants

110 |
111 | 112 |
ARAudioLocalErrorOk
113 |
114 | 115 | 116 |
 0: 本地音频状态正常。
117 | 
118 | 119 | 120 | 121 | 122 | 123 | 124 |

125 | Declared In AREnumerates.h. 126 |

127 | 128 |
129 | 130 |
ARAudioLocalErrorFailure
131 |
132 | 133 | 134 |
 1: 本地音频出错原因不明确。
135 | 
136 | 137 | 138 | 139 | 140 | 141 | 142 |

143 | Declared In AREnumerates.h. 144 |

145 | 146 |
147 | 148 |
ARAudioLocalErrorDeviceNoPermission
149 |
150 | 151 | 152 |
 2: 没有权限启动本地音频录制设备。
153 | 
154 | 155 | 156 | 157 | 158 | 159 | 160 |

161 | Declared In AREnumerates.h. 162 |

163 | 164 |
165 | 166 |
ARAudioLocalErrorDeviceBusy
167 |
168 | 169 | 170 |
 3: 本地音频录制设备已经在使用中。
171 | 
172 | 173 | 174 | 175 | 176 | 177 | 178 |

179 | Declared In AREnumerates.h. 180 |

181 | 182 |
183 | 184 |
ARAudioLocalErrorRecordFailure
185 |
186 | 187 | 188 |
 4: 本地音频录制失败,建议你检查录制设备是否正常工作。
189 | 
190 | 191 | 192 | 193 | 194 | 195 | 196 |

197 | Declared In AREnumerates.h. 198 |

199 | 200 |
201 | 202 |
ARAudioLocalErrorEncodeFailure
203 |
204 | 205 | 206 |
 5: 本地音频编码失败。
207 | 
208 | 209 | 210 | 211 | 212 | 213 | 214 |

215 | Declared In AREnumerates.h. 216 |

217 | 218 |
219 | 220 |
221 |
222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 |
231 |

Declared In

232 |

AREnumerates.h

233 |
234 | 235 | 236 | 237 | 238 | 239 |
240 | 241 |
242 | 250 |
251 |
252 |
253 |
254 | 255 | 256 | 257 | -------------------------------------------------------------------------------- /Documents/Constants/ARLocalVideoStreamError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ARLocalVideoStreamError Constants Reference 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

17 | AriOSSDK 4.0.0 18 |

19 | 20 |

21 | anyRTC 22 |

23 | 24 |
25 |
26 | 27 | 57 | 58 |
59 |
60 |
61 |
62 |

ARLocalVideoStreamError Constants Reference

63 | 64 | 65 |
66 | 67 | 68 | 69 | 70 |
Declared inAREnumerates.h
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |

ARLocalVideoStreamError

79 | 80 | 81 |
82 |

本地视频出错原因

83 |
84 | 85 | 86 |
87 | 88 | 89 |

Definition

90 | typedef NS_ENUM(NSInteger, ARLocalVideoStreamError ) {
91 | 92 |    ARLocalVideoStreamErrorOK = 0,
93 | 94 |    ARLocalVideoStreamErrorFailure = 1,
95 | 96 |    ARLocalVideoStreamErrorDeviceNoPermission = 2,
97 | 98 |    ARLocalVideoStreamErrorDeviceBusy = 3,
99 | 100 |    ARLocalVideoStreamErrorCaptureFailure = 4,
101 | 102 |    ARLocalVideoStreamErrorEncodeFailure = 5,
103 | 104 | };
105 | 106 |
107 | 108 |
109 |

Constants

110 |
111 | 112 |
ARLocalVideoStreamErrorOK
113 |
114 | 115 | 116 |

0: 本地视频状态正常。

117 | 118 | 119 | 120 | 121 | 122 | 123 |

124 | Declared In AREnumerates.h. 125 |

126 | 127 |
128 | 129 |
ARLocalVideoStreamErrorFailure
130 |
131 | 132 | 133 |

1: 出错原因不明确。

134 | 135 | 136 | 137 | 138 | 139 | 140 |

141 | Declared In AREnumerates.h. 142 |

143 | 144 |
145 | 146 |
ARLocalVideoStreamErrorDeviceNoPermission
147 |
148 | 149 | 150 |

2: 没有权限启动本地视频采集设备。

151 | 152 | 153 | 154 | 155 | 156 | 157 |

158 | Declared In AREnumerates.h. 159 |

160 | 161 |
162 | 163 |
ARLocalVideoStreamErrorDeviceBusy
164 |
165 | 166 | 167 |

3: 本地视频采集设备正在使用中。

168 | 169 | 170 | 171 | 172 | 173 | 174 |

175 | Declared In AREnumerates.h. 176 |

177 | 178 |
179 | 180 |
ARLocalVideoStreamErrorCaptureFailure
181 |
182 | 183 | 184 |

4: 本地视频采集失败,建议检查采集设备是否正常工作。

185 | 186 | 187 | 188 | 189 | 190 | 191 |

192 | Declared In AREnumerates.h. 193 |

194 | 195 |
196 | 197 |
ARLocalVideoStreamErrorEncodeFailure
198 |
199 | 200 | 201 |

5: 本地视频编码失败。

202 | 203 | 204 | 205 | 206 | 207 | 208 |

209 | Declared In AREnumerates.h. 210 |

211 | 212 |
213 | 214 |
215 |
216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 |
225 |

Declared In

226 |

AREnumerates.h

227 |
228 | 229 | 230 | 231 | 232 | 233 |
234 | 235 |
236 | 244 |
245 |
246 |
247 |
248 | 249 | 250 | 251 | --------------------------------------------------------------------------------