Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
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
abookCommunication
chat_webview
Commits
bf51035b
Commit
bf51035b
authored
May 20, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
アンドロイド8以下バージョンでのアラート追加、キャプチャー機能修正
parent
1a3ed19e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
95 additions
and
97 deletions
+95
-97
public_new/chat_room.html
+7
-5
public_new/collaboration.html
+7
-0
public_new/collaboration_overlay_menu.html
+5
-5
public_new/collaboration_picture_overlay_menu.html
+4
-4
public_new/js/chat-ui.js
+9
-1
public_new/js/chat-util.js
+9
-9
public_new/js/constant.js
+5
-1
public_new/js/language_en.js
+2
-1
public_new/js/language_ja.js
+3
-1
public_new/js/language_ko.js
+2
-1
public_new/js/share.js
+42
-69
No files found.
public_new/chat_room.html
View file @
bf51035b
...
...
@@ -102,30 +102,30 @@
<div
class=
"footer_content_b"
>
<div
class=
"d-flex flex-row justify-content-around h-100"
>
<div
class=
"footer_item"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
collaborationType
.AUDIO);"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
COLLABORATION_TYPE
.AUDIO);"
>
<img
src=
"icon/icon_phone.png"
alt=
"通話アイコン"
>
<p>
通話
</p>
</a>
</div>
<div
class=
"footer_item"
>
<img
src=
"icon/icon_paste.png"
alt=
"文書アイコン"
onclick=
"CHAT_UI.startCollaboration(
collaborationType
.DOCUMENT);"
>
<img
src=
"icon/icon_paste.png"
alt=
"文書アイコン"
onclick=
"CHAT_UI.startCollaboration(
COLLABORATION_TYPE
.DOCUMENT);"
>
<p>
文書
</p>
</div>
<div
class=
"footer_item"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
collaborationType
.CAMERA);"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
COLLABORATION_TYPE
.CAMERA);"
>
<img
src=
"icon/icon_photo.png"
alt=
"画像アイコン"
>
<p>
画像
</p>
</a>
</div>
<div
class=
"footer_item"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
collaborationType
.VIDEO);"
>
<a
href=
"javascript:CHAT_UI.startCollaboration(
COLLABORATION_TYPE
.VIDEO);"
>
<img
src=
"icon/icon_movie.png"
alt=
"動画アイコン"
>
<p>
動画
</p>
</a>
</div>
<!--リリース後開発予定-->
<div
class=
"footer_item"
>
<img
src=
"icon/icon_whiteboard_gray.png"
alt=
"ホワイトボードアイコン"
onclick=
"javascript:CHAT_UI.startCollaboration(
collaborationType
.BOARD);"
>
<img
src=
"icon/icon_whiteboard_gray.png"
alt=
"ホワイトボードアイコン"
onclick=
"javascript:CHAT_UI.startCollaboration(
COLLABORATION_TYPE
.BOARD);"
>
<p>
ボード
</p>
</div>
</div>
...
...
@@ -174,6 +174,7 @@
let
PLATFORM
=
''
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
androidVersion
=
0
;
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
...
...
@@ -182,6 +183,7 @@
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
saveSelectedUserList
(
""
);
androidVersion
=
android
.
getAndroidVersion
();
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
...
...
public_new/collaboration.html
View file @
bf51035b
...
...
@@ -195,6 +195,7 @@
let
roomType
;
let
joinCollaborationType
=
0
;
let
joinMeetingId
=
0
;
let
androidVersion
=
0
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
...
...
@@ -228,7 +229,13 @@
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
joinCollaborationType
=
android
.
getJoinCollaborationType
();
collaborationJoinFlg
=
android
.
getCollaborationJoinFlg
();
androidVersion
=
android
.
getAndroidVersion
();
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
android
.
openCommunicationHome
();
}
}
initCollaborationUI
(
joinCollaborationType
);
globalUserInfo
.
coWorkType
=
CHAT_UTIL
.
getCoviewTypeFromCollaborationType
(
joinCollaborationType
);
if
(
collaborationJoinFlg
!=
'2'
)
{
...
...
public_new/collaboration_overlay_menu.html
View file @
bf51035b
...
...
@@ -4,7 +4,7 @@
<div
class=
"menu_wrap"
>
<div
class=
"menu d-flex flex-row flex-wrap"
>
<div
class=
"item collaboration_contents picture_contents video_contents document_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.AUDIO);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.AUDIO);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_headset.png"
alt=
"音声共有"
>
...
...
@@ -13,7 +13,7 @@
</a>
</div>
<div
class=
"item collaboration_contents picture_contents voice_contents document_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.VIDEO);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.VIDEO);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_videocam.png"
alt=
"動画共有"
>
...
...
@@ -22,7 +22,7 @@
</a>
</div>
<div
class=
"item collaboration_contents video_contents voice_contents document_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.CAMERA);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.CAMERA);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_picture.png"
alt=
"写真共有"
>
...
...
@@ -31,7 +31,7 @@
</a>
</div>
<div
class=
"item collaboration_contents video_contents voice_contents picture_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.DOCUMENT);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.DOCUMENT);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_document.png"
alt=
"文書共有"
>
...
...
@@ -40,7 +40,7 @@
</a>
</div>
<div
class=
"item collaboration_contents video_contents voice_contents picture_contents document_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.BOARD);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.BOARD);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_whiteboard.png"
alt=
"落書き"
>
...
...
public_new/collaboration_picture_overlay_menu.html
View file @
bf51035b
...
...
@@ -4,7 +4,7 @@
<div
class=
"menu_wrap"
>
<div
class=
"menu d-flex flex-row flex-wrap"
>
<div
class=
"item collaboration_contents picture_contents video_contents document_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.AUDIO);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.AUDIO);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_headset.png"
alt=
"音声共有"
>
...
...
@@ -13,7 +13,7 @@
</a>
</div>
<div
class=
"item collaboration_contents picture_contents voice_contents document_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.VIDEO);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.VIDEO);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_videocam.png"
alt=
"動画共有"
>
...
...
@@ -31,7 +31,7 @@
</a>
</div>
<div
class=
"item collaboration_contents video_contents voice_contents picture_contents board_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.DOCUMENT);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.DOCUMENT);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_document.png"
alt=
"文書共有"
>
...
...
@@ -40,7 +40,7 @@
</a>
</div>
<div
class=
"item collaboration_contents video_contents voice_contents picture_contents document_contents"
>
<a
href=
"javascript:changeCollaboration(
collaborationType
.BOARD);"
<a
href=
"javascript:changeCollaboration(
COLLABORATION_TYPE
.BOARD);"
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_collabo_whiteboard.png"
alt=
"落書き"
>
...
...
public_new/js/chat-ui.js
View file @
bf51035b
...
...
@@ -1662,7 +1662,7 @@ CHAT_UI.startVoice = function(userShopMemberId, userName) {
}
else
{
webkit
.
messageHandlers
.
createChatRoom
.
postMessage
({
"roomType"
:
"1"
,
"userIdList"
:
userIdList
.
join
(
','
),
"roomName"
:
newRoomName
,
"screenFlg"
:
makeRoomFlg
.
NAME_CARD
,
"isVoice"
:
true
});
}
CHAT_UI
.
startCollaboration
(
collaborationType
.
AUDIO
);
CHAT_UI
.
startCollaboration
(
COLLABORATION_TYPE
.
AUDIO
);
}
CHAT_UI
.
makeNameCard
=
function
(
shopMemberId
)
{
...
...
@@ -2481,11 +2481,19 @@ CHAT_UI.joinCollaboration = function(collaborationType, meetingId = 0) {
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
joinCollaboration
.
postMessage
({
"collaborationType"
:
collaborationType
,
"meetingId"
:
meetingId
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
return
;
}
android
.
joinCollaboration
(
collaborationType
,
meetingId
);
}
}
CHAT_UI
.
startCollaboration
=
function
(
collaborationType
)
{
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
return
;
}
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
startCollaboration
.
postMessage
(
collaborationType
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
...
...
public_new/js/chat-util.js
View file @
bf51035b
...
...
@@ -120,13 +120,13 @@ function updateDuration() {
CHAT_UTIL
.
getCollaborationType
=
function
(
key
)
{
switch
(
key
)
{
case
collaborationTypeKey
.
AUDIO
:
return
collaborationType
.
AUDIO
;
return
COLLABORATION_TYPE
.
AUDIO
;
case
collaborationTypeKey
.
CAMERA
:
return
collaborationType
.
CAMERA
;
return
COLLABORATION_TYPE
.
CAMERA
;
case
collaborationTypeKey
.
VIDEO
:
return
collaborationType
.
VIDEO
;
return
COLLABORATION_TYPE
.
VIDEO
;
case
collaborationTypeKey
.
DOCUMENT
:
return
collaborationType
.
DOCUMENT
;
return
COLLABORATION_TYPE
.
DOCUMENT
;
default
:
return
0
;
}
...
...
@@ -134,17 +134,17 @@ CHAT_UTIL.getCollaborationType = function(key) {
CHAT_UTIL
.
getCoviewTypeFromCollaborationType
=
function
(
joinCollaborationType
)
{
switch
(
joinCollaborationType
)
{
case
collaborationType
.
AUDIO
:
case
COLLABORATION_TYPE
.
AUDIO
:
console
.
log
(
collaborationTypeKey
.
AUDIO
);
return
collaborationTypeKey
.
AUDIO
;
case
collaborationType
.
CAMERA
:
case
COLLABORATION_TYPE
.
CAMERA
:
console
.
log
(
collaborationTypeKey
.
CAMERA
);
return
collaborationTypeKey
.
CAMERA
;
case
collaborationType
.
VIDEO
:
case
COLLABORATION_TYPE
.
VIDEO
:
return
collaborationTypeKey
.
VIDEO
;
case
collaborationType
.
DOCUMENT
:
case
COLLABORATION_TYPE
.
DOCUMENT
:
return
collaborationTypeKey
.
DOCUMENT
;
case
collaborationType
.
BOARD
:
case
COLLABORATION_TYPE
.
BOARD
:
return
collaborationTypeKey
.
BOARD
;
default
:
return
0
;
...
...
public_new/js/constant.js
View file @
bf51035b
...
...
@@ -45,7 +45,7 @@ const collaborationTypeKey = {
BOARD
:
"board"
}
const
collaborationType
=
{
const
COLLABORATION_TYPE
=
{
AUDIO
:
0
,
CAMERA
:
2
,
VIDEO
:
3
,
...
...
@@ -58,5 +58,9 @@ const makeRoomFlg = {
MAKE_ROOM
:
1
}
const
ANDROID_SDK_VERSION
=
{
O
:
26
}
const
messageSeperator
=
"<::split>"
;
const
dataMessageScheme
=
"::NOT_MESSAGE"
;
public_new/js/language_en.js
View file @
bf51035b
...
...
@@ -95,5 +95,6 @@ $.lang.en = {
"error_empty_room_name"
:
"Please input room name."
,
"inform_exit_host_collaboration"
:
"The host has terminated the collaboration."
,
"request_capture"
:
" request Screen capture.(if you confirm this request, capture the screen and change the host)"
,
"host_change_notify"
:
"host changed to %@"
"host_change_notify"
:
"host changed to %@"
,
"not_support_version"
:
"did not support this device version."
}
public_new/js/language_ja.js
View file @
bf51035b
...
...
@@ -95,5 +95,6 @@ $.lang.ja = {
"error_empty_room_name"
:
"ルーム名を入力してください。"
,
"inform_exit_host_collaboration"
:
"ホストが協業を終了しました。"
,
"request_capture"
:
"様がキャプチャーをリクエストしました。(確認時画面をキャプチャーし、ホストを変更します。)"
,
"host_change_notify"
:
"ホストが%@様に変更されました。"
"host_change_notify"
:
"ホストが%@様に変更されました。"
,
"not_support_version"
:
"現在の端末バージョンでは利用できません。"
}
\ No newline at end of file
public_new/js/language_ko.js
View file @
bf51035b
...
...
@@ -95,5 +95,6 @@ $.lang.ko = {
"error_empty_room_name"
:
"룸명을 입력해주세요."
,
"inform_exit_host_collaboration"
:
"호스트가 협업을 종료하였습니다."
,
"request_capture"
:
"님이 화면캡처를 요청하셨습니다.(확인시 화면을캡처하고 호스트를 변경합니다.)"
,
"host_change_notify"
:
"호스트가 %@님으로 변경되었습니다."
"host_change_notify"
:
"호스트가 %@님으로 변경되었습니다."
,
"not_support_version"
:
"현재단말버전에서는 지원되지않는기능입니다."
}
public_new/js/share.js
View file @
bf51035b
This diff is collapsed.
Click to expand it.
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