Skip to content

[Bug] Seeked event routing to seeking event erroneously #47

Description

@peterharding93

Describe the bug
The Seeked event is not firing in C#.

Investigation
It is bound, then fired correctly in JS browser, but not being correctly demuxed once it is invoked in C#. Stepping through the event handler finds the root cause: Typing mistake, where Seeked is being coupled through to Seeking instead of Seeked.

//BlazoredVideo.razor.cs:
protected virtual void OnChange(ChangeEventArgs args) {
...
    case VideoEvents.Seeked:
    	Seeking?.Invoke(videoData.State);         // Typo here. should be Seeked
    	SeekingEvent.InvokeAsync(videoData.State);  // Typo here. should be SeekedEvent
    	break;
    case VideoEvents.Seeking:
    	Seeking?.Invoke(videoData.State);
    	SeekingEvent.InvokeAsync(videoData.State);
    	break;
}

Workaround
I'm about to hook into the EventFired handler (which captures all events) as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingTriageIssue needs to be triaged

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions