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
37760b25
Commit
37760b25
authored
May 21, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android7以下のユーザにホスト権限を渡すときにアラート追加。
parent
bfa1639b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
18 deletions
+38
-18
public_new/collaboration_overlay_menu.html
+1
-1
public_new/js/chat-ui.js
+4
-6
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
+24
-6
public_new/modal_collabo_profile.html
+2
-2
No files found.
public_new/collaboration_overlay_menu.html
View file @
37760b25
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"overlay_menu h-100 d-flex justify-content-center align-items-center"
>
<div
class=
"overlay_menu h-100 d-flex justify-content-center align-items-center"
>
<div
class=
"menu_wrap"
>
<div
class=
"menu_wrap"
>
<div
class=
"menu d-flex flex-row flex-wrap"
>
<div
class=
"menu d-flex flex-row flex-wrap"
>
<div
class=
"item collaboration_contents picture_contents
video_contents document_contents board
_contents"
>
<div
class=
"item collaboration_contents picture_contents
document_contents board_contents video
_contents"
>
<a
href=
"javascript:changeCollaboration(COLLABORATION_TYPE.AUDIO);"
<a
href=
"javascript:changeCollaboration(COLLABORATION_TYPE.AUDIO);"
class=
"d-flex flex-column align-items-center"
>
class=
"d-flex flex-column align-items-center"
>
<div
class=
"img_wrap"
>
<div
class=
"img_wrap"
>
...
...
public_new/js/chat-ui.js
View file @
37760b25
...
@@ -900,7 +900,6 @@ CHAT_UI.waitForLoadingVideo = function(div, callback) {
...
@@ -900,7 +900,6 @@ CHAT_UI.waitForLoadingVideo = function(div, callback) {
CHAT_UI
.
waitForLoadingImage
=
function
(
div
,
callback
)
{
CHAT_UI
.
waitForLoadingImage
=
function
(
div
,
callback
)
{
var
imgs
=
div
.
find
(
"img"
);
var
imgs
=
div
.
find
(
"img"
);
console
.
log
(
imgs
);
var
count
=
imgs
.
length
;
var
count
=
imgs
.
length
;
if
(
count
==
0
)
if
(
count
==
0
)
callback
();
callback
();
...
@@ -908,7 +907,6 @@ CHAT_UI.waitForLoadingImage = function(div, callback) {
...
@@ -908,7 +907,6 @@ CHAT_UI.waitForLoadingImage = function(div, callback) {
imgs
.
one
(
"load"
,
function
(
e
)
{
imgs
.
one
(
"load"
,
function
(
e
)
{
// イメージが読み込まれた
// イメージが読み込まれた
loaded
++
;
loaded
++
;
console
.
log
(
'++'
);
if
(
loaded
===
count
)
{
if
(
loaded
===
count
)
{
callback
();
callback
();
}
}
...
@@ -2490,13 +2488,13 @@ CHAT_UI.joinCollaboration = function(collaborationType, meetingId = 0) {
...
@@ -2490,13 +2488,13 @@ CHAT_UI.joinCollaboration = function(collaborationType, meetingId = 0) {
}
}
CHAT_UI
.
startCollaboration
=
function
(
collaborationType
)
{
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
())
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
startCollaboration
.
postMessage
(
collaborationType
);
webkit
.
messageHandlers
.
startCollaboration
.
postMessage
(
collaborationType
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
return
;
}
android
.
startCollaboration
(
collaborationType
);
android
.
startCollaboration
(
collaborationType
);
}
}
}
}
...
...
public_new/js/language_en.js
View file @
37760b25
...
@@ -96,5 +96,6 @@ $.lang.en = {
...
@@ -96,5 +96,6 @@ $.lang.en = {
"inform_exit_host_collaboration"
:
"The host has terminated the collaboration."
,
"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)"
,
"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."
"not_support_version"
:
"did not support this device version."
,
"err_target_android_version_not_support"
:
"did not support document collaboration on this user's device version."
}
}
public_new/js/language_ja.js
View file @
37760b25
...
@@ -96,5 +96,6 @@ $.lang.ja = {
...
@@ -96,5 +96,6 @@ $.lang.ja = {
"inform_exit_host_collaboration"
:
"ホストが協業を終了しました。"
,
"inform_exit_host_collaboration"
:
"ホストが協業を終了しました。"
,
"request_capture"
:
"様がキャプチャーをリクエストしました。(確認時画面をキャプチャーし、ホストを変更します。)"
,
"request_capture"
:
"様がキャプチャーをリクエストしました。(確認時画面をキャプチャーし、ホストを変更します。)"
,
"host_change_notify"
:
"ホストが%@様に変更されました。"
,
"host_change_notify"
:
"ホストが%@様に変更されました。"
,
"not_support_version"
:
"現在の端末バージョンでは利用できません。"
"not_support_version"
:
"現在の端末バージョンでは利用できません。"
,
"err_target_android_version_not_support"
:
"対象ユーザの端末バージョンでは文書協業が利用できません。"
}
}
\ No newline at end of file
public_new/js/language_ko.js
View file @
37760b25
...
@@ -96,5 +96,6 @@ $.lang.ko = {
...
@@ -96,5 +96,6 @@ $.lang.ko = {
"inform_exit_host_collaboration"
:
"호스트가 협업을 종료하였습니다."
,
"inform_exit_host_collaboration"
:
"호스트가 협업을 종료하였습니다."
,
"request_capture"
:
"님이 화면캡처를 요청하셨습니다.(확인시 화면을캡처하고 호스트를 변경합니다.)"
,
"request_capture"
:
"님이 화면캡처를 요청하셨습니다.(확인시 화면을캡처하고 호스트를 변경합니다.)"
,
"host_change_notify"
:
"호스트가 %@님으로 변경되었습니다."
,
"host_change_notify"
:
"호스트가 %@님으로 변경되었습니다."
,
"not_support_version"
:
"현재단말버전에서는 지원되지않는기능입니다."
"not_support_version"
:
"현재단말버전에서는 지원되지않는기능입니다."
,
"err_target_android_version_not_support"
:
"해당 유저의 단말버전에서는 문서협업이 이용불가능합니다."
}
}
public_new/js/share.js
View file @
37760b25
...
@@ -118,6 +118,7 @@ $(function () {
...
@@ -118,6 +118,7 @@ $(function () {
console
.
log
(
"=============> READY : ready for coview api"
);
console
.
log
(
"=============> READY : ready for coview api"
);
Coview_addLoginId
(
globalUserInfo
.
loginId
);
Coview_addLoginId
(
globalUserInfo
.
loginId
);
coview_api
.
Login
(
globalUserInfo
.
loginId
);
coview_api
.
Login
(
globalUserInfo
.
loginId
);
initCollaborationUI
(
joinCollaborationType
)
fw
.
socket
.
on
(
'message'
,
async
function
(
data
)
{
fw
.
socket
.
on
(
'message'
,
async
function
(
data
)
{
console
.
log
(
'====> message::data: '
,
data
);
console
.
log
(
'====> message::data: '
,
data
);
if
(
data
.
type
===
"CHANGE_COLLABORATION"
)
{
if
(
data
.
type
===
"CHANGE_COLLABORATION"
)
{
...
@@ -130,18 +131,19 @@ $(function () {
...
@@ -130,18 +131,19 @@ $(function () {
}
}
if
(
data
.
payload
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
if
(
data
.
payload
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
alert
(
getLocalizedString
(
'not_support_version'
));
android
.
openCommunicationHome
();
joinCollaborationType
=
COLLABORATION_TYPE
.
CAMERA
;
}
else
{
joinCollaborationType
=
data
.
payload
.
collaborationType
;
}
}
joinMeetingId
=
data
.
payload
.
newMeetingId
;
joinMeetingId
=
data
.
payload
.
newMeetingId
;
initCollaborationUI
(
data
.
payload
.
collaborationType
);
initCollaborationUI
(
joinCollaborationType
);
joinCollaborationType
=
data
.
payload
.
collaborationType
;
joinMeetingId
=
data
.
payload
.
newMeetingId
;
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO JoinCollaborationAPI
//TODO JoinCollaborationAPI
//TODO 文書協業の場合、会議室に参加し、PIPモードに入る。
//TODO 文書協業の場合、会議室に参加し、PIPモードに入る。
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
joinChangedCollaboration
(
data
.
payload
.
c
ollaborationType
,
data
.
payload
.
newMeetingId
);
android
.
joinChangedCollaboration
(
joinC
ollaborationType
,
data
.
payload
.
newMeetingId
);
if
(
data
.
payload
.
c
ollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
joinC
ollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
android
.
joinMeetingRoom
(
data
.
payload
.
newMeetingId
);
android
.
joinMeetingRoom
(
data
.
payload
.
newMeetingId
);
}
}
}
}
...
@@ -160,6 +162,18 @@ $(function () {
...
@@ -160,6 +162,18 @@ $(function () {
if
(
confirm
(
data
.
payload
.
name
+
getLocalizedString
(
"request_capture"
)))
{
if
(
confirm
(
data
.
payload
.
name
+
getLocalizedString
(
"request_capture"
)))
{
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
}
}
}
else
if
(
data
.
type
===
"HOST_CHANGE_REQUEST"
)
{
if
(
data
.
payload
.
loginId
==
CHAT
.
globalLoginParameter
.
loginId
)
{
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_RESPONSE'
,
{
"isAndroid"
:
CHAT_UTIL
.
isAndroid
(),
"isAble"
:
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
"loginId"
:
CHAT
.
globalLoginParameter
.
loginId
});
}
}
else
if
(
data
.
type
===
"HOST_CHANGE_RESPONSE"
)
{
var
isAndroid
=
data
.
payload
.
isAndroid
;
var
isAble
=
data
.
payload
.
isAble
if
(
g_isMainMan
&&
isAndroid
&&
!
isAble
&&
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
alert
(
getLocalizedString
(
'err_target_android_version_not_support'
));
}
else
{
Coview_changeHost
(
data
.
payload
.
loginId
);
}
}
}
});
});
});
});
...
@@ -568,6 +582,10 @@ function hostSearchInterval() {
...
@@ -568,6 +582,10 @@ function hostSearchInterval() {
timeInterval
=
setInterval
(
hostSearch
,
2000
);
timeInterval
=
setInterval
(
hostSearch
,
2000
);
}
}
function
hostChangeRequest
(
loginId
)
{
fw
.
sendToMsg
(
'others'
,
'HOST_CHANGE_REQUEST'
,
{
"loginId"
:
loginId
});
}
function
captureAndShareImage
(
urls
,
changeHostName
)
{
function
captureAndShareImage
(
urls
,
changeHostName
)
{
addCaptureEffect
();
addCaptureEffect
();
$
(
this
).
removeClass
(
"on"
);
$
(
this
).
removeClass
(
"on"
);
...
...
public_new/modal_collabo_profile.html
View file @
37760b25
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</button>
</button>
{{/isFavorite}}
{{/isFavorite}}
{{#isHost}}
{{#isHost}}
<button
type=
"button"
class=
"ch_host_btn border-0 bg_green text_white"
onclick=
"
Coview_changeHo
st('{{loginId}}');"
>
<button
type=
"button"
class=
"ch_host_btn border-0 bg_green text_white"
onclick=
"
hostChangeReque
st('{{loginId}}');"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"img_wrap"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_change_host.png"
alt=
"ホスト変更"
>
<img
src=
"icon/icon_change_host.png"
alt=
"ホスト変更"
>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</button>
</button>
{{/isHost}}
{{/isHost}}
{{^isHost}}
{{^isHost}}
<button
type=
"button"
class=
"ch_host_btn border-0 bg_grey text_white"
onclick=
"
Coview_changeHo
st('{{loginId}}');"
disabled
>
<button
type=
"button"
class=
"ch_host_btn border-0 bg_grey text_white"
onclick=
"
hostChangeReque
st('{{loginId}}');"
disabled
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"img_wrap"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_change_host.png"
alt=
"ホスト変更"
>
<img
src=
"icon/icon_change_host.png"
alt=
"ホスト変更"
>
...
...
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