Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

[RTC-556] Only set turn servers once #51

Merged
merged 1 commit into from
Jun 21, 2024
Merged

[RTC-556] Only set turn servers once #51

merged 1 commit into from
Jun 21, 2024

Conversation

mickel8
Copy link
Contributor

@mickel8 mickel8 commented Jun 13, 2024

Description

So far, whenever we received offerData, we were pushing turnServers to our internal rtcConfig array, which is also passed to the PeerConnection at its creation time.

Motivation and Context

Setting them just at the beginning should be enough. We would also prevent from memory leak. It's also hard to determine whether rtcConfig array can be safely modified throught session time.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

@mickel8 mickel8 force-pushed the turnconfig branch 3 times, most recently from 25f3355 to e8f8ff4 Compare June 20, 2024 10:51
@mickel8 mickel8 changed the title Only set turn servers once [RTC-556] Only set turn servers once Jun 20, 2024
@mickel8 mickel8 requested a review from kamil-stasiak June 20, 2024 11:01
@mickel8 mickel8 marked this pull request as ready for review June 20, 2024 11:02
mironiasty pushed a commit that referenced this pull request Jun 20, 2024
* Fix screenshare state being lost on disconnect

* Add `autoStreaming` and `preview` options to screenshare

* Run prettier
@mickel8 mickel8 merged commit c9756c6 into main Jun 21, 2024
4 checks passed
@mickel8 mickel8 deleted the turnconfig branch June 21, 2024 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants