Skip to main content

VideoProps

interface VideoProps extends MediaProps

Properties

alignContent

Inherited from MediaProps.alignContent

alignItems

Inherited from MediaProps.alignItems

alignSelf

Inherited from MediaProps.alignSelf

alpha

The alpha value of this video.

Unlike opacity, the alpha value affects only the video itself, leaving the fill, stroke, and children intact.


antialiased

Inherited from MediaProps.antialiased

arrowSize

Controls the size of the end and start arrows.

To make the arrows visible make sure to enable startArrow and/or endArrow.

Inherited from MediaProps.arrowSize

awaitCanPlay

Inherited from MediaProps.awaitCanPlay

basis

Inherited from MediaProps.basis

bottom

The position of the bottom edge of this node.

This shortcut property will set the node's position so that the bottom edge ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.bottom

bottomLeft

The position of the bottom left corner of this node.

This shortcut property will set the node's position so that the bottom left corner ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.bottomLeft

bottomRight

The position of the bottom right corner of this node.

This shortcut property will set the node's position so that the bottom right corner ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.bottomRight

cache

Inherited from MediaProps.cache

cachePadding

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from MediaProps.cachePadding

cachePaddingBottom

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from MediaProps.cachePaddingBottom

cachePaddingLeft

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from MediaProps.cachePaddingLeft

cachePaddingRight

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from MediaProps.cachePaddingRight

cachePaddingTop

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from MediaProps.cachePaddingTop

children

Inherited from MediaProps.children

clip

clip?: SignalValueboolean
Inherited from MediaProps.clip

closed

Whether the curve should be closed.

Closed curves have their start and end points connected.

Inherited from MediaProps.closed

columnGap

Inherited from MediaProps.columnGap

composite

Inherited from MediaProps.composite

compositeOperation

compositeOperation?: SignalValueGlobalCompositeOperation
Inherited from MediaProps.compositeOperation

cornerSharpness

Controls the sharpness of smoothCorners.

This property only affects the way rounded corners are drawn. To control the corner radius use the radius property.

Requires smoothCorners to be enabled to have any effect. By default, corner sharpness is set to 0.6 which represents a smooth, circle-like rounding. At 0 the edges are squared off.

Inherited from MediaProps.cornerSharpness

decoder

decoder?: SignalValuenull'web''ffmpeg''slow'

Which decoder to use during rendering. The web decoder is the fastest but only supports MP4 files. The ffmpeg decoder is slower and more resource intensive but supports more formats. The slow decoder is the slowest but supports all formats.


direction

Inherited from MediaProps.direction

end

A percentage from the start after which the curve should be clipped.

The portion of the curve that comes after the given percentage will be made invisible.

This property is usefully for animating the curve appearing on the screen. The value of 0 means the very start of the curve (accounting for the startOffset) while 1 means the very end (accounting for the endOffset).

Inherited from MediaProps.end

endArrow

Whether to display an arrow at the end of the visible curve.

Use arrowSize to control the size of the arrow.

Inherited from MediaProps.endArrow

endOffset

The offset in pixels from the end of the curve.

This property lets you specify where along the defined curve the actual visible portion ends. For example, setting it to 20 will make the last 20 pixels of the curve invisible.

This property is useful for trimming the curve using a fixed distance. If you want to animate the curve appearing on the screen, use end instead.

Inherited from MediaProps.endOffset

fill

Inherited from MediaProps.fill

filters

Inherited from MediaProps.filters

fontFamily

Inherited from MediaProps.fontFamily

fontSize

Inherited from MediaProps.fontSize

fontStyle

Inherited from MediaProps.fontStyle

fontWeight

Inherited from MediaProps.fontWeight

gap

Inherited from MediaProps.gap

grow

Inherited from MediaProps.grow

height

Inherited from MediaProps.height

justifyContent

Inherited from MediaProps.justifyContent

key

key?: string
Inherited from MediaProps.key

layout

Inherited from MediaProps.layout

left

The position of the left edge of this node.

This shortcut property will set the node's position so that the left edge ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.left

letterSpacing

Inherited from MediaProps.letterSpacing

lineCap

lineCap?: SignalValueCanvasLineCap
Inherited from MediaProps.lineCap

lineDash

Inherited from MediaProps.lineDash

lineDashOffset

Inherited from MediaProps.lineDashOffset

lineHeight

Inherited from MediaProps.lineHeight

lineJoin

lineJoin?: SignalValueCanvasLineJoin
Inherited from MediaProps.lineJoin

lineWidth

Inherited from MediaProps.lineWidth

loop

loop?: SignalValueboolean
Inherited from MediaProps.loop

margin

Inherited from MediaProps.margin

marginBottom

Inherited from MediaProps.marginBottom

marginLeft

Inherited from MediaProps.marginLeft

marginRight

Inherited from MediaProps.marginRight

marginTop

Inherited from MediaProps.marginTop

maxHeight

Inherited from MediaProps.maxHeight

maxWidth

Inherited from MediaProps.maxWidth

middle

The position of the center of this node.

This shortcut property will set the node's position so that the center ends up in the given place. If present, overrides the position property. When offset is not set, this will be the same as the position.

Inherited from MediaProps.middle

minHeight

Inherited from MediaProps.minHeight

minWidth

Inherited from MediaProps.minWidth

offset

Inherited from MediaProps.offset

offsetX

Inherited from MediaProps.offsetX

offsetY

Inherited from MediaProps.offsetY

opacity

Inherited from MediaProps.opacity

padding

Inherited from MediaProps.padding

paddingBottom

Inherited from MediaProps.paddingBottom

paddingLeft

Inherited from MediaProps.paddingLeft

paddingRight

Inherited from MediaProps.paddingRight

paddingTop

Inherited from MediaProps.paddingTop

play

play?: boolean
Inherited from MediaProps.play

playbackRate

playbackRate?: number
Inherited from MediaProps.playbackRate

position

Inherited from MediaProps.position

radius

Rounds the corners of this rectangle.

The value represents the radius of the quarter circle that is used to round the corners. If the value is a number, the same radius is used for all corners. Passing an array of two to four numbers will set individual radii for each corner. Individual radii correspond to different corners depending on the number of values passed:

// top-left-and-bottom-right | top-right-and-bottom-left
[10, 30]
// top-left | top-right-and-bottom-left | bottom-right
[10, 20, 30]
// top-left | top-right | bottom-right | bottom-left
[10, 20, 30, 40]
Inherited from MediaProps.radius

ratio

Inherited from MediaProps.ratio

ref

Inherited from MediaProps.ref

The position of the right edge of this node.

This shortcut property will set the node's position so that the right edge ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.right

rotation

Inherited from MediaProps.rotation

rowGap

Inherited from MediaProps.rowGap

scale

Inherited from MediaProps.scale

scaleX

Inherited from MediaProps.scaleX

scaleY

Inherited from MediaProps.scaleY

shaders

shaders?: PossibleShaderConfig
Experimental
This is an experimental feature. The behavior and API may change drastically between minor releases.
Inherited from MediaProps.shaders

shadowBlur

Inherited from MediaProps.shadowBlur

shadowColor

Inherited from MediaProps.shadowColor

shadowOffset

Inherited from MediaProps.shadowOffset

shadowOffsetX

Inherited from MediaProps.shadowOffsetX

shadowOffsetY

Inherited from MediaProps.shadowOffsetY

shrink

Inherited from MediaProps.shrink

size

Inherited from MediaProps.size

skew

Inherited from MediaProps.skew

skewX

Inherited from MediaProps.skewX

skewY

Inherited from MediaProps.skewY

smoothCorners

Enables corner smoothing.

This property only affects the way rounded corners are drawn. To control the corner radius use the radius property.

When enabled, rounded corners are drawn continuously using Bézier curves rather than quarter circles. The sharpness of the curve can be controlled with cornerSharpness.

You can read more about corner smoothing in this article by Nick Lawrence.

Inherited from MediaProps.smoothCorners

smoothing

Whether the video should be smoothed.

When disabled, the video will be scaled using the nearest neighbor interpolation with no smoothing. The resulting video will appear pixelated.


spawner

Deprecated

Use children instead.

Inherited from MediaProps.spawner

src

Inherited from MediaProps.src

start

A percentage from the start before which the curve should be clipped.

The portion of the curve that comes before the given percentage will be made invisible.

This property is usefully for animating the curve appearing on the screen. The value of 0 means the very start of the curve (accounting for the startOffset) while 1 means the very end (accounting for the endOffset).

Inherited from MediaProps.start

startArrow

Whether to display an arrow at the start of the visible curve.

Use arrowSize to control the size of the arrow.

Inherited from MediaProps.startArrow

startOffset

The offset in pixels from the start of the curve.

This property lets you specify where along the defined curve the actual visible portion starts. For example, setting it to 20 will make the first 20 pixels of the curve invisible.

This property is useful for trimming the curve using a fixed distance. If you want to animate the curve appearing on the screen, use start instead.

Inherited from MediaProps.startOffset

stroke

Inherited from MediaProps.stroke

strokeFirst

Inherited from MediaProps.strokeFirst

tagName

tagName?: keyof HTMLElementTagNameMap
Inherited from MediaProps.tagName

textAlign

textAlign?: SignalValueCanvasTextAlign
Inherited from MediaProps.textAlign

textDirection

textDirection?: SignalValueCanvasDirection
Inherited from MediaProps.textDirection

textWrap

Inherited from MediaProps.textWrap

time

Inherited from MediaProps.time

top

The position of the top edge of this node.

This shortcut property will set the node's position so that the top edge ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.top

topLeft

The position of the top left corner of this node.

This shortcut property will set the node's position so that the top left corner ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.topLeft

topRight

The position of the top right corner of this node.

This shortcut property will set the node's position so that the top right corner ends up in the given place. If present, overrides the position property.

Inherited from MediaProps.topRight

volume

volume?: number
Inherited from MediaProps.volume

width

Inherited from MediaProps.width

wrap

Inherited from MediaProps.wrap

x

x?: SignalValuenumber
Inherited from MediaProps.x

y

y?: SignalValuenumber
Inherited from MediaProps.y

zIndex

Inherited from MediaProps.zIndex