onPublisherRelayCDNStateUpdate property

(void Function(String streamID, List<ZegoStreamRelayCDNInfo> infoList)?) onPublisherRelayCDNStateUpdate
read / write

The callback triggered when the state of relayed streaming to CDN changes.

Available since: 1.1.0 Description: Developers can use this callback to determine whether the audio and video streams of the relay CDN are normal. If they are abnormal, further locate the cause of the abnormal audio and video streams of the relay CDN and make corresponding disaster recovery strategies. Trigger: After the ZEGO RTC server relays the audio and video streams to the CDN, this callback will be received if the CDN relay status changes, such as a stop or a retry. Caution: If you do not understand the cause of the abnormality, you can contact ZEGO technicians to analyze the specific cause of the abnormality.

  • streamID Stream ID.
  • infoList List of information that the current CDN is relaying.

Implementation

static void Function(String streamID, List<ZegoStreamRelayCDNInfo> infoList)?
    onPublisherRelayCDNStateUpdate;