시작하기
복사하여 설치, 동기화, 그리고 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시를 붙여넣기하세요.
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.
설치
설치 제목Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 기능을 추가하려면 다음 명령어를 사용하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음 명령어를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-screen-recorder` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-screen-recorderbunx cap syncImport
Import 제목import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API 개요
API 개요 제목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
__CAPGO_KEEP_0__현재 화면 녹화를 중단합니다.
현재 화면 녹화를 중단하고 디바이스의 카메라 롤 또는 갤러리에 비디오를 저장합니다. iOS에서 시스템은 녹화의 미리보기 화면을 표시합니다. Android에서 비디오는 직접 갤러리에 저장됩니다.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');참고 자료
원본의 진실이 페이지는 플러그인의 src/definitions.ts. upstream에서 API가 변경되면 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속Getting Started을 사용하여 자연스러운 미디어 및 인터페이스 동작을 계획하고 있습니다. Getting Started을 사용하여 Using @capgo/capacitor-screen-recorder for the native capability in Using @capgo/capacitor-screen-recorder, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-활동 for the implementation detail in @capgo/capacitor-live-활동, Using @capgo/capacitor-비디오 플레이어 for the native capability in Using @capgo/capacitor-비디오 플레이어, and @capgo/capacitor-비디오 플레이어 for the implementation detail in @capgo/capacitor-비디오 플레이어.