4

融云-为用户提供IM即时通讯和实时音视频通信云服务

 3 years ago
source link: https://www.rongcloud.cn/?utm_term=brand
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
融云-为用户提供IM即时通讯和实时音视频通信云服务

上手简单  让开发者快速集成

                                
                                    //初始化

                                    RongIMClient.init(RongAppKey);

                                    //连接

                                    RongIMClient.connect(RongIMToken, (int code, String userId) {

                                      print('connect result ' + code.toString());

                                      if (code == 0) {

                                        print("connect success userId" + userId);

                                      } else if(code == 31004) {

                                        // token 无效,需要重新从 APP 服务获取新 token 并连接

                                      }

                                    }
                                
                            
                                
                                    RongIM.init(this, 'AppKey', false);

                                    RongIM.connect("Token", new RongIMClient.ConnectCallback() {

                                            @Override

                                            public void onTokenIncorrect() { }

                                        @Override

                                        public void onSuccess(String userId) { }

                                        @Override

                                        public void onError(RongIMClient.ErrorCode errorCode) { }

                                    });

                                
                            
                                
                                    //初始化

                                    RongIMClient.init(RongAppKey);

                                    //连接

                                    RongIMClient.connect(RongIMToken, (int code, String userId) {

                                      print('connect result ' + code.toString());

                                      if (code == 0) {

                                        print("connect success userId" + userId);

                                      } else if(code == 31004) {

                                        // token 无效,需要重新从 APP 服务获取新 token 并连接

                                      }

                                    }
                                
                            
                                
                                    RongIM.init(this, 'AppKey', false);

                                    RongIM.connect("Token", new RongIMClient.ConnectCallback() {

                                            @Override

                                            public void onTokenIncorrect() { }

                                        @Override

                                        public void onSuccess(String userId) { }

                                        @Override

                                        public void onError(RongIMClient.ErrorCode errorCode) { }

                                    });

                                
                            

即时通讯,1 天快速集成

支持单群聊、聊天室、系统通知等通信能力,安全可靠、
全球互通。

音视频,30 分钟快速集成

支持一对一、多对多音视频通话、服务端录像、低延迟直
播,流畅稳定、省钱省力。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK