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
a8183c7d
Commit
a8183c7d
authored
May 27, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
コードレビュー対応及び動画エンコード失敗の処理追加。
parent
dc6b6967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+7
-9
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
a8183c7d
...
@@ -825,7 +825,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
...
@@ -825,7 +825,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
String
encodedPath
=
new
VideoEncoder
().
changeResolution
(
file
,
callBack
);
String
encodedPath
=
new
VideoEncoder
().
changeResolution
(
file
,
callBack
);
encodedFilePath
=
encodedPath
;
encodedFilePath
=
encodedPath
;
}
catch
(
Throwable
throwable
)
{
}
catch
(
Throwable
throwable
)
{
throwable
.
printStackTrace
(
);
mChatWebView
.
loadUrl
(
"javascript:CHAT_UI.videoEncodeFail();)"
);
}
}
}
}
};
};
...
@@ -854,14 +854,12 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
...
@@ -854,14 +854,12 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
Uri
baseUri
=
Uri
.
parse
(
"content://media/external/video/media"
);
Uri
baseUri
=
Uri
.
parse
(
"content://media/external/video/media"
);
return
Uri
.
withAppendedPath
(
baseUri
,
""
+
id
);
return
Uri
.
withAppendedPath
(
baseUri
,
""
+
id
);
}
else
{
}
else
{
if
(
file
.
exists
())
{
if
(!
file
.
exists
())
{
return
null
;
}
ContentValues
values
=
new
ContentValues
();
ContentValues
values
=
new
ContentValues
();
values
.
put
(
MediaStore
.
MediaColumns
.
DATA
,
filePath
);
values
.
put
(
MediaStore
.
MediaColumns
.
DATA
,
filePath
);
return
context
.
getContentResolver
().
insert
(
return
context
.
getContentResolver
().
insert
(
MediaStore
.
Video
.
Media
.
EXTERNAL_CONTENT_URI
,
values
);
MediaStore
.
Video
.
Media
.
EXTERNAL_CONTENT_URI
,
}
else
{
values
);
return
null
;
}
}
}
}
}
...
...
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