@slashedcloud/player
Version:
A media player application utilizing Shaka Player for adaptive video streaming, capable of playing HLS, MPD and plain HTTP video streams.
43 lines (42 loc) • 943 B
TypeScript
/**
* Removes duplicates from array
* @param a
* @returns
*/
export declare const uniq: <T>(a: T[]) => T[];
/**
* Change frist letter to uppercase
* @param str
*/
export declare const capitalizeFirstLetter: (str: string) => string;
/**
* Asynchronous loader for external scripts
* @param src
* @returns
*/
export declare const loadScript: <T>(src: string) => Promise<Event>;
/**
* Check if value is an object
* @param value
* @returns
*/
export declare const isObjectLike: (value: any) => boolean;
/**
* Check if string is a valid URL
* @param string
* @returns
*/
export declare const isValidUrl: (value: any) => boolean;
/**
* Collect numbers from string
* @param label
* @returns
*/
export declare const getNumberFromLabel: (label: string) => number;
/**
* Structured clone object
* Some devices do not support structuredClone
* @param obj
* @returns
*/
export declare const _structuredClone: <T>(obj: T) => T;