mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adds the playback delivery decision service
This commit is contained in:
1 parent
f97c5bed47
commit
7dc5953e1d
18 files changed
+952
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Playback;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a single container and codec combination that a player advertises it can demux and decode directly.
|
||||
/// </summary>
|
||||
/// <param name="Container">The container the player can demux, for example MP3, FLAC, OGG, WAV or MP4.</param>
|
||||
/// <param name="Codec">The codec the player can decode, for example MP3, FLAC, Opus, Vorbis, PCM or AAC.</param>
|
||||
[DebuggerDisplay("Container: {Container} Codec: {Codec}")]
|
||||
public sealed record PlaybackCapabilityDto(
|
||||
string Container,
|
||||
string Codec
|
||||
);
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Playback;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Playback;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the decision of how the audio of a track is delivered to a player: as the original file, as the same codec repackaged, or re-encoded.
|
||||
/// </summary>
|
||||
/// <param name="Mode">The way the audio is delivered.</param>
|
||||
/// <param name="Container">The container of the delivered audio, which is the stored container of the track for a direct play.</param>
|
||||
/// <param name="Codec">The codec of the delivered audio, which is the stored codec of the track for a direct play.</param>
|
||||
/// <param name="Shape">The shape the delivered audio is addressed and seeked by.</param>
|
||||
/// <param name="SegmentDurationSeconds">The duration of each segment of the delivered audio, in seconds, or zero when the shape is not time addressed.</param>
|
||||
[DebuggerDisplay("Mode: {Mode} Container: {Container} Codec: {Codec} Shape: {Shape}")]
|
||||
public sealed record PlaybackDeliveryDecisionDto(
|
||||
PlaybackDeliveryMode Mode,
|
||||
string Container,
|
||||
string Codec,
|
||||
PlaybackDeliveryShape Shape,
|
||||
int SegmentDurationSeconds
|
||||
);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Playback;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the stored format of a track's audio, that a playback delivery decision is made on.
|
||||
/// </summary>
|
||||
/// <param name="Container">The container of the audio file of the track, for example MP3, FLAC, OGG, MP4 or WAV.</param>
|
||||
/// <param name="Codec">The codec of the audio of the track, as reported by the probe, for example AAC, FLAC, Opus or PCM.</param>
|
||||
[DebuggerDisplay("Container: {Container} Codec: {Codec}")]
|
||||
public sealed record PlaybackSourceFormatDto(
|
||||
string? Container,
|
||||
string? Codec
|
||||
);
|
||||
Reference in new issue
Block a user