# Video

URL: https://docs.wisej.com/api/wisej.web/media/wisej.web.video

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

- Control
- Media
- [Video](/api/wisej.web/media/wisej.web.video)
Represents a [Video](/api/wisej.web/media/wisej.web.video) control that displays a video file.

- C# - VB.NET

```csharp
public class Video : Media
```

```visual
Public Class Video
    Inherits Media
```

## Constructors

### ![Instance member](/img/api/instance.png) Video()

Initializes a new instance of [Video](/api/wisej.web/media/wisej.web.video) .

## Properties

### ![Instance member](/img/api/instance.png) ObjectFit

[ObjectFit](/api/wisej.web/enumerations/wisej.web.objectfit) : Gets or sets the object-fit value for the video. to apply to the video. (Default: `Contain` )

See [https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) .

### ![Instance member](/img/api/instance.png) PlaysInline

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Gets or sets the presence of the playsinline attribute. (Default: `False` )

### ![Instance member](/img/api/instance.png) PosterImage

[Image](https://docs.microsoft.com/dotnet/api/system.drawing.image) : Specifies an image to be shown while the video is downloading, or until the user hits the play button.

### ![Instance member](/img/api/instance.png) PosterImageSource

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns or sets the theme name or URL for the image to display in the [Video](/api/wisej.web/media/wisej.web.video) control.

## Methods

### ![Protected member](/img/api/protected.png) OnWebRender(config)

Renders the client component.

| Parameter | Type | Description | **config** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic configuration object. 

## Implements

| Name | Description | [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata) | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. | [IBindableComponent](/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface. | [IDropTarget](/api/wisej.web/interfaces/wisej.web.idroptarget) | Controls that support drag & drop operations implement this interface. | [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent) | All wisej components implement this interface. | [IWisejControl](/api/wisej.core/interfaces/wisej.core.iwisejcontrol) | All wisej controls derived from theControl class must implement this interface. | [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.
