Public 属性 | |
int | START_STREAMING_ERR_OK = 0 |
int | START_STREAMING_ERR_FAILED = 1 |
int | START_STREAMING_ERR_NOT_INITIALIZED = 2 |
int | START_STREAMING_ERR_ALREADY_STARTED = 3 |
int | START_STREAMING_ERR_OPEN_AUDIO_DEVICE = 4 |
int | START_STREAMING_ERR_OPEN_VIDEO_DEVICE = 5 |
int | START_STREAMING_ERR_CONNECT_RTMP = 6 |
int | START_STREAMING_ERR_INVALID_ARGUMENT = 7 |
调用 startStreaming 方法推送媒体流失败的错误码。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_OK = 0 |
0: 没有错误。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_FAILED = 1 |
1: 一般性错误(没有明确归类的错误原因)。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_NOT_INITIALIZED = 2 |
2: Agora Streaming Kit 服务未初始化。请确保你已调用 create 方法创建一个 StreamingKit 实例。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_ALREADY_STARTED = 3 |
3: 已开始推流。
Agora Streaming Kit 只支持同一时间向一个 CDN URL 地址进行一次推流。当你向多个地址推流 或向一个地址重复推流时,Kit 会返回该错误码。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_OPEN_AUDIO_DEVICE = 4 |
4: 本地音频采集开启失败。请检查本地音频设备是否正常工作,是否被其他进程占用,是否有使用权限。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_OPEN_VIDEO_DEVICE = 5 |
5: 本地视频采集开启失败。请检查本地视频设备是否正常工作,是否被其他进程占用,是否有使用权限。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_CONNECT_RTMP = 6 |
6: 和 CDN 连接失败。
int io.agora.streaming.StartStreamingError.START_STREAMING_ERR_INVALID_ARGUMENT = 7 |
7: 传入的参数无效。