Search Unity

Question Vivox Developer portal mapping to new Unity Portal

Discussion in 'Vivox (Voice & Text Chat)' started by Fidelite, May 19, 2023.

  1. Fidelite

    Fidelite

    Joined:
    Jan 8, 2014
    Posts:
    2
    Hello and happy Friday!

    I'm trying to map the old Vivox developer fields to the new Unity fields, and I'm unable to do so, if I've missed it, I'm sorry, I did use the search and I only found this: https://forum.unity.com/threads/cant-find-vivox-edpoint-uri.1437994/ which was helpful, but not exactly what I was looking for. If there is a FAQ, or any portal, a simple redirect would be helpful and appreciated!

    In the old Vivox portal for my app, there is:
    Environment Details:
    API End-Point:
    (In the new UI, it seems to be Voice and Text Chat -> Credentials -> Server?? Not sure!) In the old UI, this seems to be fixed at https://mt1s.www.vivox.com/api2
    Domain: (In the new UI, it seems to be Voice and Text Chat -> Credentials -> Domain) In the old UI, this seems to be fixed at mt1s.vivox.com

    API Keys:
    Issuer:
    (In the new UI, it seems to be Voice and Text Chat -> Credentials -> Token Issuer)
    Secret Key: (In the new UI, it seems to be Voice and Text Chat -> Credentials -> Token Key?? Not sure!) In the old UI, this seems to be just 8 characters, not sure if this is the right one.
    Admin User ID: No idea
    Admin Password: No Idea

    Can anyone help me map these?

    Appreciate the help and support!
     
  2. dylan_unity3d

    dylan_unity3d

    Unity Technologies

    Joined:
    Nov 12, 2019
    Posts:
    78
    Hi @Fidelite,

    You are correct about the fields. I'll include a few notes after the list.

    Environment Details:
    API End-Point:
    Voice and Text Chat -> Credentials -> Server
    Domain: Voice and Text Chat -> Credentials -> Domain

    API Keys:
    Issuer:
    Voice and Text Chat -> Credentials -> Token Issuer
    Secret Key: Voice and Text Chat -> Credentials -> Token Key
    Admin User ID: Not currently available from the Unity Dashboard
    Admin Password: Not currently available from the Unity Dashboard

    For the key, you are correct that for
    mt1s
    the key was much shorter. This is because that was a sandbox/dev environment and was supposed to be easier to deal with.
    mt1p
    used a longer key similar to what you see for
    mt1uxp
    . In short, what you are seeing is correct.

    For the "Admin" fields, those are not currently available from the Unity Dashboard. These fields are only needed for the Server to Server Web API, which is not used by most implementations.

    Please let me know if this answers your questions.

    Dylan
     
  3. Fidelite

    Fidelite

    Joined:
    Jan 8, 2014
    Posts:
    2
    This is very helpful, thank you!!

    When I try to use the new settings however, I get the following error, if I swap back in my old credentials from the old portal, it works just fine. Does it take some time to activate maybe?

    LoginSession: Invalid State - must be logged out to perform this operation.
    at VivoxUnity.Private.LoginSession.BeginLogin (System.Uri server, System.String accessToken, VivoxUnity.SubscriptionMode subscriptionMode, VivoxUnity.IReadOnlyHashSet`1[T] presenceSubscriptions, VivoxUnity.IReadOnlyHashSet`1[T] blockedPresenceSubscriptions, VivoxUnity.IReadOnlyHashSet`1[T] allowedPresenceSubscriptions, System.Boolean uriServerRequired, System.Boolean presenceDesired, System.AsyncCallback callback) [0x00000] in <00000000000000000000000000000000>:0
    at VivoxUnity.Private.LoginSession.BeginLogin (System.Uri server, System.String accessToken, VivoxUnity.SubscriptionMode subscriptionMode, VivoxUnity.IReadOnlyHashSet`1[T] presenceSubscriptions, VivoxUnity.IReadOnlyHashSet`1[T] blockedPresenceSubscriptions, VivoxUnity.IReadOnlyHashSet`1[T] allowedPresenceSubscriptions, System.AsyncCallback callback) [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.VivoxClientSystem.LoginToVivox (System.String userName, System.String token, System.String issuer, System.String domain, System.Boolean joinMuted) [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.VivoxClientSystem.<OnUpdate>b__46_3 (Unity.Entities.Entity entity, ProjectM.VivoxEvents+ServerLoginEvent& loginEvent) [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.VivoxClientSystem+<>c__DisplayClass_OnUpdate_LambdaJob3.PerformLambda (System.Void* jobStructPtr, System.Void* runtimesPtr, Unity.Entities.Entity entity) [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.CodeGeneratedJobForEach.StructuralChangeEntityProvider+PerformLambdaDelegate.Invoke (System.Void* jobStruct, System.Void* runtimes, Unity.Entities.Entity entity) [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.CodeGeneratedJobForEach.StructuralChangeEntityProvider.IterateEntities (System.Void* jobStruct, System.Void* runtimes, Unity.Entities.CodeGeneratedJobForEach.StructuralChangeEntityProvider+PerformLambdaDelegate action) [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.VivoxClientSystem+<>c__DisplayClass_OnUpdate_LambdaJob3.Execute (Unity.Entities.ComponentSystemBase componentSystem, Unity.Entities.EntityQuery query) [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.VivoxClientSystem.OnUpdate () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.SystemBase.Update () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x00000] in <00000000000000000000000000000000>:0
    at ProjectM.ClientSimulationSystemGroup.OnUpdate () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x00000] in <00000000000000000000000000000000>:0
    at Unity.Entities.ComponentSystem.Update () [0x00000] in <00000000000000000000000000000000>:0
    at Steamworks.ISteamMatchmakingRulesResponse+RulesRefreshComplete.Invoke () [0x00000] in <00000000000000000000000000000000>:0