Edit

Share via


View PowerPoint Live presentations

This article describes how to enable meeting participants to view PowerPoint Live presentations in Microsoft Teams using the Azure Communication Services Calling SDKs.

Attendees who use Azure Communication Services Calling SDKs to join a Microsoft Teams meeting can view PowerPoint Live presentations and interact with reactions and raise hand. The attendee view automatically synchronizes with the current slide of the Microsoft Teams presenter.

Prerequisites

PowerPoint Live viewing is an extended feature of the core Call API. You first need to import calling features from the Calling SDK:

import { Features}  from "@azure/communication-calling";

Then you can get the feature API object from the call instance:

const pptLive = call.feature(SDK.Features.PPTLive);

Handle presentation state changes

With the PPTLiveCallFeature API object, you can subscribe to the isActiveChanged event to handle changes to the state of a PowerPoint Live presentation on a call. A presenter in Microsoft Teams triggers this event and isActive indicates if PowerPoint Live is active in the current call.

pptLive.on('isActiveChanged', pptliveStateChangedHandler);

Start and stop presentation viewing

Add the target element to your HTML when the presentation starts and remove it when the presentation stops.

const pptliveStateChangedHandler = () => {
    if (pptLive.isActive) {
        document.getElementById('pptLiveElement').appendChild(pptLive.target);
    } else {
        const pptLiveElement = document.getElementById('pptLiveElement');
        pptLiveElement.removeChild(pptLiveElement.lastElementChild);
    }
};

Stop handling presentation state changes

Your application can unsubscribe from isActiveChanged to stop listening to presentation events.

pptLive.off('isActiveChanged', pptliveStateChangedHandler);

Key things to know when using PowerPoint Live viewing

  • We recommend switching to screen sharing if any attendees experience issues viewing PowerPoint Live.
  • PowerPoint Live is supported in the Web Calling SDK.
  • PowerPoint Live is supported for Microsoft Teams Meeting interoperability.
  • Microsoft Teams must be used to present PowerPoint Live.

Next steps