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.
Files changed (109) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +492 -1093
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +423 -253
  4. package/ios/ConvertUtil.swift +195 -2
  5. package/ios/ThetaClientReactNative.m +41 -0
  6. package/ios/ThetaClientReactNative.swift +427 -3
  7. package/lib/commonjs/capture/composite-interval-capture.js +112 -0
  8. package/lib/commonjs/capture/composite-interval-capture.js.map +1 -0
  9. package/lib/commonjs/capture/index.js +33 -0
  10. package/lib/commonjs/capture/index.js.map +1 -1
  11. package/lib/commonjs/capture/limitless-interval-capture.js +89 -0
  12. package/lib/commonjs/capture/limitless-interval-capture.js.map +1 -0
  13. package/lib/commonjs/capture/photo-capture.js +7 -2
  14. package/lib/commonjs/capture/photo-capture.js.map +1 -1
  15. package/lib/commonjs/capture/shot-count-specified-interval-capture.js +113 -0
  16. package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -0
  17. package/lib/commonjs/capture/time-shift-capture.js +9 -1
  18. package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
  19. package/lib/commonjs/theta-repository/options/index.js +55 -0
  20. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  21. package/lib/commonjs/theta-repository/options/option-auto-bracket.js +6 -0
  22. package/lib/commonjs/theta-repository/options/option-auto-bracket.js.map +1 -0
  23. package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation.js +2 -0
  24. package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -0
  25. package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js +52 -0
  26. package/lib/commonjs/theta-repository/options/option-top-bottom-correction.js.map +1 -0
  27. package/lib/commonjs/theta-repository/options/option-video-stitching.js +24 -0
  28. package/lib/commonjs/theta-repository/options/option-video-stitching.js.map +1 -0
  29. package/lib/commonjs/theta-repository/options/option-visibility-reduction.js +23 -0
  30. package/lib/commonjs/theta-repository/options/option-visibility-reduction.js.map +1 -0
  31. package/lib/commonjs/theta-repository/options/options.js +12 -0
  32. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  33. package/lib/commonjs/theta-repository/theta-repository.js +36 -1
  34. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  35. package/lib/module/capture/composite-interval-capture.js +104 -0
  36. package/lib/module/capture/composite-interval-capture.js.map +1 -0
  37. package/lib/module/capture/index.js +3 -0
  38. package/lib/module/capture/index.js.map +1 -1
  39. package/lib/module/capture/limitless-interval-capture.js +81 -0
  40. package/lib/module/capture/limitless-interval-capture.js.map +1 -0
  41. package/lib/module/capture/photo-capture.js +7 -2
  42. package/lib/module/capture/photo-capture.js.map +1 -1
  43. package/lib/module/capture/shot-count-specified-interval-capture.js +105 -0
  44. package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -0
  45. package/lib/module/capture/time-shift-capture.js +9 -1
  46. package/lib/module/capture/time-shift-capture.js.map +1 -1
  47. package/lib/module/theta-repository/options/index.js +5 -0
  48. package/lib/module/theta-repository/options/index.js.map +1 -1
  49. package/lib/module/theta-repository/options/option-auto-bracket.js +2 -0
  50. package/lib/module/theta-repository/options/option-auto-bracket.js.map +1 -0
  51. package/lib/module/theta-repository/options/option-top-bottom-correction-rotation.js +2 -0
  52. package/lib/module/theta-repository/options/option-top-bottom-correction-rotation.js.map +1 -0
  53. package/lib/module/theta-repository/options/option-top-bottom-correction.js +45 -0
  54. package/lib/module/theta-repository/options/option-top-bottom-correction.js.map +1 -0
  55. package/lib/module/theta-repository/options/option-video-stitching.js +17 -0
  56. package/lib/module/theta-repository/options/option-video-stitching.js.map +1 -0
  57. package/lib/module/theta-repository/options/option-visibility-reduction.js +16 -0
  58. package/lib/module/theta-repository/options/option-visibility-reduction.js.map +1 -0
  59. package/lib/module/theta-repository/options/options.js +12 -0
  60. package/lib/module/theta-repository/options/options.js.map +1 -1
  61. package/lib/module/theta-repository/theta-repository.js +34 -2
  62. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  63. package/lib/typescript/capture/composite-interval-capture.d.ts +47 -0
  64. package/lib/typescript/capture/composite-interval-capture.d.ts.map +1 -0
  65. package/lib/typescript/capture/index.d.ts +3 -0
  66. package/lib/typescript/capture/index.d.ts.map +1 -1
  67. package/lib/typescript/capture/limitless-interval-capture.d.ts +40 -0
  68. package/lib/typescript/capture/limitless-interval-capture.d.ts.map +1 -0
  69. package/lib/typescript/capture/photo-capture.d.ts +1 -1
  70. package/lib/typescript/capture/photo-capture.d.ts.map +1 -1
  71. package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts +48 -0
  72. package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts.map +1 -0
  73. package/lib/typescript/capture/time-shift-capture.d.ts +2 -1
  74. package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -1
  75. package/lib/typescript/theta-repository/options/index.d.ts +5 -0
  76. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  77. package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts +36 -0
  78. package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts.map +1 -0
  79. package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation.d.ts +22 -0
  80. package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation.d.ts.map +1 -0
  81. package/lib/typescript/theta-repository/options/option-top-bottom-correction.d.ts +45 -0
  82. package/lib/typescript/theta-repository/options/option-top-bottom-correction.d.ts.map +1 -0
  83. package/lib/typescript/theta-repository/options/option-video-stitching.d.ts +17 -0
  84. package/lib/typescript/theta-repository/options/option-video-stitching.d.ts.map +1 -0
  85. package/lib/typescript/theta-repository/options/option-visibility-reduction.d.ts +16 -0
  86. package/lib/typescript/theta-repository/options/option-visibility-reduction.d.ts.map +1 -0
  87. package/lib/typescript/theta-repository/options/options.d.ts +32 -0
  88. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  89. package/lib/typescript/theta-repository/theta-repository.d.ts +25 -2
  90. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  91. package/lib/typescript/theta-repository/theta-state.d.ts +1 -1
  92. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
  93. package/package.json +5 -3
  94. package/src/capture/composite-interval-capture.ts +140 -0
  95. package/src/capture/index.ts +3 -0
  96. package/src/capture/limitless-interval-capture.ts +99 -0
  97. package/src/capture/photo-capture.ts +7 -2
  98. package/src/capture/shot-count-specified-interval-capture.ts +147 -0
  99. package/src/capture/time-shift-capture.ts +19 -1
  100. package/src/theta-repository/options/index.ts +5 -0
  101. package/src/theta-repository/options/option-auto-bracket.ts +48 -0
  102. package/src/theta-repository/options/option-top-bottom-correction-rotation.ts +21 -0
  103. package/src/theta-repository/options/option-top-bottom-correction.ts +46 -0
  104. package/src/theta-repository/options/option-video-stitching.ts +18 -0
  105. package/src/theta-repository/options/option-visibility-reduction.ts +17 -0
  106. package/src/theta-repository/options/options.ts +32 -0
  107. package/src/theta-repository/theta-repository.ts +40 -1
  108. package/src/theta-repository/theta-state.ts +1 -1
  109. package/theta-client-react-native.podspec +1 -1
