reduce traffic from play to feature

This commit is contained in:
Luke Pulverenti 2017-01-24 14:54:18 -05:00
parent 7b80b2ea32
commit 58cebe2486
18 changed files with 157 additions and 59 deletions

View file

@ -1408,6 +1408,26 @@
return self.getJSON(url);
};
self.getPlaybackInfo = function(itemId, options, deviceProfile) {
var postData = {
DeviceProfile: deviceProfile
};
return self.ajax({
url: self.getUrl('Items/' + itemId + '/PlaybackInfo', options),
type: 'POST',
data: JSON.stringify(postData),
contentType: "application/json",
dataType: "json"
});
};
self.getIntros = function(itemId) {
return self.getJSON(self.getUrl('Users/' + self.getCurrentUserId() + '/Items/' + itemId + '/Intros'));
};
/**
* Gets the directory contents of a path on the server
*/