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.
インストール
「インストール」のセクションCapacitorの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インポート
「インポート」セクションimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API オーバービュー
「API オーバービュー」セクション各例では、インポートを繰り返してスニペットを単独でコピーできるようにしています。
initialize
「initialize」セクションSDK をカメラ URL で初期化します。
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
「getCameraAsset」セクションURLからカメラアセットを取得し、base64で返します。
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
「listFiles」セクションカメラに保存されているファイルの一覧を表示
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
「ライブプレビューを停止」セクションライブプレビューを停止
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
「設定を読み取る」セクションカメラの設定を読み取る
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
「設定を設定する」セクションカメラの設定を設定する
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
「コマンドを送信する」セクションカメラに直接コマンドを送信
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から続けてくださいというセクションCapacitorを使用している場合 Getting Started Capacitorを使用してネイティブメディアとインターフェイスの動作を計画するには、Capacitorを Capacitorの@capgo/capacitor-live-activities Capacitorの@capgo/capacitor-live-activitiesのネイティブ機能 Capacitorの@capgo/capacitor-live-activitiesの実装詳細 Capacitorの@capgo/capacitor-video-player Capacitorの@capgo/capacitor-video-playerのネイティブ機能 Capacitorの@capgo/capacitor-video-playerの実装詳細 Capacitorの@capgo/capacitor-live-activities 実装詳細については@capgo/capacitor-video-playerのドキュメントを参照してください。 Using @capgo/capacitor-native-navigation Using @capgo/capacitor-native-navigation