theta-client-react-native 1.4.0 → 1.6.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 -2
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +492 -1093
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +423 -253
- package/ios/ConvertUtil.swift +195 -2
- package/ios/ThetaClientReactNative.m +41 -0
- package/ios/ThetaClientReactNative.swift +427 -3
- package/lib/commonjs/capture/composite-interval-capture.js +112 -0
- package/lib/commonjs/capture/composite-interval-capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +33 -0
- package/lib/commonjs/capture/index.js.map +1 -1
- package/lib/commonjs/capture/limitless-interval-capture.js +89 -0
- package/lib/commonjs/capture/limitless-interval-capture.js.map +1 -0
- package/lib/commonjs/capture/photo-capture.js +7 -2
- package/lib/commonjs/capture/photo-capture.js.map +1 -1
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js +113 -0
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -0
- package/lib/commonjs/capture/time-shift-capture.js +9 -1
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +55 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-auto-bracket.js +6 -0
- package/lib/commonjs/theta-repository/options/option-auto-bracket.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation.js +2 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js +52 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-video-stitching.js +24 -0
- package/lib/commonjs/theta-repository/options/option-video-stitching.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-visibility-reduction.js +23 -0
- package/lib/commonjs/theta-repository/options/option-visibility-reduction.js.map +1 -0
- package/lib/commonjs/theta-repository/options/options.js +12 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +36 -1
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/capture/composite-interval-capture.js +104 -0
- package/lib/module/capture/composite-interval-capture.js.map +1 -0
- package/lib/module/capture/index.js +3 -0
- package/lib/module/capture/index.js.map +1 -1
- package/lib/module/capture/limitless-interval-capture.js +81 -0
- package/lib/module/capture/limitless-interval-capture.js.map +1 -0
- package/lib/module/capture/photo-capture.js +7 -2
- package/lib/module/capture/photo-capture.js.map +1 -1
- package/lib/module/capture/shot-count-specified-interval-capture.js +105 -0
- package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -0
- package/lib/module/capture/time-shift-capture.js +9 -1
- package/lib/module/capture/time-shift-capture.js.map +1 -1
- package/lib/module/theta-repository/options/index.js +5 -0
- package/lib/module/theta-repository/options/index.js.map +1 -1
- package/lib/module/theta-repository/options/option-auto-bracket.js +2 -0
- package/lib/module/theta-repository/options/option-auto-bracket.js.map +1 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation.js +2 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction.js +45 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction.js.map +1 -0
- package/lib/module/theta-repository/options/option-video-stitching.js +17 -0
- package/lib/module/theta-repository/options/option-video-stitching.js.map +1 -0
- package/lib/module/theta-repository/options/option-visibility-reduction.js +16 -0
- package/lib/module/theta-repository/options/option-visibility-reduction.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +12 -0
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +34 -2
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/typescript/capture/composite-interval-capture.d.ts +47 -0
- package/lib/typescript/capture/composite-interval-capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +3 -0
- package/lib/typescript/capture/index.d.ts.map +1 -1
- package/lib/typescript/capture/limitless-interval-capture.d.ts +40 -0
- package/lib/typescript/capture/limitless-interval-capture.d.ts.map +1 -0
- package/lib/typescript/capture/photo-capture.d.ts +1 -1
- package/lib/typescript/capture/photo-capture.d.ts.map +1 -1
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts +48 -0
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts.map +1 -0
- package/lib/typescript/capture/time-shift-capture.d.ts +2 -1
- package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/index.d.ts +5 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts +36 -0
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation.d.ts +22 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction.d.ts +45 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-video-stitching.d.ts +17 -0
- package/lib/typescript/theta-repository/options/option-video-stitching.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-visibility-reduction.d.ts +16 -0
- package/lib/typescript/theta-repository/options/option-visibility-reduction.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +32 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +25 -2
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-state.d.ts +1 -1
- package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/capture/composite-interval-capture.ts +140 -0
- package/src/capture/index.ts +3 -0
- package/src/capture/limitless-interval-capture.ts +99 -0
- package/src/capture/photo-capture.ts +7 -2
- package/src/capture/shot-count-specified-interval-capture.ts +147 -0
- package/src/capture/time-shift-capture.ts +19 -1
- package/src/theta-repository/options/index.ts +5 -0
- package/src/theta-repository/options/option-auto-bracket.ts +48 -0
- package/src/theta-repository/options/option-top-bottom-correction-rotation.ts +21 -0
- package/src/theta-repository/options/option-top-bottom-correction.ts +46 -0
- package/src/theta-repository/options/option-video-stitching.ts +18 -0
- package/src/theta-repository/options/option-visibility-reduction.ts +17 -0
- package/src/theta-repository/options/options.ts +32 -0
- package/src/theta-repository/theta-repository.ts +40 -1
- package/src/theta-repository/theta-state.ts +1 -1
- package/theta-client-react-native.podspec +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { CaptureBuilder } from './capture';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
import {
|
|
4
|
+
BaseNotify,
|
|
5
|
+
NotifyController,
|
|
6
|
+
} from '../theta-repository/notify-controller';
|
|
7
|
+
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
8
|
+
|
|
9
|
+
const NOTIFY_PROGRESS = 'SHOT-COUNT-SPECIFIED-INTERVAL-PROGRESS';
|
|
10
|
+
const NOTIFY_STOP_ERROR = 'SHOT-COUNT-SPECIFIED-INTERVAL-STOP-ERROR';
|
|
11
|
+
|
|
12
|
+
interface CaptureProgressNotify extends BaseNotify {
|
|
13
|
+
params?: {
|
|
14
|
+
completion: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface CaptureStopErrorNotify extends BaseNotify {
|
|
19
|
+
params?: {
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* ShotCountSpecifiedIntervalCapture class
|
|
26
|
+
*/
|
|
27
|
+
export class ShotCountSpecifiedIntervalCapture {
|
|
28
|
+
notify: NotifyController;
|
|
29
|
+
constructor(notify: NotifyController) {
|
|
30
|
+
this.notify = notify;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* start interval shooting with the shot count specified
|
|
34
|
+
* @param onProgress the block for interval shooting with the shot count specified onProgress
|
|
35
|
+
* @param onStopFailed the block for error of cancelCapture
|
|
36
|
+
* @return promise of captured file url
|
|
37
|
+
*/
|
|
38
|
+
async startCapture(
|
|
39
|
+
onProgress?: (completion?: number) => void,
|
|
40
|
+
onStopFailed?: (error: any) => void
|
|
41
|
+
): Promise<string[] | undefined> {
|
|
42
|
+
if (onProgress) {
|
|
43
|
+
this.notify.addNotify(NOTIFY_PROGRESS, (event: CaptureProgressNotify) => {
|
|
44
|
+
onProgress(event.params?.completion);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
if (onStopFailed) {
|
|
48
|
+
this.notify.addNotify(
|
|
49
|
+
NOTIFY_STOP_ERROR,
|
|
50
|
+
(event: CaptureStopErrorNotify) => {
|
|
51
|
+
onStopFailed(event.params);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return new Promise<string[] | undefined>(async (resolve, reject) => {
|
|
57
|
+
await ThetaClientReactNative.startShotCountSpecifiedIntervalCapture()
|
|
58
|
+
.then((result?: string[]) => {
|
|
59
|
+
resolve(result ?? undefined);
|
|
60
|
+
})
|
|
61
|
+
.catch((error: any) => {
|
|
62
|
+
reject(error);
|
|
63
|
+
})
|
|
64
|
+
.finally(() => {
|
|
65
|
+
this.notify.removeNotify(NOTIFY_PROGRESS);
|
|
66
|
+
this.notify.removeNotify(NOTIFY_STOP_ERROR);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* cancel interval shooting with the shot count specified
|
|
73
|
+
*/
|
|
74
|
+
async cancelCapture(): Promise<any> {
|
|
75
|
+
return await ThetaClientReactNative.cancelShotCountSpecifiedIntervalCapture();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* ShotCountSpecifiedIntervalCaptureBuilder class
|
|
81
|
+
*/
|
|
82
|
+
export class ShotCountSpecifiedIntervalCaptureBuilder extends CaptureBuilder<ShotCountSpecifiedIntervalCaptureBuilder> {
|
|
83
|
+
interval?: number;
|
|
84
|
+
readonly shotCount: number;
|
|
85
|
+
|
|
86
|
+
/** construct ShotCountSpecifiedIntervalCaptureBuilder instance */
|
|
87
|
+
constructor(shotCount: number) {
|
|
88
|
+
super();
|
|
89
|
+
|
|
90
|
+
this.interval = undefined;
|
|
91
|
+
this.shotCount = shotCount;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* set interval of checking interval shooting with the shot count specified status command
|
|
96
|
+
* @param timeMillis interval
|
|
97
|
+
* @returns ShotCountSpecifiedIntervalCaptureBuilder
|
|
98
|
+
*/
|
|
99
|
+
setCheckStatusCommandInterval(
|
|
100
|
+
timeMillis: number
|
|
101
|
+
): ShotCountSpecifiedIntervalCaptureBuilder {
|
|
102
|
+
this.interval = timeMillis;
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Set shooting interval (sec.) for interval shooting.
|
|
108
|
+
* @param {interval} interval sec.
|
|
109
|
+
* @return ShotCountSpecifiedIntervalCaptureBuilder
|
|
110
|
+
*/
|
|
111
|
+
setCaptureInterval(
|
|
112
|
+
interval: number
|
|
113
|
+
): ShotCountSpecifiedIntervalCaptureBuilder {
|
|
114
|
+
this.options.captureInterval = interval;
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Builds an instance of a ShotCountSpecifiedIntervalCapture that has all the combined
|
|
120
|
+
* parameters of the Options that have been added to the Builder.
|
|
121
|
+
* @return promise of ShotCountSpecifiedIntervalCapture instance
|
|
122
|
+
*/
|
|
123
|
+
build(): Promise<ShotCountSpecifiedIntervalCapture> {
|
|
124
|
+
let params = {
|
|
125
|
+
...this.options,
|
|
126
|
+
// Cannot pass negative values in IOS, use objects
|
|
127
|
+
_capture_interval: this.interval ?? -1,
|
|
128
|
+
};
|
|
129
|
+
return new Promise<ShotCountSpecifiedIntervalCapture>(
|
|
130
|
+
async (resolve, reject) => {
|
|
131
|
+
try {
|
|
132
|
+
await ThetaClientReactNative.getShotCountSpecifiedIntervalCaptureBuilder(
|
|
133
|
+
this.shotCount
|
|
134
|
+
);
|
|
135
|
+
await ThetaClientReactNative.buildShotCountSpecifiedIntervalCapture(
|
|
136
|
+
params
|
|
137
|
+
);
|
|
138
|
+
resolve(
|
|
139
|
+
new ShotCountSpecifiedIntervalCapture(NotifyController.instance)
|
|
140
|
+
);
|
|
141
|
+
} catch (error) {
|
|
142
|
+
reject(error);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
9
9
|
|
|
10
10
|
const NOTIFY_NAME = 'TIME-SHIFT-PROGRESS';
|
|
11
|
+
const NOTIFY_STOP_ERROR = 'TIME-SHIFT-STOP-ERROR';
|
|
11
12
|
|
|
12
13
|
interface CaptureProgressNotify extends BaseNotify {
|
|
13
14
|
params?: {
|
|
@@ -15,6 +16,12 @@ interface CaptureProgressNotify extends BaseNotify {
|
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
interface CaptureStopErrorNotify extends BaseNotify {
|
|
20
|
+
params?: {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
/**
|
|
19
26
|
* TimeShiftCapture class
|
|
20
27
|
*/
|
|
@@ -26,16 +33,26 @@ export class TimeShiftCapture {
|
|
|
26
33
|
/**
|
|
27
34
|
* start time-shift
|
|
28
35
|
* @param onProgress the block for time-shift onProgress
|
|
36
|
+
* @param onStopFailed the block for error of cancelCapture
|
|
29
37
|
* @return promise of captured file url
|
|
30
38
|
*/
|
|
31
39
|
async startCapture(
|
|
32
|
-
onProgress?: (completion?: number) => void
|
|
40
|
+
onProgress?: (completion?: number) => void,
|
|
41
|
+
onStopFailed?: (error: any) => void
|
|
33
42
|
): Promise<string | undefined> {
|
|
34
43
|
if (onProgress) {
|
|
35
44
|
this.notify.addNotify(NOTIFY_NAME, (event: CaptureProgressNotify) => {
|
|
36
45
|
onProgress(event.params?.completion);
|
|
37
46
|
});
|
|
38
47
|
}
|
|
48
|
+
if (onStopFailed) {
|
|
49
|
+
this.notify.addNotify(
|
|
50
|
+
NOTIFY_STOP_ERROR,
|
|
51
|
+
(event: CaptureStopErrorNotify) => {
|
|
52
|
+
onStopFailed(event.params);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
39
56
|
|
|
40
57
|
return new Promise<string | undefined>(async (resolve, reject) => {
|
|
41
58
|
await ThetaClientReactNative.startTimeShiftCapture()
|
|
@@ -47,6 +64,7 @@ export class TimeShiftCapture {
|
|
|
47
64
|
})
|
|
48
65
|
.finally(() => {
|
|
49
66
|
this.notify.removeNotify(NOTIFY_NAME);
|
|
67
|
+
this.notify.removeNotify(NOTIFY_STOP_ERROR);
|
|
50
68
|
});
|
|
51
69
|
});
|
|
52
70
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './options';
|
|
2
2
|
export * from './option-ai-auto-thumbnail';
|
|
3
|
+
export * from './option-auto-bracket';
|
|
3
4
|
export * from './option-bitrate';
|
|
4
5
|
export * from './option-burst-mode';
|
|
5
6
|
export * from './option-burst-option';
|
|
@@ -20,5 +21,9 @@ export * from './option-proxy';
|
|
|
20
21
|
export * from './option-shooting-method';
|
|
21
22
|
export * from './option-shutter-speed';
|
|
22
23
|
export * from './option-time-shift';
|
|
24
|
+
export * from './option-top-bottom-correction';
|
|
25
|
+
export * from './option-top-bottom-correction-rotation';
|
|
26
|
+
export * from './option-video-stitching';
|
|
27
|
+
export * from './option-visibility-reduction';
|
|
23
28
|
export * from './option-white-balance-auto-strength';
|
|
24
29
|
export * from './option-wlan-frequency';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ApertureEnum,
|
|
3
|
+
ExposureCompensationEnum,
|
|
4
|
+
ExposureProgramEnum,
|
|
5
|
+
IsoEnum,
|
|
6
|
+
WhiteBalanceEnum,
|
|
7
|
+
} from './options';
|
|
8
|
+
import type { ShutterSpeedEnum } from './option-shutter-speed';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Multi bracket shooting setting
|
|
12
|
+
*/
|
|
13
|
+
export type BracketSetting = {
|
|
14
|
+
/**
|
|
15
|
+
* @see ApertureEnum
|
|
16
|
+
*/
|
|
17
|
+
aperture?: ApertureEnum;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Color temperature of the camera (Kelvin), 2,500 to 10,000 in 100-Kelvin units.
|
|
21
|
+
*/
|
|
22
|
+
colorTemperature?: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @see ExposureCompensationEnum
|
|
26
|
+
*/
|
|
27
|
+
exposureCompensation?: ExposureCompensationEnum;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @see ExposureProgramEnum
|
|
31
|
+
*/
|
|
32
|
+
exposureProgram?: ExposureProgramEnum;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @see IsoEnum
|
|
36
|
+
*/
|
|
37
|
+
iso?: IsoEnum;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @see ShutterSpeedEnum
|
|
41
|
+
*/
|
|
42
|
+
shutterSpeed?: ShutterSpeedEnum;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @see WhiteBalanceEnum
|
|
46
|
+
*/
|
|
47
|
+
whiteBalance?: WhiteBalanceEnum;
|
|
48
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the front position for the top/bottom correction.
|
|
3
|
+
* Enabled only for _topBottomCorrection Manual.
|
|
4
|
+
*/
|
|
5
|
+
export type TopBottomCorrectionRotation = {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the pitch.
|
|
8
|
+
* Specified range is -90.0 to +90.0, stepSize is 0.1
|
|
9
|
+
*/
|
|
10
|
+
pitch: number;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the roll.
|
|
13
|
+
* Specified range is -180.0 to +180.0, stepSize is 0.1
|
|
14
|
+
*/
|
|
15
|
+
roll: number;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the yaw.
|
|
18
|
+
* Specified range is -180.0 to +180.0, stepSize is 0.1
|
|
19
|
+
*/
|
|
20
|
+
yaw: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* top bottom correction
|
|
3
|
+
*
|
|
4
|
+
* Sets the top/bottom correction. For RICOH THETA V and RICOH
|
|
5
|
+
* THETA Z1, the top/bottom correction can be set only for still
|
|
6
|
+
* images. For RICOH THETA X, the top/bottom correction can be
|
|
7
|
+
* set for both still images and videos.
|
|
8
|
+
*/
|
|
9
|
+
export const TopBottomCorrectionOptionEnum = {
|
|
10
|
+
/**
|
|
11
|
+
* Top/bottom correction is performed.
|
|
12
|
+
*/
|
|
13
|
+
APPLY: 'APPLY',
|
|
14
|
+
/**
|
|
15
|
+
* Refer to top/bottom correction when shooting with "ApplyAuto"
|
|
16
|
+
*/
|
|
17
|
+
APPLY_AUTO: 'APPLY_AUTO',
|
|
18
|
+
/**
|
|
19
|
+
* Top/bottom correction is performed. The parameters used for
|
|
20
|
+
* top/bottom correction for the first image are saved and used
|
|
21
|
+
* for the 2nd and subsequent images.(RICOH THETA X or later)
|
|
22
|
+
*/
|
|
23
|
+
APPLY_SEMIAUTO: 'APPLY_SEMIAUTO',
|
|
24
|
+
/**
|
|
25
|
+
* Performs top/bottom correction and then saves the parameters.
|
|
26
|
+
*/
|
|
27
|
+
APPLY_SAVE: 'APPLY_SAVE',
|
|
28
|
+
/**
|
|
29
|
+
* Performs top/bottom correction using the saved parameters.
|
|
30
|
+
*/
|
|
31
|
+
APPLY_LOAD: 'APPLY_LOAD',
|
|
32
|
+
/**
|
|
33
|
+
* Does not perform top/bottom correction.
|
|
34
|
+
*/
|
|
35
|
+
DISAPPLY: 'DISAPPLY',
|
|
36
|
+
/**
|
|
37
|
+
* Performs the top/bottom correction with the specified front
|
|
38
|
+
* position. The front position can be specified with
|
|
39
|
+
* _topBottomCorrectionRotation.
|
|
40
|
+
*/
|
|
41
|
+
MANUAL: 'MANUAL',
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
/** type definition of TopBottomCorrectionOptionEnum */
|
|
45
|
+
export type TopBottomCorrectionOptionEnum =
|
|
46
|
+
(typeof TopBottomCorrectionOptionEnum)[keyof typeof TopBottomCorrectionOptionEnum];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Video Stitching
|
|
3
|
+
*
|
|
4
|
+
* For
|
|
5
|
+
* - RICOH THETA X
|
|
6
|
+
* - RICOH THETA Z1
|
|
7
|
+
* - RICOH THETA V
|
|
8
|
+
*/
|
|
9
|
+
export const VideoStitchingEnum = {
|
|
10
|
+
/** Stitching is OFF */
|
|
11
|
+
NONE: 'NONE',
|
|
12
|
+
/** Stitching by the camera is ON */
|
|
13
|
+
ONDEVICE: 'ONDEVICE',
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
/** type definition of VideoStitchingEnum */
|
|
17
|
+
export type VideoStitchingEnum =
|
|
18
|
+
(typeof VideoStitchingEnum)[keyof typeof VideoStitchingEnum];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visibility reduction.
|
|
3
|
+
* Reduction visibility of camera body to still image when stitching.
|
|
4
|
+
*
|
|
5
|
+
* For
|
|
6
|
+
* - RICOH THETA Z1 v1.11.1 or later
|
|
7
|
+
*/
|
|
8
|
+
export const VisibilityReductionEnum = {
|
|
9
|
+
/** ON */
|
|
10
|
+
ON: 'ON',
|
|
11
|
+
/** OFF */
|
|
12
|
+
OFF: 'OFF',
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
/** type definition of visibilityReductionEnum */
|
|
16
|
+
export type VisibilityReductionEnum =
|
|
17
|
+
(typeof VisibilityReductionEnum)[keyof typeof VisibilityReductionEnum];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AiAutoThumbnailEnum } from './option-ai-auto-thumbnail';
|
|
2
2
|
import type { BitrateEnum } from './option-bitrate';
|
|
3
|
+
import type { BracketSetting } from './option-auto-bracket';
|
|
3
4
|
import type { BurstModeEnum } from './option-burst-mode';
|
|
4
5
|
import type { BurstOption } from './option-burst-option';
|
|
5
6
|
import type { CameraControlSourceEnum } from './option-camera-control-source';
|
|
@@ -19,6 +20,10 @@ import type { Proxy } from './option-proxy';
|
|
|
19
20
|
import type { ShootingMethodEnum } from './option-shooting-method';
|
|
20
21
|
import type { ShutterSpeedEnum } from './option-shutter-speed';
|
|
21
22
|
import type { TimeShift } from './option-time-shift';
|
|
23
|
+
import type { TopBottomCorrectionOptionEnum } from './option-top-bottom-correction';
|
|
24
|
+
import type { TopBottomCorrectionRotation } from './option-top-bottom-correction-rotation';
|
|
25
|
+
import type { VideoStitchingEnum } from './option-video-stitching';
|
|
26
|
+
import type { VisibilityReductionEnum } from './option-visibility-reduction';
|
|
22
27
|
import type { WhiteBalanceAutoStrengthEnum } from './option-white-balance-auto-strength';
|
|
23
28
|
import type { WlanFrequencyEnum } from './option-wlan-frequency';
|
|
24
29
|
|
|
@@ -447,6 +452,8 @@ export const OptionNameEnum = {
|
|
|
447
452
|
AiAutoThumbnail: 'AiAutoThumbnail',
|
|
448
453
|
/** aperture */
|
|
449
454
|
Aperture: 'Aperture',
|
|
455
|
+
/** autoBracket */
|
|
456
|
+
AutoBracket: 'AutoBracket',
|
|
450
457
|
/** _bitrate*/
|
|
451
458
|
Bitrate: 'Bitrate',
|
|
452
459
|
/** _bluetoothPower*/
|
|
@@ -503,6 +510,8 @@ export const OptionNameEnum = {
|
|
|
503
510
|
IsoAutoHighLimit: 'IsoAutoHighLimit',
|
|
504
511
|
/** language */
|
|
505
512
|
Language: 'Language',
|
|
513
|
+
/** _latestEnabledExposureDelayTime */
|
|
514
|
+
LatestEnabledExposureDelayTime: 'LatestEnabledExposureDelayTime',
|
|
506
515
|
/** maxRecordableTime */
|
|
507
516
|
MaxRecordableTime: 'MaxRecordableTime',
|
|
508
517
|
/** networkType */
|
|
@@ -533,12 +542,20 @@ export const OptionNameEnum = {
|
|
|
533
542
|
RemainingSpace: 'RemainingSpace',
|
|
534
543
|
/** timeShift */
|
|
535
544
|
TimeShift: 'TimeShift',
|
|
545
|
+
/** topBottomCorrection */
|
|
546
|
+
TopBottomCorrection: 'TopBottomCorrection',
|
|
547
|
+
/** topBottomCorrectionRotation */
|
|
548
|
+
TopBottomCorrectionRotation: 'TopBottomCorrectionRotation',
|
|
536
549
|
/** totalSpace */
|
|
537
550
|
TotalSpace: 'TotalSpace',
|
|
538
551
|
/** shutterVolume */
|
|
539
552
|
ShutterVolume: 'ShutterVolume',
|
|
540
553
|
/** username */
|
|
541
554
|
Username: 'Username',
|
|
555
|
+
/** videoStitching */
|
|
556
|
+
VideoStitching: 'VideoStitching',
|
|
557
|
+
/** _visibilityReduction */
|
|
558
|
+
VisibilityReduction: 'VisibilityReduction',
|
|
542
559
|
/** whiteBalance */
|
|
543
560
|
WhiteBalance: 'WhiteBalance',
|
|
544
561
|
/** _whiteBalanceAutoStrength */
|
|
@@ -557,6 +574,8 @@ export type Options = {
|
|
|
557
574
|
aiAutoThumbnail?: AiAutoThumbnailEnum;
|
|
558
575
|
/** Aperture value. */
|
|
559
576
|
aperture?: ApertureEnum;
|
|
577
|
+
/** */
|
|
578
|
+
autoBracket?: BracketSetting[];
|
|
560
579
|
/** Bitrate */
|
|
561
580
|
bitrate?: BitrateEnum;
|
|
562
581
|
/** BluetoothPower */
|
|
@@ -664,6 +683,8 @@ export type Options = {
|
|
|
664
683
|
isoAutoHighLimit?: IsoAutoHighLimitEnum;
|
|
665
684
|
/** Language used in camera OS. */
|
|
666
685
|
language?: LanguageEnum;
|
|
686
|
+
/** Self-timer operating time (sec.) when the self-timer (exposureDelay) was effective. */
|
|
687
|
+
latestEnabledExposureDelayTime?: ExposureDelayEnum;
|
|
667
688
|
/** Maximum recordable time (in seconds) of the camera. */
|
|
668
689
|
maxRecordableTime?: MaxRecordableTimeEnum;
|
|
669
690
|
/** Network type of the camera */
|
|
@@ -701,10 +722,21 @@ export type Options = {
|
|
|
701
722
|
sleepDelay?: SleepDelayEnum;
|
|
702
723
|
/** Time shift shooting */
|
|
703
724
|
timeShift?: TimeShift;
|
|
725
|
+
/** top bottom correction */
|
|
726
|
+
topBottomCorrection?: TopBottomCorrectionOptionEnum;
|
|
727
|
+
/**
|
|
728
|
+
* Sets the front position for the top/bottom correction.
|
|
729
|
+
* Enabled only for _topBottomCorrection Manual.
|
|
730
|
+
*/
|
|
731
|
+
topBottomCorrectionRotation?: TopBottomCorrectionRotation;
|
|
704
732
|
/** Total storage space (byte). */
|
|
705
733
|
totalSpace?: number;
|
|
706
734
|
/** User name used for digest authentication when _networkType is set to client mode. */
|
|
707
735
|
username?: String;
|
|
736
|
+
/** Video stitching during shooting. */
|
|
737
|
+
videoStitching?: VideoStitchingEnum;
|
|
738
|
+
/** Reduction visibility of camera body to still image when stitching. */
|
|
739
|
+
visibilityReduction?: VisibilityReductionEnum;
|
|
708
740
|
/** White balance. */
|
|
709
741
|
whiteBalance?: WhiteBalanceEnum;
|
|
710
742
|
/** White balance auto strength. */
|
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
PhotoCaptureBuilder,
|
|
17
17
|
VideoCaptureBuilder,
|
|
18
18
|
TimeShiftCaptureBuilder,
|
|
19
|
+
LimitlessIntervalCaptureBuilder,
|
|
20
|
+
ShotCountSpecifiedIntervalCaptureBuilder,
|
|
21
|
+
CompositeIntervalCaptureBuilder,
|
|
19
22
|
} from '../capture';
|
|
20
23
|
import type { ThetaConfig } from './theta-config';
|
|
21
24
|
import type { ThetaTimeout } from './theta-timeout';
|
|
@@ -83,7 +86,7 @@ export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
|
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
/**
|
|
86
|
-
* Get
|
|
89
|
+
* Get VideoCapture.Builder for capture video.
|
|
87
90
|
*
|
|
88
91
|
* @function getVideoCaptureBuilder
|
|
89
92
|
* @return created VideoCaptureBuilder instance
|
|
@@ -92,6 +95,42 @@ export function getVideoCaptureBuilder(): VideoCaptureBuilder {
|
|
|
92
95
|
return new VideoCaptureBuilder();
|
|
93
96
|
}
|
|
94
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Get LimitlessIntervalCapture.Builder for take limitless interval shooting.
|
|
100
|
+
*
|
|
101
|
+
* @function getLimitlessIntervalCaptureBuilder
|
|
102
|
+
* @return created LimitlessIntervalCaptureBuilder instance
|
|
103
|
+
*/
|
|
104
|
+
export function getLimitlessIntervalCaptureBuilder(): LimitlessIntervalCaptureBuilder {
|
|
105
|
+
return new LimitlessIntervalCaptureBuilder();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Get ShotCountSpecifiedIntervalCapture.Builder for take interval shooting with the shot count specified.
|
|
110
|
+
*
|
|
111
|
+
* @function getShotCountSpecifiedIntervalCaptureBuilder
|
|
112
|
+
* @param {shotCount} shot count specified
|
|
113
|
+
* @return created ShotCountSpecifiedIntervalCaptureBuilder instance
|
|
114
|
+
*/
|
|
115
|
+
export function getShotCountSpecifiedIntervalCaptureBuilder(
|
|
116
|
+
shotCount: number
|
|
117
|
+
): ShotCountSpecifiedIntervalCaptureBuilder {
|
|
118
|
+
return new ShotCountSpecifiedIntervalCaptureBuilder(shotCount);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Get CompositeIntervalCapture.Builder for take interval composite shooting.
|
|
123
|
+
*
|
|
124
|
+
* @function getCompositeIntervalCaptureBuilder
|
|
125
|
+
* @param {shootingTimeSec} Shooting time for interval composite shooting (sec)
|
|
126
|
+
* @return created CompositeIntervalCaptureBuilder instance
|
|
127
|
+
*/
|
|
128
|
+
export function getCompositeIntervalCaptureBuilder(
|
|
129
|
+
shootingTimeSec: number
|
|
130
|
+
): CompositeIntervalCaptureBuilder {
|
|
131
|
+
return new CompositeIntervalCaptureBuilder(shootingTimeSec);
|
|
132
|
+
}
|
|
133
|
+
|
|
95
134
|
/**
|
|
96
135
|
* Start live preview.
|
|
97
136
|
* preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
|
|
@@ -138,7 +138,7 @@ export type ThetaState = {
|
|
|
138
138
|
/** Plugin web server state (true: enabled, false: disabled) */
|
|
139
139
|
isPluginWebServer: boolean | null;
|
|
140
140
|
/** Shooting function status*/
|
|
141
|
-
function: ShootingFunctionEnum;
|
|
141
|
+
function: ShootingFunctionEnum | null;
|
|
142
142
|
/** My setting changed state */
|
|
143
143
|
isMySettingChanged: boolean | null;
|
|
144
144
|
/** Identifies the microphone used while recording video */
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "THETAClient", "1.
|
|
20
|
+
s.dependency "THETAClient", "1.6.0"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|