Agora C++ API Reference for All Platforms
|
Inherited by agora::rtc::IMediaControlPacketSenderEx.
Public Member Functions | |
virtual int | sendPeerMediaControlPacket (media::base::user_id_t userId, const uint8_t *packet, size_t length)=0 |
virtual int | sendBroadcastMediaControlPacket (const uint8_t *packet, size_t length)=0 |
virtual | ~IMediaControlPacketSender () |
The IMediaControlPacketSender
class.
You can get the IMediaControlPacketSender
class object from a video track or audio track, and then send media control packets directly. The media control packets are RTCP/UDP packets that contain media control payload. If the track is disabled, the packets will be automatically discarded.
|
inlinevirtual |
|
pure virtual |
Sends the media control packet to a specified user. Currently, we only support sending packets through video tracks.
userId | ID of the user to send the packet to. |
packet | The pointer to the packet. |
length | The packet size. |
true
: Success.false
: Failure.
|
pure virtual |
Sends the media transport control packet to all users. Currently, we only support sending packets through video tracks.
packet | The pointer to the packet. |
length | The packet size. |
true
: Success.false
: Failure.