Work in Progress

Work In Progress - Video component for Blazor

I am currently working on a Blazor Video component.

Media Events do not bubble in general, and Blazor doesn't capture them.

This control will enable you to use events such as onplay, onpause, ontimeupdate etc (should be all events) in Blazor and control what data is available in each event.

You will be able to subscribe to individual events by name

<BlazorVideo OnPlay="OnPlay"
             OnPause="OnPause"
             class="w-100"
             style="max-width:800px;"
             controls="controls">
    <source src="https://res.cloudinary.com/blazoredgitter/video/upload/v1557015491/samples/elephants.mp4" type="video/mp4" />
</BlazorVideo>

Or subscribe to all events (mostly for demo purposes)

<BlazorVideo EventFired="OnEvent"
             class="w-100"
             style="max-width:800px;"
             controls="controls">
    <source src="https://res.cloudinary.com/blazoredgitter/video/upload/v1557015491/samples/elephants.mp4" type="video/mp4" />
</BlazorVideo>

You will be able to return any or all video properties, for example - the "ontimeupdate" event should only return the "currentTime"

VideoStateOptions { CurrentTime = true };

Sample

No Comments Yet