始めてみる
このプラグインのインストールステップとフルマークダウンガイドのセットアッププロンプトをコピーする。
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.
インストール
「インストール」のセクションnpm install @capgo/capacitor-ricoh360npx cap syncインポート
「インポート」のセクションimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API オーバービュー
「API オーバービュー」のセクション各例では、スニペットを単独でコピーできるようにインポートを繰り返します。
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
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
「CommandResponse」を含むセクションexport interface CommandResponse { session?: string; info?: string; preview?: string; picture?: string; settings?: string;}GetCameraAssetOptions
「GetCameraAssetOptions」を含むセクションexport interface GetCameraAssetOptions { url: string; saveToFile?: boolean;}GetCameraAssetResponse
「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. Re-run the sync when the public API changes upstream.
パブリック__CAPGO_KEEP_0__がアップストリームで変更されたら、再度同期を実行してください。
Getting Startedから続けてくださいGetting Startedから続けてください native mediaとinterfaceの動作を計画している場合、native capabilityを接続してください。 native capabilityの@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-live-activitiesを使用してください。 native capabilityの@capgo/capacitor-live-activitiesの実装詳細を@capgo/capacitor-live-activitiesで確認してください。 @capgo/capacitor-live-activities @capgo/capacitor-live-activitiesの実装詳細を確認してください。 @capgo/capacitor-live-activities Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player, and Using @capgo/capacitor-native-navigation for the native capability in Using @capgo/capacitor-native-navigation