File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ protocol WebRTCClientDelegate: AnyObject {
17
17
final class WebRTCClient : NSObject {
18
18
let role : Role
19
19
20
- // The `RTCPeerConnectionFactory` is in charge of creating new RTCPeerConnection instances.
21
- // A new RTCPeerConnection should be created every new call, but the factory is shared.
22
20
private static let factory : RTCPeerConnectionFactory = {
23
21
RTCInitializeSSL ( )
24
22
return RTCPeerConnectionFactory ( )
@@ -150,7 +148,9 @@ final class WebRTCClient: NSObject {
150
148
151
149
let track = WebRTCClient . factory. audioTrack ( with: audioSource, trackId: label)
152
150
151
+ // @TODO FIGURE THIS PART OUT
153
152
peerConnection. add ( track, streamIds: [ streamId] )
153
+ peerConnection. addTransceiver ( with: track)
154
154
155
155
return track
156
156
}
You can’t perform that action at this time.
0 commit comments