vue-silentbox
Version:
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://silentbox.rocek.dev/images/sb3-dark.png"> <img alt="SilentBox logo." src="https://silentbox.rocek.dev/images/sb3-light.png"> </picture> </p>
30 lines (29 loc) • 701 B
TypeScript
/**
* Check whether video is embedable and supported by SilentBox
*
* @param {string} itemSrc
* @return boolean
*/
export declare const isEmbedVideo: (itemSrc: string) => boolean;
/**
* Check whether item is supported local video.
*
* @param {string} itemSrc
* @return boolean
*/
export declare const isLocalVideo: (itemSrc: string) => boolean;
/**
* Get thumbnail for item.
*
* @param {string} src
* @param {string} fallbackThumbnail
* @return string
*/
export declare const getThumbnail: (src: string, fallbackThumbnail?: string) => string;
/**
* Check for valid URL string.
*
* @param {string} src
* return boolean
*/
export declare const isValidURL: (src: string) => boolean;