瀏覽代碼

Added id to media streaming api calls

LukePulverenti Luke Pulverenti luke pulverenti 13 年之前
父節點
當前提交
38235bc53e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      MediaBrowser.ApiInteraction/BaseApiClient.cs

+ 4 - 4
MediaBrowser.ApiInteraction/BaseApiClient.cs

@@ -360,9 +360,9 @@ namespace MediaBrowser.ApiInteraction
         /// <param name="maxAudioSampleRate">The maximum sample rate that the device can play. This should generally be omitted. The server will default this to 44100, so only override if a different max is needed.</param>
         public string GetAudioStreamUrl(Guid itemId, IEnumerable<AudioOutputFormats> supportedOutputFormats, int? maxAudioChannels = null, int? maxAudioSampleRate = null)
         {
-            string url = ApiUrl + "/audio";
+            string url = ApiUrl + "/audio?id=" + itemId;
 
-            url += "?outputformats=" + string.Join(",", supportedOutputFormats.Select(s => s.ToString()).ToArray());
+            url += "&outputformats=" + string.Join(",", supportedOutputFormats.Select(s => s.ToString()).ToArray());
 
             if (maxAudioChannels.HasValue)
             {
@@ -397,9 +397,9 @@ namespace MediaBrowser.ApiInteraction
             int? maxWidth = null, 
             int? maxHeight = null)
         {
-            string url = ApiUrl + "/video";
+            string url = ApiUrl + "/video?id=" + itemId;
 
-            url += "?outputformats=" + string.Join(",", supportedOutputFormats.Select(s => s.ToString()).ToArray());
+            url += "&outputformats=" + string.Join(",", supportedOutputFormats.Select(s => s.ToString()).ToArray());
 
             if (maxAudioChannels.HasValue)
             {