onPlayerRecvSEI method
The callback triggered when Supplemental Enhancement Information is received.
Available since: 1.1.0
Description: After the startPlayingStream
function is called successfully, when the remote stream sends SEI (such as directly calling sendSEI
, audio mixing with SEI data, and sending custom video capture encoded data with SEI, etc.), the local end will receive this callback.
Trigger: After the startPlayingStream
function is called successfully, when the remote stream sends SEI, the local end will receive this callback.
Caution:
- This function will switch the UI thread callback data, and the customer can directly operate the UI control in this callback function.
- Since the video encoder itself generates an SEI with a payload type of 5, or when a video file is used for publishing, such SEI may also exist in the video file. Therefore, if the developer needs to filter out this type of SEI, it can be before
createEngine
CallZegoEngineConfig.advancedConfig("unregister_sei_filter", "XXXXX")
. Among them, unregister_sei_filter is the key, and XXXXX is the uuid filter string to be set. - When
mutePlayStreamVideo
ormuteAllPlayStreamVideo
is called to set only the audio stream to be pulled, the SEI will not be received.
streamID
Stream ID.data
SEI content.
Implementation
void onPlayerRecvSEI(
String streamID,
Uint8List data,
) {}