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
20e676f5
Commit
20e676f5
authored
Jun 15, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
アーカイブ保存ローディング表示追加及び43200,43199対応
parent
c605edae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
113 deletions
+109
-113
public_new/collaboration.html
+29
-43
public_new/css/loading.css
+1
-1
public_new/js/chat-ui-collaboration.js
+1
-0
public_new/js/share.js
+78
-69
No files found.
public_new/collaboration.html
View file @
20e676f5
...
...
@@ -15,6 +15,7 @@
<link
rel=
"stylesheet"
href=
"./css/footer.css"
>
<link
rel=
"stylesheet"
href=
"./css/font-awesome.css"
>
<link
rel=
"stylesheet"
href=
"./css/share.css"
>
<link
rel=
"stylesheet"
href=
"./css/loading.css"
>
</head>
...
...
@@ -84,74 +85,59 @@
<div
class=
"footer_menu-wrap d-flex justify-content-around h-100"
>
<div
class=
"d-flex align-items-center h-100"
>
<div
class=
"footer_menu_item photo_select_button collaboration_contents picture_contents"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_blue"
id=
"photo_open_place_holder"
>
<img
src=
"icon/icon_collabo_picture.png"
alt=
"写真"
>
</div>
</a>
<div
class=
"img_wrap bg_blue"
id=
"photo_open_place_holder"
>
<img
src=
"icon/icon_collabo_picture.png"
alt=
"写真"
>
</div>
</div>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_red"
id=
"penBtn"
>
<img
src=
"icon/icon_collabo_pen_white.png"
alt=
"ペン"
>
</div>
</a>
<div
class=
"img_wrap bg_red"
id=
"penBtn"
>
<img
src=
"icon/icon_collabo_pen_white.png"
alt=
"ペン"
>
</div>
</div>
<div
class=
"footer_menu_item none"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_blue"
>
<img
src=
"icon/icon_collabo_place_white.png"
alt=
"場所"
>
</div>
</a>
<div
class=
"img_wrap bg_blue"
>
<img
src=
"icon/icon_collabo_place_white.png"
alt=
"場所"
>
</div>
</div>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_blue"
id=
"eraserBtn"
>
<img
src=
"icon/icon_collabo_delete_white.png"
alt=
"削除"
>
</div>
</a>
<div
class=
"img_wrap bg_blue"
id=
"eraserBtn"
>
<img
src=
"icon/icon_collabo_delete_white.png"
alt=
"削除"
>
</div>
</div>
</div>
<div
class=
"d-flex align-items-center h-100 none"
>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_gray"
>
<img
src=
"icon/icon_collabo_rewind_white.png"
alt=
"戻る"
>
</div>
</a>
<div
class=
"img_wrap bg_gray"
>
<img
src=
"icon/icon_collabo_rewind_white.png"
alt=
"戻る"
>
</div>
</div>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap bg_gray"
>
<img
src=
"icon/icon_collabo_forward_white.png"
alt=
"進む"
>
</div>
</a>
<div
class=
"img_wrap bg_gray"
>
<img
src=
"icon/icon_collabo_forward_white.png"
alt=
"進む"
>
</div>
</div>
</div>
<div
class=
"d-flex align-items-center h-100 collaboration_contents video_contents_host"
>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap wide bg_blue"
id=
"captureBtn"
>
<img
src=
"icon/icon_collabo_capture.png"
alt=
"キャプチャ"
>
<span>
キャプチャ
</span>
</div>
</a>
<div
class=
"img_wrap wide bg_blue"
id=
"captureBtn"
>
<img
src=
"icon/icon_collabo_capture.png"
alt=
"キャプチャ"
>
<span>
キャプチャ
</span>
</div>
</div>
</div>
<div
class=
"d-flex align-items-center h-100 collaboration_contents video_contents_user"
>
<div
class=
"footer_menu_item"
>
<a
href=
"#"
>
<div
class=
"img_wrap wide bg_blue"
id=
"captureRequestBtn"
>
<img
src=
"icon/icon_collabo_capture.png"
alt=
"キャプチャ"
>
<span>
キャプチャリクエスト
</span>
</div>
</a>
<div
class=
"img_wrap wide bg_blue"
id=
"captureRequestBtn"
>
<img
src=
"icon/icon_collabo_capture.png"
alt=
"キャプチャ"
>
<span>
キャプチャリクエスト
</span>
</div>
</div>
</div>
</div>
</footer>
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<div
class=
"pip_indicator none"
onclick=
"finishPipMode();"
>
<div
style=
"vertical-align: middle;display: table-cell;"
>
協業中
</div>
...
...
@@ -191,7 +177,7 @@
$
(
"#collaboration_picture_overlay_menu"
).
load
(
"./collaboration_overlay_menu.html"
);
$
(
"#add_user_list"
).
load
(
"./modal_add_user_list.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
let
CHAT_SERVER_URL
=
''
;
let
CMS_SERVER_URL
=
''
;
let
ASSET_PATH
=
'./'
;
...
...
public_new/css/loading.css
View file @
20e676f5
...
...
@@ -9,7 +9,7 @@
top
:
0px
;
left
:
0px
;
background
:
rgb
(
255
,
255
,
255
,
0.5
);
z-index
:
2
;
z-index
:
99
;
}
#loader
{
display
:
none
;
...
...
public_new/js/chat-ui-collaboration.js
View file @
20e676f5
...
...
@@ -399,6 +399,7 @@ CHAT_UI.confirmInviteUserListInCollaboration = function () {
),
});
}
CHAT_UI
.
dismissLoadingIndicator
();
$
(
"#modalAddUserConfirm"
).
modal
(
"hide"
);
});
};
public_new/js/share.js
View file @
20e676f5
...
...
@@ -559,76 +559,73 @@ function Coview_moveToVideoShareArea() {
}
function
changeCollaboration
(
changeCollaborationType
)
{
var
newMeetingId
=
0
;
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
exitMeetingRoom
.
postMessage
({});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
}
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
changeCollaborationType
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
if
(
changeCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
}
android
.
setJoinCollaborationType
(
changeCollaborationType
);
}
joinCollaborationType
=
changeCollaborationType
;
if
(
$
(
"#recordBtn"
).
hasClass
(
"bg_red"
))
{
recordStop
(
function
()
{
console
.
log
(
"レコードを終了しました"
);
});
}
initCollaborationUI
(
changeCollaborationType
);
switch
(
changeCollaborationType
)
{
case
COLLABORATION_TYPE
.
AUDIO
:
coview_api
.
ChangeCollaboration
(
"audio"
);
break
;
case
COLLABORATION_TYPE
.
CAMERA
:
coview_api
.
ChangeCollaboration
(
"image"
);
break
;
case
COLLABORATION_TYPE
.
VIDEO
:
coview_api
.
ChangeCollaboration
(
"video"
);
break
;
case
COLLABORATION_TYPE
.
DOCUMENT
:
coview_api
.
ChangeCollaboration
(
"audio"
);
recordStop
(
function
()
{
var
newMeetingId
=
0
;
if
(
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
exitMeetingRoom
.
postMessage
({});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
exitMeetingRoom
();
}
}
if
(
CHAT_UTIL
.
isIOS
())
{
newMeetingId
=
CHAT_DB
.
createContentView
();
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
changeCollaborationType
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
newMeetingId
=
android
.
createContentView
();
console
.
log
(
"newMeetingId = "
+
newMeetingId
);
if
(
changeCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
}
android
.
setJoinCollaborationType
(
changeCollaborationType
);
}
break
;
case
COLLABORATION_TYPE
.
BOARD
:
coview_api
.
ChangeCollaboration
(
"audio"
);
break
;
}
if
(
$
(
"#micBtn"
).
hasClass
(
"bg_red"
))
{
micOff
();
}
else
{
micOn
();
}
penOff
();
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
changeCollaboration
.
postMessage
({
changeCollaborationType
:
changeCollaborationType
,
meetingId
:
newMeetingId
,
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
changeCollaboration
(
changeCollaborationType
,
newMeetingId
);
}
joinMeetingId
=
newMeetingId
;
fw
.
sendToMsg
(
"others"
,
"CHANGE_COLLABORATION"
,
{
collaborationType
:
changeCollaborationType
,
newMeetingId
:
newMeetingId
,
joinCollaborationType
=
changeCollaborationType
;
initCollaborationUI
(
changeCollaborationType
);
switch
(
changeCollaborationType
)
{
case
COLLABORATION_TYPE
.
AUDIO
:
coview_api
.
ChangeCollaboration
(
"audio"
);
break
;
case
COLLABORATION_TYPE
.
CAMERA
:
coview_api
.
ChangeCollaboration
(
"image"
);
break
;
case
COLLABORATION_TYPE
.
VIDEO
:
coview_api
.
ChangeCollaboration
(
"video"
);
break
;
case
COLLABORATION_TYPE
.
DOCUMENT
:
coview_api
.
ChangeCollaboration
(
"audio"
);
if
(
CHAT_UTIL
.
isIOS
())
{
newMeetingId
=
CHAT_DB
.
createContentView
();
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
newMeetingId
=
android
.
createContentView
();
console
.
log
(
"newMeetingId = "
+
newMeetingId
);
}
break
;
case
COLLABORATION_TYPE
.
BOARD
:
coview_api
.
ChangeCollaboration
(
"audio"
);
break
;
}
if
(
$
(
"#micBtn"
).
hasClass
(
"bg_red"
))
{
micOff
();
}
else
{
micOn
();
}
penOff
();
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
changeCollaboration
.
postMessage
({
changeCollaborationType
:
changeCollaborationType
,
meetingId
:
newMeetingId
,
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
changeCollaboration
(
changeCollaborationType
,
newMeetingId
);
}
joinMeetingId
=
newMeetingId
;
fw
.
sendToMsg
(
"others"
,
"CHANGE_COLLABORATION"
,
{
collaborationType
:
changeCollaborationType
,
newMeetingId
:
newMeetingId
,
});
});
}
...
...
@@ -646,7 +643,7 @@ var scrollLock = function (e) {
}
};
let
collaboScreen
=
document
.
getElementById
(
"collabo_main"
);
let
collaboScreen
=
document
.
getElementById
(
"collabo_main"
);
function
scrollLockON
()
{
collaboScreen
.
addEventListener
(
"touchmove"
,
scrollLock
,
{
passive
:
false
});
...
...
@@ -1068,6 +1065,11 @@ function recordTogle() {
}
function
recordStop
(
callback
)
{
if
(
$
(
"#recordBtn"
).
hasClass
(
"bg_gray"
))
{
callback
();
return
;
}
CHAT_UI
.
showLoadingIndicator
();
// アーカイブ保存中は画面操作不可(協業終了,協業切り替え防止)
screenLock
();
...
...
@@ -1080,7 +1082,12 @@ function recordStop(callback) {
}
function
MainManRecordWithCollaboration
(
action
,
url
,
callback
)
{
mediaRecorder
.
stop
();
try
{
mediaRecorder
.
stop
();
}
catch
(
exeption
)
{
console
.
log
(
"Record fail"
);
callback
();
}
console
.
log
(
"Recorded Blobs: "
,
recordedBlobs
);
setTimeout
(
function
()
{
...
...
@@ -1107,11 +1114,13 @@ function MainManRecordWithCollaboration(action, url, callback) {
processData
:
false
,
success
:
function
(
res
)
{
recordFinished
();
CHAT_UI
.
dismissLoadingIndicator
();
console
.
log
(
res
);
callback
();
},
error
:
function
(
err
)
{
recordFinished
();
CHAT_UI
.
dismissLoadingIndicator
();
console
.
log
(
err
);
callback
();
},
...
...
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