{"id":28700008,"url":"https://github.com/Cap-go/capacitor-ricoh360-camera-plugin","last_synced_at":"2025-06-14T11:03:49.720Z","repository":{"id":275987243,"uuid":"888261985","full_name":"Cap-go/capacitor-ricoh360-camera-plugin","owner":"Cap-go","description":"Capacitor Plugin for ricoh camera 360","archived":false,"fork":false,"pushed_at":"2025-02-05T16:26:36.000Z","size":1026,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T21:27:01.660Z","etag":null,"topics":["capacitor","capacitor-plugin","plugin"],"latest_commit_sha":null,"homepage":"https://capgo.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cap-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-11-14T04:57:34.000Z","updated_at":"2025-02-09T05:18:52.000Z","dependencies_parsed_at":"2025-02-05T17:47:52.874Z","dependency_job_id":null,"html_url":"https://github.com/Cap-go/capacitor-ricoh360-camera-plugin","commit_stats":null,"previous_names":["cap-go/ricoh360-camera-plugin","cap-go/capacitor-ricoh360-camera-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-ricoh360-camera-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-ricoh360-camera-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-ricoh360-camera-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-ricoh360-camera-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/capacitor-ricoh360-camera-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-ricoh360-camera-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258615050,"owners_count":22729463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capacitor","capacitor-plugin","plugin"],"created_at":"2025-06-14T11:01:32.810Z","updated_at":"2025-06-14T11:03:49.713Z","avatar_url":"https://github.com/Cap-go.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":["Capgo Capacitor Plugins","[Capgo plugins](https://capgo.app/)"],"sub_categories":["Specialized Hardware"],"readme":"# ricoh360-camera\n\n\u003ca href=\"https://capgo.app/\"\u003e\u003cimg src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/?ref=plugin\"\u003e ➡️ Get Instant updates for your App with Capgo 🚀\u003c/a\u003e\u003c/h2\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/consulting/?ref=plugin\"\u003e Fix your annoying bug now, Hire a Capacitor expert 💪\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e\n\nProvides an SDK for the Ricoh360 cameras for Capacitor\n\n## Install\n\n```bash\nnpm install ricoh360-camera\nnpx cap sync\n```\n\n## API\n\n\u003cdocgen-index\u003e\n\n* [`initialize(...)`](#initialize)\n* [`getCameraAsset(...)`](#getcameraasset)\n* [`listFiles(...)`](#listfiles)\n* [`capturePicture()`](#capturepicture)\n* [`captureVideo(...)`](#capturevideo)\n* [`livePreview(...)`](#livepreview)\n* [`stopLivePreview()`](#stoplivepreview)\n* [`readSettings(...)`](#readsettings)\n* [`setSettings(...)`](#setsettings)\n* [`sendCommand(...)`](#sendcommand)\n* [Interfaces](#interfaces)\n* [Type Aliases](#type-aliases)\n\n\u003c/docgen-index\u003e\n\n\u003cdocgen-api\u003e\n\u003c!--Update the source file JSDoc comments and rerun docgen to update the docs below--\u003e\n\n### initialize(...)\n\n```typescript\ninitialize(options: InitializeOptions) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nInitializes the SDK with camera URL\n\n| Param         | Type                                                            |\n| ------------- | --------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#initializeoptions\"\u003eInitializeOptions\u003c/a\u003e\u003c/code\u003e |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### getCameraAsset(...)\n\n```typescript\ngetCameraAsset(options: GetCameraAssetOptions) =\u003e Promise\u003cGetCameraAssetResponse\u003e\n```\n\nRetrieves a camera asset from a URL and returns it as base64\n\n| Param         | Type                                                                    | Description                                       |\n| ------------- | ----------------------------------------------------------------------- | ------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#getcameraassetoptions\"\u003eGetCameraAssetOptions\u003c/a\u003e\u003c/code\u003e | Object containing the URL to fetch the asset from |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#getcameraassetresponse\"\u003eGetCameraAssetResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### listFiles(...)\n\n```typescript\nlistFiles(options?: ListFilesOptions | undefined) =\u003e Promise\u003cListFilesResponse\u003e\n```\n\nLists files stored on the camera\n\n| Param         | Type                                                          | Description                                        |\n| ------------- | ------------------------------------------------------------- | -------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#listfilesoptions\"\u003eListFilesOptions\u003c/a\u003e\u003c/code\u003e | Optional parameters to filter and paginate results |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#listfilesresponse\"\u003eListFilesResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### capturePicture()\n\n```typescript\ncapturePicture() =\u003e Promise\u003cCommandResponse\u003e\n```\n\nCaptures a picture\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### captureVideo(...)\n\n```typescript\ncaptureVideo(options: VideoCaptureOptions) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nCaptures a video\n\n| Param         | Type                                                                |\n| ------------- | ------------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#videocaptureoptions\"\u003eVideoCaptureOptions\u003c/a\u003e\u003c/code\u003e |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### livePreview(...)\n\n```typescript\nlivePreview(options: LivePreviewOptions) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nStarts live preview\n\n| Param         | Type                                                              |\n| ------------- | ----------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e\u003ca href=\"#livepreviewoptions\"\u003eLivePreviewOptions\u003c/a\u003e\u003c/code\u003e |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### stopLivePreview()\n\n```typescript\nstopLivePreview() =\u003e Promise\u003cCommandResponse\u003e\n```\n\nStops live preview\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### readSettings(...)\n\n```typescript\nreadSettings(options: { options: string[]; }) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nReads camera settings\n\n| Param         | Type                                | Description                                                    |\n| ------------- | ----------------------------------- | -------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e{ options: string[]; }\u003c/code\u003e | \u003ca href=\"#array\"\u003eArray\u003c/a\u003e of option names to read from camera |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### setSettings(...)\n\n```typescript\nsetSettings(options: { options: Record\u003cstring, any\u003e; }) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nSets camera settings\n\n| Param         | Type                                                                       | Description                              |\n| ------------- | -------------------------------------------------------------------------- | ---------------------------------------- |\n| **`options`** | \u003ccode\u003e{ options: \u003ca href=\"#record\"\u003eRecord\u003c/a\u003e\u0026lt;string, any\u0026gt;; }\u003c/code\u003e | Object containing camera settings to set |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### sendCommand(...)\n\n```typescript\nsendCommand(options: { endpoint: string; payload: Record\u003cstring, any\u003e; }) =\u003e Promise\u003cCommandResponse\u003e\n```\n\nSend raw command to camera\n\n| Param         | Type                                                                                         |\n| ------------- | -------------------------------------------------------------------------------------------- |\n| **`options`** | \u003ccode\u003e{ endpoint: string; payload: \u003ca href=\"#record\"\u003eRecord\u003c/a\u003e\u0026lt;string, any\u0026gt;; }\u003c/code\u003e |\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#commandresponse\"\u003eCommandResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### Interfaces\n\n\n#### CommandResponse\n\n| Prop           | Type                |\n| -------------- | ------------------- |\n| **`session`**  | \u003ccode\u003estring\u003c/code\u003e |\n| **`info`**     | \u003ccode\u003estring\u003c/code\u003e |\n| **`preview`**  | \u003ccode\u003estring\u003c/code\u003e |\n| **`picture`**  | \u003ccode\u003estring\u003c/code\u003e |\n| **`settings`** | \u003ccode\u003estring\u003c/code\u003e |\n\n\n#### InitializeOptions\n\n| Prop      | Type                |\n| --------- | ------------------- |\n| **`url`** | \u003ccode\u003estring\u003c/code\u003e |\n\n\n#### GetCameraAssetResponse\n\n| Prop             | Type                |\n| ---------------- | ------------------- |\n| **`statusCode`** | \u003ccode\u003enumber\u003c/code\u003e |\n| **`data`**       | \u003ccode\u003estring\u003c/code\u003e |\n| **`filePath`**   | \u003ccode\u003estring\u003c/code\u003e |\n\n\n#### GetCameraAssetOptions\n\n| Prop             | Type                 |\n| ---------------- | -------------------- |\n| **`url`**        | \u003ccode\u003estring\u003c/code\u003e  |\n| **`saveToFile`** | \u003ccode\u003eboolean\u003c/code\u003e |\n\n\n#### ListFilesResponse\n\n| Prop          | Type                                                                                                                                                                                                                                                  |\n| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **`results`** | \u003ccode\u003e{ entries: { name: string; fileUrl: string; size: number; dateTimeZone: string; width?: number; height?: number; previewUrl?: string; _projectionType?: string; isProcessed?: boolean; _thumbSize?: number; }[]; totalEntries: number; }\u003c/code\u003e |\n\n\n#### Array\n\n| Prop         | Type                | Description                                                                                            |\n| ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |\n| **`length`** | \u003ccode\u003enumber\u003c/code\u003e | Gets or sets the length of the array. This is a number one higher than the highest index in the array. |\n\n| Method             | Signature                                                                                                                     | Description                                                                                                                                                                                                                                 |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **toString**       | () =\u0026gt; string                                                                                                               | Returns a string representation of an array.                                                                                                                                                                                                |\n| **toLocaleString** | () =\u0026gt; string                                                                                                               | Returns a string representation of an array. The elements are converted to string using their toLocalString methods.                                                                                                                        |\n| **pop**            | () =\u0026gt; T \\| undefined                                                                                                       | Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.                                                                                                          |\n| **push**           | (...items: T[]) =\u0026gt; number                                                                                                  | Appends new elements to the end of an array, and returns the new length of the array.                                                                                                                                                       |\n| **concat**         | (...items: \u003ca href=\"#concatarray\"\u003eConcatArray\u003c/a\u003e\u0026lt;T\u0026gt;[]) =\u0026gt; T[]                                                       | Combines two or more arrays. This method returns a new array without modifying any existing arrays.                                                                                                                                         |\n| **concat**         | (...items: (T \\| \u003ca href=\"#concatarray\"\u003eConcatArray\u003c/a\u003e\u0026lt;T\u0026gt;)[]) =\u0026gt; T[]                                                | Combines two or more arrays. This method returns a new array without modifying any existing arrays.                                                                                                                                         |\n| **join**           | (separator?: string \\| undefined) =\u0026gt; string                                                                                | Adds all the elements of an array into a string, separated by the specified separator string.                                                                                                                                               |\n| **reverse**        | () =\u0026gt; T[]                                                                                                                  | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.                                                                                                                        |\n| **shift**          | () =\u0026gt; T \\| undefined                                                                                                       | Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.                                                                                                         |\n| **slice**          | (start?: number \\| undefined, end?: number \\| undefined) =\u0026gt; T[]                                                            | Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.                           |\n| **sort**           | (compareFn?: ((a: T, b: T) =\u0026gt; number) \\| undefined) =\u0026gt; this                                                             | Sorts an array in place. This method mutates the array and returns a reference to the same array.                                                                                                                                           |\n| **splice**         | (start: number, deleteCount?: number \\| undefined) =\u0026gt; T[]                                                                  | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.                                                                                                                      |\n| **splice**         | (start: number, deleteCount: number, ...items: T[]) =\u0026gt; T[]                                                                 | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.                                                                                                                      |\n| **unshift**        | (...items: T[]) =\u0026gt; number                                                                                                  | Inserts new elements at the start of an array, and returns the new length of the array.                                                                                                                                                     |\n| **indexOf**        | (searchElement: T, fromIndex?: number \\| undefined) =\u0026gt; number                                                              | Returns the index of the first occurrence of a value in an array, or -1 if it is not present.                                                                                                                                               |\n| **lastIndexOf**    | (searchElement: T, fromIndex?: number \\| undefined) =\u0026gt; number                                                              | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.                                                                                                                                      |\n| **every**          | \u0026lt;S extends T\u0026gt;(predicate: (value: T, index: number, array: T[]) =\u0026gt; value is S, thisArg?: any) =\u0026gt; this is S[]       | Determines whether all the members of an array satisfy the specified test.                                                                                                                                                                  |\n| **every**          | (predicate: (value: T, index: number, array: T[]) =\u0026gt; unknown, thisArg?: any) =\u0026gt; boolean                                 | Determines whether all the members of an array satisfy the specified test.                                                                                                                                                                  |\n| **some**           | (predicate: (value: T, index: number, array: T[]) =\u0026gt; unknown, thisArg?: any) =\u0026gt; boolean                                 | Determines whether the specified callback function returns true for any element of an array.                                                                                                                                                |\n| **forEach**        | (callbackfn: (value: T, index: number, array: T[]) =\u0026gt; void, thisArg?: any) =\u0026gt; void                                      | Performs the specified action for each element in an array.                                                                                                                                                                                 |\n| **map**            | \u0026lt;U\u0026gt;(callbackfn: (value: T, index: number, array: T[]) =\u0026gt; U, thisArg?: any) =\u0026gt; U[]                                 | Calls a defined callback function on each element of an array, and returns an array that contains the results.                                                                                                                              |\n| **filter**         | \u0026lt;S extends T\u0026gt;(predicate: (value: T, index: number, array: T[]) =\u0026gt; value is S, thisArg?: any) =\u0026gt; S[]               | Returns the elements of an array that meet the condition specified in a callback function.                                                                                                                                                  |\n| **filter**         | (predicate: (value: T, index: number, array: T[]) =\u0026gt; unknown, thisArg?: any) =\u0026gt; T[]                                     | Returns the elements of an array that meet the condition specified in a callback function.                                                                                                                                                  |\n| **reduce**         | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; T) =\u0026gt; T                           | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.                      |\n| **reduce**         | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; T, initialValue: T) =\u0026gt; T          |                                                                                                                                                                                                                                             |\n| **reduce**         | \u0026lt;U\u0026gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; U, initialValue: U) =\u0026gt; U | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.                      |\n| **reduceRight**    | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; T) =\u0026gt; T                           | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |\n| **reduceRight**    | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; T, initialValue: T) =\u0026gt; T          |                                                                                                                                                                                                                                             |\n| **reduceRight**    | \u0026lt;U\u0026gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =\u0026gt; U, initialValue: U) =\u0026gt; U | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |\n\n\n#### ConcatArray\n\n| Prop         | Type                |\n| ------------ | ------------------- |\n| **`length`** | \u003ccode\u003enumber\u003c/code\u003e |\n\n| Method    | Signature                                                          |\n| --------- | ------------------------------------------------------------------ |\n| **join**  | (separator?: string \\| undefined) =\u0026gt; string                     |\n| **slice** | (start?: number \\| undefined, end?: number \\| undefined) =\u0026gt; T[] |\n\n\n#### ListFilesOptions\n\n| Prop                | Type                                     |\n| ------------------- | ---------------------------------------- |\n| **`fileType`**      | \u003ccode\u003e'all' \\| 'image' \\| 'video'\u003c/code\u003e |\n| **`startPosition`** | \u003ccode\u003enumber\u003c/code\u003e                      |\n| **`entryCount`**    | \u003ccode\u003enumber\u003c/code\u003e                      |\n| **`maxThumbSize`**  | \u003ccode\u003enumber\u003c/code\u003e                      |\n| **`_detail`**       | \u003ccode\u003eboolean\u003c/code\u003e                     |\n\n\n#### VideoCaptureOptions\n\n| Prop             | Type                      |\n| ---------------- | ------------------------- |\n| **`resolution`** | \u003ccode\u003e'4K' \\| '2K'\u003c/code\u003e |\n| **`frameRate`**  | \u003ccode\u003enumber\u003c/code\u003e       |\n| **`bitrate`**    | \u003ccode\u003enumber\u003c/code\u003e       |\n\n\n#### LivePreviewOptions\n\n| Prop                 | Type                 |\n| -------------------- | -------------------- |\n| **`displayInFront`** | \u003ccode\u003eboolean\u003c/code\u003e |\n| **`cropPreview`**    | \u003ccode\u003eboolean\u003c/code\u003e |\n\n\n### Type Aliases\n\n\n#### Record\n\nConstruct a type with a set of properties K of type T\n\n\u003ccode\u003e{\r [P in K]: T;\r }\u003c/code\u003e\n\n\u003c/docgen-api\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-ricoh360-camera-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCap-go%2Fcapacitor-ricoh360-camera-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-ricoh360-camera-plugin/lists"}