@@ -12,6 +12,15 @@ let MESSAGE_NO_TIMESHIFT_CAPTURING = "no timeShiftCapturing."
12
12
  let MESSAGE_NO_VIDEO_CAPTURE = "No videoCapture."
13
13
  let MESSAGE_NO_VIDEO_CAPTURE_BUILDER = "no video capture builder."
14
14
  let MESSAGE_NO_VIDEO_CAPTURING = "no videoCapturing."
15
+ let MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURE = "No limitlessIntervalCapture."
16
+ let MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURE_BUILDER = "no limitlessIntervalCaptureBuilder."
17
+ let MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURING = "no limitlessIntervalCapturing."
18
+ let MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURE = "No shotCountSpecifiedIntervalCapture."
19
+ let MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURE_BUILDER = "no shotCountSpecifiedIntervalCaptureBuilder."
20
+ let MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURING = "no shotCountSpecifiedIntervalCapturing."
21
+ let MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURE = "No compositeIntervalCapture."
22
+ let MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURE_BUILDER = "no compositeIntervalCaptureBuilder."
23
+ let MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURING = "no compositeIntervalCapturing."
15
24
 
16
25
  @objc(ThetaClientReactNative)
17
26
  class ThetaClientReactNative: RCTEventEmitter {
@@ -25,12 +34,27 @@ class ThetaClientReactNative: RCTEventEmitter {
25
34
  var videoCaptureBuilder: VideoCapture.Builder?
26
35
  var videoCapture: VideoCapture?
27
36
  var videoCapturing: VideoCapturing?
37
+ var limitlessIntervalCaptureBuilder: LimitlessIntervalCapture.Builder?
38
+ var limitlessIntervalCapture: LimitlessIntervalCapture?
39
+ var limitlessIntervalCapturing: LimitlessIntervalCapturing?
40
+ var shotCountSpecifiedIntervalCaptureBuilder: ShotCountSpecifiedIntervalCapture.Builder?
41
+ var shotCountSpecifiedIntervalCapture: ShotCountSpecifiedIntervalCapture?
42
+ var shotCountSpecifiedIntervalCapturing: ShotCountSpecifiedIntervalCapturing?
43
+ var compositeIntervalCaptureBuilder: CompositeIntervalCapture.Builder?
44
+ var compositeIntervalCapture: CompositeIntervalCapture?
45
+ var compositeIntervalCapturing: CompositeIntervalCapturing?
28
46
 
29
47
  static let EVENT_FRAME = "ThetaFrameEvent"
30
48
  static let EVENT_NOTIFY = "ThetaNotify"
31
49
 
32
50
  static let NOTIFY_TIMESHIFT_PROGRESS = "TIME-SHIFT-PROGRESS"
51
+ static let NOTIFY_TIMESHIFT_STOP_ERROR = "TIME-SHIFT-STOP-ERROR"
52
+ static let NOTIFY_SHOT_COUNT_SPECIFIED_INTERVAL_PROGRESS = "SHOT-COUNT-SPECIFIED-INTERVAL-PROGRESS"
53
+ static let NOTIFY_SHOT_COUNT_SPECIFIED_INTERVAL_STOP_ERROR = "SHOT-COUNT-SPECIFIED-INTERVAL-STOP-ERROR"
33
54
  static let NOTIFY_VIDEO_CAPTURE_STOP_ERROR = "VIDEO-CAPTURE-STOP-ERROR"
55
+ static let NOTIFY_LIMITLESS_INTERVAL_CAPTURE_STOP_ERROR = "LIMITLESS-INTERVAL-CAPTURE-STOP-ERROR"
56
+ static let NOTIFY_COMPOSITE_INTERVAL_PROGRESS = "COMPOSITE-INTERVAL-PROGRESS"
57
+ static let NOTIFY_COMPOSITE_INTERVAL_STOP_ERROR = "COMPOSITE-INTERVAL-STOP-ERROR"
34
58
 
35
59
  @objc
36
60
  override func supportedEvents() -> [String]! {
@@ -66,6 +90,15 @@ class ThetaClientReactNative: RCTEventEmitter {
66
90
  videoCaptureBuilder = nil
67
91
  videoCapture = nil
68
92
  videoCapturing = nil
93
+ limitlessIntervalCaptureBuilder = nil
94
+ limitlessIntervalCapture = nil
95
+ limitlessIntervalCapturing = nil
96
+ shotCountSpecifiedIntervalCaptureBuilder = nil
97
+ shotCountSpecifiedIntervalCapture = nil
98
+ shotCountSpecifiedIntervalCapturing = nil
99
+ compositeIntervalCaptureBuilder = nil
100
+ compositeIntervalCapture = nil
101
+ compositeIntervalCapturing = nil
69
102
  previewing = false
70
103
 
71
104
  Task {
@@ -471,7 +504,7 @@ class ThetaClientReactNative: RCTEventEmitter {
471
504
  self.callback = callback
472
505
  }
473
506
 
474
- func onSuccess(fileUrl: String) {
507
+ func onSuccess(fileUrl: String?) {
475
508
  callback(fileUrl, nil)
476
509
  }
477
510
 
@@ -563,10 +596,21 @@ class ThetaClientReactNative: RCTEventEmitter {
563
596
  self.client = client
564
597
  }
565
598
 
566
- func onError(exception: ThetaRepository.ThetaRepositoryException) {
599
+ func onCaptureFailed(exception: ThetaRepository.ThetaRepositoryException) {
567
600
  callback(nil, exception.asError())
568
601
  }
569
602
 
603
+ func onStopFailed(exception: ThetaRepository.ThetaRepositoryException) {
604
+ let error = exception.asError()
605
+ client?.sendEvent(
606
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
607
+ body: toNotify(
608
+ name: ThetaClientReactNative.NOTIFY_TIMESHIFT_STOP_ERROR,
609
+ params: toMessageNotifyParam(value: error.localizedDescription)
610
+ )
611
+ )
612
+ }
613
+
570
614
  func onProgress(completion: Float) {
571
615
  client?.sendEvent(
572
616
  withName: ThetaClientReactNative.EVENT_NOTIFY,
@@ -577,7 +621,7 @@ class ThetaClientReactNative: RCTEventEmitter {
577
621
  )
578
622
  }
579
623
 
580
- func onSuccess(fileUrl_ fileUrl: String?) {
624
+ func onCaptureCompleted(fileUrl: String?) {
581
625
  callback(fileUrl, nil)
582
626
  }
583
627
  }
@@ -730,6 +774,386 @@ class ThetaClientReactNative: RCTEventEmitter {
730
774
  resolve(nil)
731
775
  }
732
776
 
777
+ @objc(getLimitlessIntervalCaptureBuilder:withRejecter:)
778
+ func getLimitlessIntervalCaptureBuilder(
779
+ resolve: RCTPromiseResolveBlock,
780
+ reject: RCTPromiseRejectBlock
781
+ ) {
782
+ guard let thetaRepository else {
783
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
784
+ return
785
+ }
786
+ print("getLimitlessIntervalCaptureBuilder")
787
+ limitlessIntervalCaptureBuilder = thetaRepository.getLimitlessIntervalCaptureBuilder()
788
+ resolve(nil)
789
+ }
790
+
791
+ @objc(buildLimitlessIntervalCapture:withResolver:withRejecter:)
792
+ func buildLimitlessIntervalCapture(
793
+ options: [AnyHashable: Any]?,
794
+ resolve: @escaping RCTPromiseResolveBlock,
795
+ reject: @escaping RCTPromiseRejectBlock
796
+ ) {
797
+ guard let _ = thetaRepository else {
798
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
799
+ return
800
+ }
801
+ guard let limitlessIntervalCaptureBuilder else {
802
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURE_BUILDER, nil)
803
+ return
804
+ }
805
+
806
+ if let options = options as? [String: Any] {
807
+ setCaptureBuilderParams(params: options, builder: limitlessIntervalCaptureBuilder)
808
+ setLimitlessIntervalCaptureBuilderParams(params: options, builder: limitlessIntervalCaptureBuilder)
809
+ }
810
+ limitlessIntervalCaptureBuilder.build { capture, error in
811
+ if let error {
812
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
813
+ } else if let capture {
814
+ self.limitlessIntervalCapture = capture
815
+ self.limitlessIntervalCaptureBuilder = nil
816
+ resolve(true)
817
+ } else {
818
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURE, nil)
819
+ }
820
+ }
821
+ }
822
+
823
+ @objc(startLimitlessIntervalCapture:withRejecter:)
824
+ func startLimitlessIntervalCapture(
825
+ resolve: @escaping RCTPromiseResolveBlock,
826
+ reject: @escaping RCTPromiseRejectBlock
827
+ ) {
828
+ guard let _ = thetaRepository else {
829
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
830
+ return
831
+ }
832
+ guard let limitlessIntervalCapture else {
833
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURE, nil)
834
+ return
835
+ }
836
+ class Callback: LimitlessIntervalCaptureStartCaptureCallback {
837
+ let callback: (_ urls: [String]?, _ error: Error?) -> Void
838
+ weak var client: ThetaClientReactNative?
839
+ init(
840
+ _ callback: @escaping (_ urls: [String]?, _ error: Error?) -> Void,
841
+ client: ThetaClientReactNative
842
+ ) {
843
+ self.callback = callback
844
+ self.client = client
845
+ }
846
+
847
+ func onCaptureCompleted(fileUrls: [String]?) {
848
+ callback(fileUrls, nil)
849
+ }
850
+
851
+ func onCaptureFailed(exception: ThetaRepository.ThetaRepositoryException) {
852
+ callback(nil, exception.asError())
853
+ }
854
+
855
+ func onStopFailed(exception: ThetaRepository.ThetaRepositoryException) {
856
+ let error = exception.asError()
857
+ client?.sendEvent(
858
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
859
+ body: toNotify(
860
+ name: ThetaClientReactNative.NOTIFY_LIMITLESS_INTERVAL_CAPTURE_STOP_ERROR,
861
+ params: toMessageNotifyParam(value: error.localizedDescription)
862
+ )
863
+ )
864
+ }
865
+ }
866
+
867
+ limitlessIntervalCapturing = limitlessIntervalCapture.startCapture(
868
+ callback: Callback(
869
+ { urls, error in
870
+ if let error {
871
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
872
+ } else {
873
+ self.limitlessIntervalCapture = nil
874
+ resolve(urls)
875
+ }
876
+ }, client: self
877
+ ))
878
+ }
879
+
880
+ @objc(stopLimitlessIntervalCapture:withRejecter:)
881
+ func stopLimitlessIntervalCapture(
882
+ resolve: RCTPromiseResolveBlock,
883
+ reject: RCTPromiseRejectBlock
884
+ ) {
885
+ guard let _ = thetaRepository else {
886
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
887
+ return
888
+ }
889
+ guard let limitlessIntervalCapturing else {
890
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_LIMITLESS_INTERVAL_CAPTURING, nil)
891
+ return
892
+ }
893
+ limitlessIntervalCapturing.stopCapture()
894
+ resolve(nil)
895
+ }
896
+
897
+ @objc(getShotCountSpecifiedIntervalCaptureBuilder:withResolver:withRejecter:)
898
+ func getShotCountSpecifiedIntervalCaptureBuilder(
899
+ shotCount: Int,
900
+ resolve: RCTPromiseResolveBlock,
901
+ reject: RCTPromiseRejectBlock
902
+ ) {
903
+ guard let thetaRepository else {
904
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
905
+ return
906
+ }
907
+ shotCountSpecifiedIntervalCaptureBuilder = thetaRepository.getShotCountSpecifiedIntervalCaptureBuilder(shotCount: Int32(shotCount))
908
+ resolve(nil)
909
+ }
910
+
911
+ @objc(buildShotCountSpecifiedIntervalCapture:withResolver:withRejecter:)
912
+ func buildShotCountSpecifiedIntervalCapture(
913
+ options: [AnyHashable: Any]?,
914
+ resolve: @escaping RCTPromiseResolveBlock,
915
+ reject: @escaping RCTPromiseRejectBlock
916
+ ) {
917
+ guard let _ = thetaRepository else {
918
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
919
+ return
920
+ }
921
+ guard let shotCountSpecifiedIntervalCaptureBuilder else {
922
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURE_BUILDER, nil)
923
+ return
924
+ }
925
+
926
+ if let options = options as? [String: Any] {
927
+ setCaptureBuilderParams(params: options, builder: shotCountSpecifiedIntervalCaptureBuilder)
928
+ setShotCountSpecifiedIntervalCaptureBuilderParams(params: options, builder: shotCountSpecifiedIntervalCaptureBuilder)
929
+ }
930
+ shotCountSpecifiedIntervalCaptureBuilder.build { capture, error in
931
+ if let error {
932
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
933
+ } else if let capture {
934
+ self.shotCountSpecifiedIntervalCapture = capture
935
+ self.shotCountSpecifiedIntervalCaptureBuilder = nil
936
+ resolve(true)
937
+ } else {
938
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURE, nil)
939
+ }
940
+ }
941
+ }
942
+
943
+ @objc(startShotCountSpecifiedIntervalCapture:withRejecter:)
944
+ func startShotCountSpecifiedIntervalCapture(
945
+ resolve: @escaping RCTPromiseResolveBlock,
946
+ reject: @escaping RCTPromiseRejectBlock
947
+ ) {
948
+ guard let _ = thetaRepository else {
949
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
950
+ return
951
+ }
952
+ guard let shotCountSpecifiedIntervalCapture else {
953
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURE, nil)
954
+ return
955
+ }
956
+
957
+ class Callback: ShotCountSpecifiedIntervalCaptureStartCaptureCallback {
958
+ let callback: (_ urls: [String]?, _ error: Error?) -> Void
959
+ weak var client: ThetaClientReactNative?
960
+ init(
961
+ _ callback: @escaping (_ urls: [String]?, _ error: Error?) -> Void,
962
+ client: ThetaClientReactNative
963
+ ) {
964
+ self.callback = callback
965
+ self.client = client
966
+ }
967
+
968
+ func onCaptureFailed(exception: ThetaRepository.ThetaRepositoryException) {
969
+ callback(nil, exception.asError())
970
+ }
971
+
972
+ func onProgress(completion: Float) {
973
+ client?.sendEvent(
974
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
975
+ body: toNotify(
976
+ name: ThetaClientReactNative.NOTIFY_SHOT_COUNT_SPECIFIED_INTERVAL_PROGRESS,
977
+ params: toCaptureProgressNotifyParam(value: completion)
978
+ )
979
+ )
980
+ }
981
+
982
+ func onCaptureCompleted(fileUrls: [String]?) {
983
+ callback(fileUrls, nil)
984
+ }
985
+
986
+ func onStopFailed(exception: ThetaRepository.ThetaRepositoryException) {
987
+ let error = exception.asError()
988
+ client?.sendEvent(
989
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
990
+ body: toNotify(
991
+ name: ThetaClientReactNative.NOTIFY_SHOT_COUNT_SPECIFIED_INTERVAL_STOP_ERROR,
992
+ params: toMessageNotifyParam(value: error.localizedDescription)
993
+ )
994
+ )
995
+ }
996
+ }
997
+
998
+ shotCountSpecifiedIntervalCapturing = shotCountSpecifiedIntervalCapture.startCapture(
999
+ callback: Callback(
1000
+ { url, error in
1001
+ if let error {
1002
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
1003
+ } else {
1004
+ resolve(url)
1005
+ }
1006
+ }, client: self
1007
+ ))
1008
+ }
1009
+
1010
+ @objc(cancelShotCountSpecifiedIntervalCapture:withRejecter:)
1011
+ func cancelShotCountSpecifiedIntervalCapture(
1012
+ resolve: @escaping RCTPromiseResolveBlock,
1013
+ reject: @escaping RCTPromiseRejectBlock
1014
+ ) {
1015
+ guard let _ = thetaRepository else {
1016
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
1017
+ return
1018
+ }
1019
+ guard let shotCountSpecifiedIntervalCapturing else {
1020
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_SHOT_COUNT_SPECIFIED_INTERVAL_CAPTURING, nil)
1021
+ return
1022
+ }
1023
+ shotCountSpecifiedIntervalCapturing.cancelCapture()
1024
+ resolve(nil)
1025
+ }
1026
+
1027
+ @objc(getCompositeIntervalCaptureBuilder:withResolver:withRejecter:)
1028
+ func getCompositeIntervalCaptureBuilder(
1029
+ shootingTimeSec: Int,
1030
+ resolve: RCTPromiseResolveBlock,
1031
+ reject: RCTPromiseRejectBlock
1032
+ ) {
1033
+ guard let thetaRepository else {
1034
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
1035
+ return
1036
+ }
1037
+ compositeIntervalCaptureBuilder = thetaRepository.getCompositeIntervalCaptureBuilder(shootingTimeSec: Int32(shootingTimeSec))
1038
+ resolve(nil)
1039
+ }
1040
+
1041
+ @objc(buildCompositeIntervalCapture:withResolver:withRejecter:)
1042
+ func buildCompositeIntervalCapture(
1043
+ options: [AnyHashable: Any]?,
1044
+ resolve: @escaping RCTPromiseResolveBlock,
1045
+ reject: @escaping RCTPromiseRejectBlock
1046
+ ) {
1047
+ guard let _ = thetaRepository else {
1048
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
1049
+ return
1050
+ }
1051
+ guard let compositeIntervalCaptureBuilder else {
1052
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURE_BUILDER, nil)
1053
+ return
1054
+ }
1055
+
1056
+ if let options = options as? [String: Any] {
1057
+ setCaptureBuilderParams(params: options, builder: compositeIntervalCaptureBuilder)
1058
+ setCompositeIntervalCaptureBuilderParams(params: options, builder: compositeIntervalCaptureBuilder)
1059
+ }
1060
+ compositeIntervalCaptureBuilder.build { capture, error in
1061
+ if let error {
1062
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
1063
+ } else if let capture {
1064
+ self.compositeIntervalCapture = capture
1065
+ self.compositeIntervalCaptureBuilder = nil
1066
+ resolve(true)
1067
+ } else {
1068
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURE, nil)
1069
+ }
1070
+ }
1071
+ }
1072
+
1073
+ @objc(startCompositeIntervalCapture:withRejecter:)
1074
+ func startCompositeIntervalCapture(
1075
+ resolve: @escaping RCTPromiseResolveBlock,
1076
+ reject: @escaping RCTPromiseRejectBlock
1077
+ ) {
1078
+ guard let _ = thetaRepository else {
1079
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
1080
+ return
1081
+ }
1082
+ guard let compositeIntervalCapture else {
1083
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURE, nil)
1084
+ return
1085
+ }
1086
+
1087
+ class Callback: CompositeIntervalCaptureStartCaptureCallback {
1088
+ let callback: (_ urls: [String]?, _ error: Error?) -> Void
1089
+ weak var client: ThetaClientReactNative?
1090
+ init(
1091
+ _ callback: @escaping (_ urls: [String]?, _ error: Error?) -> Void,
1092
+ client: ThetaClientReactNative
1093
+ ) {
1094
+ self.callback = callback
1095
+ self.client = client
1096
+ }
1097
+
1098
+ func onCaptureFailed(exception: ThetaRepository.ThetaRepositoryException) {
1099
+ callback(nil, exception.asError())
1100
+ }
1101
+
1102
+ func onProgress(completion: Float) {
1103
+ client?.sendEvent(
1104
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
1105
+ body: toNotify(
1106
+ name: ThetaClientReactNative.NOTIFY_COMPOSITE_INTERVAL_PROGRESS,
1107
+ params: toCaptureProgressNotifyParam(value: completion)
1108
+ )
1109
+ )
1110
+ }
1111
+
1112
+ func onCaptureCompleted(fileUrls: [String]?) {
1113
+ callback(fileUrls, nil)
1114
+ }
1115
+
1116
+ func onStopFailed(exception: ThetaRepository.ThetaRepositoryException) {
1117
+ let error = exception.asError()
1118
+ client?.sendEvent(
1119
+ withName: ThetaClientReactNative.EVENT_NOTIFY,
1120
+ body: toNotify(
1121
+ name: ThetaClientReactNative.NOTIFY_COMPOSITE_INTERVAL_STOP_ERROR,
1122
+ params: toMessageNotifyParam(value: error.localizedDescription)
1123
+ )
1124
+ )
1125
+ }
1126
+ }
1127
+
1128
+ compositeIntervalCapturing = compositeIntervalCapture.startCapture(
1129
+ callback: Callback(
1130
+ { url, error in
1131
+ if let error {
1132
+ reject(ERROR_CODE_ERROR, error.localizedDescription, error)
1133
+ } else {
1134
+ resolve(url)
1135
+ }
1136
+ }, client: self
1137
+ ))
1138
+ }
1139
+
1140
+ @objc(cancelCompositeIntervalCapture:withRejecter:)
1141
+ func cancelCompositeIntervalCapture(
1142
+ resolve: @escaping RCTPromiseResolveBlock,
1143
+ reject: @escaping RCTPromiseRejectBlock
1144
+ ) {
1145
+ guard let _ = thetaRepository else {
1146
+ reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
1147
+ return
1148
+ }
1149
+ guard let compositeIntervalCapturing else {
1150
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_COMPOSITE_INTERVAL_CAPTURING, nil)
1151
+ return
1152
+ }
1153
+ compositeIntervalCapturing.cancelCapture()
1154
+ resolve(nil)
1155
+ }
1156
+
733
1157
  @objc(getMetadata:withResolver:withRejecter:)
