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
{
try
{
optionSet.setOptions("\"captureMode\" : \"image\"", apiV21)
+ waitMs(200);
+ startLiveView()
}
catch (e : Exception)
{
else
{
optionSet.setOptions("\"captureMode\" : \"_video\"", apiV21)
+
+ // API Level 1 の対応機種では、Videoモードでライブビューが動かないので止める
+ waitMs(200);
+ stopLiveView()
}
}
catch (e : Exception)
{
Log.v(TAG, " startCapture() : $result")
indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Starting)
-
- // 画像処理が終わるまで待つ
- //waitChangeStatus()
-
- // ライブビューのの再実行を指示する
- //indicator.onShootingStatusUpdate(IIndicatorControl.shootingStatus.Stopping)
- //liveViewControl.stopLiveView()
- //waitMs(300) // ちょっと待つ...
- //liveViewControl.startLiveView()
}
else
{
// ライブビューのの再実行を指示する
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
{