You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/MediaInfo/LiveStreamRequest.cs

62 lines
1.6 KiB

#nullable disable
#pragma warning disable CS1591
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Dlna;
6 years ago
namespace MediaBrowser.Model.MediaInfo
{
public class LiveStreamRequest
{
public LiveStreamRequest()
{
EnableDirectPlay = true;
EnableDirectStream = true;
DirectPlayProtocols = new MediaProtocol[] { MediaProtocol.Http };
}
6 years ago
public LiveStreamRequest(AudioOptions options)
{
MaxStreamingBitrate = options.MaxBitrate;
ItemId = options.ItemId;
DeviceProfile = options.Profile;
MaxAudioChannels = options.MaxAudioChannels;
DirectPlayProtocols = new MediaProtocol[] { MediaProtocol.Http };
if (options is VideoOptions videoOptions)
6 years ago
{
AudioStreamIndex = videoOptions.AudioStreamIndex;
SubtitleStreamIndex = videoOptions.SubtitleStreamIndex;
}
}
5 years ago
public string OpenToken { get; set; }
5 years ago
public Guid UserId { get; set; }
5 years ago
public string PlaySessionId { get; set; }
public int? MaxStreamingBitrate { get; set; }
5 years ago
public long? StartTimeTicks { get; set; }
5 years ago
public int? AudioStreamIndex { get; set; }
5 years ago
public int? SubtitleStreamIndex { get; set; }
5 years ago
public int? MaxAudioChannels { get; set; }
5 years ago
public Guid ItemId { get; set; }
5 years ago
public DeviceProfile DeviceProfile { get; set; }
public bool EnableDirectPlay { get; set; }
5 years ago
public bool EnableDirectStream { get; set; }
public IReadOnlyList<MediaProtocol> DirectPlayProtocols { get; set; }
6 years ago
}
}