はじめから始める
このプラグインのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーします。
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 syncインポート
「インポート」のセクションimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';APIの概要
「APIの概要」のセクション各例では、インポートを繰り返して、スニペットを単独でコピーできるようにしています。
initialize
Section titled “初期化”カメラ URL で SDK を初期化します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.initialize({ url: 'https://example.com' });console.log(result);getCameraAsset
Section titled “カメラアセットを取得”URL からカメラアセットを取得し、base64 で返します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.getCameraAsset({ url: 'https://example.com' });console.log(result);listFiles
Section titled “ファイルの一覧”カメラに保存されているファイルの一覧を表示
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.listFiles();console.log(result);capturePicture
Section titled “写真を撮影”写真を撮影
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.capturePicture();console.log(result);captureVideo
「captureVideo」セクション動画をキャプチャします
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.captureVideo({ resolution: '4K', frameRate: 1, bitrate: 1,});console.log(result);livePreview
「livePreview」セクションライブプレビューを開始します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.livePreview({ displayInFront: false, cropPreview: false,});console.log(result);stopLivePreview
「stopLivePreview」セクションライブプレビューを停止します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.stopLivePreview();console.log(result);readSettings
「readSettings」セクションカメラの設定を読み取ります
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.readSettings({ options: ['option'] });console.log(result);setSettings
セクション「設定を設定」カメラの設定を設定します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.setSettings({ options: {} });console.log(result);sendCommand
セクション「コマンドを送信」カメラにRAWコマンドを送信します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
const result = await Ricoh360Camera.sendCommand({ endpoint: 'https://example.com', payload: {},});console.log(result);型の参照
型の参照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 がアップストリームで変更された場合に、再度同期を実行してください。
続けて「Getting Started」
「続けて「Getting Started」」あなたが 「Getting Started」 を使用してネイティブメディアとインターフェイスの動作を計画している場合、 「@capgo/capacitor-live-activities」を使用して 「@capgo/capacitor-live-activities」 「@capgo/capacitor-live-activities」 Capacitorライブアクティビティの実装詳細については、@capgo/capacitor-ライブアクティビティを参照してください。 @capgo/capacitor-ビデオプレーヤー Capgoのnative機能のために、@capgo/capacitor-video-playerを使用します。 @capgo/capacitor-ビデオプレーヤー Capacitorビデオプレーヤーを使用して、実装詳細については、@capgo/capacitor-ビデオプレーヤーを参照してください。また、 @capgo/capacitor-nativeナビゲーションを使用 Ricoh 360 カメラのネイティブ機能の使用に @capgo/capacitor-ネイティブナビゲーションを使用します。