@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/
Keep going from Using @capgo/capacitor-screen-recorder
__CAPGO_KEEP_0__を使用している場合 Using @capgo/capacitor-screen-recorder ネイティブのメディアとインターフェイスの動作を計画する場合、__CAPGO_KEEP_0__と接続する @capgo/capacitor-screen-recorder for the implementation detail in @capgo/capacitor-screen-recorder, Getting Started Getting Startedの実装詳細を参照する Using @capgo/capacitor-live-activities native機能の使用に@capgo/capacitor-live-activitiesを使用します。 @capgo/capacitor-live-activities 実装詳細の@capgo/capacitor-live-activitiesの使用 Using @capgo/capacitor-video-player native機能の使用に@capgo/capacitor-video-playerを使用します。