playable
Version:
Video player based on HTML5Video
41 lines (40 loc) • 1.13 kB
TypeScript
declare type ITopBlockViewStyles = {
topBlock: string;
elementsContainer: string;
titleContainer: string;
liveIndicatorContainer: string;
activated: string;
hidden: string;
};
declare type ITopBlockViewCallbacks = {
onBlockMouseMove: EventListenerOrEventListenerObject;
onBlockMouseOut: EventListenerOrEventListenerObject;
};
declare type ITopBlockViewElements = {
title: HTMLElement;
liveIndicator: HTMLElement;
};
declare type ITopBlockViewConfig = {
elements: ITopBlockViewElements;
callbacks: ITopBlockViewCallbacks;
};
interface ITopBlock {
getElement(): HTMLElement;
isFocused: boolean;
show(): void;
hide(): void;
showTitle(): void;
hideTitle(): void;
showLiveIndicator(): void;
hideLiveIndicator(): void;
showContent(): void;
hideContent(): void;
destroy(): void;
}
interface ITopBlockAPI {
showTitle?(): void;
hideTitle?(): void;
showLiveIndicator?(): void;
hideLiveIndicator?(): void;
}
export { ITopBlockAPI, ITopBlock, ITopBlockViewStyles, ITopBlockViewElements, ITopBlockViewCallbacks, ITopBlockViewConfig, };