Outlook add in js - Outlook Mac Client Crash with navigator.mediaDevices.getUserMedia({ 'audio': false, 'video': true});

Tran Bui The 1 Reputation point
2022-06-13T04:08:12.097+00:00

Client: Mac Outlook client
Version: 16.61
License: Microsoft 365 Subscription.

I am developing Outlook Add in (JS) . I try to record video from webcam via Task pane html.
I seems work fine on Window outlook client, browser ... but not on Mac Outlook client. Mac Outlook client crash whenever the below snip of code is run.
Please refer to my snip code on task pane html :

navigator.mediaDevices.getUserMedia({ 'audio': true, 'video': true,});

For more information :

!!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) ; // returned true
MediaRecorder.isTypeSupported("video/mp4"); // return true
navigator.userAgent; // return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"

I also included crash log from out look client in the attachment file.210654-outlookmac.log

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
866 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,479 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,885 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alison McKay 81 Reputation points Microsoft Employee
    2022-06-24T19:28:08.033+00:00

    Hi @Tran Bui The , thank you for submitting a question. It sounds like you're describing a bug with the Outlook JavaScript APIs for MacOS. We use GitHub issues to track bugs with the APIs. To report this issue, I recommend going to https://github.com/OfficeDev/office-js/issues, selecting "New Issue" and following the prompts to describe your bug. Then we'll assign the issue to the engineering team to help resolve.

    Hope this helps.

    Alison

    0 comments No comments