Getting Started
このプラグインのインストールステップとフルマークダウンガイドまでの全てのステップを含む設定用の質問をコピーする。
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 セットアップを使用してプラグインをインストールすることができます。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 セットアップを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
npm install @capgo/capacitor-ricoh360npx cap syncimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API の概要
Section titled “API の概要”各例では、スニペットを単独でコピーできるようにインポートを繰り返します。
initialize
Section titled “初期化”SDK をカメラ URL で初期化します。
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
Section titled “カメラアセットを取得”URL からカメラアセットを取得し、base64 で返します。
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
Section titled “ファイルの一覧”リストにカメラ内のファイルを表示
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
capturePictureセクション写真を撮ります
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
「初期化オプション」セクション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.tsAPI の上流で変更された場合に再度 Sync を実行してください。
「はじめから始める」の続き
「はじめから始める」の続きのセクションCapgo を使用している場合 Getting Started native機能とメディア、インターフェイスの動作を計画するために接続する @capgo/capacitor-live-activitiesを使用する @capgo/capacitor-live-activitiesのnative機能のために @capgo/capacitor-live-activities @capgo/capacitor-live-activitiesの実装詳細のために @capgo/capacitor-video-playerを使用する @capgo/capacitor-video-playerのnative機能のために @capgo/capacitor-video-player @capgo/capacitor-video-playerの実装詳細のために、 @capgo/capacitor-native-navigationを使用する @capgo/capacitor-native-navigationのnative機能のために