コンテンツにジャンプ

Getting Started

GitHub

「インストール」のセクション

Ready to paste

AI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。

ターミナル画面
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

次の質問を使用してください。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-realtimekit` plugin in my project.

Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の説明を参照してください。

ターミナル画面
bun add @capgo/capacitor-realtimekit
bunx cap sync
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';

初期化用プラグインを使用する他のメソッドの前に実行します。

import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.initialize();

AndroidおよびiOSで使用可能なビルトインUIを使用して会議を開始します。

import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.startMeeting({
authToken: 'your-auth-token',
enableAudio: true,
enableVideo: true,
});

会議を開始するための設定オプションです。

export interface StartMeetingOptions {
/**
* Authentication token for the participant.
* This token is required to join the Cloudflare Calls meeting.
*
* @since 7.0.0
*/
authToken: string;
/**
* Whether to join with audio enabled.
* Default is true.
*
* @default true
* @since 7.0.0
*/
enableAudio?: boolean;
/**
* Whether to join with video enabled.
* Default is true.
*
* @default true
* @since 7.0.0
*/
enableVideo?: boolean;
}

このページはプラグインの src/definitions.tsパブリック API がアップストリームで変更された場合に再度 Sync を実行してください。

Getting Started から続けてください

「Getting Started から続けてください」セクション

Capacitor を使用している場合 Getting Started ダッシュボードと API の作業を計画する場合、Capacitor を Capacitor の @capgo/capacitor-realtimekit Capacitor の @capgo/capacitor-realtimekit Capacitor の API オーバービュー APIの実装詳細についてはOverviewの Introduction __CAPGO_KEEP_0__の実装詳細についてはIntroductionの APIのキーの APIの実装詳細についてはAPI Keysの、 Devices __CAPGO_KEEP_0__の実装詳細についてはDevicesの