• R/O
  • HTTP
  • SSH
  • HTTPS

A01c: Commit

OPC(Olympus Air)用撮影アプリ。


Commit MetaInfo

Révision8d2417f9da4a156b525a4d4e82bf58b98ab9fff5 (tree)
l'heure2021-01-11 23:14:33
AuteurMRSa <mrsa@myad...>
CommiterMRSa

Message de Log

THETA S/SCでは、Video撮影モード時にライブビューができないのに対応。

Change Summary

Modification

--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/ThetaCameraController.kt
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/ThetaCameraController.kt
@@ -26,7 +26,6 @@ import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaDummyOperation
2626 import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaMovieRecordingControl
2727 import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaOptionUpdateControl
2828 import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaSingleShotControl
29-import java.util.*
3029
3130 class ThetaCameraController(val context: AppCompatActivity, private val focusFrameDisplay: IAutoFocusFrameDisplay, private val showInformation: IShowInformation, private val receiver: ICameraStatusReceiver, private val preferences: PreferenceAccessWrapper) : ICameraController, IIndicatorControl
3231 {
@@ -105,6 +104,8 @@ class ThetaCameraController(val context: AppCompatActivity, private val focusFra
105104 try
106105 {
107106 optionSet.setOptions("\"captureMode\" : \"image\"", apiV21)
107+ waitMs(200);
108+ startLiveView()
108109 }
109110 catch (e : Exception)
110111 {
@@ -123,6 +124,10 @@ class ThetaCameraController(val context: AppCompatActivity, private val focusFra
123124 else
124125 {
125126 optionSet.setOptions("\"captureMode\" : \"_video\"", apiV21)
127+
128+ // API Level 1 の対応機種では、Videoモードでライブビューが動かないので止める
129+ waitMs(200);
130+ stopLiveView()
126131 }
127132 }
128133 catch (e : Exception)
--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/operation/ThetaMovieRecordingControl.kt
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/operation/ThetaMovieRecordingControl.kt
@@ -57,15 +57,6 @@ class ThetaMovieRecordingControl(val context: Context, private val sessionIdProv
5757 {
5858 Log.v(TAG, " startCapture() : $result")
5959 indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Starting)
60-
61- // 画像処理が終わるまで待つ
62- //waitChangeStatus()
63-
64- // ライブビューのの再実行を指示する
65- //indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Stopping)
66- //liveViewControl.stopLiveView()
67- //waitMs(300) // ちょっと待つ...
68- //liveViewControl.startLiveView()
6960 }
7061 else
7162 {
@@ -109,9 +100,13 @@ class ThetaMovieRecordingControl(val context: Context, private val sessionIdProv
109100
110101 // ライブビューのの再実行を指示する
111102 indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Stopping)
112- liveViewControl.stopLiveView()
113- waitMs(300) // ちょっと待つ...
114- liveViewControl.startLiveView()
103+ if (useOSCv2)
104+ {
105+ // THETA V / THETA Z1 は、videoモードでライブビューができるので...
106+ liveViewControl.stopLiveView()
107+ waitMs(300) // ちょっと待つ...
108+ liveViewControl.startLiveView()
109+ }
115110 }
116111 else
117112 {
Afficher sur ancien navigateur de dépôt.