# 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 

``` html
<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)

``` html
<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"

``` CSharp
VideoStateOptions { CurrentTime = true };
```

![Sample](https://res.cloudinary.com/blazoredgitter/image/upload/v1596038582/blog/BlazorVideo800_o3fi40.gif)
