Picture In Picture for web using @azure/communication-calling

Mondal, Bishweswar 0 Reputation points
2024-10-18T04:17:45.3166667+00:00

Hi Team,
Can we implement pictureInPicture for web using @azure/communication-calling?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
894 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2024-10-18T17:23:49.8466667+00:00

    @Mondal, Bishweswar

    To add further- At this time while native UI supports picture in picture, the web UI Library does not.

    The picture in picture we do see today is just around "video" tags.

    Examples of this would be Youtube which is just a video playing and it jumps back to the page where this video element is being projected from. Video calls are a little more complex. They are a collection of video tags and a set of controls custom to video tag in this case the ability to mute/unmute your microphone. So instead of a single video we need to project a mini webpage or a "document"

    For web we are dependent on web apis supporting “document” Picture in Picture which is currently only experimental and only available on some browsers.  https://developer.mozilla.org/en-US/docs/Web/API/Document_Picture-in-Picture_API

     In the link there are some supported browsers however it is specific to desktop at this time with no webview or mobile web support.

    It would be great to understand more about your scenario and what browsers you may need to support and perhaps we can continue this discussion and understand how we can support you with this picture in picture experience!

    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.