Search Unity

Question How to handle Vivox login/logout

Discussion in 'Lobby' started by ingxel, Feb 4, 2023.

  1. ingxel

    ingxel

    Joined:
    Apr 2, 2021
    Posts:
    11
    Hi Guys,

    I'm making a game using Unity and Vivox, but I don't know how to handle Vivox login/logout.
    Anyone know?

    I'd like other logged-in users to be able to detect that ILoginSession's "Login" and "Logout" have succeeded, but it's not working.

    We have confirmed that you can join and leave the channel.

    Thank you.
     
  2. UnityGarChar

    UnityGarChar

    Unity Technologies

    Joined:
    Jun 18, 2019
    Posts:
    29
    Hey, unity_ZBsMW3BIkkCSDA!

    Have you had the chance to take a look at our sample, ChatChannelSample?
    You can import it in the Package Manager when viewing the Vivox package!
    We show how to properly handle all of that in a single script within the sample, VivoxVoiceManager.cs.
    In there, you'll find examples of how to properly do things like login/logout and subscribe to events so you can get notified about updates such as when a user has logged in or out and if someone has joined a voice channel!

    Also, just to confirm, are you looking to have the local client get notified when the local user has logged into/out of Vivox or are you trying to have non-local clients know about a different user logging in?
     
  3. ingxel

    ingxel

    Joined:
    Apr 2, 2021
    Posts:
    11