jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/voice/commands/controlcommands.js
2016-10-18 01:06:48 -04:00

17 lines
399 B
JavaScript

define(['playbackManager'], function (playbackManager) {
'use strict';
function setActiveDevice(name) {
return function () {
playbackManager.trySetActiveDeviceName(name);
};
}
return function (result) {
if (result.properties.devicename) {
return setActiveDevice(result.properties.devicename);
}
return;
};
});