【问题标题】:VivoxCore for Unreal Engine 4虚幻引擎 4 的 VivoxCore
【发布时间】:2020-07-08 22:24:08
【问题描述】:

有没有人将 VivoxCore 用于虚幻引擎 4 并知道这个错误是什么意思?我无法真正理解这意味着什么。我已经尝试通读 vivox 的源代码以及文档,并且没有提到错误代码 (1105)。此外,制作这个的公司不会回复电子邮件,他们的公共论坛也不活跃。我试过打电话给他们,给他们发电子邮件,使用公共论坛,在线阅读答案,但我什么也没找到,所以 stackoverflow 是我最后的选择。我希望这里有人可以帮助我。

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

这是我的代码:

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

【问题讨论】:

    标签: c++ unreal-engine4


    【解决方案1】:

    此错误表示您的 SDK 已过时。 UE4中包含的SDK已经过时了:它使用后端版本4,但实际版本是5。

    【讨论】:

      【解决方案2】:

      尝试禁用 Vivox 界面插件(如果已启用)。

      【讨论】:

        猜你喜欢
        • 2020-07-24
        • 2015-02-04
        • 2015-01-13
        • 2019-12-09
        • 2023-03-28
        • 2015-07-03
        • 2020-03-26
        • 2014-04-26
        • 2020-11-18
        相关资源
        最近更新 更多