Samridhi Kumari
Samridhi Kumari

Reputation: 1

Limit the options available for recording screen

I am working on a screen recorder application and wanted to see if it's possible to limit what options the user can pick to record?

Right now, I am calling navigator.mediaDevices.getDisplayMedia({}) which prompts the user to share either 1) Entire Screen, 2) Application Window or 3) Chrome Tab

However, I would like to remove the option to select chrome tab, I just want the user's to seeEntire screen or application window choices.

I thought the solution was to set the displaySurface: window value:

navigator.mediaDevices.getDisplayMedia({
      video: {
        width: 9999999999,
        height: 9999999999,
        dispkaySurface:"window,
      },
    });

However, I am still being presented with the three options instead of just the tab. Does anyone know how I can limit which screens can be shared?

Thank you in advance!

Upvotes: 0

Views: 57

Answers (0)

Related Questions