시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사합니다.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-ricoh360`
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/ricoh360-camera/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-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. 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-ricoh360` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하여 플랫폼에 따라 달라지는 지침을 따르세요.
npm install @capgo/capacitor-ricoh360npx cap sync‘__CAPGO_KEEP_0__’를 임포트합니다.
__CAPGO_KEEP_0__ 소개import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API Overview
API__CAPGO_KEEP_0__
initialize
__CAPGO_KEEP_0__ 초기화SDK를 카메라 URL로 초기화합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
__CAPGO_KEEP_0__ 카메라 자산 가져오기URL에서 카메라 자산을 가져와 base64로 반환합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
__CAPGO_KEEP_0__ 카메라 파일 목록카메라에 저장된 파일 목록을 표시합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
__CAPGO_KEEP_0__ 사진 촬영사진을 찍습니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
__CAPGO_KEEP_0____CAPGO_KEEP_3__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
__CAPGO_KEEP_0____CAPGO_KEEP_4__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
__CAPGO_KEEP_0____CAPGO_KEEP_5__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
__CAPGO_KEEP_0____CAPGO_KEEP_3__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });__CAPGO_KEEP_4__
__CAPGO_KEEP_0__InitializeOptions
__CAPGO_KEEP_5__export interface InitializeOptions { url: string;}CommandResponse
__CAPGO_KEEP_0__export interface CommandResponse { session?: string; info?: string; preview?: string; picture?: string; settings?: string;}GetCameraAssetOptions
카메라 자산 옵션 가져오기export interface GetCameraAssetOptions { url: string; saveToFile?: boolean;}GetCameraAssetResponse
카메라 자산 응답 가져오기export interface GetCameraAssetResponse { statusCode: number; data: string; // base64 encoded data filePath?: string;}ListFilesOptions
파일 목록 가져오기 옵션export interface ListFilesOptions { fileType?: 'all' | 'image' | 'video'; startPosition?: number; entryCount?: number; maxThumbSize?: number; _detail?: boolean;}ListFilesResponse
파일 목록 가져오기 응답export interface ListFilesResponse { results: { entries: { name: string; fileUrl: string; size: number; dateTimeZone: string; width?: number; height?: number; previewUrl?: string; _projectionType?: string; isProcessed?: boolean; _thumbSize?: number; }[]; totalEntries: number; };}VideoCaptureOptions
비디오 캡처 옵션export interface VideoCaptureOptions { // Define any specific options needed for capturing a video resolution?: '4K' | '2K'; frameRate?: number; bitrate?: number;}LivePreviewOptions
라이브 미리보기 옵션export interface LivePreviewOptions { displayInFront?: boolean; cropPreview?: boolean;}원본
원본이 페이지는 플러그인의 src/definitions.ts업스트림에서 API이 변경되면 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속이러한 기능을 사용하고 있다면 Getting Started Getting Started를 사용하여 네이티브 미디어 및 인터페이스 동작을 계획하고 있으면 Using @capgo/capacitor-live-activities Using @capgo/capacitor-live-activities에서 사용하는 네이티브 기능 @capgo/capacitor-live-activities @capgo/capacitor-live-활동 상세 Using @capgo/capacitor-비디오 플레이어 Using @capgo/capacitor-비디오 플레이어의 원생 기능 @capgo/capacitor-비디오 플레이어 Using @capgo/capacitor-비디오 플레이어의 활동 상세 Using @capgo/capacitor-네이티브 네비게이션 Using @capgo/capacitor-네이티브 네비게이션의 원생 기능