jellyfin/MediaBrowser.Model/MediaInfo/LiveStreamRequest.cs

45 lines
1.5 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; }
2017-01-02 22:15:59 -07:00
public long? MaxStreamingBitrate { get; set; }
2015-03-29 09:45:16 -07:00
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
2017-05-20 09:42:47 -07:00
public bool EnableDirectPlay { get; set; }
public bool EnableDirectStream { get; set; }
public bool ForceDirectPlayRemoteMediaSource { get; set; }
2015-03-29 11:16:40 -07:00
public LiveStreamRequest()
{
2017-05-20 09:42:47 -07:00
ForceDirectPlayRemoteMediaSource = true;
EnableDirectPlay = true;
EnableDirectStream = true;
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
}
}