... | ... | @@ -169,8 +169,8 @@ DWLive.getInstance().switchLocalCamera(); |
|
|
#### 拉取远端流
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ---------- |
|
|
|
| `public void pullRemoteStream(String userId, PullRemoteStreamCallBack baseCallback) ` | 拉取远端流 |
|
|
|
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
|
| `public void pullRemoteStream(String userId, PullRemoteStreamCallBack baseCallback) ` | 拉取远端流,当回调onRemoteStreamEnable时,需要调用此方法拉取远端流 |
|
|
|
|
|
|
示例代码
|
|
|
|
... | ... | @@ -195,8 +195,8 @@ DWLive.getInstance().pullRemoteStream(userId, new PullRemoteStreamCallBack() { |
|
|
#### 移除远端流(多人连麦)
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ---------- |
|
|
|
| `public void removeRemoteStream(String userId, BaseCallback baseCallback)` | 移除远端流 |
|
|
|
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
|
| `public void removeRemoteStream(String userId, BaseCallback baseCallback)` | 移除远端流,当回调onRemoteStreamDisable时,需要调用此方法 移除远端流 |
|
|
|
|
|
|
示例代码
|
|
|
|
... | ... | @@ -221,16 +221,16 @@ DWLive.getInstance().pullRemoteStream(userId, new PullRemoteStreamCallBack() { |
|
|
##### 远端流可用
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ---------- |
|
|
|
| `void onRemoteStreamEnable(String userId, String hdLiveMediaCallRole)` | 远端流可用 |
|
|
|
| ------------------------------------------------------------ | ------------------------------------------ |
|
|
|
| `void onRemoteStreamEnable(String userId, String hdLiveMediaCallRole)` | 远端流可用,调用pullRemoteStream拉取远端流 |
|
|
|
|
|
|
|
|
|
|
|
|
##### 远端流不可用(多人连麦)
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------- | ------------ |
|
|
|
| `void onRemoteStreamDisable(String userId)` | 远端流不可用 |
|
|
|
| ------------------------------------------- | ---------------------------------------------- |
|
|
|
| `void onRemoteStreamDisable(String userId)` | 远端流不可用,调用removeRemoteStream移除远端流 |
|
|
|
|
|
|
|
|
|
|
... | ... | |