Merge branch 'master' of https://github.com/bigbluebutton/bigbluebutton
This commit is contained in:
commit
5e3a03eaa5
@ -126,8 +126,11 @@ var amIPresenterSync = function() {
|
||||
var getMyUserInfoAsynch = function() {
|
||||
BBB.listen("GetMyUserInfoResponse", function(bbbEvent) {
|
||||
console.log("User info response [myUserID=" + bbbEvent.myUserID
|
||||
+ ",myUsername=" + bbbEvent.myUsername + ",myAvatarURL=" + bbbEvent.myAvatarURL
|
||||
+ ",myRole=" + bbbEvent.myRole + ",amIPresenter=" + bbbEvent.amIPresenter + "].");
|
||||
+ ",myUsername=" + bbbEvent.myUsername + ",myAvatarURL=" + bbbEvent.myAvatarURL
|
||||
+ ",myRole=" + bbbEvent.myRole + ",amIPresenter=" + bbbEvent.amIPresenter + "].");
|
||||
for(var key in bbbEvent.customdata){
|
||||
console.log(key + " " + bbbEvent.customdata[key]);
|
||||
}
|
||||
});
|
||||
|
||||
BBB.getMyUserInfo();
|
||||
@ -136,11 +139,15 @@ var getMyUserInfoAsynch = function() {
|
||||
var getMyUserInfoSynch = function() {
|
||||
BBB.getMyUserInfo(function(userInfo) {
|
||||
console.log("User info callback [myUserID=" + userInfo.myUserID
|
||||
+ ",myUsername=" + userInfo.myUsername + ",myAvatarURL=" + userInfo.myAvatarURL
|
||||
+ ",myRole=" + userInfo.myRole + ",amIPresenter=" + userInfo.amIPresenter + "].");
|
||||
+ ",myUsername=" + userInfo.myUsername + ",myAvatarURL=" + userInfo.myAvatarURL
|
||||
+ ",myRole=" + userInfo.myRole + ",amIPresenter=" + "].");
|
||||
for(var key in userInfo.customdata){
|
||||
console.log(key + " " + userInfo.customdata[key]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var getMyRoleAsynch = function() {
|
||||
BBB.listen("GetMyRoleResponse", function(bbbEvent) {
|
||||
console.log("Received GetMyRoleResponse event [" + bbbEvent.myRole + "]");
|
||||
|
@ -79,6 +79,10 @@ package org.bigbluebutton.core
|
||||
return UserManager.getInstance().getConference().avatarURL;
|
||||
}
|
||||
|
||||
public static function getCustomData():Object {
|
||||
return UserManager.getInstance().getConference().getMyCustomData();
|
||||
}
|
||||
|
||||
public static function getExternalMeetingID():String {
|
||||
return UserManager.getInstance().getConference().externalMeetingID;
|
||||
}
|
||||
|
@ -127,6 +127,7 @@ package org.bigbluebutton.main.api
|
||||
obj.myAvatarURL = UsersUtil.getAvatarURL();
|
||||
obj.myRole = UsersUtil.getMyRole();
|
||||
obj.amIPresenter = UsersUtil.amIPresenter();
|
||||
obj.customdata = UsersUtil.getCustomData();
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
@ -73,6 +73,7 @@ package org.bigbluebutton.main.api
|
||||
payload.myAvatarURL = UsersUtil.getAvatarURL();
|
||||
payload.myRole = UsersUtil.getMyRole();
|
||||
payload.amIPresenter = UsersUtil.amIPresenter();
|
||||
payload.customdata = UsersUtil.getCustomData();
|
||||
|
||||
broadcastEvent(payload);
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ package org.bigbluebutton.main.model.users
|
||||
[Bindable] public var voiceJoined:Boolean = false;
|
||||
[Bindable] public var voiceLocked:Boolean = false;
|
||||
[Bindable] public var status:String = "";
|
||||
[Bindable] public var customdata:Object = {};
|
||||
|
||||
private var _status:StatusCollection = new StatusCollection();
|
||||
|
||||
|
@ -294,6 +294,14 @@ package org.bigbluebutton.main.model.users {
|
||||
return me.name;
|
||||
}
|
||||
|
||||
public function setMyCustomData(customdata:Object):void{
|
||||
me.customdata = customdata;
|
||||
}
|
||||
|
||||
public function getMyCustomData():Object{
|
||||
return me.customdata;
|
||||
}
|
||||
|
||||
public function setMyRole(role:String):void {
|
||||
me.role = role;
|
||||
}
|
||||
|
@ -73,6 +73,14 @@ package org.bigbluebutton.main.model.users
|
||||
webvoiceconf:xml.webvoiceconf,
|
||||
voicebridge:xml.voicebridge, mode:xml.mode, welcome:xml.welcome, logoutUrl:xml.logoutUrl,
|
||||
defaultLayout:xml.defaultLayout, avatarURL:xml.avatarURL};
|
||||
user.customdata = new Object();
|
||||
if(xml.customdata)
|
||||
{
|
||||
for each(var cdnode:XML in xml.customdata.elements()){
|
||||
LogUtil.debug("checking user customdata: "+cdnode.name() + " = " + cdnode);
|
||||
user.customdata[cdnode.name()] = cdnode.toString();
|
||||
}
|
||||
}
|
||||
|
||||
if (_resultListener != null) _resultListener(true, user);
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ package org.bigbluebutton.main.model.users
|
||||
UserManager.getInstance().getConference().setMyRole(result.role);
|
||||
UserManager.getInstance().getConference().setMyRoom(result.room);
|
||||
UserManager.getInstance().getConference().setMyAuthToken(result.authToken);
|
||||
UserManager.getInstance().getConference().setMyCustomData(result.customdata);
|
||||
UserManager.getInstance().getConference().setDefaultLayout(result.defaultLayout);
|
||||
|
||||
UserManager.getInstance().getConference().externalMeetingID = result.externMeetingID;
|
||||
|
@ -766,6 +766,7 @@ class ApiController {
|
||||
|
||||
} else {
|
||||
UserSession us = meetingService.getUserSession(session['user-token']);
|
||||
Meeting meeting = meetingService.getMeeting(us.meetingID);
|
||||
log.info("Found conference for " + us.fullname)
|
||||
response.addHeader("Cache-Control", "no-cache")
|
||||
withFormat {
|
||||
@ -790,6 +791,11 @@ class ApiController {
|
||||
logoutUrl(us.logoutUrl)
|
||||
defaultLayout(us.defaultLayout)
|
||||
avatarURL(us.avatarURL)
|
||||
customdata(){
|
||||
meeting.getUserCustomData(us.externUserID).each{ k,v ->
|
||||
"$k"("$v")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user