ガイド
スクリーン レコーダーに関するチュートリアル
使用方法: @capgo/capacitor-screen-recorder
Capacitor スクリーン レコーダー プラグイン
このプラグインは、デバイスのスクリーンを録画し、オプションで音声も録音することができます。
bun add @capgo/capacitor-screen-recorder
bunx cap sync
インストール
startこのプラグインが公開するものstop- デバイスのスクリーンを録画します。
- 現在のスクリーン レコーディングを停止します。
start
デバイス画面の録画を開始します。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audio
await ScreenRecorder.start();
// Start recording with audio
await ScreenRecorder.start({ recordAudio: true });
stop
現在の画面録画を停止します。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();
console.log('Recording saved to gallery');
フルリファレンス
- GitHub https://github.com/Cap-go/capacitor-screen-recorder/
- ドキュメント: /docs/plugins/screen-recorder/