简体   繁体   English

虚幻引擎 4 的 VivoxCore

[英]VivoxCore for Unreal Engine 4

Has anyone used VivoxCore for unreal engine 4 and know what this error means?有没有人将 VivoxCore 用于虚幻引擎 4 并且知道这个错误是什么意思? I'm not able to really understand what this means.我无法真正理解这意味着什么。 I've tried reading through the source code for vivox, as well as the documentation and that error code (1105) is mentioned nowhere.我已经尝试通读 vivox 的源代码以及文档,并且没有提到错误代码 (1105)。 Also, the company which makes this does not respond to emails, and their public forum is not active.此外,制作这个的公司不会回复电子邮件,他们的公共论坛也不活跃。 I've tried calling them, emailing them, using the public forum, reading online for answers, and I've found nothing, so stackoverflow is my last option.我试过打电话给他们,给他们发电子邮件,使用公共论坛,在线阅读答案,但我什么也没找到,所以 stackoverflow 是我最后的选择。 I hope someone here can help me.我希望这里有人可以帮助我。

LogVivoxVoiceChat: Warning: onConnectFailed server:https://vdx5.www.vivox.com/api2 error:SIP Backend Required (1105)

Here is my code:这是我的代码:

VoiceChat = (FVivoxVoiceChat*)FVivoxVoiceChat::Get();

    if (!VoiceChat->IsInitialized())
    {
        GLog->Log("Is not initialized, trying to initialize.");
        VoiceChat->Initialize();
        return;
    }

    if (!VoiceChat->IsConnected())
    {
        GLog->Log("Is not connected, trying to connect.");
        VoiceChat->Connect(FOnVoiceChatConnectCompleteDelegate::CreateLambda([](const FVoiceChatResult& Result)
            {

            }));
        return;
    }

    FString PlayerName = PlayerState->GetPlayerName();
    FString LoginToken = VoiceChat->InsecureGetLoginToken(PlayerName);

    if (!VoiceChat->IsLoggedIn())
    {
        GLog->Log("Is not logged in, trying to login.");
        VoiceChat->Login(0, PlayerName, LoginToken, FOnVoiceChatLoginCompleteDelegate::CreateLambda([](const FString& LoggedInPlayerName, const FVoiceChatResult& Result)
            {

            }));
        return;
    }

    FString ChannelName = "TestChannel";
    EVoiceChatChannelType ChannelType = EVoiceChatChannelType::Echo; // Echo for testing. 
    TOptional<FVoiceChatChannel3dProperties> Channel3dProperties;
    FString JoinToken = VoiceChat->InsecureGetJoinToken(ChannelName, ChannelType, Channel3dProperties);

    VoiceChat->JoinChannel(ChannelName, JoinToken, ChannelType, FOnVoiceChatChannelJoinCompleteDelegate::CreateLambda([](const FString& JoinedChannelName, const FVoiceChatResult& Result)
        {
            GLog->Log("JOin Channel successful");
        }), Channel3dProperties);

    VoiceChat->TransmitToSpecificChannel(ChannelName);

This error means that you have an outdated SDK.此错误表示您的 SDK 已过时。 The SDK included in UE4 is outdated: it is using backend version 4, but the actual version is 5. UE4 中包含的 SDK 已过时:它使用的是后端版本 4,但实际版本是 5。

Try disabling the Vivox Interface plugin if it's enabled.如果已启用,请尝试禁用 Vivox 接口插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM