mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 11:58:20 -07:00
17 lines
399 B
JavaScript
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;
|
|
};
|
|
}); |