tencent cloud

Feedback

Last updated: 2022-05-19 10:50:53

    This document describes how to quickly integrate the TRTC Flutter SDK into your project.

    Note:

    Currently, screen sharing and device selection are not supported on Windows or macOS.

    Environment Requirements

    • Flutter 2.0 or later
    • Developing for Android:
      • Android Studio 3.5 or later
      • Devices with Android 4.1 or later
    • Developing for iOS and macOS:
      • Xcode 11.0 or later
      • OS X 10.11 or later
      • A valid developer signature for your project
    • Developing for Windows:
      • OS: Windows 7 SP1 or later (64-bit based on x86-64)
      • Disk space: At least 1.64 GB of space after the IDE and relevant tools are installed
      • Visual Studio 2019

    Integrating the SDK

    The Flutter SDK has been published on Pub. You can have the SDK downloaded and updated automatically by configuring pubspec.yaml.

    1. Add the following dependency to pubspec.yaml of your project.

      dependencies:
      tencent_trtc_cloud: latest version number
      
    2. Obtain camera and mic permissions to enable the audio and video call features.

      1. Add requests for camera and mic permissions in Info.plist:
        <key>NSCameraUsageDescription</key>
        <string>Video calls are possible only with camera permission.</string>
        <key>NSMicrophoneUsageDescription</key>
        <string>Audio calls are possible only with mic access.</string>
        
      2. Add the field io.flutter.embedded_views_preview and set the value to Yes.

    FAQs

    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