5月30号周总结

  团队作业的框架基本上已经完成了,剩下的时间就是往里面填东西了。我们团队的难点就是如何实现人与人之间的会议。我从网上找了一个模板:(11条消息) 手把手教程:基于环信4小时开发一个视频会议APP【附源码】_huan132456765的博客-CSDN博客。但是我有些看不懂。所以还是需要努力学习的。

  登录完成以后,我们可以根据房间名创建并加入房间,主要代码大概如下:

EMClient.getInstance().conferenceManager().joinRoom(currentRoomname, currentPassword, conferenceRole,roomConfig, new EMValueCallBack<EMConference>(){
                    @Override
                    public void onSuccess(EMConference value) {
                        EMLog.i(TAG, "join  conference success");
                        Intent intent new Intent(MainActivity.this, ConferenceActivity.class);
                        startActivity(intent);
                        finish();
                    }
                    @Override
                    public void onError(final int error, final String errorMsg) {
                        EMLog.e(TAG, "join conference failed error " + error + ", msg " + errorMsg);
                        runOnUiThread(new Runnable() {
                            @Override
                            public void run() {
                                setBtnEnable(true);
                                if(error == CALL_TALKER_ISFULL) {
                                    takerFullDialogDisplay();
                                }else{
                                    Toast.makeText(getApplicationContext(), "Join conference failed " + error + " " + errorMsg, Toast.LENGTH_SHORT).show();
                                }
                            }
                        });
                    }
                });

 

posted on 2021-05-30 08:30  只爱敲代码  阅读(25)  评论(0编辑  收藏  举报

导航