mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Integrate basic web server functionality into player
This commit is contained in:
@@ -639,6 +639,22 @@ class ClapperPlayer extends PlayerBase
|
||||
return true;
|
||||
}
|
||||
|
||||
_onWsData(server, action, value)
|
||||
{
|
||||
switch(action) {
|
||||
case 'toggle-play':
|
||||
this.toggle_play();
|
||||
break;
|
||||
case 'play':
|
||||
case 'pause':
|
||||
this[action]();
|
||||
break;
|
||||
default:
|
||||
super._onWsData(server, action, value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_onCloseRequest(window)
|
||||
{
|
||||
this._performCloseCleanup(window);
|
||||
|
Reference in New Issue
Block a user