はじめに
Capacitorのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーする。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/ricoh360`, `@capgo/capacitor-ricoh360-camera-plugin`
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.
インストール
「インストール」のセクションbun add @capgo/ricoh360bunx cap syncインポート
「インポート」のセクションimport { Ricoh360Camera } from '@capgo/ricoh360';API オーバーウィュー
セクション「API オーバーウィュー」initialize
セクション「初期化」SDK をカメラ URL で初期化します
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
セクション「getCameraAsset」URL からカメラ アセットを取得し、base64 で返します
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
セクション「リスト ファイル」カメラに保存されているファイルをリストします
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.listFiles();capturePicture
セクション「撮影」写真を撮る
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
「動画のキャプチャ」を含むセクション動画を撮る
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
「ライブプレビュー」を含むセクションライブプレビューを開始
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
「ライブプレビューの停止」を含むセクションライブプレビューを停止
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
「設定の読み取り」を含むセクションカメラの設定を読み取ります
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
セクション “setSettings”カメラの設定を設定
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
セクション “sendCommand”カメラにRAWコマンドを送信
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });タイプ リファレンス
セクション “Type Reference”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
LivePreviewOptionsのセクションexport interface LivePreviewOptions { displayInFront?: boolean; cropPreview?: boolean;}真実の源
真実の源のセクションこのページはプラグインから生成されています。 src/definitions.tsパブリック API がアップストリームで変更された場合に再度同期を実行してください。