jellyfin-server/MediaBrowser.Model/MediaInfo/LiveStreamRequest.cs

39 lines
1.2 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; }
2016-10-20 18:02:42 +00:00
public int? MaxAudioChannels { get; set; }
2015-03-29 16:45:16 +00:00
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;
2016-10-20 18:02:42 +00:00
MaxAudioChannels = options.MaxAudioChannels;
2015-03-29 18:16:40 +00:00
VideoOptions videoOptions = options as VideoOptions;
if (videoOptions != null)
{
AudioStreamIndex = videoOptions.AudioStreamIndex;
SubtitleStreamIndex = videoOptions.SubtitleStreamIndex;
}
}
2015-03-29 16:45:16 +00:00
}
}