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

Display Current Screen on ScreenInvader #66

Closed
naxxatoe opened this issue Sep 30, 2012 · 2 comments
Closed

Display Current Screen on ScreenInvader #66

naxxatoe opened this issue Sep 30, 2012 · 2 comments
Labels

Comments

@naxxatoe
Copy link

Okay, lets say you want to share your current screen content with friends quickly, but a video style view
is not what you are going for?

Perhaps upload a quick screencap?

This shell script serves as an example (serverside modifications required) => http post handling!

Dependencies

-Curl
http://packages.debian.org/squeeze/curl
http://software.opensuse.org/package/curl

Shell script example

!/usr/bin/bash

Post current screen script for the loungeinvader!

Depends on Scrot and Curl!

Temporary File Locations

LoungeTmpDir="/tmp/tr -dc "[:alpha:]" < /dev/urandom | head -c 7/"
LoungeTmpImg=$LoungeTmpDir"upimg.png"

Time Before taking the Screenshot

LoungeScrDelay="2"

Do the **** Thing

mkdir -p $LoungeTmpDir
scrot -d $LoungeScrDelay -m $LoungeTmpImg

crap

curl -X POST http://10.20.30.51/ -d $LoungeTmpImg --header "Content-Type:image/png" > /dev/null 2>&1

curl -i -F Datei=@$LoungeTmpImg -X POST http://10.20.30.51/cgi-bin/show> /dev/null 2>&1

rm -r $LoungeTmpDir

@rcknr
Copy link
Contributor

rcknr commented Dec 27, 2012

Nice hack. Although the solution should be multi-platform. How about vlc?
Also #65 apparently duplicates this issue (or the other way around).

@PwnicornDev
Copy link
Member

I think this and #65 could be implemented in the near future using the getUserMedia() function of WebRTC. It is platform-independent and will be supported by all major browsers.
However, this might be blocked by #40 for now, as it seems to be only allowed through ssl (at least for Chrome).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants