Agora RTC Objective-C API Reference  Refactor
Public Member Functions
IMediaPacketSender Class Referenceabstract

Inherits RefCountInterface.

Public Member Functions

virtual int sendMediaPacket (const uint8_t *packet, size_t length, const media::base::PacketOptions &options)=0
 

Detailed Description

The IMediaPacketSender class.

You can use the IMediaPacketSender class to create a LocalVideoTrack or LocalAudioTrack, and then send media packets directly to the track. The media packets are RTP/UDP packets that contain media payload. If the track is disabled, the packets will be automatically discarded.

Constructor & Destructor Documentation

◆ ~IMediaPacketSender()

~IMediaPacketSender ( )
inlineprotected

Member Function Documentation

◆ sendMediaPacket()

virtual int sendMediaPacket ( const uint8_t *  packet,
size_t  length,
const media::base::PacketOptions options 
)
pure virtual

Sends the frame packet to the local track.

Parameters
packetThe pointer to the packet.
lengthThe packet size.
optionsThe packet information: PacketOptions.
Returns
  • true: Success.
  • false: Failure.

◆ AddRef()

virtual void AddRef ( ) const
pure virtualinherited

◆ Release()

virtual RefCountReleaseStatus Release ( ) const
pure virtualinherited

◆ HasOneRef()

virtual bool HasOneRef ( ) const
pure virtualinherited