734
1158
  func getMetadata(
735
1159
  fileUrl: String,
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CompositeIntervalCaptureBuilder = exports.CompositeIntervalCapture = void 0;
7
+ var _capture = require("./capture");
8
+ var _reactNative = require("react-native");
9
+ var _notifyController = require("../theta-repository/notify-controller");
10
+ const ThetaClientReactNative = _reactNative.NativeModules.ThetaClientReactNative;
11
+ const NOTIFY_PROGRESS = 'COMPOSITE-INTERVAL-PROGRESS';
12
+ const NOTIFY_STOP_ERROR = 'COMPOSITE-INTERVAL-STOP-ERROR';
13
+ /**
14
+ * CompositeIntervalCapture class
15
+ */
16
+ class CompositeIntervalCapture {
17
+ constructor(notify) {
18
+ this.notify = notify;
19
+ }
20
+ /**
21
+ * start interval composite shooting
22
+ * @param onProgress the block for interval composite shooting onProgress
23
+ * @return promise of captured file url
24
+ */
25
+ async startCapture(onProgress, onStopFailed) {
26
+ if (onProgress) {
27
+ this.notify.addNotify(NOTIFY_PROGRESS, event => {
28
+ var _event$params;
29
+ onProgress((_event$params = event.params) === null || _event$params === void 0 ? void 0 : _event$params.completion);
30
+ });
31
+ }
32
+ if (onStopFailed) {
33
+ this.notify.addNotify(NOTIFY_STOP_ERROR, event => {
34
+ onStopFailed(event.params);
35
+ });
36
+ }
37
+ return new Promise(async (resolve, reject) => {
38
+ await ThetaClientReactNative.startCompositeIntervalCapture().then(result => {
39
+ resolve(result ?? undefined);
40
+ }).catch(error => {
41
+ reject(error);
42
+ }).finally(() => {
43
+ this.notify.removeNotify(NOTIFY_PROGRESS);
44
+ this.notify.removeNotify(NOTIFY_STOP_ERROR);
45
+ });
46
+ });
47
+ }
48
+
49
+ /**
50
+ * cancel interval composite shooting
51
+ */
52
+ async cancelCapture() {
53
+ return await ThetaClientReactNative.cancelCompositeIntervalCapture();
54
+ }
55
+ }
56
+
57
+ /**
58
+ * CompositeIntervalCaptureBuilder class
59
+ */
60
+ exports.CompositeIntervalCapture = CompositeIntervalCapture;
61
+ class CompositeIntervalCaptureBuilder extends _capture.CaptureBuilder {
62
+ /** construct CompositeIntervalCaptureBuilder instance */
63
+ constructor(shootingTimeSec) {
64
+ super();
65
+ this.interval = undefined;
66
+ this.shootingTimeSec = shootingTimeSec;
67
+ }
68
+
69
+ /**
70
+ * set interval of checking interval composite shooting status command
71
+ * @param timeMillis interval
72
+ * @returns CompositeIntervalCaptureBuilder
73
+ */
74
+ setCheckStatusCommandInterval(timeMillis) {
75
+ this.interval = timeMillis;
76
+ return this;
77
+ }
78
+
79
+ /**
80
+ * Set In-progress save interval for interval composite shooting (sec).
81
+ * @param {interval} sec sec.
82
+ * @return CompositeIntervalCaptureBuilder
83
+ */
84
+ setCompositeShootingOutputInterval(sec) {
85
+ this.options.compositeShootingOutputInterval = sec;
86
+ return this;
87
+ }
88
+
89
+ /**
90
+ * Builds an instance of a CompositeIntervalCapture that has all the combined
91
+ * parameters of the Options that have been added to the Builder.
92
+ * @return promise of CompositeIntervalCapture instance
93
+ */
94
+ build() {
95
+ let params = {
96
+ ...this.options,
97
+ // Cannot pass negative values in IOS, use objects
98
+ _capture_interval: this.interval ?? -1
99
+ };
100
+ return new Promise(async (resolve, reject) => {
101
+ try {
102
+ await ThetaClientReactNative.getCompositeIntervalCaptureBuilder(this.shootingTimeSec);
103
+ await ThetaClientReactNative.buildCompositeIntervalCapture(params);
104
+ resolve(new CompositeIntervalCapture(_notifyController.NotifyController.instance));
105
+ } catch (error) {
106
+ reject(error);
107
+ }
108
+ });
109
+ }
110
+ }
111
+ exports.CompositeIntervalCaptureBuilder = CompositeIntervalCaptureBuilder;
112
+ //# sourceMappingURL=composite-interval-capture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_capture","require","_reactNative","_notifyController","ThetaClientReactNative","NativeModules","NOTIFY_PROGRESS","NOTIFY_STOP_ERROR","CompositeIntervalCapture","constructor","notify","startCapture","onProgress","onStopFailed","addNotify","event","_event$params","params","completion","Promise","resolve","reject","startCompositeIntervalCapture","then","result","undefined","catch","error","finally","removeNotify","cancelCapture","cancelCompositeIntervalCapture","exports","CompositeIntervalCaptureBuilder","CaptureBuilder","shootingTimeSec","interval","setCheckStatusCommandInterval","timeMillis","setCompositeShootingOutputInterval","sec","options","compositeShootingOutputInterval","build","_capture_interval","getCompositeIntervalCaptureBuilder","buildCompositeIntervalCapture","NotifyController","instance"],"sourceRoot":"../../../src","sources":["capture/composite-interval-capture.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,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 @@ Object.keys(_timeShiftCapture).forEach(function (key) {
47
47
  }
