feature: Embed Frame Player
This commit is contained in:
@@ -59,6 +59,17 @@ public class StreamingAudioPlayerService : AudioPlayerService, IStreamingPlayerS
|
||||
await NotifyStateChanged();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task StageTrack(TrackDto track)
|
||||
{
|
||||
// Pure state: expose the track as current so the bar shows it ready, but do NOT
|
||||
// initialize the player, resume the AudioContext, or start streaming. Those steps
|
||||
// require a user gesture and run on the first play click via SelectTrackStreaming.
|
||||
CurrentTrack = track;
|
||||
ErrorMessage = null;
|
||||
await NotifyStateChanged();
|
||||
}
|
||||
|
||||
private async Task LoadTrackStreaming(TrackDto track)
|
||||
{
|
||||
// Always reset to clean state before loading new track. ResetToIdle
|
||||
|
||||
Reference in New Issue
Block a user