Definition of IPacketObserver. 
 
◆ onSendAudioPacket()
  
  
      
        
          | virtual bool agora::rtc::IPacketObserver::onSendAudioPacket  | 
          ( | 
          Packet &  | 
          packet | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Occurs when the local user sends an audio packet.
- Parameters
 - 
  
    | packet | The sent audio packet. See Packet.  | 
  
   
- Returns
 
- true: The audio packet is sent successfully.
 
- false: The audio packet is discarded. 
 
 
 
◆ onSendVideoPacket()
  
  
      
        
          | virtual bool agora::rtc::IPacketObserver::onSendVideoPacket  | 
          ( | 
          Packet &  | 
          packet | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Occurs when the local user sends a video packet.
- Parameters
 - 
  
    | packet | The sent video packet. See Packet.  | 
  
   
- Returns
 
- true: The video packet is sent successfully.
 
- false: The video packet is discarded. 
 
 
 
◆ onReceiveAudioPacket()
  
  
      
        
          | virtual bool agora::rtc::IPacketObserver::onReceiveAudioPacket  | 
          ( | 
          Packet &  | 
          packet | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Occurs when the local user receives an audio packet.
- Parameters
 - 
  
    | packet | The received audio packet. See Packet.  | 
  
   
- Returns
 
- true: The audio packet is received successfully.
 
- false: The audio packet is discarded. 
 
 
 
◆ onReceiveVideoPacket()
  
  
      
        
          | virtual bool agora::rtc::IPacketObserver::onReceiveVideoPacket  | 
          ( | 
          Packet &  | 
          packet | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Occurs when the local user receives a video packet.
- Parameters
 - 
  
    | packet | The received video packet. See Packet.  | 
  
   
- Returns
 
- true: The video packet is received successfully.
 
- false: The video packet is discarded.