Skip to content

Commit 65ea519

Browse files
committed
fixes
1 parent e4e09f8 commit 65ea519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ion/WebRTC/WebRTC.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ protocol WebRTCClientDelegate: AnyObject {
1717
final class WebRTCClient: NSObject {
1818
let role: Role
1919

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.
2220
private static let factory: RTCPeerConnectionFactory = {
2321
RTCInitializeSSL()
2422
return RTCPeerConnectionFactory()
@@ -150,7 +148,9 @@ final class WebRTCClient: NSObject {
150148

151149
let track = WebRTCClient.factory.audioTrack(with: audioSource, trackId: label)
152150

151+
// @TODO FIGURE THIS PART OUT
153152
peerConnection.add(track, streamIds: [streamId])
153+
peerConnection.addTransceiver(with: track)
154154

155155
return track
156156
}

0 commit comments

Comments
 (0)