我尝试从他们的网站遵循以下指示(包括在app.gradle下添加他们的库)在Android上为视频通话实现Connectycube,但是在那里构建时,在VideoConversationFragment.java上出现错误,消息为msg'Error:(27,44)error:找不到符号类RTCClientVideoTracksCallback'。我错过了任何步骤或有任何问题吗?
谢谢 在Build Gradle上:
implementation 'com.connectycube:connectycube-android-sdk-chat:1.0.2'
implementation 'com.connectycube:connectycube-android-sdk-adding their
li:1.0.2'
implementation 'com.connectycube:connectycube-android-sdk-storage:1.0.2'
implementation 'com.connectycube:connectycube-android-sdk-
pushnotifications:1.0.2'
在BaseConversationFragment.java上:
import com.connectycube.videochat.callbacks.RTCClientVideoTracksCallback;
,这是出现错误的代码。
public class VideoConversationFragment extends BaseConversationFragment implements Serializable, RTCClientVideoTracksCallback<RTCSession>, RTCSessionStateCallback<RTCSession>, RTCSessionEventsCallback {
答案 0 :(得分:1)
RTCClientVideoTracksCallback属于videochat模块。
请确保您已添加以下依赖项:
Options.ForwardedHeaders = ForwardedHeaders.All;
Options.ForwardLimit = null;
Options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.0.0.0"), 8));
Options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("172.16.0.0"), 12));
Options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("192.168.0.0"), 16));
我没有在您的代码的依赖项列表中看到它。这也是guide供您参考。