/plushcap/analysis/agora/connecting-to-agora-with-tokens-using-unity

Connecting to Agora with Tokens — Using Unity

What's this blog post about?

This tutorial teaches how to fetch an Agora token from a web service running an Agora token server using Unity and C#. The Agora platform uses tokens for user authentication in video chat applications, especially important with the rise of remote working and virtual events. To set up the project, create a Unity project or use the example project on GitHub. Fetching the token involves determining the full URL to reach the token service and using UnityWebRequest for the GET request. Connecting to a channel uses the JoinChannelByKey method with the channel token and name as parameters. To stay connected, update tokens using OnTokenPrivilegeWillExpireHandler and IRtcEngine.RenewToken().

Company
Agora

Date published
Nov. 24, 2020

Author(s)
Max Cobb

Word count
565

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.