jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/voice/commands/controlcommands.js
Luke Pulverenti 9a4a0e78a9 voice fixes
2016-07-06 16:16:56 -04:00

16 lines
380 B
JavaScript

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