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

feat: conference simulcast support (WPB-11480) #3107

Merged
merged 8 commits into from
Nov 20, 2024

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented Nov 14, 2024

StoryWPB-11480 [Android] Simulcast Support & Automatic Quality Adjustments


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

On AVS 10.x.x, we have finally supported for Simulcast (multiple quality for participants video). This is an improvement in the overall experience, and as well in performance, because when the client is with a Tile in FullScreen, we can request only that video stream, saving bandwidth.

Solutions

Add the code to support, this consist in simple words:

  • When requesting the video streams wcall_request_video_streams we send a new parameter call (quality)
  • ANY = 0, LOW = 1, HIGH = 2.

Also took the chance to improve some things in the code:

  • Calling Logging
  • JSON serializer was being created every time we requested streams, now is using a shared instance.

Dependencies (Optional)

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

As of now, it is not possible, but when SFT version 5 is deployed on staging, it will be possible.
For development purposes, was 'hacked' using the SFT test server and local webapp.

Attachments (Optional)

https://drive.google.com/file/d/18N0W4hXT3MDfL_tsD0_rJCzgDz5s4D9D/view?usp=sharing


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Copy link
Contributor

github-actions bot commented Nov 14, 2024

Test Results

3 284 tests  ±0   3 177 ✅ ±0   4m 42s ⏱️ -25s
  559 suites ±0     107 💤 ±0 
  559 files   ±0       0 ❌ ±0 

Results for commit ba29203. ± Comparison against base commit eb66288.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Nov 14, 2024

@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 23.80952% with 16 lines in your changes missing coverage. Please review.

Project coverage is 54.20%. Comparing base (eb66288) to head (ba29203).

Files with missing lines Patch % Lines
...tlin/com/wire/kalium/logic/data/call/CallClient.kt 0.00% 16 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3107      +/-   ##
===========================================
- Coverage    54.20%   54.20%   -0.01%     
===========================================
  Files         1205     1206       +1     
  Lines        35806    35824      +18     
  Branches      3641     3643       +2     
===========================================
+ Hits         19410    19418       +8     
- Misses       14993    15004      +11     
+ Partials      1403     1402       -1     
Files with missing lines Coverage Δ
...kalium.util/serialization/LenientJsonSerializer.kt 100.00% <100.00%> (ø)
...tlin/com/wire/kalium/logic/data/call/CallClient.kt 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb66288...ba29203. Read the comment docs.

---- 🚨 Try these New Features:

@datadog-wireapp
Copy link

datadog-wireapp bot commented Nov 14, 2024

Datadog Report

Branch report: feat/conference-simulcast-support
Commit report: ee13eea
Test service: kalium-jvm

✅ 0 Failed, 3177 Passed, 107 Skipped, 32.89s Total Time

Copy link
Member

@MohamadJaara MohamadJaara left a comment

Choose a reason for hiding this comment

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

question about logging clientsJson

)
}
val clientsJson = CallClientList(clients).toJsonString()
callingLogger.d(
"$TAG - wcall_request_video_streams() called -> Requesting video streams for conversation = " +
"${conversationId.toLogString()} with clients = $clientsJson"
Copy link
Member

Choose a reason for hiding this comment

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

what clientsJson include in this case? and is it safe to log ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, thanks for the catch

@yamilmedina yamilmedina added this pull request to the merge queue Nov 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 20, 2024
@yamilmedina yamilmedina added this pull request to the merge queue Nov 20, 2024
Merged via the queue into develop with commit 9273703 Nov 20, 2024
22 checks passed
@yamilmedina yamilmedina deleted the feat/conference-simulcast-support branch November 20, 2024 11:25
@echoes-hq echoes-hq bot added the echoes: product-roadmap/feature Work contributing to adding a new feature as part of the product roadmap. label Nov 20, 2024
yamilmedina added a commit that referenced this pull request Dec 6, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 6, 2024
* Revert "feat: conference simulcast support (WPB-11480) (#3107)"

This reverts commit 9273703.

* chore: empty commit bump
yamilmedina added a commit that referenced this pull request Dec 13, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 17, 2024
* chore: empty commit bump

* Revert "revert: conference simulcast support (WPB-11480) (#3107) (#3149)"

This reverts commit d8b69f1.

* chore: empty commit bump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap/feature Work contributing to adding a new feature as part of the product roadmap. 👕 size: M type: feature ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants