跳过内容

开始使用

终端窗口
bun add @capgo/capacitor-realtimekit
bunx cap sync
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';

初始化RealtimeKit插件,用于其他方法的调用。

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

使用内置UI开始会议。 仅在Android和iOS上可用。

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在上游发生变化时,请重新运行同步。

从开始使用继续

开始使用

如果您正在使用 开始使用 规划仪表板和API操作 使用 @capgo/capacitor-realtimekit 使用 @capgo/capacitor-realtimekit API 简介 查看 API 简介 介绍 查看 介绍 API 密钥 查看 API 密钥 设备 查看 设备