tencent cloud

Feedback

Last updated: 2024-05-15 16:45:22
    This article will guide you on how to quickly run through the Audio and Video Call Demo. By following this document, you can have the Demo up and running in 10 minutes, and ultimately experience an Audio and Video Call feature with a complete UI interface.
    Caller
    Callee
    
    
    
    
    
    

    Environment preparations

    Xcode 13 or later.
    Two iOS 13.0 or later devices.

    Step 1: Download the Demo

    1. Download the TUICallKit Demo source code from GitHub, or directly run the following command in the command line:
    2. Enter the iOS project directory in the command line:
    cd TUICallKit/iOS/Example
    3. Load the dependency library:
    pod install
    Note:
    If you haven't installed CocoaPods, you can refer to this for instructions on how to install.

    Step 2: Configure the Demo

    1. Activate the audio and video services, to obtain the SDKAppID and SDKSecretKey.
    
    
    
    2. Open the /iOS/Example/Debug/GenerateTestUserSig.swift file and enter the SDKAppID and SDKSecretKey obtained when activating the service:
    
    
    

    Step 3: Running the Demo

    1. In XCode, select the device you want to run the Demo on as shown below:
    
    
    
    2. After selection, click run to deploy our TUICallKit Android Demo to the target device.

    Make the first call

    Note:
    To experience the complete audio and video calling process, please log into the Demo on two devices as two different users, with one acting as the caller and the other as the callee.
    1. Log in & Signup
    Please enter the ID at the User ID. If your current User ID has not been used before, you will be taken to the Signup screen, where you can set your own avatar and nickname.
    
    
    
    Note:
    Try to avoid setting your User ID to simple strings like "1", "123", "111", as TRTC does not support the same User ID being logged into from multiple devices. Such User IDs like "1", "123", "111" are easily occupied by your colleagues during collaborative development, leading to login failures. Therefore, we recommend setting highly recognizable User IDs while debugging.
    2. Make a phone call
    2.1 The caller should click 1V1 Call on the interface, enter the callee's User ID in the pop-up interface, and select the desired call type.
    2.2 Click Initiate Call.
    
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support