tencent cloud

Game Multimedia Engine

製品アップデート情報
製品紹介
製品概要
優位性のある特徴
製品機能
ユースケース
セキュリティコンプライアンス認証
初心者ガイド
SDKダウンロードガイド
製品機能体験
基本機能Demo
シーン化体験
コンソールガイド
使用量の表示
サービスの有効化
クイックスタート
Quick Integration of SDK
Quick Integration of Sample Project
基本機能開発ガイド
Authentication Key
リアルタイム音声ロール設定
音質設定
拡張機能開発ガイド
サーバー側のレコーディング
レンジボイス
3Dサウンド
効果音と伴奏
ネットワークオーディオストリーム転送ルーティング
カスタムメッセージチャネル
社内ファイアーフォール制限への対応について
Language Parameter Reference List
GMEルーム管理機能の導入
クライアントAPI
SDK for Unity
SDK for Unreal Engine
Cocos2D SDK
SDK for Windows
SDK for iOS
SDK for Android
SDK for macOS
H5 SDK
Electron SDK
SDK for Flutter
SDK Version Upgrade Guide
エラーコード
Toolchain
Server APIs
History
Introduction
API Category
Usage APIs
Recording APIs
Making API Requests
Voice Chat APIs
Application APIs
Data Types
Error Codes
よくある質問
製品機能質問
問題解決ガイド
課金について
Sample Projectの使用上の問題
一般的な質問
認証について
リアルタイム音声ルーム参加失敗について
リアルタイム音声利用時に音声が聞こえない問題とオーディオ関連について
ネットワークについて
ボイス・ツー・テキスト変換について
プロジェクトエクスポートについて
Service Agreement
Service Level Agreement
お問い合わせ
用語集
GME ポリシー
データ処理とセキュリティ契約
プライバシーポリシー

Integrating SDK

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-01-18 15:15:48
This document describes how to configure a Flutter project for the GME APIs for Flutter.

Supported Platforms

The GME SDK for Flutter supports iOS and Android platforms.

Importing the SDK

Step 1. Download the GME SDK for Flutter

Download the SDK file in SDK Download Guide, which contains the GME plugin. Decompress the SDK file to a local directory.

Step 2. Add dependencies of the GME plugin to the Flutter project

Add GME dependencies to the pubspec.yaml file in your Flutter project. Note that the path parameter is the path where the SDK file is decompressed to.
dependencies:
flutter:
sdk: flutter
gme:
path: ../
After saving the pubspec.yaml file, run the flutter pub get command on the CLI to make the GME plugin in the project take effect (if the Flutter plugin is configured in your IDE, this command will be executed automatically once the file is saved).
flutter pub get

Modifying the iOS Project

1. In Terminal, go to the iOS project directory of your Flutter project and run pod install.
2. In the Xcode project, configure the following GME dependent library files (you can skip this step if such dependencies already exist in your project):



3. The GME SDK for iOS requires the following permissions:
Required background modes: Allows running in the background (optional).
Microphone Usage Description: Allows access to microphone.

Modifying the Android Project

1. As GME requires permissions such as call permission and uses the permission management plugin flutter permission-handler, you need to modify the project as follows to use the SDK for Android 31 or later (skip this step if the SDK is already in the project):



2. Add the project permissions to the Flutter project file android/app/src/AndroidManifest.xml (skip this step if such permissions have been added):
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック