Package io.rong.calllib

## Interface PublishCallBack

- All Implemented Interfaces:

      public interface PublishCallBack

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onSuccess(RCRTCVideoOutputStream outputStream, SurfaceView surfaceView)` | 自定义视频流成功回调
    `abstract void` | `onFailed(RTCErrorCode errorCode)` | 发布自定义音视频流失败回调

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### onSuccess

           abstract void onSuccess(RCRTCVideoOutputStream outputStream, SurfaceView surfaceView)

      自定义视频流成功回调

      Parameters:
        `outputStream` - 自定义视频流对象，通过调用该对象writeYuvData 或writeTexture 方法发送yuv数据或texture数据

                                //发送YUV数据，当前仅支持NV21格式。                    data     NV21格式的视频数据                    width    视频的实际宽度                    height   视频的实际高度                    rotation 旋转角度。一般为90°或270°，取决于设备。                    IRCVideoConsumer#writeYuvData(byte[], int, int, int)                    //发送texture数据，GL_TEXTURE_EXTERNAL_OES类型                    width           视频的实际宽度                    height          视频的实际高度                    oesTextureId    纹理id GL_TEXTURE_EXTERNAL_OES类型                    transformMatrix 矩阵                    rotation        旋转角度                    timestamp       当前时间戳：surfaceTexture.getTimestamp()                    IRCVideoConsumer#writeTexture(int, int, int, float[], int, long)

        `surfaceView` - 自定义视频流回显视图

    - #### onFailed

           abstract void onFailed(RTCErrorCode errorCode)

      发布自定义音视频流失败回调