/

WebRTC Publisher Events


WebRTC Publisher Events

The following events are specific to the RTCPublisher implementation and accessible on the global red5prosdk object from the RTCPublisherEventTypes attribute. These events are dispatched during the lifecycle of thre trickle ICE functionality required to start a broadcast: | Access | Name | Meaning | | :--- | :---: | :--- | | MEDIASTREAMAVAILABLE | 'WebRTC.MediaStream.Available' | When the negotation process has returned a MediaStream object to use. | | PEERCONNECTIONAVAILABLE | 'WebRTC.PeerConnection.Available' | When the negotation process has produced a valid PeerConnection. | | OFFERSTART | 'WebRTC.Offer.Start' | When the publisher requests to send an offer using a SessionDescription on the PeerConnection. | | OFFEREND | 'WebRTC.Offer.End' | When the publisher has received an answer from the SDP offer on the PeerConnection. | | ICETRICKLECOMPLETE | 'WebRTC.IceTrickle.Complete' | When the negotaiton process (a.k.a. trickle) has completed and the publisher will attempt at opening a broadcast stream. |