Mobicents Restcomm Hello-World 实现 [英] Mobicents Restcomm Hello-World Implementation

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

问题描述

我正在遵循 Mobicents Restcomm 的指南来实现 Restcomm Client 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

请帮我解决这个问题.我将非常感谢您在这件事上的帮助.

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

推荐答案

似乎由于某种原因无法找到用于 WebRTC 实现的 jars 和/或本机库.您是否从 GitHub release 下载了最新的 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?

如果你做了第一个,jars 和 libs 应该在那里,但如果你克隆了 repo,你需要从 GitHub 发布 tarball 单独下载和添加,因为这样的二进制文件往往会使 repo 变得很大,我们避免将它们放在那里.

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_ROOT/restcomm.android.client.sdk/libs.在那里你应该找到'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");

因为 bob 是一个非常常见的用户,可能由其他人使用未知密码进行配置.那应该可以解决您的问题.顺便说一句,您还可以通过在调用 RCClient.initialize() 之前设置日志级别来为 RCClient 启用更详细的日志记录:

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);

最好的问候,安东尼

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

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