using System; namespace MediaBrowser.Controller.MediaEncoding; /// /// Represents a durable record of an HLS transcoding session for HA pod recovery. /// public sealed class TranscodeSession { /// /// Gets or sets the unique play session identifier. /// public string PlaySessionId { get; set; } = string.Empty; /// /// Gets or sets the name of the pod that currently owns this session's lease. /// public string OwnerPod { get; set; } = string.Empty; /// /// Gets or sets the UTC time at which the owning pod's lease expires. /// public DateTime LeaseExpiresUtc { get; set; } /// /// Gets or sets the absolute path to the HLS manifest (.m3u8) file on shared storage. /// public string ManifestPath { get; set; } = string.Empty; /// /// Gets or sets the path prefix for transcoded segment files on shared storage. /// public string SegmentPathPrefix { get; set; } = string.Empty; /// /// Gets or sets the media source identifier associated with this session. /// public string MediaSourceId { get; set; } = string.Empty; /// /// Gets or sets the zero-based index of the last segment that was fully written to durable storage. /// public int LastCompletedSegmentIndex { get; set; } /// /// Gets or sets the last durable playback offset in ticks, used to resume playback after failover. /// public long LastDurablePlaybackOffset { get; set; } }