搜尋套件、儲存庫與 APP 分類

agora_uikit 封面
套件詳情v1.3.10

agora_uikit

Flutter 插件,只需幾行程式碼即可輕鬆將 Agora 視訊通話或即時視訊串流整合到您的應用程式中。

近 30 天下載
508
喜歡數
440
Pub 分數
80

安裝套件

flutter pub add agora_uikit

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Agora UIKit 是一個 Flutter 插件,可讓開發者以最少的程式碼快速將即時視訊通話和直播視訊串流整合至應用程式中。由 Agora.io 所打造,提供預先建構好的視訊會議 UI 元件,讓實作音訊/視訊通話、螢幕共用及直播廣播等功能變得輕鬆簡單。該套件透過直覺的 API 簡化複雜的即時通訊工作流程,大幅減少開發時間。支援跨平台的可擴展、低延遲互動,非常適合需要無縫視訊連接的應用程式。

適用情境

  • 視訊會議應用
  • 直播串流平台
  • 虛擬課堂
  • 遠端醫療諮詢
  • 團隊協作工具

主要特色

  • 預建構的視頻通話UI
  • 只需幾行代碼即可輕鬆整合
  • 支援即時串流與群組通話
  • 低延遲即時通訊
  • 可自定義的 UI 組件

適合對象

  • 尋求快速視頻整合的開發者
  • 需要即時視頻功能的應用
  • 構建通訊密集型應用的初創公司
  • 教育與遠端醫療平台

使用建議

  • 需要 Agora 帳戶和 API 密鑰
  • 無需額外編碼即可進行有限的自定義
  • 依賴於阿戈拉的後端基礎設施
  • 可能需要平台特定的設定才能實現完整功能

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

[ARCHIVED] Agora VideoUIKit for Flutter

⚠️ This project is no longer maintained and has been archived.
Please note that this repository is now in a read-only state and will not receive any further updates or support. We recommend migrating to the following alternatives:

  • Agora SDK: For developers seeking a customizable solution with full control over the user experience. Learn more
  • Agora App Builder: For those preferring a no-code approach to integrate real-time engagement features. Get started

For documentation and support, please visit the Agora Documentation.


Platform GitHub Workflow Status License: MIT

Instantly integrate Agora video calling or video streaming into your Flutter application.

NOTE: The Flutter VideoUIKit( >version 1.1.0) uses the latest version of the Agora 4.x SDK. To know more about the changes and the new features in the 4.x SDK, kindly take a look at the docs.

Getting started

Agora Flutter VideoUIKit Layout Sample

Roadmap
  • [ ] Add Usernames
  • [x] More Event Callbacks
  • [x] Add RTM SDK
  • [x] Screen Sharing (Currently in Beta)
  • [x] Layout for One to One Video Call
  • [ ] Layout for Voice Calls
  • [ ] Re-orderable list view (Floating Layout)
  • [ ] Cloud recording
  • [ ] Promoting an audience member to a broadcaster role.
  • [x] Muting/Unmuting a remote member
  • [x] Flutter Web Support as a pre-release
  • [ ] Flutter Desktop Support as a pre-release
Requirements
Installation

In your Flutter application, add the agora_uikit as a dependency inside your pubspec.yaml file.

In your Android level build.gradle add this at the end of the repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
Device Permission

Agora Video SDK requires camera and microphone permission to start video call.

Android

Open the AndroidManifest.xml file and add the required device permissions to the file.

<manifest>
...
<uses-permission  android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission  android:name="android.permission.INTERNET"  />
<uses-permission  android:name="android.permission.RECORD_AUDIO"  />
<uses-permission  android:name="android.permission.CAMERA"  />
<uses-permission  android:name="android.permission.MODIFY_AUDIO_SETTINGS"  />
<uses-permission  android:name="android.permission.ACCESS_NETWORK_STATE"  />
<!-- The Agora SDK requires Bluetooth permissions in case users are using Bluetooth devices.-->
<uses-permission  android:name="android.permission.BLUETOOTH"  />
...
</manifest>
iOS

Open info.plist and add:

  • Privacy - Microphone Usage Description, and add a note in the Value column.
  • Privacy - Camera Usage Description, and add a note in the Value column.

Your application can still run the voice call when it is switched to the background if the background mode is enabled. Select the app target in Xcode, click the Capabilities tab, enable Background Modes, and check Audio, AirPlay, and Picture in Picture.

Usage

// Instantiate the client
final AgoraClient client = AgoraClient(
  agoraConnectionData: AgoraConnectionData(
    appId: "<--Add Your App Id Here-->",
    channelName: "test",
  ),
);

// Initialize the Agora Engine
@override
void initState() {
  super.initState();
  initAgora();
}

void initAgora() async {
  await client.initialize();
}

// Build your layout
@override
Widget build(BuildContext context) {
  return MaterialApp(
    home: Scaffold(
      body: SafeArea(
        child: Stack(
          children: [
            AgoraVideoViewer(client: client), 
            AgoraVideoButtons(client: client),
          ],
        ),
      ),
    ),
  );
}

VideoUIKits

The plan is to grow this library and have similar offerings across all supported platforms. There are already similar libraries for Android, iOS, React Native, and Web React, so be sure to check them out.

所屬分類

依賴

依賴清單 5 項

原始碼儲存庫

使用此套件的專案