theta-client-react-native 1.12.1 → 1.13.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.
- package/android/build.gradle +2 -1
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +533 -33
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +201 -50
- package/ios/ConvertUtil.swift +570 -102
- package/ios/ThetaClientReactNative.m +25 -15
- package/ios/ThetaClientReactNative.swift +296 -120
- package/lib/commonjs/capture/capture.js +12 -1
- package/lib/commonjs/capture/capture.js.map +1 -1
- package/lib/commonjs/capture/continuous-capture.js +2 -1
- package/lib/commonjs/capture/continuous-capture.js.map +1 -1
- package/lib/commonjs/capture/index.js +11 -0
- package/lib/commonjs/capture/index.js.map +1 -1
- package/lib/commonjs/capture/time-shift-manual-capture.js +168 -0
- package/lib/commonjs/capture/time-shift-manual-capture.js.map +1 -0
- package/lib/commonjs/theta-repository/access-point.js +5 -1
- package/lib/commonjs/theta-repository/access-point.js.map +1 -1
- package/lib/commonjs/theta-repository/libs/convert-utils.js +22 -0
- package/lib/commonjs/theta-repository/libs/convert-utils.js.map +1 -0
- package/lib/commonjs/theta-repository/libs/index.js +11 -0
- package/lib/commonjs/theta-repository/libs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/notify-controller.js +16 -7
- package/lib/commonjs/theta-repository/notify-controller.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +166 -12
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-access-info.js +30 -0
- package/lib/commonjs/theta-repository/options/option-access-info.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-aperture.js +24 -0
- package/lib/commonjs/theta-repository/options/option-aperture.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js +2 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-camera-lock-config.js +2 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock-config.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock.js +27 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-power.js +3 -0
- package/lib/commonjs/theta-repository/options/option-camera-power.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js +30 -0
- package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-exposure-compensation.js +64 -0
- package/lib/commonjs/theta-repository/options/option-exposure-compensation.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-file-format.js +29 -1
- package/lib/commonjs/theta-repository/options/option-file-format.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js +18 -0
- package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js +23 -0
- package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js +32 -0
- package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js +18 -2
- package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-off-delay-usb.js +61 -0
- package/lib/commonjs/theta-repository/options/option-off-delay-usb.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js +12 -6
- package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js +6 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-usb-connection.js +23 -0
- package/lib/commonjs/theta-repository/options/option-usb-connection.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js +20 -0
- package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +8 -2
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -1
- package/lib/commonjs/theta-repository/options/options.js +44 -62
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-files.js +5 -1
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-info.js +3 -1
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +116 -17
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-state/capture-status.js +6 -1
- package/lib/commonjs/theta-repository/theta-state/capture-status.js.map +1 -1
- package/lib/module/capture/capture.js +12 -1
- package/lib/module/capture/capture.js.map +1 -1
- package/lib/module/capture/continuous-capture.js +2 -1
- package/lib/module/capture/continuous-capture.js.map +1 -1
- package/lib/module/capture/index.js +1 -0
- package/lib/module/capture/index.js.map +1 -1
- package/lib/module/capture/time-shift-manual-capture.js +160 -0
- package/lib/module/capture/time-shift-manual-capture.js.map +1 -0
- package/lib/module/theta-repository/access-point.js +5 -1
- package/lib/module/theta-repository/access-point.js.map +1 -1
- package/lib/module/theta-repository/libs/convert-utils.js +16 -0
- package/lib/module/theta-repository/libs/convert-utils.js.map +1 -0
- package/lib/module/theta-repository/libs/index.js +1 -0
- package/lib/module/theta-repository/libs/index.js.map +1 -1
- package/lib/module/theta-repository/notify-controller.js +16 -7
- package/lib/module/theta-repository/notify-controller.js.map +1 -1
- package/lib/module/theta-repository/options/index.js +16 -2
- package/lib/module/theta-repository/options/index.js.map +1 -1
- package/lib/module/theta-repository/options/option-access-info.js +24 -0
- package/lib/module/theta-repository/options/option-access-info.js.map +1 -0
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
- package/lib/module/theta-repository/options/option-aperture.js +18 -0
- package/lib/module/theta-repository/options/option-aperture.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js +2 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -1
- package/lib/module/theta-repository/options/option-camera-lock-config.js +2 -0
- package/lib/module/theta-repository/options/option-camera-lock-config.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-lock.js +21 -0
- package/lib/module/theta-repository/options/option-camera-lock.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-power.js +3 -0
- package/lib/module/theta-repository/options/option-camera-power.js.map +1 -1
- package/lib/module/theta-repository/options/option-compass-direction-ref.js +24 -0
- package/lib/module/theta-repository/options/option-compass-direction-ref.js.map +1 -0
- package/lib/module/theta-repository/options/option-exposure-compensation.js +58 -0
- package/lib/module/theta-repository/options/option-exposure-compensation.js.map +1 -0
- package/lib/module/theta-repository/options/option-file-format.js +29 -1
- package/lib/module/theta-repository/options/option-file-format.js.map +1 -1
- package/lib/module/theta-repository/options/option-gps-tag-recording.js +12 -0
- package/lib/module/theta-repository/options/option-gps-tag-recording.js.map +1 -0
- package/lib/module/theta-repository/options/option-microphone-noise-reduction.js +17 -0
- package/lib/module/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
- package/lib/module/theta-repository/options/option-mobile-network-setting.js +26 -0
- package/lib/module/theta-repository/options/option-mobile-network-setting.js.map +1 -0
- package/lib/module/theta-repository/options/option-network-type.js +18 -2
- package/lib/module/theta-repository/options/option-network-type.js.map +1 -1
- package/lib/module/theta-repository/options/option-off-delay-usb.js +54 -0
- package/lib/module/theta-repository/options/option-off-delay-usb.js.map +1 -0
- package/lib/module/theta-repository/options/option-preview-format.js +12 -6
- package/lib/module/theta-repository/options/option-preview-format.js.map +1 -1
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js +2 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
- package/lib/module/theta-repository/options/option-usb-connection.js +17 -0
- package/lib/module/theta-repository/options/option-usb-connection.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-antenna-config.js +14 -0
- package/lib/module/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
- package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js +8 -2
- package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -1
- package/lib/module/theta-repository/options/options.js +43 -61
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-files.js +5 -1
- package/lib/module/theta-repository/theta-files.js.map +1 -1
- package/lib/module/theta-repository/theta-info.js +3 -1
- package/lib/module/theta-repository/theta-info.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +115 -19
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/theta-repository/theta-state/capture-status.js +6 -1
- package/lib/module/theta-repository/theta-state/capture-status.js.map +1 -1
- package/lib/typescript/capture/capture.d.ts +11 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -1
- package/lib/typescript/capture/continuous-capture.d.ts.map +1 -1
- package/lib/typescript/capture/index.d.ts +1 -0
- package/lib/typescript/capture/index.d.ts.map +1 -1
- package/lib/typescript/capture/time-shift-manual-capture.d.ts +70 -0
- package/lib/typescript/capture/time-shift-manual-capture.d.ts.map +1 -0
- package/lib/typescript/theta-repository/access-point.d.ts +11 -3
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
- package/lib/typescript/theta-repository/libs/convert-utils.d.ts +3 -0
- package/lib/typescript/theta-repository/libs/convert-utils.d.ts.map +1 -0
- package/lib/typescript/theta-repository/libs/index.d.ts +1 -0
- package/lib/typescript/theta-repository/libs/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts +3 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/index.d.ts +16 -2
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-access-info.d.ts +91 -0
- package/lib/typescript/theta-repository/options/option-access-info.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +2 -0
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-aperture.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-aperture.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts +3 -1
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +2 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts +26 -0
- package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-lock.d.ts +21 -0
- package/lib/typescript/theta-repository/options/option-camera-lock.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts +3 -0
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts +24 -0
- package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts +8 -4
- package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts +58 -0
- package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-file-format.d.ts +42 -0
- package/lib/typescript/theta-repository/options/option-file-format.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts +12 -0
- package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts +17 -0
- package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts +34 -0
- package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts +17 -1
- package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts +36 -0
- package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts +12 -6
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-usb-connection.d.ts +17 -0
- package/lib/typescript/theta-repository/options/option-usb-connection.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts +14 -0
- package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts +20 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +7 -1
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/options.d.ts +131 -63
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-files.d.ts +4 -0
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-info.d.ts +9 -1
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +54 -13
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-state/capture-status.d.ts +5 -0
- package/lib/typescript/theta-repository/theta-state/capture-status.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/capture/capture.ts +11 -0
- package/src/capture/continuous-capture.ts +2 -4
- package/src/capture/index.ts +1 -0
- package/src/capture/time-shift-manual-capture.ts +203 -0
- package/src/theta-repository/access-point.ts +11 -3
- package/src/theta-repository/libs/convert-utils.ts +27 -0
- package/src/theta-repository/libs/index.ts +1 -0
- package/src/theta-repository/notify-controller.ts +18 -8
- package/src/theta-repository/options/index.ts +16 -2
- package/src/theta-repository/options/option-access-info.ts +108 -0
- package/src/theta-repository/options/option-ai-auto-thumbnail.ts +2 -0
- package/src/theta-repository/options/option-aperture.ts +18 -0
- package/src/theta-repository/options/option-auto-bracket.ts +3 -7
- package/src/theta-repository/options/option-camera-control-source.ts +3 -0
- package/src/theta-repository/options/option-camera-lock-config.ts +25 -0
- package/src/theta-repository/options/option-camera-lock.ts +22 -0
- package/src/theta-repository/options/option-camera-power.ts +3 -0
- package/src/theta-repository/options/option-compass-direction-ref.ts +25 -0
- package/src/theta-repository/options/option-ethernet-config.ts +8 -4
- package/src/theta-repository/options/option-exposure-compensation.ts +59 -0
- package/src/theta-repository/options/option-file-format.ts +29 -0
- package/src/theta-repository/options/option-gps-tag-recording.ts +13 -0
- package/src/theta-repository/options/option-microphone-noise-reduction.ts +18 -0
- package/src/theta-repository/options/option-mobile-network-setting.ts +38 -0
- package/src/theta-repository/options/option-network-type.ts +17 -1
- package/src/theta-repository/options/option-off-delay-usb.ts +57 -0
- package/src/theta-repository/options/option-preview-format.ts +12 -6
- package/src/theta-repository/options/option-top-bottom-correction-rotation-support.ts +19 -0
- package/src/theta-repository/options/option-usb-connection.ts +18 -0
- package/src/theta-repository/options/option-wlan-antenna-config.ts +15 -0
- package/src/theta-repository/options/option-wlan-frequency-cl-mode.ts +19 -0
- package/src/theta-repository/options/option-wlan-frequency.ts +7 -1
- package/src/theta-repository/options/options.ts +133 -71
- package/src/theta-repository/theta-files.ts +4 -0
- package/src/theta-repository/theta-info.ts +9 -1
- package/src/theta-repository/theta-repository.ts +117 -30
- package/src/theta-repository/theta-state/capture-status.ts +5 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -20,6 +20,11 @@ export declare const CaptureStatusEnum: {
|
|
|
20
20
|
readonly RETROSPECTIVE_IMAGE_RECORDING: "RETROSPECTIVE_IMAGE_RECORDING";
|
|
21
21
|
/** Performing burst shooting */
|
|
22
22
|
readonly BURST_SHOOTING: "BURST_SHOOTING";
|
|
23
|
+
/**
|
|
24
|
+
* In the case of time-lag shooting by manual lens,
|
|
25
|
+
* set while waiting for the second shot to be taken after the first shot is completed.
|
|
26
|
+
*/
|
|
27
|
+
readonly TIME_SHIFT_SHOOTING_IDLE: "TIME_SHIFT_SHOOTING_IDLE";
|
|
23
28
|
};
|
|
24
29
|
/** type definition of CaptureStatusEnum */
|
|
25
30
|
export type CaptureStatusEnum = (typeof CaptureStatusEnum)[keyof typeof CaptureStatusEnum];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-status.d.ts","sourceRoot":"","sources":["../../../../src/theta-repository/theta-state/capture-status.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,eAAO,MAAM,iBAAiB;IAC5B,sBAAsB;;IAEtB,oCAAoC;;IAEpC,iBAAiB;;IAEjB,8BAA8B;;IAE9B,wCAAwC;;IAExC,8BAA8B;;IAE9B,oCAAoC;;IAEpC,qCAAqC;;IAErC,yCAAyC;;IAEzC,gCAAgC;;
|
|
1
|
+
{"version":3,"file":"capture-status.d.ts","sourceRoot":"","sources":["../../../../src/theta-repository/theta-state/capture-status.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,eAAO,MAAM,iBAAiB;IAC5B,sBAAsB;;IAEtB,oCAAoC;;IAEpC,iBAAiB;;IAEjB,8BAA8B;;IAE9B,wCAAwC;;IAExC,8BAA8B;;IAE9B,oCAAoC;;IAEpC,qCAAqC;;IAErC,yCAAyC;;IAEzC,gCAAgC;;IAEhC;;;OAGG;;CAEK,CAAC;AAEX,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/capture/capture.ts
CHANGED
|
@@ -126,10 +126,21 @@ export abstract class CaptureBuilder<T extends CaptureBuilder<T>> {
|
|
|
126
126
|
|
|
127
127
|
/** Capturing status */
|
|
128
128
|
export const CapturingStatusEnum = {
|
|
129
|
+
/** The process is starting */
|
|
130
|
+
STARTING: 'STARTING',
|
|
129
131
|
/** Capture in progress */
|
|
130
132
|
CAPTURING: 'CAPTURING',
|
|
131
133
|
/** Self-timer in progress */
|
|
132
134
|
SELF_TIMER_COUNTDOWN: 'SELF_TIMER_COUNTDOWN',
|
|
135
|
+
/** Performing timeShift shooting */
|
|
136
|
+
TIME_SHIFT_SHOOTING: 'TIME_SHIFT_SHOOTING',
|
|
137
|
+
/** Performing second capture of manual timeShift shooting */
|
|
138
|
+
TIME_SHIFT_SHOOTING_SECOND: 'TIME_SHIFT_SHOOTING_SECOND',
|
|
139
|
+
/**
|
|
140
|
+
* In the case of time-lag shooting by manual lens,
|
|
141
|
+
* set while waiting for the second shot to be taken after the first shot is completed.
|
|
142
|
+
*/
|
|
143
|
+
TIME_SHIFT_SHOOTING_IDLE: 'TIME_SHIFT_SHOOTING_IDLE',
|
|
133
144
|
} as const;
|
|
134
145
|
|
|
135
146
|
/** type definition of CapturingStatusEnum */
|
|
@@ -78,10 +78,8 @@ export class ContinuousCapture {
|
|
|
78
78
|
* @returns ContinuousNumberEnum
|
|
79
79
|
*/
|
|
80
80
|
async getContinuousNumber(): Promise<ContinuousNumberEnum> {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
ContinuousNumberEnum.UNSUPPORTED
|
|
84
|
-
);
|
|
81
|
+
const options = await getOptions([OptionNameEnum.ContinuousNumber]);
|
|
82
|
+
return options?.continuousNumber ?? ContinuousNumberEnum.UNSUPPORTED;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
|
package/src/capture/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './capture';
|
|
|
2
2
|
export * from './photo-capture';
|
|
3
3
|
export * from './video-capture';
|
|
4
4
|
export * from './time-shift-capture';
|
|
5
|
+
export * from './time-shift-manual-capture';
|
|
5
6
|
export * from './limitless-interval-capture';
|
|
6
7
|
export * from './shot-count-specified-interval-capture';
|
|
7
8
|
export * from './composite-interval-capture';
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { CaptureBuilder, CapturingStatusEnum } from './capture';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
import type { TimeShiftIntervalEnum } from '../theta-repository/options';
|
|
4
|
+
import {
|
|
5
|
+
BaseNotify,
|
|
6
|
+
NotifyController,
|
|
7
|
+
} from '../theta-repository/notify-controller';
|
|
8
|
+
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
9
|
+
|
|
10
|
+
const NOTIFY_NAME = 'TIME-SHIFT-MANUAL-PROGRESS';
|
|
11
|
+
const NOTIFY_STOP_ERROR = 'TIME-SHIFT-MANUAL-STOP-ERROR';
|
|
12
|
+
const NOTIFY_CAPTURING = 'TIME-SHIFT-MANUAL-CAPTURING';
|
|
13
|
+
|
|
14
|
+
interface CaptureProgressNotify extends BaseNotify {
|
|
15
|
+
params?: {
|
|
16
|
+
completion: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface CaptureStopErrorNotify extends BaseNotify {
|
|
21
|
+
params?: {
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface CapturingNotify extends BaseNotify {
|
|
27
|
+
params?: {
|
|
28
|
+
status: CapturingStatusEnum;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* TimeShiftManualCapture class
|
|
34
|
+
*/
|
|
35
|
+
export class TimeShiftManualCapture {
|
|
36
|
+
notify: NotifyController;
|
|
37
|
+
constructor(notify: NotifyController) {
|
|
38
|
+
this.notify = notify;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* start manual time-shift
|
|
42
|
+
*
|
|
43
|
+
* Later, need to call startSecondCapture() or cancelCapture()
|
|
44
|
+
*
|
|
45
|
+
* @param onProgress the block for time-shift onProgress
|
|
46
|
+
* @param onStopFailed the block for error of cancelCapture
|
|
47
|
+
* @param onCapturing Called when change capture status
|
|
48
|
+
* @return promise of captured file url
|
|
49
|
+
*/
|
|
50
|
+
async startCapture(
|
|
51
|
+
onProgress?: (completion?: number) => void,
|
|
52
|
+
onStopFailed?: (error: any) => void,
|
|
53
|
+
onCapturing?: (status: CapturingStatusEnum) => void
|
|
54
|
+
): Promise<string | undefined> {
|
|
55
|
+
if (onProgress) {
|
|
56
|
+
this.notify.addNotify(NOTIFY_NAME, (event: CaptureProgressNotify) => {
|
|
57
|
+
onProgress(event.params?.completion);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (onStopFailed) {
|
|
61
|
+
this.notify.addNotify(
|
|
62
|
+
NOTIFY_STOP_ERROR,
|
|
63
|
+
(event: CaptureStopErrorNotify) => {
|
|
64
|
+
onStopFailed(event.params);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
if (onCapturing) {
|
|
69
|
+
this.notify.addNotify(NOTIFY_CAPTURING, (event: CapturingNotify) => {
|
|
70
|
+
if (event.params?.status) {
|
|
71
|
+
onCapturing(event.params.status);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return new Promise<string | undefined>(async (resolve, reject) => {
|
|
77
|
+
await ThetaClientReactNative.startTimeShiftManualCapture()
|
|
78
|
+
.then((result?: string) => {
|
|
79
|
+
resolve(result ?? undefined);
|
|
80
|
+
})
|
|
81
|
+
.catch((error: any) => {
|
|
82
|
+
reject(error);
|
|
83
|
+
})
|
|
84
|
+
.finally(() => {
|
|
85
|
+
this.notify.removeNotify(NOTIFY_NAME);
|
|
86
|
+
this.notify.removeNotify(NOTIFY_STOP_ERROR);
|
|
87
|
+
this.notify.removeNotify(NOTIFY_CAPTURING);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* cancel manual time-shift
|
|
94
|
+
*/
|
|
95
|
+
async startSecondCapture(): Promise<any> {
|
|
96
|
+
return await ThetaClientReactNative.startTimeShiftManualSecondCapture();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* cancel manual time-shift
|
|
101
|
+
*/
|
|
102
|
+
async cancelCapture(): Promise<any> {
|
|
103
|
+
return await ThetaClientReactNative.cancelTimeShiftManualCapture();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* TimeShiftManualCaptureBuilder class
|
|
109
|
+
*/
|
|
110
|
+
export class TimeShiftManualCaptureBuilder extends CaptureBuilder<TimeShiftManualCaptureBuilder> {
|
|
111
|
+
interval?: number;
|
|
112
|
+
|
|
113
|
+
/** construct TimeShiftManualCaptureBuilder instance */
|
|
114
|
+
constructor() {
|
|
115
|
+
super();
|
|
116
|
+
|
|
117
|
+
this.interval = undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* set interval of checking time-shift status command
|
|
122
|
+
* @param timeMillis interval
|
|
123
|
+
* @returns TimeShiftManualCaptureBuilder
|
|
124
|
+
*/
|
|
125
|
+
setCheckStatusCommandInterval(
|
|
126
|
+
timeMillis: number
|
|
127
|
+
): TimeShiftManualCaptureBuilder {
|
|
128
|
+
this.interval = timeMillis;
|
|
129
|
+
return this;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Set is front first.
|
|
134
|
+
* @param isFrontFirst is front first
|
|
135
|
+
* @returns TimeShiftManualCaptureBuilder
|
|
136
|
+
*/
|
|
137
|
+
setIsFrontFirst(isFrontFirst: boolean): TimeShiftManualCaptureBuilder {
|
|
138
|
+
this.checkAndInitTimeShiftSetting();
|
|
139
|
+
if (this.options.timeShift != null) {
|
|
140
|
+
this.options.timeShift.isFrontFirst = isFrontFirst;
|
|
141
|
+
}
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* set time (sec) before 1st lens shooting
|
|
147
|
+
* @param interval 1st interval
|
|
148
|
+
* @returns TimeShiftManualCaptureBuilder
|
|
149
|
+
*/
|
|
150
|
+
setFirstInterval(
|
|
151
|
+
interval: TimeShiftIntervalEnum
|
|
152
|
+
): TimeShiftManualCaptureBuilder {
|
|
153
|
+
this.checkAndInitTimeShiftSetting();
|
|
154
|
+
if (this.options.timeShift != null) {
|
|
155
|
+
this.options.timeShift.firstInterval = interval;
|
|
156
|
+
}
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* set time (sec) from 1st lens shooting until start of 2nd lens shooting.
|
|
162
|
+
* @param interval 2nd interval
|
|
163
|
+
* @returns TimeShiftManualCaptureBuilder
|
|
164
|
+
*/
|
|
165
|
+
setSecondInterval(
|
|
166
|
+
interval: TimeShiftIntervalEnum
|
|
167
|
+
): TimeShiftManualCaptureBuilder {
|
|
168
|
+
this.checkAndInitTimeShiftSetting();
|
|
169
|
+
if (this.options.timeShift != null) {
|
|
170
|
+
this.options.timeShift.secondInterval = interval;
|
|
171
|
+
}
|
|
172
|
+
return this;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
private checkAndInitTimeShiftSetting() {
|
|
176
|
+
if (this.options.timeShift == null) {
|
|
177
|
+
this.options.timeShift = {};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Builds an instance of a TimeShiftManualCapture that has all the combined
|
|
183
|
+
* parameters of the Options that have been added to the Builder.
|
|
184
|
+
*
|
|
185
|
+
* @return promise of TimeShiftManualCapture instance
|
|
186
|
+
*/
|
|
187
|
+
build(): Promise<TimeShiftManualCapture> {
|
|
188
|
+
let params = {
|
|
189
|
+
...this.options,
|
|
190
|
+
// Cannot pass negative values in IOS, use objects
|
|
191
|
+
_capture_interval: this.interval ?? -1,
|
|
192
|
+
};
|
|
193
|
+
return new Promise<TimeShiftManualCapture>(async (resolve, reject) => {
|
|
194
|
+
try {
|
|
195
|
+
await ThetaClientReactNative.getTimeShiftManualCaptureBuilder();
|
|
196
|
+
await ThetaClientReactNative.buildTimeShiftManualCapture(params);
|
|
197
|
+
resolve(new TimeShiftManualCapture(NotifyController.instance));
|
|
198
|
+
} catch (error) {
|
|
199
|
+
reject(error);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -4,12 +4,16 @@ import type { Proxy } from './options';
|
|
|
4
4
|
* Enum for authentication mode.
|
|
5
5
|
*/
|
|
6
6
|
export const AuthModeEnum = {
|
|
7
|
+
/** Undefined value */
|
|
8
|
+
UNKNOWN: 'UNKNOWN',
|
|
7
9
|
/** None of authentication */
|
|
8
10
|
NONE: 'NONE',
|
|
9
11
|
/** Wep authentication */
|
|
10
12
|
WEP: 'WEP',
|
|
11
13
|
/** WPA PSK or WPA2 PSK authentication */
|
|
12
14
|
WPA: 'WPA',
|
|
15
|
+
/** WPA3-SAE authentication */
|
|
16
|
+
WPA3: 'WPA3',
|
|
13
17
|
} as const;
|
|
14
18
|
|
|
15
19
|
/** type definition of AuthModeEnum */
|
|
@@ -17,13 +21,13 @@ export type AuthModeEnum = (typeof AuthModeEnum)[keyof typeof AuthModeEnum];
|
|
|
17
21
|
|
|
18
22
|
/** Access point information. */
|
|
19
23
|
export type AccessPoint = {
|
|
20
|
-
/** SSID
|
|
24
|
+
/** SSID */
|
|
21
25
|
ssid: string;
|
|
22
|
-
/**
|
|
26
|
+
/** SSID stealth. Default is false. */
|
|
23
27
|
ssidStealth: boolean;
|
|
24
28
|
/** Authentication mode. */
|
|
25
29
|
authMode: AuthModeEnum;
|
|
26
|
-
/** Connection priority 1 to 5. */
|
|
30
|
+
/** Connection priority (1 to 5). Default is 1. */
|
|
27
31
|
connectionPriority: number;
|
|
28
32
|
/** Using DHCP or not. */
|
|
29
33
|
usingDhcp: boolean;
|
|
@@ -33,6 +37,10 @@ export type AccessPoint = {
|
|
|
33
37
|
subnetMask?: string;
|
|
34
38
|
/** Default Gateway. */
|
|
35
39
|
defaultGateway?: string;
|
|
40
|
+
/** Primary DNS server. */
|
|
41
|
+
dns1?: string;
|
|
42
|
+
/** Secondary DNS server. */
|
|
43
|
+
dns2?: string;
|
|
36
44
|
/** Proxy information to be used when wired LAN is enabled. */
|
|
37
45
|
proxy?: Proxy;
|
|
38
46
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Options } from '../options';
|
|
2
|
+
|
|
3
|
+
export function convertOptions(
|
|
4
|
+
options: Options,
|
|
5
|
+
jsonOptions?: Record<string, string>
|
|
6
|
+
): Options {
|
|
7
|
+
if (!jsonOptions) {
|
|
8
|
+
return options;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const result = { ...options };
|
|
12
|
+
|
|
13
|
+
let jsonString = JSON.stringify(jsonOptions);
|
|
14
|
+
jsonString = jsonString
|
|
15
|
+
.replace(/\\"/g, '"')
|
|
16
|
+
.replace(/\\n/g, '')
|
|
17
|
+
.replace(/"{/g, '{')
|
|
18
|
+
.replace(/}"/g, '}');
|
|
19
|
+
const parsedOptions = JSON.parse(jsonString) as Options;
|
|
20
|
+
|
|
21
|
+
if (parsedOptions.topBottomCorrectionRotationSupport) {
|
|
22
|
+
result.topBottomCorrectionRotationSupport =
|
|
23
|
+
parsedOptions.topBottomCorrectionRotationSupport;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
@@ -15,19 +15,27 @@ export class NotifyController {
|
|
|
15
15
|
return NotifyController._instance;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
eventEmitter?: NativeEventEmitter = undefined;
|
|
18
19
|
eventListener?: EmitterSubscription = undefined;
|
|
19
20
|
notifyList = new Map<string, ((notify: BaseNotify) => void) | undefined>();
|
|
20
21
|
|
|
21
22
|
init() {
|
|
22
|
-
this.
|
|
23
|
-
this.eventListener
|
|
24
|
-
this.
|
|
25
|
-
|
|
23
|
+
this.notifyList.clear();
|
|
24
|
+
if (this.eventListener == null) {
|
|
25
|
+
this.eventListener = this.addNotifyListener((notify: BaseNotify) => {
|
|
26
|
+
this.notifyList.get(notify.name)?.(notify as BaseNotify);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
isInit() {
|
|
32
|
+
return this.eventListener != null;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
release() {
|
|
29
36
|
this.eventListener?.remove();
|
|
30
37
|
this.eventListener = undefined;
|
|
38
|
+
this.eventEmitter = undefined;
|
|
31
39
|
this.notifyList.clear();
|
|
32
40
|
}
|
|
33
41
|
|
|
@@ -46,9 +54,11 @@ export class NotifyController {
|
|
|
46
54
|
private addNotifyListener(
|
|
47
55
|
callback: (event: BaseNotify) => void
|
|
48
56
|
): EmitterSubscription {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
if (this.eventEmitter == null) {
|
|
58
|
+
this.eventEmitter = new NativeEventEmitter(
|
|
59
|
+
NativeModules.ThetaClientReactNative
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return this.eventEmitter.addListener('ThetaNotify', callback);
|
|
53
63
|
}
|
|
54
64
|
}
|
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
export * from './options';
|
|
2
|
+
export * from './option-access-info';
|
|
2
3
|
export * from './option-ai-auto-thumbnail';
|
|
4
|
+
export * from './option-aperture';
|
|
3
5
|
export * from './option-auto-bracket';
|
|
4
6
|
export * from './option-bitrate';
|
|
5
7
|
export * from './option-bluetooth-role';
|
|
6
8
|
export * from './option-burst-mode';
|
|
7
9
|
export * from './option-burst-option';
|
|
8
10
|
export * from './option-camera-control-source';
|
|
11
|
+
export * from './option-camera-lock-config';
|
|
12
|
+
export * from './option-camera-lock';
|
|
9
13
|
export * from './option-camera-mode';
|
|
10
14
|
export * from './option-camera-power';
|
|
11
15
|
export * from './option-capture-mode';
|
|
16
|
+
export * from './option-compass-direction-ref';
|
|
12
17
|
export * from './option-continuous-number';
|
|
18
|
+
export * from './option-ethernet-config';
|
|
19
|
+
export * from './option-exposure-compensation';
|
|
13
20
|
export * from './option-face-detect';
|
|
14
21
|
export * from './option-file-format';
|
|
15
22
|
export * from './option-filter';
|
|
16
23
|
export * from './option-function';
|
|
17
24
|
export * from './option-gain';
|
|
25
|
+
export * from './option-gps-tag-recording';
|
|
18
26
|
export * from './option-image-stitching';
|
|
19
27
|
export * from './option-max-recordable-time';
|
|
28
|
+
export * from './option-microphone-noise-reduction';
|
|
29
|
+
export * from './option-mobile-network-setting';
|
|
20
30
|
export * from './option-network-type';
|
|
31
|
+
export * from './option-off-delay-usb';
|
|
21
32
|
export * from './option-off-delay';
|
|
22
33
|
export * from './option-power-saving';
|
|
23
34
|
export * from './option-preset';
|
|
@@ -27,10 +38,13 @@ export * from './option-shooting-method';
|
|
|
27
38
|
export * from './option-shutter-speed';
|
|
28
39
|
export * from './option-sleep-delay';
|
|
29
40
|
export * from './option-time-shift';
|
|
30
|
-
export * from './option-top-bottom-correction';
|
|
41
|
+
export * from './option-top-bottom-correction-rotation-support';
|
|
31
42
|
export * from './option-top-bottom-correction-rotation';
|
|
43
|
+
export * from './option-top-bottom-correction';
|
|
44
|
+
export * from './option-usb-connection';
|
|
32
45
|
export * from './option-video-stitching';
|
|
33
46
|
export * from './option-visibility-reduction';
|
|
34
47
|
export * from './option-white-balance-auto-strength';
|
|
48
|
+
export * from './option-wlan-antenna-config';
|
|
49
|
+
export * from './option-wlan-frequency-cl-mode';
|
|
35
50
|
export * from './option-wlan-frequency';
|
|
36
|
-
export * from './option-ethernet-config';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connected network information.
|
|
3
|
+
*/
|
|
4
|
+
export type AccessInfo = {
|
|
5
|
+
/**
|
|
6
|
+
* SSID of the wireless LAN access point that THETA connects to
|
|
7
|
+
*/
|
|
8
|
+
ssid: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* IP address of access point
|
|
12
|
+
*/
|
|
13
|
+
ipAddress: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* subnet mask of access point
|
|
17
|
+
*/
|
|
18
|
+
subnetMask: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* default gateway of access point
|
|
22
|
+
*/
|
|
23
|
+
defaultGateway: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Primary DNS server
|
|
27
|
+
*/
|
|
28
|
+
dns1?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Secondary DNS server
|
|
32
|
+
*/
|
|
33
|
+
dns2?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* proxy URL of access point
|
|
37
|
+
*/
|
|
38
|
+
proxyURL: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Radio frequency.
|
|
42
|
+
* @see WlanFrequencyAccessInfoEnum
|
|
43
|
+
*/
|
|
44
|
+
frequency: WlanFrequencyAccessInfoEnum;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* WLAN signal strength.
|
|
48
|
+
*/
|
|
49
|
+
wlanSignalStrength: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* WLAN signal level.
|
|
53
|
+
*/
|
|
54
|
+
wlanSignalLevel: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* LTE signal strength.
|
|
58
|
+
*/
|
|
59
|
+
lteSignalStrength: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* LTE signal level.
|
|
63
|
+
*/
|
|
64
|
+
lteSignalLevel: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* client devices information
|
|
68
|
+
*/
|
|
69
|
+
dhcpLeaseAddress?: DhcpLeaseAddress[];
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** WLAN standards of the access points. */
|
|
73
|
+
export const WlanFrequencyAccessInfoEnum = {
|
|
74
|
+
/** Undefined value */
|
|
75
|
+
UNKNOWN: 'UNKNOWN',
|
|
76
|
+
/** 2.4GHz */
|
|
77
|
+
GHZ_2_4: 'GHZ_2_4',
|
|
78
|
+
/** 5.2GHz */
|
|
79
|
+
GHZ_5_2: 'GHZ_5_2',
|
|
80
|
+
/** 5.8GHz */
|
|
81
|
+
GHZ_5_8: 'GHZ_5_8',
|
|
82
|
+
/** Initial value */
|
|
83
|
+
INITIAL_VALUE: 'INITIAL_VALUE',
|
|
84
|
+
} as const;
|
|
85
|
+
|
|
86
|
+
/** type definition of WlanFrequencyAccessInfoEnum */
|
|
87
|
+
export type WlanFrequencyAccessInfoEnum =
|
|
88
|
+
(typeof WlanFrequencyAccessInfoEnum)[keyof typeof WlanFrequencyAccessInfoEnum];
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* client devices information
|
|
92
|
+
*/
|
|
93
|
+
export interface DhcpLeaseAddress {
|
|
94
|
+
/**
|
|
95
|
+
* IP address of client device
|
|
96
|
+
*/
|
|
97
|
+
ipAddress: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* MAC address of client device
|
|
101
|
+
*/
|
|
102
|
+
macAddress: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* host name of client device
|
|
106
|
+
*/
|
|
107
|
+
hostName: string;
|
|
108
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Aperture value. */
|
|
2
|
+
export const ApertureEnum = {
|
|
3
|
+
/** AUTO(0) */
|
|
4
|
+
APERTURE_AUTO: 'APERTURE_AUTO',
|
|
5
|
+
/** 2.0F RICOH THETA V or prior */
|
|
6
|
+
APERTURE_2_0: 'APERTURE_2_0',
|
|
7
|
+
/** 2.1F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
8
|
+
APERTURE_2_1: 'APERTURE_2_1',
|
|
9
|
+
/** 2.4F RICOH THETA X or later */
|
|
10
|
+
APERTURE_2_4: 'APERTURE_2_4',
|
|
11
|
+
/** 3.5F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
12
|
+
APERTURE_3_5: 'APERTURE_3_5',
|
|
13
|
+
/** 5.6F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
14
|
+
APERTURE_5_6: 'APERTURE_5_6',
|
|
15
|
+
} as const;
|
|
16
|
+
|
|
17
|
+
/** type definition of ApertureEnum */
|
|
18
|
+
export type ApertureEnum = (typeof ApertureEnum)[keyof typeof ApertureEnum];
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
ExposureCompensationEnum,
|
|
4
|
-
ExposureProgramEnum,
|
|
5
|
-
IsoEnum,
|
|
6
|
-
WhiteBalanceEnum,
|
|
7
|
-
} from './options';
|
|
1
|
+
import type { ExposureProgramEnum, IsoEnum, WhiteBalanceEnum } from './options';
|
|
2
|
+
import type { ApertureEnum } from './option-aperture';
|
|
8
3
|
import type { ShutterSpeedEnum } from './option-shutter-speed';
|
|
4
|
+
import type { ExposureCompensationEnum } from './option-exposure-compensation';
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* Multi bracket shooting setting
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camera Lock Config
|
|
3
|
+
*
|
|
4
|
+
* - It is possible to enable/disable the function for each HW key.
|
|
5
|
+
* - It is possible to enable/disable the operation of the panel.
|
|
6
|
+
* - When all supported buttons/components are in the "unlock" state, it will be the same as the normal setting.
|
|
7
|
+
* - For THETA models, if there are no wlanKey, fnKey, or panel, it will return "lock". If there are no supported buttons/components, setting to "unlock" or "lock" will not return an error and will not perform any action.
|
|
8
|
+
*/
|
|
9
|
+
export type CameraLockConfig = {
|
|
10
|
+
/** power key locked or unlocked. */
|
|
11
|
+
isPowerKeyLocked?: boolean;
|
|
12
|
+
/** Shutter key locked or unlocked. */
|
|
13
|
+
isShutterKeyLocked?: boolean;
|
|
14
|
+
/** mode key locked or unlocked. */
|
|
15
|
+
isModeKeyLocked?: boolean;
|
|
16
|
+
/** wlan key locked or unlocked. */
|
|
17
|
+
isWlanKeyLocked?: boolean;
|
|
18
|
+
/** fn key locked or unlocked. */
|
|
19
|
+
isFnKeyLocked?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* panel locked or unlocked.
|
|
22
|
+
* Fixed to true. Does not cause an error when false, but it is not reflected either.
|
|
23
|
+
*/
|
|
24
|
+
isPanelLocked?: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control camera lock/unlock
|
|
3
|
+
*/
|
|
4
|
+
export const CameraLockEnum = {
|
|
5
|
+
/** Undefined value */
|
|
6
|
+
UNKNOWN: 'UNKNOWN',
|
|
7
|
+
/** Camera is unlocked */
|
|
8
|
+
UNLOCK: 'UNLOCK',
|
|
9
|
+
/**
|
|
10
|
+
* Camera basic lock state
|
|
11
|
+
* (Mode button, WLAN button, and Fn button presses are inhibited)
|
|
12
|
+
*/
|
|
13
|
+
BASIC_LOCK: 'BASIC_LOCK',
|
|
14
|
+
/**
|
|
15
|
+
* Lock according to the parameters set in _cameraLockConfig.
|
|
16
|
+
*/
|
|
17
|
+
CUSTOM_LOCK: 'CUSTOM_LOCK',
|
|
18
|
+
} as const;
|
|
19
|
+
|
|
20
|
+
/** type definition of CameraLockEnum */
|
|
21
|
+
export type CameraLockEnum =
|
|
22
|
+
(typeof CameraLockEnum)[keyof typeof CameraLockEnum];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Camera power state.
|
|
2
3
|
* _cameraPower is the power status of camera.
|
|
3
4
|
*
|
|
4
5
|
* For RICOH THETA X v2.61.0 or later
|
|
@@ -10,6 +11,8 @@ export const CameraPowerEnum = {
|
|
|
10
11
|
ON: 'ON',
|
|
11
12
|
/** Power OFF */
|
|
12
13
|
OFF: 'OFF',
|
|
14
|
+
/** Sleep */
|
|
15
|
+
SLEEP: 'SLEEP',
|
|
13
16
|
/**
|
|
14
17
|
* Power on, power saving mode. Camera is closed.
|
|
15
18
|
* Unavailable parameter when plugin is running. In this case, invalidParameterValue error will be returned.
|