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
1e972aaf
Commit
1e972aaf
authored
Jul 28, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed exit collaborations
parent
207cdfab
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
34 deletions
+11
-34
public_new/collaboration.html
+0
-1
public_new/collaboration_picture.html
+0
-1
public_new/collaboration_video.html
+0
-1
public_new/collaboration_whiteboard.html
+0
-1
public_new/js/common/common.js
+0
-2
public_new/js/views/collaboration/fermi-web-socket-message-handler.js
+2
-2
public_new/js/views/collaboration/share-event-listener.js
+9
-25
public_new/js/views/collaboration/share.js
+0
-1
No files found.
public_new/collaboration.html
View file @
1e972aaf
...
@@ -48,7 +48,6 @@
...
@@ -48,7 +48,6 @@
<div
class=
"menu-bar menu-bar2"
></div>
<div
class=
"menu-bar menu-bar2"
></div>
<div
class=
"menu-bar menu-bar3"
></div>
<div
class=
"menu-bar menu-bar3"
></div>
</div>
</div>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="CoviewBridge.exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
public_new/collaboration_picture.html
View file @
1e972aaf
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn menu_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn menu_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="CoviewBridge.exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
public_new/collaboration_video.html
View file @
1e972aaf
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
<div
class=
"menu-bar menu-bar2"
></div>
<div
class=
"menu-bar menu-bar2"
></div>
<div
class=
"menu-bar menu-bar3"
></div>
<div
class=
"menu-bar menu-bar3"
></div>
</div>
</div>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="CoviewBridge.exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
public_new/collaboration_whiteboard.html
View file @
1e972aaf
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<button
type=
"button"
name=
"button"
class=
"btn menu_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn menu_btn"
></button>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="CoviewBridge.exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
public_new/js/common/common.js
View file @
1e972aaf
...
@@ -39,8 +39,6 @@ $(".home_btn").on("click", function () {
...
@@ -39,8 +39,6 @@ $(".home_btn").on("click", function () {
});
});
document
.
addEventListener
(
"DOMContentLoaded"
,
function
()
{
document
.
addEventListener
(
"DOMContentLoaded"
,
function
()
{
var
h
=
$
(
window
).
height
();
//画面の高さを取得
// ローディング表示
// ローディング表示
$
(
"footer a"
).
click
(
function
(
event
)
{
$
(
"footer a"
).
click
(
function
(
event
)
{
const
a
=
$
(
this
);
const
a
=
$
(
this
);
...
...
public_new/js/views/collaboration/fermi-web-socket-message-handler.js
View file @
1e972aaf
...
@@ -69,7 +69,7 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
...
@@ -69,7 +69,7 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
}
}
break
;
break
;
case
"API_SEND_OWNER_CHANGE_COMPLETE"
:
case
"API_SEND_OWNER_CHANGE_COMPLETE"
:
FermiWebSocketMessageHandler
.
apiSendOwnerChangeComplete
();
FermiWebSocketMessageHandler
.
apiSendOwnerChangeComplete
(
data
);
break
;
break
;
case
"API_SEND_OWNER_CHANGE_CONFIRM"
:
case
"API_SEND_OWNER_CHANGE_CONFIRM"
:
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
...
@@ -198,7 +198,7 @@ FermiWebSocketMessageHandler.pipEndRequest = function () {
...
@@ -198,7 +198,7 @@ FermiWebSocketMessageHandler.pipEndRequest = function () {
};
};
// API_SEND_OWNER_CHANGE_COMPLETE
// API_SEND_OWNER_CHANGE_COMPLETE
FermiWebSocketMessageHandler
.
apiSendOwnerChangeComplete
=
function
()
{
FermiWebSocketMessageHandler
.
apiSendOwnerChangeComplete
=
function
(
data
)
{
penOff
();
penOff
();
if
(
$
(
"#recordBtn .record"
).
hasClass
(
"disable"
))
{
if
(
$
(
"#recordBtn .record"
).
hasClass
(
"disable"
))
{
recordStop
(
function
()
{});
recordStop
(
function
()
{});
...
...
public_new/js/views/collaboration/share-event-listener.js
View file @
1e972aaf
...
@@ -121,7 +121,7 @@ CoviewBridge.bindMessageEvent = function () {
...
@@ -121,7 +121,7 @@ CoviewBridge.bindMessageEvent = function () {
if
(
json
.
resultCode
!=
200
)
{
if
(
json
.
resultCode
!=
200
)
{
break
;
break
;
}
}
CollaborationFeature
.
searchHostIntervally
();
CollaborationFeature
.
updateHost
();
// fall through
// fall through
case
"RoomMemberJoinedEvent"
:
case
"RoomMemberJoinedEvent"
:
// fall through
// fall through
...
@@ -162,8 +162,6 @@ CoviewBridge.bindMessageEvent = function () {
...
@@ -162,8 +162,6 @@ CoviewBridge.bindMessageEvent = function () {
};
};
CollaborationFeature
.
didReceiveLoginResponseMessage
=
async
function
()
{
CollaborationFeature
.
didReceiveLoginResponseMessage
=
async
function
()
{
CollaborationFeature
.
searchHostIntervally
();
const
isDocument
=
const
isDocument
=
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
;
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
;
const
isAttendee
=
const
isAttendee
=
...
@@ -187,7 +185,9 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
...
@@ -187,7 +185,9 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
case
COLLABORATION_JOIN_TYPE
.
INVITED
:
case
COLLABORATION_JOIN_TYPE
.
INVITED
:
// fall through
// fall through
case
COLLABORATION_JOIN_TYPE
.
ATTENDEE
:
case
COLLABORATION_JOIN_TYPE
.
ATTENDEE
:
// TODO:: here to update host
coview_api
.
JoinRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
coview_api
.
JoinRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
break
;
break
;
case
COLLABORATION_JOIN_TYPE
.
HOST
:
case
COLLABORATION_JOIN_TYPE
.
HOST
:
let
deleteRoomResult
=
JSON
.
parse
(
let
deleteRoomResult
=
JSON
.
parse
(
...
@@ -201,7 +201,7 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
...
@@ -201,7 +201,7 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
default
:
default
:
break
;
break
;
}
}
CollaborationFeature
.
updateHost
();
CollaborationUI
.
moveToVideoShareArea
();
CollaborationUI
.
moveToVideoShareArea
();
};
};
...
@@ -252,26 +252,18 @@ CoviewBridge.addLoginID = function (loginID) {
...
@@ -252,26 +252,18 @@ CoviewBridge.addLoginID = function (loginID) {
});
});
};
};
CollaborationFeature
.
searchHostIntervally
=
function
()
{
CollaborationFeature
.
updateHost
=
function
()
{
let
hostName
=
""
;
function
searchHost
()
{
if
(
g_isMainMan
)
{
if
(
g_isMainMan
)
{
CollaborationUI
.
showHostButtons
();
CollaborationUI
.
showHostButtons
();
}
else
{
}
else
{
CollaborationUI
.
hideHostButtons
();
CollaborationUI
.
hideHostButtons
();
}
}
CollaborationUI
.
showHostMark
(
hostName
);
CollaborationUI
.
showHostMark
(
g_isMainManUsername
);
if
(
hostName
!=
g_isMainManUsername
)
{
hostName
=
g_isMainManUsername
;
}
}
timeInterval
=
setInterval
(
searchHost
,
2000
);
};
};
CollaborationUI
.
showHostButtons
=
function
()
{
CollaborationUI
.
showHostButtons
=
function
()
{
$
(
"#collaboration_user_"
+
currentUserInfo
.
loginID
).
addClass
(
"host"
);
$
(
".host_contents"
).
removeClass
(
"none"
);
$
(
".host_contents"
).
removeClass
(
"none"
);
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
$
(
".photo_select_button"
).
removeClass
(
"none"
);
$
(
".photo_select_button"
).
removeClass
(
"none"
);
...
@@ -283,7 +275,7 @@ CollaborationUI.showHostButtons = function () {
...
@@ -283,7 +275,7 @@ CollaborationUI.showHostButtons = function () {
};
};
CollaborationUI
.
hideHostButtons
=
function
()
{
CollaborationUI
.
hideHostButtons
=
function
()
{
$
(
"#collaboration_user_"
+
currentUserInfo
.
loginID
).
removeClass
(
"host"
);
$
(
".host_contents"
).
addClass
(
"none"
);
$
(
".host_contents"
).
addClass
(
"none"
);
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
CAMERA
)
{
$
(
".photo_select_button"
).
addClass
(
"none"
);
$
(
".photo_select_button"
).
addClass
(
"none"
);
...
@@ -304,13 +296,7 @@ CollaborationUI.showHostMark = function (hostName) {
...
@@ -304,13 +296,7 @@ CollaborationUI.showHostMark = function (hostName) {
const
replacedMainManUserID
=
$
(
const
replacedMainManUserID
=
$
(
"#collaboration_user_"
+
getReplacedLoginId
(
g_isMainManUsername
)
"#collaboration_user_"
+
getReplacedLoginId
(
g_isMainManUsername
)
);
);
if
(
hostName
!=
g_isMainManUsername
)
{
if
(
hostName
!=
""
)
{
replaceHostIDDiv
.
removeClass
(
"host"
);
}
replacedMainManUserID
.
addClass
(
"host"
);
return
;
}
if
(
hostName
==
""
)
{
if
(
hostName
==
""
)
{
if
(
!
currentUserLoginIDDiv
.
hasClass
(
"host"
)
&&
coview_api
.
getRoomUsers
())
{
if
(
!
currentUserLoginIDDiv
.
hasClass
(
"host"
)
&&
coview_api
.
getRoomUsers
())
{
currentUserLoginIDDiv
.
addClass
(
"host"
);
currentUserLoginIDDiv
.
addClass
(
"host"
);
...
@@ -436,9 +422,7 @@ CoviewBridge.exitCollaboration = function () {
...
@@ -436,9 +422,7 @@ CoviewBridge.exitCollaboration = function () {
};
};
CoviewBridge
.
finishCollaboration
=
function
()
{
CoviewBridge
.
finishCollaboration
=
function
()
{
clearInterval
(
timeInterval
);
coview_api
.
LeaveRoom
();
coview_api
.
LeaveRoom
();
NativeBridgeDelegate
.
finishCollaboration
(
true
);
if
(
coview_api
.
getRoomUsers
())
{
if
(
coview_api
.
getRoomUsers
())
{
NativeBridgeDelegate
.
finishCollaboration
();
NativeBridgeDelegate
.
finishCollaboration
();
}
}
...
...
public_new/js/views/collaboration/share.js
View file @
1e972aaf
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
/* --------------------------------------------------- */
/* --------------------------------------------------- */
let
coview_api
=
new
CoviewApi
();
let
coview_api
=
new
CoviewApi
();
var
isBoard
=
false
;
var
isBoard
=
false
;
let
timeInterval
=
null
;
var
backgroundFileName
;
var
backgroundFileName
;
document
.
addEventListener
(
"DOMContentLoaded"
,
function
()
{
document
.
addEventListener
(
"DOMContentLoaded"
,
function
()
{
...
...
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