Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::rtc::IMediaRelayObserver Class Reference

`#include <IAgoraMediaRelayService.h>`

## Public Member Functions
virtual | ~IMediaRelayObserver ()
virtual void | onChannelMediaRelayStateChanged (CHANNEL_MEDIA_RELAY_STATE state, CHANNEL_MEDIA_RELAY_ERROR code)

## Constructor & Destructor Documentation

## ◆ ~IMediaRelayObserver()

virtual agora::rtc::IMediaRelayObserver::~IMediaRelayObserver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onChannelMediaRelayStateChanged()

virtual void agora::rtc::IMediaRelayObserver::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.