Package com.brightcove.player.util
Class EventEmitterUtil
java.lang.Object
com.brightcove.player.util.EventEmitterUtil
An utility class to emit common events in the Brightcove SDK.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
emitError
(EventEmitter eventEmitter, String message) Emits anEventType.ERROR
event with aBrightcoveError.MESSAGE
property.static void
emitError
(EventEmitter eventEmitter, String message, Exception exception) Emits anEventType.ERROR
event with aBrightcoveError.MESSAGE
property.
-
Constructor Details
-
EventEmitterUtil
public EventEmitterUtil()
-
-
Method Details
-
emitError
Emits anEventType.ERROR
event with aBrightcoveError.MESSAGE
property.- Parameters:
eventEmitter
- The SDK event emitter object.message
- the messageexception
- the exception
-
emitError
Emits anEventType.ERROR
event with aBrightcoveError.MESSAGE
property.- Parameters:
eventEmitter
- The SDK event emitter object.message
- the message
-