-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
It would be good to have support for audio in blazor; suporting audio features would allow the interaction of visually impaired users with audio prompts etc. via programmatic control. This would also give developers the ability when create blazor games with interactive audio and soundtracks adding atmosphere to the game context.
Describe the solution you'd like
var audioElement = await WebAudio.CreateDocumentAudioElementAsync("audio");
var audioContext = await WebAudio.CreateAudioContextAsync( );
var audioTrack = await audioContext.CreateMediaElementSourceAsync(audioElement);
audioTrack.ConnectAsync(audioContext.destination);
...
Additional context
No response
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one