Skip to content

audio Support #62587

Open
Open
@gabriel-systems

Description

@gabriel-systems

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

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions