Migrate audio transcoding from DASH to a single AAC (.m4a) file

This commit is contained in:
2026-06-02 19:05:11 +02:00
parent be8fbbbcdc
commit c1d57098b1
11 changed files with 35 additions and 50 deletions
@@ -11,6 +11,6 @@ namespace Musify.Application.Configuration
public required string PublicBaseUrl { get; set; }
[Required]
public string ManifestFileName { get; set; } = "manifest.mpd";
public string AudioFileName { get; set; } = "audio.m4a";
}
}
@@ -2,7 +2,7 @@ namespace Musify.Application.Contracts
{
public interface IAudioTranscoderService
{
Task<int> TranscodeToDashAsync(Stream audioStream, string destinationPath, CancellationToken cancellationToken);
Task<int> TranscodeToAudioFileAsync(Stream audioStream, string destinationPath, CancellationToken cancellationToken);
Task<bool> IsValidAudioFileAsync(string filePath, CancellationToken cancellationToken);
}
@@ -44,7 +44,7 @@ namespace Musify.Application.Tracks.Handlers
streamGatewayConfiguration.PublicBaseUrl.TrimEnd('/'),
"media",
folderPath,
streamGatewayConfiguration.ManifestFileName);
streamGatewayConfiguration.AudioFileName);
logger.LogInformation("Issued stream ticket for track {TrackId} to user {UserId}", request.TrackId, request.UserId);