theta-client-react-native 1.5.0 → 1.7.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 +196 -19
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +493 -3
- package/ios/ConvertUtil.swift +272 -18
- package/ios/ThetaClientReactNative.m +56 -0
- package/ios/ThetaClientReactNative.swift +574 -2
- package/lib/commonjs/capture/burst-capture.js +119 -0
- package/lib/commonjs/capture/burst-capture.js.map +1 -0
- 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/continuous-capture.js +108 -0
- package/lib/commonjs/capture/continuous-capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +44 -0
- package/lib/commonjs/capture/index.js.map +1 -1
- package/lib/commonjs/capture/multi-bracket-capture.js +121 -0
- package/lib/commonjs/capture/multi-bracket-capture.js.map +1 -0
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js +1 -0
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -1
- package/lib/commonjs/capture/time-shift-capture.js +9 -1
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/access-point.js +1 -2
- package/lib/commonjs/theta-repository/access-point.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +44 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +1 -2
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.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-bitrate.js +1 -2
- package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-bluetooth-role.js +20 -0
- package/lib/commonjs/theta-repository/options/option-bluetooth-role.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-burst-mode.js +1 -2
- package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-burst-option.js +11 -12
- package/lib/commonjs/theta-repository/options/option-burst-option.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js +1 -2
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-camera-mode.js +1 -2
- package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-capture-mode.js +1 -2
- package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-continuous-number.js +1 -2
- package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-face-detect.js +1 -2
- package/lib/commonjs/theta-repository/options/option-face-detect.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-filter.js +1 -2
- package/lib/commonjs/theta-repository/options/option-filter.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-function.js +1 -2
- package/lib/commonjs/theta-repository/options/option-function.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-gain.js +1 -2
- package/lib/commonjs/theta-repository/options/option-gain.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-image-stitching.js +1 -2
- package/lib/commonjs/theta-repository/options/option-image-stitching.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-network-type.js +1 -2
- package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-off-delay.js +42 -0
- package/lib/commonjs/theta-repository/options/option-off-delay.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-power-saving.js +1 -2
- package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-preset.js +1 -2
- package/lib/commonjs/theta-repository/options/option-preset.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-preview-format.js +1 -2
- package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-shooting-method.js +1 -2
- package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js +1 -2
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-sleep-delay.js +42 -0
- package/lib/commonjs/theta-repository/options/option-sleep-delay.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-time-shift.js +1 -2
- package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js +1 -2
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-video-stitching.js +1 -2
- package/lib/commonjs/theta-repository/options/option-video-stitching.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-visibility-reduction.js +1 -2
- package/lib/commonjs/theta-repository/options/option-visibility-reduction.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +1 -2
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +1 -2
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -1
- package/lib/commonjs/theta-repository/options/options.js +32 -62
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-files.js +7 -8
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-info.js +1 -2
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +50 -23
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-state.js +7 -8
- package/lib/commonjs/theta-repository/theta-state.js.map +1 -1
- package/lib/module/capture/burst-capture.js +111 -0
- package/lib/module/capture/burst-capture.js.map +1 -0
- 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/continuous-capture.js +100 -0
- package/lib/module/capture/continuous-capture.js.map +1 -0
- package/lib/module/capture/index.js +4 -0
- package/lib/module/capture/index.js.map +1 -1
- package/lib/module/capture/multi-bracket-capture.js +113 -0
- package/lib/module/capture/multi-bracket-capture.js.map +1 -0
- package/lib/module/capture/shot-count-specified-interval-capture.js +1 -0
- package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -1
- 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 +4 -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-bluetooth-role.js +14 -0
- package/lib/module/theta-repository/options/option-bluetooth-role.js.map +1 -0
- package/lib/module/theta-repository/options/option-off-delay.js +35 -0
- package/lib/module/theta-repository/options/option-off-delay.js.map +1 -0
- package/lib/module/theta-repository/options/option-sleep-delay.js +35 -0
- package/lib/module/theta-repository/options/option-sleep-delay.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +4 -32
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +47 -24
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/typescript/capture/burst-capture.d.ts +55 -0
- package/lib/typescript/capture/burst-capture.d.ts.map +1 -0
- 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/continuous-capture.d.ts +49 -0
- package/lib/typescript/capture/continuous-capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +4 -0
- package/lib/typescript/capture/index.d.ts.map +1 -1
- package/lib/typescript/capture/multi-bracket-capture.d.ts +56 -0
- package/lib/typescript/capture/multi-bracket-capture.d.ts.map +1 -0
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts +1 -0
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts.map +1 -1
- 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 +4 -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-bluetooth-role.d.ts +14 -0
- package/lib/typescript/theta-repository/options/option-bluetooth-role.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-off-delay.d.ts +22 -0
- package/lib/typescript/theta-repository/options/option-off-delay.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-sleep-delay.d.ts +22 -0
- package/lib/typescript/theta-repository/options/option-sleep-delay.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +12 -30
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +32 -2
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/capture/burst-capture.ts +169 -0
- package/src/capture/composite-interval-capture.ts +140 -0
- package/src/capture/continuous-capture.ts +126 -0
- package/src/capture/index.ts +4 -0
- package/src/capture/multi-bracket-capture.ts +145 -0
- package/src/capture/shot-count-specified-interval-capture.ts +1 -0
- package/src/capture/time-shift-capture.ts +19 -1
- package/src/theta-repository/options/index.ts +4 -0
- package/src/theta-repository/options/option-auto-bracket.ts +48 -0
- package/src/theta-repository/options/option-bluetooth-role.ts +15 -0
- package/src/theta-repository/options/option-off-delay.ts +38 -0
- package/src/theta-repository/options/option-sleep-delay.ts +37 -0
- package/src/theta-repository/options/options.ts +12 -38
- package/src/theta-repository/theta-repository.ts +68 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -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,6 +1,8 @@
|
|
|
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';
|
|
5
|
+
export * from './option-bluetooth-role';
|
|
4
6
|
export * from './option-burst-mode';
|
|
5
7
|
export * from './option-burst-option';
|
|
6
8
|
export * from './option-camera-control-source';
|
|
@@ -13,12 +15,14 @@ export * from './option-function';
|
|
|
13
15
|
export * from './option-gain';
|
|
14
16
|
export * from './option-image-stitching';
|
|
15
17
|
export * from './option-network-type';
|
|
18
|
+
export * from './option-off-delay';
|
|
16
19
|
export * from './option-power-saving';
|
|
17
20
|
export * from './option-preset';
|
|
18
21
|
export * from './option-preview-format';
|
|
19
22
|
export * from './option-proxy';
|
|
20
23
|
export * from './option-shooting-method';
|
|
21
24
|
export * from './option-shutter-speed';
|
|
25
|
+
export * from './option-sleep-delay';
|
|
22
26
|
export * from './option-time-shift';
|
|
23
27
|
export * from './option-top-bottom-correction';
|
|
24
28
|
export * from './option-top-bottom-correction-rotation';
|
|
@@ -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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Role of the Bluetooth module.
|
|
3
|
+
*/
|
|
4
|
+
export const BluetoothRoleEnum = {
|
|
5
|
+
/** Central: ON, Peripheral: OFF */
|
|
6
|
+
CENTRAL: 'CENTRAL',
|
|
7
|
+
/** Central: OFF, Peripheral: ON */
|
|
8
|
+
PERIPHERAL: 'PERIPHERAL',
|
|
9
|
+
/** Central: ON, Peripheral: ON */
|
|
10
|
+
CENTRAL_PERIPHERAL: 'CENTRAL_PERIPHERAL',
|
|
11
|
+
} as const;
|
|
12
|
+
|
|
13
|
+
/** Type definition of BluetoothRoleEnum */
|
|
14
|
+
export type BluetoothRoleEnum =
|
|
15
|
+
(typeof BluetoothRoleEnum)[keyof typeof BluetoothRoleEnum];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Length of standby time before the camera automatically powers OFF. */
|
|
2
|
+
export const OffDelayEnum = {
|
|
3
|
+
/** Do not turn power off. */
|
|
4
|
+
DISABLE: 'DISABLE',
|
|
5
|
+
/** Power off after 5 minutes.(300sec) */
|
|
6
|
+
OFF_DELAY_5M: 'OFF_DELAY_5M',
|
|
7
|
+
/** Power off after 10 minutes.(600sec) */
|
|
8
|
+
OFF_DELAY_10M: 'OFF_DELAY_10M',
|
|
9
|
+
/** Power off after 15 minutes.(900sec) */
|
|
10
|
+
OFF_DELAY_15M: 'OFF_DELAY_15M',
|
|
11
|
+
/** Power off after 30 minutes.(1,800sec) */
|
|
12
|
+
OFF_DELAY_30M: 'OFF_DELAY_30M',
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
/** type definition of OffDelayEnum */
|
|
16
|
+
export type OffDelayEnum =
|
|
17
|
+
| (typeof OffDelayEnum)[keyof typeof OffDelayEnum]
|
|
18
|
+
| number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get time(seconds) from OffDelayEnum
|
|
22
|
+
* @param offDelay enum of OffDelay
|
|
23
|
+
* @returns time(seconds)
|
|
24
|
+
*/
|
|
25
|
+
export function offDelayToSeconds(offDelay: OffDelayEnum): number {
|
|
26
|
+
if (typeof offDelay === 'number') {
|
|
27
|
+
return offDelay;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const table: Record<OffDelayEnum, number> = {
|
|
31
|
+
DISABLE: 0,
|
|
32
|
+
OFF_DELAY_5M: 300,
|
|
33
|
+
OFF_DELAY_10M: 600,
|
|
34
|
+
OFF_DELAY_15M: 900,
|
|
35
|
+
OFF_DELAY_30M: 1800,
|
|
36
|
+
};
|
|
37
|
+
return table[offDelay];
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Length of standby time before the camera enters the sleep mode. */
|
|
2
|
+
export const SleepDelayEnum = {
|
|
3
|
+
/** Do not turn sleep mode. */
|
|
4
|
+
DISABLE: 'DISABLE',
|
|
5
|
+
/** sleep mode after 3 minutes.(180seconds) */
|
|
6
|
+
SLEEP_DELAY_3M: 'SLEEP_DELAY_3M',
|
|
7
|
+
/** sleep mode after 5 minutes.(300seconds) */
|
|
8
|
+
SLEEP_DELAY_5M: 'SLEEP_DELAY_5M',
|
|
9
|
+
/** sleep mode after 7 minutes.(420seconds) */
|
|
10
|
+
SLEEP_DELAY_7M: 'SLEEP_DELAY_7M',
|
|
11
|
+
/** sleep mode after 10 minutes.(600seconds) */
|
|
12
|
+
SLEEP_DELAY_10M: 'SLEEP_DELAY_10M',
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
/** type definition of SleepDelayEnum */
|
|
16
|
+
export type SleepDelayEnum =
|
|
17
|
+
| (typeof SleepDelayEnum)[keyof typeof SleepDelayEnum]
|
|
18
|
+
| number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get time(seconds) from SleepDelayEnum
|
|
22
|
+
* @param offDelay enum of SleepDelay
|
|
23
|
+
* @returns time(seconds)
|
|
24
|
+
*/
|
|
25
|
+
export function sleepDelayToSeconds(sleepDelay: SleepDelayEnum): number {
|
|
26
|
+
if (typeof sleepDelay === 'number') {
|
|
27
|
+
return sleepDelay;
|
|
28
|
+
}
|
|
29
|
+
const table: Record<SleepDelayEnum, number> = {
|
|
30
|
+
DISABLE: 0,
|
|
31
|
+
SLEEP_DELAY_3M: 180,
|
|
32
|
+
SLEEP_DELAY_5M: 300,
|
|
33
|
+
SLEEP_DELAY_7M: 420,
|
|
34
|
+
SLEEP_DELAY_10M: 600,
|
|
35
|
+
};
|
|
36
|
+
return table[sleepDelay];
|
|
37
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AiAutoThumbnailEnum } from './option-ai-auto-thumbnail';
|
|
2
2
|
import type { BitrateEnum } from './option-bitrate';
|
|
3
|
+
import type { BluetoothRoleEnum } from './option-bluetooth-role';
|
|
4
|
+
import type { BracketSetting } from './option-auto-bracket';
|
|
3
5
|
import type { BurstModeEnum } from './option-burst-mode';
|
|
4
6
|
import type { BurstOption } from './option-burst-option';
|
|
5
7
|
import type { CameraControlSourceEnum } from './option-camera-control-source';
|
|
@@ -25,6 +27,8 @@ import type { VideoStitchingEnum } from './option-video-stitching';
|
|
|
25
27
|
import type { VisibilityReductionEnum } from './option-visibility-reduction';
|
|
26
28
|
import type { WhiteBalanceAutoStrengthEnum } from './option-white-balance-auto-strength';
|
|
27
29
|
import type { WlanFrequencyEnum } from './option-wlan-frequency';
|
|
30
|
+
import type { OffDelayEnum } from './option-off-delay';
|
|
31
|
+
import type { SleepDelayEnum } from './option-sleep-delay';
|
|
28
32
|
|
|
29
33
|
/** Aperture value. */
|
|
30
34
|
export const ApertureEnum = {
|
|
@@ -375,44 +379,6 @@ export const MaxRecordableTimeEnum = {
|
|
|
375
379
|
export type MaxRecordableTimeEnum =
|
|
376
380
|
(typeof MaxRecordableTimeEnum)[keyof typeof MaxRecordableTimeEnum];
|
|
377
381
|
|
|
378
|
-
/** Length of standby time before the camera automatically powers OFF. */
|
|
379
|
-
export const OffDelayEnum = {
|
|
380
|
-
/** Do not turn power off. */
|
|
381
|
-
DISABLE: 'DISABLE',
|
|
382
|
-
/** Power off after 5 minutes.(300sec) */
|
|
383
|
-
OFF_DELAY_5M: 'OFF_DELAY_5M',
|
|
384
|
-
/** Power off after 10 minutes.(600sec) */
|
|
385
|
-
OFF_DELAY_10M: 'OFF_DELAY_10M',
|
|
386
|
-
/** Power off after 15 minutes.(900sec) */
|
|
387
|
-
OFF_DELAY_15M: 'OFF_DELAY_15M',
|
|
388
|
-
/** Power off after 30 minutes.(1,800sec) */
|
|
389
|
-
OFF_DELAY_30M: 'OFF_DELAY_30M',
|
|
390
|
-
} as const;
|
|
391
|
-
|
|
392
|
-
/** type definition of OffDelayEnum */
|
|
393
|
-
export type OffDelayEnum =
|
|
394
|
-
| (typeof OffDelayEnum)[keyof typeof OffDelayEnum]
|
|
395
|
-
| number;
|
|
396
|
-
|
|
397
|
-
/** Length of standby time before the camera enters the sleep mode. */
|
|
398
|
-
export const SleepDelayEnum = {
|
|
399
|
-
/** Do not turn sleep mode. */
|
|
400
|
-
DISABLE: 'DISABLE',
|
|
401
|
-
/** sleep mode after 3 minutes.(180seconds) */
|
|
402
|
-
SLEEP_DELAY_3M: 'SLEEP_DELAY_3M',
|
|
403
|
-
/** sleep mode after 5 minutes.(300seconds) */
|
|
404
|
-
SLEEP_DELAY_5M: 'SLEEP_DELAY_5M',
|
|
405
|
-
/** sleep mode after 7 minutes.(420seconds) */
|
|
406
|
-
SLEEP_DELAY_7M: 'SLEEP_DELAY_7M',
|
|
407
|
-
/** sleep mode after 10 minutes.(600seconds) */
|
|
408
|
-
SLEEP_DELAY_10M: 'SLEEP_DELAY_10M',
|
|
409
|
-
} as const;
|
|
410
|
-
|
|
411
|
-
/** type definition of SleepDelayEnum */
|
|
412
|
-
export type SleepDelayEnum =
|
|
413
|
-
| (typeof SleepDelayEnum)[keyof typeof SleepDelayEnum]
|
|
414
|
-
| number;
|
|
415
|
-
|
|
416
382
|
/** White balance. */
|
|
417
383
|
export const WhiteBalanceEnum = {
|
|
418
384
|
/** Automatic */
|
|
@@ -451,10 +417,14 @@ export const OptionNameEnum = {
|
|
|
451
417
|
AiAutoThumbnail: 'AiAutoThumbnail',
|
|
452
418
|
/** aperture */
|
|
453
419
|
Aperture: 'Aperture',
|
|
420
|
+
/** autoBracket */
|
|
421
|
+
AutoBracket: 'AutoBracket',
|
|
454
422
|
/** _bitrate*/
|
|
455
423
|
Bitrate: 'Bitrate',
|
|
456
424
|
/** _bluetoothPower*/
|
|
457
425
|
BluetoothPower: 'BluetoothPower',
|
|
426
|
+
/** _bluetoothRole*/
|
|
427
|
+
BluetoothRole: 'BluetoothRole',
|
|
458
428
|
/** _burstMode*/
|
|
459
429
|
BurstMode: 'BurstMode',
|
|
460
430
|
/** _burstOption*/
|
|
@@ -571,10 +541,14 @@ export type Options = {
|
|
|
571
541
|
aiAutoThumbnail?: AiAutoThumbnailEnum;
|
|
572
542
|
/** Aperture value. */
|
|
573
543
|
aperture?: ApertureEnum;
|
|
544
|
+
/** */
|
|
545
|
+
autoBracket?: BracketSetting[];
|
|
574
546
|
/** Bitrate */
|
|
575
547
|
bitrate?: BitrateEnum;
|
|
576
548
|
/** BluetoothPower */
|
|
577
549
|
bluetoothPower?: BluetoothPowerEnum;
|
|
550
|
+
/** BluetoothRole */
|
|
551
|
+
bluetoothRole?: BluetoothRoleEnum;
|
|
578
552
|
/** BurstMode */
|
|
579
553
|
burstMode?: BurstModeEnum;
|
|
580
554
|
/** BurstOption */
|
|
@@ -11,6 +11,12 @@ import type {
|
|
|
11
11
|
Options,
|
|
12
12
|
CaptureModeEnum,
|
|
13
13
|
Proxy,
|
|
14
|
+
BurstCaptureNumEnum,
|
|
15
|
+
BurstBracketStepEnum,
|
|
16
|
+
BurstCompensationEnum,
|
|
17
|
+
BurstMaxExposureTimeEnum,
|
|
18
|
+
BurstEnableIsoControlEnum,
|
|
19
|
+
BurstOrderEnum,
|
|
14
20
|
} from './options';
|
|
15
21
|
import {
|
|
16
22
|
PhotoCaptureBuilder,
|
|
@@ -18,6 +24,10 @@ import {
|
|
|
18
24
|
TimeShiftCaptureBuilder,
|
|
19
25
|
LimitlessIntervalCaptureBuilder,
|
|
20
26
|
ShotCountSpecifiedIntervalCaptureBuilder,
|
|
27
|
+
CompositeIntervalCaptureBuilder,
|
|
28
|
+
BurstCaptureBuilder,
|
|
29
|
+
ContinuousCaptureBuilder,
|
|
30
|
+
MultiBracketCaptureBuilder,
|
|
21
31
|
} from '../capture';
|
|
22
32
|
import type { ThetaConfig } from './theta-config';
|
|
23
33
|
import type { ThetaTimeout } from './theta-timeout';
|
|
@@ -117,6 +127,64 @@ export function getShotCountSpecifiedIntervalCaptureBuilder(
|
|
|
117
127
|
return new ShotCountSpecifiedIntervalCaptureBuilder(shotCount);
|
|
118
128
|
}
|
|
119
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Get CompositeIntervalCapture.Builder for take interval composite shooting.
|
|
132
|
+
*
|
|
133
|
+
* @function getCompositeIntervalCaptureBuilder
|
|
134
|
+
* @param {shootingTimeSec} Shooting time for interval composite shooting (sec)
|
|
135
|
+
* @return created CompositeIntervalCaptureBuilder instance
|
|
136
|
+
*/
|
|
137
|
+
export function getCompositeIntervalCaptureBuilder(
|
|
138
|
+
shootingTimeSec: number
|
|
139
|
+
): CompositeIntervalCaptureBuilder {
|
|
140
|
+
return new CompositeIntervalCaptureBuilder(shootingTimeSec);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Get BurstCapture.Builder for take burst shooting.
|
|
145
|
+
*
|
|
146
|
+
* @function getBurstCaptureBuilder
|
|
147
|
+
* @param burstOption Burst shooting setting.
|
|
148
|
+
* @return created BurstCaptureBuilder instance
|
|
149
|
+
*/
|
|
150
|
+
export function getBurstCaptureBuilder(
|
|
151
|
+
burstCaptureNum: BurstCaptureNumEnum,
|
|
152
|
+
burstBracketStep: BurstBracketStepEnum,
|
|
153
|
+
burstCompensation: BurstCompensationEnum,
|
|
154
|
+
burstMaxExposureTime: BurstMaxExposureTimeEnum,
|
|
155
|
+
burstEnableIsoControl: BurstEnableIsoControlEnum,
|
|
156
|
+
burstOrder: BurstOrderEnum
|
|
157
|
+
): BurstCaptureBuilder {
|
|
158
|
+
return new BurstCaptureBuilder(
|
|
159
|
+
burstCaptureNum,
|
|
160
|
+
burstBracketStep,
|
|
161
|
+
burstCompensation,
|
|
162
|
+
burstMaxExposureTime,
|
|
163
|
+
burstEnableIsoControl,
|
|
164
|
+
burstOrder
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Get MultiBracketCapture.Builder for take multi bracket shooting.
|
|
170
|
+
*
|
|
171
|
+
* @function getMultiBracketCaptureBuilder
|
|
172
|
+
* @return created MultiBracketCaptureBuilder instance
|
|
173
|
+
*/
|
|
174
|
+
export function getMultiBracketCaptureBuilder(): MultiBracketCaptureBuilder {
|
|
175
|
+
return new MultiBracketCaptureBuilder();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Get ContinuousCapture.Builder for take limitless interval shooting.
|
|
180
|
+
*
|
|
181
|
+
* @function getContinuousCaptureBuilder
|
|
182
|
+
* @return created ContinuousCaptureBuilder instance
|
|
183
|
+
*/
|
|
184
|
+
export function getContinuousCaptureBuilder(): ContinuousCaptureBuilder {
|
|
185
|
+
return new ContinuousCaptureBuilder();
|
|
186
|
+
}
|
|
187
|
+
|
|
120
188
|
/**
|
|
121
189
|
* Start live preview.
|
|
122
190
|
* preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
|
|
@@ -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.7.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
|