VideoContentNode

VideoContentNode component for specifying video playback content

import { VideoContentNode } from "@roku-sdk/components";
VideoContentNode(props: IVideoContentNodeProps): JSX.Element

Description

VideoContentNode component for specifying video playback content.

A convenience wrapper around ContentNode used specifically for configuring video content with stream URL and format. Typically used as a child of a Video node.

Parameters

NameTypeDescription
propsIVideoContentNodeProps

Example

<video>
    <VideoContentNode
        title="Sample Video"
        url="https://example.com/stream.m3u8"
    />
</video>

Types

IVideoContentNodeProps

Properties for a video-specific ContentNode.

Extends IContentNodeProps with video stream URL and format fields commonly used when configuring a Scene Graph Video node's content.

NameTypeDescription
streamformat?stringThe stream format of the video content (SceneGraph field streamformat). See below.
url?stringStream URL for the video content. Overrides the base url field for explicit video use.

Extends IContentNodeProps.

IVideoContentNodeProps.streamformat

The stream format of the video content (SceneGraph field streamformat).

Valid values: "mp4", "hls", "ism", "dash", "mkv".


What’s Next

Did this page help you?