onError method

FutureOr<void> onError(
  1. ErrorCode err
)

@detail callback @author panjian.fishing @brief Error callback occurred. @param err BigInt, see: ErrorCode{@link #ErrorCode} for detailed definitions @note Error callback occurred. This callback is triggered when a network or media-related error occurs during the
SDK runtime and cannot be automatically recovered and you may need to intervene.and you may need to intervene.

Implementation

FutureOr<void> onError(ErrorCode err) async {}