Mobicents Restcomm你好世界中的实现 [英] Mobicents Restcomm Hello-World Implementation

查看:648
本文介绍了Mobicents Restcomm你好世界中的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面Mobicents Restcomm指南实施Restcomm客户端Android版。我下面对它们的快速入门指南。我导入Android Studio中的HELLO-World程序,但也存在一些问题。这是进口的,但它是扔一些错误。具体如下:

I am following Mobicents Restcomm's guide to implement Restcomm Client Android. I am following their quick start guide for that. I have imported their Hello-World program in Android Studio but there are some issues. It is imported but it is throwing some errors. These are as follows:

Error:(5, 18) error: package org.webrtc does not exist
Error:(6, 18) error: package org.webrtc does not exist
Error:(7, 18) error: package org.webrtc does not exist
Error:(19, 31) error: package PeerConnection does not exist
Error:(25, 12) error: cannot find symbol class SessionDescription
Error:(26, 12) error: cannot find symbol class SessionDescription
Error:(27, 17) error: cannot find symbol class IceCandidate
Error:(33, 32) error: package PeerConnection does not exist
Error:(36, 13) error: cannot find symbol class SessionDescription
Error:(36, 47) error: cannot find symbol class IceCandidate
Error:(65, 34) error: cannot find symbol class SessionDescription
Error:(65, 68) error: cannot find symbol class IceCandidate
Error:(110, 57) error: cannot find symbol class SessionDescription
Error:(141, 33) error: cannot find symbol class IceCandidate
Error:(149, 44) error: package PeerConnection does not exist
C:\Users\Nadeem Ilyas\Desktop\restcomm-android-sdk-1.0.0-BETA3\restcomm.android.client.sdk\src\main\java\org\mobicents\restcomm\android\client\sdk\SignalingParameters.java

请帮我解决这个问题。我真的AP preciate您在这个问题上的帮助。

Please help me fixing this issue. I will really appreciate your help in this matter.

推荐答案

好像罐和/或实现WebRTC实现本地库无法找到的某些原因。你从GitHub的版本下载最新TAR.BZ2包页面还是你只是克隆GitHub库?

Seems like the jars and/or native libraries for WebRTC implementation cannot be found for some reason. Did you download the latest tar.bz2 bundle from the GitHub release page or did you just clone the GitHub repo?

如果你做的第一,罐子和库应该在那里,但如果你克隆你需要下载并从GitHub发行tar包的原因,例如二进制文件分别添加回购往往使回购巨大的,我们避免把他们那里

If you did the first, the jars and libs should be there, but if you cloned the repo you need to download and add separately from GitHub release tarball cause such binary files tend to make the repo huge and we avoid putting them there.

要验证是否有所需的文件,请到RESTCOMM_ANDROID_SDK_R​​OOT / restcomm.android.client.sdk /库。在那里,你会发现libjingle_peerconnection_java.jar

To verify if you have the files needed, please go to RESTCOMM_ANDROID_SDK_ROOT/restcomm.android.client.sdk/libs. There you should find 'libjingle_peerconnection_java.jar'

编辑:

您还需要编辑MainActivity.java并替换:

You will also need to edit MainActivity.java and replace:

params.put("pref_sip_user", "bob");

params.put("pref_sip_user", "android-sdk");

由于摆锤是一个非常普遍的用户,并且可能由其他人未知密码置备。这应该解决您的问题。顺便说一句,你还可以通过调用RCClient.initialize()之前设置日志级别启用RC客户机更详细的日志记录:

Because bob is a very common user and might be provisioned by someone else with unknown password. That should fix your issue. By the way you can also enable more verbose logging for RCClient by setting the log level before calling RCClient.initialize():

RCClient.setLogLevel(Log.VERBOSE);

最好的问候,
安东尼

Best regards, Antonis

这篇关于Mobicents Restcomm你好世界中的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