-
Notifications
You must be signed in to change notification settings - Fork 923
Added Support for VideoCalls, Screensharing and Optimized CPU Usage during calls #916
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
base: main
Are you sure you want to change the base?
Conversation
In 2021, there was a competition for the design of audio/video calls, and this option seemed the most promising to many: https://contest.com/android-design/entry2997. Maybe you can somehow come to an agreement with the author and take his design for your implementation. |
fbec9a8 to
8bb1443
Compare
Cherry-picked Video Calls with Camera and Screen Sharing support. - Added CallInterface abstraction layer - Added NTgCallsInterface and TgCallsInterface implementations - Added VoIPFloatingLayout and VoIPTextureView for video display - Updated CallController with video button support - Updated TGCallService with NTgCalls/TgCalls selection based on BuildConfig.USE_NTGCALLS Based on commit 9513771 from Laky-64/Telegram-X PR TGX-Android#916 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions for Android 12+ - Add USE_NTGCALLS BuildConfig flag (controlled by app.ntgcalls in local.properties) - Add useNTgCalls to ApplicationConfig and ConfigurationPlugin - Add conditional NTgCalls dependency (io.github.pytgcalls:ntgcalls:2.0.6) Note: The NTgCalls interface code from PR TGX-Android#916 requires API compatibility updates - the PR was written for a different version of the NTgCalls library with packages (media, p2p, devices, exceptions) that don't exist in the public Maven Central release. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cherry-picked Video Calls with Camera and Screen Sharing support. - Added CallInterface abstraction layer - Added NTgCallsInterface and TgCallsInterface implementations - Added VoIPFloatingLayout and VoIPTextureView for video display - Updated CallController with video button support - Updated TGCallService with NTgCalls/TgCalls selection based on BuildConfig.USE_NTGCALLS Based on commit 9513771 from Laky-64/Telegram-X PR TGX-Android#916 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions for Android 12+ - Add USE_NTGCALLS BuildConfig flag (controlled by app.ntgcalls in local.properties) - Add useNTgCalls to ApplicationConfig and ConfigurationPlugin - Add conditional NTgCalls dependency (io.github.pytgcalls:ntgcalls:2.0.6) Note: The NTgCalls interface code from PR TGX-Android#916 requires API compatibility updates - the PR was written for a different version of the NTgCalls library with packages (media, p2p, devices, exceptions) that don't exist in the public Maven Central release. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cherry-picked Video Calls with Camera and Screen Sharing support. - Added CallInterface abstraction layer - Added NTgCallsInterface and TgCallsInterface implementations - Added VoIPFloatingLayout and VoIPTextureView for video display - Updated CallController with video button support - Updated TGCallService with NTgCalls/TgCalls selection based on BuildConfig.USE_NTGCALLS Based on commit 9513771 from Laky-64/Telegram-X PR TGX-Android#916 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions for Android 12+ - Add USE_NTGCALLS BuildConfig flag (controlled by app.ntgcalls in local.properties) - Add useNTgCalls to ApplicationConfig and ConfigurationPlugin - Add conditional NTgCalls dependency (io.github.pytgcalls:ntgcalls:2.0.6) Note: The NTgCalls interface code from PR TGX-Android#916 requires API compatibility updates - the PR was written for a different version of the NTgCalls library with packages (media, p2p, devices, exceptions) that don't exist in the public Maven Central release. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
64777e7 to
225c605
Compare
hnitgyi034-source
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.
a1c1b9f to
1617e78
Compare
Revert all 8 NTgCalls-related commits. The original developer (Laky-64/null-nick) has made their own proper implementation, so our custom cherry-picked version is no longer needed. Reverted commits: - 3e82450 Add NTgCalls integration from PR TGX-Android#916 - df7b562 Add NTgCalls build configuration and Bluetooth permissions - 2695c8a Add group call support and voice/video restriction UI - 5751cad Add Bluetooth runtime permission checks for Android 12+ - 7c23b5a Add video rendering to GroupCallController - b341699 Add video chat management features - 0169b97 Fix video chat API calls - f544b6d Add Invite to Video Chat feature Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

The guide below provides the flow for creating a perfect pull request to the Telegram X Repository. Before submitting your PR, ensure that it complies with the following principles.

Screen_Recording_20250830_170141_NTgCallsX.mp4
Perfect PRs must be:
Rational. This PR replaces the old TgCalls implementation with NTgCalls, adding full support for video calls and screen sharing, while also introducing a more efficient CPU usage management. To enable NTgCalls locally, you need to add the following line in your
local.propertiesfile:'main'branch.When fixing issues, make sure that your PR is:
When adding features, expect:
Other contributions: