You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
JS exceptions does not get propagated to C# when calling methods such as StartPlayback, Instead they end up as an 'Uncaught (in promise) DOMException'.
This seems to happen due to trying to handle the JS promise synchronously in BlazoredVideo.DoInvokeAsync/DoInvokeAsync when running in WebAssembly. When I pulled down the code and tested with the IJSInProcessObjectReference code removed, the issue seemed to be resolved.
To Reproduce
Steps to reproduce the behavior (In Chrome, as chrome will throw an exception when trying to start unmuted playback without user interaction):
Go to the file 'AllEventsAllOptions.razor' in the project 'SharedRCL' from your own samples.
Add an action to the BlazoredVideo elements CanPlay with the following code await video.StartPlayback();
Start the WebAssembly project without interacting with any content, wait for all content to load.
Open the devtools and look in console. There should be an 'Uncaught (in promise) DOMException'.
Expected behavior
The JSException should be propagated to C# so that it can be handled appropriately.
Screenshots
Example of the uncaught exception:
Hosting Model (is this issue happening with a certain hosting model?):
Blazor WebAssembly
The text was updated successfully, but these errors were encountered:
Describe the bug
JS exceptions does not get propagated to C# when calling methods such as
StartPlayback
, Instead they end up as an 'Uncaught (in promise) DOMException'.This seems to happen due to trying to handle the JS promise synchronously in
BlazoredVideo.DoInvokeAsync/DoInvokeAsync
when running in WebAssembly. When I pulled down the code and tested with theIJSInProcessObjectReference
code removed, the issue seemed to be resolved.To Reproduce
Steps to reproduce the behavior (In Chrome, as chrome will throw an exception when trying to start unmuted playback without user interaction):
BlazoredVideo
elementsCanPlay
with the following codeawait video.StartPlayback();
Expected behavior
The JSException should be propagated to C# so that it can be handled appropriately.
Screenshots
Example of the uncaught exception:
Hosting Model (is this issue happening with a certain hosting model?):
The text was updated successfully, but these errors were encountered: