Front End Work
- Redesign component wiring for audio playback - Removed playback logic from the player control and moved it to injectable audio player engine service - Chunked/buffered stream loading from Content API passed to Web Audio API playback in 8K blocks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using DeepDrftWeb.Client.Clients;
|
||||
using DeepDrftWeb.Client.Services;
|
||||
using DeepDrftWeb.Client.ViewModels;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using NetBlocks.Models;
|
||||
@@ -22,12 +23,14 @@ public static class Startup
|
||||
});
|
||||
}
|
||||
|
||||
public static void ConfigureCommonServices(IServiceCollection services, string contentApiUrl)
|
||||
public static void ConfigureContentServices(IServiceCollection services, string contentApiUrl)
|
||||
{
|
||||
services.AddHttpClient("DeepDrft.Content", client =>
|
||||
{
|
||||
client.BaseAddress = new Uri(contentApiUrl);
|
||||
});
|
||||
services.AddScoped<TrackMediaClient>();
|
||||
services.AddScoped<AudioInteropService>();
|
||||
services.AddScoped<AudioPlaybackEngine>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user