UNPKG

ranui

Version:

A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.

12 lines (11 loc) 635 B
import type { EngineFormat } from './types'; /** * `typeHint` (the player's `format` attribute) always wins when it's one of * the known engine names — an explicit override for extensionless/signed * streaming URLs that can't be sniffed. Otherwise falls back to matching the * URL's extension (query string/hash stripped first), defaulting to `native` * for anything unrecognized (including no `src` at all). `webrtc` (a WHEP * endpoint URL) has no extension convention to sniff at all — it's only ever * reached via the explicit hint. */ export declare function detectFormat(src: string, typeHint?: string): EngineFormat;