|
@@ -723,8 +723,6 @@ export default {
|
723
|
723
|
* Setup interaction between conference and UI.
|
724
|
724
|
*/
|
725
|
725
|
_setupListeners () {
|
726
|
|
- var self = this;
|
727
|
|
-
|
728
|
726
|
// add local streams when joined to the conference
|
729
|
727
|
room.on(ConferenceEvents.CONFERENCE_JOINED, () => {
|
730
|
728
|
APP.UI.mucJoined();
|
|
@@ -907,7 +905,7 @@ export default {
|
907
|
905
|
APP.UI.updateLocalStats(percent, stats);
|
908
|
906
|
|
909
|
907
|
// send local stats to other users
|
910
|
|
- room.sendCommandOnce(self.commands.defaults.CONNECTION_QUALITY,
|
|
908
|
+ room.sendCommandOnce(this.commands.defaults.CONNECTION_QUALITY,
|
911
|
909
|
{
|
912
|
910
|
children: ConnectionQuality.convertToMUCStats(stats),
|
913
|
911
|
attributes: {
|
|
@@ -918,7 +916,7 @@ export default {
|
918
|
916
|
);
|
919
|
917
|
|
920
|
918
|
// listen to remote stats
|
921
|
|
- room.addCommandListener(self.commands.defaults.CONNECTION_QUALITY,
|
|
919
|
+ room.addCommandListener(this.commands.defaults.CONNECTION_QUALITY,
|
922
|
920
|
(values, from) => {
|
923
|
921
|
ConnectionQuality.updateRemoteStats(from, values);
|
924
|
922
|
});
|
|
@@ -928,7 +926,7 @@ export default {
|
928
|
926
|
APP.UI.updateRemoteStats(id, percent, stats);
|
929
|
927
|
});
|
930
|
928
|
|
931
|
|
- room.addCommandListener(self.commands.defaults.ETHERPAD, ({value}) => {
|
|
929
|
+ room.addCommandListener(this.commands.defaults.ETHERPAD, ({value}) => {
|
932
|
930
|
APP.UI.initEtherpad(value);
|
933
|
931
|
});
|
934
|
932
|
|
|
@@ -941,9 +939,9 @@ export default {
|
941
|
939
|
|
942
|
940
|
APP.settings.setEmail(email);
|
943
|
941
|
APP.UI.setUserAvatar(room.myUserId(), email);
|
944
|
|
- sendEmail(self.commands.defaults.EMAIL, email);
|
|
942
|
+ sendEmail(this.commands.defaults.EMAIL, email);
|
945
|
943
|
});
|
946
|
|
- room.addCommandListener(self.commands.defaults.EMAIL, (data) => {
|
|
944
|
+ room.addCommandListener(this.commands.defaults.EMAIL, (data) => {
|
947
|
945
|
APP.UI.setUserAvatar(data.attributes.id, data.value);
|
948
|
946
|
});
|
949
|
947
|
|
|
@@ -1088,8 +1086,8 @@ export default {
|
1088
|
1086
|
// send start and stop commands once, and remove any updates
|
1089
|
1087
|
// that had left
|
1090
|
1088
|
if (state === 'stop' || state === 'start' || state === 'playing') {
|
1091
|
|
- room.removeCommand(self.commands.defaults.SHARED_VIDEO);
|
1092
|
|
- room.sendCommandOnce(self.commands.defaults.SHARED_VIDEO, {
|
|
1089
|
+ room.removeCommand(this.commands.defaults.SHARED_VIDEO);
|
|
1090
|
+ room.sendCommandOnce(this.commands.defaults.SHARED_VIDEO, {
|
1093
|
1091
|
value: url,
|
1094
|
1092
|
attributes: {
|
1095
|
1093
|
state: state,
|
|
@@ -1101,8 +1099,8 @@ export default {
|
1101
|
1099
|
else {
|
1102
|
1100
|
// in case of paused, in order to allow late users to join
|
1103
|
1101
|
// paused
|
1104
|
|
- room.removeCommand(self.commands.defaults.SHARED_VIDEO);
|
1105
|
|
- room.sendCommand(self.commands.defaults.SHARED_VIDEO, {
|
|
1102
|
+ room.removeCommand(this.commands.defaults.SHARED_VIDEO);
|
|
1103
|
+ room.sendCommand(this.commands.defaults.SHARED_VIDEO, {
|
1106
|
1104
|
value: url,
|
1107
|
1105
|
attributes: {
|
1108
|
1106
|
state: state,
|
|
@@ -1113,7 +1111,7 @@ export default {
|
1113
|
1111
|
}
|
1114
|
1112
|
});
|
1115
|
1113
|
room.addCommandListener(
|
1116
|
|
- self.commands.defaults.SHARED_VIDEO, ({value, attributes}, id) => {
|
|
1114
|
+ this.commands.defaults.SHARED_VIDEO, ({value, attributes}, id) => {
|
1117
|
1115
|
|
1118
|
1116
|
if (attributes.state === 'stop') {
|
1119
|
1117
|
APP.UI.stopSharedVideo(id, attributes);
|