Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::media::IMediaRecorderObserverEx Class Referenceabstract

`#include <rtc_engine_i.h>`

## Public Member Functions
virtual void | onRecorderStateChanged (RecorderState state, RecorderReasonCode reason)=0
virtual void | onRecorderInfoUpdated (const RecorderInfo &info)=0
virtual | ~IMediaRecorderObserverEx ()

## Constructor & Destructor Documentation

## ◆ ~IMediaRecorderObserverEx()

virtual agora::media::IMediaRecorderObserverEx::~IMediaRecorderObserverEx | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onRecorderStateChanged()

virtual void agora::media::IMediaRecorderObserverEx::onRecorderStateChanged | ( | RecorderState | state,
|  | RecorderReasonCode | reason )
| pure virtual

Occurs when the recording state changes.

Since
  v4.0.0

When the local audio and video recording state changes, the SDK triggers this callback to report the current recording state and the reason for the change.

Parameters

  state | The current recording state. See RecorderState.
  reason | The reason for the state change. See RecorderReasonCode.

## ◆ onRecorderInfoUpdated()

virtual void agora::media::IMediaRecorderObserverEx::onRecorderInfoUpdated | ( | const RecorderInfo & | info | ) |
| pure virtual

Occurs when the recording information is updated.

Since
  v4.0.0

After you successfully register this callback and enable the local audio and video recording, the SDK periodically triggers the `onRecorderInfoUpdated` callback based on the set value of `recorderInfoUpdateInterval`. This callback reports the filename, duration, and size of the current recording file.

Parameters

  info | Information for the recording file. See RecorderInfo.