From 8d2417f9da4a156b525a4d4e82bf58b98ab9fff5 Mon Sep 17 00:00:00 2001 From: MRSa Date: Mon, 11 Jan 2021 23:14:33 +0900 Subject: [PATCH] =?utf8?q?THETA=20S/SC=E3=81=A7=E3=81=AF=E3=80=81Video?= =?utf8?q?=E6=92=AE=E5=BD=B1=E3=83=A2=E3=83=BC=E3=83=89=E6=99=82=E3=81=AB?= =?utf8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=93=E3=83=A5=E3=83=BC=E3=81=8C?= =?utf8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=81=AE=E3=81=AB=E5=AF=BE?= =?utf8?q?=E5=BF=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../a01c/thetacamerawrapper/ThetaCameraController.kt | 7 ++++++- .../operation/ThetaMovieRecordingControl.kt | 19 +++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/ThetaCameraController.kt b/wear/src/main/java/jp/sfjp/gokigen/a01c/thetacamerawrapper/ThetaCameraController.kt index 10fc220..af038af 100644 --- 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 import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaMovieRecordingControl import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaOptionUpdateControl import jp.sfjp.gokigen.a01c.thetacamerawrapper.operation.ThetaSingleShotControl -import java.util.* class ThetaCameraController(val context: AppCompatActivity, private val focusFrameDisplay: IAutoFocusFrameDisplay, private val showInformation: IShowInformation, private val receiver: ICameraStatusReceiver, private val preferences: PreferenceAccessWrapper) : ICameraController, IIndicatorControl { @@ -105,6 +104,8 @@ class ThetaCameraController(val context: AppCompatActivity, private val focusFra try { optionSet.setOptions("\"captureMode\" : \"image\"", apiV21) + waitMs(200); + startLiveView() } catch (e : Exception) { @@ -123,6 +124,10 @@ class ThetaCameraController(val context: AppCompatActivity, private val focusFra else { optionSet.setOptions("\"captureMode\" : \"_video\"", apiV21) + + // API Level 1 の対応機種では、Videoモードでライブビューが動かないので止める + waitMs(200); + stopLiveView() } } catch (e : Exception) diff --git 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 index 8306be0..08125ea 100644 --- 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 { Log.v(TAG, " startCapture() : $result") indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Starting) - - // 画像処理が終わるまで待つ - //waitChangeStatus() - - // ライブビューのの再実行を指示する - //indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Stopping) - //liveViewControl.stopLiveView() - //waitMs(300) // ちょっと待つ... - //liveViewControl.startLiveView() } else { @@ -109,9 +100,13 @@ class ThetaMovieRecordingControl(val context: Context, private val sessionIdProv // ライブビューのの再実行を指示する indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Stopping) - liveViewControl.stopLiveView() - waitMs(300) // ちょっと待つ... - liveViewControl.startLiveView() + if (useOSCv2) + { + // THETA V / THETA Z1 は、videoモードでライブビューができるので... + liveViewControl.stopLiveView() + waitMs(300) // ちょっと待つ... + liveViewControl.startLiveView() + } } else { -- 2.11.0