始め方
このプラグインのインストールステップとフルマークダウンガイドのセットアッププロンプトをコピーする
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-screen-recorder`
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/screen-recorder/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.
インストール
「インストール」のセクションCapgoのAI-Assistedセットアップを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください:
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-screen-recorder` plugin in my project.Manualセットアップを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください:
bun add @capgo/capacitor-screen-recorderbunx cap syncインポート
「インポート」のセクションimport { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API の概要
「API の概要」のセクションstart
「start」のセクションデバイス画面の録画を開始します。
オプションでオーディオのキャプチャも可能です。ユーザーは画面録画の許可を求められます。iOSの場合、システムの録画UIが表示されます。Androidの場合、許可が与えられた後すぐに録画が開始されます。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });stop
「stop」のセクション現在の画面録画を停止します。
動画を停止し、デバイスのカメラロールまたはギャラリーに保存します。iOSでは、システムはレコーディングのプレビューを表示します。Androidでは、直接ギャラリーに保存されます。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');真実の源
「真実の源」のセクションこのページはプラグインの src/definitions.ts再度、公開されたAPIがアップストリームで変更された場合に、パブリックAPIを再同期してください。
「Getting Started」から続けてください
「Getting Started」から続けてください「Getting Started」を使用 「Getting Started」を使用 「Getting Started」を使用 Using @capgo/capacitor-screen-recorder native機能の使用に使用される@capgo/capacitor-screen-recorder native機能の使用に使用される@capgo/capacitor-live-activities native機能の使用に使用される@capgo/capacitor-live-activities @capgo/capacitor-live-activities @capgo/capacitor-live-activitiesの実装詳細 native機能の使用に使用される@capgo/capacitor-video-player native機能の使用に使用される@capgo/capacitor-video-playerと @capgo/capacitor-video-player @capgo/capacitor-video-playerの実装詳細