Skip to content

Add preferCurrentTab option#147

Merged
DeltaCircuit merged 2 commits intoDeltaCircuit:masterfrom
ZoranJambor:preferCurrentTab-option
Aug 3, 2025
Merged

Add preferCurrentTab option#147
DeltaCircuit merged 2 commits intoDeltaCircuit:masterfrom
ZoranJambor:preferCurrentTab-option

Conversation

@ZoranJambor
Copy link
Contributor

Add preferCurrentTab option for screen capturing.

If set to true, the browser will offer the current tab as the most prominent capture source, i.e. as a separate "This Tab" option in the "Choose what to share" options presented to the user. This is useful as many app types generally just want to share the current tab.

MDN reference on getDisplayMedia(): https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab

When preferCurrentTab  is set to `true`, the browser will offer the current tab as the most prominent capture source, i.e. as a separate "This Tab" option in the "Choose what to share" options presented to the user.
@rokkhi-shahin
Copy link

I need this one, really thankful to you. Please merge this ASAP

@DeltaCircuit DeltaCircuit merged commit 0b526be into DeltaCircuit:master Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants