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