メインコンテンツにスキップ

Capgoのnpmを表示

ガイド

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

Download the Capgo app, then scan the QR code.

スクリーン レコーダー プラグイン プレビュー QR code

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

フル リファレンス

Keep going from Using @capgo/capacitor-screen-recorder

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