Agora C++ API Reference for All Platforms
Public Types | Public Member Functions | Public Attributes | List of all members
agora::rtc::ReceivePacketHandler Struct Reference

Public Types

using onAudioPacketType = std::function< int(audio_packet_t &)>
 
using onVideoPacketType = std::function< int(video_packet_t &)>
 
using onVideoRtcpPacketType = std::function< int(video_rtcp_packet_t &)>
 
using onVideoReportPacketType = std::function< int(video_report_packet_t &)>
 
using onVideoCustomCtrlPacketType = std::function< int(video_custom_ctrl_broadcast_packet_t &)>
 
using onAudioFrameType = std::function< int(SAudioFrame &)>
 

Public Member Functions

 ReceivePacketHandler (onAudioPacketType &&onAudioPacket=nullptr, onVideoPacketType &&onVideoPacket=nullptr, onVideoRtcpPacketType &&onVideoRtcpPacket=nullptr, onVideoReportPacketType &&onVideoReportPacket=nullptr, onVideoCustomCtrlPacketType &&onVideoCustomCtrlPacket=nullptr, onAudioFrameType &&onAudioFrame=nullptr)
 
 ReceivePacketHandler (ReceivePacketHandler &&rhs)
 

Public Attributes

onAudioPacketType onAudioPacket_
 
onVideoPacketType onVideoPacket_
 
onVideoRtcpPacketType onVideoRtcpPacket_
 
onVideoReportPacketType onVideoReportPacket_
 
onVideoCustomCtrlPacketType onVideoCustomCtrlPacket_
 
onAudioFrameType onAudioFrame_
 

Member Typedef Documentation

◆ onAudioPacketType

◆ onVideoPacketType

◆ onVideoRtcpPacketType

◆ onVideoReportPacketType

◆ onVideoCustomCtrlPacketType

◆ onAudioFrameType

Constructor & Destructor Documentation

◆ ReceivePacketHandler() [1/2]

agora::rtc::ReceivePacketHandler::ReceivePacketHandler ( onAudioPacketType &&  onAudioPacket = nullptr,
onVideoPacketType &&  onVideoPacket = nullptr,
onVideoRtcpPacketType &&  onVideoRtcpPacket = nullptr,
onVideoReportPacketType &&  onVideoReportPacket = nullptr,
onVideoCustomCtrlPacketType &&  onVideoCustomCtrlPacket = nullptr,
onAudioFrameType &&  onAudioFrame = nullptr 
)
inline

◆ ReceivePacketHandler() [2/2]

agora::rtc::ReceivePacketHandler::ReceivePacketHandler ( ReceivePacketHandler &&  rhs)
inline

Member Data Documentation

◆ onAudioPacket_

onAudioPacketType agora::rtc::ReceivePacketHandler::onAudioPacket_

◆ onVideoPacket_

onVideoPacketType agora::rtc::ReceivePacketHandler::onVideoPacket_

◆ onVideoRtcpPacket_

onVideoRtcpPacketType agora::rtc::ReceivePacketHandler::onVideoRtcpPacket_

◆ onVideoReportPacket_

onVideoReportPacketType agora::rtc::ReceivePacketHandler::onVideoReportPacket_

◆ onVideoCustomCtrlPacket_

onVideoCustomCtrlPacketType agora::rtc::ReceivePacketHandler::onVideoCustomCtrlPacket_

◆ onAudioFrame_

onAudioFrameType agora::rtc::ReceivePacketHandler::onAudioFrame_