48
48
  });
49
49
  });
50
+ var _limitlessIntervalCapture = require("./limitless-interval-capture");
51
+ Object.keys(_limitlessIntervalCapture).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _limitlessIntervalCapture[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _limitlessIntervalCapture[key];
58
+ }
59
+ });
60
+ });
61
+ var _shotCountSpecifiedIntervalCapture = require("./shot-count-specified-interval-capture");
62
+ Object.keys(_shotCountSpecifiedIntervalCapture).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _shotCountSpecifiedIntervalCapture[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _shotCountSpecifiedIntervalCapture[key];
69
+ }
70
+ });
71
+ });
72
+ var _compositeIntervalCapture = require("./composite-interval-capture");
73
+ Object.keys(_compositeIntervalCapture).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _compositeIntervalCapture[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _compositeIntervalCapture[key];
80
+ }
81
+ });
82
+ });
50
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_capture","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_photoCapture","_videoCapture","_timeShiftCapture"],"sourceRoot":"../../../src","sources":["capture/index.ts"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,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":["_capture","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_photoCapture","_videoCapture","_timeShiftCapture","_limitlessIntervalCapture","_shotCountSpecifiedIntervalCapture","_compositeIntervalCapture"],"sourceRoot":"../../../src","sources":["capture/index.ts"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,aAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,aAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,aAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,aAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,aAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,aAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,aAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,aAAA,CAAAN,GAA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