Picture in Picture in Azure Communication Services video

Crest_91 21 Reputation points
2022-11-18T17:19:45.353+00:00

Hi Team,
And thanks for your good work.

I'm following this walkthrough to add video communication to my app
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-with-video-calling?pivots=platform-android

I have a question: does ACS support picture-in-picture?
https://developer.android.com/develop/ui/views/picture-in-picture
and
https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller

The use case is: a mobile user is talking with video to another user.
One of the two users minimizes the video and can see the other party's video while they are navigating in the same app, or even in other apps.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
931 questions
0 comments No comments
{count} votes

Accepted answer
  1. Grmacjon-MSFT 18,646 Reputation points
    2022-11-22T02:11:17.667+00:00

    Hi @Crest_91

    Thanks for the question. Currently ACS does not support PiP. If you would like to see this as a product feature, please leave your feedback on the Azure feedback site which is closely monitored by the ACS engineering team.

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jose Saurez Lee 6 Reputation points Microsoft Employee
    2022-12-14T22:42:52.56+00:00

    Hi @Crest_91 thanks for posting this question.

    You can enable PiP in your app using ACS. PiP in Android is done at the Activity level, and you can decide whether you want to enable PiP on the Activity when it goes to background or when your application triggers some specific business logic you want. The later allows you to have a PiP Activity running while you are using other Activities in your application (like a floating window inside your own application).

    Since this is enabled on the Activity level, the Activity where the ACS call is in progress can enter PiP mode and you can customize how the PiP experience behaves depending on your use case. For example, you can change the UI on your Activity to show your video preview, a remote video from a participant, or show screenshare stream from a participant, or have mute and unmute buttons, etc. The Android developers link you posted on the questions explains how to setup your Activity to enter PiP mode and how your UI can react to entering / exiting this state, so that you can provide an experience according to the rest of your app.

    Hope this helps you in adding PiP to your application using ACS.

    Jose.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.