-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
BugSomething isn't workingSomething isn't workingTriageIssue needs to be triagedIssue needs to be triaged
Description
Describe the bug
Net9 BlazoredVideo 1.0.1
The video plays normally , but the TimeUpdate parameter is empty, and many error messages are output in the console
To Reproduce
Steps to reproduce the behavior:
<BlazoredVideo Play="OnPlay" TimeUpdate="TimeChange"
class="w-100"
style="max-width:800px;"
controls="controls">
<source src="/api/video" type="video/mp4" />
</BlazoredVideo>
private void OnPlay(VideoState state)
{
}
private void TimeChange(VideoState state)
{
if (state == null)
return;
var t = state.CurrentTime;
Console.WriteLine(t);
}
Error Message:
BlazoredVideo: Error: Failed to convert the JSON: {"name":"timeupdate"}
System.NullReferenceException: Object reference not set to an instance of an object.
at Blazored.Video.BlazoredVideo.OnChange(ChangeEventArgs args)
Expected behavior
TimeChange(VideoState state) state should not be null
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingTriageIssue needs to be triagedIssue needs to be triaged
