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
695e99dc
Commit
695e99dc
authored
May 20, 2021
by
Takatoshi Miura
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'communication/AABCOMM-93_ios-change-collaboration' into 'develop'
[iOS] 協業切り替え実装 See merge request
!136
parents
1a3ed19e
8c7e5a08
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
public_new/collaboration.html
+9
-1
public_new/js/chat-db.js
+8
-1
public_new/js/share.js
+6
-6
No files found.
public_new/collaboration.html
View file @
695e99dc
...
...
@@ -149,7 +149,7 @@
</footer>
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
class=
"pip_indicator none"
>
<div
class=
"pip_indicator none"
onclick=
"finishPipMode();"
>
<div
style=
"vertical-align: middle;display: table-cell;"
>
協業中
</div>
</div>
...
...
@@ -214,6 +214,13 @@
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
startPipMode
();
}
else
{
webkit
.
messageHandlers
.
startPipMode
.
postMessage
({});
}
}
function
finishPipMode
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
finishPipMode
.
postMessage
({});
}
}
...
...
@@ -224,6 +231,7 @@
IS_MOBILE
=
isMobile
;
IS_ONLINE
=
isOnline
;
if
(
CHAT_UTIL
.
isIOS
())
{
joinCollaborationType
=
CHAT_DB
.
getJoinCollaborationType
();
collaborationJoinFlg
=
CHAT_DB
.
getCollaborationJoinFlg
();
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
joinCollaborationType
=
android
.
getJoinCollaborationType
();
...
...
public_new/js/chat-db.js
View file @
695e99dc
...
...
@@ -348,7 +348,7 @@ CHAT_DB.getUserInfoList = function(shopMemberId) {
CHAT_DB
.
createContentView
=
function
()
{
// Androidは実装不要
if
(
CHAT_UTIL
.
isIOS
())
{
return
callNativeApp
(
"createContentView"
,
{}
);
return
parseInt
(
callNativeApp
(
"createContentView"
,
{})
);
}
};
...
...
@@ -358,3 +358,10 @@ CHAT_DB.getToMoveGroupId = function() {
return
callNativeApp
(
"getToMoveGroupId"
,
{});
}
};
CHAT_DB
.
getJoinCollaborationType
=
function
()
{
// Androidは実装不要
if
(
CHAT_UTIL
.
isIOS
())
{
return
parseInt
(
callNativeApp
(
"getJoinCollaborationType"
,
{}),
10
);
}
};
public_new/js/share.js
View file @
695e99dc
...
...
@@ -123,7 +123,7 @@ $(function () {
if
(
data
.
type
===
"CHANGE_COLLABORATION"
)
{
if
(
joinCollaborationType
==
collaborationType
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO 会議室退場処理
webkit
.
messageHandlers
.
exitMeetingRoom
.
postMessage
({});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
...
...
@@ -132,7 +132,7 @@ $(function () {
joinCollaborationType
=
data
.
payload
.
collaborationType
if
(
data
.
payload
.
collaborationType
==
collaborationType
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO 会議室に参加し、PIPモードに入る。
webkit
.
messageHandlers
.
joinMeetingRoom
.
postMessage
(
data
.
payload
.
newMeetingId
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
joinMeetingRoom
(
data
.
payload
.
newMeetingId
);
}
...
...
@@ -382,13 +382,13 @@ function changeCollaboration(changeCollaborationType) {
var
newMeetingId
=
0
;
if
(
joinCollaborationType
==
collaborationType
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO 会議室を退場し、PIPモードを終了する。(ホストであればルーム削除まで)
webkit
.
messageHandlers
.
exitMeetingRoom
.
postMessage
({});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
}
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO Nativeに変換するCollaborationTypeを保存。
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
changeCollaborationType
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
setJoinCollaborationType
(
changeCollaborationType
);
}
...
...
@@ -407,7 +407,7 @@ function changeCollaboration(changeCollaborationType) {
case
collaborationType
.
DOCUMENT
:
coview_api
.
ChangeCollaboration
(
'audio'
);
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO 会議室を開設し、IDを保存
newMeetingId
=
CHAT_DB
.
createContentView
();
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
newMeetingId
=
android
.
createContentView
();
console
.
log
(
'newMeetingId = '
+
newMeetingId
);
...
...
@@ -418,7 +418,7 @@ function changeCollaboration(changeCollaborationType) {
break
;
}
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO 協業変換API呼出
webkit
.
messageHandlers
.
changeCollaboration
.
postMessage
({
"changeCollaborationType"
:
changeCollaborationType
,
"meetingId"
:
newMeetingId
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
changeCollaboration
(
changeCollaborationType
,
newMeetingId
);
}
...
...
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