theta-client-react-native 1.4.0 → 1.5.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 +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +436 -1111
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +292 -252
- package/ios/ConvertUtil.swift +66 -2
- package/ios/ThetaClientReactNative.m +27 -0
- package/ios/ThetaClientReactNative.swift +273 -2
- package/lib/commonjs/capture/index.js +22 -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 +112 -0
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -0
- 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-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 +10 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +24 -1
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/capture/index.js +2 -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 +104 -0
- package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -0
- 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-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 +10 -0
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +23 -2
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/typescript/capture/index.d.ts +2 -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 +47 -0
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts.map +1 -0
- 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-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 +27 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +17 -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 +4 -2
- package/src/capture/index.ts +2 -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 +146 -0
- package/src/theta-repository/options/index.ts +4 -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 +27 -0
- package/src/theta-repository/theta-repository.ts +26 -1
- package/src/theta-repository/theta-state.ts +1 -1
- package/theta-client-react-native.podspec +1 -1
|
@@ -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];
|
|
@@ -19,6 +19,10 @@ import type { Proxy } from './option-proxy';
|
|
|
19
19
|
import type { ShootingMethodEnum } from './option-shooting-method';
|
|
20
20
|
import type { ShutterSpeedEnum } from './option-shutter-speed';
|
|
21
21
|
import type { TimeShift } from './option-time-shift';
|
|
22
|
+
import type { TopBottomCorrectionOptionEnum } from './option-top-bottom-correction';
|
|
23
|
+
import type { TopBottomCorrectionRotation } from './option-top-bottom-correction-rotation';
|
|
24
|
+
import type { VideoStitchingEnum } from './option-video-stitching';
|
|
25
|
+
import type { VisibilityReductionEnum } from './option-visibility-reduction';
|
|
22
26
|
import type { WhiteBalanceAutoStrengthEnum } from './option-white-balance-auto-strength';
|
|
23
27
|
import type { WlanFrequencyEnum } from './option-wlan-frequency';
|
|
24
28
|
|
|
@@ -503,6 +507,8 @@ export const OptionNameEnum = {
|
|
|
503
507
|
IsoAutoHighLimit: 'IsoAutoHighLimit',
|
|
504
508
|
/** language */
|
|
505
509
|
Language: 'Language',
|
|
510
|
+
/** _latestEnabledExposureDelayTime */
|
|
511
|
+
LatestEnabledExposureDelayTime: 'LatestEnabledExposureDelayTime',
|
|
506
512
|
/** maxRecordableTime */
|
|
507
513
|
MaxRecordableTime: 'MaxRecordableTime',
|
|
508
514
|
/** networkType */
|
|
@@ -533,12 +539,20 @@ export const OptionNameEnum = {
|
|
|
533
539
|
RemainingSpace: 'RemainingSpace',
|
|
534
540
|
/** timeShift */
|
|
535
541
|
TimeShift: 'TimeShift',
|
|
542
|
+
/** topBottomCorrection */
|
|
543
|
+
TopBottomCorrection: 'TopBottomCorrection',
|
|
544
|
+
/** topBottomCorrectionRotation */
|
|
545
|
+
TopBottomCorrectionRotation: 'TopBottomCorrectionRotation',
|
|
536
546
|
/** totalSpace */
|
|
537
547
|
TotalSpace: 'TotalSpace',
|
|
538
548
|
/** shutterVolume */
|
|
539
549
|
ShutterVolume: 'ShutterVolume',
|
|
540
550
|
/** username */
|
|
541
551
|
Username: 'Username',
|
|
552
|
+
/** videoStitching */
|
|
553
|
+
VideoStitching: 'VideoStitching',
|
|
554
|
+
/** _visibilityReduction */
|
|
555
|
+
VisibilityReduction: 'VisibilityReduction',
|
|
542
556
|
/** whiteBalance */
|
|
543
557
|
WhiteBalance: 'WhiteBalance',
|
|
544
558
|
/** _whiteBalanceAutoStrength */
|
|
@@ -664,6 +678,8 @@ export type Options = {
|
|
|
664
678
|
isoAutoHighLimit?: IsoAutoHighLimitEnum;
|
|
665
679
|
/** Language used in camera OS. */
|
|
666
680
|
language?: LanguageEnum;
|
|
681
|
+
/** Self-timer operating time (sec.) when the self-timer (exposureDelay) was effective. */
|
|
682
|
+
latestEnabledExposureDelayTime?: ExposureDelayEnum;
|
|
667
683
|
/** Maximum recordable time (in seconds) of the camera. */
|
|
668
684
|
maxRecordableTime?: MaxRecordableTimeEnum;
|
|
669
685
|
/** Network type of the camera */
|
|
@@ -701,10 +717,21 @@ export type Options = {
|
|
|
701
717
|
sleepDelay?: SleepDelayEnum;
|
|
702
718
|
/** Time shift shooting */
|
|
703
719
|
timeShift?: TimeShift;
|
|
720
|
+
/** top bottom correction */
|
|
721
|
+
topBottomCorrection?: TopBottomCorrectionOptionEnum;
|
|
722
|
+
/**
|
|
723
|
+
* Sets the front position for the top/bottom correction.
|
|
724
|
+
* Enabled only for _topBottomCorrection Manual.
|
|
725
|
+
*/
|
|
726
|
+
topBottomCorrectionRotation?: TopBottomCorrectionRotation;
|
|
704
727
|
/** Total storage space (byte). */
|
|
705
728
|
totalSpace?: number;
|
|
706
729
|
/** User name used for digest authentication when _networkType is set to client mode. */
|
|
707
730
|
username?: String;
|
|
731
|
+
/** Video stitching during shooting. */
|
|
732
|
+
videoStitching?: VideoStitchingEnum;
|
|
733
|
+
/** Reduction visibility of camera body to still image when stitching. */
|
|
734
|
+
visibilityReduction?: VisibilityReductionEnum;
|
|
708
735
|
/** White balance. */
|
|
709
736
|
whiteBalance?: WhiteBalanceEnum;
|
|
710
737
|
/** White balance auto strength. */
|
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
PhotoCaptureBuilder,
|
|
17
17
|
VideoCaptureBuilder,
|
|
18
18
|
TimeShiftCaptureBuilder,
|
|
19
|
+
LimitlessIntervalCaptureBuilder,
|
|
20
|
+
ShotCountSpecifiedIntervalCaptureBuilder,
|
|
19
21
|
} from '../capture';
|
|
20
22
|
import type { ThetaConfig } from './theta-config';
|
|
21
23
|
import type { ThetaTimeout } from './theta-timeout';
|
|
@@ -83,7 +85,7 @@ export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
|
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
/**
|
|
86
|
-
* Get
|
|
88
|
+
* Get VideoCapture.Builder for capture video.
|
|
87
89
|
*
|
|
88
90
|
* @function getVideoCaptureBuilder
|
|
89
91
|
* @return created VideoCaptureBuilder instance
|
|
@@ -92,6 +94,29 @@ export function getVideoCaptureBuilder(): VideoCaptureBuilder {
|
|
|
92
94
|
return new VideoCaptureBuilder();
|
|
93
95
|
}
|
|
94
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Get LimitlessIntervalCapture.Builder for take limitless interval shooting.
|
|
99
|
+
*
|
|
100
|
+
* @function getLimitlessIntervalCaptureBuilder
|
|
101
|
+
* @return created LimitlessIntervalCaptureBuilder instance
|
|
102
|
+
*/
|
|
103
|
+
export function getLimitlessIntervalCaptureBuilder(): LimitlessIntervalCaptureBuilder {
|
|
104
|
+
return new LimitlessIntervalCaptureBuilder();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get ShotCountSpecifiedIntervalCapture.Builder for take interval shooting with the shot count specified.
|
|
109
|
+
*
|
|
110
|
+
* @function getShotCountSpecifiedIntervalCaptureBuilder
|
|
111
|
+
* @param {shotCount} shot count specified
|
|
112
|
+
* @return created ShotCountSpecifiedIntervalCaptureBuilder instance
|
|
113
|
+
*/
|
|
114
|
+
export function getShotCountSpecifiedIntervalCaptureBuilder(
|
|
115
|
+
shotCount: number
|
|
116
|
+
): ShotCountSpecifiedIntervalCaptureBuilder {
|
|
117
|
+
return new ShotCountSpecifiedIntervalCaptureBuilder(shotCount);
|
|
118
|
+
}
|
|
119
|
+
|
|
95
120
|
/**
|
|
96
121
|
* Start live preview.
|
|
97
122
|
* 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.5.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
|