Commit bdea508c by Kim Peace

Fixe some error for 44048

parent 29d6b7b0
......@@ -165,7 +165,10 @@ CoviewBridge.bindMessageEvent = function () {
CollaborationFeature.didReceiveLoginResponseMessage = async function () {
try {
await navigator.mediaDevices.getUserMedia({ audio: true, video: true });
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
if (
globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA &&
globalUserInfo.joinType == COLLABORATION_JOIN_TYPE.HOST
) {
setTimeout(function () {
NativeBridgeDelegate.showPhotoSelection();
}, 100);
......@@ -319,7 +322,9 @@ CollaborationFeature.shareImage = function (imageData) {
const uploadFileName =
"capture_share_" + g_webroom + "_" + g_shareCount + ".png";
g_shareCount++;
formData.append("imgFile", blob, uploadFileName);
$.ajax({
type: "post",
url: g_coviewapiserverADDR + "/upload/create",
......@@ -329,6 +334,7 @@ CollaborationFeature.shareImage = function (imageData) {
success: function (res) {
setTimeout(function () {
SendFileShare(uploadFileName);
g_sharing_image_path = uploadFileName;
}, 500);
},
error: function (err) {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment