UNPKG

vnetwork-player

Version:

A React component custom player support video m3u8, mp4

15 lines (14 loc) 652 B
export declare const VOLUME_KEY = "vnetwork-player-volume"; export declare const MUTED_KEY = "vnetwork-player-muted"; export declare const formatVideoTime: (seconds: number) => string; export declare const playSpeedOptions: { label: string; value: number; }[]; export declare const removeSearchParams: (url: string) => string; /** * Extracts the lowercase file extension from a media URL ("mp4", "m3u8", ...). * Safe against query strings containing dots (signed tokens/JWT), dots in * directory names, uppercase extensions, and missing extensions. */ export declare const getSourceType: (url?: string | undefined) => string;