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 and Description
    `EventEmitterUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `emitError(EventEmitter eventEmitter, java.lang.String message)` Emits an `EventType.ERROR` event with a `BrightcoveError.MESSAGE` property.
    `static void` | `emitError(EventEmitter eventEmitter, java.lang.String message, java.lang.Exception exception)` Emits an `EventType.ERROR` event with a `BrightcoveError.MESSAGE` property.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EventEmitterUtil

          public EventEmitterUtil()

  - ### Method Detail

    - #### emitError

          public static void emitError(EventEmitter eventEmitter,
                                       java.lang.String message,
                                       java.lang.Exception exception)

      Emits an `EventType.ERROR` event with a `BrightcoveError.MESSAGE` property.
      Parameters:
        `eventEmitter` - The SDK event emitter object.
        `message` - the message
        `exception` - the exception

    - #### emitError

          public static void emitError(EventEmitter eventEmitter,
                                       java.lang.String message)

      Emits an `EventType.ERROR` event with a `BrightcoveError.MESSAGE` property.
      Parameters:
        `eventEmitter` - The SDK event emitter object.
        `message` - the message