ガイド
スクリーンレコーダーのチュートリアル
capgoで使用する@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/
「@capgo/capacitor-screen-recorder」を使用し続けてください。
「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-screen-recorder」を使用している場合 @capgo/capacitor-screen-recorder」を使用して、ネイティブのメディアとインターフェイスの動作を計画します。@capgo/capacitor-screen-recorderを使用して、@capgo/capacitor-screen-recorderの実装詳細を接続します。 「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-screen-recorder」を使用して始めましょう capgoはcapacitor-screen-recorderを使用している場合 capgoはcapacitor-screen-recorderを使用している場合 __CAPGO_KEEP_0__は__CAPGO_KEEP_1__-screen-recorderを使用している場合 for the implementation detail in Getting Started、 Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities、 @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities、 and Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player。