Quickstart

Huddle Unity Webgl plugin

The Huddle Unity WebGL Plugin SDK provides a process and method for seamless integration of real-time audio and video in Unity

QuickStart

Installing the package

To get started with the Huddle01 Unity Webgl Plugin, you can download the latest unitypackage from here (opens in a new tab)

Import the unitypackage file in your project include all the files mentioned in below image:

architecture

Initializing Huddle01

To initialize the Huddle01, you need to call Huddle01Core.Instance.Init method

.csharp
using UnityEngine;
using Huddle01;
 
public class AudioVideoMeet : MonoBehaviour
{
		void Start()
    {
        Huddle01Core.Instance.Init("Your_project_id");
        Debug.Log("Huddle01 Initiated");
    }
}

Join Room

After initializing Huddle01 plugin, you can call join room function and subscribe to OnJoinRoom Event

.csharp
private void OnEnable()
{
    Huddle01Core.OnJoinRoom += OnJoinRoom;
}
 
private void OnDisable()
{
    Huddle01Core.OnJoinRoom -= OnJoinRoom;
}
 
public void JoinRoom(string roomId,string token)
{
    Huddle01Core.Instance.JoinRoom(roomId, token);
}
 
private void OnJoinRoom()
{
    Debug.Log("Room Joined");
}

Methods:

Room:

Methods:

Events:

LocalPeer

Methods

Events

Remote Peer

Events

Audio/Video Infrastructure designed for developers to empower them to ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2024 Graphene 01, Inc. All Rights Reserved.