Skip to content

Commit 818ad06

Browse files
committed
iOS done
1 parent 8652d5d commit 818ad06

10 files changed

Lines changed: 845 additions & 572 deletions

File tree

iOS/APIExample.xcodeproj/project.pbxproj

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
0339D6D224E91B80008739CD /* QuickSwitchChannelVCItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0339D6D124E91B80008739CD /* QuickSwitchChannelVCItem.xib */; };
3535
0339D6D424E91BAA008739CD /* QuickSwitchChannelVCItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0339D6D324E91BAA008739CD /* QuickSwitchChannelVCItem.swift */; };
3636
0339D6D624E91CEB008739CD /* QuickSwitchChannel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0339D6D524E91CEB008739CD /* QuickSwitchChannel.swift */; };
37+
034C625E2524A06800296ECF /* VoiceChanger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 034C625D2524A06800296ECF /* VoiceChanger.swift */; };
38+
034C62622524A23500296ECF /* VoiceChanger.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 034C62612524A23500296ECF /* VoiceChanger.storyboard */; };
3739
036C42A924D27AB000A59000 /* CustomVideoSourceMediaIO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036C42A824D27AB000A59000 /* CustomVideoSourceMediaIO.swift */; };
3840
036C42AC24D292A700A59000 /* AgoraCameraSourceMediaIO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036C42AB24D292A700A59000 /* AgoraCameraSourceMediaIO.swift */; };
3941
036C42AE24D2950A00A59000 /* CustomVideoSourcePush.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036C42AD24D2950A00A59000 /* CustomVideoSourcePush.swift */; };
@@ -49,8 +51,6 @@
4951
036CBA47251990B400D74FAD /* AgoraCustomEncryption.h in Sources */ = {isa = PBXBuildFile; fileRef = 036CBA4525198F1A00D74FAD /* AgoraCustomEncryption.h */; };
5052
0371D8AE250B4A2C00C0DD61 /* JoinChannelAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0371D8AD250B4A2C00C0DD61 /* JoinChannelAudio.swift */; };
5153
0371D8B0250B4CD500C0DD61 /* JoinChannelAudio.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0371D8AF250B4CD500C0DD61 /* JoinChannelAudio.storyboard */; };
52-
03824D0D24CA822F00E9C047 /* VoiceChanger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03824D0C24CA822F00E9C047 /* VoiceChanger.swift */; };
53-
03824D0F24CAB61A00E9C047 /* PopMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03824D0E24CAB61A00E9C047 /* PopMenu.swift */; };
5454
0385767E2521E5A0003C369A /* MediaChannelRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0385767C2521E59F003C369A /* MediaChannelRelay.swift */; };
5555
0385767F2521E5A0003C369A /* MediaChannelRelay.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0385767D2521E5A0003C369A /* MediaChannelRelay.storyboard */; };
5656
0385768225224A88003C369A /* JoinChannelVideo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0385768125224A88003C369A /* JoinChannelVideo.swift */; };
@@ -151,6 +151,8 @@
151151
0339D6D124E91B80008739CD /* QuickSwitchChannelVCItem.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = QuickSwitchChannelVCItem.xib; sourceTree = "<group>"; };
152152
0339D6D324E91BAA008739CD /* QuickSwitchChannelVCItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QuickSwitchChannelVCItem.swift; sourceTree = "<group>"; };
153153
0339D6D524E91CEB008739CD /* QuickSwitchChannel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QuickSwitchChannel.swift; sourceTree = "<group>"; };
154+
034C625D2524A06800296ECF /* VoiceChanger.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VoiceChanger.swift; sourceTree = "<group>"; };
155+
034C62612524A23500296ECF /* VoiceChanger.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = VoiceChanger.storyboard; sourceTree = "<group>"; };
154156
036C42A824D27AB000A59000 /* CustomVideoSourceMediaIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomVideoSourceMediaIO.swift; sourceTree = "<group>"; };
155157
036C42AB24D292A700A59000 /* AgoraCameraSourceMediaIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AgoraCameraSourceMediaIO.swift; sourceTree = "<group>"; };
156158
036C42AD24D2950A00A59000 /* CustomVideoSourcePush.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomVideoSourcePush.swift; sourceTree = "<group>"; };
@@ -168,8 +170,6 @@
168170
036CBA4525198F1A00D74FAD /* AgoraCustomEncryption.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AgoraCustomEncryption.h; sourceTree = "<group>"; };
169171
0371D8AD250B4A2C00C0DD61 /* JoinChannelAudio.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JoinChannelAudio.swift; sourceTree = "<group>"; };
170172
0371D8AF250B4CD500C0DD61 /* JoinChannelAudio.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = JoinChannelAudio.storyboard; sourceTree = "<group>"; };
171-
03824D0C24CA822F00E9C047 /* VoiceChanger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceChanger.swift; sourceTree = "<group>"; };
172-
03824D0E24CAB61A00E9C047 /* PopMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopMenu.swift; sourceTree = "<group>"; };
173173
0385767C2521E59F003C369A /* MediaChannelRelay.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MediaChannelRelay.swift; sourceTree = "<group>"; };
174174
0385767D2521E5A0003C369A /* MediaChannelRelay.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = MediaChannelRelay.storyboard; sourceTree = "<group>"; };
175175
0385768125224A88003C369A /* JoinChannelVideo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JoinChannelVideo.swift; sourceTree = "<group>"; };
@@ -361,6 +361,15 @@
361361
path = QuickSwitchChannel;
362362
sourceTree = "<group>";
363363
};
364+
034C625C2524A06800296ECF /* VoiceChanger */ = {
365+
isa = PBXGroup;
366+
children = (
367+
034C625D2524A06800296ECF /* VoiceChanger.swift */,
368+
034C62612524A23500296ECF /* VoiceChanger.storyboard */,
369+
);
370+
path = VoiceChanger;
371+
sourceTree = "<group>";
372+
};
364373
036C42AA24D292A700A59000 /* ExternalVideo */ = {
365374
isa = PBXGroup;
366375
children = (
@@ -532,7 +541,6 @@
532541
03BCEC752449EB4F00ED7177 /* LogViewController.swift */,
533542
A7BD765F247CC6920062A6B3 /* UITypeAlias.swift */,
534543
03F8733124C8696600EDB1A3 /* EntryViewController.swift */,
535-
03824D0E24CAB61A00E9C047 /* PopMenu.swift */,
536544
0339BE63251DCA3B007D4FDD /* GlobalSettings.swift */,
537545
);
538546
path = Common;
@@ -568,6 +576,7 @@
568576
A75A56D724A0603000D0089E /* Advanced */ = {
569577
isa = PBXGroup;
570578
children = (
579+
034C625C2524A06800296ECF /* VoiceChanger */,
571580
038576772521E568003C369A /* MediaChannelRelay */,
572581
0339BEC825210A93007D4FDD /* SuperResolution */,
573582
0339BE9225203293007D4FDD /* ScreenShare */,
@@ -576,7 +585,6 @@
576585
A75A56D924A0603000D0089E /* VideoMetadata.swift */,
577586
A75A56D824A0603000D0089E /* RTMPStreaming.swift */,
578587
A75A56DA24A0603000D0089E /* RTMPInjection.swift */,
579-
03824D0C24CA822F00E9C047 /* VoiceChanger.swift */,
580588
03DF1D7724CFBF4800DF7151 /* CustomAudioSource.swift */,
581589
03DF1D9524D06AEF00DF7151 /* CustomAudioRender.swift */,
582590
036C42A824D27AB000A59000 /* CustomVideoSourceMediaIO.swift */,
@@ -719,6 +727,7 @@
719727
A7CA48C424553CF700507435 /* Popover.storyboard in Resources */,
720728
03D13BDC2448758B00B599B3 /* LaunchScreen.storyboard in Resources */,
721729
0385768425224AA7003C369A /* JoinChannelVideo.storyboard in Resources */,
730+
034C62622524A23500296ECF /* VoiceChanger.storyboard in Resources */,
722731
03B12DAA251125B700E55818 /* VideoView.xib in Resources */,
723732
036CBA3E2519186300D74FAD /* StreamEncryption.storyboard in Resources */,
724733
0371D8B0250B4CD500C0DD61 /* JoinChannelAudio.storyboard in Resources */,
@@ -819,7 +828,6 @@
819828
03D13BD42448758900B599B3 /* ViewController.swift in Sources */,
820829
03F8733224C8696600EDB1A3 /* EntryViewController.swift in Sources */,
821830
03DF1D9624D06AF000DF7151 /* CustomAudioRender.swift in Sources */,
822-
03824D0F24CAB61A00E9C047 /* PopMenu.swift in Sources */,
823831
0371D8AE250B4A2C00C0DD61 /* JoinChannelAudio.swift in Sources */,
824832
0339BE84251EF728007D4FDD /* AgoraRtcChannelPublishHelper.mm in Sources */,
825833
03062E462507952600CD1570 /* CustomVideoRender.swift in Sources */,
@@ -839,7 +847,6 @@
839847
036C42B024D2955D00A59000 /* AgoraCameraSourcePush.swift in Sources */,
840848
0318857924CD667A00C699EB /* SettingsViewController.swift in Sources */,
841849
036C42BE24D5853200A59000 /* AgoraMediaDataPlugin.mm in Sources */,
842-
03824D0D24CA822F00E9C047 /* VoiceChanger.swift in Sources */,
843850
A7BD7660247CC6920062A6B3 /* UITypeAlias.swift in Sources */,
844851
03DF1D9124CFC29700DF7151 /* UIColor+CSRGB.m in Sources */,
845852
0339BECC25210A93007D4FDD /* SuperResolution.swift in Sources */,
@@ -856,6 +863,7 @@
856863
036C42B824D57F6D00A59000 /* RawMediaData.swift in Sources */,
857864
03DF1D9024CFC29700DF7151 /* AudioWriteToFile.m in Sources */,
858865
0339BE6D251DEAFC007D4FDD /* PrecallTest.swift in Sources */,
866+
034C625E2524A06800296ECF /* VoiceChanger.swift in Sources */,
859867
03D13BD02448758900B599B3 /* AppDelegate.swift in Sources */,
860868
0385768225224A88003C369A /* JoinChannelVideo.swift in Sources */,
861869
A7847F922458062900469187 /* StatisticsInfo.swift in Sources */,

iOS/APIExample/Base.lproj/Main.storyboard

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -397,99 +397,6 @@
397397
</objects>
398398
<point key="canvasLocation" x="2031.8840579710147" y="930.80357142857133"/>
399399
</scene>
400-
<!--VoiceChanger-->
401-
<scene sceneID="hkF-It-Nnj">
402-
<objects>
403-
<viewController storyboardIdentifier="VoiceChanger" title="VoiceChanger" id="Isk-Yn-Sjt" customClass="VoiceChanger" customModule="APIExample" customModuleProvider="target" sceneMemberID="viewController">
404-
<view key="view" contentMode="scaleToFill" id="jnY-GI-NmF">
405-
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
406-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
407-
<subviews>
408-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Vrg-0O-UHu" customClass="AGEVideoContainer" customModule="AGEVideoLayout">
409-
<rect key="frame" x="0.0" y="88" width="414" height="680"/>
410-
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
411-
</view>
412-
<stackView opaque="NO" contentMode="scaleToFill" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="ACM-II-M4x">
413-
<rect key="frame" x="70.5" y="788" width="273" height="30"/>
414-
<subviews>
415-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IgY-un-YoE">
416-
<rect key="frame" x="0.0" y="0.0" width="95" height="30"/>
417-
<state key="normal" title="Change Voice"/>
418-
<connections>
419-
<action selector="onVoiceChanger" destination="Isk-Yn-Sjt" eventType="touchUpInside" id="dzN-AG-h5i"/>
420-
</connections>
421-
</button>
422-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6Wc-00-NPc">
423-
<rect key="frame" x="115" y="0.0" width="90" height="30"/>
424-
<state key="normal" title="Voice Beauty"/>
425-
<connections>
426-
<action selector="onVoiceBeauty" destination="Isk-Yn-Sjt" eventType="touchUpInside" id="Qxo-Gc-R1X"/>
427-
</connections>
428-
</button>
429-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GXk-3F-mtA">
430-
<rect key="frame" x="225" y="0.0" width="48" height="30"/>
431-
<state key="normal" title="Reverb"/>
432-
<connections>
433-
<action selector="onReverb" destination="Isk-Yn-Sjt" eventType="touchUpInside" id="vQg-bC-hht"/>
434-
</connections>
435-
</button>
436-
</subviews>
437-
</stackView>
438-
<navigationBar contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Vmj-x9-CQ2">
439-
<rect key="frame" x="42" y="0.0" width="414" height="44"/>
440-
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
441-
<items>
442-
<navigationItem title="Title" id="xkr-bh-UDY"/>
443-
</items>
444-
</navigationBar>
445-
</subviews>
446-
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
447-
<constraints>
448-
<constraint firstItem="ACM-II-M4x" firstAttribute="top" secondItem="Vrg-0O-UHu" secondAttribute="bottom" constant="20" id="7aI-bD-05H"/>
449-
<constraint firstItem="2sy-bk-hei" firstAttribute="trailing" secondItem="Vrg-0O-UHu" secondAttribute="trailing" id="QaF-km-sTR"/>
450-
<constraint firstItem="Vrg-0O-UHu" firstAttribute="top" secondItem="2sy-bk-hei" secondAttribute="top" id="b1P-MD-kMd"/>
451-
<constraint firstItem="ACM-II-M4x" firstAttribute="centerX" secondItem="2sy-bk-hei" secondAttribute="centerX" id="iZB-Bw-66x"/>
452-
<constraint firstItem="2sy-bk-hei" firstAttribute="bottom" secondItem="ACM-II-M4x" secondAttribute="bottom" constant="44" id="qkE-Fa-kkE"/>
453-
<constraint firstItem="Vrg-0O-UHu" firstAttribute="leading" secondItem="2sy-bk-hei" secondAttribute="leading" id="vZD-9k-qBd"/>
454-
</constraints>
455-
<viewLayoutGuide key="safeArea" id="2sy-bk-hei"/>
456-
</view>
457-
<navigationItem key="navigationItem" title="Title" id="CIm-Ic-XVM">
458-
<barButtonItem key="rightBarButtonItem" title="Customize" id="EXV-dd-3Ku">
459-
<connections>
460-
<action selector="onCustomize" destination="Isk-Yn-Sjt" id="7w9-U0-log"/>
461-
</connections>
462-
</barButtonItem>
463-
</navigationItem>
464-
<connections>
465-
<outlet property="container" destination="Vrg-0O-UHu" id="WiE-lL-32s"/>
466-
<outlet property="reverb" destination="GXk-3F-mtA" id="Ycw-Ot-sVP"/>
467-
<outlet property="voiceBeauty" destination="6Wc-00-NPc" id="td0-Z5-kn8"/>
468-
<outlet property="voiceChanger" destination="IgY-un-YoE" id="sEe-RE-X5w"/>
469-
</connections>
470-
</viewController>
471-
<placeholder placeholderIdentifier="IBFirstResponder" id="yWQ-bO-5v1" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
472-
</objects>
473-
<point key="canvasLocation" x="-1333" y="1936"/>
474-
</scene>
475-
<!--Navigation Controller-->
476-
<scene sceneID="ur4-qk-WHW">
477-
<objects>
478-
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="t9U-TT-s8e" sceneMemberID="viewController">
479-
<toolbarItems/>
480-
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="iAS-MN-mmz">
481-
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
482-
<autoresizingMask key="autoresizingMask"/>
483-
</navigationBar>
484-
<nil name="viewControllers"/>
485-
<connections>
486-
<segue destination="Isk-Yn-Sjt" kind="relationship" relationship="rootViewController" id="mo6-Z4-XXJ"/>
487-
</connections>
488-
</navigationController>
489-
<placeholder placeholderIdentifier="IBFirstResponder" id="Jen-jv-lQo" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
490-
</objects>
491-
<point key="canvasLocation" x="-1730.4347826086957" y="930.80357142857133"/>
492-
</scene>
493400
<!--CustomAudioSource-->
494401
<scene sceneID="o6o-dm-wd1">
495402
<objects>

0 commit comments

Comments
 (0)