가이드
스크린 레코더에 대한 튜토리얼
스크린 레코더를 사용하는 방법: @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/