English | 简体中文
RTCube is a powerful UI component library built on top of the Tencent Cloud AtomicXCore SDK. AtomicXCore consolidates the core capabilities of Tencent Cloud Real-Time Communication (TRTC), Instant Messaging (IM), Audio/Video Calling (TUICallEngine), and Room Management (TUIRoomEngine), offering a state-driven API design.
On top of the core capabilities provided by AtomicXCore, RTCube delivers a set of ready-to-use user interfaces (UI), allowing you to quickly integrate interactive video live streaming, voice chat rooms, audio/video calling, and more into your iOS application—without worrying about complex backend logic or state management.
Based on AtomicXCore, RTCube provides complete UI implementations for the following core business scenarios:
-
Video/Voice Live Streaming:
- Live List Management: Fetch the list of live streams.
- Go Live & Watch: Create live rooms and join live streams.
- Seat Management: Manage seats; audience members can take or leave the mic.
- Co-hosting: Support cross-room co-hosting between hosts.
- Host Battle (PK): Support interactive PK between hosts.
- Interactive Features:
- Gifts: Send and receive gifts.
- Likes: Send likes in the live room.
- Barrage (Danmaku): Send and receive barrage messages.
-
Audio/Video Calling:
- Basic Calls: Support 1v1 and multi-party audio/video calls.
- Call Management: Support answering, rejecting, and hanging up calls.
- Device Management: Control the camera and microphone during calls.
- Call History: Query and delete call records.
-
Multi-party Meetings (Room):
- Quick Meetings: One-click creation and joining of multi-party meetings.
- Invite to Meeting: Invite members to join the current meeting.
- In-meeting Controls: Hosts can manage members' audio/video, seats, and member list.
- Screen Sharing: Support screen sharing during meetings.
- Xcode 14.0 or later
- iOS 14.0 or later
- CocoaPods (please ensure it is installed)
git clone https://github.com/Tencent-RTC/TUIKit_iOS.gitRTCube depends on several component libraries including TUILiveKit, TUICallKit, and TUIRoomKit. You need to use CocoaPods to install these dependencies.
cd TUIKit_iOS/application
pod installOpen the generated RTCube.xcworkspace file with Xcode, configure your Tencent Cloud SDKAPPID, UserID, and UserSig in application/Debug/GenerateTestUserSig.swift, then build and run the RTCubeLab scheme.
The architecture of RTCube follows a layered design:
-
TUILiveKit / TUICallKit / TUIRoomKit (UI Layer):
- Provides prebuilt, reusable UI components.
- Handles view presentation and user interaction.
- Subscribes to
Stores inAtomicXCoreto retrieve state and update the UI. - Calls
Storemethods inAtomicXCoreto respond to user actions.
-
AtomicXCore (Core Layer):
- Stores: (e.g.,
LiveListStore,CallListStore,ConversationListStore) Manage business logic and state. - Core Views: (e.g.,
LiveCoreView,ParticipantView) Provide UI-less view containers that drive video rendering. - Engine Wrappers: Wrap the underlying
RTCRoomEngine,TUICallEngine, andIMSDK, providing a unified API.
- Stores: (e.g.,
-
Tencent Cloud SDK (Engine Layer):
RTCRoomEngine&TUICallEngine: Provide low-level real-time audio/video capabilities.IMSDK: Provides instant messaging capabilities.
This project is licensed under the MIT License.