Skip to content

Changes to renegotiaion and closing the connection#9

Open
Drejzer wants to merge 1 commit intomainfrom
fix/renegotiation_closing_and_callbacks
Open

Changes to renegotiaion and closing the connection#9
Drejzer wants to merge 1 commit intomainfrom
fix/renegotiation_closing_and_callbacks

Conversation

@Drejzer
Copy link
Member

@Drejzer Drejzer commented Mar 24, 2026

No description provided.

@Drejzer Drejzer requested a review from djenczewski March 24, 2026 12:44
@Drejzer Drejzer self-assigned this Mar 24, 2026
) {
RTCLogEx(.info, "[PMX][observer] PC standardised Ice connection state changed: \(newState) raw: \(newState.rawValue)")
onIceConnectionStateChanged?(peerConnection,newState)
//onIceConnectionStateChanged?(peerConnection,newState)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is commented out?

Copy link
Member Author

@Drejzer Drejzer Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didChangeStandardizedIceConnectionState calls the "state changed" callback a second time after it was called in peerConnection:didChange, so I commented it out (at least temporarily)
will need to either add a separate callback, or leave one of those ignored

}
}

//func addDataStreamTo(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is commented code required?


publisher.peerConnectionDelegate.setShouldRenegotiateCallback({
pc in
nonisolated(unsafe) var peer = pc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe will be better to move this callbacks to separated instance methods


subscriber.peerConnectionDelegate.setShouldRenegotiateCallback({
pc in
nonisolated(unsafe) var peer = pc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants