ccloli / teamviewer-incoming-recorder Goto Github PK
View Code? Open in Web Editor NEWA Node.js script that helps you to record incoming TeamViewer session
License: MIT License
A Node.js script that helps you to record incoming TeamViewer session
License: MIT License
On Linux, TeamViewer saves its log at /var/log/teamviewer12/${env.USER}/TeamViewer12_Logfile.log
, but incoming log file is at /var/log/teamviewer12/Connections_incoming.txt
.
As Node.js doesn't support watching subdirectory on Linux, possibly we should watch the two files separately. So --TeamViewerDir
maybe useless, we should set full path on --logFileName
and --incomingFileName
.
The recording with tv 14 is not working. Maybe the logfiles has changed.
If TeamViewer doesn't run as service, and have multiple incoming connections, once one of them disconnected, FFmpeg will stop recording immediately, since the connection has been written to Connections_incoming.txt
. However, the other connection is still connecting, and the latter actions and new incoming connection won't be recorded until all the connections are closed, because TeamViewer doesn't need to open a new TeamViewerDesktop
task.
It's a good way to listen to the TeamViewerDesktop
task, checking if it has closed. If yes, stop recording and renaming it as incoming logs. If no, continue recording until it closed, then write all connections log to filename, like 20170305144001-20170305144111-123456789(foo)-987654321(bar)-741852963(baz).mp4
.
In TeamViewer12_Logfile.log
, once TeamViewerDesktop
task started, there will be a log says like TeamViewerDesktop started, PID=3080
, so that we can use a timer to check if that process stopped. On Windows, we can use tasklist /fi "pid eq 3080" | find "3080"
to check if the process still exists. If exists, it will returns the details of the task; if not, it will returns an empty string.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.