theta-client-react-native 1.7.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +164 -9
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +76 -38
  4. package/ios/ConvertUtil.swift +157 -26
  5. package/ios/ThetaClientReactNative.m +9 -0
  6. package/ios/ThetaClientReactNative.swift +113 -23
  7. package/lib/commonjs/capture/burst-capture.js.map +1 -1
  8. package/lib/commonjs/capture/capture.js.map +1 -1
  9. package/lib/commonjs/capture/composite-interval-capture.js.map +1 -1
  10. package/lib/commonjs/capture/continuous-capture.js.map +1 -1
  11. package/lib/commonjs/capture/index.js.map +1 -1
  12. package/lib/commonjs/capture/limitless-interval-capture.js.map +1 -1
  13. package/lib/commonjs/capture/multi-bracket-capture.js.map +1 -1
  14. package/lib/commonjs/capture/photo-capture.js.map +1 -1
  15. package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -1
  16. package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
  17. package/lib/commonjs/capture/video-capture.js.map +1 -1
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/commonjs/theta-repository/access-point.js.map +1 -1
  20. package/lib/commonjs/theta-repository/digest-auth.js.map +1 -1
  21. package/lib/commonjs/theta-repository/event-websocket.js +39 -0
  22. package/lib/commonjs/theta-repository/event-websocket.js.map +1 -0
  23. package/lib/commonjs/theta-repository/index.js +11 -0
  24. package/lib/commonjs/theta-repository/index.js.map +1 -1
  25. package/lib/commonjs/theta-repository/notify-controller.js.map +1 -1
  26. package/lib/commonjs/theta-repository/options/index.js +33 -0
  27. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  28. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
  29. package/lib/commonjs/theta-repository/options/option-auto-bracket.js.map +1 -1
  30. package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -1
  31. package/lib/commonjs/theta-repository/options/option-bluetooth-role.js.map +1 -1
  32. package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -1
  33. package/lib/commonjs/theta-repository/options/option-burst-option.js.map +1 -1
  34. package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -1
  35. package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -1
  36. package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -1
  37. package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -1
  38. package/lib/commonjs/theta-repository/options/option-ethernet-config.js +6 -0
  39. package/lib/commonjs/theta-repository/options/option-ethernet-config.js.map +1 -0
  40. package/lib/commonjs/theta-repository/options/option-face-detect.js.map +1 -1
  41. package/lib/commonjs/theta-repository/options/option-file-format.js +89 -0
  42. package/lib/commonjs/theta-repository/options/option-file-format.js.map +1 -0
  43. package/lib/commonjs/theta-repository/options/option-filter.js +3 -2
  44. package/lib/commonjs/theta-repository/options/option-filter.js.map +1 -1
  45. package/lib/commonjs/theta-repository/options/option-function.js.map +1 -1
  46. package/lib/commonjs/theta-repository/options/option-gain.js.map +1 -1
  47. package/lib/commonjs/theta-repository/options/option-image-stitching.js.map +1 -1
  48. package/lib/commonjs/theta-repository/options/option-max-recordable-time.js +28 -0
  49. package/lib/commonjs/theta-repository/options/option-max-recordable-time.js.map +1 -0
  50. package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -1
  51. package/lib/commonjs/theta-repository/options/option-off-delay.js.map +1 -1
  52. package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -1
  53. package/lib/commonjs/theta-repository/options/option-preset.js.map +1 -1
  54. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
  55. package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -1
  56. package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -1
  57. package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -1
  58. package/lib/commonjs/theta-repository/options/option-sleep-delay.js.map +1 -1
  59. package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -1
  60. package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -1
  61. package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js.map +1 -1
  62. package/lib/commonjs/theta-repository/options/option-video-stitching.js.map +1 -1
  63. package/lib/commonjs/theta-repository/options/option-visibility-reduction.js.map +1 -1
  64. package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -1
  65. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -1
  66. package/lib/commonjs/theta-repository/options/options.js +3 -81
  67. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  68. package/lib/commonjs/theta-repository/theta-config.js.map +1 -1
  69. package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
  70. package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
  71. package/lib/commonjs/theta-repository/theta-meta.js.map +1 -1
  72. package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -1
  73. package/lib/commonjs/theta-repository/theta-repository.js +11 -0
  74. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  75. package/lib/commonjs/theta-repository/theta-state/camera-error.js.map +1 -1
  76. package/lib/commonjs/theta-repository/theta-state/index.js +11 -0
  77. package/lib/commonjs/theta-repository/theta-state/index.js.map +1 -1
  78. package/lib/commonjs/theta-repository/theta-state/state-gps-info.js +6 -0
  79. package/lib/commonjs/theta-repository/theta-state/state-gps-info.js.map +1 -0
  80. package/lib/commonjs/theta-repository/theta-state/theta-state.js.map +1 -1
  81. package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -1
  82. package/lib/module/capture/burst-capture.js.map +1 -1
  83. package/lib/module/capture/capture.js.map +1 -1
  84. package/lib/module/capture/composite-interval-capture.js.map +1 -1
  85. package/lib/module/capture/continuous-capture.js.map +1 -1
  86. package/lib/module/capture/index.js.map +1 -1
  87. package/lib/module/capture/limitless-interval-capture.js.map +1 -1
  88. package/lib/module/capture/multi-bracket-capture.js.map +1 -1
  89. package/lib/module/capture/photo-capture.js.map +1 -1
  90. package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -1
  91. package/lib/module/capture/time-shift-capture.js.map +1 -1
  92. package/lib/module/capture/video-capture.js.map +1 -1
  93. package/lib/module/index.js.map +1 -1
  94. package/lib/module/theta-repository/access-point.js.map +1 -1
  95. package/lib/module/theta-repository/digest-auth.js.map +1 -1
  96. package/lib/module/theta-repository/event-websocket.js +32 -0
  97. package/lib/module/theta-repository/event-websocket.js.map +1 -0
  98. package/lib/module/theta-repository/index.js +1 -0
  99. package/lib/module/theta-repository/index.js.map +1 -1
  100. package/lib/module/theta-repository/notify-controller.js.map +1 -1
  101. package/lib/module/theta-repository/options/index.js +3 -0
  102. package/lib/module/theta-repository/options/index.js.map +1 -1
  103. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
  104. package/lib/module/theta-repository/options/option-auto-bracket.js.map +1 -1
  105. package/lib/module/theta-repository/options/option-bitrate.js.map +1 -1
  106. package/lib/module/theta-repository/options/option-bluetooth-role.js.map +1 -1
  107. package/lib/module/theta-repository/options/option-burst-mode.js.map +1 -1
  108. package/lib/module/theta-repository/options/option-burst-option.js.map +1 -1
  109. package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -1
  110. package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -1
  111. package/lib/module/theta-repository/options/option-capture-mode.js.map +1 -1
  112. package/lib/module/theta-repository/options/option-continuous-number.js.map +1 -1
  113. package/lib/module/theta-repository/options/option-ethernet-config.js +2 -0
  114. package/lib/module/theta-repository/options/option-ethernet-config.js.map +1 -0
  115. package/lib/module/theta-repository/options/option-face-detect.js.map +1 -1
  116. package/lib/module/theta-repository/options/option-file-format.js +83 -0
  117. package/lib/module/theta-repository/options/option-file-format.js.map +1 -0
  118. package/lib/module/theta-repository/options/option-filter.js +3 -2
  119. package/lib/module/theta-repository/options/option-filter.js.map +1 -1
  120. package/lib/module/theta-repository/options/option-function.js.map +1 -1
  121. package/lib/module/theta-repository/options/option-gain.js.map +1 -1
  122. package/lib/module/theta-repository/options/option-image-stitching.js.map +1 -1
  123. package/lib/module/theta-repository/options/option-max-recordable-time.js +22 -0
  124. package/lib/module/theta-repository/options/option-max-recordable-time.js.map +1 -0
  125. package/lib/module/theta-repository/options/option-network-type.js.map +1 -1
  126. package/lib/module/theta-repository/options/option-off-delay.js.map +1 -1
  127. package/lib/module/theta-repository/options/option-power-saving.js.map +1 -1
  128. package/lib/module/theta-repository/options/option-preset.js.map +1 -1
  129. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -1
  130. package/lib/module/theta-repository/options/option-proxy.js.map +1 -1
  131. package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -1
  132. package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -1
  133. package/lib/module/theta-repository/options/option-sleep-delay.js.map +1 -1
  134. package/lib/module/theta-repository/options/option-time-shift.js.map +1 -1
  135. package/lib/module/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -1
  136. package/lib/module/theta-repository/options/option-top-bottom-correction.js.map +1 -1
  137. package/lib/module/theta-repository/options/option-video-stitching.js.map +1 -1
  138. package/lib/module/theta-repository/options/option-visibility-reduction.js.map +1 -1
  139. package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -1
  140. package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -1
  141. package/lib/module/theta-repository/options/options.js +2 -80
  142. package/lib/module/theta-repository/options/options.js.map +1 -1
  143. package/lib/module/theta-repository/theta-config.js.map +1 -1
  144. package/lib/module/theta-repository/theta-files.js.map +1 -1
  145. package/lib/module/theta-repository/theta-info.js.map +1 -1
  146. package/lib/module/theta-repository/theta-meta.js.map +1 -1
  147. package/lib/module/theta-repository/theta-plugin.js.map +1 -1
  148. package/lib/module/theta-repository/theta-repository.js +10 -0
  149. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  150. package/lib/module/theta-repository/theta-state/camera-error.js.map +1 -1
  151. package/lib/module/theta-repository/theta-state/index.js +1 -0
  152. package/lib/module/theta-repository/theta-state/index.js.map +1 -1
  153. package/lib/module/theta-repository/theta-state/state-gps-info.js +2 -0
  154. package/lib/module/theta-repository/theta-state/state-gps-info.js.map +1 -0
  155. package/lib/module/theta-repository/theta-state/theta-state.js.map +1 -1
  156. package/lib/module/theta-repository/theta-timeout.js.map +1 -1
  157. package/lib/typescript/theta-repository/event-websocket.d.ts +14 -0
  158. package/lib/typescript/theta-repository/event-websocket.d.ts.map +1 -0
  159. package/lib/typescript/theta-repository/index.d.ts +1 -0
  160. package/lib/typescript/theta-repository/index.d.ts.map +1 -1
  161. package/lib/typescript/theta-repository/options/index.d.ts +3 -0
  162. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  163. package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts +29 -0
  164. package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts.map +1 -0
  165. package/lib/typescript/theta-repository/options/option-file-format.d.ts +102 -0
  166. package/lib/typescript/theta-repository/options/option-file-format.d.ts.map +1 -0
  167. package/lib/typescript/theta-repository/options/option-filter.d.ts +3 -2
  168. package/lib/typescript/theta-repository/options/option-filter.d.ts.map +1 -1
  169. package/lib/typescript/theta-repository/options/option-max-recordable-time.d.ts +22 -0
  170. package/lib/typescript/theta-repository/options/option-max-recordable-time.d.ts.map +1 -0
  171. package/lib/typescript/theta-repository/options/options.d.ts +8 -77
  172. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  173. package/lib/typescript/theta-repository/theta-files.d.ts +1 -1
  174. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
  175. package/lib/typescript/theta-repository/theta-repository.d.ts +2 -0
  176. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  177. package/lib/typescript/theta-repository/theta-state/index.d.ts +1 -0
  178. package/lib/typescript/theta-repository/theta-state/index.d.ts.map +1 -1
  179. package/lib/typescript/theta-repository/theta-state/state-gps-info.d.ts +9 -0
  180. package/lib/typescript/theta-repository/theta-state/state-gps-info.d.ts.map +1 -0
  181. package/lib/typescript/theta-repository/theta-state/theta-state.d.ts +29 -20
  182. package/lib/typescript/theta-repository/theta-state/theta-state.d.ts.map +1 -1
  183. package/package.json +1 -1
  184. package/src/theta-repository/event-websocket.ts +52 -0
  185. package/src/theta-repository/index.ts +1 -0
  186. package/src/theta-repository/options/index.ts +3 -0
  187. package/src/theta-repository/options/option-ethernet-config.ts +29 -0
  188. package/src/theta-repository/options/option-file-format.ts +90 -0
  189. package/src/theta-repository/options/option-filter.ts +3 -2
  190. package/src/theta-repository/options/option-max-recordable-time.ts +23 -0
  191. package/src/theta-repository/options/options.ts +8 -89
  192. package/src/theta-repository/theta-files.ts +1 -1
  193. package/src/theta-repository/theta-repository.ts +13 -0
  194. package/src/theta-repository/theta-state/index.ts +1 -0
  195. package/src/theta-repository/theta-state/state-gps-info.ts +9 -0
  196. package/src/theta-repository/theta-state/theta-state.ts +29 -20
  197. package/theta-client-react-native.podspec +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theta-client-react-native",
3
- "version": "1.7.1",
3
+ "version": "1.9.0",
4
4
  "description": "This library provides a way to control RICOH THETA using.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -0,0 +1,52 @@
1
+ import { NativeModules } from 'react-native';
2
+ import type { Options } from './options';
3
+ import type { ThetaState } from './theta-state';
4
+ import type { BaseNotify, NotifyController } from './notify-controller';
5
+
6
+ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
7
+
8
+ const NOTIFY_EVENT = 'EVENT-WEBSOCKET-EVENT';
9
+ const NOTIFY_CLOSE = 'EVENT-WEBSOCKET-CLOSE';
10
+
11
+ export type CameraEvent = {
12
+ options?: Options;
13
+ state?: ThetaState;
14
+ };
15
+
16
+ interface EventNotify extends BaseNotify {
17
+ params?: {
18
+ event: CameraEvent;
19
+ };
20
+ }
21
+
22
+ export class EventWebSocket {
23
+ notify: NotifyController;
24
+ constructor(notify: NotifyController) {
25
+ this.notify = notify;
26
+ }
27
+
28
+ async start(onReceive: (event: CameraEvent) => void, onClose: () => void) {
29
+ this.notify.addNotify(NOTIFY_EVENT, (event: EventNotify) => {
30
+ if (event.params != null) {
31
+ onReceive(event.params.event);
32
+ }
33
+ });
34
+
35
+ this.notify.addNotify(NOTIFY_CLOSE, () => {
36
+ onClose();
37
+ this.notify.removeNotify(NOTIFY_EVENT);
38
+ this.notify.removeNotify(NOTIFY_CLOSE);
39
+ });
40
+ try {
41
+ await ThetaClientReactNative.eventWebSocketStart();
42
+ } catch (error) {
43
+ this.notify.removeNotify(NOTIFY_EVENT);
44
+ this.notify.removeNotify(NOTIFY_CLOSE);
45
+ throw error;
46
+ }
47
+ }
48
+
49
+ async stop() {
50
+ await ThetaClientReactNative.eventWebSocketStop();
51
+ }
52
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './access-point';
2
2
  export * from './digest-auth';
3
+ export * from './event-websocket';
3
4
  export * from './theta-config';
4
5
  export * from './theta-files';
5
6
  export * from './theta-info';
@@ -10,10 +10,12 @@ export * from './option-camera-mode';
10
10
  export * from './option-capture-mode';
11
11
  export * from './option-continuous-number';
12
12
  export * from './option-face-detect';
13
+ export * from './option-file-format';
13
14
  export * from './option-filter';
14
15
  export * from './option-function';
15
16
  export * from './option-gain';
16
17
  export * from './option-image-stitching';
18
+ export * from './option-max-recordable-time';
17
19
  export * from './option-network-type';
18
20
  export * from './option-off-delay';
19
21
  export * from './option-power-saving';
@@ -30,3 +32,4 @@ export * from './option-video-stitching';
30
32
  export * from './option-visibility-reduction';
31
33
  export * from './option-white-balance-auto-strength';
32
34
  export * from './option-wlan-frequency';
35
+ export * from './option-ethernet-config';
@@ -0,0 +1,29 @@
1
+ import type { Proxy } from './option-proxy';
2
+
3
+ /**
4
+ * IP address allocation to be used when wired LAN is enabled.
5
+ *
6
+ * For
7
+ * - RICOH THETA X firmware v2.40.0 or later
8
+ */
9
+ export type EthernetConfig = {
10
+ /** Using DHCP or not */
11
+ usingDhcp?: boolean;
12
+ /** (optional) IPv4 for IP address */
13
+ ipAddress?: string;
14
+ /** (optional) IPv4 for subnet mask */
15
+ subnetMask?: string;
16
+ /** (optional) IPv4 for default gateway */
17
+ defaultGateway?: string;
18
+ /**
19
+ * (optional) refer to _proxy for detail
20
+ *
21
+ * If "use" is set to true, "url" and "port" must be set.
22
+ * "userid" and "password" must be set together.
23
+ * It is recommended to set proxy as this three patterns:
24
+ * - (use = false)
25
+ * - (use = true, url = {url}, port = {port})
26
+ * - (use = true, url = {url}, port = {port}, userid = {userid}, password = {password})
27
+ */
28
+ proxy?: Proxy;
29
+ };
@@ -0,0 +1,90 @@
1
+ /** file format type in theta */
2
+ export const FileFormatTypeEnum = {
3
+ /** Undefined value */
4
+ UNKNOWN: 'UNKNOWN',
5
+ /** jpeg image */
6
+ JPEG: 'JPEG',
7
+ /** mp4 video */
8
+ MP4: 'MP4',
9
+ /** raw+ image */
10
+ RAW: 'RAW',
11
+ } as const;
12
+
13
+ /** type definition of FileFormatTypeEnum */
14
+ export type FileFormatTypeEnum =
15
+ (typeof FileFormatTypeEnum)[keyof typeof FileFormatTypeEnum];
16
+
17
+ /** Photo image format */
18
+ export const PhotoFileFormatEnum = {
19
+ /** jpeg 2048 x 1024 */
20
+ IMAGE_2K: 'IMAGE_2K',
21
+ /** jpeg 5376 x 2688 */
22
+ IMAGE_5K: 'IMAGE_5K',
23
+ /** jpeg 6720 x 3360 */
24
+ IMAGE_6_7K: 'IMAGE_6_7K',
25
+ /** row+ 6720 x 3360 */
26
+ RAW_P_6_7K: 'RAW_P_6_7K',
27
+ /** jpeg 5504 x 2752 */
28
+ IMAGE_5_5K: 'IMAGE_5_5K',
29
+ /** jpeg 11008 x 5504 */
30
+ IMAGE_11K: 'IMAGE_11K',
31
+ } as const;
32
+
33
+ /** Video image format */
34
+ export const VideoFileFormatEnum = {
35
+ /** mp4 1280 x 570 */
36
+ VIDEO_HD: 'VIDEO_HD',
37
+ /** mp4 1920 x 1080 */
38
+ VIDEO_FULL_HD: 'VIDEO_FULL_HD',
39
+ /** mp4 1920 x 960 */
40
+ VIDEO_2K: 'VIDEO_2K',
41
+ /** mp4 3840 x 1920 */
42
+ VIDEO_4K: 'VIDEO_4K',
43
+ /** mp4 1920 x 960 30fps */
44
+ VIDEO_2K_30F: 'VIDEO_2K_30F',
45
+ /** mp4 1920 x 960 60fps */
46
+ VIDEO_2K_60F: 'VIDEO_2K_60F',
47
+ /** mp4 2688 x 2688 1fps */
48
+ VIDEO_2_7K_1F: 'VIDEO_2_7K_1F',
49
+ /** mp4 2688 x 2688 2fps */
50
+ VIDEO_2_7K_2F: 'VIDEO_2_7K_2F',
51
+ /** mp4 3648 x 3648 1fps */
52
+ VIDEO_3_6K_1F: 'VIDEO_3_6K_1F',
53
+ /** mp4 3648 x 3648 2fps */
54
+ VIDEO_3_6K_2F: 'VIDEO_3_6K_2F',
55
+ /** mp4 3840 x 1920 30fps */
56
+ VIDEO_4K_30F: 'VIDEO_4K_30F',
57
+ /** mp4 3840 x 1920 60fps */
58
+ VIDEO_4K_60F: 'VIDEO_4K_60F',
59
+ /** mp4 5760 x 2880 2fps */
60
+ VIDEO_5_7K_2F: 'VIDEO_5_7K_2F',
61
+ /** mp4 5760 x 2880 5fps */
62
+ VIDEO_5_7K_5F: 'VIDEO_5_7K_5F',
63
+ /** mp4 5760 x 2880 30fps */
64
+ VIDEO_5_7K_30F: 'VIDEO_5_7K_30F',
65
+ /** mp4 7680 x 3840 2fps */
66
+ VIDEO_7K_2F: 'VIDEO_7K_2F',
67
+ /** mp4 7680 x 3840 5fps */
68
+ VIDEO_7K_5F: 'VIDEO_7K_5F',
69
+ /** mp4 7680 x 3840 10fps */
70
+ VIDEO_7K_10F: 'VIDEO_7K_10F',
71
+ } as const;
72
+
73
+ /** type definition of PhotoFileFormatEnum */
74
+ export type PhotoFileFormatEnum =
75
+ (typeof PhotoFileFormatEnum)[keyof typeof PhotoFileFormatEnum];
76
+
77
+ /** type definition of VideoFileFormatEnum */
78
+ export type VideoFileFormatEnum =
79
+ (typeof VideoFileFormatEnum)[keyof typeof VideoFileFormatEnum];
80
+
81
+ export const FileFormatEnum = {
82
+ /** Undefined value */
83
+ UNKNOWN: 'UNKNOWN',
84
+ ...PhotoFileFormatEnum,
85
+ ...VideoFileFormatEnum,
86
+ };
87
+
88
+ /** type definition of VideoFileFormatEnum */
89
+ export type FileFormatEnum =
90
+ (typeof FileFormatEnum)[keyof typeof FileFormatEnum];
@@ -15,8 +15,9 @@ export const FilterEnum = {
15
15
  /**
16
16
  * Handheld HDR.
17
17
  *
18
- * RICOH THETA Z1 firmware v1.20.1 or later and RICOH THETA V firmware v3.10.1 or later.
19
- * RICOH THETA X is not supported.
18
+ * RICOH THETA X firmware v2.40.0 or later,
19
+ * RICOH THETA Z1 firmware v1.20.1 or later,
20
+ * and RICOH THETA V firmware v3.10.1 or later.
20
21
  */
21
22
  HH_HDR: 'HH_HDR',
22
23
  } as const;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Maximum recordable time (in seconds) of the camera
3
+ */
4
+ export const MaxRecordableTimeEnum = {
5
+ /** Undefined value */
6
+ UNKNOWN: 'UNKNOWN',
7
+ /** 180 seconds for SC2 only. */
8
+ RECORDABLE_TIME_180: 'RECORDABLE_TIME_180',
9
+ /** 300 seconds for other than SC2. */
10
+ RECORDABLE_TIME_300: 'RECORDABLE_TIME_300',
11
+ /** 1500 seconds for other than SC2. */
12
+ RECORDABLE_TIME_1500: 'RECORDABLE_TIME_1500',
13
+ /** 3000 seconds for other than SC2. */
14
+ RECORDABLE_TIME_3000: 'RECORDABLE_TIME_3000',
15
+ /** 7200 seconds for Theta X only */
16
+ RECORDABLE_TIME_7200: 'RECORDABLE_TIME_7200',
17
+ /** Just used by getMySetting/setMySetting command */
18
+ DO_NOT_UPDATE_MY_SETTING_CONDITION: 'DO_NOT_UPDATE_MY_SETTING_CONDITION',
19
+ } as const;
20
+
21
+ /** type definition of MaxRecordableTimeEnum */
22
+ export type MaxRecordableTimeEnum =
23
+ (typeof MaxRecordableTimeEnum)[keyof typeof MaxRecordableTimeEnum];
@@ -13,6 +13,7 @@ import type { FilterEnum } from './option-filter';
13
13
  import type { ShootingFunctionEnum } from './option-function';
14
14
  import type { GainEnum } from './option-gain';
15
15
  import type { ImageStitchingEnum } from './option-image-stitching';
16
+ import type { MaxRecordableTimeEnum } from './option-max-recordable-time';
16
17
  import type { NetworkTypeEnum } from './option-network-type';
17
18
  import type { PowerSavingEnum } from './option-power-saving';
18
19
  import type { PresetEnum } from './option-preset';
@@ -29,6 +30,8 @@ import type { WhiteBalanceAutoStrengthEnum } from './option-white-balance-auto-s
29
30
  import type { WlanFrequencyEnum } from './option-wlan-frequency';
30
31
  import type { OffDelayEnum } from './option-off-delay';
31
32
  import type { SleepDelayEnum } from './option-sleep-delay';
33
+ import type { EthernetConfig } from './option-ethernet-config';
34
+ import type { FileFormatEnum } from './option-file-format';
32
35
 
33
36
  /** Aperture value. */
34
37
  export const ApertureEnum = {
@@ -143,76 +146,6 @@ export const ExposureProgramEnum = {
143
146
  export type ExposureProgramEnum =
144
147
  (typeof ExposureProgramEnum)[keyof typeof ExposureProgramEnum];
145
148
 
146
- /** file format type in theta */
147
- export const FileFormatTypeEnum = {
148
- /** jpeg image */
149
- JPEG: 'JPEG',
150
- /** mp4 video */
151
- MP4: 'MP4',
152
- /** raw+ image */
153
- RAW: 'RAW',
154
- } as const;
155
-
156
- /** type definition of FileFormatTypeEnum */
157
- export type FileFormatTypeEnum =
158
- (typeof FileFormatTypeEnum)[keyof typeof FileFormatTypeEnum];
159
-
160
- /** Photo image format */
161
- export const PhotoFileFormatEnum = {
162
- /** jpeg 2048 x 1024 */
163
- IMAGE_2K: 'IMAGE_2K',
164
- /** jpeg 5376 x 2688 */
165
- IMAGE_5K: 'IMAGE_5K',
166
- /** jpeg 6720 x 3360 */
167
- IMAGE_6_7K: 'IMAGE_6_7K',
168
- /** row+ 6720 x 3360 */
169
- RAW_P_6_7K: 'RAW_P_6_7K',
170
- /** jpeg 5504 x 2752 */
171
- IMAGE_5_5K: 'IMAGE_5_5K',
172
- /** jpeg 11008 x 5504 */
173
- IMAGE_11K: 'IMAGE_11K',
174
- } as const;
175
-
176
- /** Video image format */
177
- export const VideoFileFormatEnum = {
178
- /** mp4 1280 x 570 */
179
- VIDEO_HD: 'VIDEO_HD',
180
- /** mp4 1920 x 1080 */
181
- VIDEO_FULL_HD: 'VIDEO_FULL_HD',
182
- /** mp4 1920 x 960 */
183
- VIDEO_2K: 'VIDEO_2K',
184
- /** mp4 3840 x 1920 */
185
- VIDEO_4K: 'VIDEO_4K',
186
- /** mp4 1920 x 960 30fps */
187
- VIDEO_2K_30F: 'VIDEO_2K_30F',
188
- /** mp4 1920 x 960 60fps */
189
- VIDEO_2K_60F: 'VIDEO_2K_60F',
190
- /** mp4 3840 x 1920 30fps */
191
- VIDEO_4K_30F: 'VIDEO_4K_30F',
192
- /** mp4 3840 x 1920 60fps */
193
- VIDEO_4K_60F: 'VIDEO_4K_60F',
194
- /** mp4 5760 x 2880 2fps */
195
- VIDEO_5_7K_2F: 'VIDEO_5_7K_2F',
196
- /** mp4 5760 x 2880 5fps */
197
- VIDEO_5_7K_5F: 'VIDEO_5_7K_5F',
198
- /** mp4 5760 x 2880 30fps */
199
- VIDEO_5_7K_30F: 'VIDEO_5_7K_30F',
200
- /** mp4 7680 x 3840 2fps */
201
- VIDEO_7K_2F: 'VIDEO_7K_2F',
202
- /** mp4 7680 x 3840 5fps */
203
- VIDEO_7K_5F: 'VIDEO_7K_5F',
204
- /** mp4 7680 x 3840 10fps */
205
- VIDEO_7K_10F: 'VIDEO_7K_10F',
206
- } as const;
207
-
208
- /** type definition of PhotoFileFormatEnum */
209
- export type PhotoFileFormatEnum =
210
- (typeof PhotoFileFormatEnum)[keyof typeof PhotoFileFormatEnum];
211
-
212
- /** type definition of VideoFileFormatEnum */
213
- export type VideoFileFormatEnum =
214
- (typeof VideoFileFormatEnum)[keyof typeof VideoFileFormatEnum];
215
-
216
149
  /** GPS information */
217
150
  export type GpsInfo = {
218
151
  /** Latitude (-90.000000 – 90.000000) */
@@ -361,24 +294,6 @@ export const LanguageEnum = {
361
294
  /** type definition of LanguageEnum */
362
295
  export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum];
363
296
 
364
- /** Maximum recordable time (in seconds) of the camera */
365
- export const MaxRecordableTimeEnum = {
366
- /** 180 seconds for SC2 only. */
367
- RECORDABLE_TIME_180: 'RECORDABLE_TIME_180',
368
- /** 300 seconds for other than SC2. */
369
- RECORDABLE_TIME_300: 'RECORDABLE_TIME_300',
370
- /** 1500 seconds for other than SC2. */
371
- RECORDABLE_TIME_1500: 'RECORDABLE_TIME_1500',
372
- /** 7200 seconds for Theta X only */
373
- RECORDABLE_TIME_7200: 'RECORDABLE_TIME_7200',
374
- /** Just used by getMySetting/setMySetting command */
375
- DO_NOT_UPDATE_MY_SETTING_CONDITION: 'DO_NOT_UPDATE_MY_SETTING_CONDITION',
376
- } as const;
377
-
378
- /** type definition of MaxRecordableTimeEnum */
379
- export type MaxRecordableTimeEnum =
380
- (typeof MaxRecordableTimeEnum)[keyof typeof MaxRecordableTimeEnum];
381
-
382
297
  /** White balance. */
383
298
  export const WhiteBalanceEnum = {
384
299
  /** Automatic */
@@ -449,6 +364,8 @@ export const OptionNameEnum = {
449
364
  ContinuousNumber: 'ContinuousNumber',
450
365
  /** dateTimeZone */
451
366
  DateTimeZone: 'DateTimeZone',
367
+ /** ethernetConfig */
368
+ EthernetConfig: 'EthernetConfig',
452
369
  /** exposureCompensation */
453
370
  ExposureCompensation: 'ExposureCompensation',
454
371
  /** exposureDelay */
@@ -624,6 +541,8 @@ export type Options = {
624
541
  continuousNumber?: ContinuousNumberEnum;
625
542
  /** Current system time of RICOH THETA. Setting another options will result in an error. */
626
543
  dateTimeZone?: string;
544
+ /** IP address allocation to be used when wired LAN is enabled. */
545
+ ethernetConfig?: EthernetConfig;
627
546
  /** Exposure compensation (EV). */
628
547
  exposureCompensation?: ExposureCompensationEnum;
629
548
  /** Operating time (sec.) of the self-timer. */
@@ -633,7 +552,7 @@ export type Options = {
633
552
  /** Face detection */
634
553
  faceDetect?: FaceDetectEnum;
635
554
  /** Image format used in shooting. */
636
- fileFormat?: PhotoFileFormatEnum | VideoFileFormatEnum;
555
+ fileFormat?: FileFormatEnum;
637
556
  /** Image processing filter. */
638
557
  filter?: FilterEnum;
639
558
  /** Shooting function. */
@@ -38,7 +38,7 @@ export type FileInfo = {
38
38
  projectionType?: ProjectionTypeEnum;
39
39
  /** Group ID of continuous shooting. (RICOH THETA X or later) */
40
40
  continuousShootingGroupId?: string;
41
- /** Frame rate. (RICOH THETA X or later) */
41
+ /** Frame rate. (RICOH THETA Z1 Version 3.01.1 or later, RICOH THETA X or later) */
42
42
  frameRate?: number;
43
43
  /** Favorite. (RICOH THETA X or later) */
44
44
  favorite?: boolean;
@@ -32,6 +32,7 @@ import {
32
32
  import type { ThetaConfig } from './theta-config';
33
33
  import type { ThetaTimeout } from './theta-timeout';
34
34
  import { NotifyController } from './notify-controller';
35
+ import { EventWebSocket } from './event-websocket';
35
36
  const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
36
37
 
37
38
  /**
@@ -636,3 +637,15 @@ export function getPluginOrders(): Promise<string[]> {
636
637
  export function setPluginOrders(plugins: string[]): Promise<boolean> {
637
638
  return ThetaClientReactNative.setPluginOrders(plugins);
638
639
  }
640
+
641
+ export function getEventWebSocket(): Promise<EventWebSocket> {
642
+ return new Promise<EventWebSocket>(async (resolve, reject) => {
643
+ ThetaClientReactNative.getEventWebSocket()
644
+ .then(() => {
645
+ resolve(new EventWebSocket(NotifyController.instance));
646
+ })
647
+ .catch((error: any) => {
648
+ reject(error);
649
+ });
650
+ });
651
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './camera-error';
2
+ export * from './state-gps-info';
2
3
  export * from './theta-state';
@@ -0,0 +1,9 @@
1
+ import type { GpsInfo } from '../options';
2
+
3
+ /**
4
+ * GPS information of state
5
+ */
6
+ export type StateGpsInfo = {
7
+ /** GPS information */
8
+ gpsInfo?: GpsInfo;
9
+ };
@@ -1,5 +1,6 @@
1
1
  import type { ShootingFunctionEnum } from '../options/option-function';
2
2
  import type { CameraErrorEnum } from './camera-error';
3
+ import type { StateGpsInfo } from './state-gps-info';
3
4
 
4
5
  /** Battery charging state constants */
5
6
  export const ChargingStateEnum = {
@@ -56,43 +57,51 @@ export type MicrophoneOptionEnum =
56
57
  /** Mutable values representing Theta status. */
57
58
  export type ThetaState = {
58
59
  /** Fingerprint (unique identifier) of the current camera state */
59
- fingerprint: string;
60
+ fingerprint?: string;
60
61
  /** Battery level between 0.0 and 1.0 */
61
- batteryLevel: number;
62
+ batteryLevel?: number;
62
63
  /** Storage URI */
63
- storageUri: string | null;
64
+ storageUri?: string;
64
65
  /** Storage ID */
65
- storageID: string | null;
66
+ storageID?: string;
66
67
  /** Continuously shoots state */
67
- captureStatus: CaptureStatusEnum;
68
+ captureStatus?: CaptureStatusEnum;
68
69
  /** Recorded time of movie (seconds) */
69
- recordedTime: number;
70
+ recordedTime?: number;
70
71
  /** Recordable time of movie (seconds) */
71
- recordableTime: number;
72
+ recordableTime?: number;
72
73
  /** Number of still images captured during continuous shooting, Unit: images */
73
- capturedPictures: number | null;
74
+ capturedPictures?: number;
74
75
  /** Elapsed time for interval composite shooting (sec) */
75
- compositeShootingElapsedTime: number | null;
76
+ compositeShootingElapsedTime?: number;
76
77
  /** URL of the last saved file */
77
- latestFileUrl: string;
78
+ latestFileUrl?: string;
78
79
  /** Charging state */
79
- chargingState: ChargingStateEnum;
80
+ chargingState?: ChargingStateEnum;
80
81
  /** API version currently set (1: v2.0, 2: v2.1) */
81
- apiVersion: number;
82
+ apiVersion?: number;
82
83
  /** Plugin running state (true: running, false: stop) */
83
- isPluginRunning: boolean | null;
84
+ isPluginRunning?: boolean;
84
85
  /** Plugin web server state (true: enabled, false: disabled) */
85
- isPluginWebServer: boolean | null;
86
+ isPluginWebServer?: boolean;
86
87
  /** Shooting function status*/
87
- function: ShootingFunctionEnum | null;
88
+ function?: ShootingFunctionEnum;
88
89
  /** My setting changed state */
89
- isMySettingChanged: boolean | null;
90
+ isMySettingChanged?: boolean;
90
91
  /** Identifies the microphone used while recording video */
91
- currentMicrophone: MicrophoneOptionEnum | null;
92
+ currentMicrophone?: MicrophoneOptionEnum;
92
93
  /** true if record to SD card */
93
- isSdCard: boolean;
94
+ isSdCard?: boolean;
94
95
  /** Error information of the camera */
95
- cameraError: Array<CameraErrorEnum> | null;
96
+ cameraError?: Array<CameraErrorEnum>;
96
97
  /** true: Battery inserted; false: Battery not inserted */
97
- isBatteryInsert: boolean | null;
98
+ isBatteryInsert?: boolean;
99
+ /** Location data is obtained through an external device using WebAPI or BLE-API. */
100
+ externalGpsInfo?: StateGpsInfo;
101
+ /** Location data is obtained through an internal GPS module. RICOH THETA Z1 does not have a built-in GPS module. */
102
+ internalGpsInfo?: StateGpsInfo;
103
+ /** This represents the current temperature inside the camera as an integer value, ranging from -10°C to 100°C with a precision of 1°C. */
104
+ boardTemp?: number;
105
+ /** This represents the current temperature inside the battery as an integer value, ranging from -10°C to 100°C with a precision of 1°C. */
106
+ batteryTemp?: number;
98
107
  };
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "THETAClient", "1.7.1"
20
+ s.dependency "THETAClient", "1.9.0"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then