|
[插件开发]
RelativeLayout.LayoutParams不创建窗口
[复制链接]
remoteSurfaceView = RtcEngine.CreateTextureView(mContext);
RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(w, h);
rlp.leftMargin = x;
rlp.topMargin = y;
String fixedOn = moduleContext.optString("fixedOn");
boolean fixed = moduleContext.optBoolean("fixed", true);
int rendermode = moduleContext.optInt("renderMode");
if (rendermode != Constants.RENDER_MODE_HIDDEN && rendermode != Constants.RENDER_MODE_ADAPTIVE && rendermode != Constants.RENDER_MODE_FIT) {
rendermode = Constants.RENDER_MODE_HIDDEN;
}
insertViewToCurWindow(remoteSurfaceView, rlp, fixedOn, fixed);
int ret = mRtcEngine.setupRemoteVideo(new VideoCanvas(remoteSurfaceView, rendermode));
sendJsonResultToJs(moduleContext, ret);
mUidsList.put(uid, remoteSurfaceView);
不报错无任何反应
|
|