onMixerRelayCDNStateUpdate method

void onMixerRelayCDNStateUpdate(
  1. String taskID,
  2. List<ZegoStreamRelayCDNInfo> infoList
)

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

Available since: 1.2.1 Description: The general situation of the mixing task on the ZEGO RTC server will push the output stream to the CDN using the RTMP protocol, and the state change during the push process will be notified from the callback function. Use cases: It is often used when multiple video images are required to synthesize a video using mixed streaming, such as education, live teacher and student images. When to trigger: After the developer calls the startMixerTask function to start mixing, when the ZEGO RTC server pushes the output stream to the CDN, there is a state change. Restrictions: None. Related callbacks: Develop can get the sound update notification of each single stream in the mixed stream through OnMixerSoundLevelUpdate. Related APIs: Develop can start a mixed flow task through startMixerTask.

  • taskID The mixing task ID. Value range: the length does not exceed 256. Caution: This parameter is in string format and cannot contain URL keywords, such as 'http' and '?' etc., otherwise the push and pull flow will fail. Only supports numbers, English characters and'~','!','@','$','%','^','&','*','(',')','_' ,'+','=','-','`',';',''',',','.','<','>','/',''.
  • infoList List of information that the current CDN is being mixed.

Implementation

void onMixerRelayCDNStateUpdate(
  String taskID,
  List<ZegoStreamRelayCDNInfo> infoList,
) {}