setErrorCallback

Callback is called when there is an error when playing a stream. The callback should be sent as the name of a function attached to window and it is sent a string of a human-readable error.

Parameter Name Type Required
callback string yes
Parameters are in the order they should be passed.