webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <RTCRtpReceiver.h>
Instance Methods | |
(void) | - rtpReceiver:didReceiveFirstPacketForMediaType: |
(void) | - rtpReceiver:didReceiveFirstPacketForMediaType: |
- (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.
- (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.