Skip to content

Commit 5819dda

Browse files
author
zhaoyongqiang
committed
添加私有化环境
1 parent 1d7f051 commit 5819dda

10 files changed

Lines changed: 69 additions & 11 deletions

File tree

iOS/APIExample/Common/Utils/Util.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2022 Agora Corp. All rights reserved.
77
//
88

9-
import UIKit
9+
import Foundation
1010

1111
enum Util {
1212
static func dicValueString(_ dic: [String: Any]) ->String?{

macOS/APIExample.xcodeproj/project.pbxproj

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
67CB2ECC27EADD6C00CB19D2 /* SpatialAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67CB2ECB27EADD6C00CB19D2 /* SpatialAudio.swift */; };
9595
8B6F4EAD276ECC370097E67E /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8B6F4EAF276ECC370097E67E /* Localizable.strings */; };
9696
8B733B8C267B1C0B00CC3DE3 /* bg.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8B733B8B267B1C0B00CC3DE3 /* bg.jpg */; };
97+
E789AB06286999C500851463 /* LocalAccess.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E789AB02286999C500851463 /* LocalAccess.storyboard */; };
98+
E789AB07286999C500851463 /* LocalAccess.swift in Sources */ = {isa = PBXBuildFile; fileRef = E789AB04286999C500851463 /* LocalAccess.swift */; };
99+
E789AB0C2869A66F00851463 /* Util.swift in Sources */ = {isa = PBXBuildFile; fileRef = E789AB0B2869A66F00851463 /* Util.swift */; };
97100
EBDD0209B272C276B21B6270 /* Pods_APIExample_APIExampleUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC2BAB0AC82140B7CEEA31DA /* Pods_APIExample_APIExampleUITests.framework */; };
98101
/* End PBXBuildFile section */
99102

@@ -125,6 +128,15 @@
125128
name = "Embed Frameworks";
126129
runOnlyForDeploymentPostprocessing = 0;
127130
};
131+
E789AAFE2869984100851463 /* CopyFiles */ = {
132+
isa = PBXCopyFilesBuildPhase;
133+
buildActionMask = 2147483647;
134+
dstPath = "";
135+
dstSubfolderSpec = 7;
136+
files = (
137+
);
138+
runOnlyForDeploymentPostprocessing = 0;
139+
};
128140
/* End PBXCopyFilesBuildPhase section */
129141

130142
/* Begin PBXFileReference section */
@@ -245,6 +257,10 @@
245257
B53F41CB5AC550EA43C47363 /* Pods-APIExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-APIExampleTests/Pods-APIExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
246258
B91A67063F1DBE9F621B114C /* Pods-APIExample-APIExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIExample-APIExampleUITests.release.xcconfig"; path = "Target Support Files/Pods-APIExample-APIExampleUITests/Pods-APIExample-APIExampleUITests.release.xcconfig"; sourceTree = "<group>"; };
247259
DC004435A834772C836F5662 /* Pods-APIExample-APIExampleUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIExample-APIExampleUITests.debug.xcconfig"; path = "Target Support Files/Pods-APIExample-APIExampleUITests/Pods-APIExample-APIExampleUITests.debug.xcconfig"; sourceTree = "<group>"; };
260+
E789AB03286999C500851463 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LocalAccess.storyboard; sourceTree = "<group>"; };
261+
E789AB04286999C500851463 /* LocalAccess.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocalAccess.swift; sourceTree = "<group>"; };
262+
E789AB0A2869A48800851463 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LocalAccess.strings"; sourceTree = "<group>"; };
263+
E789AB0B2869A66F00851463 /* Util.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Util.swift; path = ../../../../iOS/APIExample/Common/Utils/Util.swift; sourceTree = "<group>"; };
248264
FC2BAB0AC82140B7CEEA31DA /* Pods_APIExample_APIExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_APIExample_APIExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
249265
/* End PBXFileReference section */
250266

@@ -477,6 +493,7 @@
477493
036D3AA524FB797700B1D8DC /* Advanced */ = {
478494
isa = PBXGroup;
479495
children = (
496+
E789AAFF286999C500851463 /* LocalAccess */,
480497
67C3646227980E1F0080DB3A /* VideoProcess */,
481498
57AF3979259B30BB00601E02 /* RawAudioData */,
482499
6709B22E2805CD05000BCC58 /* RawVideoData */,
@@ -658,6 +675,7 @@
658675
children = (
659676
6709B2342805CD6C000BCC58 /* MediaUtils.h */,
660677
6709B2352805CD6C000BCC58 /* MediaUtils.m */,
678+
E789AB0B2869A66F00851463 /* Util.swift */,
661679
);
662680
path = Utils;
663681
sourceTree = "<group>";
@@ -693,6 +711,15 @@
693711
path = Pods;
694712
sourceTree = "<group>";
695713
};
714+
E789AAFF286999C500851463 /* LocalAccess */ = {
715+
isa = PBXGroup;
716+
children = (
717+
E789AB02286999C500851463 /* LocalAccess.storyboard */,
718+
E789AB04286999C500851463 /* LocalAccess.swift */,
719+
);
720+
path = LocalAccess;
721+
sourceTree = "<group>";
722+
};
696723
E8D399FF8F860CE7DAAA9D91 /* Frameworks */ = {
697724
isa = PBXGroup;
698725
children = (
@@ -716,6 +743,7 @@
716743
03896D2A24F8A00F008593CD /* Resources */,
717744
9B15FD1F702D590221B4E441 /* [CP] Embed Pods Frameworks */,
718745
032C0FA2254873AC00D80A57 /* Embed Frameworks */,
746+
E789AAFE2869984100851463 /* CopyFiles */,
719747
);
720748
buildRules = (
721749
);
@@ -828,6 +856,7 @@
828856
57A635DC2591BCF000EDC2F7 /* Slider.xib in Resources */,
829857
033A9FC2252EB02D00BC26E1 /* CustomAudioSource.storyboard in Resources */,
830858
57AF3981259B329B00601E02 /* RawAudioData.storyboard in Resources */,
859+
E789AB06286999C500851463 /* LocalAccess.storyboard in Resources */,
831860
033A9FE5252EB59000BC26E1 /* VoiceChanger.storyboard in Resources */,
832861
033A9FBD252EB02600BC26E1 /* CustomAudioRender.storyboard in Resources */,
833862
034C62A025297ABB00296ECF /* audioeffect.mp3 in Resources */,
@@ -986,6 +1015,7 @@
9861015
033A9EDB252C17F200BC26E1 /* CustomVideoSourceMediaIO.swift in Sources */,
9871016
033A9FA0252EA86A00BC26E1 /* CustomAudioSource.swift in Sources */,
9881017
034C629C25295F2800296ECF /* AudioMixing.swift in Sources */,
1018+
E789AB07286999C500851463 /* LocalAccess.swift in Sources */,
9891019
03267E222500C265004A91A6 /* AgoraMediaDataPlugin.mm in Sources */,
9901020
036D3AA224FAA00A00B1D8DC /* Configs.swift in Sources */,
9911021
67C3646427980E600080DB3A /* VideoProcess.swift in Sources */,
@@ -1014,6 +1044,7 @@
10141044
034C62872528255F00296ECF /* WindowsCenter.swift in Sources */,
10151045
034C62912528327800296ECF /* ChannelMediaRelay.swift in Sources */,
10161046
033A9F9E252EA86A00BC26E1 /* CustomVideoSourcePush.swift in Sources */,
1047+
E789AB0C2869A66F00851463 /* Util.swift in Sources */,
10171048
0336A1CA25034F4700D61B7F /* ExternalAudio.mm in Sources */,
10181049
033A9FA1252EA86A00BC26E1 /* CustomAudioRender.swift in Sources */,
10191050
034C627C2526C43900296ECF /* ScreenShare.swift in Sources */,
@@ -1228,6 +1259,15 @@
12281259
name = Localizable.strings;
12291260
sourceTree = "<group>";
12301261
};
1262+
E789AB02286999C500851463 /* LocalAccess.storyboard */ = {
1263+
isa = PBXVariantGroup;
1264+
children = (
1265+
E789AB03286999C500851463 /* Base */,
1266+
E789AB0A2869A48800851463 /* zh-Hans */,
1267+
);
1268+
name = LocalAccess.storyboard;
1269+
sourceTree = "<group>";
1270+
};
12311271
/* End PBXVariantGroup section */
12321272

12331273
/* Begin XCBuildConfiguration section */

macOS/APIExample/Examples/Advanced/CustomAudioSource/Base.lproj/CustomAudioSource.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19162"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
/* Class = "NSBox"; title = "Box"; ObjectID = "BP9-4w-AfJ"; */
3+
"BP9-4w-AfJ.title" = "Box";
4+
5+
/* Class = "NSButtonCell"; title = "Join"; ObjectID = "Lhu-U1-6qh"; */
6+
"Lhu-U1-6qh.title" = "加入";
7+
8+
/* Class = "NSTextFieldCell"; placeholderString = "entry local access point"; ObjectID = "Qib-uK-ETK"; */
9+
"Qib-uK-ETK.placeholderString" = "输入私有化IP";
10+
11+
/* Class = "NSViewController"; title = "LocalAccess"; ObjectID = "YjT-yy-DnJ"; */
12+
"YjT-yy-DnJ.title" = "LocalAccess";
13+
14+
/* Class = "NSTextFieldCell"; title = "private local access point"; ObjectID = "joa-fm-ybg"; */
15+
"joa-fm-ybg.title" = "私有化环境";

macOS/APIExample/Examples/Advanced/RTMPStreaming/Base.lproj/RTMPStreaming.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19162"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>

macOS/APIExample/Examples/Advanced/RawVideoData/RawVideoData.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19162"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>

macOS/APIExample/Examples/Basic/JoinChannelVideo/Base.lproj/JoinChannelVideo.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19162"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>

macOS/APIExample/ViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class MenuController: NSViewController {
4242
MenuItem(name: "Create Data Stream".localized, identifier: "menuCell", controller: "CreateDataStream", storyboard: "CreateDataStream"),
4343
MenuItem(name: "Precall Test".localized, identifier: "menuCell", controller: "PrecallTest", storyboard: "PrecallTest"),
4444
MenuItem(name: "Video Process".localized, identifier: "menuCell", controller: "Video Process", storyboard: "VideoProcess"),
45-
MenuItem(name: "Spatial Audio".localized, identifier: "menuCell", controller: "SpatialAudio", storyboard: "SpatialAudio")
45+
MenuItem(name: "Spatial Audio".localized, identifier: "menuCell", controller: "SpatialAudio", storyboard: "SpatialAudio"),
46+
MenuItem(name: "Local Access".localized, identifier: "menuCell", controller: "LocalAccess", storyboard: "LocalAccess"),
4647
]
4748
@IBOutlet weak var tableView:NSTableView!
4849

macOS/APIExample/zh-Hans.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,4 @@
175175
"Please insert headphones to experience the spatial audio effect" = "请插入耳机体验空间音效效果";
176176
"You will hear a piece of music, and after 10 seconds this piece of music will be played through spatial audio effects" = "你会听到一段音乐,10秒后这段音乐会通过空间音效的方式播放";
177177
"Now you can move the speaker icon to experience the spatial audio effect" = "现在您可以移动喇叭图标到不同的位置,体验空间音效效果";
178+
"Local Access" = "私有化环境";

macOS/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ target 'APIExample' do
77

88
# Pods for APIExample
99
pod 'AGEVideoLayout', '~> 1.0.4'
10-
pod 'AgoraRtcEngine_macOS', '3.7.0'
10+
# pod 'AgoraRtcEngine_macOS', '3.7.0'
11+
pod 'sdk', :path => 'sdk.podspec'
1112

1213
target 'APIExampleTests' do
1314
inherit! :search_paths

0 commit comments

Comments
 (0)