tencent cloud

Feedback

FAQs for Beginners

Last updated: 2023-09-28 11:51:16

    What is UserSig?

    UserSig is a security signature designed by Tencent Cloud to prevent attackers from accessing your Tencent Cloud account. Currently, Tencent Cloud services including TRTC, Chat, and MLVB all use this security mechanism. Whenever you want to use these services, you must provide three key pieces of information, i.e. SDKAppID, UserID, and UserSig in the initialization or login function of the corresponding SDK. SDKAppID is used to identify your application, and UserID your user. UserSig is a security signature calculated based on the two parameters using the HMAC SHA256 encryption algorithm. Attackers cannot use your Tencent Cloud traffic without authorization as long as they cannot forge a UserSig. See the figure below for how UserSig is calculated. Basically, it involves hashing crucial information such as SDKAppID, UserID, and ExpireTime.
    // UserSig formula, in which `secretkey` is the key used to calculate UserSig
    
    usersig = hmacsha256(secretkey, (userid + sdkappid + currtime + expire +
    base64(userid + sdkappid + currtime + expire)))
    Note
    currtime is the current system time and expire the expiration time of the signature.
    For detailed directions on how to calculate and get UserSig, please see UserSig.
    

    How many rooms can there be in TRTC at the same time?

    There can be up to 4,294,967,294 concurrent rooms in TRTC. No limits are set on the number of non-concurrent rooms.
    

    How long is the average delay in TRTC?

    The average end-to-end delay of TRTC around the globe is less than 300 ms.
    

    Does TRTC support screen sharing on PCs?

    Yes. For details, see the following documents:
    For more information on the screen sharing APIs, please see Client APIs > All Platforms (C++) > Overview or Client APIs > Electron > Overview.
    

    What platforms does TRTC support?

    TRTC supports platforms including iOS, Android, Windows (C++), Windows (C#), macOS, web, and Electron. For more information, see Supported Platforms.
    

    How many people can there be in a TRTC call?

    In call scenarios, each room can accommodate up to 300 concurrent users, and up to 50 of them can turn on their cameras or mics.
    In live streaming scenarios, each room can accommodate up to 100,000 concurrent users, and up to 50 of them can be assigned the anchor role and turn on their cameras or mics.
    

    How do I start a live streaming session in TRTC?

    TRTC offers a dedicated low-latency interactive live streaming solution that allows up to 100,000 participants with co-anchoring latency kept as low as 200 ms and watch latency below 1s. It adapts excellently to poor network conditions and is optimized for the complicated mobile network environments. For detailed directions, please see Live Streaming Mode.
    

    What roles are supported during live streaming in TRTC? How do they differ from each other?

    The live streaming scenarios (TRTCAppSceneLIVE and TRTCAppSceneVoiceChatRoom) support two roles: TRTCRoleAnchor (anchor) and TRTCRoleAudience (audience). An anchor can both send and receive audio/video data, but audience can only receive and play back others' data. You can call switchRole() to switch roles.
    

    Can I kick a user out, forbid a user to speak, or mute a user in a TRTC room?

    Yes, you can.
    To enable the features through simple signaling operations, use sendCustomCmdMsg, the custom signaling API of TRTC, to define your own control signaling, and users who receive the message will perform the action expected. For example, to kick out a user, just define a kick-out signaling, and the user receiving it will exit the room.
    If you want to implement a more comprehensive operation logic, we recommend that you use Instant Messaging to map the TRTC room to an Chat group and enable the features via the sending/receiving of custom messages in the group.
    

    Can TRTC pull and play back streams through CDN?

    Yes. For details, please see CDN Relayed Live Streaming.
    

    Does TRTC support Swift integration on iOS?

    Yes. Just integrate the SDK in the same steps as you do a third-party library or by following the steps in Demo Quick Start (iOS & macOS).
    

    What browsers does the SDK for web support?

    It is well supported by Chrome (desktop) and Safari (desktop and mobile) but poorly or not supported by other platforms such as browsers on Android. For more information, please see Client APIs > Supported Platforms. You can open WebRTC Support Level Test in a browser to test whether the environment fully supports WebRTC.
    

    What do the errors NotFoundError, NotAllowedError, NotReadableError, OverConstrainedError, and AbortError found in the log of TRTC SDK for web mean?

    Error
    Description
    Suggested Solution
    NotFoundError
    The media (audio, video, or screen sharing) of the request parameters are not found.
    For example, this error occurs if the PC has no cameras but the browser requests a video stream.
    Remind users to check devices such as cameras and mics before making a call.
    NotAllowedError
    The user has rejected the request of the current browser instance to access the camera/mic or share screens.
    Remind the user that audio/video calls are not possible without camera/mic access.
    NotReadableError
    The user has granted access to the requested device, but it is still inaccessible due to a hardware, browser or webpage error.
    Handle the error according to the error message returned, and send this message to the user: “The camera/mic cannot be accessed. Please make sure that no other applications are requesting access and try again.”
    OverConstrainedError
    The cameraId/microphoneId value is invalid.
    Make sure that the cameraId/microphoneId value passed in is valid.
    AbortError
    The device cannot be accessed due to an unknown reason.
    -
    For more information, please see initialize.
    

    How do I check whether TRTC SDK for web can get the device (camera/mic) list?

    1. Check whether the browser can access the devices: Open the console with the browser and enter navigator.mediaDevices.enumerateDevices() to see if the device list can be obtained.
    Normally, a promise containing an array of MediaDeviceInfo objects will be returned, each object corresponding to an available media device.
    If the SDK fails to enumerate the devices, a rejected promise will be returned, indicating that the browser fails to detect any devices. You need to check the browser or devices.
    2. If the device list can be obtained, enter navigator.mediaDevices.getUserMedia({ audio: true, video: true }) to see if the MediaStream object can be returned. If it is not returned, it indicates that the browser failed to obtain any data. You need to check your browser configuration.
    

    How do live streaming, interactive live streaming, TRTC, and relayed live streaming differ from and relate to each other?

    Live streaming (keywords: one-to-many, RTMP/HLS/HTTP-FLV, CDN) Live streaming consists of the push end, the playback end, and the cloud live streaming service. Streams are pushed over the universal protocol RTMP, delivered through CDNs, and can be watched over protocols including RTMP, HTTP-FLV, or HLS (for HTML5).
    Interactive live streaming (keywords: co-anchoring, anchor competition) In interactive live streaming, audience can co-anchor with anchors and anchors from different rooms can compete with each other.
    Real-time communication (keywords: multi-person interaction, UDP-based proprietary protocol, low latency) The main application scenarios for TRTC (Tencent Real-Time Communication) are audio/video interaction and low-latency live streaming. It uses a UDP-based proprietary protocol and can keep the latency as low as 100 ms. Typical applications include zoom meeting, FaceTime, and online group classes. TRTC is supported by mainstream platforms including iOS, Android, and Windows and can communicate over WebRTC. It supports relaying streams to CDNs through on-cloud stream mixing.
    Relayed live streaming (keywords: on-cloud stream mixing, RTC relayed live streaming, CDN) The relayed live streaming technology replicates multiple streams in a low-latency co-anchoring room and mixes them into one stream in the cloud before pushing it to a live streaming CDN for delivery and playback.
    

    How do I view my call duration and usage?

    You can find the information on the Usage Statistics page of the TRTC console.
    

    How do I fix stutter?

    You can check call quality by room ID or user ID in Monitoring Dashboard in the TRTC console.
    Check the send and receive statistics from the recipient’s perspective.
    Check the send and receive packet loss. High packet loss suggest that the stutter may be caused by unstable network connections.
    Check the frame rate and CPU usage. Both low frame rates and high CPU usage can cause stutter.
    

    How do I fix low-quality, blurry and pixelated videos?

    Resolution is mainly associated with bitrate. Check whether the bitrate is set too low. Pixelation tends to occur when resolution is high but bitrate low.
    TRTC dynamically adjusts bitrate and resolution based on network conditions according to its on-cloud QoS control policy. It reduces the bitrate in case of poor network connections, which leads to decreased definition.
    Check whether the VideoCall or Live mode is used during room entry. As the VideoCall mode is designed for calls and features low latency and smoothness, it tends to sacrifice video quality for smoothness when network connections are poor. We recommend that you use the Live mode for application scenarios with high requirements on video quality.
    

    How do I view the latest version number of the SDK?

    In the case of automatic loading, latest.release will load the latest version automatically. You don’t need to modify the version number. For detailed instructions on integration, please see SDK Quick Integration.
    You can find the latest version number of the SDK on the release notes page.
    For iOS & Android, please see Release Notes (App).
    For web, please see Release Notes (Web).
    For Electron, please see Release Notes (Electron).
    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