Home > hls.js > HlsListeners

HlsListeners interface

Defines each Event type and payload by Event name. Used in HlsEventEmitter to strongly type the event listener API.

Signature:

export interface HlsListeners 

Properties

Property Modifiers Type Description
hlsAudioTrackLoaded (event: Events.AUDIO_TRACK_LOADED, data: AudioTrackLoadedData) => void
hlsAudioTrackLoading (event: Events.AUDIO_TRACK_LOADING, data: TrackLoadingData) => void
hlsAudioTracksUpdated (event: Events.AUDIO_TRACKS_UPDATED, data: AudioTracksUpdatedData) => void
hlsAudioTrackSwitched (event: Events.AUDIO_TRACK_SWITCHED, data: AudioTrackSwitchedData) => void
hlsAudioTrackSwitching (event: Events.AUDIO_TRACK_SWITCHING, data: AudioTrackSwitchingData) => void
hlsBackBufferReached (event: Events.BACK_BUFFER_REACHED, data: BackBufferData) => void
hlsBufferAppended (event: Events.BUFFER_APPENDED, data: BufferAppendedData) => void
hlsBufferAppending (event: Events.BUFFER_APPENDING, data: BufferAppendingData) => void
hlsBufferCodecs (event: Events.BUFFER_CODECS, data: BufferCodecsData) => void
hlsBufferCreated (event: Events.BUFFER_CREATED, data: BufferCreatedData) => void
hlsBufferEos (event: Events.BUFFER_EOS, data: BufferEOSData) => void
hlsBufferFlushed (event: Events.BUFFER_FLUSHED, data: BufferFlushedData) => void
hlsBufferFlushing (event: Events.BUFFER_FLUSHING, data: BufferFlushingData) => void
hlsBufferReset (event: Events.BUFFER_RESET) => void
hlsCuesParsed (event: Events.CUES_PARSED, data: CuesParsedData) => void
hlsDestroying (event: Events.DESTROYING) => void
hlsError (event: Events.ERROR, data: ErrorData) => void
hlsFpsDrop (event: Events.FPS_DROP, data: FPSDropData) => void
hlsFpsDropLevelCapping (event: Events.FPS_DROP_LEVEL_CAPPING, data: FPSDropLevelCappingData) => void
hlsFragBuffered (event: Events.FRAG_BUFFERED, data: FragBufferedData) => void
hlsFragChanged (event: Events.FRAG_CHANGED, data: FragChangedData) => void
hlsFragDecrypted (event: Events.FRAG_DECRYPTED, data: FragDecryptedData) => void
hlsFragLoaded (event: Events.FRAG_LOADED, data: FragLoadedData) => void
hlsFragLoadEmergencyAborted (event: Events.FRAG_LOAD_EMERGENCY_ABORTED, data: FragLoadEmergencyAbortedData) => void
hlsFragLoading (event: Events.FRAG_LOADING, data: FragLoadingData) => void
hlsFragParsed (event: Events.FRAG_PARSED, data: FragParsedData) => void
hlsFragParsingInitSegment (event: Events.FRAG_PARSING_INIT_SEGMENT, data: FragParsingInitSegmentData) => void
hlsFragParsingMetadata (event: Events.FRAG_PARSING_METADATA, data: FragParsingMetadataData) => void
hlsFragParsingUserdata (event: Events.FRAG_PARSING_USERDATA, data: FragParsingUserdataData) => void
hlsInitPtsFound (event: Events.INIT_PTS_FOUND, data: InitPTSFoundData) => void
hlsKeyLoaded (event: Events.KEY_LOADED, data: KeyLoadedData) => void
hlsKeyLoading (event: Events.KEY_LOADING, data: KeyLoadingData) => void
hlsLevelLoaded (event: Events.LEVEL_LOADED, data: LevelLoadedData) => void
hlsLevelLoading (event: Events.LEVEL_LOADING, data: LevelLoadingData) => void
hlsLevelPtsUpdated (event: Events.LEVEL_PTS_UPDATED, data: LevelPTSUpdatedData) => void
hlsLevelsUpdated (event: Events.LEVELS_UPDATED, data: LevelsUpdatedData) => void
hlsLevelSwitched (event: Events.LEVEL_SWITCHED, data: LevelSwitchedData) => void
hlsLevelSwitching (event: Events.LEVEL_SWITCHING, data: LevelSwitchingData) => void
hlsLevelUpdated (event: Events.LEVEL_UPDATED, data: LevelUpdatedData) => void
hlsLiveBackBufferReached (event: Events.LIVE_BACK_BUFFER_REACHED, data: LiveBackBufferData) => void
hlsManifestLoaded (event: Events.MANIFEST_LOADED, data: ManifestLoadedData) => void
hlsManifestLoading (event: Events.MANIFEST_LOADING, data: ManifestLoadingData) => void
hlsManifestParsed (event: Events.MANIFEST_PARSED, data: ManifestParsedData) => void
hlsMaxAutoLevelUpdated (event: Events.MAX_AUTO_LEVEL_UPDATED, data: MaxAutoLevelUpdatedData) => void
hlsMediaAttached (event: Events.MEDIA_ATTACHED, data: MediaAttachedData) => void
hlsMediaAttaching (event: Events.MEDIA_ATTACHING, data: MediaAttachingData) => void
hlsMediaDetached (event: Events.MEDIA_DETACHED) => void
hlsMediaDetaching (event: Events.MEDIA_DETACHING) => void
hlsNonNativeTextTracksFound (event: Events.NON_NATIVE_TEXT_TRACKS_FOUND, data: NonNativeTextTracksData) => void
hlsSteeringManifestLoaded (event: Events.STEERING_MANIFEST_LOADED, data: SteeringManifestLoadedData) => void
hlsSubtitleFragProcessed (event: Events.SUBTITLE_FRAG_PROCESSED, data: SubtitleFragProcessedData) => void
hlsSubtitleTrackLoaded (event: Events.SUBTITLE_TRACK_LOADED, data: SubtitleTrackLoadedData) => void
hlsSubtitleTrackLoading (event: Events.SUBTITLE_TRACK_LOADING, data: TrackLoadingData) => void
hlsSubtitleTracksCleared (event: Events.SUBTITLE_TRACKS_CLEARED) => void
hlsSubtitleTracksUpdated (event: Events.SUBTITLE_TRACKS_UPDATED, data: SubtitleTracksUpdatedData) => void
hlsSubtitleTrackSwitch (event: Events.SUBTITLE_TRACK_SWITCH, data: SubtitleTrackSwitchData) => void