UNPKG

hjplayer

Version:

hjplayer, a HTML5 Player, can play flv and hls by Media Source Extension, based on typescript;

21 lines (18 loc) 713 B
export interface AudioGroup { id: string codec: string } export type MediaPlaylistType = 'AUDIO' | 'VIDEO' | 'SUBTITLES' | 'CLOSED-CAPTIONS' export interface MediaPlaylist { name: string // 'main' is a custom type added to signal a audioCodec in main track?; see playlist-loader~L310 type: MediaPlaylistType | 'main' default: boolean // implicit false if not present autoselect: boolean // implicit false if not present forced: boolean // implicit false if not present id: number // incrementing number to track media playlists groupId?: string // not optional in HLS playlists, but it isn't always specified. url?: string lang?: string audioCodec?: string }