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; }
|
2017-01-03 05:15:59 +00:00
|
|
|
|
public long? MaxStreamingBitrate { get; set; }
|
2015-03-29 16:45:16 +00:00
|
|
|
|
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
|
|
|
|
|
2017-05-20 16:42:47 +00:00
|
|
|
|
public bool EnableDirectPlay { get; set; }
|
|
|
|
|
public bool EnableDirectStream { get; set; }
|
2017-07-02 18:58:56 +00:00
|
|
|
|
public bool AllowMediaProbe { get; set; }
|
2017-05-20 16:42:47 +00:00
|
|
|
|
|
2015-03-29 18:16:40 +00:00
|
|
|
|
public LiveStreamRequest()
|
|
|
|
|
{
|
2017-05-20 16:42:47 +00:00
|
|
|
|
EnableDirectPlay = true;
|
|
|
|
|
EnableDirectStream = true;
|
2017-07-02 18:58:56 +00:00
|
|
|
|
AllowMediaProbe = true;
|
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
|
|
|
|
}
|
|
|
|
|
}
|