ref(remotecontrol): To use transport module instead of API

This commit is contained in:
hristoterezov
2017-04-17 14:59:24 -05:00
parent 0dff35c0db
commit 54388b6a0a
4 changed files with 76 additions and 72 deletions
+1 -13
View File
@@ -35,9 +35,7 @@ function initCommands() {
'toggle-share-screen': toggleScreenSharing,
'video-hangup': () => APP.conference.hangup(),
'email': APP.conference.changeLocalEmail,
'avatar-url': APP.conference.changeLocalAvatarUrl,
'remote-control-event':
event => APP.remoteControl.onRemoteControlAPIEvent(event)
'avatar-url': APP.conference.changeLocalAvatarUrl
};
transport.on('event', event => {
const { name, data } = event;
@@ -237,16 +235,6 @@ class API {
this._sendEvent('video-ready-to-close', {});
}
/**
* Sends remote control event.
*
* @param {RemoteControlEvent} event - The remote control event.
* @returns {void}
*/
sendRemoteControlEvent(event) {
this._sendEvent('remote-control-event', event);
}
/**
* Disposes the allocated resources.
*