/
WebRTC Subscriber Events
WebRTC Subscriber Events
The following events are specific to the RTCSubscriber
implementation and accessible on the global red5prosdk
object from the RTCSubscriberEventTypes
attribute. These events are dispatched during the lifecycle of thre trickle ICE functionality required to start subscribing to a stream:
Access | Name | Meaning |
---|---|---|
PEERCONNECTIONAVAILABLE | 'WebRTC.PeerConnection.Available' | When the negotation process has produced a valid PeerConnection . |
OFFER_START | 'WebRTC.Offer.Start' | When the subscriber requests to start an offer on the PeerConnection . |
OFFER_END | 'WebRTC.Offer.End' | When the subscriber has received a SessionDescription from a requested offer over the PeerConnection . |
ANSWER_START | 'WebRTC.Answer.Start' | When the subscriber requests to send an answer on the PeerConnection . |
ANSWER_END | 'WebRTC.Answer.End' | When the subscriber has received an answer (in form of a MediaStream ) over the PeerConnection . |
CANDIDATE_START | 'WebRTC.Candidate.Start' | When the subscriber requests to send a candidate on the PeerConnection . |
CANDIDATE_END | 'WebRTC.Candidate.End' | When the subscriber has received a candidate over the PeerConnection . |
ICETRICKLECOMPLETE | 'WebRTC.IceTrickle.Complete' | When the negotaiton process (a.k.a. trickle) has completed and the subscriber will attempt at consuming a stream. |