reduce traffic from play to feature
This commit is contained in:
parent
7b80b2ea32
commit
58cebe2486
18 changed files with 157 additions and 59 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue