Skip to content

Commit

Permalink
Merge pull request #9 from mconftec/volume-mediaId
Browse files Browse the repository at this point in the history
changed from media_id to mediaId in volume messages to fix indentifier
  • Loading branch information
prlanzarin authored Jan 23, 2019
2 parents e85c0cf + c309b2a commit 430d8aa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions lib/MCSBaseClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ class MCSBaseClient extends MCSBase {
break;
case 'mediaDisconnected':
case 'mediaState':
case 'muted':
case 'unmuted':
case 'volumeChanged':
case 'onIceCandidate':
identifier = mediaId;

Expand Down
2 changes: 1 addition & 1 deletion lib/messages/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class Mute extends MCSMessage {
constructor(mediaId) {
super(C.MUTE);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/messages/muted.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class Muted extends MCSMessage {
constructor(mediaId) {
super(C.MUTED);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/messages/setVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class SetVolume extends MCSMessage {
constructor(mediaId, volume) {
super(C.SET_VOLUME);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
this.body.volume = volume;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/messages/unmute.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class Unmute extends MCSMessage {
constructor(mediaId) {
super(C.UNMUTE);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/messages/unmuted.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class Unmuted extends MCSMessage {
constructor(mediaId) {
super(C.UNMUTED);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/messages/volumeChanged.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const C = require('../constants');
class VolumeChanged extends MCSMessage {
constructor(mediaId, volume) {
super(C.VOLUME_CHANGED);
this.body.media_id = mediaId;
this.body.mediaId = mediaId;
this.body.volume = volume;
}
}
Expand Down

0 comments on commit 430d8aa

Please sign in to comment.