feature: Track Meta Labels on Player

This commit is contained in:
daniel-c-harvey
2026-06-06 16:05:45 -04:00
parent c83b132522
commit 1bb6e29e47
9 changed files with 123 additions and 23 deletions
@@ -1,17 +1,17 @@
using DeepDrftModels.DTOs;
using Microsoft.AspNetCore.Components;
namespace DeepDrftPublic.Client.Controls.AudioPlayerBar;
/// <summary>
/// Centre zone of the player: the <see cref="WaveformSeeker"/> over a timestamp label.
/// The seeker owns the pointer-gesture seek logic and reads playback state off the cascaded
/// player service directly; this zone just forwards the seek callbacks up to
/// <see cref="AudioPlayerBar"/> (whose wiring is unchanged) and renders the timestamp.
/// Centre zone of the player: the <see cref="WaveformSeeker"/> over the now-playing metadata row
/// (<see cref="TrackMetaLabel"/>). The seeker owns the pointer-gesture seek logic and reads playback
/// state off the cascaded player service directly; this zone just forwards the seek callbacks up to
/// <see cref="AudioPlayerBar"/> (whose wiring is unchanged) and renders the current track's metadata.
/// </summary>
public partial class PlayerSeekZone : ComponentBase
{
[Parameter] public double DisplayTime { get; set; }
[Parameter] public double? Duration { get; set; }
[Parameter] public TrackDto? CurrentTrack { get; set; }
[Parameter] public EventCallback OnSeekStart { get; set; }
[Parameter] public EventCallback<double> OnSeekEnd { get; set; }
[Parameter] public EventCallback<double> OnSeekChange { get; set; }