FFmpegBlazor icon indicating copy to clipboard operation
FFmpegBlazor copied to clipboard

[Bug] IJSUnmarshalledRuntime is obsolote in .NET 7

Open Ksdmg opened this issue 1 year ago • 3 comments

I have a .NET 7 project running blazor server side. When initializing the JSRuntime, an exception is thrown:

await FFmpegFactory.Init(Runtime); // throws System.InvalidCastException: 'Unable to cast object of type 'Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime' to type 'Microsoft.JSInterop.IJSUnmarshalledRuntime'.'

I found this -> https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/javascript-interoperability/import-export-interop.md#obsolete-javascript-interop-api

Ksdmg avatar Mar 05 '24 09:03 Ksdmg