update to latest js api client

This commit is contained in:
Luke Pulverenti 2013-03-25 13:18:44 -04:00
parent 1705e6dcb3
commit 407cbfe3c5
2 changed files with 25 additions and 1 deletions

View File

@ -1572,6 +1572,30 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
});
};
/**
* Reports the user has started playing something
* @param {String} userId
* @param {String} itemId
*/
self.reportPlaybackStart = function (userId, itemId) {
if (!userId) {
throw new Error("null userId");
}
if (!itemId) {
throw new Error("null itemId");
}
var url = self.getUrl("Users/" + userId + "/PlayingItems/" + itemId);
return self.ajax({
type: "POST",
url: url,
dataType: "json"
});
};
/**
* Reports progress viewing an item
* @param {String} userId

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.58" targetFramework="net45" />
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.60" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.42" targetFramework="net45" />
<package id="ServiceStack.Text" version="3.9.42" targetFramework="net45" />
</packages>