onSEIStreamUpdate method
@detail callback
@author wangzhanqiang
@brief Callback about publishing status of the black frame video stream .
In a voice call scenario, when the local user calls sendSEIMessage{@link #RTCEngine#sendSEIMessage} to send SEI data with a black frame, the sending status of the stream is notified to the remote user through this callback.
You can tell from this callback that the video frame carrying SEI data is a black frame and thus not render that video frame.
@param streamId Remote stream ID
@param streamInfo Information about stream from the remote user, see StreamInfo{@link #StreamInfo}.
@param event State of the black frame video stream, see SEIStreamUpdateEvent{@link #SEIStreamUpdateEvent}.
Implementation
FutureOr<void> onSEIStreamUpdate(
dynamic streamId, dynamic streamInfo, dynamic event) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onSEIStreamUpdate?.call(
streamId.toString(),
packObject(
streamInfo,
() => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
StreamInfo.mapMemberToConstructorParams(streamInfo)))),
t_SEIStreamUpdateEvent.android_to_code($p_a.SEIStreamUpdateEvent.values
.firstWhere((t) => t.$value == event || t.name == event)));
}