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
0e3f64a3
Commit
0e3f64a3
authored
May 24, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
協業切替、ホスト変更の時レコードが終了されるように修正
parent
697b7184
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
public_new/js/collaboration.js
+14
-6
public_new/js/share.js
+10
-0
No files found.
public_new/js/collaboration.js
View file @
0e3f64a3
function
recordStart
()
{
MainManRecord
(
'on'
);
$
(
'#recordBtn'
).
removeClass
(
'bg_gray'
);
$
(
'#recordBtn'
).
addClass
(
'bg_red'
);
}
function
recordStop
()
{
MainManRecord
(
'stop'
,
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
);
$
(
'#recordBtn'
).
addClass
(
'bg_gray'
);
$
(
'#recordBtn'
).
removeClass
(
'bg_red'
);
}
$
(
function
()
{
// メニューオーバーレイ表示
$
(
".menu_btn"
).
click
(
function
()
{
...
...
@@ -124,13 +136,9 @@ $(function () {
$
(
'#recordBtn'
).
click
(
function
()
{
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_gray'
))
{
MainManRecord
(
'on'
);
$
(
'#recordBtn'
).
removeClass
(
'bg_gray'
);
$
(
'#recordBtn'
).
addClass
(
'bg_red'
);
recordStart
();
}
else
{
MainManRecord
(
'stop'
,
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
);
$
(
'#recordBtn'
).
addClass
(
'bg_gray'
);
$
(
'#recordBtn'
).
removeClass
(
'bg_red'
);
recordStop
();
}
})
});
public_new/js/share.js
View file @
0e3f64a3
...
...
@@ -176,6 +176,10 @@ $(function () {
}
else
{
Coview_changeHost
(
data
.
payload
.
loginId
);
}
}
else
if
(
data
.
type
===
"API_SEND_OWNER_CHANGE_COMPLETE"
)
{
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
recordStop
();
}
}
});
});
...
...
@@ -383,6 +387,9 @@ function changeCollaboration(changeCollaborationType) {
android
.
setJoinCollaborationType
(
changeCollaborationType
);
}
joinCollaborationType
=
changeCollaborationType
;
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
recordStop
();
}
initCollaborationUI
(
changeCollaborationType
);
switch
(
changeCollaborationType
)
{
case
COLLABORATION_TYPE
.
AUDIO
:
...
...
@@ -482,6 +489,9 @@ function Coview_exitCollaboration(isDocument = false) {
android
.
exitMeetingRoom
();
}
}
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
recordStop
();
}
clearInterval
(
timeInterval
);
coview_api
.
LeaveRoom
();
if
(
coview_api
.
getRoomUsers
())
{
...
...
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