From a43e70aac423d654bf746e41745a2e4637b568c0 Mon Sep 17 00:00:00 2001 From: Riant Date: Wed, 28 Feb 2018 09:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=20Android=20=E6=B7=BB=E5=8A=A0=20onSt?= =?UTF-8?q?reamMessageError=20=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/syan/agora/AgoraModule.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/android/src/main/java/com/syan/agora/AgoraModule.java b/android/src/main/java/com/syan/agora/AgoraModule.java index a3dd9ddbd..1a079042c 100644 --- a/android/src/main/java/com/syan/agora/AgoraModule.java +++ b/android/src/main/java/com/syan/agora/AgoraModule.java @@ -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); + } + }); + } + /** * 说话声音音量提示回调 */