This document describes how to quickly integrate live_flutter_plugin (Tencent Cloud RT-Cube MLVB Flutter plugin) into your project. For the demo project, visit GitHub.
The SDK for Flutter has been released to the Pub repository. You can configure pubspec.yaml
to download the update automatically.
Add the following dependencies to pubspec.yaml
of your project:
dependencies:
live_flutter_plugin: latest version number
Get camera and mic permissions to enable the audio and video call features.
Info.plist
:<key>NSCameraUsageDescription</key>
<string>Video calls are possible only with camera permission.</string>
<key>NSMicrophoneUsageDescription</key>
<string>You can make audio calls only if you grant the app mic permission.</string>
live_flutter_plugin
, complete the following configuration:import 'package:live_flutter_plugin/v2_tx_live_premier.dart';
/// Tencent Cloud license management page (https://console.tencentcloud.com/live/license)
setupLicense() {
// The license URL of the current application
var LICENSEURL = "";
// The license key of the current application
var LICENSEURLKEY = "";
V2TXLivePremier.setLicence(LICENSEURL, LICENSEURLKEY);
}
For more FAQs, see Flutter.
Activate CSS. In the CSS console, go to Auxiliary Tools > Address Generator to generate a stream push URL. For more information, see Publishing/Playback URL.
Check whether io.flutter.embedded_views_preview
in info.plist
is YES
.
/example/android/app/src/main/AndroidManifest.xml
.xmlns:tools="http://schemas.android.com/tools"
to manifest
.tools:replace="android:label"
to application
.
Was this page helpful?