시작 가이드
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-screen-recorder`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/screen-recorder/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치bun add @capgo/capacitor-screen-recorderbunx cap syncImport
‘Import’ 제목의 섹션import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API 개요
API 개요 제목의 섹션start
‘start’ 제목의 섹션기기 화면 녹화 시작.
기기 화면 녹화를 시작하며 optional 오디오 캡처도 가능합니다. 사용자는 이미 허용된 경우 화면 녹화 권한을 요청받을 것입니다. iOS에서 시스템 녹화 UI가 표시됩니다. Android에서 녹화는 권한이 허용된 후 즉시 시작됩니다.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });stop
‘stop’ 제목의 섹션현재 화면 녹음 중지.
현재 화면 녹음을 중지하고 비디오를 기기 카메라 롤 또는 갤러리에 저장합니다. iOS에서 시스템은 녹음의 미리보기 화면을 표시하고 Android에서는 비디오를 직접 갤러리에 저장합니다.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');진실의 근원
“진실의 근원”이라는 제목의 섹션이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.