Can I share a screen with a headless browser via WebRTC?

1,158 views
Skip to first unread message

Steven Noble

unread,
Apr 11, 2016, 3:01:49 AM4/11/16
to discuss-webrtc

I want to run a headless browser (PhantomJS preferred) on the server within my Rails app.


I will probably control the headless browser with CasperJS or a similar convenience library.


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 far 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 assuming the way to do this is via a screen sharing library built upon WebRTC.


But before I dig too far into this potential rabbit warren, can I ask: is something like this even possible?


Thanks,


Steven

Christoffer Jansson

unread,
Apr 12, 2016, 2:50:49 AM4/12/16
to discuss-webrtc, spr...@google.com
I believe screen sharing leverages OS APIs in the "Window manager/framework" of the OS via browser APIs accessible using extensions. Not sure if native WebRTC can do screen sharing by itself (it ofc has codec params/settings tuned for screen sharing). 

Interestingly enough, phantomJs has some form of screen capture (screenshots only it seems), http://phantomjs.org/screen-capture.html.

+Erik Språng do you know more about native WebRTC screen sharing capabilities?

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/f9abeeb3-1d00-4c55-80cd-f05d70a4856e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
/Chris

Philip Andrew

unread,
Dec 14, 2016, 3:08:48 AM12/14/16
to discuss-webrtc
Hi, did you find a solution? The best I can work out is to make a Chrome extension, but not headless.
Reply all
Reply to author
Forward
0 new messages