开始使用
复制一个包含安装步骤和本插件的完整 Markdown 指南的配置提示。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-realtimekit`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/realtimekit/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
您可以使用我们的 AI 助手设置来安装插件。使用以下命令将 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.如果您prefer Manual Setup,安装插件并运行以下命令并遵循以下平台特定的说明:
bun add @capgo/capacitor-realtimekitbunx cap sync导入
导入import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';API概述
API概述initialize
初始化初始化 RealtimeKit 插件,用于其他方法的调用。
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.initialize();startMeeting
开始会议开始会议,仅在 Android 和 iOS 平台上可用。
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.startMeeting({ authToken: 'your-auth-token', enableAudio: true, enableVideo: true,});StartMeetingOptions
Section titled “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;}真实数据来源
Section titled “真实数据来源”此页面由插件生成。 src/definitions.ts当公共 API 上游更改时,请重新运行同步。
继续从 Getting Started
Section titled “继续从 Getting Started”如果您正在使用 Getting Started 来规划仪表板和 API 操作,请将其连接到 使用 @capgo/capacitor-realtimekit 使用 @capgo/capacitor-realtimekit API 简介 查看 API 简介 介绍 查看 介绍 API 密钥 查看 API 密钥 设备 查看 设备