microsoft / live-share-sdk

A framework for building collaborative Microsoft Teams and M365 experiences.
Other
93 stars 29 forks source link

[Feature Request]: Add local flag to `ExtendedMediaSessionDetails` for groupaction #727

Closed ryanbliss closed 11 months ago

ryanbliss commented 11 months ago

Describe your user scenario

If a developer wants to use the ExtendedMediaSessionDetails interface (included in the groupaction event from MediaPlayerSynchronizer) to show a notification (e.g., [X] paused the video), then there is currently no way besides LivePresence to know whether the action was done by a local or remote user. Best practice for these notifications is to show "You paused the video" rather than "[Local name] paused the video." This use case currently isn't supported.

Describe the solution you'd like

Add a local boolean to ExtendedMediaSessionDetails, similar to how events emitted for other DDS give both local and clientId.