Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability Delegation for getDisplayMedia() #3

Open
eladalon1983 opened this issue Feb 15, 2023 · 2 comments
Open

Capability Delegation for getDisplayMedia() #3

eladalon1983 opened this issue Feb 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@eladalon1983
Copy link
Member

eladalon1983 commented Feb 15, 2023

Imagine you have a moderately successful Web application, which has its own distinct look and feel; maybe GitHub or Wikipedia. Now let's say that you want to incorporate a video-conferencing application into your app and you turn to a third party solution that can be embedded in a cross-origin iframe. There's a lot of logic behind the scenes, but UX-wise, maybe you work out a scheme where it's mostly the video which is user-facing in the video-conferencing iframe, and the user-facing controls - mute, leave, share-screen - are all part of your app, and receive its UX styling. When those buttons are pressed, some messages are exchanged between your application and the embedded VC solution.

image

Now imagine you press the Share button, which is inside your app. You want to send a message to the VC app, but when the VC app gets that message, it can't actually call getDisplayMedia(), because it's missing the transient activation. Darn.

Well, luckily, there's such a thing as Capability Delegation, and that'd solve the problem.

Question 1: Do we agree that this would be a Good Thing? (If not, let's stop and debate it. If yes, proceed.)

Question 2: Shall monkey-patch that draft report, or can we reference it from this spec, despite it being a draft report? (Possibly we could make a vague reference to some means to delegate capability that might be added in the future.)

@jan-ivar
Copy link
Member

I'll try to push on mozilla/standards-positions#565 internally to get a position.

@bradisbell
Copy link

As a web developer, I am in favor of this proposal. Iframes can be useful tools for embedding hosted components from various service providers. They're easy to use for developers of any experience. However, the security around media APIs can be limiting.

Any proposal that opens up Web APIs in more contexts, ultimately making for better user experiences, has my vote.

@jan-ivar jan-ivar added the enhancement New feature or request label Jan 23, 2024
@dontcallmedom dontcallmedom transferred this issue from w3c/mediacapture-screen-share Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants