Commit ecb84a4f authored by pangcong Git's avatar pangcong Git
Browse files

* 远程录制(加入房间)增加权限申请和新增提示信息、初始化的加载提示语设置、修改音视频房间按钮位置,支持默认进入房间是否打开视频的设置,更新DDK

parent abaf0db2
package fox.market.zxqh.plugin.record; package fox.market.zxqh.plugin.record;
import android.content.Context; import android.content.Context;
import android.text.TextUtils;
import com.citicsf.lib.ykf.callback.YKFException; import com.citicsf.lib.ykf.callback.YKFException;
import com.citicsf.lib.ykf_agent.YKFAgent; import com.citicsf.lib.ykf_agent.YKFAgent;
...@@ -50,7 +51,7 @@ public class RecordNative implements INative { ...@@ -50,7 +51,7 @@ public class RecordNative implements INative {
AgentVideoParams agentVideoParams = new AgentVideoParams(); AgentVideoParams agentVideoParams = new AgentVideoParams();
agentVideoParams.setUserId(id); agentVideoParams.setUserId(id);
agentVideoParams.setInitLoadingMessage("初始化");
YKFAgent.getInstance().videoInit(context, ykfAgentParams, agentVideoParams, YKFAgent.getInstance().videoInit(context, ykfAgentParams, agentVideoParams,
new com.citicsf.lib.ykf.callback.ICallback<Integer>() { new com.citicsf.lib.ykf.callback.ICallback<Integer>() {
@Override @Override
...@@ -66,11 +67,19 @@ public class RecordNative implements INative { ...@@ -66,11 +67,19 @@ public class RecordNative implements INative {
break; break;
case "recordJoinRoom": case "recordJoinRoom":
YKFAgent.getInstance().recordJoinRoom(context, jsonObject = JsonHelper.parser(param);
String mediaType = jsonObject.optString("mediaType");
int mediaTypeInt = 0;
if(!TextUtils.isEmpty(mediaType)){
if (mediaType.equals("1")){
mediaTypeInt = 1;
}
}
YKFAgent.getInstance().recordJoinRoom(context,mediaTypeInt,
new com.citicsf.lib.ykf.callback.ICallback<Integer>() { new com.citicsf.lib.ykf.callback.ICallback<Integer>() {
@Override @Override
public void onError(YKFException e) { public void onError(YKFException e) {
callbackContext.callback(ICallback.ERROR, e.getText()); callbackContext.callback(ICallback.ERROR, e.getMessage());
} }
@Override @Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment