-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Ktor Client WebRtc kotlin wrappers migration #5021
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
Ktor Client WebRtc kotlin wrappers migration #5021
Conversation
…le and creating extra util functions.
…owser declarations.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
a32744f to
c9fe7f7
Compare
…lient-webrtc-kotlin-wrappers-migration
bjhham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
| if (tracks.size > 1) { | ||
| println("Warning: more than one audio track created") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be best to use some logging here over println.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of logging do you mean?
| throw WebRtcMedia.DeviceException("Failed to create a video track.") | ||
| } | ||
| if (tracks.size > 1) { | ||
| println("Warning: more than one video track created.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
Mr3zee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
5f39fed
into
zibet27/ktor-client-webrtc-android
Subsystem
WebRTC Client
Motivation
Unify the source code for the JS and WASMJS targets.
Solution
kotlin-wrappers-browserpackage to thektor-client-webrtcsubmodule.During the integration, I needed to upgrade the Kotlin version in the branch to
2.2.0because the compiler was failing with aSymbol for Any not foundexception.3.3.0-eapinto this one, so the pull request contains many other commits.kotlin-wrappers, which significantly reduced code size. Moreover, all callbacks now also run in the peer connection's coroutine scope, so we don't lose exceptions thrown there.