Agora RTC Objective-C API Reference Refactor

Public Member Functions
IMediaRelayObserver Class Reference

## Public Member Functions
virtual void | onChannelMediaRelayStateChanged (CHANNEL_MEDIA_RELAY_STATE state, CHANNEL_MEDIA_RELAY_ERROR code)
virtual void | onChannelMediaRelayEvent (CHANNEL_MEDIA_RELAY_EVENT code)

## Constructor & Destructor Documentation

## ◆ ~IMediaRelayObserver()

virtual ~IMediaRelayObserver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onChannelMediaRelayStateChanged()

virtual void onChannelMediaRelayStateChanged | ( | CHANNEL_MEDIA_RELAY_STATE | state,
|  | CHANNEL_MEDIA_RELAY_ERROR | code
| ) |  |
| inlinevirtual

Occurs when the state of the media stream relay changes.

The SDK returns the state of the current media relay with any error message.

Parameters

  state | The state code in CHANNEL_MEDIA_RELAY_STATE.
  code | The error code in CHANNEL_MEDIA_RELAY_ERROR.

## ◆ onChannelMediaRelayEvent()

virtual void onChannelMediaRelayEvent | ( | CHANNEL_MEDIA_RELAY_EVENT | code | ) |
| inlinevirtual

Reports events during the media stream relay.

Deprecated:
  v4.2.0. This callback is not recommended and will be removed in future releases.

Parameters

  code | The event code in CHANNEL_MEDIA_RELAY_EVENT.