Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
68 lines
2.5 KiB
C#
68 lines
2.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Yavsc.Abstract.Streaming;
|
|
using Yavsc.Attributes.Validation;
|
|
|
|
namespace Yavsc.Models.Streaming
|
|
{
|
|
|
|
public partial class LiveFlow : ILiveFlow {
|
|
|
|
public Guid? PodcastId { get; set; }
|
|
public DateTimeOffset? ScheduledStartAt { get; set; }
|
|
public int? PlannedDurationMinutes { get; set; }
|
|
public string PublicAnnouncement { get; set; } = string.Empty;
|
|
public DateTimeOffset? PreparedAt { get; set; }
|
|
public DateTimeOffset? StartedAt { get; set; }
|
|
public bool PodcastDeleted { get; set; }
|
|
[MaxLength(64), System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
|
public string? ObsKeyHash { get; set; }
|
|
[System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
|
public DateTimeOffset? ObsEnabledUntil { get; set; }
|
|
[System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
|
public Guid? ObsConnectionId { get; set; }
|
|
[MaxLength(512), System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
|
public string? ObsLastError { get; set; }
|
|
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[Display(Name="FlowIdLabel", ResourceType=typeof(LiveFlow))]
|
|
// set by the server, unique
|
|
public long Id { get; set; }
|
|
|
|
//
|
|
/// <summary>
|
|
/// a title for this flow
|
|
/// </summary>
|
|
/// <value></value>
|
|
[YaStringLength(255)]
|
|
[Display(Name="TitleLabel", ResourceType=typeof(LiveFlow))]
|
|
public string Title { get; set; }
|
|
|
|
// a little description
|
|
[YaStringLength(1023)]
|
|
[Display(Name="PitchLabel", ResourceType=typeof(LiveFlow))]
|
|
public string Pitch { get; set; }
|
|
|
|
// The stream type
|
|
[YaStringLength(127)]
|
|
[Display(Name="MediaTypeLabel", ResourceType=typeof(LiveFlow))]
|
|
public string MediaType { get; set; }
|
|
|
|
// A name where to save this stream, relative to user's files root
|
|
[YaStringLength(255)]
|
|
[Display(Name="DifferedFileNameLabel", ResourceType=typeof(LiveFlow))]
|
|
public string DifferedFileName { get; set; }
|
|
|
|
[Display(Name="SequenceNumberLabel", ResourceType=typeof(LiveFlow))]
|
|
public int SequenceNumber { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name="OwnerIdLabel", ResourceType=typeof(LiveFlow))]
|
|
public string OwnerId {get; set; }
|
|
|
|
[ForeignKey("OwnerId")]
|
|
[Display(Name="OwnerLabel", ResourceType=typeof(LiveFlow))]
|
|
public virtual ApplicationUser Owner { get; set; }
|
|
|
|
}
|
|
}
|