Skip to content

Commit 73da293

Browse files
Use custom audio device (#33)
* use custom audio device * format fix * chore: run prettier Made-with: Cursor * pr fixes * fix device initi
1 parent 84bf40c commit 73da293

4 files changed

Lines changed: 738 additions & 0 deletions

File tree

ios/RCTWebRTC.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
F1A2B3C42D0F1A2B00000001 /* FishjamRTCAudioDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = F1A2B3C42D0F1A2B00000003 /* FishjamRTCAudioDevice.m */; };
1011
0BDDA6E020C18B6B00B38B45 /* VideoCaptureController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BDDA6DF20C18B6B00B38B45 /* VideoCaptureController.m */; };
1112
4EC498BC25B8777F00E76218 /* ScreenCapturePickerViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EC498BA25B8777F00E76218 /* ScreenCapturePickerViewManager.m */; };
1213
4EE3A8A325B840DA00FAA24A /* RCTConvert+WebRTC.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EE3A8A125B840DA00FAA24A /* RCTConvert+WebRTC.m */; };
@@ -80,6 +81,8 @@
8081
D7F99C122938F4E0000A2450 /* WebRTCModule+RTCMediaStream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "WebRTCModule+RTCMediaStream.h"; path = "RCTWebRTC/WebRTCModule+RTCMediaStream.h"; sourceTree = SOURCE_ROOT; };
8182
DEC96576264176C10052DB35 /* DataChannelWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = DataChannelWrapper.m; path = RCTWebRTC/DataChannelWrapper.m; sourceTree = "<group>"; };
8283
DEC96579264176DF0052DB35 /* DataChannelWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = DataChannelWrapper.h; path = RCTWebRTC/DataChannelWrapper.h; sourceTree = "<group>"; };
84+
F1A2B3C42D0F1A2B00000002 /* FishjamRTCAudioDevice.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FishjamRTCAudioDevice.h; path = RCTWebRTC/FishjamRTCAudioDevice.h; sourceTree = SOURCE_ROOT; };
85+
F1A2B3C42D0F1A2B00000003 /* FishjamRTCAudioDevice.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FishjamRTCAudioDevice.m; path = RCTWebRTC/FishjamRTCAudioDevice.m; sourceTree = SOURCE_ROOT; };
8386
/* End PBXFileReference section */
8487

8588
/* Begin PBXFrameworksBuildPhase section */
@@ -159,6 +162,8 @@
159162
4EE3A8C825B841DD00FAA24A /* SocketConnection.m */,
160163
DEC96579264176DF0052DB35 /* DataChannelWrapper.h */,
161164
DEC96576264176C10052DB35 /* DataChannelWrapper.m */,
165+
F1A2B3C42D0F1A2B00000002 /* FishjamRTCAudioDevice.h */,
166+
F1A2B3C42D0F1A2B00000003 /* FishjamRTCAudioDevice.m */,
162167
);
163168
name = RCTWebRTC;
164169
path = ../apple/RCTWebRTC;
@@ -273,6 +278,7 @@
273278
4EE3A8AC25B8412700FAA24A /* RTCVideoViewManager.m in Sources */,
274279
4EE3A8C125B8416F00FAA24A /* WebRTCModule+RTCPeerConnection.m in Sources */,
275280
4EE3A8A325B840DA00FAA24A /* RCTConvert+WebRTC.m in Sources */,
281+
F1A2B3C42D0F1A2B00000001 /* FishjamRTCAudioDevice.m in Sources */,
276282
);
277283
runOnlyForDeploymentPostprocessing = 0;
278284
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#import <Foundation/Foundation.h>
2+
#import <WebRTC/WebRTC.h>
3+
4+
NS_ASSUME_NONNULL_BEGIN
5+
6+
@interface FishjamRTCAudioDevice : NSObject<RTCAudioDevice>
7+
8+
@end
9+
10+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)