시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함하여 설치 단계와 동기화 단계를 복사할 수 있는 명령어를 복사하세요.
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
Import 섹션import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API 개요
API 개요예제에서는 각 Snippet을 복사하기 위해 import를 반복합니다.
initialize
__CAPGO_KEEP_0__ 초기화SDK를 카메라 URL로 초기화합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
URL에서 카메라 자산을 가져와 base64로 반환합니다.복사
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
복사사진을 캡처합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
__CAPGO_KEEP_0__사진을 찍습니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
captureVideo비디오를 찍습니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
livePreview실시간 미리보기 시작합니다.
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
설정 제목 ‘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
파일 목록 옵션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이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
시작하기
시작하기native 미디어 및 인터페이스 동작을 계획하고 있다면 Getting Started native 미디어 및 인터페이스 동작을 계획하고 있다면 Using @capgo/capacitor-live-activities Capgo의 @capgo/capacitor-live-활동에 대한 원시 기능을 위해 @capgo/capacitor-live-활동 Capgo의 @capgo/capacitor-live-활동에 대한 구현 세부 정보를 위해 Capgo의 @capgo/capacitor-비디오 플레이어를 사용하여 Capgo의 @capgo/capacitor-비디오 플레이어의 원시 기능을 위해 @capgo/capacitor-비디오 플레이어 Capgo의 @capgo/capacitor-비디오 플레이어의 구현 세부 정보를 위해, 그리고 Capgo의 @capgo/capacitor-네이티브 네비게이션을 사용하여 Capgo의 @capgo/capacitor-네이티브 네비게이션의 원시 기능을 위해