Adds the playback delivery decision service

This commit is contained in:
BinaryAlley committed 2026-10-15 09:19:36 +03:00
1 parent f97c5bed47
commit 7dc5953e1d
18 files changed
+952

No files matched your search

@@ -0,0 +1,22 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Playback;
/// <summary>
/// Enumeration for the ways in which a track's audio is delivered to a player.
/// </summary>
public enum PlaybackDeliveryMode
{
/// <summary>
/// The original audio file is delivered unchanged, because the player can demux its container and decode its codec as stored.
/// </summary>
DirectPlay,
/// <summary>
/// The audio is repackaged into a container the player can demux, without re-encoding its codec.
/// </summary>
Remux,
/// <summary>
/// The audio is re-encoded into a codec the player can decode, because the stored codec is not one the player supports.
/// </summary>
Transcode,
}
@@ -0,0 +1,18 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Playback;
/// <summary>
/// Enumeration for the shapes in which delivered audio is addressed and seeked.
/// </summary>
public enum PlaybackDeliveryShape
{
/// <summary>
/// The delivered media is the original file itself, addressed and seeked by byte range.
/// </summary>
ByteRangeSeekable,
/// <summary>
/// The delivered media is a sequence of fixed duration segments, addressed and seeked by time, so that finding a time never
/// requires mapping a byte range to it.
/// </summary>
TimeAddressedSegments,
}