# `Kino.Video`
[🔗](https://github.com/livebook-dev/kino/blob/v0.19.0/lib/kino/video.ex#L1)

A kino for rendering a binary video.

## Examples

    content = File.read!("/path/to/video.mp4")
    Kino.Video.new(content, :mp4)

    content = File.read!("/path/to/video.mp4")
    Kino.Video.new(content, :mp4, autoplay: true, loop: true)

# `common_video_type`

```elixir
@type common_video_type() :: :mp4 | :ogg | :avi | :mwv | :mov
```

# `mime_type`

```elixir
@type mime_type() :: binary()
```

# `t`

```elixir
@type t() :: Kino.JS.Live.t()
```

# `new`

```elixir
@spec new(binary(), common_video_type() | mime_type(), list()) :: t()
```

Creates a new kino displaying the given binary video.

The given type can be either `:mp4`, `:ogg`, `:avi`, `:wmv`, `:mov`
or a string with video MIME type.

## Options

  * `:autoplay` - whether the video should start playing as soon as
    it is rendered. Defaults to `false`

  * `:loop` - whether the video should loop. Defaults to `false`

  * `:muted` - whether the video should be muted. Defaults to `false`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
