시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시를 복사하세요.
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.
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 syncimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API 개요
‘API 개요’ 제목의 섹션각 예제는 Snippet를 복사할 수 있도록 import를 반복합니다.
initialize
‘initialize’ 제목의 섹션SDK를 카메라 URL로 초기화합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
‘getCameraAsset’ 제목의 섹션__CAPGO_KEEP_0__ URL에서 카메라 자산을 검색하여 base64로 반환합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
__CAPGO_KEEP_1____CAPGO_KEEP_2__ 카메라에 저장된 파일 목록입니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
__CAPGO_KEEP_3____CAPGO_KEEP_4__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
__CAPGO_KEEP_5____CAPGO_KEEP_4__
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
__CAPGO_KEEP_6__실시간 미리보기 시작
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
“stopLivePreview” 섹션실시간 미리보기 중단
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
“readSettings” 섹션카메라 설정 읽기
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
“setSettings” 섹션카메라 설정 설정
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
“sendCommand” 섹션카메라에 raw 명령을 전송하세요
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });타입 참조
타입 참조 섹션InitializeOptions
초기화 옵션 섹션export interface InitializeOptions { url: string;}CommandResponse
명령 응답 섹션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
ListFilesOptions 섹션 제목export interface ListFilesOptions { fileType?: 'all' | 'image' | 'video'; startPosition?: number; entryCount?: number; maxThumbSize?: number; _detail?: boolean;}ListFilesResponse
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
VideoCaptureOptions 섹션 제목export interface VideoCaptureOptions { // Define any specific options needed for capturing a video resolution?: '4K' | '2K'; frameRate?: number; bitrate?: number;}LivePreviewOptions
LivePreviewOptions 섹션 제목export interface LivePreviewOptions { displayInFront?: boolean; cropPreview?: boolean;}실질적인 원천
실질적인 원천 섹션 제목이 페이지는 플러그인의 src/definitions.ts. API이 업스트림에서 변경될 때마다 다시 싱크를 실행하세요.
Getting Started에서 계속 진행하세요
Getting Started에서 계속 진행하는 방법Getting Started를 사용하여 Getting Started native 미디어 및 인터페이스 동작을 계획하고 싶다면 Using @capgo/capacitor-live-activities를 사용하여 Using @capgo/capacitor-live-activities에서 native 기능을 사용하기 위해 @capgo/capacitor-live-activities를 사용하여 @capgo/capacitor-live-activities에서 구현 세부 사항을 위해 Using @capgo/capacitor-video-player를 사용하여 Using @capgo/capacitor-video-player에서 native 기능을 사용하기 위해 @capgo/capacitor-video-player를 사용하여 @capgo/capacitor-video-player의 구현 세부 사항에 대해 Using @capgo/capacitor-native-navigation을 사용하여 Using @capgo/capacitor-native-navigation을 사용하여 @capgo/capacitor-native-navigation의 네이티브 기능을 사용합니다.