mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
25 lines
No EOL
590 B
JavaScript
25 lines
No EOL
590 B
JavaScript
(function () {
|
|
|
|
function getLocalMediaSource(serverId, itemId) {
|
|
var json = ApiClientBridge.getLocalMediaSource(serverId, itemId);
|
|
|
|
if (json) {
|
|
return JSON.parse(json);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function getCameraPhotos() {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [[]]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
window.LocalAssetManager = {
|
|
getLocalMediaSource: getLocalMediaSource,
|
|
saveOfflineUser: saveOfflineUser,
|
|
getCameraPhotos: getCameraPhotos
|
|
};
|
|
|
|
})(); |