Vorlent / cozycast

movie night over the internet
Other
5 stars 3 forks source link

Implement mouse and keyboard control #2

Closed Vorlent closed 6 years ago

Vorlent commented 6 years ago

Viewers should be able to take control over the stream. This should work like VNC.

Mouse and keyboards events should be sent via websockets to a process that is locally running on the machine that streams to the kurento server.

I will be using luajit for this. xdo.lua already contains a simple xdo wrapper via luajit's ffi.

I need to find a websocket client library for lua and connect to the tomcat server that hosts the website.

This one looks promising:

https://github.com/lipp/lua-websockets

Vorlent commented 6 years ago

The server receives the events from the client. Now it needs to send the event to the worker. The worker needs to send the corresponding key via xdo.

Vorlent commented 6 years ago

It's not finished but good enough as an MVP.