Add CMS waveform pre-processing panel with backfill endpoints
GET api/track/waveform-status and POST api/track/{id}/waveform (ApiKey);
CmsTrackService methods; TrackPreProcessing page with per-row and
sequential bulk generation; nav links from TrackList and Index.
This commit is contained in:
@@ -55,4 +55,16 @@ public interface ICmsTrackService
|
||||
long id, string trackName, string artist,
|
||||
string? album, string? genre, DateOnly? releaseDate,
|
||||
CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Fetch per-track waveform profile status from <c>GET api/track/waveform-status</c> for the
|
||||
/// CMS PreProcessing panel. Unpaged — the admin catalogue is small.
|
||||
/// </summary>
|
||||
Task<ResultContainer<WaveformStatusDto[]>> GetWaveformStatusAsync(CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Trigger waveform profile generation for a single track via
|
||||
/// <c>POST api/track/{entryKey}/waveform</c>. Maps a 404 to a "Track audio not found." failure.
|
||||
/// </summary>
|
||||
Task<Result> GenerateWaveformProfileAsync(string entryKey, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user