|
Agora RTC Objective-C API Reference
Refactor
|
Public Member Functions | |
| virtual int | sendPeerMediaControlPacket (media::base::user_id_t userId, const uint8_t *packet, size_t length, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
| virtual int | sendBroadcastMediaControlPacket (const uint8_t *packet, size_t length, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
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.