Skip to Content

Video props reference

Configure Rixl React video IDs, playback, controls, captions, events, and analytics.

Import the shipped type instead of maintaining a separate interface:

import type {VideoProps} from "@rixl/media-react/video";

export const playerProps = {
  id: "YOUR_VIDEO_ID",
  muted: true,
  autoPlay: false,
  theme: "default",
} satisfies VideoProps;

Media and playback

Provide id to load a Rixl video. Published components resolve the ID through the SDK; direct src and videoData overrides are not production media sources.

PropTypeDefaultPurpose
idstring—Rixl video ID
autoPlaybooleanfalseRequest automatic playback
mutedbooleanfalseInitial mute preference
volumenumber1Initial volume from 0 to 1
loopbooleanfalseRepeat playback
playsInlinebooleantruePrefer inline mobile playback
posterstring""Poster URL override
thumbhashstring""Placeholder data
resumeProgressbooleantrueRestore saved playback progress

Browser autoplay policy still applies. Set muted explicitly for autoplay experiences. Effective mute can also depend on shared preferences and user interaction.

Player UI

PropTypeDefaultPurpose
themeVideoTheme"default"Player presentation
controlsbooleantrueBuilt-in player controls
progressBarbooleantrueSeek bar
chaptersbooleantrueChapter UI
heatmapbooleantrueHeatmap visualization
hotSegmentsbooleanfalseHot-segment indicators
allowPlayPausebooleantruePlay/pause interactions
allowFullscreenbooleantrueFullscreen control
allowPictureInPicturebooleantruePicture-in-picture control
soundDisabledbooleanfalseDisable sound controls
autoHideMsnumber3000Controls hide delay
langstring""Player language override

Use theme="hideUI" with scoped hooks for custom controls. Browser support and available media metadata determine which features can be used.

Analytics and layout

analytics defaults to true; analyticsPage defaults to "standalone". feedId, postId, userId, and userProperties supply context when appropriate.

className, style, and data-* attributes configure the custom-element host. Set dimensions explicitly. Host CSS does not select the internal shadow-DOM controls.

<Video id="YOUR_VIDEO_ID" style={{display: "block", width: "100%", aspectRatio: "16 / 9"}} />

Callbacks and refs

CallbackArgument
onPausedChangePaused boolean
onLoadingChangeLoading boolean
onRixlAnalyticsCustom event; payload at event.detail.event
onPlay, onPause, onEnded, onTimeUpdateForwarded DOM event
onLoadedMetadata, onVolumeChange, onRateChange, onQualityChange, onErrorForwarded DOM event

A ref receives the underlying RixlVideo element. React manages the player scope; use VideoPlayer to associate detached custom controls with one video rather than supplying a public playerId.