mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -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;
|
|
}
|
|
}); |