Add whole-release embeds to FramePlayer and un-gate the release embed share affordance
The queue gains an armed-but-idle state (Arm/Start) so a release embed stages track 0 prerender-safe, then queues the full release on first play and auto-advances.
This commit is contained in:
@@ -186,6 +186,16 @@ public partial class AudioPlayerBar : ComponentBase, IAsyncDisposable
|
||||
// the first play click — the user gesture the browser requires before audio can start.
|
||||
if (IsStaged)
|
||||
{
|
||||
// Release embed: the queue is armed with the whole release. Route the first gesture through
|
||||
// the queue so it takes over (streams track 0 and auto-advances) rather than streaming the
|
||||
// staged track in isolation. Single-track embeds leave the queue disarmed and fall through
|
||||
// to the direct stream below — unchanged.
|
||||
if (QueueService is { IsArmed: true })
|
||||
{
|
||||
await QueueService.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
await PlayerService.SelectTrackStreaming(PlayerService.CurrentTrack!);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user