onStop method
@detail callback @author wangzhanqiang @brief When receiving the callback, you need to stop pushing custom encoded video frames to the SDK @param streamId The ID of the encoded stream that needs to be stopped @param streamInfo The properties of the encoded stream that needs to be stopped
Implementation
FutureOr<void> onStop(dynamic streamId, dynamic streamInfo) async {
if ($instance == null || $instance is! IExternalVideoEncoderEventHandler) {
return;
}
return ($instance as IExternalVideoEncoderEventHandler)
.onStop
?.call(streamId.toString());
}