Home Reference Source
import {Observer} from 'hls.js/src/observer.ts'
public class | source

Observer

Extends:

eventemitter3~EventEmitter → Observer

Simple adapter sub-class of Nodejs-like EventEmitter.

Method Summary

Public Methods
public

trigger(event: string, data: Array)

We simply want to pass along the event-name itself in every call to a handler, which is the purpose of our trigger method extending the standard API.

Public Methods

public trigger(event: string, data: Array) source

We simply want to pass along the event-name itself in every call to a handler, which is the purpose of our trigger method extending the standard API.

Params:

NameTypeAttributeDescription
event string
data Array