#include <NGIAgoraRtmpUser.h>
◆ onAudioTrackPublishSuccess()
virtual void agora::rtmp::IRtmpUserObserver::onAudioTrackPublishSuccess |
( |
agora_refptr< rtc::ILocalAudioTrack > |
audioTrack | ) |
|
|
pure virtual |
Occurs when the first packet of the local audio track is sent, indicating that the local audio track is successfully published.
- Parameters
-
audioTrack | The pointer to ILocalAudioTrack. |
◆ onAudioTrackPublicationFailure()
virtual void agora::rtmp::IRtmpUserObserver::onAudioTrackPublicationFailure |
( |
agora_refptr< rtc::ILocalAudioTrack > |
audioTrack, |
|
|
PublishAudioError |
error |
|
) |
| |
|
pure virtual |
Occurs when the local audio track fails to be published.
- Parameters
-
audioTrack | The pointer to ILocalAudioTrack. |
error | The error information: #RtmpAudioStreamError. |
◆ onVideoTrackPublishSuccess()
virtual void agora::rtmp::IRtmpUserObserver::onVideoTrackPublishSuccess |
( |
agora_refptr< rtc::ILocalVideoTrack > |
videoTrack | ) |
|
|
pure virtual |
Occurs when the first packet of the local video track is sent, indicating that the local video track is successfully published.
- Parameters
-
videoTrack | The pointer to ILocalVideoTrack. |
◆ onVideoTrackPublicationFailure()
virtual void agora::rtmp::IRtmpUserObserver::onVideoTrackPublicationFailure |
( |
agora_refptr< rtc::ILocalVideoTrack > |
videoTrack, |
|
|
PublishVideoError |
error |
|
) |
| |
|
pure virtual |
Occurs when the local video track fails to be published.
- Parameters
-
videoTrack | The pointer to ILocalVideoTrack. |
error | The error information: #RtmpVideoStreamError. |