I came across a problem the other day where I needed to play a sound file in a Blazor WebAssembly application, but there were very limited resources as to how to do this. So, once I figured it out, I also figured that someone else was going to have this problem.
(Even if that person is just me in the future).
Let's see how to play a sound in Blazor!
As always, there's a sample project on GitHub that has the code we're going to write in this post. Check it out!
There are five steps we need the ability to play a sound in Blazor:
IJSRuntimeinjected to our Blazor component.
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ In this tutorial, I will show you how to save data into database using Web API form Asp.Net Core Blazor #Webassembly appli...
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ How to call and consume a REST API from ASP.NET Core Blazor application. Blog : https://aspdotnetexplorer.blogspot.com/sea...
In this post, we speed up initial load time by prerendering our Blazor Web Assembly application. We need to discuss how to mitigate the biggest drawback of using Blazor WebAssembly: the initial load time. While the WebAssembly solution allows us to enjoy a serverless deployment scenario and fast interactions, the initial download can take awhile. Users need to sit around while the browser downloads the .NET runtime and all your project’s DLLs.
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ In this tutorial, we will see how to create a simple CRUD (create, read, update, and delete) application for ASP.NET Core ...