idToR5StreamEvents function

R5StreamEvents idToR5StreamEvents(
  1. int id
)

Implementation

R5StreamEvents idToR5StreamEvents(int id) {
  switch (id) {
    case 0:
      return R5StreamEvents.CONNECTED;
    case 1:
      return R5StreamEvents.DISCONNECTED;
    case 2:
      return R5StreamEvents.ERROR;
    case 3:
      return R5StreamEvents.TIMEOUT;
    case 4:
      return R5StreamEvents.CLOSE;
    case 5:
      return R5StreamEvents.START_STREAMING;
    case 6:
      return R5StreamEvents.STOP_STREAMING;
    case 7:
      return R5StreamEvents.NET_STATUS;
    case 8:
      return R5StreamEvents.AUDIO_MUTE;
    case 9:
      return R5StreamEvents.AUDIO_UNMUTE;
    case 10:
      return R5StreamEvents.VIDEO_MUTE;
    case 11:
      return R5StreamEvents.VIDEO_UNMUTE;
    case 12:
      return R5StreamEvents.LICENSE_ERROR;
    case 13:
      return R5StreamEvents.LICENSE_VALID;
    case 14:
      return R5StreamEvents.BUFFER_FLUSH_START;
    case 15:
      return R5StreamEvents.BUFFER_FLUSH_EMPTY;
    case 16:
      return R5StreamEvents.VIDEO_RENDER_START;
    case 17:
      return R5StreamEvents.ABR_LEVEL_CHANGED;
    case 18:
      return R5StreamEvents.SRTP_KEY_GEN_ERROR;
    case 19:
      return R5StreamEvents.SRTP_KEY_HANDLE_ERROR;
    default:
      return R5StreamEvents.ERROR;
  }
}