Commit bdea508c by Kim Peace

Fixe some error for 44048

parent 29d6b7b0
...@@ -165,7 +165,10 @@ CoviewBridge.bindMessageEvent = function () { ...@@ -165,7 +165,10 @@ CoviewBridge.bindMessageEvent = function () {
CollaborationFeature.didReceiveLoginResponseMessage = async function () { CollaborationFeature.didReceiveLoginResponseMessage = async function () {
try { try {
await navigator.mediaDevices.getUserMedia({ audio: true, video: true }); 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 () { setTimeout(function () {
NativeBridgeDelegate.showPhotoSelection(); NativeBridgeDelegate.showPhotoSelection();
}, 100); }, 100);
...@@ -319,7 +322,9 @@ CollaborationFeature.shareImage = function (imageData) { ...@@ -319,7 +322,9 @@ CollaborationFeature.shareImage = function (imageData) {
const uploadFileName = const uploadFileName =
"capture_share_" + g_webroom + "_" + g_shareCount + ".png"; "capture_share_" + g_webroom + "_" + g_shareCount + ".png";
g_shareCount++; g_shareCount++;
formData.append("imgFile", blob, uploadFileName); formData.append("imgFile", blob, uploadFileName);
$.ajax({ $.ajax({
type: "post", type: "post",
url: g_coviewapiserverADDR + "/upload/create", url: g_coviewapiserverADDR + "/upload/create",
...@@ -329,6 +334,7 @@ CollaborationFeature.shareImage = function (imageData) { ...@@ -329,6 +334,7 @@ CollaborationFeature.shareImage = function (imageData) {
success: function (res) { success: function (res) {
setTimeout(function () { setTimeout(function () {
SendFileShare(uploadFileName); SendFileShare(uploadFileName);
g_sharing_image_path = uploadFileName;
}, 500); }, 500);
}, },
error: function (err) {}, 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