onError

public abstract void onError(int errorCode)

打开预览失败

Parameters

errorCode

-1:Unknown camera ID, -2: Init RTC failed, -3: Media type is not VIDEO