Skip to content

Commit

Permalink
为 Android 添加 onStreamMessageError 监听
Browse files Browse the repository at this point in the history
  • Loading branch information
Riant committed Feb 28, 2018
1 parent d032457 commit a43e70a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions android/src/main/java/com/syan/agora/AgoraModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,24 @@ public void run() {
});
}

// 接收对方数据流消息错误的回调
@Override
public void onStreamMessageError(final int uid, final int streamId, final int code, final int missed, final int cached) {
runOnUiThread(new Runnable() {
@Override
public void run() {
WritableMap map = Arguments.createMap();
map.putString("type", "onStreamMessageError");
map.putInt("uid", uid);
map.putInt("streamId", streamId);
map.putInt("error", code);
map.putInt("missed", missed);
map.putInt("cached", cached);
commonEvent(map);
}
});
}

/**
* 说话声音音量提示回调
*/
Expand Down

0 comments on commit a43e70a

Please sign in to comment.