4 ms·
Build an app that uses screen capture in Google Chrome
- speps 9y agoI made something similar that uses the Chrome App API. Basically it creates a HTTP server that acts an MJPEG server which sends the currently captured tab. All of those APIs have a really vast array of features... kind of scary actually. Source code: https://github.com/speps/grumpy-pi-cast https://github.com/speps/grumpy-pi-cast
- janci 9y agoIs there possibility for remote control? Like simulating keyboard and mouse. I did not find an API for this.
- victor106 9y agoThis would be great. Also any one know of open source tools that have remote control of the users machine?
- skzo 9y agoGuacamole: https://guacamole.incubator.apache.org/ https://guacamole.incubator.apache.org/
- extra88 9y agoVNC and RFB (the protocol VNC uses) are open. RDP is proprietary but there are open source implementations. https://en.wikipedia.org/wiki/RFB_protocol https://en.wikipedia.org/wiki/RFB_protocol https://en.wikipedia.org/wiki/Remote_Desktop_Protocol https://en.wikipedia.org/wiki/Remote_Desktop_Protocol
- DinoMobile 9y agoWhat about using WebRTCs to record, stream screen data? This should work on Firefox, ... as well.
- DinoMobile 9y agoIgnore it!! I did not read the article :D
- TD-Linux 9y agoIn fact, in Firefox it works without creating the extension.
- philnash 9y agoI'm going to be following this post up with how to do the same in Firefox and how to put that all together for as much support as possible.
- VMG 9y agoUnfortunately still broken on gnome/wayland: https://bugzilla.gnome.org/show_bug.cgi?id=784199 https://bugzilla.gnome.org/show_bug.cgi?id=784199 edit: gnome bug not linux
- kuschku 9y agoThe GNOME bug is indirectly related, but linking to just it distorts the situation quite a lot. Wayland has no screen recording API by default, so compositors implement their own - some already have their own, some, such as GNOME's mutter, don't. But even if mutter implements it, that doesn't really fix it for all situations - there's many users on KDE, for example, for whom the GNOME bug is entirely irrelevant. Linux != GNOME.
- tkubacki 9y agoeven on Xorg multiple screen is broken (can't select single screen) on Linux
- icantrank 9y agobros... can we use es6 and more in a chrome extension bc it's defo running in chrome? Just a thought from scrolling through this post and spotting some sexy arrow functions which I've been dropping from anything client side
- philnash 9y agoThat's an interesting question, depends on the support you're expecting. In this case the desktopCapture API was introduced in Chrome 34 but arrow functions only turned up in version 45 onwards. You can set a minimum Chrome version in the extension manifest though, which would mean you can set a version that guarantees the JS support that you want.