mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #635 - FFmpeg not being stopped in safari
This commit is contained in:
parent
2aa7e92987
commit
4a439addcd
2 changed files with 26 additions and 4 deletions
15
ApiClient.js
15
ApiClient.js
|
@ -1036,7 +1036,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
self.getScheduledTasks = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
|
||||
var url = self.getUrl("ScheduledTasks", options);
|
||||
|
||||
return self.ajax({
|
||||
|
@ -1402,6 +1402,19 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.stopActiveEncodings = function () {
|
||||
|
||||
var url = self.getUrl("Videos/ActiveEncodings", {
|
||||
|
||||
deviceId: deviceId
|
||||
});
|
||||
|
||||
return self.ajax({
|
||||
type: "DELETE",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
self.updateItemImageIndex = function (itemId, itemType, itemName, imageType, imageIndex, newIndex) {
|
||||
|
||||
if (!imageType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue