メインコンテンツにスキップ
プラグインに戻る
@capgo/capacitor-screen-recorder
チュートリアル
@capgo/capacitor-screen-recorder

スクリーン録音

音声付きのスクリーン録音でチュートリアル、デモ、バグレポートを作成

ガイド

スクリーンレコーダーのチュートリアル

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');

フルリファレンス

「@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。