Commit 0e296d27 by Kim Peace

Hotfix enable video collaboration

parent ffbeec2e
...@@ -17,22 +17,24 @@ function CoviewUserInfo(sid, loginId, roomId, shopName) { ...@@ -17,22 +17,24 @@ function CoviewUserInfo(sid, loginId, roomId, shopName) {
this.isLeaved = false; this.isLeaved = false;
this.meetingID = 0; this.meetingID = 0;
}
CoviewUserInfo.prototype.coWorkType = function () { Object.defineProperty(this, "coWorkType", {
switch (this.collaborationType) { get() {
case COLLABORATION_TYPE.AUDIO: switch (this.collaborationType) {
return COLLABORATION_TYPE.AUDIO; case COLLABORATION_TYPE.AUDIO:
case COLLABORATION_TYPE.CAMERA: return COLLABORATION_TYPE.AUDIO;
return COLLABORATION_TYPE.CAMERA; case COLLABORATION_TYPE.CAMERA:
case COLLABORATION_TYPE.VIDEO: return COLLABORATION_TYPE.CAMERA;
return COLLABORATION_TYPE.VIDEO; case COLLABORATION_TYPE.VIDEO:
case COLLABORATION_TYPE.DOCUMENT: return COLLABORATION_TYPE.VIDEO;
return COLLABORATION_TYPE.AUDIO; case COLLABORATION_TYPE.DOCUMENT:
case COLLABORATION_TYPE.BOARD: return COLLABORATION_TYPE.AUDIO;
return COLLABORATION_TYPE.AUDIO; case COLLABORATION_TYPE.BOARD:
} return COLLABORATION_TYPE.AUDIO;
}; }
},
});
}
CoviewUserInfo.prototype.isInvited = function () { CoviewUserInfo.prototype.isInvited = function () {
return this.joinType == COLLABORATION_JOIN_TYPE.INVITED; return this.joinType == COLLABORATION_JOIN_TYPE.INVITED;
......
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