#include <NGIAgoraRtmpConnection.h>
The IRtmpConnectionObserver
class, which observes the connection state between the SDK and CDN.
◆ ~IRtmpConnectionObserver()
virtual agora::rtc::IRtmpConnectionObserver::~IRtmpConnectionObserver |
( |
| ) |
|
|
inlinevirtual |
◆ onConnected()
virtual void agora::rtc::IRtmpConnectionObserver::onConnected |
( |
const RtmpConnectionInfo & |
connectionInfo | ) |
|
|
pure virtual |
Occurs when the connection state between the SDK and CDN changes to STATE_CONNECTED(3)
.
- Parameters
-
◆ onConnectionFailure()
Occurs when the connection state between the SDK and CDN changes to STATE_FAILED(5)
.
- Parameters
-
◆ onDisconnected()
virtual void agora::rtc::IRtmpConnectionObserver::onDisconnected |
( |
const RtmpConnectionInfo & |
connectionInfo | ) |
|
|
pure virtual |
Occurs when the connection state between the SDK and CDN changes to STATE_DISCONNECTED(1)
.
- Parameters
-
◆ onReconnected()
virtual void agora::rtc::IRtmpConnectionObserver::onReconnected |
( |
const RtmpConnectionInfo & |
connectionInfo | ) |
|
|
pure virtual |
Occurs when the connection state between the SDK and CDN changes to STATE_RECONNECTED(6)
.
- Parameters
-
◆ onReconnecting()
virtual void agora::rtc::IRtmpConnectionObserver::onReconnecting |
( |
const RtmpConnectionInfo & |
connectionInfo | ) |
|
|
pure virtual |
Occurs when the connection state between the SDK and CDN changes to STATE_RECONNECTING(4)
.
- Parameters
-
◆ onTransferStatistics()
virtual void agora::rtc::IRtmpConnectionObserver::onTransferStatistics |
( |
uint64_t |
video_width, |
|
|
uint64_t |
video_height, |
|
|
uint64_t |
video_bitrate, |
|
|
uint64_t |
audio_bitrate, |
|
|
uint64_t |
video_frame_rate, |
|
|
uint64_t |
push_video_frame_cnt, |
|
|
uint64_t |
pop_video_frame_cnt |
|
) |
| |
|
pure virtual |
Reports the CDN streaming statistics.
The SDK triggers this callback once per second when the host pushes media streams to the CDN directly.
- Parameters
-
video_width | The width (px) of the current video frame. |
video_height | The height (px) of the current video frame. |
video_bitrate | The video bitrate (bps) of the current video frame. |
audio_bitrate | The audio bitrate (bps) of the current audio frame. |
video_frame_rate | The video frame rate (fps) of the current video frame. |
push_video_frame_cnt | The number of pushed video frames. |
pop_video_frame_cnt | The number of video frames actually pushed to the CDN. |
The documentation for this class was generated from the following file: