mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Send player state via WebSockets
This commit is contained in:
@@ -181,6 +181,14 @@ class ClapperPlayerBase extends GstPlayer.Player
|
||||
this.widget.queue_render();
|
||||
}
|
||||
|
||||
emitWs(action, value)
|
||||
{
|
||||
if(!this.webserver)
|
||||
return;
|
||||
|
||||
this.webserver.sendMessage({ action, value });
|
||||
}
|
||||
|
||||
_onWsData(server, action, value)
|
||||
{
|
||||
debug(`unhandled WebSocket action: ${action}`);
|
||||
|
Reference in New Issue
Block a user