We’re excited to announce Bit’s new home at bit.dev!Learn more

video

v2.6.5arrow_drop_down
v2.6.5
v2.5.5
STATUS
Passing
DOWNLOADS
57
LICENSE
Apache 2.0
VISIBILITY
Public
PUBLISHED
3 weeks ago
subject
A video player.
1 contributor
Like
Use video in your project ?
Copied
npm i @bit/grommet.grommet.video
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
modified
chevron_left
chevron_right

Video

A video player.

Usage

import { Video } from 'grommet';
<Video />

Properties

a11yTitle

Custom title to be used by screen readers.

string

alignSelf

How to align along the cross axis when contained in a Box or along the column axis when contained in a Grid.

start
center
end
stretch

gridArea

The name of the area to place this inside a parent Grid.

string

margin

The amount of margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.

none
xxsmall
xsmall
small
medium
large
xlarge
{
  bottom: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string,
  horizontal: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string,
  left: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string,
  right: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string,
  top: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string,
  vertical: 
    xxsmall
    xsmall
    small
    medium
    large
    xlarge
    string
}
string

autoPlay

Enables automatic playback of the video as soon as it is loaded.

boolean

controls

Whether to show playback controls and where to place them. Defaults to over.

false
over
below

fit

How the image fills its container.

cover
contain

loop

Enables continuous video looping.

boolean

mute

Enables video muting. This option is best used with the autoPlay flag.

boolean

Intrinsic element

video

Theme

global.edgeSize.responsiveBreakpoint

The actual breakpoint to trigger changes in the video component layout. Expects string.

Defaults to

small

global.edgeSize.xsmall

The width of the video scrubber. Expects object.

Defaults to

6px

video.captions.background

The caption background color of the video Expects string.

Defaults to

rgba(0, 0, 0, 0.7)

video.scrubber.color

The background color of the video scrubber. Expects string.

Defaults to

light-4

video.extend

Any additional style for Video. Expects string | (props) => {}.

Defaults to

undefined