Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
decanus committed Feb 2, 2021
1 parent e4e09f8 commit 65ea519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ion/WebRTC/WebRTC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ protocol WebRTCClientDelegate: AnyObject {
final class WebRTCClient: NSObject {
let role: Role

// The `RTCPeerConnectionFactory` is in charge of creating new RTCPeerConnection instances.
// A new RTCPeerConnection should be created every new call, but the factory is shared.
private static let factory: RTCPeerConnectionFactory = {
RTCInitializeSSL()
return RTCPeerConnectionFactory()
Expand Down Expand Up @@ -150,7 +148,9 @@ final class WebRTCClient: NSObject {

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

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

return track
}
Expand Down

0 comments on commit 65ea519

Please sign in to comment.