文档中心
互动直播 (Legacy)
API 参考
Agora Streaming Kit Java API Reference
Streaming Kit API Reference for Android
◆ getEventHandler()
◆ getAppId()
String io.agora.streaming.StreamingContext.getAppId |
( |
| ) |
|
获取 App ID。
- 返回
- 方法调用成功,返回 App ID。
- 方法调用失败,返回空字符串。
◆ getContext()
Context io.agora.streaming.StreamingContext.getContext |
( |
| ) |
|
获取安卓活动 (Android Activity) 的上下文。
- 返回
- 安卓活动的上下文。
◆ isEnableAudioStreaming()
boolean io.agora.streaming.StreamingContext.isEnableAudioStreaming |
( |
| ) |
|
检查是否推送音频流。
- 返回
- true: 推送音频流。
- false: 未推送音频流。
◆ isEnableVideoStreaming()
boolean io.agora.streaming.StreamingContext.isEnableVideoStreaming |
( |
| ) |
|
检查是否推送视频流。
- 返回
- true: 推送视频流。
- false: 未推送视频流。
◆ getAudioStreamConfiguration()
◆ getVideoStreamConfiguration()
◆ eventHandler
◆ appId
String io.agora.streaming.StreamingContext.appId |
◆ context
Context io.agora.streaming.StreamingContext.context |
安卓活动 (Android Activity) 的上下文。
◆ audioStreamConfiguration
◆ videoStreamConfiguration