|
@@ -108,6 +108,24 @@ public class AgoraModule extends ReactContextBaseJavaModule {
|
108
|
108
|
});
|
109
|
109
|
}
|
110
|
110
|
|
|
111
|
+ // 接收对方数据流消息错误的回调
|
|
112
|
+ @Override
|
|
113
|
+ public void onStreamMessageError(final int uid, final int streamId, final int code, final int missed, final int cached) {
|
|
114
|
+ runOnUiThread(new Runnable() {
|
|
115
|
+ @Override
|
|
116
|
+ public void run() {
|
|
117
|
+ WritableMap map = Arguments.createMap();
|
|
118
|
+ map.putString("type", "onStreamMessageError");
|
|
119
|
+ map.putInt("uid", uid);
|
|
120
|
+ map.putInt("streamId", streamId);
|
|
121
|
+ map.putInt("error", code);
|
|
122
|
+ map.putInt("missed", missed);
|
|
123
|
+ map.putInt("cached", cached);
|
|
124
|
+ commonEvent(map);
|
|
125
|
+ }
|
|
126
|
+ });
|
|
127
|
+ }
|
|
128
|
+
|
111
|
129
|
/**
|
112
|
130
|
* 说话声音音量提示回调
|
113
|
131
|
*/
|