@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_KEEP_0__/__CAPGO_KEEP_1__-screen-recorder」の実装詳細については、「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-screen-recorder」を参照してください。 @capgo/capacitor-screen-recorder for the implementation detail in @capgo/capacitor-screen-recorder, __CAPGO_KEEP_1__ Capacitor Screen Recorderプラグイン 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.