diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-15 17:22:35 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-15 17:22:35 -0400 |
| commit | 38235bc53e626efe6e8c0b0b23e909d981ddbf79 (patch) | |
| tree | 26d1d0320ecb9799f2234436d68dbe51037639d2 | |
| parent | ffbac0e3d80bcff2daf89bbf45514a742a75f78e (diff) | |
Added id to media streaming api calls
| -rw-r--r-- | MediaBrowser.ApiInteraction/BaseApiClient.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.ApiInteraction/BaseApiClient.cs b/MediaBrowser.ApiInteraction/BaseApiClient.cs index 683aa7e93..466869c76 100644 --- a/MediaBrowser.ApiInteraction/BaseApiClient.cs +++ b/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)
{
|
