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