![]() | ![]() | ![]() |
| | |

SDKAppID and SDKSecretKey on Basic informaction. SDKAppID and SDKSecretKey is needed for running demo. 
git clone https://github.com/Tencent-RTC/TRTC_Flutter.git
# TRTC Flutter SDK Plugin Package├── lib/ # TRTC SDK Dart source code├── android/ # TRTC SDK Android native implementation├── ios/ # TRTC SDK iOS native implementation├── macos/ # TRTC SDK macOS native implementation├── windows/ # TRTC SDK Windows native implementation├── ohos/ # TRTC SDK HarmonyOS native implementation├── example/ # ⭐ Example Demo Application│ ├── lib/ # Application source code│ ├── assets/ # Assets (images/music)│ ├── android/ # Android host project│ ├── ios/ # iOS host project│ ├── macos/ # macOS host project│ ├── windows/ # Windows host project│ ├── ohos/ # HarmonyOS host project│ ├── test/ # Unit tests│ ├── pubspec.yaml # Demo dependency configuration│ ├── README.md│ └── analysis_options.yaml├── pubspec.yaml # Dependency configuration├── CHANGELOG.md├── README.md├── LICENSE├── analysis_options.yaml├── dartdoc_options.yaml└── ffigen.yaml # FFI binding generation configuration
example/lib/debug/generate_test_user_sig.dart.generate_test_user_sig.dart file:sdkAppId: A placeholder by default. Set it to the actual SDKAppID.secretKey: A placeholder by default. Set it to the actual secret key(SDKSecretKey).
SDKSecretKey in the client code. In this method, SDKSecretKey may be easily decompiled and reversed, and if your key is disclosed, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for the local execution and debugging of TRTC-Simple-Demo./example directory in the demo source code, and execute the following commands.# Install Flutter Dependenciesflutter pub get
flutter devices
flutter run -d <device_id>
cd iospod install
ios/Runner.xcworkspace in Xcode, configure your code signing settings, select a device, and build and run the app.start ms-settings:developersflutter config --enable-windows-desktop # Enable Windows Desktop Development Supportflutter build windows # Build Only (Do Not Run)flutter run -d windows # Build and Run Automatically
flutter config --enable-macos-desktop # Enable macOS Desktop Development Supportcd macospod installflutter build macos --debug # Build Only (Do Not Run)flutter run -d macos # Build and Run Automatically
Documents/log of the application sandbox/sdcard/log/tencent/liteav/sdcard/Android/data/package name/files/log/tencent/liteav/info.plist of your project, the value of io.flutter.embedded_views_preview is YES. /example/android/app/src/main/AndroidManifest.xml.xmlns:tools="http://schemas.android.com/tools" to manifest.tools:replace="android:label" to application.

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan