interface FreecasterPlayerProps {
    audioOnly?: boolean;
    autopause?: boolean;
    autoplay?: boolean;
    cast?: boolean;
    chaptersEnabled?: boolean;
    chaptersList?: string[];
    chaptersStyle?: "hidden" | "dot" | "full_width";
    controls?: boolean;
    enabled?: boolean;
    floatOnScroll?: boolean;
    height?: number;
    lang?: string;
    loop?: boolean;
    multiplay?: boolean;
    muted?: boolean;
    noads?: boolean;
    playsinline?: boolean;
    poster?: string;
    preload?: "none" | "metadata" | "auto";
    speedLabels?: string[];
    speedOptions?: number[];
    stats?: boolean;
    stretching?:
        | false
        | "none"
        | "fill"
        | "cover";
    subtitlesDefaultLang?: string;
    subtitlesLang?: string;
    subtitlesNative?: boolean;
    thumbnailsSrc?: string;
    trackersGaEnabled?: boolean;
    trackersGaTagIds?: string[];
    videoId?: string;
    volume?: number;
    watermarkEnabled?: boolean;
    width?: number;
}

Hierarchy (view full)

Properties

audioOnly?: boolean

Enable/disable minimal player UI.

false
autopause?: boolean

Enable/disable the automatic pause when the player is no longer visible in the viewport.

true
autoplay?: boolean

false Enable/disable the autoplay. There are limitations when used along with autoplay (See Google article for more information) You must set muted="true" in to be sure for it to work.

false
cast?: boolean

Enable/disable Chromecast/AirPlay.

false
chaptersEnabled?: boolean

Enable/disable chapters.

false
chaptersList?: string[]

The list of chapters.

[]
chaptersStyle?: "hidden" | "dot" | "full_width"

Specify the style to use for the timeline's cuepoints.

'hidden'
controls?: boolean

Enable/disable the control bar.

true
enabled?: boolean
floatOnScroll?: boolean

When enabled, a floating video container will be displayed when the user scroll past the player.

false
height?: number

Set the height of the player

undefined
lang?: string

The lang provided by the user (language-country (RFC 5646)).

undefined
loop?: boolean

If set to true, the video will start over upon ending.

false
multiplay?: boolean

Whether the player should pause if another player begins playback.

false
muted?: boolean

Enable/disable sound.

false, always true when autoplay is enabled
noads?: boolean

Enable/disabled advertising.

false
playsinline?: boolean

Enable/disable inline playback on iOS.

true
poster?: string

Set a specific poster.

undefined
preload?: "none" | "metadata" | "auto"

Video preload strategy

undefined
speedLabels?: string[]

List of speed labels

undefined
speedOptions?: number[]

List of speed factors

[0.2,0.5,1,2,10]
stats?: boolean

Trackers (such as Google Analytics, Mux, Youbora, ...) will be enabled.

false
stretching?:
    | false
    | "none"
    | "fill"
    | "cover"

Resize poster and video to fit player dimensions. 'fill' Fit player dimensions without maintaining aspect ratio. 'cover' Zoom and crop video to fill dimensions, maintaining aspect ratio. 'none' Display the actual size of the video file. (Black borders).

false
subtitlesDefaultLang?: string

Set an active subtitle from the desired language (2 letter ISO-639-1 code).

false
subtitlesLang?: string

Only show the specified language (2 letter ISO-639-1 code).

undefined
subtitlesNative?: boolean

Enable subtitles to be rendered by the browser supporting inline style or CSS rules within VTT file.

false
thumbnailsSrc?: string

Set specific thumbnails.

undefined
trackersGaEnabled?: boolean

Enable Google Analytics (GA4) support. By default, window.dataLayer will be used to push events toward GA4.

false
trackersGaTagIds?: string[]

Add Google Analytics (GA4) tag IDs to track.

undefined
videoId?: string

ID of the video

undefined
volume?: number

Set the volume percentage of the player. The value used must be between 0 and 1 (see MDN). If the user specifically muted the sound, it will not "force" the next time he loads the player. There are limitations when used along with autoplay: See Google article for more information.

undefined
watermarkEnabled?: boolean

Enable/disable the watermark.

false
width?: number

Set the width of the player.

undefined