webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | List of all members
<RTCRtpReceiverDelegate > Protocol Reference

#import <RTCRtpReceiver.h>

Inheritance diagram for <RTCRtpReceiverDelegate >:

Instance Methods

(void- rtpReceiver:didReceiveFirstPacketForMediaType:
 
(void- rtpReceiver:didReceiveFirstPacketForMediaType:
 

Method Documentation

◆ rtpReceiver:didReceiveFirstPacketForMediaType:() [1/2]

- (void RTCRtpReceiverDelegate) rtpReceiver: (RTCRtpReceiver *)  rtpReceiver
didReceiveFirstPacketForMediaType: (RTCRtpMediaType)  mediaType 

Called when the first RTP packet is received.

Note: Currently if there are multiple RtpReceivers of the same media type, they will all call OnFirstPacketReceived at once.

For example, if we create three audio receivers, A/B/C, they will listen to the same signal from the underneath network layer. Whenever the first audio packet is received, the underneath signal will be fired. All the receivers A/B/C will be notified and the callback of the receiver's delegate will be called.

The process is the same for video receivers.

◆ rtpReceiver:didReceiveFirstPacketForMediaType:() [2/2]

- (void RTCRtpReceiverDelegate) rtpReceiver: (RTCRtpReceiver *)  rtpReceiver
didReceiveFirstPacketForMediaType: (RTCRtpMediaType)  mediaType 

Called when the first RTP packet is received.

Note: Currently if there are multiple RtpReceivers of the same media type, they will all call OnFirstPacketReceived at once.

For example, if we create three audio receivers, A/B/C, they will listen to the same signal from the underneath network layer. Whenever the first audio packet is received, the underneath signal will be fired. All the receivers A/B/C will be notified and the callback of the receiver's delegate will be called.

The process is the same for video receivers.


The documentation for this protocol was generated from the following file: