... | ... | @@ -168,9 +168,9 @@ DWLive.getInstance().switchLocalCamera(); |
|
|
|
|
|
#### 拉取远端流
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ---------- |
|
|
|
| `public void pullRemoteStream(String userId, PullRemoteStreamCallBack baseCallback) ` | 拉取远端流 |
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
|
| `public void pullRemoteStream(String userId, PullRemoteStreamCallBack baseCallback) ` | 拉取远端流,当回调onRemoteStreamEnable时,需要调用此方法拉取远端流 |
|
|
|
|
|
|
示例代码
|
|
|
|
... | ... | @@ -194,9 +194,9 @@ DWLive.getInstance().pullRemoteStream(userId, new PullRemoteStreamCallBack() { |
|
|
|
|
|
#### 移除远端流(多人连麦)
|
|
|
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ---------- |
|
|
|
| `public void removeRemoteStream(String userId, BaseCallback baseCallback)` | 移除远端流 |
|
|
|
| 方法 | 注释 |
|
|
|
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
|
| `public void removeRemoteStream(String userId, BaseCallback baseCallback)` | 移除远端流,当回调onRemoteStreamDisable时,需要调用此方法 移除远端流 |
|
|
|
|
|
|
示例代码
|
|
|
|
... | ... | @@ -220,17 +220,17 @@ 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移除远端流 |
|
|
|
|
|
|
|
|
|
|
... | ... | |