Revert "Added checking for HTML5 webcams"

This reverts commit 51b62ed30d.
This commit is contained in:
prlanzarin 2017-12-22 18:30:40 +00:00
parent 31fb95bf72
commit 3f8e7c308c
3 changed files with 11 additions and 14 deletions

View File

@ -16,7 +16,7 @@ trait UserBroadcastCamStartMsgHdlr {
val envelope = BbbCoreEnvelope(UserBroadcastCamStartedEvtMsg.NAME, routing)
val header = BbbClientMsgHeader(UserBroadcastCamStartedEvtMsg.NAME, props.meetingProp.intId, msg.header.userId)
val body = UserBroadcastCamStartedEvtMsgBody(msg.header.userId, msg.body.stream, msg.body.isHtml5Client)
val body = UserBroadcastCamStartedEvtMsgBody(msg.header.userId, msg.body.stream)
val event = UserBroadcastCamStartedEvtMsg(header, body)
val msgEvent = BbbCommonEnvCoreMsg(envelope, event)
outGW.send(msgEvent)

View File

@ -3,7 +3,7 @@ package org.bigbluebutton.common2.msgs
object UserBroadcastCamStartedEvtMsg { val NAME = "UserBroadcastCamStartedEvtMsg" }
case class UserBroadcastCamStartedEvtMsg(header: BbbClientMsgHeader,
body: UserBroadcastCamStartedEvtMsgBody) extends BbbCoreMsg
case class UserBroadcastCamStartedEvtMsgBody(userId: String, stream: String, isHtml5Client: Boolean = false)
case class UserBroadcastCamStartedEvtMsgBody(userId: String, stream: String)
object UserBroadcastCamStartMsg { val NAME = "UserBroadcastCamStartMsg" }
case class UserBroadcastCamStartMsg(header: BbbClientMsgHeader, body: UserBroadcastCamStartMsgBody) extends StandardMsg

View File

@ -487,7 +487,7 @@ package org.bigbluebutton.modules.users.services
logData.tags = ["users"];
logData.status = "user_ejected";
logData.message = "User ejected from meeting.";
LOGGER.debug(JSON.stringify(logData));
LOGGER.info(JSON.stringify(logData));
}
private function handleUserLocked(msg:Object):void {
@ -698,24 +698,21 @@ package org.bigbluebutton.modules.users.services
private function handleUserBroadcastCamStartedEvtMsg(msg:Object):void {
var userId: String = msg.body.userId as String;
var streamId: String = msg.body.stream as String;
var isHtml5Client: Boolean = msg.body.isHtml5Client as Boolean;
var logData:Object = UsersUtil.initLogData();
logData.tags = ["webcam"];
logData.message = "UserBroadcastCamStartedEvtMsg server message";
logData.user.webcamStream = streamId;
logData.user.isHtml5Client = isHtml5Client;
LOGGER.info(JSON.stringify(logData));
if (!isHtml5Client) {
var mediaStream: MediaStream = new MediaStream(streamId, userId)
LiveMeeting.inst().webcams.add(mediaStream);
var webUser: User2x = UsersUtil.getUser(userId);
if (webUser != null) {
sendStreamStartedEvent(userId, webUser.name, streamId);
}
var mediaStream: MediaStream = new MediaStream(streamId, userId)
LiveMeeting.inst().webcams.add(mediaStream);
var webUser: User2x = UsersUtil.getUser(userId);
if (webUser != null) {
sendStreamStartedEvent(userId, webUser.name, streamId);
}
}
private function sendStreamStartedEvent(userId: String, name: String, stream: String):void{