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

Can I share a screen with a headless browser using getScreenMedia? #18

Open
snoblenet opened this issue Apr 10, 2016 · 1 comment
Open

Comments

@snoblenet
Copy link

I want to run a headless browser on the server within my Rails app. I want so share that browser's session with a web page in my app that users access through an iFrame in another web page in my app.

So for example:

  • If a user clicked on a button in that iFrame, then the headless browser would click on the corresponding button in its browsing session.
  • If the page updated within the headless browser's session, then the page within the iFrame would update in the same way.

I'm wondering if I might be able to achieve this using this. However, I'm guessing this would involve me embarking on a lengthy process of development, so before I dig too far into this potential rabbit warren, can I ask: is something like this even possible?

@latentflip
Copy link

If a user clicked on a button in that iFrame, then the headless browser would click on the corresponding button in its browsing session.

At the very least this would not work. getScreenMedia captures a screen/window of the host "computer" and shares it with peers via video. So users will not see an "iframe" of content, just a video of it, so there are no buttons to click on, etc.


I'd say the overall thing you're trying to achieve is doable to some extent with varying different approaches, but I'm not sure that webrtc is necessarily the solution you are looking for. And without knowing why I couldn't say that any approach would necessarily be worth it :)

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

No branches or pull requests

2 participants