theta-client-react-native 1.0.2 → 1.2.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/README.md +6 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +409 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +700 -24
- package/ios/ThetaClientReactNative.h +6 -0
- package/ios/ThetaClientReactNative.mm +1661 -183
- package/lib/commonjs/capture/capture.js +118 -0
- package/lib/commonjs/capture/capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +50 -0
- package/lib/commonjs/capture/index.js.map +1 -0
- package/lib/commonjs/capture/notify.js +12 -0
- package/lib/commonjs/capture/notify.js.map +1 -0
- package/lib/commonjs/capture/photo-capture.js +64 -0
- package/lib/commonjs/capture/photo-capture.js.map +1 -0
- package/lib/commonjs/capture/time-shift-capture.js +91 -0
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
- package/lib/commonjs/capture/video-capture.js +71 -0
- package/lib/commonjs/capture/video-capture.js.map +1 -0
- package/lib/commonjs/index.js +40 -1041
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/access-point.js +23 -0
- package/lib/commonjs/theta-repository/access-point.js.map +1 -0
- package/lib/commonjs/theta-repository/digest-auth.js +2 -0
- package/lib/commonjs/theta-repository/digest-auth.js.map +1 -0
- package/lib/commonjs/theta-repository/index.js +105 -0
- package/lib/commonjs/theta-repository/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/index.js +138 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js +29 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-mode.js +26 -0
- package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js +26 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-power-saving.js +24 -0
- package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js +32 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-proxy.js +2 -0
- package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-shooting-method.js +41 -0
- package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js +302 -0
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-time-shift.js +43 -0
- package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +25 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +22 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -0
- package/lib/commonjs/theta-repository/options/options.js +490 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-config.js +6 -0
- package/lib/commonjs/theta-repository/theta-config.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-files.js +35 -0
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-info.js +2 -0
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-meta.js +2 -0
- package/lib/commonjs/theta-repository/theta-meta.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-plugin.js +2 -0
- package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-repository.js +510 -0
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-state.js +120 -0
- package/lib/commonjs/theta-repository/theta-state.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-timeout.js +2 -0
- package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -0
- package/lib/module/capture/capture.js +111 -0
- package/lib/module/capture/capture.js.map +1 -0
- package/lib/module/capture/index.js +5 -0
- package/lib/module/capture/index.js.map +1 -0
- package/lib/module/capture/notify.js +6 -0
- package/lib/module/capture/notify.js.map +1 -0
- package/lib/module/capture/photo-capture.js +56 -0
- package/lib/module/capture/photo-capture.js.map +1 -0
- package/lib/module/capture/time-shift-capture.js +83 -0
- package/lib/module/capture/time-shift-capture.js.map +1 -0
- package/lib/module/capture/video-capture.js +63 -0
- package/lib/module/capture/video-capture.js.map +1 -0
- package/lib/module/index.js +3 -1009
- package/lib/module/index.js.map +1 -1
- package/lib/module/theta-repository/access-point.js +16 -0
- package/lib/module/theta-repository/access-point.js.map +1 -0
- package/lib/module/theta-repository/digest-auth.js +2 -0
- package/lib/module/theta-repository/digest-auth.js.map +1 -0
- package/lib/module/theta-repository/index.js +10 -0
- package/lib/module/theta-repository/index.js.map +1 -0
- package/lib/module/theta-repository/options/index.js +13 -0
- package/lib/module/theta-repository/options/index.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js +22 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-mode.js +19 -0
- package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-network-type.js +19 -0
- package/lib/module/theta-repository/options/option-network-type.js.map +1 -0
- package/lib/module/theta-repository/options/option-power-saving.js +17 -0
- package/lib/module/theta-repository/options/option-power-saving.js.map +1 -0
- package/lib/module/theta-repository/options/option-preview-format.js +25 -0
- package/lib/module/theta-repository/options/option-preview-format.js.map +1 -0
- package/lib/module/theta-repository/options/option-proxy.js +2 -0
- package/lib/module/theta-repository/options/option-proxy.js.map +1 -0
- package/lib/module/theta-repository/options/option-shooting-method.js +34 -0
- package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -0
- package/lib/module/theta-repository/options/option-shutter-speed.js +295 -0
- package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -0
- package/lib/module/theta-repository/options/option-time-shift.js +36 -0
- package/lib/module/theta-repository/options/option-time-shift.js.map +1 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js +18 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js +15 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +482 -0
- package/lib/module/theta-repository/options/options.js.map +1 -0
- package/lib/module/theta-repository/theta-config.js +2 -0
- package/lib/module/theta-repository/theta-config.js.map +1 -0
- package/lib/module/theta-repository/theta-files.js +28 -0
- package/lib/module/theta-repository/theta-files.js.map +1 -0
- package/lib/module/theta-repository/theta-info.js +2 -0
- package/lib/module/theta-repository/theta-info.js.map +1 -0
- package/lib/module/theta-repository/theta-meta.js +2 -0
- package/lib/module/theta-repository/theta-meta.js.map +1 -0
- package/lib/module/theta-repository/theta-plugin.js +2 -0
- package/lib/module/theta-repository/theta-plugin.js.map +1 -0
- package/lib/module/theta-repository/theta-repository.js +466 -0
- package/lib/module/theta-repository/theta-repository.js.map +1 -0
- package/lib/module/theta-repository/theta-state.js +113 -0
- package/lib/module/theta-repository/theta-state.js.map +1 -0
- package/lib/module/theta-repository/theta-timeout.js +2 -0
- package/lib/module/theta-repository/theta-timeout.js.map +1 -0
- package/lib/typescript/capture/capture.d.ts +71 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +5 -0
- package/lib/typescript/capture/index.d.ts.map +1 -0
- package/lib/typescript/capture/notify.d.ts +13 -0
- package/lib/typescript/capture/notify.d.ts.map +1 -0
- package/lib/typescript/capture/photo-capture.d.ts +38 -0
- package/lib/typescript/capture/photo-capture.d.ts.map +1 -0
- package/lib/typescript/capture/time-shift-capture.d.ts +44 -0
- package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
- package/lib/typescript/capture/video-capture.d.ts +43 -0
- package/lib/typescript/capture/video-capture.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -972
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/access-point.d.ts +36 -0
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
- package/lib/typescript/theta-repository/digest-auth.d.ts +17 -0
- package/lib/typescript/theta-repository/digest-auth.d.ts.map +1 -0
- package/lib/typescript/theta-repository/index.d.ts +10 -0
- package/lib/typescript/theta-repository/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/index.d.ts +13 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +22 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-mode.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-camera-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-power-saving.d.ts +16 -0
- package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts +25 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-proxy.d.ts +23 -0
- package/lib/typescript/theta-repository/options/option-proxy.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-shooting-method.d.ts +33 -0
- package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts +295 -0
- package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-time-shift.d.ts +54 -0
- package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +15 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +566 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-config.d.ts +20 -0
- package/lib/typescript/theta-repository/theta-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-files.d.ts +45 -0
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-info.d.ts +34 -0
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts +38 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts +26 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts +333 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-state.d.ts +150 -0
- package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-timeout.d.ts +22 -0
- package/lib/typescript/theta-repository/theta-timeout.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/capture/capture.ts +124 -0
- package/src/capture/index.ts +4 -0
- package/src/capture/notify.ts +27 -0
- package/src/capture/photo-capture.ts +62 -0
- package/src/capture/time-shift-capture.ts +99 -0
- package/src/capture/video-capture.ts +69 -0
- package/src/index.tsx +3 -1243
- package/src/theta-repository/access-point.ts +38 -0
- package/src/theta-repository/digest-auth.ts +16 -0
- package/src/theta-repository/index.ts +9 -0
- package/src/theta-repository/options/index.ts +13 -0
- package/src/theta-repository/options/option-camera-control-source.ts +24 -0
- package/src/theta-repository/options/option-camera-mode.ts +20 -0
- package/src/theta-repository/options/option-network-type.ts +20 -0
- package/src/theta-repository/options/option-power-saving.ts +18 -0
- package/src/theta-repository/options/option-preview-format.ts +27 -0
- package/src/theta-repository/options/option-proxy.ts +22 -0
- package/src/theta-repository/options/option-shooting-method.ts +36 -0
- package/src/theta-repository/options/option-shutter-speed.ts +360 -0
- package/src/theta-repository/options/option-time-shift.ts +59 -0
- package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
- package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
- package/src/theta-repository/options/options.ts +622 -0
- package/src/theta-repository/theta-config.ts +20 -0
- package/src/theta-repository/theta-files.ts +49 -0
- package/src/theta-repository/theta-info.ts +35 -0
- package/src/theta-repository/theta-meta.ts +39 -0
- package/src/theta-repository/theta-plugin.ts +25 -0
- package/src/theta-repository/theta-repository.ts +527 -0
- package/src/theta-repository/theta-state.ts +164 -0
- package/src/theta-repository/theta-timeout.ts +21 -0
- package/theta-client-react-native.podspec +1 -1
package/lib/module/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
1
|
import { NativeModules, Platform } from 'react-native';
|
|
5
2
|
const LINKING_ERROR = `The package 'theta-client-react-native' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
6
3
|
ios: "- You have run 'pod install'\n",
|
|
@@ -12,1012 +9,9 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative ? NativeModu
|
|
|
12
9
|
}
|
|
13
10
|
});
|
|
14
11
|
|
|
15
|
-
/** Static attributes of Theta. */
|
|
16
|
-
|
|
17
|
-
/** Battery charging state constants */
|
|
18
|
-
export const ChargingStateEnum = {
|
|
19
|
-
/** Charging */
|
|
20
|
-
CHARGING: 'CHARGING',
|
|
21
|
-
/** Charging completed */
|
|
22
|
-
COMPLETED: 'COMPLETED',
|
|
23
|
-
/** Not charging */
|
|
24
|
-
NOT_CHARGING: 'NOT_CHARGING'
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** type definition of ChargingStateEnum */
|
|
28
|
-
|
|
29
|
-
/** File type in Theta. */
|
|
30
|
-
export const FileTypeEnum = {
|
|
31
|
-
/** still image files. */
|
|
32
|
-
IMAGE: 'IMAGE',
|
|
33
|
-
/** video files. */
|
|
34
|
-
VIDEO: 'VIDEO',
|
|
35
|
-
/** all files. */
|
|
36
|
-
ALL: 'ALL'
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/** type definition of FileTypeEnum */
|
|
40
|
-
|
|
41
|
-
/** Aperture value. */
|
|
42
|
-
export const ApertureEnum = {
|
|
43
|
-
/** AUTO(0) */
|
|
44
|
-
APERTURE_AUTO: 'APERTURE_AUTO',
|
|
45
|
-
/** 2.0F RICOH THETA V or prior */
|
|
46
|
-
APERTURE_2_0: 'APERTURE_2_0',
|
|
47
|
-
/** 2.1F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
48
|
-
APERTURE_2_1: 'APERTURE_2_1',
|
|
49
|
-
/** 2.4F RICOH THETA X or later */
|
|
50
|
-
APERTURE_2_4: 'APERTURE_2_4',
|
|
51
|
-
/** 3.5F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
52
|
-
APERTURE_3_5: 'APERTURE_3_5',
|
|
53
|
-
/** 5.6F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
54
|
-
APERTURE_5_6: 'APERTURE_5_6'
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/** type definition of ApertureEnum */
|
|
58
|
-
|
|
59
|
-
/** Shooting mode. */
|
|
60
|
-
export const CaptureModeEnum = {
|
|
61
|
-
/** Still image capture mode */
|
|
62
|
-
IMAGE: 'IMAGE',
|
|
63
|
-
/** Video capture mode */
|
|
64
|
-
VIDEO: 'VIDEO'
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** type definition of CaptureModeEnum */
|
|
68
|
-
|
|
69
|
-
/** Exposure compensation (EV). */
|
|
70
|
-
export const ExposureCompensationEnum = {
|
|
71
|
-
/** -2.0 */
|
|
72
|
-
M_2_0: 'M2_0',
|
|
73
|
-
/** -1.7 */
|
|
74
|
-
M_1_7: 'M1_7',
|
|
75
|
-
/** -1.3 */
|
|
76
|
-
M_1_3: 'M1_3',
|
|
77
|
-
/** -1.0 */
|
|
78
|
-
M_1_0: 'M1_0',
|
|
79
|
-
/** -0.7 */
|
|
80
|
-
M_0_7: 'M0_7',
|
|
81
|
-
/** -0.3 */
|
|
82
|
-
M_0_3: 'M0_3',
|
|
83
|
-
/** 0 */
|
|
84
|
-
ZERO: 'ZERO',
|
|
85
|
-
/** 0.3 */
|
|
86
|
-
P_0_3: 'P0_3',
|
|
87
|
-
/** 0.7 */
|
|
88
|
-
P_0_7: 'P0_7',
|
|
89
|
-
/** 1.0 */
|
|
90
|
-
P_1_0: 'P1_0',
|
|
91
|
-
/** 1.3 */
|
|
92
|
-
P_1_3: 'P1_3',
|
|
93
|
-
/** 1.7 */
|
|
94
|
-
P_1_7: 'P1_7',
|
|
95
|
-
/** 2.0 */
|
|
96
|
-
P_2_0: 'P2_0'
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/** type definition of ExposureCompensationEnum */
|
|
100
|
-
|
|
101
|
-
/** Operating time (sec.) of the self-timer. */
|
|
102
|
-
export const ExposureDelayEnum = {
|
|
103
|
-
/** Disable self-timer. */
|
|
104
|
-
DELAY_OFF: 'DELAY_OFF',
|
|
105
|
-
/** a second */
|
|
106
|
-
DELAY_1: 'DELAY_1',
|
|
107
|
-
/** 2 seconds */
|
|
108
|
-
DELAY_2: 'DELAY_2',
|
|
109
|
-
/** 3 seconds */
|
|
110
|
-
DELAY_3: 'DELAY_3',
|
|
111
|
-
/** 4 seconds */
|
|
112
|
-
DELAY_4: 'DELAY_4',
|
|
113
|
-
/** 5 seconds */
|
|
114
|
-
DELAY_5: 'DELAY_5',
|
|
115
|
-
/** 6 seconds */
|
|
116
|
-
DELAY_6: 'DELAY_6',
|
|
117
|
-
/** 7 seconds */
|
|
118
|
-
DELAY_7: 'DELAY_7',
|
|
119
|
-
/** 8 seconds */
|
|
120
|
-
DELAY_8: 'DELAY_8',
|
|
121
|
-
/** 9 seconds */
|
|
122
|
-
DELAY_9: 'DELAY_9',
|
|
123
|
-
/** 10 seconds */
|
|
124
|
-
DELAY_10: 'DELAY_10'
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/** type definition of ExposureDelayEnum */
|
|
128
|
-
|
|
129
|
-
/** Exposure program. The exposure settings that take priority can be selected. */
|
|
130
|
-
export const ExposureProgramEnum = {
|
|
131
|
-
/** Manual program */
|
|
132
|
-
MANUAL: 'MANUAL',
|
|
133
|
-
/** Normal program */
|
|
134
|
-
NORMAL_PROGRAM: 'NORMAL_PROGRAM',
|
|
135
|
-
/** Aperture priority program */
|
|
136
|
-
APERTURE_PRIORITY: 'APERTURE_PRIORITY',
|
|
137
|
-
/** Shutter priority program */
|
|
138
|
-
SHUTTER_PRIORITY: 'SHUTTER_PRIORITY',
|
|
139
|
-
/** ISO priority program */
|
|
140
|
-
ISO_PRIORITY: 'ISO_PRIORITY'
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
/** type definition of ExposureProgramEnum */
|
|
144
|
-
|
|
145
|
-
/** file format type in theta */
|
|
146
|
-
export const FileFormatTypeEnum = {
|
|
147
|
-
/** jpeg image */
|
|
148
|
-
JPEG: 'JPEG',
|
|
149
|
-
/** mp4 video */
|
|
150
|
-
MP4: 'MP4',
|
|
151
|
-
/** raw+ image */
|
|
152
|
-
RAW: 'RAW'
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
/** type definition of FileFormatTypeEnum */
|
|
156
|
-
|
|
157
|
-
/** Photo image format */
|
|
158
|
-
export const PhotoFileFormatEnum = {
|
|
159
|
-
/** jpeg 2048 x 1024 */
|
|
160
|
-
IMAGE_2K: 'IMAGE_2K',
|
|
161
|
-
/** jpeg 5376 x 2688 */
|
|
162
|
-
IMAGE_5K: 'IMAGE_5K',
|
|
163
|
-
/** jpeg 6720 x 3360 */
|
|
164
|
-
IMAGE_6_7K: 'IMAGE_6_7K',
|
|
165
|
-
/** row+ 6720 x 3360 */
|
|
166
|
-
RAW_P_6_7K: 'RAW_P_6_7K',
|
|
167
|
-
/** jpeg 5504 x 2752 */
|
|
168
|
-
IMAGE_5_5K: 'IMAGE_5_5K',
|
|
169
|
-
/** jpeg 11008 x 5504 */
|
|
170
|
-
IMAGE_11K: 'IMAGE_11K'
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/** Video image format */
|
|
174
|
-
export const VideoFileFormatEnum = {
|
|
175
|
-
/** mp4 1280 x 570 */
|
|
176
|
-
VIDEO_HD: 'VIDEO_HD',
|
|
177
|
-
/** mp4 1920 x 1080 */
|
|
178
|
-
VIDEO_FULL_HD: 'VIDEO_FULL_HD',
|
|
179
|
-
/** mp4 1920 x 960 */
|
|
180
|
-
VIDEO_2K: 'VIDEO_2K',
|
|
181
|
-
/** mp4 3840 x 1920 */
|
|
182
|
-
VIDEO_4K: 'VIDEO_4K',
|
|
183
|
-
/** mp4 1920 x 960 30fps */
|
|
184
|
-
VIDEO_2K_30F: 'VIDEO_2K_30F',
|
|
185
|
-
/** mp4 1920 x 960 60fps */
|
|
186
|
-
VIDEO_2K_60F: 'VIDEO_2K_60F',
|
|
187
|
-
/** mp4 3840 x 1920 30fps */
|
|
188
|
-
VIDEO_4K_30F: 'VIDEO_4K_30F',
|
|
189
|
-
/** mp4 3840 x 1920 60fps */
|
|
190
|
-
VIDEO_4K_60F: 'VIDEO_4K_60F',
|
|
191
|
-
/** mp4 5760 x 2880 2fps */
|
|
192
|
-
VIDEO_5_7K_2F: 'VIDEO_5_7K_2F',
|
|
193
|
-
/** mp4 5760 x 2880 5fps */
|
|
194
|
-
VIDEO_5_7K_5F: 'VIDEO_5_7K_5F',
|
|
195
|
-
/** mp4 5760 x 2880 30fps */
|
|
196
|
-
VIDEO_5_7K_30F: 'VIDEO_5_7K_30F',
|
|
197
|
-
/** mp4 7680 x 3840 2fps */
|
|
198
|
-
VIDEO_7K_2F: 'VIDEO_7K_2F',
|
|
199
|
-
/** mp4 7680 x 3840 5fps */
|
|
200
|
-
VIDEO_7K_5F: 'VIDEO_7K_5F',
|
|
201
|
-
/** mp4 7680 x 3840 10fps */
|
|
202
|
-
VIDEO_7K_10F: 'VIDEO_7K_10F'
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
/** type definition of PhotoFileFormatEnum */
|
|
206
|
-
|
|
207
|
-
/** Image processing filter. */
|
|
208
|
-
export const FilterEnum = {
|
|
209
|
-
/** No filter. */
|
|
210
|
-
OFF: 'OFF',
|
|
211
|
-
/** Noise reduction. */
|
|
212
|
-
NOISE_REDUCTION: 'NOISE_REDUCTION',
|
|
213
|
-
/** HDR. */
|
|
214
|
-
HDR: 'HDR'
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
/** type definition of FilterEnum */
|
|
218
|
-
|
|
219
|
-
/** Turns position information assigning ON/OFF. */
|
|
220
|
-
export const GpsTagRecordingEnum = {
|
|
221
|
-
/** Position information assigning ON. */
|
|
222
|
-
ON: 'ON',
|
|
223
|
-
/** Position information assigning OFF. */
|
|
224
|
-
OFF: 'OFF'
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/** type definition of GpsTagRecordingEnum */
|
|
228
|
-
|
|
229
|
-
/** ISO sensitivity. */
|
|
230
|
-
export const IsoEnum = {
|
|
231
|
-
/** AUTO (0) */
|
|
232
|
-
ISO_AUTO: 'ISO_AUTO',
|
|
233
|
-
/** 50 */
|
|
234
|
-
ISO_50: 'ISO_50',
|
|
235
|
-
/** 64 */
|
|
236
|
-
ISO_64: 'ISO_64',
|
|
237
|
-
/** 80 */
|
|
238
|
-
ISO_80: 'ISO_80',
|
|
239
|
-
/** 100 */
|
|
240
|
-
ISO_100: 'ISO_100',
|
|
241
|
-
/** 125 */
|
|
242
|
-
ISO_125: 'ISO_125',
|
|
243
|
-
/** 160 */
|
|
244
|
-
ISO_160: 'ISO_160',
|
|
245
|
-
/** 200 */
|
|
246
|
-
ISO_200: 'ISO_200',
|
|
247
|
-
/** 250 */
|
|
248
|
-
ISO_250: 'ISO_250',
|
|
249
|
-
/** 320 */
|
|
250
|
-
ISO_320: 'ISO_320',
|
|
251
|
-
/** 400 */
|
|
252
|
-
ISO_400: 'ISO_400',
|
|
253
|
-
/** 500 */
|
|
254
|
-
ISO_500: 'ISO_500',
|
|
255
|
-
/** 640 */
|
|
256
|
-
ISO_640: 'ISO_640',
|
|
257
|
-
/** 800 */
|
|
258
|
-
ISO_800: 'ISO_800',
|
|
259
|
-
/** 1000 */
|
|
260
|
-
ISO_1000: 'ISO_1000',
|
|
261
|
-
/** 1250 */
|
|
262
|
-
ISO_1250: 'ISO_1250',
|
|
263
|
-
/** 1600 */
|
|
264
|
-
ISO_1600: 'ISO_1600',
|
|
265
|
-
/** 2000 */
|
|
266
|
-
ISO_2000: 'ISO_2000',
|
|
267
|
-
/** 2500 */
|
|
268
|
-
ISO_2500: 'ISO_2500',
|
|
269
|
-
/** 3200 */
|
|
270
|
-
ISO_3200: 'ISO_3200',
|
|
271
|
-
/** 4000 */
|
|
272
|
-
ISO_4000: 'ISO_4000',
|
|
273
|
-
/** 5000 */
|
|
274
|
-
ISO_5000: 'ISO_5000',
|
|
275
|
-
/** 6400 */
|
|
276
|
-
ISO_6400: 'ISO_6400'
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
/** type definition IsoEnum */
|
|
280
|
-
|
|
281
|
-
/** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
|
|
282
|
-
export const IsoAutoHighLimitEnum = {
|
|
283
|
-
/** 100 */
|
|
284
|
-
ISO_100: 'ISO_100',
|
|
285
|
-
/** 125 */
|
|
286
|
-
ISO_125: 'ISO_125',
|
|
287
|
-
/** 160 */
|
|
288
|
-
ISO_160: 'ISO_160',
|
|
289
|
-
/** 200 */
|
|
290
|
-
ISO_200: 'ISO_200',
|
|
291
|
-
/** 250 */
|
|
292
|
-
ISO_250: 'ISO_250',
|
|
293
|
-
/** 320 */
|
|
294
|
-
ISO_320: 'ISO_320',
|
|
295
|
-
/** 400 */
|
|
296
|
-
ISO_400: 'ISO_400',
|
|
297
|
-
/** 500 */
|
|
298
|
-
ISO_500: 'ISO_500',
|
|
299
|
-
/** 640 */
|
|
300
|
-
ISO_640: 'ISO_640',
|
|
301
|
-
/** 800 */
|
|
302
|
-
ISO_800: 'ISO_800',
|
|
303
|
-
/** 1000 */
|
|
304
|
-
ISO_1000: 'ISO_1000',
|
|
305
|
-
/** 1250 */
|
|
306
|
-
ISO_1250: 'ISO_1250',
|
|
307
|
-
/** 1600 */
|
|
308
|
-
ISO_1600: 'ISO_1600',
|
|
309
|
-
/** 2000 */
|
|
310
|
-
ISO_2000: 'ISO_2000',
|
|
311
|
-
/** 2500 */
|
|
312
|
-
ISO_2500: 'ISO_2500',
|
|
313
|
-
/** 3200 */
|
|
314
|
-
ISO_3200: 'ISO_3200',
|
|
315
|
-
/** 4000 */
|
|
316
|
-
ISO_4000: 'ISO_4000',
|
|
317
|
-
/** 5000 */
|
|
318
|
-
ISO_5000: 'ISO_5000',
|
|
319
|
-
/** 6400 */
|
|
320
|
-
ISO_6400: 'ISO_6400'
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
/** type definition of IsoAutoHighLimitEnum */
|
|
324
|
-
|
|
325
|
-
/** language */
|
|
326
|
-
export const LanguageEnum = {
|
|
327
|
-
/** german */
|
|
328
|
-
DE: 'DE',
|
|
329
|
-
/** british english */
|
|
330
|
-
EN_GB: 'EN_GB',
|
|
331
|
-
/** us english */
|
|
332
|
-
EN_US: 'EN_US',
|
|
333
|
-
/** french */
|
|
334
|
-
FR: 'FR',
|
|
335
|
-
/** italian */
|
|
336
|
-
IT: 'IT',
|
|
337
|
-
/** japanese */
|
|
338
|
-
JA: 'JA',
|
|
339
|
-
/** korean */
|
|
340
|
-
KO: 'KO',
|
|
341
|
-
/** chinese */
|
|
342
|
-
ZH_CN: 'ZH_CH',
|
|
343
|
-
/** taiwan chinese */
|
|
344
|
-
ZH_TW: 'ZH_TW'
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/** type definition of LanguageEnum */
|
|
348
|
-
|
|
349
|
-
/** Maximum recordable time (in seconds) of the camera */
|
|
350
|
-
export const MaxRecordableTimeEnum = {
|
|
351
|
-
/** 180 seconds for SC2 only. */
|
|
352
|
-
RECORDABLE_TIME_180: 'RECORDABLE_TIME_180',
|
|
353
|
-
/** 300 seconds for other than SC2. */
|
|
354
|
-
RECORDABLE_TIME_300: 'RECORDABLE_TIME_300',
|
|
355
|
-
/** 1500 seconds for other than SC2. */
|
|
356
|
-
RECORDABLE_TIME_1500: 'RECORDABLE_TIME_1500'
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
/** type definition of MaxRecordableTimeEnum */
|
|
360
|
-
|
|
361
|
-
/** Length of standby time before the camera automatically powers OFF. */
|
|
362
|
-
export const OffDelayEnum = {
|
|
363
|
-
/** Do not turn power off. */
|
|
364
|
-
DISABLE: 'DISABLE',
|
|
365
|
-
/** Power off after 5 minutes.(300sec) */
|
|
366
|
-
OFF_DELAY_5M: 'OFF_DELAY_5M',
|
|
367
|
-
/** Power off after 10 minutes.(600sec) */
|
|
368
|
-
OFF_DELAY_10M: 'OFF_DELAY_10M',
|
|
369
|
-
/** Power off after 15 minutes.(900sec) */
|
|
370
|
-
OFF_DELAY_15M: 'OFF_DELAY_15M',
|
|
371
|
-
/** Power off after 30 minutes.(1,800sec) */
|
|
372
|
-
OFF_DELAY_30M: 'OFF_DELAY_30M'
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
/** type definition of OffDelayEnum */
|
|
376
|
-
|
|
377
|
-
/** Length of standby time before the camera enters the sleep mode. */
|
|
378
|
-
export const SleepDelayEnum = {
|
|
379
|
-
/** Do not turn sleep mode. */
|
|
380
|
-
DISABLE: 'DISABLE',
|
|
381
|
-
/** sleep mode after 3 minutes.(180seconds) */
|
|
382
|
-
SLEEP_DELAY_3M: 'SLEEP_DELAY_3M',
|
|
383
|
-
/** sleep mode after 5 minutes.(300seconds) */
|
|
384
|
-
SLEEP_DELAY_5M: 'SLEEP_DELAY_5M',
|
|
385
|
-
/** sleep mode after 7 minutes.(420seconds) */
|
|
386
|
-
SLEEP_DELAY_7M: 'SLEEP_DELAY_7M',
|
|
387
|
-
/** sleep mode after 10 minutes.(600seconds) */
|
|
388
|
-
SLEEP_DELAY_10M: 'SLEEP_DELAY_10M'
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
/** type definition of SleepDelayEnum */
|
|
392
|
-
|
|
393
|
-
/** White balance. */
|
|
394
|
-
export const WhiteBalanceEnum = {
|
|
395
|
-
/** Automatic */
|
|
396
|
-
AUTO: 'AUTO',
|
|
397
|
-
/** Outdoor */
|
|
398
|
-
DAYLIGHT: 'DAYLIGHT',
|
|
399
|
-
/** Shade */
|
|
400
|
-
SHADE: 'SHADE',
|
|
401
|
-
/** Cloudy */
|
|
402
|
-
CLOUDY_DAYLIGHT: 'CLOUDY_DAYLIGHT',
|
|
403
|
-
/** Incandescent light 1 */
|
|
404
|
-
INCANDESCENT: 'INCANDESCENT',
|
|
405
|
-
/** Incandescent light 2 */
|
|
406
|
-
WARM_WHITE_FLUORESCENT: 'WARM_WHITE_FLUORESCENT',
|
|
407
|
-
/** Fluorescent light 1 (daylight) */
|
|
408
|
-
DAYLIGHT_FLUORESCENT: 'DAYLIGHT_FLUORESCENT',
|
|
409
|
-
/** Fluorescent light 2 (natural white) */
|
|
410
|
-
DAYWHITE_FLUORESCENT: 'DAYWHITE_FLUORESCENT',
|
|
411
|
-
/** Fluorescent light 3 (white) */
|
|
412
|
-
FLUORESCENT: 'FLUORESCENT',
|
|
413
|
-
/** Fluorescent light 4 (light bulb color) */
|
|
414
|
-
BULB_FLUORESCENT: 'BULB_FLUORESCENT',
|
|
415
|
-
/** CT settings (specified by the _colorTemperature option) */
|
|
416
|
-
COLOR_TEMPERATURE: 'COLOR_TEMPERATURE',
|
|
417
|
-
/** Underwater */
|
|
418
|
-
UNDERWATER: 'UNDERWATER'
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
/** type definition of WhiteBalanceEnum */
|
|
422
|
-
|
|
423
|
-
/** Camera setting options name. */
|
|
424
|
-
export const OptionNameEnum = {
|
|
425
|
-
/** aperture */
|
|
426
|
-
Aperture: 'Aperture',
|
|
427
|
-
/** captureMode */
|
|
428
|
-
CaptureMode: 'CaptureMode',
|
|
429
|
-
/** colorTemperature */
|
|
430
|
-
ColorTemperature: 'ColorTemperature',
|
|
431
|
-
/** dateTimeZone */
|
|
432
|
-
DateTimeZone: 'DateTimeZone',
|
|
433
|
-
/** exposureCompensation */
|
|
434
|
-
ExposureCompensation: 'ExposureCompensation',
|
|
435
|
-
/** exposureDelay */
|
|
436
|
-
ExposureDelay: 'ExposureDelay',
|
|
437
|
-
/** exposureProgram */
|
|
438
|
-
ExposureProgram: 'ExposureProgram',
|
|
439
|
-
/** fileFormat */
|
|
440
|
-
FileFormat: 'FileFormat',
|
|
441
|
-
/** filter */
|
|
442
|
-
Filter: 'Filter',
|
|
443
|
-
/** gpsInfo */
|
|
444
|
-
GpsInfo: 'GpsInfo',
|
|
445
|
-
/** isGpsOn */
|
|
446
|
-
IsGpsOn: 'IsGpsOn',
|
|
447
|
-
/** iso */
|
|
448
|
-
Iso: 'Iso',
|
|
449
|
-
/** isoAutoHighLimit */
|
|
450
|
-
IsoAutoHighLimit: 'IsoAutoHighLimit',
|
|
451
|
-
/** language */
|
|
452
|
-
Language: 'Language',
|
|
453
|
-
/** maxRecordableTime */
|
|
454
|
-
MaxRecordableTime: 'MaxRecordableTime',
|
|
455
|
-
/** offDelay */
|
|
456
|
-
OffDelay: 'OffDelay',
|
|
457
|
-
/** sleepDelay */
|
|
458
|
-
SleepDelay: 'SleepDelay',
|
|
459
|
-
/** remainingPictures */
|
|
460
|
-
RemainingPictures: 'RemainingPictures',
|
|
461
|
-
/** remainingVideoSeconds */
|
|
462
|
-
RemainingVideoSeconds: 'RemainingVideoSeconds',
|
|
463
|
-
/** remainingSpace */
|
|
464
|
-
RemainingSpace: 'RemainingSpace',
|
|
465
|
-
/** totalSpace */
|
|
466
|
-
TotalSpace: 'TotalSpace',
|
|
467
|
-
/** shutterVolume */
|
|
468
|
-
ShutterVolume: 'ShutterVolume',
|
|
469
|
-
/** whiteBalance */
|
|
470
|
-
WhiteBalance: 'WhiteBalance'
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
/** type definition of OptionNameEnum */
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* initialize theta client sdk
|
|
477
|
-
*
|
|
478
|
-
* @function initialize
|
|
479
|
-
* @param {string} endPoint optional endpoint of camera
|
|
480
|
-
* @return promise of boolean result
|
|
481
|
-
**/
|
|
482
|
-
export function initialize(endPoint) {
|
|
483
|
-
if (!endPoint) {
|
|
484
|
-
endPoint = 'http://192.168.1.1';
|
|
485
|
-
}
|
|
486
|
-
return ThetaClientReactNative.initialize(endPoint);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Get basic information about Theta.
|
|
491
|
-
*
|
|
492
|
-
* @function getThetaInfo
|
|
493
|
-
* @return promise of ThetaInfo
|
|
494
|
-
**/
|
|
495
|
-
export function getThetaInfo() {
|
|
496
|
-
return ThetaClientReactNative.getThetaInfo();
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Get current state of Theta.
|
|
501
|
-
*
|
|
502
|
-
* @function getThetaState
|
|
503
|
-
* @return promise of ThetaState
|
|
504
|
-
**/
|
|
505
|
-
export function getThetaState() {
|
|
506
|
-
return ThetaClientReactNative.getThetaState();
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Lists information of images and videos in Theta.
|
|
511
|
-
*
|
|
512
|
-
* @function listFiles
|
|
513
|
-
* @param {FileTypeEnum} fileType Type of the files to be listed.
|
|
514
|
-
* @param {number} startPosition The position of the first file to be
|
|
515
|
-
* returned in the list. 0 represents the first file. If
|
|
516
|
-
* startPosition is larger than the position of the last file, an
|
|
517
|
-
* empty list is returned.
|
|
518
|
-
* @param {number} entryCount Desired number of entries to return. If
|
|
519
|
-
* entryCount is more than the number of remaining files, just
|
|
520
|
-
* return entries of actual remaining files.
|
|
521
|
-
* @return promise of A list of file information.
|
|
522
|
-
*/
|
|
523
|
-
export function listFiles(fileTypeEnum) {
|
|
524
|
-
let startPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
525
|
-
let entryCount = arguments.length > 2 ? arguments[2] : undefined;
|
|
526
|
-
return ThetaClientReactNative.listFiles(fileTypeEnum, startPosition, entryCount);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Delete files in Theta.
|
|
531
|
-
*
|
|
532
|
-
* @function deleteFiles
|
|
533
|
-
* @param {string[]} fileUrls URLs of the file to be deleted.
|
|
534
|
-
* @return promise of boolean result
|
|
535
|
-
*/
|
|
536
|
-
export function deleteFiles(fileUrls) {
|
|
537
|
-
return ThetaClientReactNative.deleteFiles(fileUrls);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Delete all files in Theta.
|
|
542
|
-
*
|
|
543
|
-
* @function deleteAllFiles
|
|
544
|
-
* @return promise of boolean result
|
|
545
|
-
*/
|
|
546
|
-
export function deleteAllFiles() {
|
|
547
|
-
return ThetaClientReactNative.deleteAllFiles();
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Delete all image files in Theta.
|
|
552
|
-
*
|
|
553
|
-
* @function deleteAllImageFiles
|
|
554
|
-
* @return promise of boolean result
|
|
555
|
-
*/
|
|
556
|
-
export function deleteAllImageFiles() {
|
|
557
|
-
return ThetaClientReactNative.deleteAllImageFiles();
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Delete all video files in Theta.
|
|
562
|
-
*
|
|
563
|
-
* @function deleteAllVideoFiles
|
|
564
|
-
* @return promise of boolean result
|
|
565
|
-
*/
|
|
566
|
-
export function deleteAllVideoFiles() {
|
|
567
|
-
return ThetaClientReactNative.deleteAllVideoFiles();
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* Acquires the properties and property support specifications for
|
|
572
|
-
* shooting, the camera, etc.
|
|
573
|
-
*
|
|
574
|
-
* @function getOptions
|
|
575
|
-
* @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
|
|
576
|
-
* @return promise of Options acquired
|
|
577
|
-
*/
|
|
578
|
-
export function getOptions(optionNames) {
|
|
579
|
-
return ThetaClientReactNative.getOptions(optionNames);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Property settings for shooting, the camera, etc.
|
|
584
|
-
*
|
|
585
|
-
* @function setOptions
|
|
586
|
-
* @param {Options} options Camera setting options.
|
|
587
|
-
* @return promise of boolean result
|
|
588
|
-
*/
|
|
589
|
-
export function setOptions(options) {
|
|
590
|
-
return ThetaClientReactNative.setOptions(options);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
12
|
/** theta frame event name */
|
|
594
13
|
export const THETA_EVENT_NAME = ThetaClientReactNative.DEFAULT_EVENT_NAME;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
*
|
|
598
|
-
* preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
|
|
599
|
-
* {
|
|
600
|
-
* "data": "DataURL of JPEG Frame"
|
|
601
|
-
* }
|
|
602
|
-
*
|
|
603
|
-
* @function StartLivePreview
|
|
604
|
-
* @return promise of boolean result
|
|
605
|
-
*/
|
|
606
|
-
export function getLivePreview() {
|
|
607
|
-
return ThetaClientReactNative.getLivePreview();
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Stop live preview.
|
|
612
|
-
*
|
|
613
|
-
* @function StopLivePreview
|
|
614
|
-
*/
|
|
615
|
-
export function stopLivePreview() {
|
|
616
|
-
ThetaClientReactNative.stopLivePreview();
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* PhotoCapture class
|
|
621
|
-
*/
|
|
622
|
-
export class PhotoCapture {
|
|
623
|
-
/**
|
|
624
|
-
* @return promise of token file url
|
|
625
|
-
*/
|
|
626
|
-
takePicture() {
|
|
627
|
-
return ThetaClientReactNative.takePicture();
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Capture Builder class
|
|
633
|
-
*/
|
|
634
|
-
export class CaptureBuilder {
|
|
635
|
-
/** capture options */
|
|
636
|
-
|
|
637
|
-
/** construct capture builder instance */
|
|
638
|
-
constructor() {
|
|
639
|
-
_defineProperty(this, "options", void 0);
|
|
640
|
-
this.options = {};
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Set aperture value.
|
|
645
|
-
* @param {ApertureEnum} aperture aperture value to set
|
|
646
|
-
* @return CaptureBuilder
|
|
647
|
-
*/
|
|
648
|
-
setAperture(aperture) {
|
|
649
|
-
this.options.aperture = aperture;
|
|
650
|
-
return this;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Set color temperature of the camera (Kelvin).
|
|
655
|
-
* @param {number} kelvin Color temperature to set
|
|
656
|
-
* @return CaptureBuilder
|
|
657
|
-
*/
|
|
658
|
-
setColorTemperature(kelvin) {
|
|
659
|
-
this.options.colorTemperature = kelvin;
|
|
660
|
-
return this;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Set exposure compensation (EV).
|
|
665
|
-
* @param {ExposureCompensationEnum} value Exposure compensation to set
|
|
666
|
-
* @return CaptureBuilder
|
|
667
|
-
*/
|
|
668
|
-
setExposureCompensation(value) {
|
|
669
|
-
this.options.exposureCompensation = value;
|
|
670
|
-
return this;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* Set operating time (sec.) of the self-timer.
|
|
675
|
-
* @param {ExposureDelayEnum} delay Operating time to set
|
|
676
|
-
* @return CaptureBuilder
|
|
677
|
-
*/
|
|
678
|
-
setExposureDelay(delay) {
|
|
679
|
-
this.options.exposureDelay = delay;
|
|
680
|
-
return this;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Set exposure program. The exposure settings that take priority can be selected.
|
|
685
|
-
* @param {ExposureProgramEnum} program Exposure program to set
|
|
686
|
-
* @return CaptureBuilder
|
|
687
|
-
*/
|
|
688
|
-
setExposureProgram(program) {
|
|
689
|
-
this.options.exposureProgram = program;
|
|
690
|
-
return this;
|
|
691
|
-
}
|
|
692
|
-
/**
|
|
693
|
-
* Set GPS information.
|
|
694
|
-
* @param {GpsInfo} gpsInfo GPS information to set
|
|
695
|
-
* @return CaptureBuilder
|
|
696
|
-
*/
|
|
697
|
-
setGpsInfo(gpsInfo) {
|
|
698
|
-
this.options.gpsInfo = gpsInfo;
|
|
699
|
-
return this;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Set turns position information assigning ON/OFF.
|
|
704
|
-
* @param {GpsTagRecordingEnum} value Turns position information assigning ON/OFF to set
|
|
705
|
-
* @return CaptureBuilder
|
|
706
|
-
*/
|
|
707
|
-
setGpsTagRecording(value) {
|
|
708
|
-
this.options._gpsTagRecording = value;
|
|
709
|
-
return this;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Set ISO sensitivity.
|
|
714
|
-
* @param {IsoEnum} iso ISO sensitivity to set
|
|
715
|
-
* @return CaptureBuilder
|
|
716
|
-
*/
|
|
717
|
-
setIso(iso) {
|
|
718
|
-
this.options.iso = iso;
|
|
719
|
-
return this;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Set ISO sensitivity upper limit when ISO sensitivity is set to automatic.
|
|
724
|
-
* @param {IsoAutoHighLimitEnum} iso ISO sensitivity upper limit to set
|
|
725
|
-
* @return CaptureBuilder
|
|
726
|
-
*/
|
|
727
|
-
setIsoAutoHighLimit(iso) {
|
|
728
|
-
this.options.isoAutoHighLimit = iso;
|
|
729
|
-
return this;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Set white balance.
|
|
734
|
-
* @param {WhiteBalanceEnum} whiteBalance White balance to set
|
|
735
|
-
* @return CaptureBuilder
|
|
736
|
-
*/
|
|
737
|
-
setWhiteBalance(whiteBalance) {
|
|
738
|
-
this.options.whiteBalance = whiteBalance;
|
|
739
|
-
return this;
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* PhotoCaptureBuilder class
|
|
745
|
-
*/
|
|
746
|
-
export class PhotoCaptureBuilder extends CaptureBuilder {
|
|
747
|
-
/** construct PhotoCaptureBuilder instance */
|
|
748
|
-
constructor() {
|
|
749
|
-
super();
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Set photo file format.
|
|
754
|
-
* @param {PhotoFileFormatEnum} fileFormat Photo file format to set
|
|
755
|
-
* @return PhotoCaptureBuilder
|
|
756
|
-
*/
|
|
757
|
-
setFileFormat(fileFormat) {
|
|
758
|
-
this.options.fileFormat = fileFormat;
|
|
759
|
-
return this;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Set image processing filter.
|
|
764
|
-
* @param {FilterEnum} filter Image processing filter to set
|
|
765
|
-
* @return PhotoCaptureBuilder
|
|
766
|
-
*/
|
|
767
|
-
setFilter(filter) {
|
|
768
|
-
this.options.filter = filter;
|
|
769
|
-
return this;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* Builds an instance of a PhotoCapture that has all the combined
|
|
774
|
-
* parameters of the Options that have been added to the Builder.
|
|
775
|
-
*
|
|
776
|
-
* @return promise of PhotoCapture instance
|
|
777
|
-
*/
|
|
778
|
-
build() {
|
|
779
|
-
return ThetaClientReactNative.buildPhotoCapture(this.options).then(() => new PhotoCapture());
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Get PhotoCaptureBuilder for take a picture.
|
|
785
|
-
*
|
|
786
|
-
* @function getPhotoCaptureBuilder
|
|
787
|
-
* @return created PhotoCaptureBuilder
|
|
788
|
-
*/
|
|
789
|
-
export function getPhotoCaptureBuilder() {
|
|
790
|
-
ThetaClientReactNative.getPhotoCaptureBuilder();
|
|
791
|
-
return new PhotoCaptureBuilder();
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* VideoCapture class
|
|
796
|
-
*/
|
|
797
|
-
export class VideoCapture {
|
|
798
|
-
/**
|
|
799
|
-
* start video capture
|
|
800
|
-
* @return promise of captured file url
|
|
801
|
-
*/
|
|
802
|
-
startCapture() {
|
|
803
|
-
return ThetaClientReactNative.startCapture();
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* stop video capture
|
|
807
|
-
*/
|
|
808
|
-
stopCapture() {
|
|
809
|
-
ThetaClientReactNative.stopCapture();
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* VideoCaptureBuilder class
|
|
815
|
-
*/
|
|
816
|
-
export class VideoCaptureBuilder extends CaptureBuilder {
|
|
817
|
-
/** construct VideoCaptureBuilder instance */
|
|
818
|
-
constructor() {
|
|
819
|
-
super();
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Set video file format.
|
|
824
|
-
* @param {VideoFileFormatEnum} fileFormat Video file format to set
|
|
825
|
-
* @return VideoCaptureBuilder
|
|
826
|
-
*/
|
|
827
|
-
setFileFormat(fileFormat) {
|
|
828
|
-
this.options.fileFormat = fileFormat;
|
|
829
|
-
return this;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
* Set maximum recordable time (in seconds) of the camera.
|
|
834
|
-
* @param {MaxRecordableTimeEnum} time Maximum recordable time to set
|
|
835
|
-
* @return VideoCaptureBuilder
|
|
836
|
-
*/
|
|
837
|
-
setMaxRecordableTime(time) {
|
|
838
|
-
this.options.maxRecordableTime = time;
|
|
839
|
-
return this;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* Builds an instance of a VideoCapture that has all the combined
|
|
844
|
-
* parameters of the Options that have been added to the Builder.
|
|
845
|
-
*
|
|
846
|
-
* @return promise of VideoCapture instance
|
|
847
|
-
*/
|
|
848
|
-
build() {
|
|
849
|
-
return ThetaClientReactNative.buildVideoCapture(this.options).then(() => new VideoCapture());
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Get PhotoCapture.Builder for capture video.
|
|
855
|
-
*
|
|
856
|
-
* @function getVideoCaptureBuilder
|
|
857
|
-
* @return created VideoCaptureBuilder instance
|
|
858
|
-
*/
|
|
859
|
-
export function getVideoCaptureBuilder() {
|
|
860
|
-
ThetaClientReactNative.getVideoCaptureBuilder();
|
|
861
|
-
return new VideoCaptureBuilder();
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* exif information
|
|
866
|
-
*/
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Get metadata of a still image
|
|
870
|
-
*
|
|
871
|
-
* @function getMetadata
|
|
872
|
-
* @param {string} fileUrl URL of a still image file to get metadata
|
|
873
|
-
* @return promise of MetaInfo
|
|
874
|
-
*/
|
|
875
|
-
export function getMetadata(fileUrl) {
|
|
876
|
-
return ThetaClientReactNative.getMetadata(fileUrl);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Reset all device settings and capture settings.
|
|
881
|
-
* After reset, the camera will be restarted.
|
|
882
|
-
*
|
|
883
|
-
* @function reset
|
|
884
|
-
* @return promise of boolean result
|
|
885
|
-
*/
|
|
886
|
-
export function reset() {
|
|
887
|
-
return ThetaClientReactNative.reset();
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* Restore setting to THETA
|
|
892
|
-
*
|
|
893
|
-
* @function restoreSettings
|
|
894
|
-
* @return promise of boolean result
|
|
895
|
-
*/
|
|
896
|
-
export function restoreSettings() {
|
|
897
|
-
return ThetaClientReactNative.restoreSettings();
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Stop running self-timer.
|
|
902
|
-
*
|
|
903
|
-
* @function stopSelfTimer
|
|
904
|
-
* @return promise of boolean result
|
|
905
|
-
*/
|
|
906
|
-
export function stopSelfTimer() {
|
|
907
|
-
return ThetaClientReactNative.stopSelfTimer();
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Converts the movie format of a saved movie.
|
|
912
|
-
*
|
|
913
|
-
* @function convertVideoFormats
|
|
914
|
-
* @param {string} fileUrl URL of a saved movie file to convert
|
|
915
|
-
* @param {boolean} toLowResolution If true generates lower resolution
|
|
916
|
-
* video, otherwise same resolution.
|
|
917
|
-
* @param {boolean} applyTopBottomCorrection apply Top/bottom
|
|
918
|
-
* correction. This parameter is ignored on Theta X.
|
|
919
|
-
* @return promise of URL of a converted movie file.
|
|
920
|
-
*/
|
|
921
|
-
export function convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection) {
|
|
922
|
-
return ThetaClientReactNative.convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection);
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Cancels the movie format conversion.
|
|
927
|
-
*
|
|
928
|
-
* @function cancelVideoConvert
|
|
929
|
-
* @return promise of boolean result
|
|
930
|
-
*/
|
|
931
|
-
export function cancelVideoConvert() {
|
|
932
|
-
return ThetaClientReactNative.cancelVideoConvert();
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Turns the wireless LAN off.
|
|
937
|
-
*
|
|
938
|
-
* @function finishWlan
|
|
939
|
-
* @return promise of boolean result
|
|
940
|
-
*/
|
|
941
|
-
export function finishWlan() {
|
|
942
|
-
return ThetaClientReactNative.finishWlan();
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/**
|
|
946
|
-
* Enum for authentication mode.
|
|
947
|
-
*/
|
|
948
|
-
export const AuthModeEnum = {
|
|
949
|
-
/** None of authentication */
|
|
950
|
-
NONE: 'NONE',
|
|
951
|
-
/** Wep authentication */
|
|
952
|
-
WEP: 'WEP',
|
|
953
|
-
/** WPA PSK or WPA2 PSK authentication */
|
|
954
|
-
WPA: 'WPA'
|
|
955
|
-
};
|
|
956
|
-
|
|
957
|
-
/** type definition of AuthModeEnum */
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Acquires the access point list used in client mode.
|
|
961
|
-
*
|
|
962
|
-
* @function listAccessPoints
|
|
963
|
-
* @return promise of AccessPoint list
|
|
964
|
-
*/
|
|
965
|
-
export function listAccessPoints() {
|
|
966
|
-
return ThetaClientReactNative.listAccessPoints();
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Set access point. IP address is set dynamically.
|
|
971
|
-
*
|
|
972
|
-
* @function setAccessPointDynamically
|
|
973
|
-
* @param {string} ssid SSID of the access point.
|
|
974
|
-
* @param {boolean} ssidStealth true if SSID stealth is enabled.
|
|
975
|
-
* @param {AuthModeEnum} authMode Authentication mode.
|
|
976
|
-
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
977
|
-
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
978
|
-
* @return promise of boolean result
|
|
979
|
-
*/
|
|
980
|
-
export function setAccessPointDynamically(ssid) {
|
|
981
|
-
let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
982
|
-
let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
|
|
983
|
-
let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
984
|
-
let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
985
|
-
return ThetaClientReactNative.setAccessPointDynamically(ssid, ssidStealth, authMode, password, connectionPriority);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* Set access point. IP address is set statically.
|
|
990
|
-
*
|
|
991
|
-
* @function setAccessPointStatically
|
|
992
|
-
* @param {string} ssid SSID of the access point.
|
|
993
|
-
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
994
|
-
* @param {AuthModeEnum} authMode Authentication mode.
|
|
995
|
-
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
996
|
-
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
997
|
-
* @param {string} ipAddress IP address assigns to Theta.
|
|
998
|
-
* @param {string} subnetMask Subnet mask.
|
|
999
|
-
* @param {string} defaultGateway Default gateway.
|
|
1000
|
-
* @return promise of boolean result
|
|
1001
|
-
*/
|
|
1002
|
-
export function setAccessPointStatically(ssid) {
|
|
1003
|
-
let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1004
|
-
let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
|
|
1005
|
-
let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
1006
|
-
let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
1007
|
-
let ipAddress = arguments.length > 5 ? arguments[5] : undefined;
|
|
1008
|
-
let subnetMask = arguments.length > 6 ? arguments[6] : undefined;
|
|
1009
|
-
let defaultGateway = arguments.length > 7 ? arguments[7] : undefined;
|
|
1010
|
-
return ThetaClientReactNative.setAccessPointStatically(ssid, ssidStealth, authMode, password, connectionPriority, ipAddress, subnetMask, defaultGateway);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Deletes access point information used in client mode.
|
|
1015
|
-
*
|
|
1016
|
-
* @function deleteAccessPoint
|
|
1017
|
-
* @param {string} ssid SSID of the access point to delete.
|
|
1018
|
-
* @return promise of boolean result
|
|
1019
|
-
*/
|
|
1020
|
-
export function deleteAccessPoint(ssid) {
|
|
1021
|
-
return ThetaClientReactNative.deleteAccessPoint(ssid);
|
|
1022
|
-
}
|
|
14
|
+
export * from './theta-repository';
|
|
15
|
+
export * from './theta-repository/options';
|
|
16
|
+
export * from './capture';
|
|
1023
17
|
//# sourceMappingURL=index.js.map
|