mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
Added id to media streaming api calls
This commit is contained in:
parent
ffbac0e3d8
commit
38235bc53e
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
/// <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)
|
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)
|
if (maxAudioChannels.HasValue)
|
||||||
{
|
{
|
||||||
|
@ -397,9 +397,9 @@ namespace MediaBrowser.ApiInteraction
|
||||||
int? maxWidth = null,
|
int? maxWidth = null,
|
||||||
int? maxHeight = 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)
|
if (maxAudioChannels.HasValue)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue