Agora Java API Reference for Android
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_