Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin-meetings): add to peer connection bare turn tcp server #3808

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

k-wasniowski
Copy link
Contributor

@k-wasniowski k-wasniowski commented Sep 4, 2024

COMPLETES #SPARK-559031

This pull request addresses

Sometimes TURN-TCP reachability completes succesfully, but then media fails to connect over TCP. Adding TURN-TCP to peer connection configuration, to verify if it will help in this scenario.

by making the following changes

Modifying discovered TURN-TLS to work as bare TURN-TCP server.

Change Type

  • 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 change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios where tested

Tested with sample app(Chrome,Edge,Firefox) and blocked UDP to force connections over TCP.

I certified that

  • I have read and followed contributing guidelines

  • I discussed changes with code owners prior to submitting this pull request

  • I have not skipped any automated checks

  • All existing and new tests passed

  • I have updated the documentation accordingly


Make sure to have followed the contributing guidelines before submitting.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3808.d3m3l2kee0btzx.amplifyapp.com

@k-wasniowski k-wasniowski added the validated If the pull request is validated for automation. label Sep 4, 2024
@k-wasniowski k-wasniowski marked this pull request as ready for review September 4, 2024 07:37
@k-wasniowski k-wasniowski requested review from a team as code owners September 4, 2024 07:37
@k-wasniowski k-wasniowski force-pushed the fix-add-turn-tcp-relay-server branch from bc4afc2 to 29704c1 Compare September 4, 2024 13:14
@k-wasniowski k-wasniowski force-pushed the fix-add-turn-tcp-relay-server branch from 29704c1 to b60f507 Compare September 4, 2024 13:21
@@ -163,6 +163,19 @@ Media.createMediaConnection = (
// we might not have any TURN server if TURN discovery failed or wasn't done or
// we might get an empty TURN url if we land on a video mesh node
if (turnServerInfo?.url) {
if (!isBrowser('firefox')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Limiting it to non-firefox, as we might be not handling it properly with Full-ICE. Once we test it properly with Firefox, we should enable it also for Firefox.

Copy link
Collaborator

@marcin-bazyl marcin-bazyl left a comment

Choose a reason for hiding this comment

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

looks good, just 1 minor comment

packages/@webex/plugin-meetings/src/media/index.ts Outdated Show resolved Hide resolved
@k-wasniowski k-wasniowski merged commit 90cc9c2 into webex:next Sep 5, 2024
11 checks passed
@k-wasniowski k-wasniowski deleted the fix-add-turn-tcp-relay-server branch September 5, 2024 08:59
pagour98 pushed a commit to pagour98/webex-js-sdk that referenced this pull request Sep 27, 2024
pagour98 pushed a commit to pagour98/webex-js-sdk that referenced this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validated If the pull request is validated for automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants