Giter Club home page Giter Club logo

teamviewer-incoming-recorder's Issues

Compatible with Linux and OS X

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.
image

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.

Stop recording too early when having multiple incoming connections

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.