Guide
스크린 레코더에 대한 튜토리얼
capgo의 @capacitor/__CAPGO_KEEP_2__-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');
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-screen-recorder/
- 문서: /docs/plugins/screen-recorder/
@capgo/capacitor-screen-recorder를 사용하는 경우 계속하세요.
__CAPGO_KEEP_0__를 사용하는 경우 Using @capgo/capacitor-screen-recorder __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-screen-recorder와 연결하세요. capgo/capacitor-screen-recorder의 구현 세부 사항을 참조하세요. @capgo/capacitor-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.