|
@@ -360,11 +360,13 @@
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsNotAcquired", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsNotAcquired", (message) => {
|
|
console.log("myMicrophoneIsNotAcquired received:", message.body);
|
|
console.log("myMicrophoneIsNotAcquired received:", message.body);
|
|
_setParticipantMediaProperty.call(this, message, 'isMicrophoneAcquired', false);
|
|
_setParticipantMediaProperty.call(this, message, 'isMicrophoneAcquired', false);
|
|
|
|
+ _setParticipantMediaProperty.call(this, message, 'isMicrophoneOn', false);
|
|
});
|
|
});
|
|
|
|
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsOn", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsOn", (message) => {
|
|
console.log("myMicrophoneIsOn received:", message.body);
|
|
console.log("myMicrophoneIsOn received:", message.body);
|
|
_setParticipantMediaProperty.call(this, message, 'isMicrophoneOn', true);
|
|
_setParticipantMediaProperty.call(this, message, 'isMicrophoneOn', true);
|
|
|
|
+ _setParticipantMediaProperty.call(this, message, 'isMicrophoneAcquired', true);
|
|
});
|
|
});
|
|
|
|
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsOff", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myMicrophoneIsOff", (message) => {
|
|
@@ -380,11 +382,13 @@
|
|
this.socketClient.subscribe("/user/topic/myCameraIsNotAcquired", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myCameraIsNotAcquired", (message) => {
|
|
console.log("myCameraIsNotAcquired received:", message.body);
|
|
console.log("myCameraIsNotAcquired received:", message.body);
|
|
_setParticipantMediaProperty.call(this, message, 'isCameraAcquired', false);
|
|
_setParticipantMediaProperty.call(this, message, 'isCameraAcquired', false);
|
|
|
|
+ _setParticipantMediaProperty.call(this, message, 'isCameraOn', false);
|
|
});
|
|
});
|
|
|
|
|
|
this.socketClient.subscribe("/user/topic/myCameraIsOn", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myCameraIsOn", (message) => {
|
|
console.log("myCameraIsOn received:", message.body);
|
|
console.log("myCameraIsOn received:", message.body);
|
|
_setParticipantMediaProperty.call(this, message, 'isCameraOn', true);
|
|
_setParticipantMediaProperty.call(this, message, 'isCameraOn', true);
|
|
|
|
+ _setParticipantMediaProperty.call(this, message, 'isCameraAcquired', true);
|
|
});
|
|
});
|
|
|
|
|
|
this.socketClient.subscribe("/user/topic/myCameraIsOff", (message) => {
|
|
this.socketClient.subscribe("/user/topic/myCameraIsOff", (message) => {
|
|
@@ -516,15 +520,9 @@
|
|
}
|
|
}
|
|
|
|
|
|
// notify others about my camera status
|
|
// notify others about my camera status
|
|
- if(this.myCamera) {
|
|
|
|
- if(this.myMedia.isCameraAcquired) {
|
|
|
|
- this.myCameraIsAcquired();
|
|
|
|
- this.myCameraIsOn();
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- this.myCameraIsNotAcquired();
|
|
|
|
- this.myCameraIsOff();
|
|
|
|
- }
|
|
|
|
|
|
+ if(this.myCamera && this.myMedia.isCameraAcquired) {
|
|
|
|
+ this.myCameraIsAcquired();
|
|
|
|
+ this.myCameraIsOn();
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
this.myCameraIsNotAcquired();
|
|
this.myCameraIsNotAcquired();
|
|
@@ -532,15 +530,9 @@
|
|
}
|
|
}
|
|
|
|
|
|
// notify others about my microphone status
|
|
// notify others about my microphone status
|
|
- if(this.myMicrophone) {
|
|
|
|
- if(this.myMedia.isMicrophoneAcquired) {
|
|
|
|
- this.myMicrophoneIsAcquired();
|
|
|
|
- this.myMicrophoneIsOn();
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- this.myMicrophoneIsNotAcquired();
|
|
|
|
- this.myMicrophoneIsOff();
|
|
|
|
- }
|
|
|
|
|
|
+ if(this.myMicrophone && this.myMedia.isMicrophoneAcquired) {
|
|
|
|
+ this.myMicrophoneIsAcquired();
|
|
|
|
+ this.myMicrophoneIsOn();
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
this.myMicrophoneIsNotAcquired();
|
|
this.myMicrophoneIsNotAcquired();
|