jellyfin/MediaBrowser.Model/MediaInfo/LiveStreamRequest.cs

39 lines
1.2 KiB
C#
Raw Normal View History

2015-03-29 09:45:16 -07: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 14:55:50 -07:00
public string PlaySessionId { get; set; }
2015-03-29 09:45:16 -07:00
public int? MaxStreamingBitrate { get; set; }
public long? StartTimeTicks { get; set; }
public int? AudioStreamIndex { get; set; }
public int? SubtitleStreamIndex { get; set; }
2016-10-20 11:02:42 -07:00
public int? MaxAudioChannels { get; set; }
2015-03-29 09:45:16 -07:00
public string ItemId { get; set; }
public DeviceProfile DeviceProfile { get; set; }
2015-03-29 11:16:40 -07:00
public LiveStreamRequest()
{
2015-04-01 14:55:50 -07:00
2015-03-29 11:16:40 -07:00
}
public LiveStreamRequest(AudioOptions options)
{
MaxStreamingBitrate = options.MaxBitrate;
ItemId = options.ItemId;
DeviceProfile = options.Profile;
2016-10-20 11:02:42 -07:00
MaxAudioChannels = options.MaxAudioChannels;
2015-03-29 11:16:40 -07:00
VideoOptions videoOptions = options as VideoOptions;
if (videoOptions != null)
{
AudioStreamIndex = videoOptions.AudioStreamIndex;
SubtitleStreamIndex = videoOptions.SubtitleStreamIndex;
}
}
2015-03-29 09:45:16 -07:00
}
}