jellyfin/MediaBrowser.Model/MediaInfo/LiveStreamRequest.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2015-03-29 16:45:16 +00:00
using MediaBrowser.Model.Dlna;
namespace MediaBrowser.Model.MediaInfo
{
public class LiveStreamRequest
{
public string OpenToken { get; set; }
public string UserId { get; set; }
2015-04-01 21:55:50 +00:00
public string PlaySessionId { get; set; }
2015-03-29 16:45:16 +00:00
public int? MaxStreamingBitrate { get; set; }
public long? StartTimeTicks { get; set; }
public int? AudioStreamIndex { get; set; }
public int? SubtitleStreamIndex { get; set; }
public string ItemId { get; set; }
public DeviceProfile DeviceProfile { get; set; }
2015-03-29 18:16:40 +00:00
public LiveStreamRequest()
{
2015-04-01 21:55:50 +00:00
2015-03-29 18:16:40 +00:00
}
public LiveStreamRequest(AudioOptions options)
{
MaxStreamingBitrate = options.MaxBitrate;
ItemId = options.ItemId;
DeviceProfile = options.Profile;
VideoOptions videoOptions = options as VideoOptions;
if (videoOptions != null)
{
AudioStreamIndex = videoOptions.AudioStreamIndex;
SubtitleStreamIndex = videoOptions.SubtitleStreamIndex;
}
}
2015-03-29 16:45:16 +00:00
}
}