We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e09f8 commit 65ea519Copy full SHA for 65ea519
Sources/ion/WebRTC/WebRTC.swift
@@ -17,8 +17,6 @@ protocol WebRTCClientDelegate: AnyObject {
17
final class WebRTCClient: NSObject {
18
let role: Role
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
private static let factory: RTCPeerConnectionFactory = {
23
RTCInitializeSSL()
24
return RTCPeerConnectionFactory()
@@ -150,7 +148,9 @@ final class WebRTCClient: NSObject {
150
148
151
149
let track = WebRTCClient.factory.audioTrack(with: audioSource, trackId: label)
152
+ // @TODO FIGURE THIS PART OUT
153
peerConnection.add(track, streamIds: [streamId])
+ peerConnection.addTransceiver(with: track)
154
155
return track
156
}
0 commit comments