1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/voice/commands/controlcommands.js

16 lines
380 B
JavaScript
Raw Normal View History

2016-07-06 15:25:58 -04:00
define(['playbackManager'], function (playbackManager) {
2016-07-06 16:16:56 -04:00
function setActiveDevice(name) {
return function () {
playbackManager.trySetActiveDeviceName(name);
};
}
2016-07-06 15:25:58 -04:00
return function (result) {
2016-07-06 16:16:56 -04:00
2016-07-06 15:25:58 -04:00
if (result.properties.devicename) {
2016-07-06 16:16:56 -04:00
return setActiveDevice(result.properties.devicename);
2016-07-06 15:25:58 -04:00
}
return;
}
});