public async Task ReloadAsync() { var componentRef = DotNetObjectReference.Create <VideoMediaViewModel>(this); await BlazorMediaAPI.RemoveBlazorFPSListenerAsync(VideoElementRef); await BlazorMediaAPI.InitializeAsync(Width, Height, Framerate, RecordAudio, CameraDeviceId, MicrophoneDeviceId, Timeslice, VideoElementRef, componentRef); await BlazorMediaAPI.AddBlazorFPSListenerAsync(VideoElementRef, componentRef); }