Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
fe60a519
Commit
fe60a519
authored
Jun 22, 2020
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撮影したあと、Wi-Fi機能をOFFにした場合、ダイアログが2個表示される問題対応
parent
0e1c9ffd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
ABVJE_UI_Android/src/com/theta/view/MJpegView.java
+8
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/theta/ThetaActivity.java
+7
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/theta/ThetaCameraActivity.java
+17
-7
No files found.
ABVJE_UI_Android/src/com/theta/view/MJpegView.java
View file @
fe60a519
...
...
@@ -111,6 +111,14 @@ public class MJpegView extends SurfaceView implements SurfaceHolder.Callback {
play
();
}
/**
* Get source stream for receiving motion JPEG
* @return Source stream
*/
public
MJpegInputStream
getSource
()
{
return
mMJpegInputStream
;
}
@Override
public
void
surfaceCreated
(
SurfaceHolder
holder
)
{
existSurface
=
true
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/theta/ThetaActivity.java
View file @
fe60a519
...
...
@@ -49,6 +49,8 @@ public class ThetaActivity extends ABVUIActivity {
if
(
mWifiScanType
==
Constant
.
WifiScanType
.
CloseCameraActivity
)
{
//THETAカメラのWi-Fi機能を無効にするAPI送信
new
FinishWlanTask
((
ThetaCameraActivity
)
ActivityHandlingHelper
.
getInstance
().
getCurrentActivity
()).
execute
();
}
else
if
(
mWifiScanType
==
Constant
.
WifiScanType
.
ThetaConnectError
)
{
thetaCameraWifiConnected
();
}
}
else
{
Logger
.
d
(
TAG
,
"ThetaカメラWi-Fi非接続状態"
);
...
...
@@ -96,4 +98,9 @@ public class ThetaActivity extends ABVUIActivity {
mWifiManager
.
startScan
();
mWifiScanType
=
Constant
.
WifiScanType
.
CloseCameraActivity
;
}
/**
* 子クラスで定義
*/
protected
void
thetaCameraWifiConnected
()
{}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/theta/ThetaCameraActivity.java
View file @
fe60a519
...
...
@@ -203,13 +203,7 @@ public class ThetaCameraActivity extends ThetaActivity {
@Override
public
void
run
()
{
mShootBtn
.
setEnabled
(
true
);
if
(
fileId
.
equals
(
ABookValues
.
FAIL
))
{
mLiveView
.
play
();
if
(
mLivePreviewTask
!=
null
)
{
mLivePreviewTask
.
cancel
(
true
);
mLivePreviewTask
=
new
ShowLiveViewTask
(
ThetaCameraActivity
.
this
);
mLivePreviewTask
.
execute
();
}
if
(!
fileId
.
equals
(
ABookValues
.
FAIL
))
{
thetaConnectError
(
R
.
string
.
msg_theta_shoot_fail
);
}
else
{
Intent
intent
=
new
Intent
();
...
...
@@ -275,4 +269,20 @@ public class ThetaCameraActivity extends ThetaActivity {
Logger
.
e
(
TAG
,
"setOptionExposureTaskFinish fail"
);
}
}
/**
* 撮影したあと、THETAカメラと通信失敗時、
* Wi-Fiが接続状態の場合、ライブ映像を再表示
*/
@Override
protected
void
thetaCameraWifiConnected
()
{
if
(
mLiveView
.
getSource
()
==
null
)
{
if
(
mLivePreviewTask
!=
null
)
{
mLivePreviewTask
.
cancel
(
true
);
mLivePreviewTask
=
new
ShowLiveViewTask
(
ThetaCameraActivity
.
this
);
mLivePreviewTask
.
execute
();
}
mLiveView
.
play
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment