Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.09 KB

File metadata and controls

46 lines (34 loc) · 1.09 KB

ErrorOverlay

Component that renders to indicate user when Kaltura player got an error

Props

Prop Description
errorHead Valid Preact node
permanent Render ErrorOverlay component despite if player got and error or not

Player configuration

This guide assumes you are using the Kaltura Player

In order to override error-overlay background add backgroundUrl link to player config

const config = {
    ...
    ui: {
        components: {
            errorOverlay: {
                backgroundUrl: "https://custom-error-overlay-image-url"
            }
        }
    }
    ...
}

const player = KalturaPlayer.setup(config);

Usage Example

//@flow import { h, ErrorOverlay } from 'playkit-js-ui';

export default function customUIPreset(props: any) {
    return (
        <ErrorOverlay />
    );
}