Getting Started
このプラグインのインストール手順とフルマークダウンガイドを含むセットアップ用の質問をコピーしてください。
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.
Install
インストールbun add @capgo/capacitor-screen-recorderbunx cap syncImport
インポートimport { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API オーバービュー
API オーバービューstart
startデバイス画面の録画を開始します。デバイス画面の録画とオプションでオーディオのキャプチャを開始します。ユーザーは、すでに許可が与えられている場合を除いて、画面の録画の許可を求められます。iOSの場合、システムの録画UIが表示されます。Androidの場合、許可が与えられた後すぐに録画が開始されます。.
__CAPGO_KEEP_0__
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 がアップストリームで変更された場合に、再度 Sync を実行してください。
Getting Started から続けて
「Getting Started から続けて」タイトルのセクションCloudflare、Capacitor、GitHub、Capgo、API、SDK、CLI、npm、bun を使用している場合 スタート ネイティブのメディアとインターフェイスの動作を計画し、 Using @capgo/capacitor-screen-recorder Using @capgo/capacitor-screen-recorder Using @capgo/capacitor-live-activities Using @capgo/capacitor-live-activities @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player Using @capgo/capacitor-video-player @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.