Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 929 Bytes

File metadata and controls

22 lines (18 loc) · 929 Bytes

LiveKit Track Processors Unity SDK

Use this SDK to add track processors feature to LiveKit WebGL Unity SDK, this SDK uses LiveKit Track Processors

Installation :

Follow this unity tutorial using the https://github.com/Mohelm97/live-kit-track-processors-unity-webgl.git link.

Examples

Enable Background Blur

IEnumerator EnableCameraWithBlur ()
{
    var setCameraEnabledPromise = room.LocalParticipant.SetCameraEnabled(true);
    yield return setCameraEnabledPromise;
    if (!setCameraEnabledPromise.IsError)
    {
        JSHandle backgroundBlur = TrackProcessors.BackgroundBlur(10);
        setCameraEnabledPromise.ResolveValue.VideoTrack.SetProcessor(backgroundBlur);
    }
}