2020-11-12 10:29:42 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-08-03 15:33:43 -04:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
using MediaBrowser.Model.MediaInfo;
|
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
namespace Jellyfin.Api.Models.MediaInfoDtos;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Open live stream dto.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OpenLiveStreamDto
|
2020-08-03 15:33:43 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// Gets or sets the open token.
|
2020-08-03 15:33:43 -04:00
|
|
|
|
/// </summary>
|
2023-01-31 06:18:10 -05:00
|
|
|
|
public string? OpenToken { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid? UserId { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play session id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? PlaySessionId { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the max streaming bitrate.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? MaxStreamingBitrate { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the start time in ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long? StartTimeTicks { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the audio stream index.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? AudioStreamIndex { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the subtitle stream index.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? SubtitleStreamIndex { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the max audio channels.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? MaxAudioChannels { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the item id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid? ItemId { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether to enable direct play.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool? EnableDirectPlay { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether to enale direct stream.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool? EnableDirectStream { get; set; }
|
2020-12-19 12:55:07 -05:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the device profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DeviceProfile? DeviceProfile { get; set; }
|
2020-08-03 15:33:43 -04:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the device play protocols.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IReadOnlyList<MediaProtocol> DirectPlayProtocols { get; set; } = Array.Empty<MediaProtocol>();
|
2020-08-03 15:33:43 -04:00
|
|
|
|
}
|