소스 검색

fixes #635 - FFmpeg not being stopped in safari

Luke Pulverenti 11 년 전
부모
커밋
80a56ddcfa
1개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  1. 14 1
      MediaBrowser.WebDashboard/ApiClient.js

+ 14 - 1
MediaBrowser.WebDashboard/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) {