Class: shaka.util.FakeEvent

A utility to simplify the creation of fake events.

Source:

Methods

(static) create(dictnon-null) → (non-null) {Event}

Return an Event object based on the dictionary. The event should contain all of the same properties from the dict.
Parameters:
Name Type Description
dict Object
Source:
Returns:
Type
Event

(static) createErrorEvent(error) → (non-null) {Event}

Return an 'error' Event object based on an error object.
Parameters:
Name Type Description
error *
Source:
Returns:
Type
Event