はじめに
このプラグインのインストール ステップとフル マークダウン ガイドまで含むセットアップ ポイントをコピーできます。
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.
インストール
「インストール」のセクションAI-Assisted Setupを使用してプラグインをインストールできます。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 Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-screen-recorderbunx cap syncインポート
「インポート」のセクションimport { ScreenRecorder } from '@capgo/capacitor-screen-recorder';APIの概要
APIの概要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
停止現在の画面録画を停止します。
画面録画を停止し、デバイスのカメラロールまたはギャラリーに動画を保存します。iOSではシステムが録画のプレビューを表示します。Androidでは動画が直接ギャラリーに保存されます。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');真実の源
ソース オブ トゥルースこのページはプラグインから生成されています。 src/definitions.ts. 公開 API がアップストリームで変更されたときは、再度同期を実行してください。
続けてGetting Started
続けてGetting Startedあなたが使用しているプラグインが Getting Started ネイティブメディアとインターフェイスの動作を計画する場合、 Using @capgo/capacitor-screen-recorder Using @capgo/capacitor-screen-recorder Using @capgo/capacitor-screen-recorder Using @capgo/capacitor-live-activities @capgo/capacitor-live-activities の実装詳細については @capgo/capacitor-live-activities を参照してください。 Capgoで@capgo/capacitor-video-playerを使用する Capgoで@capgo/capacitor-video-playerを使用する Capgoで@capgo/capacitor-video-playerを使用する for the implementation detail in @capgo/capacitor-video-player.