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
dc6b6967
Commit
dc6b6967
authored
May 27, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
サーバにエンコードした動画を送信したら削除する処理実装
parent
eb84ed53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+9
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/VideoEncoder.java
+0
-3
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
dc6b6967
...
...
@@ -124,7 +124,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
private
final
String
TAG
=
"ChatWebViewActivity"
;
private
final
String
NETWORK_ERROR_PLACE_HOLDER
=
"file:///android_asset/chat/public_new/chat.html"
;
//private final String NETWORK_ERROR_PLACE_HOLDER = "file:///android_asset/chat/public/networkError.html";
private
final
String
CHAT_PAGE_URL
=
"file:///android_asset/chat/public_new/chat.html"
;
private
final
String
CHAT_ROOM_PAGE_URL
=
"file:///android_asset/chat/public_new/chat_room.html"
;
private
final
String
COLLABORATION_PAGE_URL
=
"file:///android_asset/chat/public_new/collaboration.html"
;
...
...
@@ -545,7 +544,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
File
file
=
new
File
(
filePath
);
NetworkTask
networkTask
=
new
NetworkTask
(
url
,
filePath
);
networkTask
.
execute
();
}
else
if
(
url
.
contains
(
"/file/getImage"
))
{
}
else
if
(
url
.
contains
(
"/file/getImage"
)
&&
!
url
.
contains
(
".mp4"
)
)
{
Uri
uri
=
Uri
.
parse
(
url
);
String
fileName
=
uri
.
getQueryParameter
(
"fileName"
);
String
filePath
=
getFilesDir
().
getAbsolutePath
()
+
"/"
+
fileName
;
...
...
@@ -791,7 +790,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
if
(
mUploadMessage
==
null
)
{
return
;
}
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -806,8 +804,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
final
String
filePath
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
"_data"
));
cursor
.
close
();
Runnable
r
=
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -1581,6 +1577,14 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
public
int
getAndroidVersion
()
{
return
Build
.
VERSION
.
SDK_INT
;
}
@JavascriptInterface
public
void
removeEncodedVideo
(
String
filePath
)
{
File
encodedVideo
=
new
File
(
filePath
);
if
(
encodedVideo
.
exists
())
{
encodedVideo
.
delete
();
}
}
}
/**
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/VideoEncoder.java
View file @
dc6b6967
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
helper
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.media.MediaCodec
;
import
android.media.MediaCodecInfo
;
...
...
@@ -11,7 +9,6 @@ import android.media.MediaExtractor;
import
android.media.MediaFormat
;
import
android.media.MediaMetadataRetriever
;
import
android.media.MediaMuxer
;
import
android.util.Log
;
import
android.view.Surface
;
import
java.io.File
;
...
...
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