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
df590a7b
Commit
df590a7b
authored
Jun 06, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/43084' into 'develop'
動画協業でレコード中にキャプチャーする場合アーカイブ保存するように修正。 See merge request
!162
parents
7179d84f
e655dd62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
16 deletions
+43
-16
public_new/js/chat-websocket.js
+8
-0
public_new/js/chat.js
+4
-4
public_new/js/collaboration.js
+5
-1
public_new/js/share.js
+26
-11
No files found.
public_new/js/chat-websocket.js
View file @
df590a7b
...
@@ -3,6 +3,14 @@ var socket;
...
@@ -3,6 +3,14 @@ var socket;
// 名前空間
// 名前空間
var
CHAT_SOCKET
=
{};
var
CHAT_SOCKET
=
{};
CHAT_SOCKET
.
socketCheck
=
function
()
{
if
(
socket
==
null
||
socket
.
disconnected
)
{
window
.
location
.
reload
();
}
}
CHAT_SOCKET
.
connectSocket
=
function
()
{
CHAT_SOCKET
.
connectSocket
=
function
()
{
if
(
IS_ONLINE
==
'true'
)
{
if
(
IS_ONLINE
==
'true'
)
{
socket
=
io
(
CHAT_SERVER_URL
);
socket
=
io
(
CHAT_SERVER_URL
);
...
...
public_new/js/chat.js
View file @
df590a7b
...
@@ -382,23 +382,23 @@ $(function() {
...
@@ -382,23 +382,23 @@ $(function() {
var
afterHeight
=
window
.
innerHeight
;
var
afterHeight
=
window
.
innerHeight
;
var
afterWidth
=
window
.
innerWidth
;
var
afterWidth
=
window
.
innerWidth
;
var
moreScroll
=
beforeHeight
-
afterHeight
;
var
moreScroll
=
beforeHeight
-
afterHeight
;
if
(
beforeHeight
>
afterHeight
)
{
if
(
beforeHeight
>
afterHeight
&&
(
beforeHeight
-
afterHeight
)
>
50
)
{
if
(
beforeWidth
==
afterWidth
)
{
if
(
beforeWidth
==
afterWidth
)
{
//キーボード表示時
//キーボード表示時
$
(
'.room_container'
).
css
(
'margin-bottom'
,
0
);
$
(
'.room_container'
).
css
(
'margin-bottom'
,
0
);
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
-
$
(
'.footer_content_b'
).
height
());
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
-
$
(
'.footer_content_b'
).
height
());
}
else
{
}
else
{
//画面回転時
//画面回転時
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
window
.
scrollTo
(
0
,
beforeScroll
+
(
moreScroll
*
2
)
-
$
(
'.footer_content_b'
).
height
()
);
}
}
}
else
{
}
else
if
(
beforeHeight
<
afterHeight
)
{
$
(
'.room_container'
).
css
(
'margin-bottom'
,
footerHeight
);
$
(
'.room_container'
).
css
(
'margin-bottom'
,
footerHeight
);
if
(
beforeWidth
==
afterWidth
)
{
if
(
beforeWidth
==
afterWidth
)
{
//キーボード非表示
//キーボード非表示
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
+
$
(
'.footer_content_b'
).
height
());
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
+
$
(
'.footer_content_b'
).
height
());
}
else
{
}
else
{
//画面回転時
//画面回転時
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
window
.
scrollTo
(
0
,
beforeScroll
+
(
moreScroll
*
2
)
+
$
(
'.footer_content_b'
).
height
()
);
}
}
}
}
beforeHeight
=
window
.
innerHeight
;
beforeHeight
=
window
.
innerHeight
;
...
...
public_new/js/collaboration.js
View file @
df590a7b
...
@@ -199,7 +199,11 @@ $(function () {
...
@@ -199,7 +199,11 @@ $(function () {
})
})
$
(
'#captureBtn'
).
click
(
function
()
{
$
(
'#captureBtn'
).
click
(
function
()
{
coview_api
.
Capture
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
);
screenLock
();
recordStop
(
function
()
{
$
(
'#screenLock'
).
remove
();
coview_api
.
Capture
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
);
});
})
})
$
(
'#captureRequestBtn'
).
click
(
function
()
{
$
(
'#captureRequestBtn'
).
click
(
function
()
{
...
...
public_new/js/share.js
View file @
df590a7b
...
@@ -162,7 +162,15 @@ $(function () {
...
@@ -162,7 +162,15 @@ $(function () {
}
}
}
else
if
(
data
.
type
===
"CAPTURE_REQUEST"
&&
g_isMainMan
)
{
}
else
if
(
data
.
type
===
"CAPTURE_REQUEST"
&&
g_isMainMan
)
{
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
);
if
(
$
(
'#recordBtn'
).
hasClass
(
'bg_red'
))
{
screenLock
();
recordStop
(
function
()
{
$
(
'#screenLock'
).
remove
();
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
});
}
else
{
captureAndShareImage
(
CMS_SERVER_URL
+
'/chatapi/file/uploadArchive'
,
data
.
payload
.
name
);
}
}
}
}
else
if
(
data
.
type
===
"HOST_CHANGE_REQUEST"
)
{
}
else
if
(
data
.
type
===
"HOST_CHANGE_REQUEST"
)
{
if
(
data
.
payload
.
loginId
==
globalUserInfo
.
loginId
)
{
if
(
data
.
payload
.
loginId
==
globalUserInfo
.
loginId
)
{
...
@@ -226,7 +234,13 @@ $(function () {
...
@@ -226,7 +234,13 @@ $(function () {
});
});
coview_api
.
addEventListener
(
"allbye"
,
function
()
{
coview_api
.
addEventListener
(
"allbye"
,
function
()
{
console
.
log
(
"=============> ALL BYE : share allbye"
);
console
.
log
(
"=============> HOST BYE : share hostbye"
);
alert
(
getLocalizedString
(
"inform_exit_host_collaboration"
));
var
isDocument
=
false
;
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
isDocument
=
true
;
}
Coview_exitCollaboration
(
isDocument
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
});
});
...
@@ -237,22 +251,23 @@ $(function () {
...
@@ -237,22 +251,23 @@ $(function () {
coview_api
.
addEventListener
(
"hostbye"
,
function
()
{
coview_api
.
addEventListener
(
"hostbye"
,
function
()
{
console
.
log
(
"=============> HOST BYE : share hostbye"
);
console
.
log
(
"=============> HOST BYE : share hostbye"
);
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
alert
(
getLocalizedString
(
"inform_exit_host_collaboration"
));
alert
(
getLocalizedString
(
"inform_exit_host_collaboration"
));
Coview_exitCollaboration
();
var
isDocument
=
false
;
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
isDocument
=
true
;
}
Coview_exitCollaboration
(
isDocument
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
});
});
coview_api
.
addEventListener
(
"destroy"
,
function
()
{
coview_api
.
addEventListener
(
"destroy"
,
function
()
{
console
.
log
(
"=============> DESTROY : share destroy"
);
console
.
log
(
"=============> DESTROY : share destroy"
);
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
alert
(
getLocalizedString
(
"inform_exit_host_collaboration"
));
alert
(
getLocalizedString
(
"inform_exit_host_collaboration"
));
Coview_exitCollaboration
();
var
isDocument
=
false
;
$
(
".coview_share_area"
).
hide
();
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
isDocument
=
true
;
}
Coview_exitCollaboration
(
isDocument
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
});
});
...
...
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