Azure Communication Services Calling SDK for Unity doesn't support for Video Calling

Sadev Kalubowila 10 Reputation points
2023-12-22T06:02:46.9266667+00:00

Hi, I'm developing an immersive application for HoloLens by Unity. I have a requirement of integrate Azure Video Calling feature to the application. Video call should be establishe between HoloLens and PC. I tried this (https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-with-video-calling?pivots=platform-unity) document. But I have encountered few issues and need support to sort them out.

  1. I have noticed that there is a new beta release (1.0.0 - beta.2) of Azure Communication Services Calling Unity SDK. But seems the document is not update to match with that version as I got some errors on some methods of the document. 

User's image

  1. In the 1.0.0-beta.1 version I'm getting an runtime error in the Unity Editor as follows when trying to call. "InvalidOperationException: Unknown error.Azure.Communication.Calling.UnityClient.NativeLibraryHelpers.CheckStatus (System.IntPtr handle, Azure.Communication.Calling.UnityClient.Status value) (at Library/PackageCache/com.azure.communication.calling@9eb4a6f82e64/Runtime/Azure.Communication.Calling.UnityClient/Azure.Communication.Calling.UnityClient.cs:205)Azure.Communication.Calling.UnityClient.OutgoingVideoOptions.set_Streams (System.Collections.Generic.IReadOnlyList`1[T] value) (at Library/PackageCache/com.azure.communication.calling@9eb4a6f82e64/Runtime/Azure.Communication.Calling.UnityClient/Azure.Communication.Calling.UnityClient.cs:12574)AppManager.CallButton_Click () (at Assets/Scenes/AppManager.cs:66)System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <9d9536d9127f4a489d989c7a566aee1c>:0)UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <120b8d04add741329ccd415c000fb666>:0)UnityEngine.UnitySynchronizationContext.Exec () (at <120b8d04add741329ccd415c000fb666>:0)UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <120b8d04add741329ccd415c000fb666>:0)"

User's image

But after comment below line of the CallButton_Click method,  

" OutgoingVideoOptions = new OutgoingVideoOptions() { Streams = new OutgoingVideoStream[] { cameraStream } }"

then above error disappeared and only audio call  establish. As video call function is the requirement, I kindly expecting support for solve the above issues.

Thanks

Universal Windows Platform (UWP)
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
679 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
380 questions
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,361 Reputation points
    2024-02-07T05:55:56.1766667+00:00

    @Sadev Kalubowila Update- Here is a Unity sample of utilizing raw video streams in Unity. Check this updated sample doc link- https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-raw-media-access?pivots=platform-unity Please let us know if further query or issue remains.

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.