メインコンテンツにジャンプ

Getting Started

ターミナルウィンドウ
bun add @capgo/capacitor-realtimekit
bunx cap sync
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';

__CAPGO_KEEP_0__ プラグインを使用する他のメソッドよりも前に、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,
});

StartMeetingOptions

会議開始オプション

会議開始のための設定オプション

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 を使用してダッシュボードと __CAPGO_KEEP_0__ の操作を計画している場合、接続してください。 Getting Started to plan dashboard and API operations, connect it with Using @capgo/capacitor-realtimekit for the native capability in Using @capgo/capacitor-realtimekit API 本試给 for the implementation detail in API 本試给 主子 for the implementation detail in 主子 API 台给 for the implementation detail in API 台给, 和 车会 for the implementation detail in 车会