melihercan / WebRTCme

A cross-platform framework for adding WebRTC support to .NET MAUI, Blazor, and Desktop applications by using a single unified .NET/C# API.
https://github.com/melihercan/WebRTCme
MIT License
226 stars 46 forks source link

Blazor server demo not working #25

Closed taylorjimbo closed 6 months ago

taylorjimbo commented 1 year ago

I tried out WebRTCme a long time ago, but didn't really need it for a project.

I downloaded the latest code and can not get the Blazor server or wasm demo to build.

I started a new Blazor server app and adding the packages:

included the following in the program.cs var webRtcMiddleware = CrossWebRtcMiddlewareBlazor.Current;
builder.Services.AddSingleton(serviceProvider => webRtcMiddleware);

and the javascript in the layout.chtml: <script src="_content/WebRTCme.Bindings.Blazor/JsInterop.js"></script>

I can't seem to get this working - System.InvalidOperationException: Cannot provide a value for property 'ConnectionParametersViewModel'

Here is a link to the project I created - https://github.com/taylorjimbo/BlazorApp5

Does anyone have a working sample project?

melihercan commented 1 year ago

The NuGets need updates.

Please use the code for now. I build and run SignalingServer and DemoApp.Blazor.Wasm and they are working.

Please note that currently only WASM is supported for Blazor, NOT server.

mizadpanahdev commented 1 year ago

Could you please upload both projects: SignalingServer and DemoApp.Blazor.Wasm

melihercan commented 6 months ago

I have updated the code. Please try again and reopen the issue if needed.

melihercan commented 6 months ago

closing for now